ldlang.c (print_assignment): Do not rely upon a valid result having a section
[binutils.git] / binutils / configure
blobf1f7d71121da5460dbd440e33c7f373d960ed651
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="ar.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-included-gettext use the GNU gettext library included here
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 _ACEOF
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 cd "$ac_popdir"
975 done
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
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 $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
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1337 done
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1456 done
1457 done
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1494 done
1495 done
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 CC=$ac_ct_CC
1509 else
1510 CC="$ac_cv_prog_CC"
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1536 done
1537 done
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1574 done
1575 done
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1588 CC=$ac_ct_CC
1589 else
1590 CC="$ac_cv_prog_CC"
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605 ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1621 done
1622 done
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1673 done
1674 done
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$CC" && break
1688 done
1690 if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$ac_ct_CC" && break
1730 done
1732 CC=$ac_ct_CC
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h. */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1772 main ()
1776 return 0;
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 conftest.$ac_ext )
1807 # This is the source file.
1809 [ab].out )
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
1813 *.* )
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
1821 break;;
1822 esac
1823 done
1824 else
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899 done
1900 else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1928 main ()
1932 return 0;
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947 done
1948 else
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h. */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1978 main ()
1980 #ifndef __GNUC__
1981 choke me
1982 #endif
1985 return 0;
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010 else
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2014 ac_compiler_gnu=no
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h. */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2039 main ()
2043 return 0;
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2049 ac_status=$?
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_cv_prog_cc_g=yes
2068 else
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2072 ac_cv_prog_cc_g=no
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2082 CFLAGS="-g -O2"
2083 else
2084 CFLAGS="-g"
2086 else
2087 if test "$GCC" = yes; then
2088 CFLAGS="-O2"
2089 else
2090 CFLAGS=
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 ac_cv_prog_cc_stdc=no
2099 ac_save_CC=$CC
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h. */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2106 #include <stdarg.h>
2107 #include <stdio.h>
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2114 char **p;
2115 int i;
2117 return p[i];
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2121 char *s;
2122 va_list v;
2123 va_start (v,p);
2124 s = g (p, va_arg (v,int));
2125 va_end (v);
2126 return s;
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 int argc;
2143 char **argv;
2145 main ()
2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2149 return 0;
2151 _ACEOF
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX -qlanglvl=ansi
2155 # Ultrix and OSF/1 -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions -Aa -D_HPUX_SOURCE
2158 # SVR4 -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2184 break
2185 else
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2190 rm -f conftest.err conftest.$ac_objext
2191 done
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2193 CC=$ac_save_CC
2197 case "x$ac_cv_prog_cc_stdc" in
2198 x|xno)
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2205 esac
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #ifndef __cplusplus
2213 choke me
2214 #endif
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2219 ac_status=$?
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2238 '' \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2243 'void exit (int);'
2245 cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251 $ac_declaration
2252 #include <stdlib.h>
2254 main ()
2256 exit (42);
2258 return 0;
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2283 else
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2287 continue
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296 $ac_declaration
2298 main ()
2300 exit (42);
2302 return 0;
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 break
2327 else
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 done
2334 rm -f conftest*
2335 if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2341 else
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2355 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2356 if test "${ac_cv_search_strerror+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 ac_func_search_save_LIBS=$LIBS
2360 ac_cv_search_strerror=no
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2368 /* Override any gcc2 internal prototype to avoid an error. */
2369 #ifdef __cplusplus
2370 extern "C"
2371 #endif
2372 /* We use char because int might match the return type of a gcc2
2373 builtin and then its argument prototype would still apply. */
2374 char strerror ();
2376 main ()
2378 strerror ();
2380 return 0;
2382 _ACEOF
2383 rm -f conftest.$ac_objext conftest$ac_exeext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2385 (eval $ac_link) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest$ac_exeext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 ac_cv_search_strerror="none required"
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext \
2411 conftest$ac_exeext conftest.$ac_ext
2412 if test "$ac_cv_search_strerror" = no; then
2413 for ac_lib in cposix; do
2414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2415 cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h. */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2422 /* Override any gcc2 internal prototype to avoid an error. */
2423 #ifdef __cplusplus
2424 extern "C"
2425 #endif
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2428 char strerror ();
2430 main ()
2432 strerror ();
2434 return 0;
2436 _ACEOF
2437 rm -f conftest.$ac_objext conftest$ac_exeext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439 (eval $ac_link) 2>conftest.er1
2440 ac_status=$?
2441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try='test -s conftest$ac_exeext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 ac_cv_search_strerror="-l$ac_lib"
2459 break
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
2467 done
2469 LIBS=$ac_func_search_save_LIBS
2471 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2472 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2473 if test "$ac_cv_search_strerror" != no; then
2474 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2479 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2480 am__api_version="1.9"
2481 # Find a good install program. We prefer a C program (faster),
2482 # so one script is as good as another. But avoid the broken or
2483 # incompatible versions:
2484 # SysV /etc/install, /usr/sbin/install
2485 # SunOS /usr/etc/install
2486 # IRIX /sbin/install
2487 # AIX /bin/install
2488 # AmigaOS /C/install, which installs bootblocks on floppy discs
2489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492 # OS/2's system install, which has a completely different semantic
2493 # ./install, which can be erroneously created by make from ./install.sh.
2494 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2495 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2496 if test -z "$INSTALL"; then
2497 if test "${ac_cv_path_install+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2506 case $as_dir/ in
2507 ./ | .// | /cC/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2510 /usr/ucb/* ) ;;
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2514 # by default.
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2526 else
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 break 3
2531 done
2532 done
2534 esac
2535 done
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2541 else
2542 # As a last resort, use the slow shell script. We don't cache a
2543 # path for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the path is relative.
2546 INSTALL=$ac_install_sh
2549 echo "$as_me:$LINENO: result: $INSTALL" >&5
2550 echo "${ECHO_T}$INSTALL" >&6
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2561 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2562 # Just in case
2563 sleep 1
2564 echo timestamp > conftest.file
2565 # Do `set' in a subshell so we don't clobber the current shell's
2566 # arguments. Must try -L first in case configure is actually a
2567 # symlink; some systems play weird games with the mod time of symlinks
2568 # (eg FreeBSD returns the mod time of the symlink's containing
2569 # directory).
2570 if (
2571 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2572 if test "$*" = "X"; then
2573 # -L didn't work.
2574 set X `ls -t $srcdir/configure conftest.file`
2576 rm -f conftest.file
2577 if test "$*" != "X $srcdir/configure conftest.file" \
2578 && test "$*" != "X conftest.file $srcdir/configure"; then
2580 # If neither matched, then we have a broken ls. This can happen
2581 # if, for instance, CONFIG_SHELL is bash and it inherits a
2582 # broken ls alias from the environment. This has actually
2583 # happened. Such a system could not be considered "sane".
2584 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2585 alias in your environment" >&5
2586 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" >&2;}
2588 { (exit 1); exit 1; }; }
2591 test "$2" = conftest.file
2593 then
2594 # Ok.
2596 else
2597 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2598 Check your system clock" >&5
2599 echo "$as_me: error: newly created file is older than distributed files!
2600 Check your system clock" >&2;}
2601 { (exit 1); exit 1; }; }
2603 echo "$as_me:$LINENO: result: yes" >&5
2604 echo "${ECHO_T}yes" >&6
2605 test "$program_prefix" != NONE &&
2606 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2607 # Use a double $ so make ignores it.
2608 test "$program_suffix" != NONE &&
2609 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2610 # Double any \ or $. echo might interpret backslashes.
2611 # By default was `s,x,x', remove it if useless.
2612 cat <<\_ACEOF >conftest.sed
2613 s/[\\$]/&&/g;s/;s,x,x,$//
2614 _ACEOF
2615 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2616 rm conftest.sed
2618 # expand $ac_aux_dir to an absolute path
2619 am_aux_dir=`cd $ac_aux_dir && pwd`
2621 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --run true"; then
2624 am_missing_run="$MISSING --run "
2625 else
2626 am_missing_run=
2627 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2628 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2631 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2632 # We used to keeping the `.' as first argument, in order to
2633 # allow $(mkdir_p) to be used without argument. As in
2634 # $(mkdir_p) $(somedir)
2635 # where $(somedir) is conditionally defined. However this is wrong
2636 # for two reasons:
2637 # 1. if the package is installed by a user who cannot write `.'
2638 # make install will fail,
2639 # 2. the above comment should most certainly read
2640 # $(mkdir_p) $(DESTDIR)$(somedir)
2641 # so it does not work when $(somedir) is undefined and
2642 # $(DESTDIR) is not.
2643 # To support the latter case, we have to write
2644 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2645 # so the `.' trick is pointless.
2646 mkdir_p='mkdir -p --'
2647 else
2648 # On NextStep and OpenStep, the `mkdir' command does not
2649 # recognize any option. It will interpret all options as
2650 # directories to create, and then abort because `.' already
2651 # exists.
2652 for d in ./-p ./--version;
2654 test -d $d && rmdir $d
2655 done
2656 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2657 if test -f "$ac_aux_dir/mkinstalldirs"; then
2658 mkdir_p='$(mkinstalldirs)'
2659 else
2660 mkdir_p='$(install_sh) -d'
2664 for ac_prog in gawk mawk nawk awk
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_AWK+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 if test -n "$AWK"; then
2674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_AWK="$ac_prog"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2687 done
2688 done
2692 AWK=$ac_cv_prog_AWK
2693 if test -n "$AWK"; then
2694 echo "$as_me:$LINENO: result: $AWK" >&5
2695 echo "${ECHO_T}$AWK" >&6
2696 else
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2701 test -n "$AWK" && break
2702 done
2704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 cat >conftest.make <<\_ACEOF
2711 all:
2712 @echo 'ac_maketemp="$(MAKE)"'
2713 _ACEOF
2714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2716 if test -n "$ac_maketemp"; then
2717 eval ac_cv_prog_make_${ac_make}_set=yes
2718 else
2719 eval ac_cv_prog_make_${ac_make}_set=no
2721 rm -f conftest.make
2723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725 echo "${ECHO_T}yes" >&6
2726 SET_MAKE=
2727 else
2728 echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2730 SET_MAKE="MAKE=${MAKE-make}"
2733 rm -rf .tst 2>/dev/null
2734 mkdir .tst 2>/dev/null
2735 if test -d .tst; then
2736 am__leading_dot=.
2737 else
2738 am__leading_dot=_
2740 rmdir .tst 2>/dev/null
2742 DEPDIR="${am__leading_dot}deps"
2744 ac_config_commands="$ac_config_commands depfiles"
2747 am_make=${MAKE-make}
2748 cat > confinc << 'END'
2749 am__doit:
2750 @echo done
2751 .PHONY: am__doit
2753 # If we don't find an include directive, just comment out the code.
2754 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2755 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2756 am__include="#"
2757 am__quote=
2758 _am_result=none
2759 # First try GNU make style include.
2760 echo "include confinc" > confmf
2761 # We grep out `Entering directory' and `Leaving directory'
2762 # messages which can occur if `w' ends up in MAKEFLAGS.
2763 # In particular we don't look at `^make:' because GNU make might
2764 # be invoked under some other name (usually "gmake"), in which
2765 # case it prints its new name instead of `make'.
2766 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2767 am__include=include
2768 am__quote=
2769 _am_result=GNU
2771 # Now try BSD make style include.
2772 if test "$am__include" = "#"; then
2773 echo '.include "confinc"' > confmf
2774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2775 am__include=.include
2776 am__quote="\""
2777 _am_result=BSD
2782 echo "$as_me:$LINENO: result: $_am_result" >&5
2783 echo "${ECHO_T}$_am_result" >&6
2784 rm -f confinc confmf
2786 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2787 if test "${enable_dependency_tracking+set}" = set; then
2788 enableval="$enable_dependency_tracking"
2791 if test "x$enable_dependency_tracking" != xno; then
2792 am_depcomp="$ac_aux_dir/depcomp"
2793 AMDEPBACKSLASH='\'
2797 if test "x$enable_dependency_tracking" != xno; then
2798 AMDEP_TRUE=
2799 AMDEP_FALSE='#'
2800 else
2801 AMDEP_TRUE='#'
2802 AMDEP_FALSE=
2807 # test to see if srcdir already configured
2808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2809 test -f $srcdir/config.status; then
2810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2812 { (exit 1); exit 1; }; }
2815 # test whether we have cygpath
2816 if test -z "$CYGPATH_W"; then
2817 if (cygpath --version) >/dev/null 2>/dev/null; then
2818 CYGPATH_W='cygpath -w'
2819 else
2820 CYGPATH_W=echo
2825 # Define the identity of the package.
2826 PACKAGE=binutils
2827 VERSION=${BFD_VERSION}
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE "$PACKAGE"
2832 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define VERSION "$VERSION"
2837 _ACEOF
2839 # Some tools Automake needs.
2841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2857 # Installed binaries are usually stripped using `strip' when the user
2858 # run `make install-strip'. However `strip' might not be the right
2859 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the `STRIP' environment variable to overrule this program.
2861 if test "$cross_compiling" != no; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}strip; ac_word=$2
2865 echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867 if test "${ac_cv_prog_STRIP+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 if test -n "$STRIP"; then
2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2884 done
2885 done
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 echo "$as_me:$LINENO: result: $STRIP" >&5
2892 echo "${ECHO_T}$STRIP" >&6
2893 else
2894 echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6
2899 if test -z "$ac_cv_prog_STRIP"; then
2900 ac_ct_STRIP=$STRIP
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2931 echo "${ECHO_T}$ac_ct_STRIP" >&6
2932 else
2933 echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2937 STRIP=$ac_ct_STRIP
2938 else
2939 STRIP="$ac_cv_prog_STRIP"
2943 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2945 # We need awk for the "check" target. The system "awk" is bad on
2946 # some platforms.
2947 # Always define AMTAR for backward compatibility.
2949 AMTAR=${AMTAR-"${am_missing_run}tar"}
2951 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2956 depcc="$CC" am_compiler_list=
2958 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2960 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2964 # We make a subdir and do the tests there. Otherwise we can end up
2965 # making bogus files that we don't know about and never remove. For
2966 # instance it was reported that on HP-UX the gcc test will end up
2967 # making a dummy file named `D' -- because `-MD' means `put the output
2968 # in D'.
2969 mkdir conftest.dir
2970 # Copy depcomp to subdir because otherwise we won't find it if we're
2971 # using a relative directory.
2972 cp "$am_depcomp" conftest.dir
2973 cd conftest.dir
2974 # We will build objects and dependencies in a subdirectory because
2975 # it helps to detect inapplicable dependency modes. For instance
2976 # both Tru64's cc and ICC support -MD to output dependencies as a
2977 # side effect of compilation, but ICC will put the dependencies in
2978 # the current directory while Tru64 will put them in the object
2979 # directory.
2980 mkdir sub
2982 am_cv_CC_dependencies_compiler_type=none
2983 if test "$am_compiler_list" = ""; then
2984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2986 for depmode in $am_compiler_list; do
2987 # Setup a source with many dependencies, because some compilers
2988 # like to wrap large dependency lists on column 80 (with \), and
2989 # we should not choose a depcomp mode which is confused by this.
2991 # We need to recreate these files for each test, as the compiler may
2992 # overwrite some of them when testing with obscure command lines.
2993 # This happens at least with the AIX C compiler.
2994 : > sub/conftest.c
2995 for i in 1 2 3 4 5 6; do
2996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2998 # Solaris 8's {/usr,}/bin/sh.
2999 touch sub/conftst$i.h
3000 done
3001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3003 case $depmode in
3004 nosideeffect)
3005 # after this tag, mechanisms are not by side-effect, so they'll
3006 # only be used when explicitly requested
3007 if test "x$enable_dependency_tracking" = xyes; then
3008 continue
3009 else
3010 break
3013 none) break ;;
3014 esac
3015 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3016 # mode. It turns out that the SunPro C++ compiler does not properly
3017 # handle `-M -o', and we need to detect this.
3018 if depmode=$depmode \
3019 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3021 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3022 >/dev/null 2>conftest.err &&
3023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3024 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3026 # icc doesn't choke on unknown options, it will just issue warnings
3027 # or remarks (even with -Werror). So we grep stderr for any message
3028 # that says an option was ignored or not supported.
3029 # When given -MP, icc 7.0 and 7.1 complain thusly:
3030 # icc: Command line warning: ignoring option '-M'; no argument required
3031 # The diagnosis changed in icc 8.0:
3032 # icc: Command line remark: option '-MP' not supported
3033 if (grep 'ignoring option' conftest.err ||
3034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3035 am_cv_CC_dependencies_compiler_type=$depmode
3036 break
3039 done
3041 cd ..
3042 rm -rf conftest.dir
3043 else
3044 am_cv_CC_dependencies_compiler_type=none
3048 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3049 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3055 test "x$enable_dependency_tracking" != xno \
3056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3057 am__fastdepCC_TRUE=
3058 am__fastdepCC_FALSE='#'
3059 else
3060 am__fastdepCC_TRUE='#'
3061 am__fastdepCC_FALSE=
3067 # Check whether --enable-shared or --disable-shared was given.
3068 if test "${enable_shared+set}" = set; then
3069 enableval="$enable_shared"
3070 p=${PACKAGE-default}
3071 case $enableval in
3072 yes) enable_shared=yes ;;
3073 no) enable_shared=no ;;
3075 enable_shared=no
3076 # Look at the argument we got. We use all the common list separators.
3077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3078 for pkg in $enableval; do
3079 if test "X$pkg" = "X$p"; then
3080 enable_shared=yes
3082 done
3083 IFS="$ac_save_ifs"
3085 esac
3086 else
3087 enable_shared=yes
3089 # Check whether --enable-static or --disable-static was given.
3090 if test "${enable_static+set}" = set; then
3091 enableval="$enable_static"
3092 p=${PACKAGE-default}
3093 case $enableval in
3094 yes) enable_static=yes ;;
3095 no) enable_static=no ;;
3097 enable_static=no
3098 # Look at the argument we got. We use all the common list separators.
3099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3100 for pkg in $enableval; do
3101 if test "X$pkg" = "X$p"; then
3102 enable_static=yes
3104 done
3105 IFS="$ac_save_ifs"
3107 esac
3108 else
3109 enable_static=yes
3111 # Check whether --enable-fast-install or --disable-fast-install was given.
3112 if test "${enable_fast_install+set}" = set; then
3113 enableval="$enable_fast_install"
3114 p=${PACKAGE-default}
3115 case $enableval in
3116 yes) enable_fast_install=yes ;;
3117 no) enable_fast_install=no ;;
3119 enable_fast_install=no
3120 # Look at the argument we got. We use all the common list separators.
3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3122 for pkg in $enableval; do
3123 if test "X$pkg" = "X$p"; then
3124 enable_fast_install=yes
3126 done
3127 IFS="$ac_save_ifs"
3129 esac
3130 else
3131 enable_fast_install=yes
3134 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3135 if test "${with_gnu_ld+set}" = set; then
3136 withval="$with_gnu_ld"
3137 test "$withval" = no || with_gnu_ld=yes
3138 else
3139 with_gnu_ld=no
3141 ac_prog=ld
3142 if test "$GCC" = yes; then
3143 # Check if gcc -print-prog-name=ld gives a path.
3144 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3145 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3146 case $host in
3147 *-*-mingw*)
3148 # gcc leaves a trailing carriage return which upsets mingw
3149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3152 esac
3153 case $ac_prog in
3154 # Accept absolute paths.
3155 [\\/]* | [A-Za-z]:[\\/]*)
3156 re_direlt='/[^/][^/]*/\.\./'
3157 # Canonicalize the path of ld
3158 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3159 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3160 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3161 done
3162 test -z "$LD" && LD="$ac_prog"
3165 # If it fails, then pretend we aren't using GCC.
3166 ac_prog=ld
3169 # If it is relative, then search for the first ld in PATH.
3170 with_gnu_ld=unknown
3172 esac
3173 elif test "$with_gnu_ld" = yes; then
3174 echo "$as_me:$LINENO: checking for GNU ld" >&5
3175 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3176 else
3177 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3178 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3180 if test "${lt_cv_path_LD+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 if test -z "$LD"; then
3184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3185 for ac_dir in $PATH; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3188 lt_cv_path_LD="$ac_dir/$ac_prog"
3189 # Check to see if the program is GNU ld. I'd rather use --version,
3190 # but apparently some GNU ld's only accept -v.
3191 # Break only if it was the GNU/non-GNU ld that we prefer.
3192 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3193 test "$with_gnu_ld" != no && break
3194 else
3195 test "$with_gnu_ld" != yes && break
3198 done
3199 IFS="$ac_save_ifs"
3200 else
3201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3205 LD="$lt_cv_path_LD"
3206 if test -n "$LD"; then
3207 echo "$as_me:$LINENO: result: $LD" >&5
3208 echo "${ECHO_T}$LD" >&6
3209 else
3210 echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3213 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3214 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3215 { (exit 1); exit 1; }; }
3216 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3217 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3218 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3222 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3223 lt_cv_prog_gnu_ld=yes
3224 else
3225 lt_cv_prog_gnu_ld=no
3228 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3229 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3230 with_gnu_ld=$lt_cv_prog_gnu_ld
3233 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3234 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3235 if test "${lt_cv_ld_reload_flag+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 lt_cv_ld_reload_flag='-r'
3240 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3241 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3242 reload_flag=$lt_cv_ld_reload_flag
3243 test -n "$reload_flag" && reload_flag=" $reload_flag"
3245 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3246 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3247 if test "${lt_cv_path_NM+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$NM"; then
3251 # Let the user override the test.
3252 lt_cv_path_NM="$NM"
3253 else
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3255 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3256 test -z "$ac_dir" && ac_dir=.
3257 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3258 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3259 # Check to see if the nm accepts a BSD-compat flag.
3260 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3261 # nm: unknown option "B" ignored
3262 # Tru64's nm complains that /dev/null is an invalid object file
3263 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3264 lt_cv_path_NM="$tmp_nm -B"
3265 break
3266 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3267 lt_cv_path_NM="$tmp_nm -p"
3268 break
3269 else
3270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3271 continue # so that we can try to find one that supports BSD flags
3274 done
3275 IFS="$ac_save_ifs"
3276 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3280 NM="$lt_cv_path_NM"
3281 echo "$as_me:$LINENO: result: $NM" >&5
3282 echo "${ECHO_T}$NM" >&6
3284 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3285 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3286 LN_S=$as_ln_s
3287 if test "$LN_S" = "ln -s"; then
3288 echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6
3290 else
3291 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3292 echo "${ECHO_T}no, using $LN_S" >&6
3295 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3296 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3297 if test "${lt_cv_deplibs_check_method+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 lt_cv_file_magic_cmd='$MAGIC_CMD'
3301 lt_cv_file_magic_test_file=
3302 lt_cv_deplibs_check_method='unknown'
3303 # Need to set the preceding variable on all platforms that support
3304 # interlibrary dependencies.
3305 # 'none' -- dependencies not supported.
3306 # `unknown' -- same as none, but documents that we really don't know.
3307 # 'pass_all' -- all dependencies passed with no checks.
3308 # 'test_compile' -- check by making test program.
3309 # 'file_magic [regex]' -- check by looking for files in library path
3310 # which responds to the $file_magic_cmd with a given egrep regex.
3311 # If you have `file' or equivalent on your system and you're not sure
3312 # whether `pass_all' will *always* work, you probably want this one.
3314 case $host_os in
3315 aix*)
3316 lt_cv_deplibs_check_method=pass_all
3319 beos*)
3320 lt_cv_deplibs_check_method=pass_all
3323 bsdi4*)
3324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3325 lt_cv_file_magic_cmd='/usr/bin/file -L'
3326 lt_cv_file_magic_test_file=/shlib/libc.so
3329 cygwin* | mingw* |pw32*)
3330 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3331 lt_cv_file_magic_cmd='$OBJDUMP -f'
3334 darwin* | rhapsody*)
3335 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3336 lt_cv_file_magic_cmd='/usr/bin/file -L'
3337 case "$host_os" in
3338 rhapsody* | darwin1.012)
3339 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3341 *) # Darwin 1.3 on
3342 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3344 esac
3347 freebsd* | kfreebsd*-gnu)
3348 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3349 case $host_cpu in
3350 i*86 )
3351 # Not sure whether the presence of OpenBSD here was a mistake.
3352 # Let's accept both of them until this is cleared up.
3353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3354 lt_cv_file_magic_cmd=/usr/bin/file
3355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3357 esac
3358 else
3359 lt_cv_deplibs_check_method=pass_all
3363 gnu*)
3364 lt_cv_deplibs_check_method=pass_all
3367 hpux10.20*|hpux11*)
3368 case $host_cpu in
3369 hppa*)
3370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3371 lt_cv_file_magic_cmd=/usr/bin/file
3372 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3374 ia64*)
3375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3376 lt_cv_file_magic_cmd=/usr/bin/file
3377 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3379 esac
3382 irix5* | irix6*)
3383 case $host_os in
3384 irix5*)
3385 # this will be overridden with pass_all, but let us keep it just in case
3386 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3389 case $LD in
3390 *-32|*"-32 ") libmagic=32-bit;;
3391 *-n32|*"-n32 ") libmagic=N32;;
3392 *-64|*"-64 ") libmagic=64-bit;;
3393 *) libmagic=never-match;;
3394 esac
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3398 esac
3399 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3400 lt_cv_deplibs_check_method=pass_all
3403 # This must be Linux ELF.
3404 linux-gnu*)
3405 case $host_cpu in
3406 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3407 lt_cv_deplibs_check_method=pass_all ;;
3409 # glibc up to 2.1.1 does not perform some relocations on ARM
3410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3411 esac
3412 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3415 netbsd* | knetbsd*-gnu)
3416 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3417 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3418 else
3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3423 newsos6)
3424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3425 lt_cv_file_magic_cmd=/usr/bin/file
3426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3429 osf3* | osf4* | osf5*)
3430 # this will be overridden with pass_all, but let us keep it just in case
3431 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3432 lt_cv_file_magic_test_file=/shlib/libc.so
3433 lt_cv_deplibs_check_method=pass_all
3436 sco3.2v5*)
3437 lt_cv_deplibs_check_method=pass_all
3440 solaris*)
3441 lt_cv_deplibs_check_method=pass_all
3442 lt_cv_file_magic_test_file=/lib/libc.so
3445 sysv5uw[78]* | sysv4*uw2*)
3446 lt_cv_deplibs_check_method=pass_all
3449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3450 case $host_vendor in
3451 ncr)
3452 lt_cv_deplibs_check_method=pass_all
3454 motorola)
3455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3458 esac
3460 esac
3463 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465 file_magic_cmd=$lt_cv_file_magic_cmd
3466 deplibs_check_method=$lt_cv_deplibs_check_method
3471 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3473 # Only perform the check for file, if the check method requires it
3474 case $deplibs_check_method in
3475 file_magic*)
3476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3477 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3478 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3479 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 case $MAGIC_CMD in
3484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3486 ?:/*)
3487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3490 ac_save_MAGIC_CMD="$MAGIC_CMD"
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3492 ac_dummy="/usr/bin:$PATH"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/${ac_tool_prefix}file; then
3496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3497 if test -n "$file_magic_test_file"; then
3498 case $deplibs_check_method in
3499 "file_magic "*)
3500 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3503 egrep "$file_magic_regex" > /dev/null; then
3505 else
3506 cat <<EOF 1>&2
3508 *** Warning: the command libtool uses to detect shared libraries,
3509 *** $file_magic_cmd, produces output that libtool cannot recognize.
3510 *** The result is that libtool may fail to recognize shared libraries
3511 *** as such. This will affect the creation of libtool libraries that
3512 *** depend on shared libraries, but programs linked with such libtool
3513 *** libraries will work regardless of this problem. Nevertheless, you
3514 *** may want to report the problem to your system manager and/or to
3515 *** bug-libtool@gnu.org
3518 fi ;;
3519 esac
3521 break
3523 done
3524 IFS="$ac_save_ifs"
3525 MAGIC_CMD="$ac_save_MAGIC_CMD"
3527 esac
3530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3531 if test -n "$MAGIC_CMD"; then
3532 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3533 echo "${ECHO_T}$MAGIC_CMD" >&6
3534 else
3535 echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3539 if test -z "$lt_cv_path_MAGIC_CMD"; then
3540 if test -n "$ac_tool_prefix"; then
3541 echo "$as_me:$LINENO: checking for file" >&5
3542 echo $ECHO_N "checking for file... $ECHO_C" >&6
3543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 case $MAGIC_CMD in
3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3550 ?:/*)
3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/file; then
3560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3561 if test -n "$file_magic_test_file"; then
3562 case $deplibs_check_method in
3563 "file_magic "*)
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3569 else
3570 cat <<EOF 1>&2
3572 *** Warning: the command libtool uses to detect shared libraries,
3573 *** $file_magic_cmd, produces output that libtool cannot recognize.
3574 *** The result is that libtool may fail to recognize shared libraries
3575 *** as such. This will affect the creation of libtool libraries that
3576 *** depend on shared libraries, but programs linked with such libtool
3577 *** libraries will work regardless of this problem. Nevertheless, you
3578 *** may want to report the problem to your system manager and/or to
3579 *** bug-libtool@gnu.org
3582 fi ;;
3583 esac
3585 break
3587 done
3588 IFS="$ac_save_ifs"
3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
3591 esac
3594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595 if test -n "$MAGIC_CMD"; then
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597 echo "${ECHO_T}$MAGIC_CMD" >&6
3598 else
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3603 else
3604 MAGIC_CMD=:
3610 esac
3612 if test -n "$ac_tool_prefix"; then
3613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_RANLIB+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 if test -n "$RANLIB"; then
3621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3639 RANLIB=$ac_cv_prog_RANLIB
3640 if test -n "$RANLIB"; then
3641 echo "$as_me:$LINENO: result: $RANLIB" >&5
3642 echo "${ECHO_T}$RANLIB" >&6
3643 else
3644 echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3649 if test -z "$ac_cv_prog_RANLIB"; then
3650 ac_ct_RANLIB=$RANLIB
3651 # Extract the first word of "ranlib", so it can be a program name with args.
3652 set dummy ranlib; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 if test -n "$ac_ct_RANLIB"; then
3659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_ac_ct_RANLIB="ranlib"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3675 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3679 if test -n "$ac_ct_RANLIB"; then
3680 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3681 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3682 else
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3687 RANLIB=$ac_ct_RANLIB
3688 else
3689 RANLIB="$ac_cv_prog_RANLIB"
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}strip; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_prog_STRIP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3714 done
3715 done
3719 STRIP=$ac_cv_prog_STRIP
3720 if test -n "$STRIP"; then
3721 echo "$as_me:$LINENO: result: $STRIP" >&5
3722 echo "${ECHO_T}$STRIP" >&6
3723 else
3724 echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3729 if test -z "$ac_cv_prog_STRIP"; then
3730 ac_ct_STRIP=$STRIP
3731 # Extract the first word of "strip", so it can be a program name with args.
3732 set dummy strip; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 if test -n "$ac_ct_STRIP"; then
3739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_STRIP="strip"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3755 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3759 if test -n "$ac_ct_STRIP"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3761 echo "${ECHO_T}$ac_ct_STRIP" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3767 STRIP=$ac_ct_STRIP
3768 else
3769 STRIP="$ac_cv_prog_STRIP"
3773 # Check for any special flags to pass to ltconfig.
3774 libtool_flags="--cache-file=$cache_file"
3775 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3776 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3777 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3778 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3779 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3783 if test "${enable_libtool_lock+set}" = set; then
3784 enableval="$enable_libtool_lock"
3787 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3788 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3791 # Check whether --with-pic or --without-pic was given.
3792 if test "${with_pic+set}" = set; then
3793 withval="$with_pic"
3794 pic_mode="$withval"
3795 else
3796 pic_mode=default
3798 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3799 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3801 # Some flags need to be propagated to the compiler or linker for good
3802 # libtool support.
3803 case $host in
3804 *-*-irix6*)
3805 # Find out which ABI we are using.
3806 echo '#line 3806 "configure"' > conftest.$ac_ext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
3812 if test "$lt_cv_prog_gnu_ld" = yes; then
3813 case `/usr/bin/file conftest.$ac_objext` in
3814 *32-bit*)
3815 LD="${LD-ld} -melf32bsmip"
3817 *N32*)
3818 LD="${LD-ld} -melf32bmipn32"
3820 *64-bit*)
3821 LD="${LD-ld} -melf64bmip"
3823 esac
3824 else
3825 case `/usr/bin/file conftest.$ac_objext` in
3826 *32-bit*)
3827 LD="${LD-ld} -32"
3829 *N32*)
3830 LD="${LD-ld} -n32"
3832 *64-bit*)
3833 LD="${LD-ld} -64"
3835 esac
3838 rm -rf conftest*
3841 ia64-*-hpux*)
3842 # Find out which ABI we are using.
3843 echo 'int i;' > conftest.$ac_ext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; then
3849 case "`/usr/bin/file conftest.o`" in
3850 *ELF-32*)
3851 HPUX_IA64_MODE="32"
3853 *ELF-64*)
3854 HPUX_IA64_MODE="64"
3856 esac
3858 rm -rf conftest*
3861 *-*-sco3.2v5*)
3862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3863 SAVE_CFLAGS="$CFLAGS"
3864 CFLAGS="$CFLAGS -belf"
3865 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3866 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3867 if test "${lt_cv_cc_needs_belf+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3886 main ()
3890 return 0;
3892 _ACEOF
3893 rm -f conftest.$ac_objext conftest$ac_exeext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895 (eval $ac_link) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 lt_cv_cc_needs_belf=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 lt_cv_cc_needs_belf=no
3921 rm -f conftest.err conftest.$ac_objext \
3922 conftest$ac_exeext conftest.$ac_ext
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3934 CFLAGS="$SAVE_CFLAGS"
3939 esac
3942 # Save cache, so that ltconfig can load it
3943 cat >confcache <<\_ACEOF
3944 # This file is a shell script that caches the results of configure
3945 # tests run on this system so they can be shared between configure
3946 # scripts and configure runs, see configure's option --config-cache.
3947 # It is not useful on other systems. If it contains results you don't
3948 # want to keep, you may remove or edit it.
3950 # config.status only pays attention to the cache file if you give it
3951 # the --recheck option to rerun configure.
3953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3955 # following values.
3957 _ACEOF
3959 # The following way of writing the cache mishandles newlines in values,
3960 # but we know of no workaround that is simple, portable, and efficient.
3961 # So, don't put newlines in cache variables' values.
3962 # Ultrix sh set writes to stderr and can't be redirected directly,
3963 # and sets the high bit in the cache file unless we assign to the vars.
3965 (set) 2>&1 |
3966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3967 *ac_space=\ *)
3968 # `set' does not quote correctly, so add quotes (double-quote
3969 # substitution turns \\\\ into \\, and sed turns \\ into \).
3970 sed -n \
3971 "s/'/'\\\\''/g;
3972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3975 # `set' quotes correctly as required by POSIX, so do not add quotes.
3976 sed -n \
3977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3979 esac;
3981 sed '
3982 t clear
3983 : clear
3984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3985 t end
3986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3987 : end' >>confcache
3988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3989 if test -w $cache_file; then
3990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3991 cat confcache >$cache_file
3992 else
3993 echo "not updating unwritable cache $cache_file"
3996 rm -f confcache
3998 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3999 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4000 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4001 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4002 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4003 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4004 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4005 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4006 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4007 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4008 echo "$as_me: error: libtool configure failed" >&2;}
4009 { (exit 1); exit 1; }; }
4011 # Reload cache, that may have been modified by ltconfig
4012 if test -r "$cache_file"; then
4013 # Some versions of bash will fail to source /dev/null (special
4014 # files actually), so we avoid doing that.
4015 if test -f "$cache_file"; then
4016 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4017 echo "$as_me: loading cache $cache_file" >&6;}
4018 case $cache_file in
4019 [\\/]* | ?:[\\/]* ) . $cache_file;;
4020 *) . ./$cache_file;;
4021 esac
4023 else
4024 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4025 echo "$as_me: creating cache $cache_file" >&6;}
4026 >$cache_file
4030 # This can be used to rebuild libtool when needed
4031 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4033 # Always use our own libtool.
4034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4036 # Redirect the config.log output again, so that the ltconfig log is not
4037 # clobbered by the next message.
4038 exec 5>>./config.log
4046 # Check whether --enable-targets or --disable-targets was given.
4047 if test "${enable_targets+set}" = set; then
4048 enableval="$enable_targets"
4049 case "${enableval}" in
4050 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4051 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4052 { (exit 1); exit 1; }; }
4054 no) enable_targets= ;;
4055 *) enable_targets=$enableval ;;
4056 esac
4057 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4058 if test "${enable_commonbfdlib+set}" = set; then
4059 enableval="$enable_commonbfdlib"
4060 case "${enableval}" in
4061 yes) commonbfdlib=true ;;
4062 no) commonbfdlib=false ;;
4063 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4064 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4065 { (exit 1); exit 1; }; } ;;
4066 esac
4068 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4070 # Check whether --enable-werror or --disable-werror was given.
4071 if test "${enable_werror+set}" = set; then
4072 enableval="$enable_werror"
4073 case "${enableval}" in
4074 yes | y) ERROR_ON_WARNING="yes" ;;
4075 no | n) ERROR_ON_WARNING="no" ;;
4076 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4077 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4078 { (exit 1); exit 1; }; } ;;
4079 esac
4082 # Enable -Werror by default when using gcc
4083 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4084 ERROR_ON_WARNING=yes
4087 NO_WERROR=
4088 if test "${ERROR_ON_WARNING}" = yes ; then
4089 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4090 NO_WERROR="-Wno-error"
4093 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4094 if test "${enable_build_warnings+set}" = set; then
4095 enableval="$enable_build_warnings"
4096 case "${enableval}" in
4097 yes) ;;
4098 no) WARN_CFLAGS="-w";;
4099 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4100 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4101 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4102 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4103 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4104 esac
4107 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4108 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4114 ac_config_headers="$ac_config_headers config.h:config.in"
4117 if test -z "$target" ; then
4118 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4119 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4120 { (exit 1); exit 1; }; }
4122 if test -z "$host" ; then
4123 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4124 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4125 { (exit 1); exit 1; }; }
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_prog_CC+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4155 done
4156 done
4160 CC=$ac_cv_prog_CC
4161 if test -n "$CC"; then
4162 echo "$as_me:$LINENO: result: $CC" >&5
4163 echo "${ECHO_T}$CC" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4170 if test -z "$ac_cv_prog_CC"; then
4171 ac_ct_CC=$CC
4172 # Extract the first word of "gcc", so it can be a program name with args.
4173 set dummy gcc; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_CC="gcc"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4199 if test -n "$ac_ct_CC"; then
4200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4201 echo "${ECHO_T}$ac_ct_CC" >&6
4202 else
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4207 CC=$ac_ct_CC
4208 else
4209 CC="$ac_cv_prog_CC"
4212 if test -z "$CC"; then
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}cc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_CC="${ac_tool_prefix}cc"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4235 done
4236 done
4240 CC=$ac_cv_prog_CC
4241 if test -n "$CC"; then
4242 echo "$as_me:$LINENO: result: $CC" >&5
4243 echo "${ECHO_T}$CC" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4250 if test -z "$ac_cv_prog_CC"; then
4251 ac_ct_CC=$CC
4252 # Extract the first word of "cc", so it can be a program name with args.
4253 set dummy cc; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 if test -n "$ac_ct_CC"; then
4260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_CC="cc"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4273 done
4274 done
4278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4279 if test -n "$ac_ct_CC"; then
4280 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4281 echo "${ECHO_T}$ac_ct_CC" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4287 CC=$ac_ct_CC
4288 else
4289 CC="$ac_cv_prog_CC"
4293 if test -z "$CC"; then
4294 # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_CC+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC="$CC" # Let the user override the test.
4303 else
4304 ac_prog_rejected=no
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4313 ac_prog_rejected=yes
4314 continue
4316 ac_cv_prog_CC="cc"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4323 if test $ac_prog_rejected = yes; then
4324 # We found a bogon in the path, so make sure we never use it.
4325 set dummy $ac_cv_prog_CC
4326 shift
4327 if test $# != 0; then
4328 # We chose a different compiler from the bogus one.
4329 # However, it has the same basename, so the bogon will be chosen
4330 # first if we set CC to just the basename; use the full file name.
4331 shift
4332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4337 CC=$ac_cv_prog_CC
4338 if test -n "$CC"; then
4339 echo "$as_me:$LINENO: result: $CC" >&5
4340 echo "${ECHO_T}$CC" >&6
4341 else
4342 echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6
4347 if test -z "$CC"; then
4348 if test -n "$ac_tool_prefix"; then
4349 for ac_prog in cl
4351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_CC+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 if test -n "$CC"; then
4359 ac_cv_prog_CC="$CC" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4377 CC=$ac_cv_prog_CC
4378 if test -n "$CC"; then
4379 echo "$as_me:$LINENO: result: $CC" >&5
4380 echo "${ECHO_T}$CC" >&6
4381 else
4382 echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4386 test -n "$CC" && break
4387 done
4389 if test -z "$CC"; then
4390 ac_ct_CC=$CC
4391 for ac_prog in cl
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy $ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 if test -n "$ac_ct_CC"; then
4401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_CC="$ac_prog"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4414 done
4415 done
4419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4420 if test -n "$ac_ct_CC"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4422 echo "${ECHO_T}$ac_ct_CC" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 test -n "$ac_ct_CC" && break
4429 done
4431 CC=$ac_ct_CC
4437 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4438 See \`config.log' for more details." >&5
4439 echo "$as_me: error: no acceptable C compiler found in \$PATH
4440 See \`config.log' for more details." >&2;}
4441 { (exit 1); exit 1; }; }
4443 # Provide some information about the compiler.
4444 echo "$as_me:$LINENO:" \
4445 "checking for C compiler version" >&5
4446 ac_compiler=`set X $ac_compile; echo $2`
4447 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4448 (eval $ac_compiler --version </dev/null >&5) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }
4452 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4453 (eval $ac_compiler -v </dev/null >&5) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }
4457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4458 (eval $ac_compiler -V </dev/null >&5) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }
4463 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4476 main ()
4478 #ifndef __GNUC__
4479 choke me
4480 #endif
4483 return 0;
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 ac_compiler_gnu=yes
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 ac_compiler_gnu=no
4514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4518 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4519 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4520 GCC=`test $ac_compiler_gnu = yes && echo yes`
4521 ac_test_CFLAGS=${CFLAGS+set}
4522 ac_save_CFLAGS=$CFLAGS
4523 CFLAGS="-g"
4524 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4525 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4526 if test "${ac_cv_prog_cc_g+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4537 main ()
4541 return 0;
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4547 ac_status=$?
4548 grep -v '^ *+' conftest.er1 >conftest.err
4549 rm -f conftest.er1
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_prog_cc_g=yes
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 ac_cv_prog_cc_g=no
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4575 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4576 if test "$ac_test_CFLAGS" = set; then
4577 CFLAGS=$ac_save_CFLAGS
4578 elif test $ac_cv_prog_cc_g = yes; then
4579 if test "$GCC" = yes; then
4580 CFLAGS="-g -O2"
4581 else
4582 CFLAGS="-g"
4584 else
4585 if test "$GCC" = yes; then
4586 CFLAGS="-O2"
4587 else
4588 CFLAGS=
4591 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4592 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4593 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 ac_cv_prog_cc_stdc=no
4597 ac_save_CC=$CC
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 #include <stdarg.h>
4605 #include <stdio.h>
4606 #include <sys/types.h>
4607 #include <sys/stat.h>
4608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4609 struct buf { int x; };
4610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4611 static char *e (p, i)
4612 char **p;
4613 int i;
4615 return p[i];
4617 static char *f (char * (*g) (char **, int), char **p, ...)
4619 char *s;
4620 va_list v;
4621 va_start (v,p);
4622 s = g (p, va_arg (v,int));
4623 va_end (v);
4624 return s;
4627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4628 function prototypes and stuff, but not '\xHH' hex character constants.
4629 These don't provoke an error unfortunately, instead are silently treated
4630 as 'x'. The following induces an error, until -std1 is added to get
4631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4632 array size at least. It's necessary to write '\x00'==0 to get something
4633 that's true only with -std1. */
4634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4636 int test (int i, double x);
4637 struct s1 {int (*f) (int a);};
4638 struct s2 {int (*f) (double a);};
4639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4640 int argc;
4641 char **argv;
4643 main ()
4645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4647 return 0;
4649 _ACEOF
4650 # Don't try gcc -ansi; that turns off useful extensions and
4651 # breaks some systems' header files.
4652 # AIX -qlanglvl=ansi
4653 # Ultrix and OSF/1 -std1
4654 # HP-UX 10.20 and later -Ae
4655 # HP-UX older versions -Aa -D_HPUX_SOURCE
4656 # SVR4 -Xc -D__EXTENSIONS__
4657 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4659 CC="$ac_save_CC $ac_arg"
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_prog_cc_stdc=$ac_arg
4682 break
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4688 rm -f conftest.err conftest.$ac_objext
4689 done
4690 rm -f conftest.$ac_ext conftest.$ac_objext
4691 CC=$ac_save_CC
4695 case "x$ac_cv_prog_cc_stdc" in
4696 x|xno)
4697 echo "$as_me:$LINENO: result: none needed" >&5
4698 echo "${ECHO_T}none needed" >&6 ;;
4700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4702 CC="$CC $ac_cv_prog_cc_stdc" ;;
4703 esac
4705 # Some people use a C++ compiler to compile C. Since we use `exit',
4706 # in C++ we need to declare it. In case someone uses the same compiler
4707 # for both compiling C and C++ we need to have the C++ compiler decide
4708 # the declaration of exit, since it's the most demanding environment.
4709 cat >conftest.$ac_ext <<_ACEOF
4710 #ifndef __cplusplus
4711 choke me
4712 #endif
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 for ac_declaration in \
4736 '' \
4737 'extern "C" void std::exit (int) throw (); using std::exit;' \
4738 'extern "C" void std::exit (int); using std::exit;' \
4739 'extern "C" void exit (int) throw ();' \
4740 'extern "C" void exit (int);' \
4741 'void exit (int);'
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 $ac_declaration
4750 #include <stdlib.h>
4752 main ()
4754 exit (42);
4756 return 0;
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 continue
4787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4788 cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 $ac_declaration
4796 main ()
4798 exit (42);
4800 return 0;
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 break
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831 done
4832 rm -f conftest*
4833 if test -n "$ac_declaration"; then
4834 echo '#ifdef __cplusplus' >>confdefs.h
4835 echo $ac_declaration >>confdefs.h
4836 echo '#endif' >>confdefs.h
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 for ac_prog in 'bison -y' byacc
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_YACC+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 if test -n "$YACC"; then
4862 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_YACC="$ac_prog"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4880 YACC=$ac_cv_prog_YACC
4881 if test -n "$YACC"; then
4882 echo "$as_me:$LINENO: result: $YACC" >&5
4883 echo "${ECHO_T}$YACC" >&6
4884 else
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 test -n "$YACC" && break
4890 done
4891 test -n "$YACC" || YACC="yacc"
4893 for ac_prog in flex lex
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_LEX+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 if test -n "$LEX"; then
4903 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_LEX="$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4921 LEX=$ac_cv_prog_LEX
4922 if test -n "$LEX"; then
4923 echo "$as_me:$LINENO: result: $LEX" >&5
4924 echo "${ECHO_T}$LEX" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 test -n "$LEX" && break
4931 done
4932 test -n "$LEX" || LEX=":"
4934 if test -z "$LEXLIB"
4935 then
4936 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4937 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4938 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 ac_check_lib_save_LIBS=$LIBS
4942 LIBS="-lfl $LIBS"
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 /* Override any gcc2 internal prototype to avoid an error. */
4951 #ifdef __cplusplus
4952 extern "C"
4953 #endif
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4956 char yywrap ();
4958 main ()
4960 yywrap ();
4962 return 0;
4964 _ACEOF
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_lib_fl_yywrap=yes
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_lib_fl_yywrap=no
4993 rm -f conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4995 LIBS=$ac_check_lib_save_LIBS
4997 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4998 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4999 if test $ac_cv_lib_fl_yywrap = yes; then
5000 LEXLIB="-lfl"
5001 else
5002 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5003 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5004 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-ll $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5017 #ifdef __cplusplus
5018 extern "C"
5019 #endif
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5022 char yywrap ();
5024 main ()
5026 yywrap ();
5028 return 0;
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_lib_l_yywrap=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 ac_cv_lib_l_yywrap=no
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 LIBS=$ac_check_lib_save_LIBS
5063 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5064 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5065 if test $ac_cv_lib_l_yywrap = yes; then
5066 LEXLIB="-ll"
5073 if test "x$LEX" != "x:"; then
5074 echo "$as_me:$LINENO: checking lex output file root" >&5
5075 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5076 if test "${ac_cv_prog_lex_root+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 # The minimal lex program is just a single line: %%. But some broken lexes
5080 # (Solaris, I think it was) want two %% lines, so accommodate them.
5081 cat >conftest.l <<_ACEOF
5084 _ACEOF
5085 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5086 (eval $LEX conftest.l) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }
5090 if test -f lex.yy.c; then
5091 ac_cv_prog_lex_root=lex.yy
5092 elif test -f lexyy.c; then
5093 ac_cv_prog_lex_root=lexyy
5094 else
5095 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5096 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5097 { (exit 1); exit 1; }; }
5100 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5101 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5102 rm -f conftest.l
5103 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5105 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5106 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5107 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 # POSIX says lex can declare yytext either as a pointer or an array; the
5111 # default is implementation-dependent. Figure out which it is, since
5112 # not all implementations provide the %pointer and %array declarations.
5113 ac_cv_prog_lex_yytext_pointer=no
5114 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5115 ac_save_LIBS=$LIBS
5116 LIBS="$LIBS $LEXLIB"
5117 cat >conftest.$ac_ext <<_ACEOF
5118 `cat $LEX_OUTPUT_ROOT.c`
5119 _ACEOF
5120 rm -f conftest.$ac_objext conftest$ac_exeext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5122 (eval $ac_link) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest$ac_exeext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_prog_lex_yytext_pointer=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5147 rm -f conftest.err conftest.$ac_objext \
5148 conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_save_LIBS
5150 rm -f "${LEX_OUTPUT_ROOT}.c"
5153 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5154 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5155 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5157 cat >>confdefs.h <<\_ACEOF
5158 #define YYTEXT_POINTER 1
5159 _ACEOF
5164 if test "$LEX" = :; then
5165 LEX=${am_missing_run}flex
5168 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw"
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_RANLIB+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 if test -n "$RANLIB"; then
5178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5196 RANLIB=$ac_cv_prog_RANLIB
5197 if test -n "$RANLIB"; then
5198 echo "$as_me:$LINENO: result: $RANLIB" >&5
5199 echo "${ECHO_T}$RANLIB" >&6
5200 else
5201 echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5206 if test -z "$ac_cv_prog_RANLIB"; then
5207 ac_ct_RANLIB=$RANLIB
5208 # Extract the first word of "ranlib", so it can be a program name with args.
5209 set dummy ranlib; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 if test -n "$ac_ct_RANLIB"; then
5216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_RANLIB="ranlib"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5229 done
5230 done
5232 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5236 if test -n "$ac_ct_RANLIB"; then
5237 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5239 else
5240 echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5244 RANLIB=$ac_ct_RANLIB
5245 else
5246 RANLIB="$ac_cv_prog_RANLIB"
5249 ac_ext=c
5250 ac_cpp='$CPP $CPPFLAGS'
5251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5254 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5255 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5256 # On Suns, sometimes $CPP names a directory.
5257 if test -n "$CPP" && test -d "$CPP"; then
5258 CPP=
5260 if test -z "$CPP"; then
5261 if test "${ac_cv_prog_CPP+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 # Double quotes because CPP needs to be expanded
5265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5267 ac_preproc_ok=false
5268 for ac_c_preproc_warn_flag in '' yes
5270 # Use a header file that comes with gcc, so configuring glibc
5271 # with a fresh cross-compiler works.
5272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273 # <limits.h> exists even on freestanding compilers.
5274 # On the NeXT, cc -E runs the code through the compiler's parser,
5275 # not just through cpp. "Syntax error" is here to catch this case.
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #ifdef __STDC__
5283 # include <limits.h>
5284 #else
5285 # include <assert.h>
5286 #endif
5287 Syntax error
5288 _ACEOF
5289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } >/dev/null; then
5297 if test -s conftest.err; then
5298 ac_cpp_err=$ac_c_preproc_warn_flag
5299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5300 else
5301 ac_cpp_err=
5303 else
5304 ac_cpp_err=yes
5306 if test -z "$ac_cpp_err"; then
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 # Broken: fails on valid input.
5313 continue
5315 rm -f conftest.err conftest.$ac_ext
5317 # OK, works on sane cases. Now check whether non-existent headers
5318 # can be detected and how.
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <ac_nonexistent.h>
5326 _ACEOF
5327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338 else
5339 ac_cpp_err=
5341 else
5342 ac_cpp_err=yes
5344 if test -z "$ac_cpp_err"; then
5345 # Broken: success on invalid input.
5346 continue
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 # Passes both tests.
5352 ac_preproc_ok=:
5353 break
5355 rm -f conftest.err conftest.$ac_ext
5357 done
5358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5359 rm -f conftest.err conftest.$ac_ext
5360 if $ac_preproc_ok; then
5361 break
5364 done
5365 ac_cv_prog_CPP=$CPP
5368 CPP=$ac_cv_prog_CPP
5369 else
5370 ac_cv_prog_CPP=$CPP
5372 echo "$as_me:$LINENO: result: $CPP" >&5
5373 echo "${ECHO_T}$CPP" >&6
5374 ac_preproc_ok=false
5375 for ac_c_preproc_warn_flag in '' yes
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 #ifdef __STDC__
5390 # include <limits.h>
5391 #else
5392 # include <assert.h>
5393 #endif
5394 Syntax error
5395 _ACEOF
5396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null; then
5404 if test -s conftest.err; then
5405 ac_cpp_err=$ac_c_preproc_warn_flag
5406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5407 else
5408 ac_cpp_err=
5410 else
5411 ac_cpp_err=yes
5413 if test -z "$ac_cpp_err"; then
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 # Broken: fails on valid input.
5420 continue
5422 rm -f conftest.err conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether non-existent headers
5425 # can be detected and how.
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <ac_nonexistent.h>
5433 _ACEOF
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null; then
5442 if test -s conftest.err; then
5443 ac_cpp_err=$ac_c_preproc_warn_flag
5444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445 else
5446 ac_cpp_err=
5448 else
5449 ac_cpp_err=yes
5451 if test -z "$ac_cpp_err"; then
5452 # Broken: success on invalid input.
5453 continue
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 # Passes both tests.
5459 ac_preproc_ok=:
5460 break
5462 rm -f conftest.err conftest.$ac_ext
5464 done
5465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5466 rm -f conftest.err conftest.$ac_ext
5467 if $ac_preproc_ok; then
5469 else
5470 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5471 See \`config.log' for more details." >&5
5472 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5473 See \`config.log' for more details." >&2;}
5474 { (exit 1); exit 1; }; }
5477 ac_ext=c
5478 ac_cpp='$CPP $CPPFLAGS'
5479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484 echo "$as_me:$LINENO: checking for egrep" >&5
5485 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5486 if test "${ac_cv_prog_egrep+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5490 then ac_cv_prog_egrep='grep -E'
5491 else ac_cv_prog_egrep='egrep'
5494 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5495 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5496 EGREP=$ac_cv_prog_egrep
5499 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5500 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5501 if test "${ac_cv_header_stdc+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <stdlib.h>
5511 #include <stdarg.h>
5512 #include <string.h>
5513 #include <float.h>
5516 main ()
5520 return 0;
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_header_stdc=yes
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_cv_header_stdc=no
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #include <string.h>
5563 _ACEOF
5564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5565 $EGREP "memchr" >/dev/null 2>&1; then
5567 else
5568 ac_cv_header_stdc=no
5570 rm -f conftest*
5574 if test $ac_cv_header_stdc = yes; then
5575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #include <stdlib.h>
5584 _ACEOF
5585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5586 $EGREP "free" >/dev/null 2>&1; then
5588 else
5589 ac_cv_header_stdc=no
5591 rm -f conftest*
5595 if test $ac_cv_header_stdc = yes; then
5596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5597 if test "$cross_compiling" = yes; then
5599 else
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <ctype.h>
5607 #if ((' ' & 0x0FF) == 0x020)
5608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5610 #else
5611 # define ISLOWER(c) \
5612 (('a' <= (c) && (c) <= 'i') \
5613 || ('j' <= (c) && (c) <= 'r') \
5614 || ('s' <= (c) && (c) <= 'z'))
5615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5616 #endif
5618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5620 main ()
5622 int i;
5623 for (i = 0; i < 256; i++)
5624 if (XOR (islower (i), ISLOWER (i))
5625 || toupper (i) != TOUPPER (i))
5626 exit(2);
5627 exit (0);
5629 _ACEOF
5630 rm -f conftest$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5642 else
5643 echo "$as_me: program exited with status $ac_status" >&5
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ( exit $ac_status )
5648 ac_cv_header_stdc=no
5650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5654 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5655 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5656 if test $ac_cv_header_stdc = yes; then
5658 cat >>confdefs.h <<\_ACEOF
5659 #define STDC_HEADERS 1
5660 _ACEOF
5664 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5665 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5666 if test "${ac_cv_c_const+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5677 main ()
5679 /* FIXME: Include the comments suggested by Paul. */
5680 #ifndef __cplusplus
5681 /* Ultrix mips cc rejects this. */
5682 typedef int charset[2];
5683 const charset x;
5684 /* SunOS 4.1.1 cc rejects this. */
5685 char const *const *ccp;
5686 char **p;
5687 /* NEC SVR4.0.2 mips cc rejects this. */
5688 struct point {int x, y;};
5689 static struct point const zero = {0,0};
5690 /* AIX XL C 1.02.0.0 rejects this.
5691 It does not let you subtract one const X* pointer from another in
5692 an arm of an if-expression whose if-part is not a constant
5693 expression */
5694 const char *g = "string";
5695 ccp = &g + (g ? g-g : 0);
5696 /* HPUX 7.0 cc rejects these. */
5697 ++ccp;
5698 p = (char**) ccp;
5699 ccp = (char const *const *) p;
5700 { /* SCO 3.2v4 cc rejects this. */
5701 char *t;
5702 char const *s = 0 ? (char *) 0 : (char const *) 0;
5704 *t++ = 0;
5706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5707 int x[] = {25, 17};
5708 const int *foo = &x[0];
5709 ++foo;
5711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5712 typedef const int *iptr;
5713 iptr p = 0;
5714 ++p;
5716 { /* AIX XL C 1.02.0.0 rejects this saying
5717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5718 struct s { int j; const int *ap[3]; };
5719 struct s *b; b->j = 5;
5721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5722 const int foo = 10;
5724 #endif
5727 return 0;
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_c_const=yes
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_cv_c_const=no
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5760 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5761 echo "${ECHO_T}$ac_cv_c_const" >&6
5762 if test $ac_cv_c_const = no; then
5764 cat >>confdefs.h <<\_ACEOF
5765 #define const
5766 _ACEOF
5770 echo "$as_me:$LINENO: checking for inline" >&5
5771 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5772 if test "${ac_cv_c_inline+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 ac_cv_c_inline=no
5776 for ac_kw in inline __inline__ __inline; do
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #ifndef __cplusplus
5784 typedef int foo_t;
5785 static $ac_kw foo_t static_foo () {return 0; }
5786 $ac_kw foo_t foo () {return 0; }
5787 #endif
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_c_inline=$ac_kw; break
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5818 done
5821 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5822 echo "${ECHO_T}$ac_cv_c_inline" >&6
5825 case $ac_cv_c_inline in
5826 inline | yes) ;;
5828 case $ac_cv_c_inline in
5829 no) ac_val=;;
5830 *) ac_val=$ac_cv_c_inline;;
5831 esac
5832 cat >>confdefs.h <<_ACEOF
5833 #ifndef __cplusplus
5834 #define inline $ac_val
5835 #endif
5836 _ACEOF
5838 esac
5840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5851 inttypes.h stdint.h unistd.h
5853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 $ac_includes_default
5867 #include <$ac_header>
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 eval "$as_ac_Header=yes"
5891 else
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5895 eval "$as_ac_Header=no"
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5902 cat >>confdefs.h <<_ACEOF
5903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5904 _ACEOF
5908 done
5911 echo "$as_me:$LINENO: checking for off_t" >&5
5912 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5913 if test "${ac_cv_type_off_t+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 $ac_includes_default
5924 main ()
5926 if ((off_t *) 0)
5927 return 0;
5928 if (sizeof (off_t))
5929 return 0;
5931 return 0;
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_type_off_t=yes
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_cv_type_off_t=no
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5965 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5966 if test $ac_cv_type_off_t = yes; then
5968 else
5970 cat >>confdefs.h <<_ACEOF
5971 #define off_t long
5972 _ACEOF
5976 echo "$as_me:$LINENO: checking for size_t" >&5
5977 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5978 if test "${ac_cv_type_size_t+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5989 main ()
5991 if ((size_t *) 0)
5992 return 0;
5993 if (sizeof (size_t))
5994 return 0;
5996 return 0;
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_cv_type_size_t=yes
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_cv_type_size_t=no
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6029 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6030 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6031 if test $ac_cv_type_size_t = yes; then
6033 else
6035 cat >>confdefs.h <<_ACEOF
6036 #define size_t unsigned
6037 _ACEOF
6041 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6042 # for constant arguments. Useless!
6043 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6044 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6045 if test "${ac_cv_working_alloca_h+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <alloca.h>
6056 main ()
6058 char *p = (char *) alloca (2 * sizeof (int));
6060 return 0;
6062 _ACEOF
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_working_alloca_h=yes
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_cv_working_alloca_h=no
6091 rm -f conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6095 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6096 if test $ac_cv_working_alloca_h = yes; then
6098 cat >>confdefs.h <<\_ACEOF
6099 #define HAVE_ALLOCA_H 1
6100 _ACEOF
6104 echo "$as_me:$LINENO: checking for alloca" >&5
6105 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6106 if test "${ac_cv_func_alloca_works+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #ifdef __GNUC__
6116 # define alloca __builtin_alloca
6117 #else
6118 # ifdef _MSC_VER
6119 # include <malloc.h>
6120 # define alloca _alloca
6121 # else
6122 # if HAVE_ALLOCA_H
6123 # include <alloca.h>
6124 # else
6125 # ifdef _AIX
6126 #pragma alloca
6127 # else
6128 # ifndef alloca /* predefined by HP cc +Olibcalls */
6129 char *alloca ();
6130 # endif
6131 # endif
6132 # endif
6133 # endif
6134 #endif
6137 main ()
6139 char *p = (char *) alloca (1);
6141 return 0;
6143 _ACEOF
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest$ac_exeext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 ac_cv_func_alloca_works=yes
6166 else
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 ac_cv_func_alloca_works=no
6172 rm -f conftest.err conftest.$ac_objext \
6173 conftest$ac_exeext conftest.$ac_ext
6175 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6176 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6178 if test $ac_cv_func_alloca_works = yes; then
6180 cat >>confdefs.h <<\_ACEOF
6181 #define HAVE_ALLOCA 1
6182 _ACEOF
6184 else
6185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6186 # that cause trouble. Some versions do not even contain alloca or
6187 # contain a buggy version. If you still want to use their alloca,
6188 # use ar to extract alloca.o from them instead of compiling alloca.c.
6190 ALLOCA=alloca.$ac_objext
6192 cat >>confdefs.h <<\_ACEOF
6193 #define C_ALLOCA 1
6194 _ACEOF
6197 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6198 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6199 if test "${ac_cv_os_cray+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #if defined(CRAY) && ! defined(CRAY2)
6209 webecray
6210 #else
6211 wenotbecray
6212 #endif
6214 _ACEOF
6215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216 $EGREP "webecray" >/dev/null 2>&1; then
6217 ac_cv_os_cray=yes
6218 else
6219 ac_cv_os_cray=no
6221 rm -f conftest*
6224 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6225 echo "${ECHO_T}$ac_cv_os_cray" >&6
6226 if test $ac_cv_os_cray = yes; then
6227 for ac_func in _getb67 GETB67 getb67; do
6228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6229 echo "$as_me:$LINENO: checking for $ac_func" >&5
6230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6231 if eval "test \"\${$as_ac_var+set}\" = set"; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6242 #define $ac_func innocuous_$ac_func
6244 /* System header to define __stub macros and hopefully few prototypes,
6245 which can conflict with char $ac_func (); below.
6246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6247 <limits.h> exists even on freestanding compilers. */
6249 #ifdef __STDC__
6250 # include <limits.h>
6251 #else
6252 # include <assert.h>
6253 #endif
6255 #undef $ac_func
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 #ifdef __cplusplus
6259 extern "C"
6261 #endif
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char $ac_func ();
6265 /* The GNU C library defines this for functions which it implements
6266 to always fail with ENOSYS. Some functions are actually named
6267 something starting with __ and the normal name is an alias. */
6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6269 choke me
6270 #else
6271 char (*f) () = $ac_func;
6272 #endif
6273 #ifdef __cplusplus
6275 #endif
6278 main ()
6280 return f != $ac_func;
6282 return 0;
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 eval "$as_ac_var=yes"
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 eval "$as_ac_var=no"
6313 rm -f conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6318 if test `eval echo '${'$as_ac_var'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define CRAY_STACKSEG_END $ac_func
6322 _ACEOF
6324 break
6327 done
6330 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6331 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6332 if test "${ac_cv_c_stack_direction+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 if test "$cross_compiling" = yes; then
6336 ac_cv_c_stack_direction=0
6337 else
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6345 find_stack_direction ()
6347 static char *addr = 0;
6348 auto char dummy;
6349 if (addr == 0)
6351 addr = &dummy;
6352 return find_stack_direction ();
6354 else
6355 return (&dummy > addr) ? 1 : -1;
6359 main ()
6361 exit (find_stack_direction () < 0);
6363 _ACEOF
6364 rm -f conftest$ac_exeext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_c_stack_direction=1
6376 else
6377 echo "$as_me: program exited with status $ac_status" >&5
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ( exit $ac_status )
6382 ac_cv_c_stack_direction=-1
6384 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6388 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6390 cat >>confdefs.h <<_ACEOF
6391 #define STACK_DIRECTION $ac_cv_c_stack_direction
6392 _ACEOF
6399 for ac_header in stdlib.h unistd.h
6401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403 echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6410 else
6411 # Is the header compilable?
6412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h. */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6420 $ac_includes_default
6421 #include <$ac_header>
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477 else
6478 ac_cpp_err=
6480 else
6481 ac_cpp_err=yes
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497 yes:no: )
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6504 no:yes:* )
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6518 cat <<\_ASBOX
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists. ##
6521 ## ------------------------------------------ ##
6522 _ASBOX
6524 sed "s/^/$as_me: WARNING: /" >&2
6526 esac
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 eval "$as_ac_Header=\$ac_header_preproc"
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6545 done
6548 for ac_func in getpagesize
6550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6551 echo "$as_me:$LINENO: checking for $ac_func" >&5
6552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_var+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6564 #define $ac_func innocuous_$ac_func
6566 /* System header to define __stub macros and hopefully few prototypes,
6567 which can conflict with char $ac_func (); below.
6568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569 <limits.h> exists even on freestanding compilers. */
6571 #ifdef __STDC__
6572 # include <limits.h>
6573 #else
6574 # include <assert.h>
6575 #endif
6577 #undef $ac_func
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 #ifdef __cplusplus
6581 extern "C"
6583 #endif
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char $ac_func ();
6587 /* The GNU C library defines this for functions which it implements
6588 to always fail with ENOSYS. Some functions are actually named
6589 something starting with __ and the normal name is an alias. */
6590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6591 choke me
6592 #else
6593 char (*f) () = $ac_func;
6594 #endif
6595 #ifdef __cplusplus
6597 #endif
6600 main ()
6602 return f != $ac_func;
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 eval "$as_ac_var=yes"
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 eval "$as_ac_var=no"
6635 rm -f conftest.err conftest.$ac_objext \
6636 conftest$ac_exeext conftest.$ac_ext
6638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6640 if test `eval echo '${'$as_ac_var'}'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6643 _ACEOF
6646 done
6648 echo "$as_me:$LINENO: checking for working mmap" >&5
6649 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6650 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 if test "$cross_compiling" = yes; then
6654 ac_cv_func_mmap_fixed_mapped=no
6655 else
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 $ac_includes_default
6663 /* malloc might have been renamed as rpl_malloc. */
6664 #undef malloc
6666 /* Thanks to Mike Haertel and Jim Avera for this test.
6667 Here is a matrix of mmap possibilities:
6668 mmap private not fixed
6669 mmap private fixed at somewhere currently unmapped
6670 mmap private fixed at somewhere already mapped
6671 mmap shared not fixed
6672 mmap shared fixed at somewhere currently unmapped
6673 mmap shared fixed at somewhere already mapped
6674 For private mappings, we should verify that changes cannot be read()
6675 back from the file, nor mmap's back from the file at a different
6676 address. (There have been systems where private was not correctly
6677 implemented like the infamous i386 svr4.0, and systems where the
6678 VM page cache was not coherent with the file system buffer cache
6679 like early versions of FreeBSD and possibly contemporary NetBSD.)
6680 For shared mappings, we should conversely verify that changes get
6681 propagated back to all the places they're supposed to be.
6683 Grep wants private fixed already mapped.
6684 The main things grep needs to know about mmap are:
6685 * does it exist and is it safe to write into the mmap'd area
6686 * how to use it (BSD variants) */
6688 #include <fcntl.h>
6689 #include <sys/mman.h>
6691 #if !STDC_HEADERS && !HAVE_STDLIB_H
6692 char *malloc ();
6693 #endif
6695 /* This mess was copied from the GNU getpagesize.h. */
6696 #if !HAVE_GETPAGESIZE
6697 /* Assume that all systems that can run configure have sys/param.h. */
6698 # if !HAVE_SYS_PARAM_H
6699 # define HAVE_SYS_PARAM_H 1
6700 # endif
6702 # ifdef _SC_PAGESIZE
6703 # define getpagesize() sysconf(_SC_PAGESIZE)
6704 # else /* no _SC_PAGESIZE */
6705 # if HAVE_SYS_PARAM_H
6706 # include <sys/param.h>
6707 # ifdef EXEC_PAGESIZE
6708 # define getpagesize() EXEC_PAGESIZE
6709 # else /* no EXEC_PAGESIZE */
6710 # ifdef NBPG
6711 # define getpagesize() NBPG * CLSIZE
6712 # ifndef CLSIZE
6713 # define CLSIZE 1
6714 # endif /* no CLSIZE */
6715 # else /* no NBPG */
6716 # ifdef NBPC
6717 # define getpagesize() NBPC
6718 # else /* no NBPC */
6719 # ifdef PAGESIZE
6720 # define getpagesize() PAGESIZE
6721 # endif /* PAGESIZE */
6722 # endif /* no NBPC */
6723 # endif /* no NBPG */
6724 # endif /* no EXEC_PAGESIZE */
6725 # else /* no HAVE_SYS_PARAM_H */
6726 # define getpagesize() 8192 /* punt totally */
6727 # endif /* no HAVE_SYS_PARAM_H */
6728 # endif /* no _SC_PAGESIZE */
6730 #endif /* no HAVE_GETPAGESIZE */
6733 main ()
6735 char *data, *data2, *data3;
6736 int i, pagesize;
6737 int fd;
6739 pagesize = getpagesize ();
6741 /* First, make a file with some known garbage in it. */
6742 data = (char *) malloc (pagesize);
6743 if (!data)
6744 exit (1);
6745 for (i = 0; i < pagesize; ++i)
6746 *(data + i) = rand ();
6747 umask (0);
6748 fd = creat ("conftest.mmap", 0600);
6749 if (fd < 0)
6750 exit (1);
6751 if (write (fd, data, pagesize) != pagesize)
6752 exit (1);
6753 close (fd);
6755 /* Next, try to mmap the file at a fixed address which already has
6756 something else allocated at it. If we can, also make sure that
6757 we see the same garbage. */
6758 fd = open ("conftest.mmap", O_RDWR);
6759 if (fd < 0)
6760 exit (1);
6761 data2 = (char *) malloc (2 * pagesize);
6762 if (!data2)
6763 exit (1);
6764 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6765 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6766 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6767 exit (1);
6768 for (i = 0; i < pagesize; ++i)
6769 if (*(data + i) != *(data2 + i))
6770 exit (1);
6772 /* Finally, make sure that changes to the mapped area do not
6773 percolate back to the file as seen by read(). (This is a bug on
6774 some variants of i386 svr4.0.) */
6775 for (i = 0; i < pagesize; ++i)
6776 *(data2 + i) = *(data2 + i) + 1;
6777 data3 = (char *) malloc (pagesize);
6778 if (!data3)
6779 exit (1);
6780 if (read (fd, data3, pagesize) != pagesize)
6781 exit (1);
6782 for (i = 0; i < pagesize; ++i)
6783 if (*(data + i) != *(data3 + i))
6784 exit (1);
6785 close (fd);
6786 exit (0);
6788 _ACEOF
6789 rm -f conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_cv_func_mmap_fixed_mapped=yes
6801 else
6802 echo "$as_me: program exited with status $ac_status" >&5
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ( exit $ac_status )
6807 ac_cv_func_mmap_fixed_mapped=no
6809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6812 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6813 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6814 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6816 cat >>confdefs.h <<\_ACEOF
6817 #define HAVE_MMAP 1
6818 _ACEOF
6821 rm -f conftest.mmap
6833 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6834 unistd.h values.h sys/param.h
6836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6838 echo "$as_me:$LINENO: checking for $ac_header" >&5
6839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6845 else
6846 # Is the header compilable?
6847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6849 cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h. */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 $ac_includes_default
6856 #include <$ac_header>
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; } &&
6873 { ac_try='test -s conftest.$ac_objext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 ac_header_compiler=yes
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 ac_header_compiler=no
6886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6888 echo "${ECHO_T}$ac_header_compiler" >&6
6890 # Is the header present?
6891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h. */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 #include <$ac_header>
6900 _ACEOF
6901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } >/dev/null; then
6909 if test -s conftest.err; then
6910 ac_cpp_err=$ac_c_preproc_warn_flag
6911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6912 else
6913 ac_cpp_err=
6915 else
6916 ac_cpp_err=yes
6918 if test -z "$ac_cpp_err"; then
6919 ac_header_preproc=yes
6920 else
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_header_preproc=no
6926 rm -f conftest.err conftest.$ac_ext
6927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6928 echo "${ECHO_T}$ac_header_preproc" >&6
6930 # So? What about this header?
6931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6932 yes:no: )
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6937 ac_header_preproc=yes
6939 no:yes:* )
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6953 cat <<\_ASBOX
6954 ## ------------------------------------------ ##
6955 ## Report this to the AC_PACKAGE_NAME lists. ##
6956 ## ------------------------------------------ ##
6957 _ASBOX
6959 sed "s/^/$as_me: WARNING: /" >&2
6961 esac
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 eval "$as_ac_Header=\$ac_header_preproc"
6969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6976 _ACEOF
6980 done
6992 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6993 __argz_count __argz_stringify __argz_next
6995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6996 echo "$as_me:$LINENO: checking for $ac_func" >&5
6997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6998 if eval "test \"\${$as_ac_var+set}\" = set"; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7009 #define $ac_func innocuous_$ac_func
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func (); below.
7013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 <limits.h> exists even on freestanding compilers. */
7016 #ifdef __STDC__
7017 # include <limits.h>
7018 #else
7019 # include <assert.h>
7020 #endif
7022 #undef $ac_func
7024 /* Override any gcc2 internal prototype to avoid an error. */
7025 #ifdef __cplusplus
7026 extern "C"
7028 #endif
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7031 char $ac_func ();
7032 /* The GNU C library defines this for functions which it implements
7033 to always fail with ENOSYS. Some functions are actually named
7034 something starting with __ and the normal name is an alias. */
7035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7036 choke me
7037 #else
7038 char (*f) () = $ac_func;
7039 #endif
7040 #ifdef __cplusplus
7042 #endif
7045 main ()
7047 return f != $ac_func;
7049 return 0;
7051 _ACEOF
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054 (eval $ac_link) 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; } &&
7067 { ac_try='test -s conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 eval "$as_ac_var=yes"
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 eval "$as_ac_var=no"
7080 rm -f conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7085 if test `eval echo '${'$as_ac_var'}'` = yes; then
7086 cat >>confdefs.h <<_ACEOF
7087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7088 _ACEOF
7091 done
7094 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7096 for ac_func in stpcpy
7098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7099 echo "$as_me:$LINENO: checking for $ac_func" >&5
7100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7101 if eval "test \"\${$as_ac_var+set}\" = set"; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7112 #define $ac_func innocuous_$ac_func
7114 /* System header to define __stub macros and hopefully few prototypes,
7115 which can conflict with char $ac_func (); below.
7116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117 <limits.h> exists even on freestanding compilers. */
7119 #ifdef __STDC__
7120 # include <limits.h>
7121 #else
7122 # include <assert.h>
7123 #endif
7125 #undef $ac_func
7127 /* Override any gcc2 internal prototype to avoid an error. */
7128 #ifdef __cplusplus
7129 extern "C"
7131 #endif
7132 /* We use char because int might match the return type of a gcc2
7133 builtin and then its argument prototype would still apply. */
7134 char $ac_func ();
7135 /* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7139 choke me
7140 #else
7141 char (*f) () = $ac_func;
7142 #endif
7143 #ifdef __cplusplus
7145 #endif
7148 main ()
7150 return f != $ac_func;
7152 return 0;
7154 _ACEOF
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7157 (eval $ac_link) 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest$ac_exeext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 eval "$as_ac_var=yes"
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 eval "$as_ac_var=no"
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7188 if test `eval echo '${'$as_ac_var'}'` = yes; then
7189 cat >>confdefs.h <<_ACEOF
7190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7191 _ACEOF
7194 done
7197 if test "${ac_cv_func_stpcpy}" = "yes"; then
7199 cat >>confdefs.h <<\_ACEOF
7200 #define HAVE_STPCPY 1
7201 _ACEOF
7205 if test $ac_cv_header_locale_h = yes; then
7206 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <locale.h>
7219 main ()
7221 return LC_MESSAGES
7223 return 0;
7225 _ACEOF
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 am_cv_val_LC_MESSAGES=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 am_cv_val_LC_MESSAGES=no
7254 rm -f conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7257 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7258 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7259 if test $am_cv_val_LC_MESSAGES = yes; then
7261 cat >>confdefs.h <<\_ACEOF
7262 #define HAVE_LC_MESSAGES 1
7263 _ACEOF
7267 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7268 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7269 # Check whether --enable-nls or --disable-nls was given.
7270 if test "${enable_nls+set}" = set; then
7271 enableval="$enable_nls"
7272 USE_NLS=$enableval
7273 else
7274 USE_NLS=yes
7276 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7277 echo "${ECHO_T}$USE_NLS" >&6
7280 USE_INCLUDED_LIBINTL=no
7282 if test "$USE_NLS" = "yes"; then
7283 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7284 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7286 # Check whether --with-included-gettext or --without-included-gettext was given.
7287 if test "${with_included_gettext+set}" = set; then
7288 withval="$with_included_gettext"
7289 nls_cv_force_use_gnu_gettext=$withval
7290 else
7291 nls_cv_force_use_gnu_gettext=no
7293 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7294 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7296 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7297 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7298 nls_cv_header_intl=
7299 nls_cv_header_libgt=
7300 CATOBJEXT=
7302 if test "${ac_cv_header_libintl_h+set}" = set; then
7303 echo "$as_me:$LINENO: checking for libintl.h" >&5
7304 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7305 if test "${ac_cv_header_libintl_h+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7309 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7310 else
7311 # Is the header compilable?
7312 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7313 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h. */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 #include <libintl.h>
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 ac_header_compiler=yes
7345 else
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_header_compiler=no
7351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7353 echo "${ECHO_T}$ac_header_compiler" >&6
7355 # Is the header present?
7356 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7357 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h. */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 #include <libintl.h>
7365 _ACEOF
7366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev/null; then
7374 if test -s conftest.err; then
7375 ac_cpp_err=$ac_c_preproc_warn_flag
7376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7377 else
7378 ac_cpp_err=
7380 else
7381 ac_cpp_err=yes
7383 if test -z "$ac_cpp_err"; then
7384 ac_header_preproc=yes
7385 else
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_header_preproc=no
7391 rm -f conftest.err conftest.$ac_ext
7392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7393 echo "${ECHO_T}$ac_header_preproc" >&6
7395 # So? What about this header?
7396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7397 yes:no: )
7398 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7399 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7401 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7402 ac_header_preproc=yes
7404 no:yes:* )
7405 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7406 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7408 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7410 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7412 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7414 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7416 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7418 cat <<\_ASBOX
7419 ## ------------------------------------------ ##
7420 ## Report this to the AC_PACKAGE_NAME lists. ##
7421 ## ------------------------------------------ ##
7422 _ASBOX
7424 sed "s/^/$as_me: WARNING: /" >&2
7426 esac
7427 echo "$as_me:$LINENO: checking for libintl.h" >&5
7428 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7429 if test "${ac_cv_header_libintl_h+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 ac_cv_header_libintl_h=$ac_header_preproc
7434 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7435 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7438 if test $ac_cv_header_libintl_h = yes; then
7439 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7440 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7441 if test "${gt_cv_func_gettext_libc+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h. */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 #include <libintl.h>
7452 main ()
7454 return (int) gettext ("")
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 gt_cv_func_gettext_libc=yes
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 gt_cv_func_gettext_libc=no
7487 rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7491 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7493 if test "$gt_cv_func_gettext_libc" != "yes"; then
7494 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7495 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7496 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 ac_check_lib_save_LIBS=$LIBS
7500 LIBS="-lintl $LIBS"
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7509 #ifdef __cplusplus
7510 extern "C"
7511 #endif
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7514 char bindtextdomain ();
7516 main ()
7518 bindtextdomain ();
7520 return 0;
7522 _ACEOF
7523 rm -f conftest.$ac_objext conftest$ac_exeext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525 (eval $ac_link) 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest$ac_exeext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_cv_lib_intl_bindtextdomain=yes
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 ac_cv_lib_intl_bindtextdomain=no
7551 rm -f conftest.err conftest.$ac_objext \
7552 conftest$ac_exeext conftest.$ac_ext
7553 LIBS=$ac_check_lib_save_LIBS
7555 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7556 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7557 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7558 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7559 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7560 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7571 main ()
7573 return (int) gettext ("")
7575 return 0;
7577 _ACEOF
7578 rm -f conftest.$ac_objext conftest$ac_exeext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580 (eval $ac_link) 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } &&
7593 { ac_try='test -s conftest$ac_exeext'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7599 gt_cv_func_gettext_libintl=yes
7600 else
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7604 gt_cv_func_gettext_libintl=no
7606 rm -f conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7609 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7610 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7615 if test "$gt_cv_func_gettext_libc" = "yes" \
7616 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_GETTEXT 1
7620 _ACEOF
7622 # Extract the first word of "msgfmt", so it can be a program name with args.
7623 set dummy msgfmt; ac_word=$2
7624 echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626 if test "${ac_cv_path_MSGFMT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 case "$MSGFMT" in
7631 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7635 for ac_dir in $PATH; do
7636 test -z "$ac_dir" && ac_dir=.
7637 if test -f $ac_dir/$ac_word; then
7638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7639 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7640 break
7643 done
7644 IFS="$ac_save_ifs"
7645 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7647 esac
7649 MSGFMT="$ac_cv_path_MSGFMT"
7650 if test -n "$MSGFMT"; then
7651 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7652 echo "${ECHO_T}$MSGFMT" >&6
7653 else
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7657 if test "$MSGFMT" != "no"; then
7659 for ac_func in dcgettext
7661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7662 echo "$as_me:$LINENO: checking for $ac_func" >&5
7663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7664 if eval "test \"\${$as_ac_var+set}\" = set"; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7675 #define $ac_func innocuous_$ac_func
7677 /* System header to define __stub macros and hopefully few prototypes,
7678 which can conflict with char $ac_func (); below.
7679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7680 <limits.h> exists even on freestanding compilers. */
7682 #ifdef __STDC__
7683 # include <limits.h>
7684 #else
7685 # include <assert.h>
7686 #endif
7688 #undef $ac_func
7690 /* Override any gcc2 internal prototype to avoid an error. */
7691 #ifdef __cplusplus
7692 extern "C"
7694 #endif
7695 /* We use char because int might match the return type of a gcc2
7696 builtin and then its argument prototype would still apply. */
7697 char $ac_func ();
7698 /* The GNU C library defines this for functions which it implements
7699 to always fail with ENOSYS. Some functions are actually named
7700 something starting with __ and the normal name is an alias. */
7701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7702 choke me
7703 #else
7704 char (*f) () = $ac_func;
7705 #endif
7706 #ifdef __cplusplus
7708 #endif
7711 main ()
7713 return f != $ac_func;
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720 (eval $ac_link) 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 eval "$as_ac_var=yes"
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 eval "$as_ac_var=no"
7746 rm -f conftest.err conftest.$ac_objext \
7747 conftest$ac_exeext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7751 if test `eval echo '${'$as_ac_var'}'` = yes; then
7752 cat >>confdefs.h <<_ACEOF
7753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7754 _ACEOF
7757 done
7759 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7760 set dummy gmsgfmt; ac_word=$2
7761 echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7763 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766 case $GMSGFMT in
7767 [\\/]* | ?:[\\/]*)
7768 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7785 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7787 esac
7789 GMSGFMT=$ac_cv_path_GMSGFMT
7791 if test -n "$GMSGFMT"; then
7792 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7793 echo "${ECHO_T}$GMSGFMT" >&6
7794 else
7795 echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7799 # Extract the first word of "xgettext", so it can be a program name with args.
7800 set dummy xgettext; ac_word=$2
7801 echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7803 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 case "$XGETTEXT" in
7808 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7812 for ac_dir in $PATH; do
7813 test -z "$ac_dir" && ac_dir=.
7814 if test -f $ac_dir/$ac_word; then
7815 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7817 break
7820 done
7821 IFS="$ac_save_ifs"
7822 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7824 esac
7826 XGETTEXT="$ac_cv_path_XGETTEXT"
7827 if test -n "$XGETTEXT"; then
7828 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7829 echo "${ECHO_T}$XGETTEXT" >&6
7830 else
7831 echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7843 main ()
7845 extern int _nl_msg_cat_cntr;
7846 return _nl_msg_cat_cntr
7848 return 0;
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853 (eval $ac_link) 2>conftest.er1
7854 ac_status=$?
7855 grep -v '^ *+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 CATOBJEXT=.gmo
7873 DATADIRNAME=share
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 CATOBJEXT=.mo
7879 DATADIRNAME=lib
7881 rm -f conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 INSTOBJEXT=.mo
7892 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7893 # Neither gettext nor catgets in included in the C library.
7894 # Fall back on GNU gettext library (assuming it is present).
7895 nls_cv_use_gnu_gettext=yes
7899 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7900 INTLOBJS="\$(GETTOBJS)"
7901 # Extract the first word of "msgfmt", so it can be a program name with args.
7902 set dummy msgfmt; ac_word=$2
7903 echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905 if test "${ac_cv_path_MSGFMT+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 case "$MSGFMT" in
7910 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7914 for ac_dir in $PATH; do
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/$ac_word; then
7917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7918 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7919 break
7922 done
7923 IFS="$ac_save_ifs"
7924 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7926 esac
7928 MSGFMT="$ac_cv_path_MSGFMT"
7929 if test -n "$MSGFMT"; then
7930 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7931 echo "${ECHO_T}$MSGFMT" >&6
7932 else
7933 echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6
7937 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7938 set dummy gmsgfmt; ac_word=$2
7939 echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944 case $GMSGFMT in
7945 [\\/]* | ?:[\\/]*)
7946 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7960 done
7961 done
7963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7965 esac
7967 GMSGFMT=$ac_cv_path_GMSGFMT
7969 if test -n "$GMSGFMT"; then
7970 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7971 echo "${ECHO_T}$GMSGFMT" >&6
7972 else
7973 echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6
7977 # Extract the first word of "xgettext", so it can be a program name with args.
7978 set dummy xgettext; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 case "$XGETTEXT" in
7986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7990 for ac_dir in $PATH; do
7991 test -z "$ac_dir" && ac_dir=.
7992 if test -f $ac_dir/$ac_word; then
7993 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7995 break
7998 done
7999 IFS="$ac_save_ifs"
8000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8002 esac
8004 XGETTEXT="$ac_cv_path_XGETTEXT"
8005 if test -n "$XGETTEXT"; then
8006 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8007 echo "${ECHO_T}$XGETTEXT" >&6
8008 else
8009 echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6
8014 USE_INCLUDED_LIBINTL=yes
8015 CATOBJEXT=.gmo
8016 INSTOBJEXT=.mo
8017 DATADIRNAME=share
8018 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8019 INTLLIBS=$INTLDEPS
8020 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8021 nls_cv_header_intl=libintl.h
8022 nls_cv_header_libgt=libgettext.h
8025 if test "$XGETTEXT" != ":"; then
8026 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8028 else
8029 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8030 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8031 XGETTEXT=":"
8035 # We need to process the po/ directory.
8036 POSUB=po
8037 else
8038 DATADIRNAME=share
8039 nls_cv_header_intl=libintl.h
8040 nls_cv_header_libgt=libgettext.h
8043 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8044 # because some of the sources are only built for this goal.
8045 if test "$PACKAGE" = gettext; then
8046 USE_NLS=yes
8047 USE_INCLUDED_LIBINTL=yes
8050 for lang in $ALL_LINGUAS; do
8051 GMOFILES="$GMOFILES $lang.gmo"
8052 POFILES="$POFILES $lang.po"
8053 done
8066 if test "x$CATOBJEXT" != "x"; then
8068 cat >>confdefs.h <<\_ACEOF
8069 #define ENABLE_NLS 1
8070 _ACEOF
8075 if test "x$CATOBJEXT" != "x"; then
8076 if test "x$ALL_LINGUAS" = "x"; then
8077 LINGUAS=
8078 else
8079 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8080 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8081 NEW_LINGUAS=
8082 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8083 case "$ALL_LINGUAS" in
8084 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8085 esac
8086 done
8087 LINGUAS=$NEW_LINGUAS
8088 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8089 echo "${ECHO_T}$LINGUAS" >&6
8092 if test -n "$LINGUAS"; then
8093 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8097 if test $ac_cv_header_locale_h = yes; then
8098 INCLUDE_LOCALE_H="#include <locale.h>"
8099 else
8100 INCLUDE_LOCALE_H="\
8101 /* The system does not provide the header <locale.h>. Take care yourself. */"
8105 if test -f $srcdir/po2tbl.sed.in; then
8106 if test "$CATOBJEXT" = ".cat"; then
8107 if test "${ac_cv_header_linux_version_h+set}" = set; then
8108 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8109 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8110 if test "${ac_cv_header_linux_version_h+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8114 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8115 else
8116 # Is the header compilable?
8117 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8118 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #include <linux/version.h>
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_header_compiler=yes
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 ac_header_compiler=no
8156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158 echo "${ECHO_T}$ac_header_compiler" >&6
8160 # Is the header present?
8161 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8162 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h. */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 #include <linux/version.h>
8170 _ACEOF
8171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } >/dev/null; then
8179 if test -s conftest.err; then
8180 ac_cpp_err=$ac_c_preproc_warn_flag
8181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8182 else
8183 ac_cpp_err=
8185 else
8186 ac_cpp_err=yes
8188 if test -z "$ac_cpp_err"; then
8189 ac_header_preproc=yes
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_header_preproc=no
8196 rm -f conftest.err conftest.$ac_ext
8197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8198 echo "${ECHO_T}$ac_header_preproc" >&6
8200 # So? What about this header?
8201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8202 yes:no: )
8203 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8204 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8206 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8207 ac_header_preproc=yes
8209 no:yes:* )
8210 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8211 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8213 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8215 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8217 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8219 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8221 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8223 cat <<\_ASBOX
8224 ## ------------------------------------------ ##
8225 ## Report this to the AC_PACKAGE_NAME lists. ##
8226 ## ------------------------------------------ ##
8227 _ASBOX
8229 sed "s/^/$as_me: WARNING: /" >&2
8231 esac
8232 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8233 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_linux_version_h+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 ac_cv_header_linux_version_h=$ac_header_preproc
8239 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8240 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8243 if test $ac_cv_header_linux_version_h = yes; then
8244 msgformat=linux
8245 else
8246 msgformat=xopen
8251 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8253 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8254 $srcdir/po2tbl.sed.in > po2tbl.sed
8257 if test "$PACKAGE" = "gettext"; then
8258 GT_NO="#NO#"
8259 GT_YES=
8260 else
8261 GT_NO=
8262 GT_YES="#YES#"
8267 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8273 if test -f $srcdir/po/POTFILES.in; then
8274 test -d po || mkdir po
8275 if test "x$srcdir" != "x."; then
8276 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8277 posrcprefix="$srcdir/"
8278 else
8279 posrcprefix="../$srcdir/"
8281 else
8282 posrcprefix="../"
8284 rm -f po/POTFILES
8285 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8286 < $srcdir/po/POTFILES.in > po/POTFILES
8290 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8291 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8292 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8293 if test "${enable_maintainer_mode+set}" = set; then
8294 enableval="$enable_maintainer_mode"
8295 USE_MAINTAINER_MODE=$enableval
8296 else
8297 USE_MAINTAINER_MODE=no
8299 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8300 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8303 if test $USE_MAINTAINER_MODE = yes; then
8304 MAINTAINER_MODE_TRUE=
8305 MAINTAINER_MODE_FALSE='#'
8306 else
8307 MAINTAINER_MODE_TRUE='#'
8308 MAINTAINER_MODE_FALSE=
8311 MAINT=$MAINTAINER_MODE_TRUE
8315 if test -n "$EXEEXT"; then
8317 cat >>confdefs.h <<\_ACEOF
8318 #define HAVE_EXECUTABLE_SUFFIX 1
8319 _ACEOF
8323 cat >>confdefs.h <<_ACEOF
8324 #define EXECUTABLE_SUFFIX "${EXEEXT}"
8325 _ACEOF
8328 # host-specific stuff:
8330 HDEFINES=
8332 . ${srcdir}/../bfd/configure.host
8335 AR=${AR-ar}
8337 if test -n "$ac_tool_prefix"; then
8338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8340 echo "$as_me:$LINENO: checking for $ac_word" >&5
8341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8342 if test "${ac_cv_prog_RANLIB+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345 if test -n "$RANLIB"; then
8346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8364 RANLIB=$ac_cv_prog_RANLIB
8365 if test -n "$RANLIB"; then
8366 echo "$as_me:$LINENO: result: $RANLIB" >&5
8367 echo "${ECHO_T}$RANLIB" >&6
8368 else
8369 echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6
8374 if test -z "$ac_cv_prog_RANLIB"; then
8375 ac_ct_RANLIB=$RANLIB
8376 # Extract the first word of "ranlib", so it can be a program name with args.
8377 set dummy ranlib; ac_word=$2
8378 echo "$as_me:$LINENO: checking for $ac_word" >&5
8379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 if test -n "$ac_ct_RANLIB"; then
8384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8385 else
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393 ac_cv_prog_ac_ct_RANLIB="ranlib"
8394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8397 done
8398 done
8400 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8404 if test -n "$ac_ct_RANLIB"; then
8405 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8406 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8407 else
8408 echo "$as_me:$LINENO: result: no" >&5
8409 echo "${ECHO_T}no" >&6
8412 RANLIB=$ac_ct_RANLIB
8413 else
8414 RANLIB="$ac_cv_prog_RANLIB"
8417 # Find a good install program. We prefer a C program (faster),
8418 # so one script is as good as another. But avoid the broken or
8419 # incompatible versions:
8420 # SysV /etc/install, /usr/sbin/install
8421 # SunOS /usr/etc/install
8422 # IRIX /sbin/install
8423 # AIX /bin/install
8424 # AmigaOS /C/install, which installs bootblocks on floppy discs
8425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8428 # OS/2's system install, which has a completely different semantic
8429 # ./install, which can be erroneously created by make from ./install.sh.
8430 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8431 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8432 if test -z "$INSTALL"; then
8433 if test "${ac_cv_path_install+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 # Account for people who put trailing slashes in PATH elements.
8442 case $as_dir/ in
8443 ./ | .// | /cC/* | \
8444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8445 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8446 /usr/ucb/* ) ;;
8448 # OSF1 and SCO ODT 3.0 have their own names for install.
8449 # Don't use installbsd from OSF since it installs stuff as root
8450 # by default.
8451 for ac_prog in ginstall scoinst install; do
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8454 if test $ac_prog = install &&
8455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8456 # AIX install. It has an incompatible calling convention.
8458 elif test $ac_prog = install &&
8459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8460 # program-specific install script used by HP pwplus--don't use.
8462 else
8463 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8464 break 3
8467 done
8468 done
8470 esac
8471 done
8475 if test "${ac_cv_path_install+set}" = set; then
8476 INSTALL=$ac_cv_path_install
8477 else
8478 # As a last resort, use the slow shell script. We don't cache a
8479 # path for INSTALL within a source directory, because that will
8480 # break other packages using the cache if that directory is
8481 # removed, or if the path is relative.
8482 INSTALL=$ac_install_sh
8485 echo "$as_me:$LINENO: result: $INSTALL" >&5
8486 echo "${ECHO_T}$INSTALL" >&6
8488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8489 # It thinks the first close brace ends the variable substitution.
8490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8497 # Put a plausible default for CC_FOR_BUILD in Makefile.
8498 if test -z "$CC_FOR_BUILD"; then
8499 if test "x$cross_compiling" = "xno"; then
8500 CC_FOR_BUILD='$(CC)'
8501 else
8502 CC_FOR_BUILD=gcc
8506 # Also set EXEEXT_FOR_BUILD.
8507 if test "x$cross_compiling" = "xno"; then
8508 EXEEXT_FOR_BUILD='$(EXEEXT)'
8509 else
8510 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8511 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8512 if test "${bfd_cv_build_exeext+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 rm -f conftest*
8516 echo 'int main () { return 0; }' > conftest.c
8517 bfd_cv_build_exeext=
8518 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8519 for file in conftest.*; do
8520 case $file in
8521 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8522 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8523 esac
8524 done
8525 rm -f conftest*
8526 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8528 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8529 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8530 EXEEXT_FOR_BUILD=""
8531 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8535 DEMANGLER_NAME=c++filt
8536 case "${host}" in
8537 *-*-go32* | *-*-msdos*)
8538 DEMANGLER_NAME=cxxfilt
8539 esac
8548 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
8550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8559 else
8560 # Is the header compilable?
8561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_header_compiler=yes
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_header_compiler=no
8600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8602 echo "${ECHO_T}$ac_header_compiler" >&6
8604 # Is the header present?
8605 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 #include <$ac_header>
8614 _ACEOF
8615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } >/dev/null; then
8623 if test -s conftest.err; then
8624 ac_cpp_err=$ac_c_preproc_warn_flag
8625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8626 else
8627 ac_cpp_err=
8629 else
8630 ac_cpp_err=yes
8632 if test -z "$ac_cpp_err"; then
8633 ac_header_preproc=yes
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_header_preproc=no
8640 rm -f conftest.err conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642 echo "${ECHO_T}$ac_header_preproc" >&6
8644 # So? What about this header?
8645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8646 yes:no: )
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8651 ac_header_preproc=yes
8653 no:yes:* )
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8667 cat <<\_ASBOX
8668 ## ------------------------------------------ ##
8669 ## Report this to the AC_PACKAGE_NAME lists. ##
8670 ## ------------------------------------------ ##
8671 _ASBOX
8673 sed "s/^/$as_me: WARNING: /" >&2
8675 esac
8676 echo "$as_me:$LINENO: checking for $ac_header" >&5
8677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681 eval "$as_ac_Header=\$ac_header_preproc"
8683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8688 cat >>confdefs.h <<_ACEOF
8689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8690 _ACEOF
8694 done
8696 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <sys/types.h>
8708 #include <sys/wait.h>
8709 #ifndef WEXITSTATUS
8710 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8711 #endif
8712 #ifndef WIFEXITED
8713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8714 #endif
8717 main ()
8719 int s;
8720 wait (&s);
8721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8723 return 0;
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest.$ac_objext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_header_sys_wait_h=yes
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ac_cv_header_sys_wait_h=no
8754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8757 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8758 if test $ac_cv_header_sys_wait_h = yes; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_SYS_WAIT_H 1
8762 _ACEOF
8766 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8767 # for constant arguments. Useless!
8768 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8769 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8770 if test "${ac_cv_working_alloca_h+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 #include <alloca.h>
8781 main ()
8783 char *p = (char *) alloca (2 * sizeof (int));
8785 return 0;
8787 _ACEOF
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790 (eval $ac_link) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_cv_working_alloca_h=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_cv_working_alloca_h=no
8816 rm -f conftest.err conftest.$ac_objext \
8817 conftest$ac_exeext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8820 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8821 if test $ac_cv_working_alloca_h = yes; then
8823 cat >>confdefs.h <<\_ACEOF
8824 #define HAVE_ALLOCA_H 1
8825 _ACEOF
8829 echo "$as_me:$LINENO: checking for alloca" >&5
8830 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8831 if test "${ac_cv_func_alloca_works+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 #ifdef __GNUC__
8841 # define alloca __builtin_alloca
8842 #else
8843 # ifdef _MSC_VER
8844 # include <malloc.h>
8845 # define alloca _alloca
8846 # else
8847 # if HAVE_ALLOCA_H
8848 # include <alloca.h>
8849 # else
8850 # ifdef _AIX
8851 #pragma alloca
8852 # else
8853 # ifndef alloca /* predefined by HP cc +Olibcalls */
8854 char *alloca ();
8855 # endif
8856 # endif
8857 # endif
8858 # endif
8859 #endif
8862 main ()
8864 char *p = (char *) alloca (1);
8866 return 0;
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest$ac_exeext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_func_alloca_works=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_func_alloca_works=no
8897 rm -f conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8900 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8901 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8903 if test $ac_cv_func_alloca_works = yes; then
8905 cat >>confdefs.h <<\_ACEOF
8906 #define HAVE_ALLOCA 1
8907 _ACEOF
8909 else
8910 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8911 # that cause trouble. Some versions do not even contain alloca or
8912 # contain a buggy version. If you still want to use their alloca,
8913 # use ar to extract alloca.o from them instead of compiling alloca.c.
8915 ALLOCA=alloca.$ac_objext
8917 cat >>confdefs.h <<\_ACEOF
8918 #define C_ALLOCA 1
8919 _ACEOF
8922 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8923 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8924 if test "${ac_cv_os_cray+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 else
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h. */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 #if defined(CRAY) && ! defined(CRAY2)
8934 webecray
8935 #else
8936 wenotbecray
8937 #endif
8939 _ACEOF
8940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8941 $EGREP "webecray" >/dev/null 2>&1; then
8942 ac_cv_os_cray=yes
8943 else
8944 ac_cv_os_cray=no
8946 rm -f conftest*
8949 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8950 echo "${ECHO_T}$ac_cv_os_cray" >&6
8951 if test $ac_cv_os_cray = yes; then
8952 for ac_func in _getb67 GETB67 getb67; do
8953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8954 echo "$as_me:$LINENO: checking for $ac_func" >&5
8955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8956 if eval "test \"\${$as_ac_var+set}\" = set"; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8967 #define $ac_func innocuous_$ac_func
8969 /* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char $ac_func (); below.
8971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8972 <limits.h> exists even on freestanding compilers. */
8974 #ifdef __STDC__
8975 # include <limits.h>
8976 #else
8977 # include <assert.h>
8978 #endif
8980 #undef $ac_func
8982 /* Override any gcc2 internal prototype to avoid an error. */
8983 #ifdef __cplusplus
8984 extern "C"
8986 #endif
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8989 char $ac_func ();
8990 /* The GNU C library defines this for functions which it implements
8991 to always fail with ENOSYS. Some functions are actually named
8992 something starting with __ and the normal name is an alias. */
8993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8994 choke me
8995 #else
8996 char (*f) () = $ac_func;
8997 #endif
8998 #ifdef __cplusplus
9000 #endif
9003 main ()
9005 return f != $ac_func;
9007 return 0;
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try='test -s conftest$ac_exeext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 eval "$as_ac_var=yes"
9032 else
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 eval "$as_ac_var=no"
9038 rm -f conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9043 if test `eval echo '${'$as_ac_var'}'` = yes; then
9045 cat >>confdefs.h <<_ACEOF
9046 #define CRAY_STACKSEG_END $ac_func
9047 _ACEOF
9049 break
9052 done
9055 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9056 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9057 if test "${ac_cv_c_stack_direction+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 if test "$cross_compiling" = yes; then
9061 ac_cv_c_stack_direction=0
9062 else
9063 cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h. */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9070 find_stack_direction ()
9072 static char *addr = 0;
9073 auto char dummy;
9074 if (addr == 0)
9076 addr = &dummy;
9077 return find_stack_direction ();
9079 else
9080 return (&dummy > addr) ? 1 : -1;
9084 main ()
9086 exit (find_stack_direction () < 0);
9088 _ACEOF
9089 rm -f conftest$ac_exeext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091 (eval $ac_link) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_c_stack_direction=1
9101 else
9102 echo "$as_me: program exited with status $ac_status" >&5
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 ( exit $ac_status )
9107 ac_cv_c_stack_direction=-1
9109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9113 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9115 cat >>confdefs.h <<_ACEOF
9116 #define STACK_DIRECTION $ac_cv_c_stack_direction
9117 _ACEOF
9127 for ac_func in sbrk utimes setmode getc_unlocked strcoll
9129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130 echo "$as_me:$LINENO: checking for $ac_func" >&5
9131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9132 if eval "test \"\${$as_ac_var+set}\" = set"; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9143 #define $ac_func innocuous_$ac_func
9145 /* System header to define __stub macros and hopefully few prototypes,
9146 which can conflict with char $ac_func (); below.
9147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148 <limits.h> exists even on freestanding compilers. */
9150 #ifdef __STDC__
9151 # include <limits.h>
9152 #else
9153 # include <assert.h>
9154 #endif
9156 #undef $ac_func
9158 /* Override any gcc2 internal prototype to avoid an error. */
9159 #ifdef __cplusplus
9160 extern "C"
9162 #endif
9163 /* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
9165 char $ac_func ();
9166 /* The GNU C library defines this for functions which it implements
9167 to always fail with ENOSYS. Some functions are actually named
9168 something starting with __ and the normal name is an alias. */
9169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9170 choke me
9171 #else
9172 char (*f) () = $ac_func;
9173 #endif
9174 #ifdef __cplusplus
9176 #endif
9179 main ()
9181 return f != $ac_func;
9183 return 0;
9185 _ACEOF
9186 rm -f conftest.$ac_objext conftest$ac_exeext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188 (eval $ac_link) 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest$ac_exeext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 eval "$as_ac_var=yes"
9208 else
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 eval "$as_ac_var=no"
9214 rm -f conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9219 if test `eval echo '${'$as_ac_var'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9222 _ACEOF
9225 done
9228 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9229 # needs to be defined for it
9230 echo "$as_me:$LINENO: checking for fopen64" >&5
9231 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9232 if test "${bu_cv_have_fopen64+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 #include <stdio.h>
9243 main ()
9245 FILE *f = fopen64 ("/tmp/foo","r");
9247 return 0;
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 bu_cv_have_fopen64=yes
9272 else
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 saved_CPPFLAGS=$CPPFLAGS
9277 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 #include <stdio.h>
9286 main ()
9288 FILE *f = fopen64 ("/tmp/foo","r");
9290 return 0;
9292 _ACEOF
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 bu_cv_have_fopen64=no
9321 rm -f conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 CPPFLAGS=$saved_CPPFLAGS
9325 rm -f conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9329 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9330 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
9331 if test "$bu_cv_have_fopen64" != no; then
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_FOPEN64 1
9335 _ACEOF
9338 echo "$as_me:$LINENO: checking for stat64" >&5
9339 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9340 if test "${bu_cv_have_stat64+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h. */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349 #include <sys/stat.h>
9351 main ()
9353 struct stat64 st; stat64 ("/tmp/foo", &st);
9355 return 0;
9357 _ACEOF
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 bu_cv_have_stat64=yes
9380 else
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 saved_CPPFLAGS=$CPPFLAGS
9385 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 #include <sys/stat.h>
9394 main ()
9396 struct stat64 st; stat64 ("/tmp/foo", &st);
9398 return 0;
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>conftest.er1
9404 ac_status=$?
9405 grep -v '^ *+' conftest.er1 >conftest.err
9406 rm -f conftest.er1
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9423 else
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9427 bu_cv_have_stat64=no
9429 rm -f conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431 CPPFLAGS=$saved_CPPFLAGS
9433 rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9437 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9438 echo "${ECHO_T}$bu_cv_have_stat64" >&6
9439 if test "$bu_cv_have_stat64" != no; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define HAVE_STAT64 1
9443 _ACEOF
9446 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9447 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
9449 cat >>confdefs.h <<\_ACEOF
9450 #define _LARGEFILE64_SOURCE 1
9451 _ACEOF
9453 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9456 # Some systems have frexp only in -lm, not in -lc.
9457 echo "$as_me:$LINENO: checking for library containing frexp" >&5
9458 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9459 if test "${ac_cv_search_frexp+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 ac_func_search_save_LIBS=$LIBS
9463 ac_cv_search_frexp=no
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9471 /* Override any gcc2 internal prototype to avoid an error. */
9472 #ifdef __cplusplus
9473 extern "C"
9474 #endif
9475 /* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9477 char frexp ();
9479 main ()
9481 frexp ();
9483 return 0;
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 (eval $ac_try) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_search_frexp="none required"
9508 else
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9513 rm -f conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 if test "$ac_cv_search_frexp" = no; then
9516 for ac_lib in m; do
9517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9525 /* Override any gcc2 internal prototype to avoid an error. */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9531 char frexp ();
9533 main ()
9535 frexp ();
9537 return 0;
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_search_frexp="-l$ac_lib"
9562 break
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9568 rm -f conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9570 done
9572 LIBS=$ac_func_search_save_LIBS
9574 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9575 echo "${ECHO_T}$ac_cv_search_frexp" >&6
9576 if test "$ac_cv_search_frexp" != no; then
9577 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
9582 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9583 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9584 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 #include <time.h>
9595 main ()
9597 time_t i;
9599 return 0;
9601 _ACEOF
9602 rm -f conftest.$ac_objext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9604 (eval $ac_compile) 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest.$ac_objext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 bu_cv_decl_time_t_time_h=yes
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 bu_cv_decl_time_t_time_h=no
9630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9633 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9634 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
9635 if test $bu_cv_decl_time_t_time_h = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_TIME_T_IN_TIME_H 1
9639 _ACEOF
9643 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9644 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9645 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9656 main ()
9658 time_t i;
9660 return 0;
9662 _ACEOF
9663 rm -f conftest.$ac_objext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9665 (eval $ac_compile) 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 bu_cv_decl_time_t_types_h=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 bu_cv_decl_time_t_types_h=no
9691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9695 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
9696 if test $bu_cv_decl_time_t_types_h = yes; then
9698 cat >>confdefs.h <<\_ACEOF
9699 #define HAVE_TIME_T_IN_TYPES_H 1
9700 _ACEOF
9704 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9705 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9706 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 #include <unistd.h>
9717 main ()
9719 extern int getopt (int, char *const*, const char *);
9721 return 0;
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 bu_cv_decl_getopt_unistd_h=yes
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 bu_cv_decl_getopt_unistd_h=no
9752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9756 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
9757 if test $bu_cv_decl_getopt_unistd_h = yes; then
9759 cat >>confdefs.h <<\_ACEOF
9760 #define HAVE_DECL_GETOPT 1
9761 _ACEOF
9765 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9766 # by default.
9767 echo "$as_me:$LINENO: checking for utime.h" >&5
9768 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9769 if test "${bu_cv_header_utime_h+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 #include <sys/types.h>
9779 #ifdef HAVE_TIME_H
9780 #include <time.h>
9781 #endif
9782 #include <utime.h>
9784 main ()
9786 struct utimbuf s;
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793 (eval $ac_compile) 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 bu_cv_header_utime_h=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 bu_cv_header_utime_h=no
9819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9823 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
9824 if test $bu_cv_header_utime_h = yes; then
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_GOOD_UTIME_H 1
9828 _ACEOF
9832 echo "$as_me:$LINENO: checking whether fprintf must be declared" >&5
9833 echo $ECHO_N "checking whether fprintf must be declared... $ECHO_C" >&6
9834 if test "${bfd_cv_decl_needed_fprintf+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9844 #include <stdio.h>
9845 #ifdef HAVE_STRING_H
9846 #include <string.h>
9847 #else
9848 #ifdef HAVE_STRINGS_H
9849 #include <strings.h>
9850 #endif
9851 #endif
9852 #ifdef HAVE_STDLIB_H
9853 #include <stdlib.h>
9854 #endif
9855 #ifdef HAVE_UNISTD_H
9856 #include <unistd.h>
9857 #endif
9859 main ()
9861 char *(*pfn) = (char *(*)) fprintf
9863 return 0;
9865 _ACEOF
9866 rm -f conftest.$ac_objext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9868 (eval $ac_compile) 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest.$ac_objext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 bfd_cv_decl_needed_fprintf=no
9888 else
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 bfd_cv_decl_needed_fprintf=yes
9894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9897 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_fprintf" >&5
9898 echo "${ECHO_T}$bfd_cv_decl_needed_fprintf" >&6
9899 if test $bfd_cv_decl_needed_fprintf = yes; then
9901 cat >>confdefs.h <<\_ACEOF
9902 #define NEED_DECLARATION_FPRINTF 1
9903 _ACEOF
9907 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9908 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9909 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h. */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9919 #include <stdio.h>
9920 #ifdef HAVE_STRING_H
9921 #include <string.h>
9922 #else
9923 #ifdef HAVE_STRINGS_H
9924 #include <strings.h>
9925 #endif
9926 #endif
9927 #ifdef HAVE_STDLIB_H
9928 #include <stdlib.h>
9929 #endif
9930 #ifdef HAVE_UNISTD_H
9931 #include <unistd.h>
9932 #endif
9934 main ()
9936 char *(*pfn) = (char *(*)) strstr
9938 return 0;
9940 _ACEOF
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 bfd_cv_decl_needed_strstr=no
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 bfd_cv_decl_needed_strstr=yes
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9972 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9973 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9974 if test $bfd_cv_decl_needed_strstr = yes; then
9976 cat >>confdefs.h <<\_ACEOF
9977 #define NEED_DECLARATION_STRSTR 1
9978 _ACEOF
9982 echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5
9983 echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6
9984 if test "${bfd_cv_decl_needed_sbrk+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 #include <stdio.h>
9995 #ifdef HAVE_STRING_H
9996 #include <string.h>
9997 #else
9998 #ifdef HAVE_STRINGS_H
9999 #include <strings.h>
10000 #endif
10001 #endif
10002 #ifdef HAVE_STDLIB_H
10003 #include <stdlib.h>
10004 #endif
10005 #ifdef HAVE_UNISTD_H
10006 #include <unistd.h>
10007 #endif
10009 main ()
10011 char *(*pfn) = (char *(*)) sbrk
10013 return 0;
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 bfd_cv_decl_needed_sbrk=no
10038 else
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 bfd_cv_decl_needed_sbrk=yes
10044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10047 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5
10048 echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6
10049 if test $bfd_cv_decl_needed_sbrk = yes; then
10051 cat >>confdefs.h <<\_ACEOF
10052 #define NEED_DECLARATION_SBRK 1
10053 _ACEOF
10057 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
10058 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
10059 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h. */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10069 #include <stdio.h>
10070 #ifdef HAVE_STRING_H
10071 #include <string.h>
10072 #else
10073 #ifdef HAVE_STRINGS_H
10074 #include <strings.h>
10075 #endif
10076 #endif
10077 #ifdef HAVE_STDLIB_H
10078 #include <stdlib.h>
10079 #endif
10080 #ifdef HAVE_UNISTD_H
10081 #include <unistd.h>
10082 #endif
10084 main ()
10086 char *(*pfn) = (char *(*)) getenv
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 bfd_cv_decl_needed_getenv=no
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 bfd_cv_decl_needed_getenv=yes
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
10123 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
10124 if test $bfd_cv_decl_needed_getenv = yes; then
10126 cat >>confdefs.h <<\_ACEOF
10127 #define NEED_DECLARATION_GETENV 1
10128 _ACEOF
10132 echo "$as_me:$LINENO: checking whether environ must be declared" >&5
10133 echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6
10134 if test "${bfd_cv_decl_needed_environ+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h. */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10144 #include <stdio.h>
10145 #ifdef HAVE_STRING_H
10146 #include <string.h>
10147 #else
10148 #ifdef HAVE_STRINGS_H
10149 #include <strings.h>
10150 #endif
10151 #endif
10152 #ifdef HAVE_STDLIB_H
10153 #include <stdlib.h>
10154 #endif
10155 #ifdef HAVE_UNISTD_H
10156 #include <unistd.h>
10157 #endif
10159 main ()
10161 char *(*pfn) = (char *(*)) environ
10163 return 0;
10165 _ACEOF
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168 (eval $ac_compile) 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 bfd_cv_decl_needed_environ=no
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 bfd_cv_decl_needed_environ=yes
10194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5
10198 echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6
10199 if test $bfd_cv_decl_needed_environ = yes; then
10201 cat >>confdefs.h <<\_ACEOF
10202 #define NEED_DECLARATION_ENVIRON 1
10203 _ACEOF
10209 case "${host}" in
10210 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10212 cat >>confdefs.h <<\_ACEOF
10213 #define USE_BINARY_FOPEN 1
10214 _ACEOF
10216 esac
10218 # target-specific stuff:
10220 # Canonicalize the secondary target names.
10221 if test -n "$enable_targets"; then
10222 for targ in `echo $enable_targets | sed 's/,/ /g'`
10224 result=`$ac_config_sub $targ 2>/dev/null`
10225 if test -n "$result"; then
10226 canon_targets="$canon_targets $result"
10227 else
10228 # Allow targets that config.sub doesn't recognize, like "all".
10229 canon_targets="$canon_targets $targ"
10231 done
10234 all_targets=false
10235 BUILD_NLMCONV=
10236 NLMCONV_DEFS=
10237 BUILD_SRCONV=
10238 BUILD_DLLTOOL=
10239 DLLTOOL_DEFS=
10240 BUILD_WINDRES=
10241 BUILD_DLLWRAP=
10242 BUILD_MISC=
10243 OBJDUMP_DEFS=
10245 for targ in $target $canon_targets
10247 if test "x$targ" = "xall"; then
10248 all_targets=true
10249 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10250 BUILD_SRCONV='$(SRCONV_PROG)'
10251 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10252 else
10253 case $targ in
10254 i[3-7]86*-*-netware*)
10255 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10256 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10258 alpha*-*-netware*)
10259 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10260 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10262 powerpc*-*-netware*)
10263 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10264 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10266 sparc*-*-netware*)
10267 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10268 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10270 esac
10271 case $targ in
10272 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10273 esac
10274 case $targ in
10275 arm-epoc-pe*)
10276 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10277 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10278 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10280 arm-*-pe* | arm-*-wince)
10281 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10282 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10283 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10285 thumb-*-pe*)
10286 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10287 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10288 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10290 arm*-* | xscale-* | strongarm-* | d10v-*)
10291 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
10293 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
10294 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10295 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10296 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10297 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
10299 i[3-7]86-*-interix)
10300 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10301 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10303 powerpc*-aix5.[01])
10305 powerpc*-aix5.*)
10306 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10308 powerpc*-*-pe* | powerpc*-*-cygwin*)
10309 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10310 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10311 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10313 sh*-*-pe)
10314 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10315 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10316 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10318 mips*-*-pe)
10319 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10320 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10321 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10323 mcore-*-pe)
10324 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10325 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10326 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10328 mcore-*-elf)
10329 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10330 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
10332 esac
10334 done
10336 if test "${with_windres+set}" = set; then
10337 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10351 cat >>confdefs.h <<_ACEOF
10352 #define TARGET "${target}"
10353 _ACEOF
10356 targ=$target
10357 . $srcdir/../bfd/config.bfd
10358 if test "x$targ_underscore" = "xyes"; then
10359 UNDERSCORE=1
10360 else
10361 UNDERSCORE=0
10364 cat >>confdefs.h <<_ACEOF
10365 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10366 _ACEOF
10369 # Emulation
10370 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10372 # Canonicalize the secondary target names.
10373 result=`$ac_config_sub $targ_alias 2>/dev/null`
10374 if test -n "$result"; then
10375 targ=$result
10376 else
10377 targ=$targ_alias
10380 . ${srcdir}/configure.tgt
10382 EMULATION=$targ_emul
10383 EMULATION_VECTOR=$targ_emul_vector
10384 done
10389 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10390 ac_config_commands="$ac_config_commands default"
10391 cat >confcache <<\_ACEOF
10392 # This file is a shell script that caches the results of configure
10393 # tests run on this system so they can be shared between configure
10394 # scripts and configure runs, see configure's option --config-cache.
10395 # It is not useful on other systems. If it contains results you don't
10396 # want to keep, you may remove or edit it.
10398 # config.status only pays attention to the cache file if you give it
10399 # the --recheck option to rerun configure.
10401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10403 # following values.
10405 _ACEOF
10407 # The following way of writing the cache mishandles newlines in values,
10408 # but we know of no workaround that is simple, portable, and efficient.
10409 # So, don't put newlines in cache variables' values.
10410 # Ultrix sh set writes to stderr and can't be redirected directly,
10411 # and sets the high bit in the cache file unless we assign to the vars.
10413 (set) 2>&1 |
10414 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10415 *ac_space=\ *)
10416 # `set' does not quote correctly, so add quotes (double-quote
10417 # substitution turns \\\\ into \\, and sed turns \\ into \).
10418 sed -n \
10419 "s/'/'\\\\''/g;
10420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10423 # `set' quotes correctly as required by POSIX, so do not add quotes.
10424 sed -n \
10425 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10427 esac;
10429 sed '
10430 t clear
10431 : clear
10432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10433 t end
10434 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10435 : end' >>confcache
10436 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10437 if test -w $cache_file; then
10438 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10439 cat confcache >$cache_file
10440 else
10441 echo "not updating unwritable cache $cache_file"
10444 rm -f confcache
10446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10447 # Let make expand exec_prefix.
10448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10450 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10451 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10452 # trailing colons and then remove the whole line if VPATH becomes empty
10453 # (actually we leave an empty line to preserve line numbers).
10454 if test "x$srcdir" = x.; then
10455 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10456 s/:*\$(srcdir):*/:/;
10457 s/:*\${srcdir}:*/:/;
10458 s/:*@srcdir@:*/:/;
10459 s/^\([^=]*=[ ]*\):*/\1/;
10460 s/:*$//;
10461 s/^[^=]*=[ ]*$//;
10465 DEFS=-DHAVE_CONFIG_H
10467 ac_libobjs=
10468 ac_ltlibobjs=
10469 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10470 # 1. Remove the extension, and $U if already installed.
10471 ac_i=`echo "$ac_i" |
10472 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10473 # 2. Add them.
10474 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10475 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10476 done
10477 LIBOBJS=$ac_libobjs
10479 LTLIBOBJS=$ac_ltlibobjs
10482 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10483 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10484 Usually this means the macro was only invoked conditionally." >&5
10485 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10486 Usually this means the macro was only invoked conditionally." >&2;}
10487 { (exit 1); exit 1; }; }
10489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10490 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10491 Usually this means the macro was only invoked conditionally." >&5
10492 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10493 Usually this means the macro was only invoked conditionally." >&2;}
10494 { (exit 1); exit 1; }; }
10496 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10497 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10498 Usually this means the macro was only invoked conditionally." >&5
10499 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10500 Usually this means the macro was only invoked conditionally." >&2;}
10501 { (exit 1); exit 1; }; }
10504 : ${CONFIG_STATUS=./config.status}
10505 ac_clean_files_save=$ac_clean_files
10506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10507 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10509 cat >$CONFIG_STATUS <<_ACEOF
10510 #! $SHELL
10511 # Generated by $as_me.
10512 # Run this file to recreate the current configuration.
10513 # Compiler output produced by configure, useful for debugging
10514 # configure, is in config.log if it exists.
10516 debug=false
10517 ac_cs_recheck=false
10518 ac_cs_silent=false
10519 SHELL=\${CONFIG_SHELL-$SHELL}
10520 _ACEOF
10522 cat >>$CONFIG_STATUS <<\_ACEOF
10523 ## --------------------- ##
10524 ## M4sh Initialization. ##
10525 ## --------------------- ##
10527 # Be Bourne compatible
10528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10529 emulate sh
10530 NULLCMD=:
10531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10532 # is contrary to our usage. Disable this feature.
10533 alias -g '${1+"$@"}'='"$@"'
10534 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10535 set -o posix
10537 DUALCASE=1; export DUALCASE # for MKS sh
10539 # Support unset when possible.
10540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10541 as_unset=unset
10542 else
10543 as_unset=false
10547 # Work around bugs in pre-3.0 UWIN ksh.
10548 $as_unset ENV MAIL MAILPATH
10549 PS1='$ '
10550 PS2='> '
10551 PS4='+ '
10553 # NLS nuisances.
10554 for as_var in \
10555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10557 LC_TELEPHONE LC_TIME
10559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10560 eval $as_var=C; export $as_var
10561 else
10562 $as_unset $as_var
10564 done
10566 # Required to use basename.
10567 if expr a : '\(a\)' >/dev/null 2>&1; then
10568 as_expr=expr
10569 else
10570 as_expr=false
10573 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10574 as_basename=basename
10575 else
10576 as_basename=false
10580 # Name of the executable.
10581 as_me=`$as_basename "$0" ||
10582 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10583 X"$0" : 'X\(//\)$' \| \
10584 X"$0" : 'X\(/\)$' \| \
10585 . : '\(.\)' 2>/dev/null ||
10586 echo X/"$0" |
10587 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10588 /^X\/\(\/\/\)$/{ s//\1/; q; }
10589 /^X\/\(\/\).*/{ s//\1/; q; }
10590 s/.*/./; q'`
10593 # PATH needs CR, and LINENO needs CR and PATH.
10594 # Avoid depending upon Character Ranges.
10595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10598 as_cr_digits='0123456789'
10599 as_cr_alnum=$as_cr_Letters$as_cr_digits
10601 # The user is always right.
10602 if test "${PATH_SEPARATOR+set}" != set; then
10603 echo "#! /bin/sh" >conf$$.sh
10604 echo "exit 0" >>conf$$.sh
10605 chmod +x conf$$.sh
10606 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10607 PATH_SEPARATOR=';'
10608 else
10609 PATH_SEPARATOR=:
10611 rm -f conf$$.sh
10615 as_lineno_1=$LINENO
10616 as_lineno_2=$LINENO
10617 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10618 test "x$as_lineno_1" != "x$as_lineno_2" &&
10619 test "x$as_lineno_3" = "x$as_lineno_2" || {
10620 # Find who we are. Look in the path if we contain no path at all
10621 # relative or not.
10622 case $0 in
10623 *[\\/]* ) as_myself=$0 ;;
10624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10630 done
10633 esac
10634 # We did not find ourselves, most probably we were run as `sh COMMAND'
10635 # in which case we are not to be found in the path.
10636 if test "x$as_myself" = x; then
10637 as_myself=$0
10639 if test ! -f "$as_myself"; then
10640 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10641 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10642 { (exit 1); exit 1; }; }
10644 case $CONFIG_SHELL in
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for as_base in sh bash ksh sh5; do
10652 case $as_dir in
10654 if ("$as_dir/$as_base" -c '
10655 as_lineno_1=$LINENO
10656 as_lineno_2=$LINENO
10657 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10658 test "x$as_lineno_1" != "x$as_lineno_2" &&
10659 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10660 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10661 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10662 CONFIG_SHELL=$as_dir/$as_base
10663 export CONFIG_SHELL
10664 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10665 fi;;
10666 esac
10667 done
10668 done
10670 esac
10672 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10673 # uniformly replaced by the line number. The first 'sed' inserts a
10674 # line-number line before each line; the second 'sed' does the real
10675 # work. The second script uses 'N' to pair each line-number line
10676 # with the numbered line, and appends trailing '-' during
10677 # substitution so that $LINENO is not a special case at line end.
10678 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10679 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10680 sed '=' <$as_myself |
10681 sed '
10683 s,$,-,
10684 : loop
10685 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10686 t loop
10687 s,-$,,
10688 s,^['$as_cr_digits']*\n,,
10689 ' >$as_me.lineno &&
10690 chmod +x $as_me.lineno ||
10691 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10692 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10693 { (exit 1); exit 1; }; }
10695 # Don't try to exec as it changes $[0], causing all sort of problems
10696 # (the dirname of $[0] is not the place where we might find the
10697 # original and so on. Autoconf is especially sensible to this).
10698 . ./$as_me.lineno
10699 # Exit status is that of the last command.
10700 exit
10704 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10705 *c*,-n*) ECHO_N= ECHO_C='
10706 ' ECHO_T=' ' ;;
10707 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10708 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10709 esac
10711 if expr a : '\(a\)' >/dev/null 2>&1; then
10712 as_expr=expr
10713 else
10714 as_expr=false
10717 rm -f conf$$ conf$$.exe conf$$.file
10718 echo >conf$$.file
10719 if ln -s conf$$.file conf$$ 2>/dev/null; then
10720 # We could just check for DJGPP; but this test a) works b) is more generic
10721 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10722 if test -f conf$$.exe; then
10723 # Don't use ln at all; we don't have any links
10724 as_ln_s='cp -p'
10725 else
10726 as_ln_s='ln -s'
10728 elif ln conf$$.file conf$$ 2>/dev/null; then
10729 as_ln_s=ln
10730 else
10731 as_ln_s='cp -p'
10733 rm -f conf$$ conf$$.exe conf$$.file
10735 if mkdir -p . 2>/dev/null; then
10736 as_mkdir_p=:
10737 else
10738 test -d ./-p && rmdir ./-p
10739 as_mkdir_p=false
10742 as_executable_p="test -f"
10744 # Sed expression to map a string onto a valid CPP name.
10745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10747 # Sed expression to map a string onto a valid variable name.
10748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10751 # IFS
10752 # We need space, tab and new line, in precisely that order.
10753 as_nl='
10755 IFS=" $as_nl"
10757 # CDPATH.
10758 $as_unset CDPATH
10760 exec 6>&1
10762 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10763 # report actual input values of CONFIG_FILES etc. instead of their
10764 # values after options handling. Logging --version etc. is OK.
10765 exec 5>>config.log
10767 echo
10768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10769 ## Running $as_me. ##
10770 _ASBOX
10771 } >&5
10772 cat >&5 <<_CSEOF
10774 This file was extended by $as_me, which was
10775 generated by GNU Autoconf 2.59. Invocation command line was
10777 CONFIG_FILES = $CONFIG_FILES
10778 CONFIG_HEADERS = $CONFIG_HEADERS
10779 CONFIG_LINKS = $CONFIG_LINKS
10780 CONFIG_COMMANDS = $CONFIG_COMMANDS
10781 $ $0 $@
10783 _CSEOF
10784 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10785 echo >&5
10786 _ACEOF
10788 # Files that config.status was made for.
10789 if test -n "$ac_config_files"; then
10790 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10793 if test -n "$ac_config_headers"; then
10794 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10797 if test -n "$ac_config_links"; then
10798 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10801 if test -n "$ac_config_commands"; then
10802 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10805 cat >>$CONFIG_STATUS <<\_ACEOF
10807 ac_cs_usage="\
10808 \`$as_me' instantiates files from templates according to the
10809 current configuration.
10811 Usage: $0 [OPTIONS] [FILE]...
10813 -h, --help print this help, then exit
10814 -V, --version print version number, then exit
10815 -q, --quiet do not print progress messages
10816 -d, --debug don't remove temporary files
10817 --recheck update $as_me by reconfiguring in the same conditions
10818 --file=FILE[:TEMPLATE]
10819 instantiate the configuration file FILE
10820 --header=FILE[:TEMPLATE]
10821 instantiate the configuration header FILE
10823 Configuration files:
10824 $config_files
10826 Configuration headers:
10827 $config_headers
10829 Configuration commands:
10830 $config_commands
10832 Report bugs to <bug-autoconf@gnu.org>."
10833 _ACEOF
10835 cat >>$CONFIG_STATUS <<_ACEOF
10836 ac_cs_version="\\
10837 config.status
10838 configured by $0, generated by GNU Autoconf 2.59,
10839 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10841 Copyright (C) 2003 Free Software Foundation, Inc.
10842 This config.status script is free software; the Free Software Foundation
10843 gives unlimited permission to copy, distribute and modify it."
10844 srcdir=$srcdir
10845 INSTALL="$INSTALL"
10846 _ACEOF
10848 cat >>$CONFIG_STATUS <<\_ACEOF
10849 # If no file are specified by the user, then we need to provide default
10850 # value. By we need to know if files were specified by the user.
10851 ac_need_defaults=:
10852 while test $# != 0
10854 case $1 in
10855 --*=*)
10856 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10857 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10858 ac_shift=:
10861 ac_option=$1
10862 ac_optarg=$2
10863 ac_shift=shift
10865 *) # This is not an option, so the user has probably given explicit
10866 # arguments.
10867 ac_option=$1
10868 ac_need_defaults=false;;
10869 esac
10871 case $ac_option in
10872 # Handling of the options.
10873 _ACEOF
10874 cat >>$CONFIG_STATUS <<\_ACEOF
10875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10876 ac_cs_recheck=: ;;
10877 --version | --vers* | -V )
10878 echo "$ac_cs_version"; exit 0 ;;
10879 --he | --h)
10880 # Conflict between --help and --header
10881 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10882 Try \`$0 --help' for more information." >&5
10883 echo "$as_me: error: ambiguous option: $1
10884 Try \`$0 --help' for more information." >&2;}
10885 { (exit 1); exit 1; }; };;
10886 --help | --hel | -h )
10887 echo "$ac_cs_usage"; exit 0 ;;
10888 --debug | --d* | -d )
10889 debug=: ;;
10890 --file | --fil | --fi | --f )
10891 $ac_shift
10892 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10893 ac_need_defaults=false;;
10894 --header | --heade | --head | --hea )
10895 $ac_shift
10896 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10897 ac_need_defaults=false;;
10898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10900 ac_cs_silent=: ;;
10902 # This is an error.
10903 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10904 Try \`$0 --help' for more information." >&5
10905 echo "$as_me: error: unrecognized option: $1
10906 Try \`$0 --help' for more information." >&2;}
10907 { (exit 1); exit 1; }; } ;;
10909 *) ac_config_targets="$ac_config_targets $1" ;;
10911 esac
10912 shift
10913 done
10915 ac_configure_extra_args=
10917 if $ac_cs_silent; then
10918 exec 6>/dev/null
10919 ac_configure_extra_args="$ac_configure_extra_args --silent"
10922 _ACEOF
10923 cat >>$CONFIG_STATUS <<_ACEOF
10924 if \$ac_cs_recheck; then
10925 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10926 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10929 _ACEOF
10931 cat >>$CONFIG_STATUS <<_ACEOF
10933 # INIT-COMMANDS section.
10936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10938 _ACEOF
10942 cat >>$CONFIG_STATUS <<\_ACEOF
10943 for ac_config_target in $ac_config_targets
10945 case "$ac_config_target" in
10946 # Handling of arguments.
10947 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10948 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10949 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10950 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10951 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10952 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10954 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10955 { (exit 1); exit 1; }; };;
10956 esac
10957 done
10959 # If the user did not use the arguments to specify the items to instantiate,
10960 # then the envvar interface is used. Set only those that are not.
10961 # We use the long form for the default assignment because of an extremely
10962 # bizarre bug on SunOS 4.1.3.
10963 if $ac_need_defaults; then
10964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10969 # Have a temporary directory for convenience. Make it in the build tree
10970 # simply because there is no reason to put it here, and in addition,
10971 # creating and moving files from /tmp can sometimes cause problems.
10972 # Create a temporary directory, and hook for its removal unless debugging.
10973 $debug ||
10975 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10976 trap '{ (exit 1); exit 1; }' 1 2 13 15
10979 # Create a (secure) tmp directory for tmp files.
10982 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10983 test -n "$tmp" && test -d "$tmp"
10984 } ||
10986 tmp=./confstat$$-$RANDOM
10987 (umask 077 && mkdir $tmp)
10988 } ||
10990 echo "$me: cannot create a temporary directory in ." >&2
10991 { (exit 1); exit 1; }
10994 _ACEOF
10996 cat >>$CONFIG_STATUS <<_ACEOF
10999 # CONFIG_FILES section.
11002 # No need to generate the scripts if there are no CONFIG_FILES.
11003 # This happens for instance when ./config.status config.h
11004 if test -n "\$CONFIG_FILES"; then
11005 # Protect against being on the right side of a sed subst in config.status.
11006 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11007 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11008 s,@SHELL@,$SHELL,;t t
11009 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11010 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11011 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11012 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11013 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11014 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11015 s,@exec_prefix@,$exec_prefix,;t t
11016 s,@prefix@,$prefix,;t t
11017 s,@program_transform_name@,$program_transform_name,;t t
11018 s,@bindir@,$bindir,;t t
11019 s,@sbindir@,$sbindir,;t t
11020 s,@libexecdir@,$libexecdir,;t t
11021 s,@datadir@,$datadir,;t t
11022 s,@sysconfdir@,$sysconfdir,;t t
11023 s,@sharedstatedir@,$sharedstatedir,;t t
11024 s,@localstatedir@,$localstatedir,;t t
11025 s,@libdir@,$libdir,;t t
11026 s,@includedir@,$includedir,;t t
11027 s,@oldincludedir@,$oldincludedir,;t t
11028 s,@infodir@,$infodir,;t t
11029 s,@mandir@,$mandir,;t t
11030 s,@build_alias@,$build_alias,;t t
11031 s,@host_alias@,$host_alias,;t t
11032 s,@target_alias@,$target_alias,;t t
11033 s,@DEFS@,$DEFS,;t t
11034 s,@ECHO_C@,$ECHO_C,;t t
11035 s,@ECHO_N@,$ECHO_N,;t t
11036 s,@ECHO_T@,$ECHO_T,;t t
11037 s,@LIBS@,$LIBS,;t t
11038 s,@build@,$build,;t t
11039 s,@build_cpu@,$build_cpu,;t t
11040 s,@build_vendor@,$build_vendor,;t t
11041 s,@build_os@,$build_os,;t t
11042 s,@host@,$host,;t t
11043 s,@host_cpu@,$host_cpu,;t t
11044 s,@host_vendor@,$host_vendor,;t t
11045 s,@host_os@,$host_os,;t t
11046 s,@target@,$target,;t t
11047 s,@target_cpu@,$target_cpu,;t t
11048 s,@target_vendor@,$target_vendor,;t t
11049 s,@target_os@,$target_os,;t t
11050 s,@CC@,$CC,;t t
11051 s,@CFLAGS@,$CFLAGS,;t t
11052 s,@LDFLAGS@,$LDFLAGS,;t t
11053 s,@CPPFLAGS@,$CPPFLAGS,;t t
11054 s,@ac_ct_CC@,$ac_ct_CC,;t t
11055 s,@EXEEXT@,$EXEEXT,;t t
11056 s,@OBJEXT@,$OBJEXT,;t t
11057 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11058 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11059 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11060 s,@CYGPATH_W@,$CYGPATH_W,;t t
11061 s,@PACKAGE@,$PACKAGE,;t t
11062 s,@VERSION@,$VERSION,;t t
11063 s,@ACLOCAL@,$ACLOCAL,;t t
11064 s,@AUTOCONF@,$AUTOCONF,;t t
11065 s,@AUTOMAKE@,$AUTOMAKE,;t t
11066 s,@AUTOHEADER@,$AUTOHEADER,;t t
11067 s,@MAKEINFO@,$MAKEINFO,;t t
11068 s,@install_sh@,$install_sh,;t t
11069 s,@STRIP@,$STRIP,;t t
11070 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11071 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11072 s,@mkdir_p@,$mkdir_p,;t t
11073 s,@AWK@,$AWK,;t t
11074 s,@SET_MAKE@,$SET_MAKE,;t t
11075 s,@am__leading_dot@,$am__leading_dot,;t t
11076 s,@AMTAR@,$AMTAR,;t t
11077 s,@am__tar@,$am__tar,;t t
11078 s,@am__untar@,$am__untar,;t t
11079 s,@DEPDIR@,$DEPDIR,;t t
11080 s,@am__include@,$am__include,;t t
11081 s,@am__quote@,$am__quote,;t t
11082 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11083 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11084 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11085 s,@CCDEPMODE@,$CCDEPMODE,;t t
11086 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11087 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11088 s,@LN_S@,$LN_S,;t t
11089 s,@RANLIB@,$RANLIB,;t t
11090 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11091 s,@LIBTOOL@,$LIBTOOL,;t t
11092 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11093 s,@NO_WERROR@,$NO_WERROR,;t t
11094 s,@YACC@,$YACC,;t t
11095 s,@LEX@,$LEX,;t t
11096 s,@LEXLIB@,$LEXLIB,;t t
11097 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11098 s,@CPP@,$CPP,;t t
11099 s,@EGREP@,$EGREP,;t t
11100 s,@ALLOCA@,$ALLOCA,;t t
11101 s,@USE_NLS@,$USE_NLS,;t t
11102 s,@MSGFMT@,$MSGFMT,;t t
11103 s,@GMSGFMT@,$GMSGFMT,;t t
11104 s,@XGETTEXT@,$XGETTEXT,;t t
11105 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11106 s,@CATALOGS@,$CATALOGS,;t t
11107 s,@CATOBJEXT@,$CATOBJEXT,;t t
11108 s,@DATADIRNAME@,$DATADIRNAME,;t t
11109 s,@GMOFILES@,$GMOFILES,;t t
11110 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11111 s,@INTLDEPS@,$INTLDEPS,;t t
11112 s,@INTLLIBS@,$INTLLIBS,;t t
11113 s,@INTLOBJS@,$INTLOBJS,;t t
11114 s,@POFILES@,$POFILES,;t t
11115 s,@POSUB@,$POSUB,;t t
11116 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11117 s,@GT_NO@,$GT_NO,;t t
11118 s,@GT_YES@,$GT_YES,;t t
11119 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11120 s,@l@,$l,;t t
11121 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11122 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11123 s,@MAINT@,$MAINT,;t t
11124 s,@HDEFINES@,$HDEFINES,;t t
11125 s,@AR@,$AR,;t t
11126 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11127 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11128 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11129 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11130 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11131 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11132 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11133 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11134 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11135 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11136 s,@BUILD_MISC@,$BUILD_MISC,;t t
11137 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11138 s,@EMULATION@,$EMULATION,;t t
11139 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11140 s,@LIBOBJS@,$LIBOBJS,;t t
11141 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11142 CEOF
11144 _ACEOF
11146 cat >>$CONFIG_STATUS <<\_ACEOF
11147 # Split the substitutions into bite-sized pieces for seds with
11148 # small command number limits, like on Digital OSF/1 and HP-UX.
11149 ac_max_sed_lines=48
11150 ac_sed_frag=1 # Number of current file.
11151 ac_beg=1 # First line for current file.
11152 ac_end=$ac_max_sed_lines # Line after last line for current file.
11153 ac_more_lines=:
11154 ac_sed_cmds=
11155 while $ac_more_lines; do
11156 if test $ac_beg -gt 1; then
11157 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11158 else
11159 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11161 if test ! -s $tmp/subs.frag; then
11162 ac_more_lines=false
11163 else
11164 # The purpose of the label and of the branching condition is to
11165 # speed up the sed processing (if there are no `@' at all, there
11166 # is no need to browse any of the substitutions).
11167 # These are the two extra sed commands mentioned above.
11168 (echo ':t
11169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11170 if test -z "$ac_sed_cmds"; then
11171 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11172 else
11173 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11175 ac_sed_frag=`expr $ac_sed_frag + 1`
11176 ac_beg=$ac_end
11177 ac_end=`expr $ac_end + $ac_max_sed_lines`
11179 done
11180 if test -z "$ac_sed_cmds"; then
11181 ac_sed_cmds=cat
11183 fi # test -n "$CONFIG_FILES"
11185 _ACEOF
11186 cat >>$CONFIG_STATUS <<\_ACEOF
11187 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11189 case $ac_file in
11190 - | *:- | *:-:* ) # input from stdin
11191 cat >$tmp/stdin
11192 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11194 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11195 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11196 * ) ac_file_in=$ac_file.in ;;
11197 esac
11199 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11200 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11201 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11202 X"$ac_file" : 'X\(//\)[^/]' \| \
11203 X"$ac_file" : 'X\(//\)$' \| \
11204 X"$ac_file" : 'X\(/\)' \| \
11205 . : '\(.\)' 2>/dev/null ||
11206 echo X"$ac_file" |
11207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11209 /^X\(\/\/\)$/{ s//\1/; q; }
11210 /^X\(\/\).*/{ s//\1/; q; }
11211 s/.*/./; q'`
11212 { if $as_mkdir_p; then
11213 mkdir -p "$ac_dir"
11214 else
11215 as_dir="$ac_dir"
11216 as_dirs=
11217 while test ! -d "$as_dir"; do
11218 as_dirs="$as_dir $as_dirs"
11219 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11221 X"$as_dir" : 'X\(//\)[^/]' \| \
11222 X"$as_dir" : 'X\(//\)$' \| \
11223 X"$as_dir" : 'X\(/\)' \| \
11224 . : '\(.\)' 2>/dev/null ||
11225 echo X"$as_dir" |
11226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11228 /^X\(\/\/\)$/{ s//\1/; q; }
11229 /^X\(\/\).*/{ s//\1/; q; }
11230 s/.*/./; q'`
11231 done
11232 test ! -n "$as_dirs" || mkdir $as_dirs
11233 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11234 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11235 { (exit 1); exit 1; }; }; }
11237 ac_builddir=.
11239 if test "$ac_dir" != .; then
11240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11241 # A "../" for each directory in $ac_dir_suffix.
11242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11243 else
11244 ac_dir_suffix= ac_top_builddir=
11247 case $srcdir in
11248 .) # No --srcdir option. We are building in place.
11249 ac_srcdir=.
11250 if test -z "$ac_top_builddir"; then
11251 ac_top_srcdir=.
11252 else
11253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11254 fi ;;
11255 [\\/]* | ?:[\\/]* ) # Absolute path.
11256 ac_srcdir=$srcdir$ac_dir_suffix;
11257 ac_top_srcdir=$srcdir ;;
11258 *) # Relative path.
11259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11261 esac
11263 # Do not use `cd foo && pwd` to compute absolute paths, because
11264 # the directories may not exist.
11265 case `pwd` in
11266 .) ac_abs_builddir="$ac_dir";;
11268 case "$ac_dir" in
11269 .) ac_abs_builddir=`pwd`;;
11270 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11271 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11272 esac;;
11273 esac
11274 case $ac_abs_builddir in
11275 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11277 case ${ac_top_builddir}. in
11278 .) ac_abs_top_builddir=$ac_abs_builddir;;
11279 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11280 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11281 esac;;
11282 esac
11283 case $ac_abs_builddir in
11284 .) ac_abs_srcdir=$ac_srcdir;;
11286 case $ac_srcdir in
11287 .) ac_abs_srcdir=$ac_abs_builddir;;
11288 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11289 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11290 esac;;
11291 esac
11292 case $ac_abs_builddir in
11293 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11295 case $ac_top_srcdir in
11296 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11297 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11298 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11299 esac;;
11300 esac
11303 case $INSTALL in
11304 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11305 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11306 esac
11308 # Let's still pretend it is `configure' which instantiates (i.e., don't
11309 # use $as_me), people would be surprised to read:
11310 # /* config.h. Generated by config.status. */
11311 if test x"$ac_file" = x-; then
11312 configure_input=
11313 else
11314 configure_input="$ac_file. "
11316 configure_input=$configure_input"Generated from `echo $ac_file_in |
11317 sed 's,.*/,,'` by configure."
11319 # First look for the input files in the build tree, otherwise in the
11320 # src tree.
11321 ac_file_inputs=`IFS=:
11322 for f in $ac_file_in; do
11323 case $f in
11324 -) echo $tmp/stdin ;;
11325 [\\/$]*)
11326 # Absolute (can't be DOS-style, as IFS=:)
11327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11328 echo "$as_me: error: cannot find input file: $f" >&2;}
11329 { (exit 1); exit 1; }; }
11330 echo "$f";;
11331 *) # Relative
11332 if test -f "$f"; then
11333 # Build tree
11334 echo "$f"
11335 elif test -f "$srcdir/$f"; then
11336 # Source tree
11337 echo "$srcdir/$f"
11338 else
11339 # /dev/null tree
11340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11341 echo "$as_me: error: cannot find input file: $f" >&2;}
11342 { (exit 1); exit 1; }; }
11343 fi;;
11344 esac
11345 done` || { (exit 1); exit 1; }
11347 if test x"$ac_file" != x-; then
11348 { echo "$as_me:$LINENO: creating $ac_file" >&5
11349 echo "$as_me: creating $ac_file" >&6;}
11350 rm -f "$ac_file"
11352 _ACEOF
11353 cat >>$CONFIG_STATUS <<_ACEOF
11354 sed "$ac_vpsub
11355 $extrasub
11356 _ACEOF
11357 cat >>$CONFIG_STATUS <<\_ACEOF
11359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11360 s,@configure_input@,$configure_input,;t t
11361 s,@srcdir@,$ac_srcdir,;t t
11362 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11363 s,@top_srcdir@,$ac_top_srcdir,;t t
11364 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11365 s,@builddir@,$ac_builddir,;t t
11366 s,@abs_builddir@,$ac_abs_builddir,;t t
11367 s,@top_builddir@,$ac_top_builddir,;t t
11368 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11369 s,@INSTALL@,$ac_INSTALL,;t t
11370 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11371 rm -f $tmp/stdin
11372 if test x"$ac_file" != x-; then
11373 mv $tmp/out $ac_file
11374 else
11375 cat $tmp/out
11376 rm -f $tmp/out
11379 done
11380 _ACEOF
11381 cat >>$CONFIG_STATUS <<\_ACEOF
11384 # CONFIG_HEADER section.
11387 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11388 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11390 # ac_d sets the value in "#define NAME VALUE" lines.
11391 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11392 ac_dB='[ ].*$,\1#\2'
11393 ac_dC=' '
11394 ac_dD=',;t'
11395 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11396 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11397 ac_uB='$,\1#\2define\3'
11398 ac_uC=' '
11399 ac_uD=',;t'
11401 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11403 case $ac_file in
11404 - | *:- | *:-:* ) # input from stdin
11405 cat >$tmp/stdin
11406 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11408 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11409 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11410 * ) ac_file_in=$ac_file.in ;;
11411 esac
11413 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11414 echo "$as_me: creating $ac_file" >&6;}
11416 # First look for the input files in the build tree, otherwise in the
11417 # src tree.
11418 ac_file_inputs=`IFS=:
11419 for f in $ac_file_in; do
11420 case $f in
11421 -) echo $tmp/stdin ;;
11422 [\\/$]*)
11423 # Absolute (can't be DOS-style, as IFS=:)
11424 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11425 echo "$as_me: error: cannot find input file: $f" >&2;}
11426 { (exit 1); exit 1; }; }
11427 # Do quote $f, to prevent DOS paths from being IFS'd.
11428 echo "$f";;
11429 *) # Relative
11430 if test -f "$f"; then
11431 # Build tree
11432 echo "$f"
11433 elif test -f "$srcdir/$f"; then
11434 # Source tree
11435 echo "$srcdir/$f"
11436 else
11437 # /dev/null tree
11438 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11439 echo "$as_me: error: cannot find input file: $f" >&2;}
11440 { (exit 1); exit 1; }; }
11441 fi;;
11442 esac
11443 done` || { (exit 1); exit 1; }
11444 # Remove the trailing spaces.
11445 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11447 _ACEOF
11449 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11450 # `conftest.undefs', that substitutes the proper values into
11451 # config.h.in to produce config.h. The first handles `#define'
11452 # templates, and the second `#undef' templates.
11453 # And first: Protect against being on the right side of a sed subst in
11454 # config.status. Protect against being in an unquoted here document
11455 # in config.status.
11456 rm -f conftest.defines conftest.undefs
11457 # Using a here document instead of a string reduces the quoting nightmare.
11458 # Putting comments in sed scripts is not portable.
11460 # `end' is used to avoid that the second main sed command (meant for
11461 # 0-ary CPP macros) applies to n-ary macro definitions.
11462 # See the Autoconf documentation for `clear'.
11463 cat >confdef2sed.sed <<\_ACEOF
11464 s/[\\&,]/\\&/g
11465 s,[\\$`],\\&,g
11466 t clear
11467 : clear
11468 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11469 t end
11470 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11471 : end
11472 _ACEOF
11473 # If some macros were called several times there might be several times
11474 # the same #defines, which is useless. Nevertheless, we may not want to
11475 # sort them, since we want the *last* AC-DEFINE to be honored.
11476 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11477 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11478 rm -f confdef2sed.sed
11480 # This sed command replaces #undef with comments. This is necessary, for
11481 # example, in the case of _POSIX_SOURCE, which is predefined and required
11482 # on some systems where configure will not decide to define it.
11483 cat >>conftest.undefs <<\_ACEOF
11484 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11485 _ACEOF
11487 # Break up conftest.defines because some shells have a limit on the size
11488 # of here documents, and old seds have small limits too (100 cmds).
11489 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11490 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11491 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11492 echo ' :' >>$CONFIG_STATUS
11493 rm -f conftest.tail
11494 while grep . conftest.defines >/dev/null
11496 # Write a limited-size here document to $tmp/defines.sed.
11497 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11498 # Speed up: don't consider the non `#define' lines.
11499 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11500 # Work around the forget-to-reset-the-flag bug.
11501 echo 't clr' >>$CONFIG_STATUS
11502 echo ': clr' >>$CONFIG_STATUS
11503 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11504 echo 'CEOF
11505 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11506 rm -f $tmp/in
11507 mv $tmp/out $tmp/in
11508 ' >>$CONFIG_STATUS
11509 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11510 rm -f conftest.defines
11511 mv conftest.tail conftest.defines
11512 done
11513 rm -f conftest.defines
11514 echo ' fi # grep' >>$CONFIG_STATUS
11515 echo >>$CONFIG_STATUS
11517 # Break up conftest.undefs because some shells have a limit on the size
11518 # of here documents, and old seds have small limits too (100 cmds).
11519 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11520 rm -f conftest.tail
11521 while grep . conftest.undefs >/dev/null
11523 # Write a limited-size here document to $tmp/undefs.sed.
11524 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11525 # Speed up: don't consider the non `#undef'
11526 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11527 # Work around the forget-to-reset-the-flag bug.
11528 echo 't clr' >>$CONFIG_STATUS
11529 echo ': clr' >>$CONFIG_STATUS
11530 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11531 echo 'CEOF
11532 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11533 rm -f $tmp/in
11534 mv $tmp/out $tmp/in
11535 ' >>$CONFIG_STATUS
11536 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11537 rm -f conftest.undefs
11538 mv conftest.tail conftest.undefs
11539 done
11540 rm -f conftest.undefs
11542 cat >>$CONFIG_STATUS <<\_ACEOF
11543 # Let's still pretend it is `configure' which instantiates (i.e., don't
11544 # use $as_me), people would be surprised to read:
11545 # /* config.h. Generated by config.status. */
11546 if test x"$ac_file" = x-; then
11547 echo "/* Generated by configure. */" >$tmp/config.h
11548 else
11549 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11551 cat $tmp/in >>$tmp/config.h
11552 rm -f $tmp/in
11553 if test x"$ac_file" != x-; then
11554 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11555 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11556 echo "$as_me: $ac_file is unchanged" >&6;}
11557 else
11558 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11560 X"$ac_file" : 'X\(//\)[^/]' \| \
11561 X"$ac_file" : 'X\(//\)$' \| \
11562 X"$ac_file" : 'X\(/\)' \| \
11563 . : '\(.\)' 2>/dev/null ||
11564 echo X"$ac_file" |
11565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11567 /^X\(\/\/\)$/{ s//\1/; q; }
11568 /^X\(\/\).*/{ s//\1/; q; }
11569 s/.*/./; q'`
11570 { if $as_mkdir_p; then
11571 mkdir -p "$ac_dir"
11572 else
11573 as_dir="$ac_dir"
11574 as_dirs=
11575 while test ! -d "$as_dir"; do
11576 as_dirs="$as_dir $as_dirs"
11577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11579 X"$as_dir" : 'X\(//\)[^/]' \| \
11580 X"$as_dir" : 'X\(//\)$' \| \
11581 X"$as_dir" : 'X\(/\)' \| \
11582 . : '\(.\)' 2>/dev/null ||
11583 echo X"$as_dir" |
11584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11586 /^X\(\/\/\)$/{ s//\1/; q; }
11587 /^X\(\/\).*/{ s//\1/; q; }
11588 s/.*/./; q'`
11589 done
11590 test ! -n "$as_dirs" || mkdir $as_dirs
11591 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11592 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11593 { (exit 1); exit 1; }; }; }
11595 rm -f $ac_file
11596 mv $tmp/config.h $ac_file
11598 else
11599 cat $tmp/config.h
11600 rm -f $tmp/config.h
11602 # Compute $ac_file's index in $config_headers.
11603 _am_stamp_count=1
11604 for _am_header in $config_headers :; do
11605 case $_am_header in
11606 $ac_file | $ac_file:* )
11607 break ;;
11609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11610 esac
11611 done
11612 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11613 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11614 X$ac_file : 'X\(//\)[^/]' \| \
11615 X$ac_file : 'X\(//\)$' \| \
11616 X$ac_file : 'X\(/\)' \| \
11617 . : '\(.\)' 2>/dev/null ||
11618 echo X$ac_file |
11619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11621 /^X\(\/\/\)$/{ s//\1/; q; }
11622 /^X\(\/\).*/{ s//\1/; q; }
11623 s/.*/./; q'`/stamp-h$_am_stamp_count
11624 done
11625 _ACEOF
11626 cat >>$CONFIG_STATUS <<\_ACEOF
11629 # CONFIG_COMMANDS section.
11631 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11632 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11633 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11634 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11635 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11636 X"$ac_dest" : 'X\(//\)[^/]' \| \
11637 X"$ac_dest" : 'X\(//\)$' \| \
11638 X"$ac_dest" : 'X\(/\)' \| \
11639 . : '\(.\)' 2>/dev/null ||
11640 echo X"$ac_dest" |
11641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11643 /^X\(\/\/\)$/{ s//\1/; q; }
11644 /^X\(\/\).*/{ s//\1/; q; }
11645 s/.*/./; q'`
11646 { if $as_mkdir_p; then
11647 mkdir -p "$ac_dir"
11648 else
11649 as_dir="$ac_dir"
11650 as_dirs=
11651 while test ! -d "$as_dir"; do
11652 as_dirs="$as_dir $as_dirs"
11653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11655 X"$as_dir" : 'X\(//\)[^/]' \| \
11656 X"$as_dir" : 'X\(//\)$' \| \
11657 X"$as_dir" : 'X\(/\)' \| \
11658 . : '\(.\)' 2>/dev/null ||
11659 echo X"$as_dir" |
11660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11662 /^X\(\/\/\)$/{ s//\1/; q; }
11663 /^X\(\/\).*/{ s//\1/; q; }
11664 s/.*/./; q'`
11665 done
11666 test ! -n "$as_dirs" || mkdir $as_dirs
11667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11669 { (exit 1); exit 1; }; }; }
11671 ac_builddir=.
11673 if test "$ac_dir" != .; then
11674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11675 # A "../" for each directory in $ac_dir_suffix.
11676 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11677 else
11678 ac_dir_suffix= ac_top_builddir=
11681 case $srcdir in
11682 .) # No --srcdir option. We are building in place.
11683 ac_srcdir=.
11684 if test -z "$ac_top_builddir"; then
11685 ac_top_srcdir=.
11686 else
11687 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11688 fi ;;
11689 [\\/]* | ?:[\\/]* ) # Absolute path.
11690 ac_srcdir=$srcdir$ac_dir_suffix;
11691 ac_top_srcdir=$srcdir ;;
11692 *) # Relative path.
11693 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11694 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11695 esac
11697 # Do not use `cd foo && pwd` to compute absolute paths, because
11698 # the directories may not exist.
11699 case `pwd` in
11700 .) ac_abs_builddir="$ac_dir";;
11702 case "$ac_dir" in
11703 .) ac_abs_builddir=`pwd`;;
11704 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11705 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11706 esac;;
11707 esac
11708 case $ac_abs_builddir in
11709 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11711 case ${ac_top_builddir}. in
11712 .) ac_abs_top_builddir=$ac_abs_builddir;;
11713 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11714 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11715 esac;;
11716 esac
11717 case $ac_abs_builddir in
11718 .) ac_abs_srcdir=$ac_srcdir;;
11720 case $ac_srcdir in
11721 .) ac_abs_srcdir=$ac_abs_builddir;;
11722 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11723 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11724 esac;;
11725 esac
11726 case $ac_abs_builddir in
11727 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11729 case $ac_top_srcdir in
11730 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11731 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11732 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11733 esac;;
11734 esac
11737 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11738 echo "$as_me: executing $ac_dest commands" >&6;}
11739 case $ac_dest in
11740 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11741 # Strip MF so we end up with the name of the file.
11742 mf=`echo "$mf" | sed -e 's/:.*$//'`
11743 # Check whether this is an Automake generated Makefile or not.
11744 # We used to match only the files named `Makefile.in', but
11745 # some people rename them; so instead we look at the file content.
11746 # Grep'ing the first line is not enough: some people post-process
11747 # each Makefile.in and add a new line on top of each file to say so.
11748 # So let's grep whole file.
11749 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11750 dirpart=`(dirname "$mf") 2>/dev/null ||
11751 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11752 X"$mf" : 'X\(//\)[^/]' \| \
11753 X"$mf" : 'X\(//\)$' \| \
11754 X"$mf" : 'X\(/\)' \| \
11755 . : '\(.\)' 2>/dev/null ||
11756 echo X"$mf" |
11757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11759 /^X\(\/\/\)$/{ s//\1/; q; }
11760 /^X\(\/\).*/{ s//\1/; q; }
11761 s/.*/./; q'`
11762 else
11763 continue
11765 # Extract the definition of DEPDIR, am__include, and am__quote
11766 # from the Makefile without running `make'.
11767 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11768 test -z "$DEPDIR" && continue
11769 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11770 test -z "am__include" && continue
11771 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11772 # When using ansi2knr, U may be empty or an underscore; expand it
11773 U=`sed -n 's/^U = //p' < "$mf"`
11774 # Find all dependency output files, they are included files with
11775 # $(DEPDIR) in their names. We invoke sed twice because it is the
11776 # simplest approach to changing $(DEPDIR) to its actual value in the
11777 # expansion.
11778 for file in `sed -n "
11779 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11780 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11781 # Make sure the directory exists.
11782 test -f "$dirpart/$file" && continue
11783 fdir=`(dirname "$file") 2>/dev/null ||
11784 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11785 X"$file" : 'X\(//\)[^/]' \| \
11786 X"$file" : 'X\(//\)$' \| \
11787 X"$file" : 'X\(/\)' \| \
11788 . : '\(.\)' 2>/dev/null ||
11789 echo X"$file" |
11790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11792 /^X\(\/\/\)$/{ s//\1/; q; }
11793 /^X\(\/\).*/{ s//\1/; q; }
11794 s/.*/./; q'`
11795 { if $as_mkdir_p; then
11796 mkdir -p $dirpart/$fdir
11797 else
11798 as_dir=$dirpart/$fdir
11799 as_dirs=
11800 while test ! -d "$as_dir"; do
11801 as_dirs="$as_dir $as_dirs"
11802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11804 X"$as_dir" : 'X\(//\)[^/]' \| \
11805 X"$as_dir" : 'X\(//\)$' \| \
11806 X"$as_dir" : 'X\(/\)' \| \
11807 . : '\(.\)' 2>/dev/null ||
11808 echo X"$as_dir" |
11809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11811 /^X\(\/\/\)$/{ s//\1/; q; }
11812 /^X\(\/\).*/{ s//\1/; q; }
11813 s/.*/./; q'`
11814 done
11815 test ! -n "$as_dirs" || mkdir $as_dirs
11816 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11817 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11818 { (exit 1); exit 1; }; }; }
11820 # echo "creating $dirpart/$file"
11821 echo '# dummy' > "$dirpart/$file"
11822 done
11823 done
11825 default )
11826 case "x$CONFIG_FILES" in
11827 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11828 esac
11830 esac
11831 done
11832 _ACEOF
11834 cat >>$CONFIG_STATUS <<\_ACEOF
11836 { (exit 0); exit 0; }
11837 _ACEOF
11838 chmod +x $CONFIG_STATUS
11839 ac_clean_files=$ac_clean_files_save
11842 # configure is writing to config.log, and then calls config.status.
11843 # config.status does its own redirection, appending to config.log.
11844 # Unfortunately, on DOS this fails, as config.log is still kept open
11845 # by configure, so config.status won't be able to write to it; its
11846 # output is simply discarded. So we exec the FD to /dev/null,
11847 # effectively closing config.log, so it can be properly (re)opened and
11848 # appended to by config.status. When coming back to configure, we
11849 # need to make the FD available again.
11850 if test "$no_create" != yes; then
11851 ac_cs_success=:
11852 ac_config_status_args=
11853 test "$silent" = yes &&
11854 ac_config_status_args="$ac_config_status_args --quiet"
11855 exec 5>/dev/null
11856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11857 exec 5>>config.log
11858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11859 # would make configure fail if this is the last instruction.
11860 $ac_cs_success || { (exit 1); exit 1; }