top level:
[binutils.git] / binutils / configure
blobbf7cfbad3cb493518608cafdd278035666cdf586
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 REPORT_BUGS_TO WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME CPP EGREP ALLOCA NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir 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-bugurl=URL Direct users to URL to report a bug
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"
1998 || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_compiler_gnu=yes
2011 else
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 ac_compiler_gnu=no
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2026 CFLAGS="-g"
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h. */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2040 main ()
2044 return 0;
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2050 ac_status=$?
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_g=yes
2070 else
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_cv_prog_cc_g=no
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2084 CFLAGS="-g -O2"
2085 else
2086 CFLAGS="-g"
2088 else
2089 if test "$GCC" = yes; then
2090 CFLAGS="-O2"
2091 else
2092 CFLAGS=
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 ac_cv_prog_cc_stdc=no
2101 ac_save_CC=$CC
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h. */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2108 #include <stdarg.h>
2109 #include <stdio.h>
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2116 char **p;
2117 int i;
2119 return p[i];
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2123 char *s;
2124 va_list v;
2125 va_start (v,p);
2126 s = g (p, va_arg (v,int));
2127 va_end (v);
2128 return s;
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144 int argc;
2145 char **argv;
2147 main ()
2149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 return 0;
2153 _ACEOF
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX -qlanglvl=ansi
2157 # Ultrix and OSF/1 -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions -Aa -D_HPUX_SOURCE
2160 # SVR4 -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2193 rm -f conftest.err conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2200 case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216 choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2242 '' \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2247 'void exit (int);'
2249 cat >conftest.$ac_ext <<_ACEOF
2250 /* confdefs.h. */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2255 $ac_declaration
2256 #include <stdlib.h>
2258 main ()
2260 exit (42);
2262 return 0;
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2292 continue
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301 $ac_declaration
2303 main ()
2305 exit (42);
2307 return 0;
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
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); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 break
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 done
2340 rm -f conftest*
2341 if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362 if test "${ac_cv_search_strerror+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 ac_func_search_save_LIBS=$LIBS
2366 ac_cv_search_strerror=no
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 #ifdef __cplusplus
2376 extern "C"
2377 #endif
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380 char strerror ();
2382 main ()
2384 strerror ();
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext conftest$ac_exeext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest$ac_exeext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_search_strerror="none required"
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f conftest.err conftest.$ac_objext \
2418 conftest$ac_exeext conftest.$ac_ext
2419 if test "$ac_cv_search_strerror" = no; then
2420 for ac_lib in cposix; do
2421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2429 /* Override any gcc2 internal prototype to avoid an error. */
2430 #ifdef __cplusplus
2431 extern "C"
2432 #endif
2433 /* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435 char strerror ();
2437 main ()
2439 strerror ();
2441 return 0;
2443 _ACEOF
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest$ac_exeext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_search_strerror="-l$ac_lib"
2467 break
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f conftest.err conftest.$ac_objext \
2474 conftest$ac_exeext conftest.$ac_ext
2475 done
2477 LIBS=$ac_func_search_save_LIBS
2479 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481 if test "$ac_cv_search_strerror" != no; then
2482 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2487 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2488 am__api_version="1.9"
2489 # Find a good install program. We prefer a C program (faster),
2490 # so one script is as good as another. But avoid the broken or
2491 # incompatible versions:
2492 # SysV /etc/install, /usr/sbin/install
2493 # SunOS /usr/etc/install
2494 # IRIX /sbin/install
2495 # AIX /bin/install
2496 # AmigaOS /C/install, which installs bootblocks on floppy discs
2497 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500 # OS/2's system install, which has a completely different semantic
2501 # ./install, which can be erroneously created by make from ./install.sh.
2502 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504 if test -z "$INSTALL"; then
2505 if test "${ac_cv_path_install+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in
2515 ./ | .// | /cC/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2518 /usr/ucb/* ) ;;
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2534 else
2535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 break 3
2539 done
2540 done
2542 esac
2543 done
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. We don't cache a
2551 # path for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the path is relative.
2554 INSTALL=$ac_install_sh
2557 echo "$as_me:$LINENO: result: $INSTALL" >&5
2558 echo "${ECHO_T}$INSTALL" >&6
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2570 # Just in case
2571 sleep 1
2572 echo timestamp > conftest.file
2573 # Do `set' in a subshell so we don't clobber the current shell's
2574 # arguments. Must try -L first in case configure is actually a
2575 # symlink; some systems play weird games with the mod time of symlinks
2576 # (eg FreeBSD returns the mod time of the symlink's containing
2577 # directory).
2578 if (
2579 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2580 if test "$*" = "X"; then
2581 # -L didn't work.
2582 set X `ls -t $srcdir/configure conftest.file`
2584 rm -f conftest.file
2585 if test "$*" != "X $srcdir/configure conftest.file" \
2586 && test "$*" != "X conftest.file $srcdir/configure"; then
2588 # If neither matched, then we have a broken ls. This can happen
2589 # if, for instance, CONFIG_SHELL is bash and it inherits a
2590 # broken ls alias from the environment. This has actually
2591 # happened. Such a system could not be considered "sane".
2592 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2593 alias in your environment" >&5
2594 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2595 alias in your environment" >&2;}
2596 { (exit 1); exit 1; }; }
2599 test "$2" = conftest.file
2601 then
2602 # Ok.
2604 else
2605 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606 Check your system clock" >&5
2607 echo "$as_me: error: newly created file is older than distributed files!
2608 Check your system clock" >&2;}
2609 { (exit 1); exit 1; }; }
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2613 test "$program_prefix" != NONE &&
2614 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615 # Use a double $ so make ignores it.
2616 test "$program_suffix" != NONE &&
2617 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2618 # Double any \ or $. echo might interpret backslashes.
2619 # By default was `s,x,x', remove it if useless.
2620 cat <<\_ACEOF >conftest.sed
2621 s/[\\$]/&&/g;s/;s,x,x,$//
2622 _ACEOF
2623 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624 rm conftest.sed
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2629 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630 # Use eval to expand $SHELL
2631 if eval "$MISSING --run true"; then
2632 am_missing_run="$MISSING --run "
2633 else
2634 am_missing_run=
2635 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2640 # We used to keeping the `.' as first argument, in order to
2641 # allow $(mkdir_p) to be used without argument. As in
2642 # $(mkdir_p) $(somedir)
2643 # where $(somedir) is conditionally defined. However this is wrong
2644 # for two reasons:
2645 # 1. if the package is installed by a user who cannot write `.'
2646 # make install will fail,
2647 # 2. the above comment should most certainly read
2648 # $(mkdir_p) $(DESTDIR)$(somedir)
2649 # so it does not work when $(somedir) is undefined and
2650 # $(DESTDIR) is not.
2651 # To support the latter case, we have to write
2652 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2653 # so the `.' trick is pointless.
2654 mkdir_p='mkdir -p --'
2655 else
2656 # On NextStep and OpenStep, the `mkdir' command does not
2657 # recognize any option. It will interpret all options as
2658 # directories to create, and then abort because `.' already
2659 # exists.
2660 for d in ./-p ./--version;
2662 test -d $d && rmdir $d
2663 done
2664 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2665 if test -f "$ac_aux_dir/mkinstalldirs"; then
2666 mkdir_p='$(mkinstalldirs)'
2667 else
2668 mkdir_p='$(install_sh) -d'
2672 for ac_prog in gawk mawk nawk awk
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_AWK+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2700 AWK=$ac_cv_prog_AWK
2701 if test -n "$AWK"; then
2702 echo "$as_me:$LINENO: result: $AWK" >&5
2703 echo "${ECHO_T}$AWK" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2709 test -n "$AWK" && break
2710 done
2712 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2714 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2715 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 cat >conftest.make <<\_ACEOF
2719 all:
2720 @echo 'ac_maketemp="$(MAKE)"'
2721 _ACEOF
2722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724 if test -n "$ac_maketemp"; then
2725 eval ac_cv_prog_make_${ac_make}_set=yes
2726 else
2727 eval ac_cv_prog_make_${ac_make}_set=no
2729 rm -f conftest.make
2731 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733 echo "${ECHO_T}yes" >&6
2734 SET_MAKE=
2735 else
2736 echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738 SET_MAKE="MAKE=${MAKE-make}"
2741 rm -rf .tst 2>/dev/null
2742 mkdir .tst 2>/dev/null
2743 if test -d .tst; then
2744 am__leading_dot=.
2745 else
2746 am__leading_dot=_
2748 rmdir .tst 2>/dev/null
2750 DEPDIR="${am__leading_dot}deps"
2752 ac_config_commands="$ac_config_commands depfiles"
2755 am_make=${MAKE-make}
2756 cat > confinc << 'END'
2757 am__doit:
2758 @echo done
2759 .PHONY: am__doit
2761 # If we don't find an include directive, just comment out the code.
2762 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764 am__include="#"
2765 am__quote=
2766 _am_result=none
2767 # First try GNU make style include.
2768 echo "include confinc" > confmf
2769 # We grep out `Entering directory' and `Leaving directory'
2770 # messages which can occur if `w' ends up in MAKEFLAGS.
2771 # In particular we don't look at `^make:' because GNU make might
2772 # be invoked under some other name (usually "gmake"), in which
2773 # case it prints its new name instead of `make'.
2774 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775 am__include=include
2776 am__quote=
2777 _am_result=GNU
2779 # Now try BSD make style include.
2780 if test "$am__include" = "#"; then
2781 echo '.include "confinc"' > confmf
2782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783 am__include=.include
2784 am__quote="\""
2785 _am_result=BSD
2790 echo "$as_me:$LINENO: result: $_am_result" >&5
2791 echo "${ECHO_T}$_am_result" >&6
2792 rm -f confinc confmf
2794 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795 if test "${enable_dependency_tracking+set}" = set; then
2796 enableval="$enable_dependency_tracking"
2799 if test "x$enable_dependency_tracking" != xno; then
2800 am_depcomp="$ac_aux_dir/depcomp"
2801 AMDEPBACKSLASH='\'
2805 if test "x$enable_dependency_tracking" != xno; then
2806 AMDEP_TRUE=
2807 AMDEP_FALSE='#'
2808 else
2809 AMDEP_TRUE='#'
2810 AMDEP_FALSE=
2815 # test to see if srcdir already configured
2816 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817 test -f $srcdir/config.status; then
2818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2819 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820 { (exit 1); exit 1; }; }
2823 # test whether we have cygpath
2824 if test -z "$CYGPATH_W"; then
2825 if (cygpath --version) >/dev/null 2>/dev/null; then
2826 CYGPATH_W='cygpath -w'
2827 else
2828 CYGPATH_W=echo
2833 # Define the identity of the package.
2834 PACKAGE=binutils
2835 VERSION=${BFD_VERSION}
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE "$PACKAGE"
2840 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define VERSION "$VERSION"
2845 _ACEOF
2847 # Some tools Automake needs.
2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2865 # Installed binaries are usually stripped using `strip' when the user
2866 # run `make install-strip'. However `strip' might not be the right
2867 # tool to use in cross-compilation environments, therefore Automake
2868 # will honor the `STRIP' environment variable to overrule this program.
2869 if test "$cross_compiling" != no; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}strip; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_STRIP+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$STRIP"; then
2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2892 done
2893 done
2897 STRIP=$ac_cv_prog_STRIP
2898 if test -n "$STRIP"; then
2899 echo "$as_me:$LINENO: result: $STRIP" >&5
2900 echo "${ECHO_T}$STRIP" >&6
2901 else
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2907 if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910 set dummy strip; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_STRIP="strip"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2933 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937 if test -n "$ac_ct_STRIP"; then
2938 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939 echo "${ECHO_T}$ac_ct_STRIP" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2945 STRIP=$ac_ct_STRIP
2946 else
2947 STRIP="$ac_cv_prog_STRIP"
2951 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2953 # We need awk for the "check" target. The system "awk" is bad on
2954 # some platforms.
2955 # Always define AMTAR for backward compatibility.
2957 AMTAR=${AMTAR-"${am_missing_run}tar"}
2959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964 depcc="$CC" am_compiler_list=
2966 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972 # We make a subdir and do the tests there. Otherwise we can end up
2973 # making bogus files that we don't know about and never remove. For
2974 # instance it was reported that on HP-UX the gcc test will end up
2975 # making a dummy file named `D' -- because `-MD' means `put the output
2976 # in D'.
2977 mkdir conftest.dir
2978 # Copy depcomp to subdir because otherwise we won't find it if we're
2979 # using a relative directory.
2980 cp "$am_depcomp" conftest.dir
2981 cd conftest.dir
2982 # We will build objects and dependencies in a subdirectory because
2983 # it helps to detect inapplicable dependency modes. For instance
2984 # both Tru64's cc and ICC support -MD to output dependencies as a
2985 # side effect of compilation, but ICC will put the dependencies in
2986 # the current directory while Tru64 will put them in the object
2987 # directory.
2988 mkdir sub
2990 am_cv_CC_dependencies_compiler_type=none
2991 if test "$am_compiler_list" = ""; then
2992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2994 for depmode in $am_compiler_list; do
2995 # Setup a source with many dependencies, because some compilers
2996 # like to wrap large dependency lists on column 80 (with \), and
2997 # we should not choose a depcomp mode which is confused by this.
2999 # We need to recreate these files for each test, as the compiler may
3000 # overwrite some of them when testing with obscure command lines.
3001 # This happens at least with the AIX C compiler.
3002 : > sub/conftest.c
3003 for i in 1 2 3 4 5 6; do
3004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3006 # Solaris 8's {/usr,}/bin/sh.
3007 touch sub/conftst$i.h
3008 done
3009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3011 case $depmode in
3012 nosideeffect)
3013 # after this tag, mechanisms are not by side-effect, so they'll
3014 # only be used when explicitly requested
3015 if test "x$enable_dependency_tracking" = xyes; then
3016 continue
3017 else
3018 break
3021 none) break ;;
3022 esac
3023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3024 # mode. It turns out that the SunPro C++ compiler does not properly
3025 # handle `-M -o', and we need to detect this.
3026 if depmode=$depmode \
3027 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3029 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3030 >/dev/null 2>conftest.err &&
3031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034 # icc doesn't choke on unknown options, it will just issue warnings
3035 # or remarks (even with -Werror). So we grep stderr for any message
3036 # that says an option was ignored or not supported.
3037 # When given -MP, icc 7.0 and 7.1 complain thusly:
3038 # icc: Command line warning: ignoring option '-M'; no argument required
3039 # The diagnosis changed in icc 8.0:
3040 # icc: Command line remark: option '-MP' not supported
3041 if (grep 'ignoring option' conftest.err ||
3042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043 am_cv_CC_dependencies_compiler_type=$depmode
3044 break
3047 done
3049 cd ..
3050 rm -rf conftest.dir
3051 else
3052 am_cv_CC_dependencies_compiler_type=none
3056 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3063 test "x$enable_dependency_tracking" != xno \
3064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065 am__fastdepCC_TRUE=
3066 am__fastdepCC_FALSE='#'
3067 else
3068 am__fastdepCC_TRUE='#'
3069 am__fastdepCC_FALSE=
3075 # Check whether --enable-shared or --disable-shared was given.
3076 if test "${enable_shared+set}" = set; then
3077 enableval="$enable_shared"
3078 p=${PACKAGE-default}
3079 case $enableval in
3080 yes) enable_shared=yes ;;
3081 no) enable_shared=no ;;
3083 enable_shared=no
3084 # Look at the argument we got. We use all the common list separators.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086 for pkg in $enableval; do
3087 if test "X$pkg" = "X$p"; then
3088 enable_shared=yes
3090 done
3091 IFS="$ac_save_ifs"
3093 esac
3094 else
3095 enable_shared=yes
3097 # Check whether --enable-static or --disable-static was given.
3098 if test "${enable_static+set}" = set; then
3099 enableval="$enable_static"
3100 p=${PACKAGE-default}
3101 case $enableval in
3102 yes) enable_static=yes ;;
3103 no) enable_static=no ;;
3105 enable_static=no
3106 # Look at the argument we got. We use all the common list separators.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_static=yes
3112 done
3113 IFS="$ac_save_ifs"
3115 esac
3116 else
3117 enable_static=yes
3119 # Check whether --enable-fast-install or --disable-fast-install was given.
3120 if test "${enable_fast_install+set}" = set; then
3121 enableval="$enable_fast_install"
3122 p=${PACKAGE-default}
3123 case $enableval in
3124 yes) enable_fast_install=yes ;;
3125 no) enable_fast_install=no ;;
3127 enable_fast_install=no
3128 # Look at the argument we got. We use all the common list separators.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130 for pkg in $enableval; do
3131 if test "X$pkg" = "X$p"; then
3132 enable_fast_install=yes
3134 done
3135 IFS="$ac_save_ifs"
3137 esac
3138 else
3139 enable_fast_install=yes
3142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3143 if test "${with_gnu_ld+set}" = set; then
3144 withval="$with_gnu_ld"
3145 test "$withval" = no || with_gnu_ld=yes
3146 else
3147 with_gnu_ld=no
3149 ac_prog=ld
3150 if test "$GCC" = yes; then
3151 # Check if gcc -print-prog-name=ld gives a path.
3152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3154 case $host in
3155 *-*-mingw*)
3156 # gcc leaves a trailing carriage return which upsets mingw
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160 esac
3161 case $ac_prog in
3162 # Accept absolute paths.
3163 [\\/]* | [A-Za-z]:[\\/]*)
3164 re_direlt='/[^/][^/]*/\.\./'
3165 # Canonicalize the path of ld
3166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169 done
3170 test -z "$LD" && LD="$ac_prog"
3173 # If it fails, then pretend we aren't using GCC.
3174 ac_prog=ld
3177 # If it is relative, then search for the first ld in PATH.
3178 with_gnu_ld=unknown
3180 esac
3181 elif test "$with_gnu_ld" = yes; then
3182 echo "$as_me:$LINENO: checking for GNU ld" >&5
3183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3184 else
3185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3188 if test "${lt_cv_path_LD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 if test -z "$LD"; then
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3193 for ac_dir in $PATH; do
3194 test -z "$ac_dir" && ac_dir=.
3195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3196 lt_cv_path_LD="$ac_dir/$ac_prog"
3197 # Check to see if the program is GNU ld. I'd rather use --version,
3198 # but apparently some GNU ld's only accept -v.
3199 # Break only if it was the GNU/non-GNU ld that we prefer.
3200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3201 test "$with_gnu_ld" != no && break
3202 else
3203 test "$with_gnu_ld" != yes && break
3206 done
3207 IFS="$ac_save_ifs"
3208 else
3209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3213 LD="$lt_cv_path_LD"
3214 if test -n "$LD"; then
3215 echo "$as_me:$LINENO: result: $LD" >&5
3216 echo "${ECHO_T}$LD" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223 { (exit 1); exit 1; }; }
3224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3231 lt_cv_prog_gnu_ld=yes
3232 else
3233 lt_cv_prog_gnu_ld=no
3236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3238 with_gnu_ld=$lt_cv_prog_gnu_ld
3241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243 if test "${lt_cv_ld_reload_flag+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 lt_cv_ld_reload_flag='-r'
3248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3250 reload_flag=$lt_cv_ld_reload_flag
3251 test -n "$reload_flag" && reload_flag=" $reload_flag"
3253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255 if test "${lt_cv_path_NM+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$NM"; then
3259 # Let the user override the test.
3260 lt_cv_path_NM="$NM"
3261 else
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3264 test -z "$ac_dir" && ac_dir=.
3265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3267 # Check to see if the nm accepts a BSD-compat flag.
3268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269 # nm: unknown option "B" ignored
3270 # Tru64's nm complains that /dev/null is an invalid object file
3271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3272 lt_cv_path_NM="$tmp_nm -B"
3273 break
3274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3275 lt_cv_path_NM="$tmp_nm -p"
3276 break
3277 else
3278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3279 continue # so that we can try to find one that supports BSD flags
3282 done
3283 IFS="$ac_save_ifs"
3284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3288 NM="$lt_cv_path_NM"
3289 echo "$as_me:$LINENO: result: $NM" >&5
3290 echo "${ECHO_T}$NM" >&6
3292 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294 LN_S=$as_ln_s
3295 if test "$LN_S" = "ln -s"; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297 echo "${ECHO_T}yes" >&6
3298 else
3299 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300 echo "${ECHO_T}no, using $LN_S" >&6
3303 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305 if test "${lt_cv_deplibs_check_method+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 lt_cv_file_magic_cmd='$MAGIC_CMD'
3309 lt_cv_file_magic_test_file=
3310 lt_cv_deplibs_check_method='unknown'
3311 # Need to set the preceding variable on all platforms that support
3312 # interlibrary dependencies.
3313 # 'none' -- dependencies not supported.
3314 # `unknown' -- same as none, but documents that we really don't know.
3315 # 'pass_all' -- all dependencies passed with no checks.
3316 # 'test_compile' -- check by making test program.
3317 # 'file_magic [regex]' -- check by looking for files in library path
3318 # which responds to the $file_magic_cmd with a given egrep regex.
3319 # If you have `file' or equivalent on your system and you're not sure
3320 # whether `pass_all' will *always* work, you probably want this one.
3322 case $host_os in
3323 aix*)
3324 lt_cv_deplibs_check_method=pass_all
3327 beos*)
3328 lt_cv_deplibs_check_method=pass_all
3331 bsdi4*)
3332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333 lt_cv_file_magic_cmd='/usr/bin/file -L'
3334 lt_cv_file_magic_test_file=/shlib/libc.so
3337 cygwin* | mingw* |pw32*)
3338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3339 lt_cv_file_magic_cmd='$OBJDUMP -f'
3342 darwin* | rhapsody*)
3343 # this will be overwritten by pass_all, but leave it in just in case
3344 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3345 lt_cv_file_magic_cmd='/usr/bin/file -L'
3346 case "$host_os" in
3347 rhapsody* | darwin1.012)
3348 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3350 *) # Darwin 1.3 on
3351 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3353 esac
3354 lt_cv_deplibs_check_method=pass_all
3357 freebsd* | kfreebsd*-gnu)
3358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3359 case $host_cpu in
3360 i*86 )
3361 # Not sure whether the presence of OpenBSD here was a mistake.
3362 # Let's accept both of them until this is cleared up.
3363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364 lt_cv_file_magic_cmd=/usr/bin/file
3365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3367 esac
3368 else
3369 lt_cv_deplibs_check_method=pass_all
3373 gnu*)
3374 lt_cv_deplibs_check_method=pass_all
3377 hpux10.20*|hpux11*)
3378 case $host_cpu in
3379 hppa*)
3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3384 ia64*)
3385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386 lt_cv_file_magic_cmd=/usr/bin/file
3387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3389 esac
3392 irix5* | irix6*)
3393 case $host_os in
3394 irix5*)
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 32-bit MSB dynamic lib MIPS - version 1"
3399 case $LD in
3400 *-32|*"-32 ") libmagic=32-bit;;
3401 *-n32|*"-n32 ") libmagic=N32;;
3402 *-64|*"-64 ") libmagic=64-bit;;
3403 *) libmagic=never-match;;
3404 esac
3405 # this will be overridden with pass_all, but let us keep it just in case
3406 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3408 esac
3409 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410 lt_cv_deplibs_check_method=pass_all
3413 # This must be Linux ELF.
3414 linux-gnu*)
3415 lt_cv_deplibs_check_method=pass_all
3418 netbsd* | knetbsd*-gnu)
3419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3420 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3421 else
3422 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3426 newsos6)
3427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3428 lt_cv_file_magic_cmd=/usr/bin/file
3429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3432 osf3* | osf4* | osf5*)
3433 # this will be overridden with pass_all, but let us keep it just in case
3434 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3435 lt_cv_file_magic_test_file=/shlib/libc.so
3436 lt_cv_deplibs_check_method=pass_all
3439 sco3.2v5*)
3440 lt_cv_deplibs_check_method=pass_all
3443 solaris*)
3444 lt_cv_deplibs_check_method=pass_all
3445 lt_cv_file_magic_test_file=/lib/libc.so
3448 sysv5uw[78]* | sysv4*uw2*)
3449 lt_cv_deplibs_check_method=pass_all
3452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3453 case $host_vendor in
3454 ncr)
3455 lt_cv_deplibs_check_method=pass_all
3457 motorola)
3458 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]'
3459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3461 esac
3463 esac
3466 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3467 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3468 file_magic_cmd=$lt_cv_file_magic_cmd
3469 deplibs_check_method=$lt_cv_deplibs_check_method
3474 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3476 # find the maximum length of command line arguments
3477 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3478 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3479 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3483 teststring="ABCD"
3485 case $build_os in
3486 msdosdjgpp*)
3487 # On DJGPP, this test can blow up pretty badly due to problems in libc
3488 # (any single argument exceeding 2000 bytes causes a buffer overrun
3489 # during glob expansion). Even if it were fixed, the result of this
3490 # check would be larger than it should be.
3491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3494 cygwin* | mingw*)
3495 # On Win9x/ME, this test blows up -- it succeeds, but takes
3496 # about 5 minutes as the teststring grows exponentially.
3497 # Worse, since 9x/ME are not pre-emptively multitasking,
3498 # you end up with a "frozen" computer, even though with patience
3499 # the test eventually succeeds (with a max line length of 256k).
3500 # Instead, let's just punt: use the minimum linelength reported by
3501 # all of the supported platforms: 8192 (on NT/2K/XP).
3502 lt_cv_sys_max_cmd_len=8192;
3505 amigaos*)
3506 # On AmigaOS with pdksh, this test takes hours, literally.
3507 # So we just punt and use a minimum line length of 8192.
3508 lt_cv_sys_max_cmd_len=8192;
3511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3512 # This has been around since 386BSD, at least. Likely further.
3513 if test -x /sbin/sysctl; then
3514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3515 elif test -x /usr/sbin/sysctl; then
3516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3517 else
3518 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3520 # And add a safety zone
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3524 esac
3528 if test -n "$lt_cv_sys_max_cmd_len" ; then
3529 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3530 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3531 else
3532 echo "$as_me:$LINENO: result: none" >&5
3533 echo "${ECHO_T}none" >&6
3537 # Only perform the check for file, if the check method requires it
3538 case $deplibs_check_method in
3539 file_magic*)
3540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3541 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3542 echo $ECHO_N "checking for ${ac_tool_prefix}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/${ac_tool_prefix}file; then
3560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}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 if test -z "$lt_cv_path_MAGIC_CMD"; then
3604 if test -n "$ac_tool_prefix"; then
3605 echo "$as_me:$LINENO: checking for file" >&5
3606 echo $ECHO_N "checking for file... $ECHO_C" >&6
3607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 case $MAGIC_CMD in
3612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3614 ?:/*)
3615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3618 ac_save_MAGIC_CMD="$MAGIC_CMD"
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 ac_dummy="/usr/bin:$PATH"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/file; then
3624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3625 if test -n "$file_magic_test_file"; then
3626 case $deplibs_check_method in
3627 "file_magic "*)
3628 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3631 egrep "$file_magic_regex" > /dev/null; then
3633 else
3634 cat <<EOF 1>&2
3636 *** Warning: the command libtool uses to detect shared libraries,
3637 *** $file_magic_cmd, produces output that libtool cannot recognize.
3638 *** The result is that libtool may fail to recognize shared libraries
3639 *** as such. This will affect the creation of libtool libraries that
3640 *** depend on shared libraries, but programs linked with such libtool
3641 *** libraries will work regardless of this problem. Nevertheless, you
3642 *** may want to report the problem to your system manager and/or to
3643 *** bug-libtool@gnu.org
3646 fi ;;
3647 esac
3649 break
3651 done
3652 IFS="$ac_save_ifs"
3653 MAGIC_CMD="$ac_save_MAGIC_CMD"
3655 esac
3658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3659 if test -n "$MAGIC_CMD"; then
3660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3661 echo "${ECHO_T}$MAGIC_CMD" >&6
3662 else
3663 echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 else
3668 MAGIC_CMD=:
3674 esac
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3679 echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_prog_RANLIB+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 if test -n "$RANLIB"; then
3685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3698 done
3699 done
3703 RANLIB=$ac_cv_prog_RANLIB
3704 if test -n "$RANLIB"; then
3705 echo "$as_me:$LINENO: result: $RANLIB" >&5
3706 echo "${ECHO_T}$RANLIB" >&6
3707 else
3708 echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3713 if test -z "$ac_cv_prog_RANLIB"; then
3714 ac_ct_RANLIB=$RANLIB
3715 # Extract the first word of "ranlib", so it can be a program name with args.
3716 set dummy ranlib; ac_word=$2
3717 echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$ac_ct_RANLIB"; then
3723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_RANLIB="ranlib"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3736 done
3737 done
3739 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3743 if test -n "$ac_ct_RANLIB"; then
3744 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3745 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3746 else
3747 echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3751 RANLIB=$ac_ct_RANLIB
3752 else
3753 RANLIB="$ac_cv_prog_RANLIB"
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}strip; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_STRIP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3778 done
3779 done
3783 STRIP=$ac_cv_prog_STRIP
3784 if test -n "$STRIP"; then
3785 echo "$as_me:$LINENO: result: $STRIP" >&5
3786 echo "${ECHO_T}$STRIP" >&6
3787 else
3788 echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3793 if test -z "$ac_cv_prog_STRIP"; then
3794 ac_ct_STRIP=$STRIP
3795 # Extract the first word of "strip", so it can be a program name with args.
3796 set dummy strip; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_STRIP="strip"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3819 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823 if test -n "$ac_ct_STRIP"; then
3824 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3825 echo "${ECHO_T}$ac_ct_STRIP" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3831 STRIP=$ac_ct_STRIP
3832 else
3833 STRIP="$ac_cv_prog_STRIP"
3837 # Check for any special flags to pass to ltconfig.
3838 libtool_flags="--cache-file=$cache_file"
3839 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3840 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3841 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3842 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3843 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3846 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3847 if test "${enable_libtool_lock+set}" = set; then
3848 enableval="$enable_libtool_lock"
3851 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3852 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3855 # Check whether --with-pic or --without-pic was given.
3856 if test "${with_pic+set}" = set; then
3857 withval="$with_pic"
3858 pic_mode="$withval"
3859 else
3860 pic_mode=default
3862 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3863 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3865 # Some flags need to be propagated to the compiler or linker for good
3866 # libtool support.
3867 case $host in
3868 *-*-irix6*)
3869 # Find out which ABI we are using.
3870 echo '#line 3870 "configure"' > conftest.$ac_ext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; then
3876 if test "$lt_cv_prog_gnu_ld" = yes; then
3877 case `/usr/bin/file conftest.$ac_objext` in
3878 *32-bit*)
3879 LD="${LD-ld} -melf32bsmip"
3881 *N32*)
3882 LD="${LD-ld} -melf32bmipn32"
3884 *64-bit*)
3885 LD="${LD-ld} -melf64bmip"
3887 esac
3888 else
3889 case `/usr/bin/file conftest.$ac_objext` in
3890 *32-bit*)
3891 LD="${LD-ld} -32"
3893 *N32*)
3894 LD="${LD-ld} -n32"
3896 *64-bit*)
3897 LD="${LD-ld} -64"
3899 esac
3902 rm -rf conftest*
3905 ia64-*-hpux*)
3906 # Find out which ABI we are using.
3907 echo 'int i;' > conftest.$ac_ext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; then
3913 case "`/usr/bin/file conftest.o`" in
3914 *ELF-32*)
3915 HPUX_IA64_MODE="32"
3917 *ELF-64*)
3918 HPUX_IA64_MODE="64"
3920 esac
3922 rm -rf conftest*
3925 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3926 # Find out which ABI we are using.
3927 echo 'int i;' > conftest.$ac_ext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; then
3933 case "`/usr/bin/file conftest.o`" in
3934 *32-bit*)
3935 case $host in
3936 x86_64-*linux*)
3937 LD="${LD-ld} -m elf_i386"
3939 ppc64-*linux*|powerpc64-*linux*)
3940 LD="${LD-ld} -m elf32ppclinux"
3942 s390x-*linux*)
3943 LD="${LD-ld} -m elf_s390"
3945 sparc64-*linux*)
3946 LD="${LD-ld} -m elf32_sparc"
3948 esac
3950 *64-bit*)
3951 case $host in
3952 x86_64-*linux*)
3953 LD="${LD-ld} -m elf_x86_64"
3955 ppc*-*linux*|powerpc*-*linux*)
3956 LD="${LD-ld} -m elf64ppc"
3958 s390*-*linux*)
3959 LD="${LD-ld} -m elf64_s390"
3961 sparc*-*linux*)
3962 LD="${LD-ld} -m elf64_sparc"
3964 esac
3966 esac
3968 rm -rf conftest*
3971 *-*-sco3.2v5*)
3972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3973 SAVE_CFLAGS="$CFLAGS"
3974 CFLAGS="$CFLAGS -belf"
3975 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3976 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3977 if test "${lt_cv_cc_needs_belf+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3996 main ()
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 lt_cv_cc_needs_belf=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 lt_cv_cc_needs_belf=no
4032 rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4042 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4045 CFLAGS="$SAVE_CFLAGS"
4050 esac
4053 # Save cache, so that ltconfig can load it
4054 cat >confcache <<\_ACEOF
4055 # This file is a shell script that caches the results of configure
4056 # tests run on this system so they can be shared between configure
4057 # scripts and configure runs, see configure's option --config-cache.
4058 # It is not useful on other systems. If it contains results you don't
4059 # want to keep, you may remove or edit it.
4061 # config.status only pays attention to the cache file if you give it
4062 # the --recheck option to rerun configure.
4064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4066 # following values.
4068 _ACEOF
4070 # The following way of writing the cache mishandles newlines in values,
4071 # but we know of no workaround that is simple, portable, and efficient.
4072 # So, don't put newlines in cache variables' values.
4073 # Ultrix sh set writes to stderr and can't be redirected directly,
4074 # and sets the high bit in the cache file unless we assign to the vars.
4076 (set) 2>&1 |
4077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4078 *ac_space=\ *)
4079 # `set' does not quote correctly, so add quotes (double-quote
4080 # substitution turns \\\\ into \\, and sed turns \\ into \).
4081 sed -n \
4082 "s/'/'\\\\''/g;
4083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4086 # `set' quotes correctly as required by POSIX, so do not add quotes.
4087 sed -n \
4088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4090 esac;
4092 sed '
4093 t clear
4094 : clear
4095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4096 t end
4097 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4098 : end' >>confcache
4099 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4100 if test -w $cache_file; then
4101 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4102 cat confcache >$cache_file
4103 else
4104 echo "not updating unwritable cache $cache_file"
4107 rm -f confcache
4109 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4110 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4111 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4112 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4113 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4114 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4115 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4116 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4117 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4118 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4119 echo "$as_me: error: libtool configure failed" >&2;}
4120 { (exit 1); exit 1; }; }
4122 # Reload cache, that may have been modified by ltconfig
4123 if test -r "$cache_file"; then
4124 # Some versions of bash will fail to source /dev/null (special
4125 # files actually), so we avoid doing that.
4126 if test -f "$cache_file"; then
4127 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4128 echo "$as_me: loading cache $cache_file" >&6;}
4129 case $cache_file in
4130 [\\/]* | ?:[\\/]* ) . $cache_file;;
4131 *) . ./$cache_file;;
4132 esac
4134 else
4135 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4136 echo "$as_me: creating cache $cache_file" >&6;}
4137 >$cache_file
4141 # This can be used to rebuild libtool when needed
4142 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4144 # Always use our own libtool.
4145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4147 # Redirect the config.log output again, so that the ltconfig log is not
4148 # clobbered by the next message.
4149 exec 5>>./config.log
4157 # Check whether --enable-targets or --disable-targets was given.
4158 if test "${enable_targets+set}" = set; then
4159 enableval="$enable_targets"
4160 case "${enableval}" in
4161 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4162 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4163 { (exit 1); exit 1; }; }
4165 no) enable_targets= ;;
4166 *) enable_targets=$enableval ;;
4167 esac
4168 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4169 if test "${enable_commonbfdlib+set}" = set; then
4170 enableval="$enable_commonbfdlib"
4171 case "${enableval}" in
4172 yes) commonbfdlib=true ;;
4173 no) commonbfdlib=false ;;
4174 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4175 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4176 { (exit 1); exit 1; }; } ;;
4177 esac
4179 # The location to which bugs should be reported.
4181 # Check whether --with-bugurl or --without-bugurl was given.
4182 if test "${with_bugurl+set}" = set; then
4183 withval="$with_bugurl"
4184 case "$withval" in
4185 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4186 echo "$as_me: error: bug URL not specified" >&2;}
4187 { (exit 1); exit 1; }; } ;;
4188 no) REPORT_BUGS_TO="" ;;
4189 *) REPORT_BUGS_TO="<URL:$withval>" ;;
4190 esac
4191 else
4192 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
4198 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4200 # Check whether --enable-werror or --disable-werror was given.
4201 if test "${enable_werror+set}" = set; then
4202 enableval="$enable_werror"
4203 case "${enableval}" in
4204 yes | y) ERROR_ON_WARNING="yes" ;;
4205 no | n) ERROR_ON_WARNING="no" ;;
4206 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4207 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4208 { (exit 1); exit 1; }; } ;;
4209 esac
4212 # Enable -Werror by default when using gcc
4213 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4214 ERROR_ON_WARNING=yes
4217 NO_WERROR=
4218 if test "${ERROR_ON_WARNING}" = yes ; then
4219 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4220 NO_WERROR="-Wno-error"
4223 if test "${GCC}" = yes ; then
4224 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4227 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4228 if test "${enable_build_warnings+set}" = set; then
4229 enableval="$enable_build_warnings"
4230 case "${enableval}" in
4231 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4232 no) if test "${GCC}" = yes ; then
4233 WARN_CFLAGS="-w"
4234 fi;;
4235 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4236 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4237 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4238 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4239 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4240 esac
4243 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4244 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4251 ac_config_headers="$ac_config_headers config.h:config.in"
4254 if test -z "$target" ; then
4255 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4256 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4257 { (exit 1); exit 1; }; }
4259 if test -z "$host" ; then
4260 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4261 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4262 { (exit 1); exit 1; }; }
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 if test -n "$ac_tool_prefix"; then
4271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4273 echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4275 if test "${ac_cv_prog_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299 echo "$as_me:$LINENO: result: $CC" >&5
4300 echo "${ECHO_T}$CC" >&6
4301 else
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4307 if test -z "$ac_cv_prog_CC"; then
4308 ac_ct_CC=$CC
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316 if test -n "$ac_ct_CC"; then
4317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_ac_ct_CC="gcc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4330 done
4331 done
4335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336 if test -n "$ac_ct_CC"; then
4337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4338 echo "${ECHO_T}$ac_ct_CC" >&6
4339 else
4340 echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4344 CC=$ac_ct_CC
4345 else
4346 CC="$ac_cv_prog_CC"
4349 if test -z "$CC"; then
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}cc; 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}cc"
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
4387 if test -z "$ac_cv_prog_CC"; then
4388 ac_ct_CC=$CC
4389 # Extract the first word of "cc", so it can be a program name with args.
4390 set dummy cc; ac_word=$2
4391 echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 if test -n "$ac_ct_CC"; then
4397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_ac_ct_CC="cc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4410 done
4411 done
4415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4416 if test -n "$ac_ct_CC"; then
4417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4418 echo "${ECHO_T}$ac_ct_CC" >&6
4419 else
4420 echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4424 CC=$ac_ct_CC
4425 else
4426 CC="$ac_cv_prog_CC"
4430 if test -z "$CC"; then
4431 # Extract the first word of "cc", so it can be a program name with args.
4432 set dummy cc; ac_word=$2
4433 echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4435 if test "${ac_cv_prog_CC+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 if test -n "$CC"; then
4439 ac_cv_prog_CC="$CC" # Let the user override the test.
4440 else
4441 ac_prog_rejected=no
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450 ac_prog_rejected=yes
4451 continue
4453 ac_cv_prog_CC="cc"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4457 done
4458 done
4460 if test $ac_prog_rejected = yes; then
4461 # We found a bogon in the path, so make sure we never use it.
4462 set dummy $ac_cv_prog_CC
4463 shift
4464 if test $# != 0; then
4465 # We chose a different compiler from the bogus one.
4466 # However, it has the same basename, so the bogon will be chosen
4467 # first if we set CC to just the basename; use the full file name.
4468 shift
4469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4474 CC=$ac_cv_prog_CC
4475 if test -n "$CC"; then
4476 echo "$as_me:$LINENO: result: $CC" >&5
4477 echo "${ECHO_T}$CC" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4484 if test -z "$CC"; then
4485 if test -n "$ac_tool_prefix"; then
4486 for ac_prog in cl
4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4490 echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC="$CC" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4514 CC=$ac_cv_prog_CC
4515 if test -n "$CC"; then
4516 echo "$as_me:$LINENO: result: $CC" >&5
4517 echo "${ECHO_T}$CC" >&6
4518 else
4519 echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4523 test -n "$CC" && break
4524 done
4526 if test -z "$CC"; then
4527 ac_ct_CC=$CC
4528 for ac_prog in cl
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 if test -n "$ac_ct_CC"; then
4538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_ac_ct_CC="$ac_prog"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4551 done
4552 done
4556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4557 if test -n "$ac_ct_CC"; then
4558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4559 echo "${ECHO_T}$ac_ct_CC" >&6
4560 else
4561 echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4565 test -n "$ac_ct_CC" && break
4566 done
4568 CC=$ac_ct_CC
4574 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4575 See \`config.log' for more details." >&5
4576 echo "$as_me: error: no acceptable C compiler found in \$PATH
4577 See \`config.log' for more details." >&2;}
4578 { (exit 1); exit 1; }; }
4580 # Provide some information about the compiler.
4581 echo "$as_me:$LINENO:" \
4582 "checking for C compiler version" >&5
4583 ac_compiler=`set X $ac_compile; echo $2`
4584 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4585 (eval $ac_compiler --version </dev/null >&5) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }
4589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4590 (eval $ac_compiler -v </dev/null >&5) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }
4594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4595 (eval $ac_compiler -V </dev/null >&5) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }
4600 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4601 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4602 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4613 main ()
4615 #ifndef __GNUC__
4616 choke me
4617 #endif
4620 return 0;
4622 _ACEOF
4623 rm -f conftest.$ac_objext
4624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625 (eval $ac_compile) 2>conftest.er1
4626 ac_status=$?
4627 grep -v '^ *+' conftest.er1 >conftest.err
4628 rm -f conftest.er1
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -z "$ac_c_werror_flag"
4633 || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 ac_compiler_gnu=yes
4646 else
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 ac_compiler_gnu=no
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4656 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4657 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4658 GCC=`test $ac_compiler_gnu = yes && echo yes`
4659 ac_test_CFLAGS=${CFLAGS+set}
4660 ac_save_CFLAGS=$CFLAGS
4661 CFLAGS="-g"
4662 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4663 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4664 if test "${ac_cv_prog_cc_g+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4675 main ()
4679 return 0;
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_prog_cc_g=yes
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 ac_cv_prog_cc_g=no
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4714 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4715 if test "$ac_test_CFLAGS" = set; then
4716 CFLAGS=$ac_save_CFLAGS
4717 elif test $ac_cv_prog_cc_g = yes; then
4718 if test "$GCC" = yes; then
4719 CFLAGS="-g -O2"
4720 else
4721 CFLAGS="-g"
4723 else
4724 if test "$GCC" = yes; then
4725 CFLAGS="-O2"
4726 else
4727 CFLAGS=
4730 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4731 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4732 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735 ac_cv_prog_cc_stdc=no
4736 ac_save_CC=$CC
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <stdarg.h>
4744 #include <stdio.h>
4745 #include <sys/types.h>
4746 #include <sys/stat.h>
4747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4748 struct buf { int x; };
4749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4750 static char *e (p, i)
4751 char **p;
4752 int i;
4754 return p[i];
4756 static char *f (char * (*g) (char **, int), char **p, ...)
4758 char *s;
4759 va_list v;
4760 va_start (v,p);
4761 s = g (p, va_arg (v,int));
4762 va_end (v);
4763 return s;
4766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4767 function prototypes and stuff, but not '\xHH' hex character constants.
4768 These don't provoke an error unfortunately, instead are silently treated
4769 as 'x'. The following induces an error, until -std1 is added to get
4770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4771 array size at least. It's necessary to write '\x00'==0 to get something
4772 that's true only with -std1. */
4773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4775 int test (int i, double x);
4776 struct s1 {int (*f) (int a);};
4777 struct s2 {int (*f) (double a);};
4778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4779 int argc;
4780 char **argv;
4782 main ()
4784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4786 return 0;
4788 _ACEOF
4789 # Don't try gcc -ansi; that turns off useful extensions and
4790 # breaks some systems' header files.
4791 # AIX -qlanglvl=ansi
4792 # Ultrix and OSF/1 -std1
4793 # HP-UX 10.20 and later -Ae
4794 # HP-UX older versions -Aa -D_HPUX_SOURCE
4795 # SVR4 -Xc -D__EXTENSIONS__
4796 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4798 CC="$ac_save_CC $ac_arg"
4799 rm -f conftest.$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_prog_cc_stdc=$ac_arg
4822 break
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4828 rm -f conftest.err conftest.$ac_objext
4829 done
4830 rm -f conftest.$ac_ext conftest.$ac_objext
4831 CC=$ac_save_CC
4835 case "x$ac_cv_prog_cc_stdc" in
4836 x|xno)
4837 echo "$as_me:$LINENO: result: none needed" >&5
4838 echo "${ECHO_T}none needed" >&6 ;;
4840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4841 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4842 CC="$CC $ac_cv_prog_cc_stdc" ;;
4843 esac
4845 # Some people use a C++ compiler to compile C. Since we use `exit',
4846 # in C++ we need to declare it. In case someone uses the same compiler
4847 # for both compiling C and C++ we need to have the C++ compiler decide
4848 # the declaration of exit, since it's the most demanding environment.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 #ifndef __cplusplus
4851 choke me
4852 #endif
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 for ac_declaration in \
4877 '' \
4878 'extern "C" void std::exit (int) throw (); using std::exit;' \
4879 'extern "C" void std::exit (int); using std::exit;' \
4880 'extern "C" void exit (int) throw ();' \
4881 'extern "C" void exit (int);' \
4882 'void exit (int);'
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_declaration
4891 #include <stdlib.h>
4893 main ()
4895 exit (42);
4897 return 0;
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 continue
4929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 $ac_declaration
4938 main ()
4940 exit (42);
4942 return 0;
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 break
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 done
4975 rm -f conftest*
4976 if test -n "$ac_declaration"; then
4977 echo '#ifdef __cplusplus' >>confdefs.h
4978 echo $ac_declaration >>confdefs.h
4979 echo '#endif' >>confdefs.h
4982 else
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_ext=c
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995 cat >>confdefs.h <<\_ACEOF
4996 #define _GNU_SOURCE 1
4997 _ACEOF
5001 for ac_prog in 'bison -y' byacc
5003 # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_YACC+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 if test -n "$YACC"; then
5011 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_YACC="$ac_prog"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5029 YACC=$ac_cv_prog_YACC
5030 if test -n "$YACC"; then
5031 echo "$as_me:$LINENO: result: $YACC" >&5
5032 echo "${ECHO_T}$YACC" >&6
5033 else
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5038 test -n "$YACC" && break
5039 done
5040 test -n "$YACC" || YACC="yacc"
5042 for ac_prog in flex lex
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_prog_LEX+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 if test -n "$LEX"; then
5052 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_LEX="$ac_prog"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5070 LEX=$ac_cv_prog_LEX
5071 if test -n "$LEX"; then
5072 echo "$as_me:$LINENO: result: $LEX" >&5
5073 echo "${ECHO_T}$LEX" >&6
5074 else
5075 echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6
5079 test -n "$LEX" && break
5080 done
5081 test -n "$LEX" || LEX=":"
5083 if test -z "$LEXLIB"
5084 then
5085 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5086 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5087 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 ac_check_lib_save_LIBS=$LIBS
5091 LIBS="-lfl $LIBS"
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 /* Override any gcc2 internal prototype to avoid an error. */
5100 #ifdef __cplusplus
5101 extern "C"
5102 #endif
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105 char yywrap ();
5107 main ()
5109 yywrap ();
5111 return 0;
5113 _ACEOF
5114 rm -f conftest.$ac_objext conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_fl_yywrap=yes
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_cv_lib_fl_yywrap=no
5143 rm -f conftest.err conftest.$ac_objext \
5144 conftest$ac_exeext conftest.$ac_ext
5145 LIBS=$ac_check_lib_save_LIBS
5147 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5148 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5149 if test $ac_cv_lib_fl_yywrap = yes; then
5150 LEXLIB="-lfl"
5151 else
5152 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5153 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5154 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 ac_check_lib_save_LIBS=$LIBS
5158 LIBS="-ll $LIBS"
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 #ifdef __cplusplus
5168 extern "C"
5169 #endif
5170 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5172 char yywrap ();
5174 main ()
5176 yywrap ();
5178 return 0;
5180 _ACEOF
5181 rm -f conftest.$ac_objext conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183 (eval $ac_link) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_lib_l_yywrap=yes
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_lib_l_yywrap=no
5210 rm -f conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 LIBS=$ac_check_lib_save_LIBS
5214 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5215 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5216 if test $ac_cv_lib_l_yywrap = yes; then
5217 LEXLIB="-ll"
5224 if test "x$LEX" != "x:"; then
5225 echo "$as_me:$LINENO: checking lex output file root" >&5
5226 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5227 if test "${ac_cv_prog_lex_root+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 # The minimal lex program is just a single line: %%. But some broken lexes
5231 # (Solaris, I think it was) want two %% lines, so accommodate them.
5232 cat >conftest.l <<_ACEOF
5235 _ACEOF
5236 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5237 (eval $LEX conftest.l) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 if test -f lex.yy.c; then
5242 ac_cv_prog_lex_root=lex.yy
5243 elif test -f lexyy.c; then
5244 ac_cv_prog_lex_root=lexyy
5245 else
5246 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5247 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5248 { (exit 1); exit 1; }; }
5251 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5252 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5253 rm -f conftest.l
5254 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5256 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5257 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5258 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261 # POSIX says lex can declare yytext either as a pointer or an array; the
5262 # default is implementation-dependent. Figure out which it is, since
5263 # not all implementations provide the %pointer and %array declarations.
5264 ac_cv_prog_lex_yytext_pointer=no
5265 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5266 ac_save_LIBS=$LIBS
5267 LIBS="$LIBS $LEXLIB"
5268 cat >conftest.$ac_ext <<_ACEOF
5269 `cat $LEX_OUTPUT_ROOT.c`
5270 _ACEOF
5271 rm -f conftest.$ac_objext conftest$ac_exeext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5273 (eval $ac_link) 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest$ac_exeext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_cv_prog_lex_yytext_pointer=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5299 rm -f conftest.err conftest.$ac_objext \
5300 conftest$ac_exeext conftest.$ac_ext
5301 LIBS=$ac_save_LIBS
5302 rm -f "${LEX_OUTPUT_ROOT}.c"
5305 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5306 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5307 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5309 cat >>confdefs.h <<\_ACEOF
5310 #define YYTEXT_POINTER 1
5311 _ACEOF
5316 if test "$LEX" = :; then
5317 LEX=${am_missing_run}flex
5320 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
5321 # If we haven't got the data from the intl directory,
5322 # assume NLS is disabled.
5323 USE_NLS=no
5324 LIBINTL=
5325 LIBINTL_DEP=
5326 INCINTL=
5327 XGETTEXT=
5328 GMSGFMT=
5329 POSUB=
5331 if test -f ../intl/config.intl; then
5332 . ../intl/config.intl
5334 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5335 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5336 if test x"$USE_NLS" != xyes; then
5337 echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6
5339 else
5340 echo "$as_me:$LINENO: result: yes" >&5
5341 echo "${ECHO_T}yes" >&6
5343 cat >>confdefs.h <<\_ACEOF
5344 #define ENABLE_NLS 1
5345 _ACEOF
5348 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5349 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5350 # Look for .po and .gmo files in the source directory.
5351 CATALOGS=
5352 XLINGUAS=
5353 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5354 # If there aren't any .gmo files the shell will give us the
5355 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5356 # weeded out.
5357 case "$cat" in *\**)
5358 continue;;
5359 esac
5360 # The quadruple backslash is collapsed to a double backslash
5361 # by the backticks, then collapsed again by the double quotes,
5362 # leaving us with one backslash in the sed expression (right
5363 # before the dot that mustn't act as a wildcard).
5364 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5365 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5366 # The user is allowed to set LINGUAS to a list of languages to
5367 # install catalogs for. If it's empty that means "all of them."
5368 if test "x$LINGUAS" = x; then
5369 CATALOGS="$CATALOGS $cat"
5370 XLINGUAS="$XLINGUAS $lang"
5371 else
5372 case "$LINGUAS" in *$lang*)
5373 CATALOGS="$CATALOGS $cat"
5374 XLINGUAS="$XLINGUAS $lang"
5376 esac
5378 done
5379 LINGUAS="$XLINGUAS"
5380 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5381 echo "${ECHO_T}$LINGUAS" >&6
5384 DATADIRNAME=share
5386 INSTOBJEXT=.mo
5388 GENCAT=gencat
5390 CATOBJEXT=.gmo
5394 MKINSTALLDIRS=
5395 if test -n "$ac_aux_dir"; then
5396 case "$ac_aux_dir" in
5397 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5398 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5399 esac
5401 if test -z "$MKINSTALLDIRS"; then
5402 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5407 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5408 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5409 # Check whether --enable-nls or --disable-nls was given.
5410 if test "${enable_nls+set}" = set; then
5411 enableval="$enable_nls"
5412 USE_NLS=$enableval
5413 else
5414 USE_NLS=yes
5416 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5417 echo "${ECHO_T}$USE_NLS" >&6
5424 # Prepare PATH_SEPARATOR.
5425 # The user is always right.
5426 if test "${PATH_SEPARATOR+set}" != set; then
5427 echo "#! /bin/sh" >conf$$.sh
5428 echo "exit 0" >>conf$$.sh
5429 chmod +x conf$$.sh
5430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5431 PATH_SEPARATOR=';'
5432 else
5433 PATH_SEPARATOR=:
5435 rm -f conf$$.sh
5438 # Find out how to test for executable files. Don't use a zero-byte file,
5439 # as systems may use methods other than mode bits to determine executability.
5440 cat >conf$$.file <<_ASEOF
5441 #! /bin/sh
5442 exit 0
5443 _ASEOF
5444 chmod +x conf$$.file
5445 if test -x conf$$.file >/dev/null 2>&1; then
5446 ac_executable_p="test -x"
5447 else
5448 ac_executable_p="test -f"
5450 rm -f conf$$.file
5452 # Extract the first word of "msgfmt", so it can be a program name with args.
5453 set dummy msgfmt; ac_word=$2
5454 echo "$as_me:$LINENO: checking for $ac_word" >&5
5455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5456 if test "${ac_cv_path_MSGFMT+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459 case "$MSGFMT" in
5460 [\\/]* | ?:[\\/]*)
5461 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5464 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5465 for ac_dir in $PATH; do
5466 IFS="$ac_save_IFS"
5467 test -z "$ac_dir" && ac_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5470 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5471 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5472 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5473 break 2
5476 done
5477 done
5478 IFS="$ac_save_IFS"
5479 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5481 esac
5483 MSGFMT="$ac_cv_path_MSGFMT"
5484 if test "$MSGFMT" != ":"; then
5485 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5486 echo "${ECHO_T}$MSGFMT" >&6
5487 else
5488 echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5492 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5493 set dummy gmsgfmt; ac_word=$2
5494 echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 case $GMSGFMT in
5500 [\\/]* | ?:[\\/]*)
5501 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5518 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5520 esac
5522 GMSGFMT=$ac_cv_path_GMSGFMT
5524 if test -n "$GMSGFMT"; then
5525 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5526 echo "${ECHO_T}$GMSGFMT" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6
5534 # Prepare PATH_SEPARATOR.
5535 # The user is always right.
5536 if test "${PATH_SEPARATOR+set}" != set; then
5537 echo "#! /bin/sh" >conf$$.sh
5538 echo "exit 0" >>conf$$.sh
5539 chmod +x conf$$.sh
5540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5541 PATH_SEPARATOR=';'
5542 else
5543 PATH_SEPARATOR=:
5545 rm -f conf$$.sh
5548 # Find out how to test for executable files. Don't use a zero-byte file,
5549 # as systems may use methods other than mode bits to determine executability.
5550 cat >conf$$.file <<_ASEOF
5551 #! /bin/sh
5552 exit 0
5553 _ASEOF
5554 chmod +x conf$$.file
5555 if test -x conf$$.file >/dev/null 2>&1; then
5556 ac_executable_p="test -x"
5557 else
5558 ac_executable_p="test -f"
5560 rm -f conf$$.file
5562 # Extract the first word of "xgettext", so it can be a program name with args.
5563 set dummy xgettext; ac_word=$2
5564 echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 case "$XGETTEXT" in
5570 [\\/]* | ?:[\\/]*)
5571 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5574 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5575 for ac_dir in $PATH; do
5576 IFS="$ac_save_IFS"
5577 test -z "$ac_dir" && ac_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5580 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5581 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5582 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5583 break 2
5586 done
5587 done
5588 IFS="$ac_save_IFS"
5589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5591 esac
5593 XGETTEXT="$ac_cv_path_XGETTEXT"
5594 if test "$XGETTEXT" != ":"; then
5595 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5596 echo "${ECHO_T}$XGETTEXT" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5602 rm -f messages.po
5605 # Prepare PATH_SEPARATOR.
5606 # The user is always right.
5607 if test "${PATH_SEPARATOR+set}" != set; then
5608 echo "#! /bin/sh" >conf$$.sh
5609 echo "exit 0" >>conf$$.sh
5610 chmod +x conf$$.sh
5611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5612 PATH_SEPARATOR=';'
5613 else
5614 PATH_SEPARATOR=:
5616 rm -f conf$$.sh
5619 # Find out how to test for executable files. Don't use a zero-byte file,
5620 # as systems may use methods other than mode bits to determine executability.
5621 cat >conf$$.file <<_ASEOF
5622 #! /bin/sh
5623 exit 0
5624 _ASEOF
5625 chmod +x conf$$.file
5626 if test -x conf$$.file >/dev/null 2>&1; then
5627 ac_executable_p="test -x"
5628 else
5629 ac_executable_p="test -f"
5631 rm -f conf$$.file
5633 # Extract the first word of "msgmerge", so it can be a program name with args.
5634 set dummy msgmerge; ac_word=$2
5635 echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5637 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 case "$MSGMERGE" in
5641 [\\/]* | ?:[\\/]*)
5642 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5646 for ac_dir in $PATH; do
5647 IFS="$ac_save_IFS"
5648 test -z "$ac_dir" && ac_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5651 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5652 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5653 break 2
5656 done
5657 done
5658 IFS="$ac_save_IFS"
5659 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5661 esac
5663 MSGMERGE="$ac_cv_path_MSGMERGE"
5664 if test "$MSGMERGE" != ":"; then
5665 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5666 echo "${ECHO_T}$MSGMERGE" >&6
5667 else
5668 echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6
5673 if test "$GMSGFMT" != ":"; then
5674 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5675 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5677 else
5678 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5679 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5680 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5681 GMSGFMT=":"
5685 if test "$XGETTEXT" != ":"; then
5686 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5687 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5689 else
5690 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5691 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5692 XGETTEXT=":"
5694 rm -f messages.po
5697 ac_config_commands="$ac_config_commands default-1"
5701 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5702 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5703 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5704 if test "${enable_maintainer_mode+set}" = set; then
5705 enableval="$enable_maintainer_mode"
5706 USE_MAINTAINER_MODE=$enableval
5707 else
5708 USE_MAINTAINER_MODE=no
5710 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5711 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5714 if test $USE_MAINTAINER_MODE = yes; then
5715 MAINTAINER_MODE_TRUE=
5716 MAINTAINER_MODE_FALSE='#'
5717 else
5718 MAINTAINER_MODE_TRUE='#'
5719 MAINTAINER_MODE_FALSE=
5722 MAINT=$MAINTAINER_MODE_TRUE
5727 if false; then
5728 GENINSRC_NEVER_TRUE=
5729 GENINSRC_NEVER_FALSE='#'
5730 else
5731 GENINSRC_NEVER_TRUE='#'
5732 GENINSRC_NEVER_FALSE=
5736 if test -n "$EXEEXT"; then
5738 cat >>confdefs.h <<\_ACEOF
5739 #define HAVE_EXECUTABLE_SUFFIX 1
5740 _ACEOF
5744 cat >>confdefs.h <<_ACEOF
5745 #define EXECUTABLE_SUFFIX "${EXEEXT}"
5746 _ACEOF
5749 # host-specific stuff:
5751 HDEFINES=
5753 . ${srcdir}/../bfd/configure.host
5756 AR=${AR-ar}
5758 if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5761 echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763 if test "${ac_cv_prog_RANLIB+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 if test -n "$RANLIB"; then
5767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5780 done
5781 done
5785 RANLIB=$ac_cv_prog_RANLIB
5786 if test -n "$RANLIB"; then
5787 echo "$as_me:$LINENO: result: $RANLIB" >&5
5788 echo "${ECHO_T}$RANLIB" >&6
5789 else
5790 echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6
5795 if test -z "$ac_cv_prog_RANLIB"; then
5796 ac_ct_RANLIB=$RANLIB
5797 # Extract the first word of "ranlib", so it can be a program name with args.
5798 set dummy ranlib; ac_word=$2
5799 echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 if test -n "$ac_ct_RANLIB"; then
5805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_RANLIB="ranlib"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5818 done
5819 done
5821 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5825 if test -n "$ac_ct_RANLIB"; then
5826 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5827 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5828 else
5829 echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6
5833 RANLIB=$ac_ct_RANLIB
5834 else
5835 RANLIB="$ac_cv_prog_RANLIB"
5838 # Find a good install program. We prefer a C program (faster),
5839 # so one script is as good as another. But avoid the broken or
5840 # incompatible versions:
5841 # SysV /etc/install, /usr/sbin/install
5842 # SunOS /usr/etc/install
5843 # IRIX /sbin/install
5844 # AIX /bin/install
5845 # AmigaOS /C/install, which installs bootblocks on floppy discs
5846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5849 # OS/2's system install, which has a completely different semantic
5850 # ./install, which can be erroneously created by make from ./install.sh.
5851 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5853 if test -z "$INSTALL"; then
5854 if test "${ac_cv_path_install+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 # Account for people who put trailing slashes in PATH elements.
5863 case $as_dir/ in
5864 ./ | .// | /cC/* | \
5865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5866 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5867 /usr/ucb/* ) ;;
5869 # OSF1 and SCO ODT 3.0 have their own names for install.
5870 # Don't use installbsd from OSF since it installs stuff as root
5871 # by default.
5872 for ac_prog in ginstall scoinst install; do
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5875 if test $ac_prog = install &&
5876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5877 # AIX install. It has an incompatible calling convention.
5879 elif test $ac_prog = install &&
5880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5881 # program-specific install script used by HP pwplus--don't use.
5883 else
5884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5885 break 3
5888 done
5889 done
5891 esac
5892 done
5896 if test "${ac_cv_path_install+set}" = set; then
5897 INSTALL=$ac_cv_path_install
5898 else
5899 # As a last resort, use the slow shell script. We don't cache a
5900 # path for INSTALL within a source directory, because that will
5901 # break other packages using the cache if that directory is
5902 # removed, or if the path is relative.
5903 INSTALL=$ac_install_sh
5906 echo "$as_me:$LINENO: result: $INSTALL" >&5
5907 echo "${ECHO_T}$INSTALL" >&6
5909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5910 # It thinks the first close brace ends the variable substitution.
5911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5918 # Put a plausible default for CC_FOR_BUILD in Makefile.
5919 if test -z "$CC_FOR_BUILD"; then
5920 if test "x$cross_compiling" = "xno"; then
5921 CC_FOR_BUILD='$(CC)'
5922 else
5923 CC_FOR_BUILD=gcc
5927 # Also set EXEEXT_FOR_BUILD.
5928 if test "x$cross_compiling" = "xno"; then
5929 EXEEXT_FOR_BUILD='$(EXEEXT)'
5930 else
5931 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
5932 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
5933 if test "${bfd_cv_build_exeext+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 rm -f conftest*
5937 echo 'int main () { return 0; }' > conftest.c
5938 bfd_cv_build_exeext=
5939 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
5940 for file in conftest.*; do
5941 case $file in
5942 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5943 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
5944 esac
5945 done
5946 rm -f conftest*
5947 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5949 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
5950 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
5951 EXEEXT_FOR_BUILD=""
5952 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5956 DEMANGLER_NAME=c++filt
5957 case "${host}" in
5958 *-*-go32* | *-*-msdos*)
5959 DEMANGLER_NAME=cxxfilt
5960 esac
5963 ac_ext=c
5964 ac_cpp='$CPP $CPPFLAGS'
5965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5969 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5970 # On Suns, sometimes $CPP names a directory.
5971 if test -n "$CPP" && test -d "$CPP"; then
5972 CPP=
5974 if test -z "$CPP"; then
5975 if test "${ac_cv_prog_CPP+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 # Double quotes because CPP needs to be expanded
5979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5981 ac_preproc_ok=false
5982 for ac_c_preproc_warn_flag in '' yes
5984 # Use a header file that comes with gcc, so configuring glibc
5985 # with a fresh cross-compiler works.
5986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 # <limits.h> exists even on freestanding compilers.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #ifdef __STDC__
5997 # include <limits.h>
5998 #else
5999 # include <assert.h>
6000 #endif
6001 Syntax error
6002 _ACEOF
6003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null; then
6011 if test -s conftest.err; then
6012 ac_cpp_err=$ac_c_preproc_warn_flag
6013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014 else
6015 ac_cpp_err=
6017 else
6018 ac_cpp_err=yes
6020 if test -z "$ac_cpp_err"; then
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 # Broken: fails on valid input.
6027 continue
6029 rm -f conftest.err conftest.$ac_ext
6031 # OK, works on sane cases. Now check whether non-existent headers
6032 # can be detected and how.
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #include <ac_nonexistent.h>
6040 _ACEOF
6041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } >/dev/null; then
6049 if test -s conftest.err; then
6050 ac_cpp_err=$ac_c_preproc_warn_flag
6051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6052 else
6053 ac_cpp_err=
6055 else
6056 ac_cpp_err=yes
6058 if test -z "$ac_cpp_err"; then
6059 # Broken: success on invalid input.
6060 continue
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 # Passes both tests.
6066 ac_preproc_ok=:
6067 break
6069 rm -f conftest.err conftest.$ac_ext
6071 done
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then
6075 break
6078 done
6079 ac_cv_prog_CPP=$CPP
6082 CPP=$ac_cv_prog_CPP
6083 else
6084 ac_cv_prog_CPP=$CPP
6086 echo "$as_me:$LINENO: result: $CPP" >&5
6087 echo "${ECHO_T}$CPP" >&6
6088 ac_preproc_ok=false
6089 for ac_c_preproc_warn_flag in '' yes
6091 # Use a header file that comes with gcc, so configuring glibc
6092 # with a fresh cross-compiler works.
6093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094 # <limits.h> exists even on freestanding compilers.
6095 # On the NeXT, cc -E runs the code through the compiler's parser,
6096 # not just through cpp. "Syntax error" is here to catch this case.
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 #ifdef __STDC__
6104 # include <limits.h>
6105 #else
6106 # include <assert.h>
6107 #endif
6108 Syntax error
6109 _ACEOF
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } >/dev/null; then
6118 if test -s conftest.err; then
6119 ac_cpp_err=$ac_c_preproc_warn_flag
6120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6121 else
6122 ac_cpp_err=
6124 else
6125 ac_cpp_err=yes
6127 if test -z "$ac_cpp_err"; then
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 # Broken: fails on valid input.
6134 continue
6136 rm -f conftest.err conftest.$ac_ext
6138 # OK, works on sane cases. Now check whether non-existent headers
6139 # can be detected and how.
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 #include <ac_nonexistent.h>
6147 _ACEOF
6148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null; then
6156 if test -s conftest.err; then
6157 ac_cpp_err=$ac_c_preproc_warn_flag
6158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6159 else
6160 ac_cpp_err=
6162 else
6163 ac_cpp_err=yes
6165 if test -z "$ac_cpp_err"; then
6166 # Broken: success on invalid input.
6167 continue
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 # Passes both tests.
6173 ac_preproc_ok=:
6174 break
6176 rm -f conftest.err conftest.$ac_ext
6178 done
6179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6180 rm -f conftest.err conftest.$ac_ext
6181 if $ac_preproc_ok; then
6183 else
6184 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6185 See \`config.log' for more details." >&5
6186 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6187 See \`config.log' for more details." >&2;}
6188 { (exit 1); exit 1; }; }
6191 ac_ext=c
6192 ac_cpp='$CPP $CPPFLAGS'
6193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198 echo "$as_me:$LINENO: checking for egrep" >&5
6199 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6200 if test "${ac_cv_prog_egrep+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6204 then ac_cv_prog_egrep='grep -E'
6205 else ac_cv_prog_egrep='egrep'
6208 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6209 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6210 EGREP=$ac_cv_prog_egrep
6213 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6215 if test "${ac_cv_header_stdc+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 #include <stdlib.h>
6225 #include <stdarg.h>
6226 #include <string.h>
6227 #include <float.h>
6230 main ()
6234 return 0;
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try='test -s conftest.$ac_objext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 ac_cv_header_stdc=yes
6260 else
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_cv_header_stdc=no
6266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268 if test $ac_cv_header_stdc = yes; then
6269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <string.h>
6278 _ACEOF
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "memchr" >/dev/null 2>&1; then
6282 else
6283 ac_cv_header_stdc=no
6285 rm -f conftest*
6289 if test $ac_cv_header_stdc = yes; then
6290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h. */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <stdlib.h>
6299 _ACEOF
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "free" >/dev/null 2>&1; then
6303 else
6304 ac_cv_header_stdc=no
6306 rm -f conftest*
6310 if test $ac_cv_header_stdc = yes; then
6311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6312 if test "$cross_compiling" = yes; then
6314 else
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <ctype.h>
6322 #if ((' ' & 0x0FF) == 0x020)
6323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6325 #else
6326 # define ISLOWER(c) \
6327 (('a' <= (c) && (c) <= 'i') \
6328 || ('j' <= (c) && (c) <= 'r') \
6329 || ('s' <= (c) && (c) <= 'z'))
6330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6331 #endif
6333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6335 main ()
6337 int i;
6338 for (i = 0; i < 256; i++)
6339 if (XOR (islower (i), ISLOWER (i))
6340 || toupper (i) != TOUPPER (i))
6341 exit(2);
6342 exit (0);
6344 _ACEOF
6345 rm -f conftest$ac_exeext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6347 (eval $ac_link) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6357 else
6358 echo "$as_me: program exited with status $ac_status" >&5
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ( exit $ac_status )
6363 ac_cv_header_stdc=no
6365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6369 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6370 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6371 if test $ac_cv_header_stdc = yes; then
6373 cat >>confdefs.h <<\_ACEOF
6374 #define STDC_HEADERS 1
6375 _ACEOF
6379 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6390 inttypes.h stdint.h unistd.h
6392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393 echo "$as_me:$LINENO: checking for $ac_header" >&5
6394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h. */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 $ac_includes_default
6406 #include <$ac_header>
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 eval "$as_ac_Header=yes"
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 eval "$as_ac_Header=no"
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 _ACEOF
6448 done
6459 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
6461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6463 echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 else
6471 # Is the header compilable?
6472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 $ac_includes_default
6481 #include <$ac_header>
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag"
6493 || test ! -s conftest.err'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_header_compiler=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_header_compiler=no
6512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6514 echo "${ECHO_T}$ac_header_compiler" >&6
6516 # Is the header present?
6517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6519 cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h. */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 #include <$ac_header>
6526 _ACEOF
6527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } >/dev/null; then
6535 if test -s conftest.err; then
6536 ac_cpp_err=$ac_c_preproc_warn_flag
6537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6538 else
6539 ac_cpp_err=
6541 else
6542 ac_cpp_err=yes
6544 if test -z "$ac_cpp_err"; then
6545 ac_header_preproc=yes
6546 else
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 ac_header_preproc=no
6552 rm -f conftest.err conftest.$ac_ext
6553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6554 echo "${ECHO_T}$ac_header_preproc" >&6
6556 # So? What about this header?
6557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6558 yes:no: )
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6563 ac_header_preproc=yes
6565 no:yes:* )
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6579 cat <<\_ASBOX
6580 ## ------------------------------------------ ##
6581 ## Report this to the AC_PACKAGE_NAME lists. ##
6582 ## ------------------------------------------ ##
6583 _ASBOX
6585 sed "s/^/$as_me: WARNING: /" >&2
6587 esac
6588 echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 eval "$as_ac_Header=\$ac_header_preproc"
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 _ACEOF
6606 done
6608 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6609 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6610 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <sys/types.h>
6620 #include <sys/wait.h>
6621 #ifndef WEXITSTATUS
6622 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6623 #endif
6624 #ifndef WIFEXITED
6625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6626 #endif
6629 main ()
6631 int s;
6632 wait (&s);
6633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6635 return 0;
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6640 (eval $ac_compile) 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag"
6648 || test ! -s conftest.err'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; } &&
6654 { ac_try='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_header_sys_wait_h=yes
6661 else
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6665 ac_cv_header_sys_wait_h=no
6667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6670 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6671 if test $ac_cv_header_sys_wait_h = yes; then
6673 cat >>confdefs.h <<\_ACEOF
6674 #define HAVE_SYS_WAIT_H 1
6675 _ACEOF
6679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6680 # for constant arguments. Useless!
6681 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6682 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6683 if test "${ac_cv_working_alloca_h+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <alloca.h>
6694 main ()
6696 char *p = (char *) alloca (2 * sizeof (int));
6698 return 0;
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_working_alloca_h=yes
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 ac_cv_working_alloca_h=no
6730 rm -f conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6734 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6735 if test $ac_cv_working_alloca_h = yes; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_ALLOCA_H 1
6739 _ACEOF
6743 echo "$as_me:$LINENO: checking for alloca" >&5
6744 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6745 if test "${ac_cv_func_alloca_works+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 #ifdef __GNUC__
6755 # define alloca __builtin_alloca
6756 #else
6757 # ifdef _MSC_VER
6758 # include <malloc.h>
6759 # define alloca _alloca
6760 # else
6761 # if HAVE_ALLOCA_H
6762 # include <alloca.h>
6763 # else
6764 # ifdef _AIX
6765 #pragma alloca
6766 # else
6767 # ifndef alloca /* predefined by HP cc +Olibcalls */
6768 char *alloca ();
6769 # endif
6770 # endif
6771 # endif
6772 # endif
6773 #endif
6776 main ()
6778 char *p = (char *) alloca (1);
6780 return 0;
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -z "$ac_c_werror_flag"
6793 || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_func_alloca_works=yes
6806 else
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_func_alloca_works=no
6812 rm -f conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6815 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6816 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6818 if test $ac_cv_func_alloca_works = yes; then
6820 cat >>confdefs.h <<\_ACEOF
6821 #define HAVE_ALLOCA 1
6822 _ACEOF
6824 else
6825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6826 # that cause trouble. Some versions do not even contain alloca or
6827 # contain a buggy version. If you still want to use their alloca,
6828 # use ar to extract alloca.o from them instead of compiling alloca.c.
6830 ALLOCA=alloca.$ac_objext
6832 cat >>confdefs.h <<\_ACEOF
6833 #define C_ALLOCA 1
6834 _ACEOF
6837 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6838 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6839 if test "${ac_cv_os_cray+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 #if defined(CRAY) && ! defined(CRAY2)
6849 webecray
6850 #else
6851 wenotbecray
6852 #endif
6854 _ACEOF
6855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6856 $EGREP "webecray" >/dev/null 2>&1; then
6857 ac_cv_os_cray=yes
6858 else
6859 ac_cv_os_cray=no
6861 rm -f conftest*
6864 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6865 echo "${ECHO_T}$ac_cv_os_cray" >&6
6866 if test $ac_cv_os_cray = yes; then
6867 for ac_func in _getb67 GETB67 getb67; do
6868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6869 echo "$as_me:$LINENO: checking for $ac_func" >&5
6870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6871 if eval "test \"\${$as_ac_var+set}\" = set"; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6882 #define $ac_func innocuous_$ac_func
6884 /* System header to define __stub macros and hopefully few prototypes,
6885 which can conflict with char $ac_func (); below.
6886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6887 <limits.h> exists even on freestanding compilers. */
6889 #ifdef __STDC__
6890 # include <limits.h>
6891 #else
6892 # include <assert.h>
6893 #endif
6895 #undef $ac_func
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 #ifdef __cplusplus
6899 extern "C"
6901 #endif
6902 /* We use char because int might match the return type of a gcc2
6903 builtin and then its argument prototype would still apply. */
6904 char $ac_func ();
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6909 choke me
6910 #else
6911 char (*f) () = $ac_func;
6912 #endif
6913 #ifdef __cplusplus
6915 #endif
6918 main ()
6920 return f != $ac_func;
6922 return 0;
6924 _ACEOF
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 eval "$as_ac_var=yes"
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 eval "$as_ac_var=no"
6954 rm -f conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6959 if test `eval echo '${'$as_ac_var'}'` = yes; then
6961 cat >>confdefs.h <<_ACEOF
6962 #define CRAY_STACKSEG_END $ac_func
6963 _ACEOF
6965 break
6968 done
6971 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6972 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6973 if test "${ac_cv_c_stack_direction+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 if test "$cross_compiling" = yes; then
6977 ac_cv_c_stack_direction=0
6978 else
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h. */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6986 find_stack_direction ()
6988 static char *addr = 0;
6989 auto char dummy;
6990 if (addr == 0)
6992 addr = &dummy;
6993 return find_stack_direction ();
6995 else
6996 return (&dummy > addr) ? 1 : -1;
7000 main ()
7002 exit (find_stack_direction () < 0);
7004 _ACEOF
7005 rm -f conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_c_stack_direction=1
7017 else
7018 echo "$as_me: program exited with status $ac_status" >&5
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ( exit $ac_status )
7023 ac_cv_c_stack_direction=-1
7025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7029 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7031 cat >>confdefs.h <<_ACEOF
7032 #define STACK_DIRECTION $ac_cv_c_stack_direction
7033 _ACEOF
7043 for ac_func in sbrk utimes setmode getc_unlocked strcoll
7045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7046 echo "$as_me:$LINENO: checking for $ac_func" >&5
7047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7048 if eval "test \"\${$as_ac_var+set}\" = set"; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7059 #define $ac_func innocuous_$ac_func
7061 /* System header to define __stub macros and hopefully few prototypes,
7062 which can conflict with char $ac_func (); below.
7063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7064 <limits.h> exists even on freestanding compilers. */
7066 #ifdef __STDC__
7067 # include <limits.h>
7068 #else
7069 # include <assert.h>
7070 #endif
7072 #undef $ac_func
7074 /* Override any gcc2 internal prototype to avoid an error. */
7075 #ifdef __cplusplus
7076 extern "C"
7078 #endif
7079 /* We use char because int might match the return type of a gcc2
7080 builtin and then its argument prototype would still apply. */
7081 char $ac_func ();
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7086 choke me
7087 #else
7088 char (*f) () = $ac_func;
7089 #endif
7090 #ifdef __cplusplus
7092 #endif
7095 main ()
7097 return f != $ac_func;
7099 return 0;
7101 _ACEOF
7102 rm -f conftest.$ac_objext conftest$ac_exeext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104 (eval $ac_link) 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } &&
7111 { ac_try='test -z "$ac_c_werror_flag"
7112 || test ! -s conftest.err'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; } &&
7118 { ac_try='test -s conftest$ac_exeext'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7124 eval "$as_ac_var=yes"
7125 else
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7129 eval "$as_ac_var=no"
7131 rm -f conftest.err conftest.$ac_objext \
7132 conftest$ac_exeext conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7136 if test `eval echo '${'$as_ac_var'}'` = yes; then
7137 cat >>confdefs.h <<_ACEOF
7138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7139 _ACEOF
7142 done
7144 echo "$as_me:$LINENO: checking for mkstemp" >&5
7145 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7146 if test "${ac_cv_func_mkstemp+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
7156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7157 #define mkstemp innocuous_mkstemp
7159 /* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char mkstemp (); below.
7161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7162 <limits.h> exists even on freestanding compilers. */
7164 #ifdef __STDC__
7165 # include <limits.h>
7166 #else
7167 # include <assert.h>
7168 #endif
7170 #undef mkstemp
7172 /* Override any gcc2 internal prototype to avoid an error. */
7173 #ifdef __cplusplus
7174 extern "C"
7176 #endif
7177 /* We use char because int might match the return type of a gcc2
7178 builtin and then its argument prototype would still apply. */
7179 char mkstemp ();
7180 /* The GNU C library defines this for functions which it implements
7181 to always fail with ENOSYS. Some functions are actually named
7182 something starting with __ and the normal name is an alias. */
7183 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
7184 choke me
7185 #else
7186 char (*f) () = mkstemp;
7187 #endif
7188 #ifdef __cplusplus
7190 #endif
7193 main ()
7195 return f != mkstemp;
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext conftest$ac_exeext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7202 (eval $ac_link) 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -z "$ac_c_werror_flag"
7210 || test ! -s conftest.err'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; } &&
7216 { ac_try='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_func_mkstemp=yes
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_cv_func_mkstemp=no
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7232 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
7233 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
7234 if test $ac_cv_func_mkstemp = yes; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_MKSTEMP 1
7238 _ACEOF
7242 echo "$as_me:$LINENO: checking for mkdtemp" >&5
7243 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
7244 if test "${ac_cv_func_mkdtemp+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
7254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7255 #define mkdtemp innocuous_mkdtemp
7257 /* System header to define __stub macros and hopefully few prototypes,
7258 which can conflict with char mkdtemp (); below.
7259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260 <limits.h> exists even on freestanding compilers. */
7262 #ifdef __STDC__
7263 # include <limits.h>
7264 #else
7265 # include <assert.h>
7266 #endif
7268 #undef mkdtemp
7270 /* Override any gcc2 internal prototype to avoid an error. */
7271 #ifdef __cplusplus
7272 extern "C"
7274 #endif
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277 char mkdtemp ();
7278 /* The GNU C library defines this for functions which it implements
7279 to always fail with ENOSYS. Some functions are actually named
7280 something starting with __ and the normal name is an alias. */
7281 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
7282 choke me
7283 #else
7284 char (*f) () = mkdtemp;
7285 #endif
7286 #ifdef __cplusplus
7288 #endif
7291 main ()
7293 return f != mkdtemp;
7295 return 0;
7297 _ACEOF
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300 (eval $ac_link) 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -z "$ac_c_werror_flag"
7308 || test ! -s conftest.err'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try='test -s conftest$ac_exeext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 ac_cv_func_mkdtemp=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_cv_func_mkdtemp=no
7327 rm -f conftest.err conftest.$ac_objext \
7328 conftest$ac_exeext conftest.$ac_ext
7330 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
7331 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
7332 if test $ac_cv_func_mkdtemp = yes; then
7334 cat >>confdefs.h <<\_ACEOF
7335 #define HAVE_MKDTEMP 1
7336 _ACEOF
7341 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
7342 # needs to be defined for it
7343 echo "$as_me:$LINENO: checking for fopen64" >&5
7344 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
7345 if test "${bu_cv_have_fopen64+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348 cat >conftest.$ac_ext <<_ACEOF
7349 /* confdefs.h. */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 #include <stdio.h>
7356 main ()
7358 FILE *f = fopen64 ("/tmp/foo","r");
7360 return 0;
7362 _ACEOF
7363 rm -f conftest.$ac_objext conftest$ac_exeext
7364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 (eval $ac_link) 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_c_werror_flag"
7373 || test ! -s conftest.err'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; } &&
7379 { ac_try='test -s conftest$ac_exeext'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 bu_cv_have_fopen64=yes
7386 else
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 saved_CPPFLAGS=$CPPFLAGS
7391 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #include <stdio.h>
7400 main ()
7402 FILE *f = fopen64 ("/tmp/foo","r");
7404 return 0;
7406 _ACEOF
7407 rm -f conftest.$ac_objext conftest$ac_exeext
7408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7409 (eval $ac_link) 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try='test -z "$ac_c_werror_flag"
7417 || test ! -s conftest.err'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 (eval $ac_try) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; } &&
7423 { ac_try='test -s conftest$ac_exeext'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
7430 else
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 bu_cv_have_fopen64=no
7436 rm -f conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7438 CPPFLAGS=$saved_CPPFLAGS
7440 rm -f conftest.err conftest.$ac_objext \
7441 conftest$ac_exeext conftest.$ac_ext
7444 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
7445 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
7446 if test "$bu_cv_have_fopen64" != no; then
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_FOPEN64 1
7450 _ACEOF
7453 echo "$as_me:$LINENO: checking for stat64" >&5
7454 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
7455 if test "${bu_cv_have_stat64+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 #include <sys/stat.h>
7466 main ()
7468 struct stat64 st; stat64 ("/tmp/foo", &st);
7470 return 0;
7472 _ACEOF
7473 rm -f conftest.$ac_objext conftest$ac_exeext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7475 (eval $ac_link) 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try='test -z "$ac_c_werror_flag"
7483 || test ! -s conftest.err'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 (eval $ac_try) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; } &&
7489 { ac_try='test -s conftest$ac_exeext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 bu_cv_have_stat64=yes
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 saved_CPPFLAGS=$CPPFLAGS
7501 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 #include <sys/stat.h>
7510 main ()
7512 struct stat64 st; stat64 ("/tmp/foo", &st);
7514 return 0;
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest$ac_exeext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 bu_cv_have_stat64=no
7546 rm -f conftest.err conftest.$ac_objext \
7547 conftest$ac_exeext conftest.$ac_ext
7548 CPPFLAGS=$saved_CPPFLAGS
7550 rm -f conftest.err conftest.$ac_objext \
7551 conftest$ac_exeext conftest.$ac_ext
7554 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
7555 echo "${ECHO_T}$bu_cv_have_stat64" >&6
7556 if test "$bu_cv_have_stat64" != no; then
7558 cat >>confdefs.h <<\_ACEOF
7559 #define HAVE_STAT64 1
7560 _ACEOF
7563 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
7564 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
7566 cat >>confdefs.h <<\_ACEOF
7567 #define _LARGEFILE64_SOURCE 1
7568 _ACEOF
7570 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7573 # Some systems have frexp only in -lm, not in -lc.
7574 echo "$as_me:$LINENO: checking for library containing frexp" >&5
7575 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
7576 if test "${ac_cv_search_frexp+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 ac_func_search_save_LIBS=$LIBS
7580 ac_cv_search_frexp=no
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7588 /* Override any gcc2 internal prototype to avoid an error. */
7589 #ifdef __cplusplus
7590 extern "C"
7591 #endif
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7594 char frexp ();
7596 main ()
7598 frexp ();
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_search_frexp="none required"
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7631 rm -f conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 if test "$ac_cv_search_frexp" = no; then
7634 for ac_lib in m; do
7635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7643 /* Override any gcc2 internal prototype to avoid an error. */
7644 #ifdef __cplusplus
7645 extern "C"
7646 #endif
7647 /* We use char because int might match the return type of a gcc2
7648 builtin and then its argument prototype would still apply. */
7649 char frexp ();
7651 main ()
7653 frexp ();
7655 return 0;
7657 _ACEOF
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660 (eval $ac_link) 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -z "$ac_c_werror_flag"
7668 || test ! -s conftest.err'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_cv_search_frexp="-l$ac_lib"
7681 break
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7687 rm -f conftest.err conftest.$ac_objext \
7688 conftest$ac_exeext conftest.$ac_ext
7689 done
7691 LIBS=$ac_func_search_save_LIBS
7693 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
7694 echo "${ECHO_T}$ac_cv_search_frexp" >&6
7695 if test "$ac_cv_search_frexp" != no; then
7696 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
7701 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
7702 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
7703 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 #include <time.h>
7714 main ()
7716 time_t i;
7718 return 0;
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag"
7731 || test ! -s conftest.err'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest.$ac_objext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743 bu_cv_decl_time_t_time_h=yes
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 bu_cv_decl_time_t_time_h=no
7750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
7754 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
7755 if test $bu_cv_decl_time_t_time_h = yes; then
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_TIME_T_IN_TIME_H 1
7759 _ACEOF
7763 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
7764 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
7765 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7776 main ()
7778 time_t i;
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest.$ac_objext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 bu_cv_decl_time_t_types_h=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 bu_cv_decl_time_t_types_h=no
7812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
7816 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
7817 if test $bu_cv_decl_time_t_types_h = yes; then
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_TIME_T_IN_TYPES_H 1
7821 _ACEOF
7825 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
7826 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
7827 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830 cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h. */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 #include <unistd.h>
7838 main ()
7840 extern int getopt (int, char *const*, const char *);
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag"
7855 || test ! -s conftest.err'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try='test -s conftest.$ac_objext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 bu_cv_decl_getopt_unistd_h=yes
7868 else
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 bu_cv_decl_getopt_unistd_h=no
7874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
7878 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
7879 if test $bu_cv_decl_getopt_unistd_h = yes; then
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_DECL_GETOPT 1
7883 _ACEOF
7887 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
7888 # by default.
7889 echo "$as_me:$LINENO: checking for utime.h" >&5
7890 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
7891 if test "${bu_cv_header_utime_h+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 #include <sys/types.h>
7901 #ifdef HAVE_TIME_H
7902 #include <time.h>
7903 #endif
7904 #include <utime.h>
7906 main ()
7908 struct utimbuf s;
7910 return 0;
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 bu_cv_header_utime_h=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 bu_cv_header_utime_h=no
7942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7945 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
7946 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
7947 if test $bu_cv_header_utime_h = yes; then
7949 cat >>confdefs.h <<\_ACEOF
7950 #define HAVE_GOOD_UTIME_H 1
7951 _ACEOF
7955 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
7956 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
7957 if test "${ac_cv_have_decl_fprintf+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7968 main ()
7970 #ifndef fprintf
7971 char *p = (char *) fprintf;
7972 #endif
7975 return 0;
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980 (eval $ac_compile) 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -z "$ac_c_werror_flag"
7988 || test ! -s conftest.err'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 (eval $ac_try) 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; } &&
7994 { ac_try='test -s conftest.$ac_objext'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 (eval $ac_try) 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 ac_cv_have_decl_fprintf=yes
8001 else
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 ac_cv_have_decl_fprintf=no
8007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
8010 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
8011 if test $ac_cv_have_decl_fprintf = yes; then
8013 cat >>confdefs.h <<_ACEOF
8014 #define HAVE_DECL_FPRINTF 1
8015 _ACEOF
8018 else
8019 cat >>confdefs.h <<_ACEOF
8020 #define HAVE_DECL_FPRINTF 0
8021 _ACEOF
8025 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8026 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8027 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8038 main ()
8040 #ifndef stpcpy
8041 char *p = (char *) stpcpy;
8042 #endif
8045 return 0;
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_have_decl_stpcpy=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_cv_have_decl_stpcpy=no
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8080 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8081 if test $ac_cv_have_decl_stpcpy = yes; then
8083 cat >>confdefs.h <<_ACEOF
8084 #define HAVE_DECL_STPCPY 1
8085 _ACEOF
8088 else
8089 cat >>confdefs.h <<_ACEOF
8090 #define HAVE_DECL_STPCPY 0
8091 _ACEOF
8095 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8096 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8097 if test "${ac_cv_have_decl_strstr+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8108 main ()
8110 #ifndef strstr
8111 char *p = (char *) strstr;
8112 #endif
8115 return 0;
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_have_decl_strstr=yes
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 ac_cv_have_decl_strstr=no
8147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8150 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8151 if test $ac_cv_have_decl_strstr = yes; then
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_DECL_STRSTR 1
8155 _ACEOF
8158 else
8159 cat >>confdefs.h <<_ACEOF
8160 #define HAVE_DECL_STRSTR 0
8161 _ACEOF
8165 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8166 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8167 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8178 main ()
8180 #ifndef sbrk
8181 char *p = (char *) sbrk;
8182 #endif
8185 return 0;
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_have_decl_sbrk=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_have_decl_sbrk=no
8217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8219 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8220 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8221 if test $ac_cv_have_decl_sbrk = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_DECL_SBRK 1
8225 _ACEOF
8228 else
8229 cat >>confdefs.h <<_ACEOF
8230 #define HAVE_DECL_SBRK 0
8231 _ACEOF
8235 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8236 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8237 if test "${ac_cv_have_decl_getenv+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8248 main ()
8250 #ifndef getenv
8251 char *p = (char *) getenv;
8252 #endif
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8260 (eval $ac_compile) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 ac_cv_have_decl_getenv=yes
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 ac_cv_have_decl_getenv=no
8287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8289 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8290 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8291 if test $ac_cv_have_decl_getenv = yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define HAVE_DECL_GETENV 1
8295 _ACEOF
8298 else
8299 cat >>confdefs.h <<_ACEOF
8300 #define HAVE_DECL_GETENV 0
8301 _ACEOF
8305 echo "$as_me:$LINENO: checking whether environ is declared" >&5
8306 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
8307 if test "${ac_cv_have_decl_environ+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 $ac_includes_default
8318 main ()
8320 #ifndef environ
8321 char *p = (char *) environ;
8322 #endif
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330 (eval $ac_compile) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_have_decl_environ=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_cv_have_decl_environ=no
8357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8359 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
8360 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
8361 if test $ac_cv_have_decl_environ = yes; then
8363 cat >>confdefs.h <<_ACEOF
8364 #define HAVE_DECL_ENVIRON 1
8365 _ACEOF
8368 else
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_DECL_ENVIRON 0
8371 _ACEOF
8375 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8376 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8377 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8388 main ()
8390 #ifndef getc_unlocked
8391 char *p = (char *) getc_unlocked;
8392 #endif
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400 (eval $ac_compile) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_have_decl_getc_unlocked=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_cv_have_decl_getc_unlocked=no
8427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8430 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8431 if test $ac_cv_have_decl_getc_unlocked = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_GETC_UNLOCKED 1
8435 _ACEOF
8438 else
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_GETC_UNLOCKED 0
8441 _ACEOF
8445 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8446 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
8447 if test "${ac_cv_have_decl_snprintf+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8458 main ()
8460 #ifndef snprintf
8461 char *p = (char *) snprintf;
8462 #endif
8465 return 0;
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_cv_have_decl_snprintf=yes
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_have_decl_snprintf=no
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8499 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8500 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
8501 if test $ac_cv_have_decl_snprintf = yes; then
8503 cat >>confdefs.h <<_ACEOF
8504 #define HAVE_DECL_SNPRINTF 1
8505 _ACEOF
8508 else
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_DECL_SNPRINTF 0
8511 _ACEOF
8515 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8516 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8517 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 $ac_includes_default
8528 main ()
8530 #ifndef vsnprintf
8531 char *p = (char *) vsnprintf;
8532 #endif
8535 return 0;
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 (eval $ac_compile) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_have_decl_vsnprintf=yes
8561 else
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_cv_have_decl_vsnprintf=no
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8569 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8570 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8571 if test $ac_cv_have_decl_vsnprintf = yes; then
8573 cat >>confdefs.h <<_ACEOF
8574 #define HAVE_DECL_VSNPRINTF 1
8575 _ACEOF
8578 else
8579 cat >>confdefs.h <<_ACEOF
8580 #define HAVE_DECL_VSNPRINTF 0
8581 _ACEOF
8589 case "${host}" in
8590 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8592 cat >>confdefs.h <<\_ACEOF
8593 #define USE_BINARY_FOPEN 1
8594 _ACEOF
8596 esac
8598 # target-specific stuff:
8600 # Canonicalize the secondary target names.
8601 if test -n "$enable_targets"; then
8602 for targ in `echo $enable_targets | sed 's/,/ /g'`
8604 result=`$ac_config_sub $targ 2>/dev/null`
8605 if test -n "$result"; then
8606 canon_targets="$canon_targets $result"
8607 else
8608 # Allow targets that config.sub doesn't recognize, like "all".
8609 canon_targets="$canon_targets $targ"
8611 done
8614 all_targets=false
8615 BUILD_NLMCONV=
8616 NLMCONV_DEFS=
8617 BUILD_SRCONV=
8618 BUILD_DLLTOOL=
8619 DLLTOOL_DEFS=
8620 DLLTOOL_DEFAULT=
8621 BUILD_WINDRES=
8622 BUILD_DLLWRAP=
8623 BUILD_MISC=
8624 OBJDUMP_DEFS=
8626 for targ in $target $canon_targets
8628 if test "x$targ" = "xall"; then
8629 all_targets=true
8630 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8631 BUILD_SRCONV='$(SRCONV_PROG)'
8632 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
8633 else
8634 case $targ in
8635 i[3-7]86*-*-netware*)
8636 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8637 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
8639 alpha*-*-netware*)
8640 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8641 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
8643 powerpc*-*-netware*)
8644 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8645 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
8647 sparc*-*-netware*)
8648 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8649 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
8651 esac
8652 case $targ in
8653 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
8654 esac
8655 case $targ in
8656 arm-epoc-pe*)
8657 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8658 if test -z "$DLLTOOL_DEFAULT"; then
8659 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
8661 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
8662 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8664 arm-wince-pe* | arm-*-wince)
8665 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8666 if test -z "$DLLTOOL_DEFAULT"; then
8667 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
8669 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
8670 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8672 arm-*-pe*)
8673 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8674 if test -z "$DLLTOOL_DEFAULT"; then
8675 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8677 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8678 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8680 thumb-*-pe*)
8681 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8682 if test -z "$DLLTOOL_DEFAULT"; then
8683 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8685 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8686 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8688 x86_64-*-mingw*)
8689 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8690 if test -z "$DLLTOOL_DEFAULT"; then
8691 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
8693 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
8694 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8695 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
8697 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
8698 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8699 if test -z "$DLLTOOL_DEFAULT"; then
8700 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8702 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8703 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8704 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
8706 i[3-7]86-*-interix)
8707 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
8708 if test -z "$DLLTOOL_DEFAULT"; then
8709 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8711 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8713 powerpc*-aix5.[01])
8715 powerpc*-aix5.*)
8716 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
8718 powerpc*-*-pe* | powerpc*-*-cygwin*)
8719 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8720 if test -z "$DLLTOOL_DEFAULT"; then
8721 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
8723 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
8724 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8726 powerpc*-*-linux* | powerpc*-*-elf*)
8727 BUILD_MISC=embedspu
8729 sh*-*-pe)
8730 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8731 if test -z "$DLLTOOL_DEFAULT"; then
8732 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
8734 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
8735 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8737 mips*-*-pe)
8738 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8739 if test -z "$DLLTOOL_DEFAULT"; then
8740 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
8742 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
8743 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8745 mcore-*-pe)
8746 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8747 if test -z "$DLLTOOL_DEFAULT"; then
8748 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
8750 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
8751 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8753 mcore-*-elf)
8754 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8755 if test -z "$DLLTOOL_DEFAULT"; then
8756 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
8758 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
8760 mep-*)
8761 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
8763 esac
8765 done
8767 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
8769 if test "${with_windres+set}" = set; then
8770 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8784 cat >>confdefs.h <<_ACEOF
8785 #define TARGET "${target}"
8786 _ACEOF
8789 targ=$target
8790 . $srcdir/../bfd/config.bfd
8791 if test "x$targ_underscore" = "xyes"; then
8792 UNDERSCORE=1
8793 else
8794 UNDERSCORE=0
8797 cat >>confdefs.h <<_ACEOF
8798 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
8799 _ACEOF
8802 # Emulation
8803 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8805 # Canonicalize the secondary target names.
8806 result=`$ac_config_sub $targ_alias 2>/dev/null`
8807 if test -n "$result"; then
8808 targ=$result
8809 else
8810 targ=$targ_alias
8813 . ${srcdir}/configure.tgt
8815 EMULATION=$targ_emul
8816 EMULATION_VECTOR=$targ_emul_vector
8817 done
8822 # Required for html and install-html
8827 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
8828 cat >confcache <<\_ACEOF
8829 # This file is a shell script that caches the results of configure
8830 # tests run on this system so they can be shared between configure
8831 # scripts and configure runs, see configure's option --config-cache.
8832 # It is not useful on other systems. If it contains results you don't
8833 # want to keep, you may remove or edit it.
8835 # config.status only pays attention to the cache file if you give it
8836 # the --recheck option to rerun configure.
8838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8840 # following values.
8842 _ACEOF
8844 # The following way of writing the cache mishandles newlines in values,
8845 # but we know of no workaround that is simple, portable, and efficient.
8846 # So, don't put newlines in cache variables' values.
8847 # Ultrix sh set writes to stderr and can't be redirected directly,
8848 # and sets the high bit in the cache file unless we assign to the vars.
8850 (set) 2>&1 |
8851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8852 *ac_space=\ *)
8853 # `set' does not quote correctly, so add quotes (double-quote
8854 # substitution turns \\\\ into \\, and sed turns \\ into \).
8855 sed -n \
8856 "s/'/'\\\\''/g;
8857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8860 # `set' quotes correctly as required by POSIX, so do not add quotes.
8861 sed -n \
8862 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8864 esac;
8866 sed '
8867 t clear
8868 : clear
8869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8870 t end
8871 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8872 : end' >>confcache
8873 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8874 if test -w $cache_file; then
8875 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8876 cat confcache >$cache_file
8877 else
8878 echo "not updating unwritable cache $cache_file"
8881 rm -f confcache
8883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8884 # Let make expand exec_prefix.
8885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8887 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8888 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8889 # trailing colons and then remove the whole line if VPATH becomes empty
8890 # (actually we leave an empty line to preserve line numbers).
8891 if test "x$srcdir" = x.; then
8892 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8893 s/:*\$(srcdir):*/:/;
8894 s/:*\${srcdir}:*/:/;
8895 s/:*@srcdir@:*/:/;
8896 s/^\([^=]*=[ ]*\):*/\1/;
8897 s/:*$//;
8898 s/^[^=]*=[ ]*$//;
8902 DEFS=-DHAVE_CONFIG_H
8904 ac_libobjs=
8905 ac_ltlibobjs=
8906 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8907 # 1. Remove the extension, and $U if already installed.
8908 ac_i=`echo "$ac_i" |
8909 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8910 # 2. Add them.
8911 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8912 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8913 done
8914 LIBOBJS=$ac_libobjs
8916 LTLIBOBJS=$ac_ltlibobjs
8919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8920 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8921 Usually this means the macro was only invoked conditionally." >&5
8922 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8923 Usually this means the macro was only invoked conditionally." >&2;}
8924 { (exit 1); exit 1; }; }
8926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8927 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8928 Usually this means the macro was only invoked conditionally." >&5
8929 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8930 Usually this means the macro was only invoked conditionally." >&2;}
8931 { (exit 1); exit 1; }; }
8933 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8934 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8935 Usually this means the macro was only invoked conditionally." >&5
8936 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8937 Usually this means the macro was only invoked conditionally." >&2;}
8938 { (exit 1); exit 1; }; }
8940 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
8941 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
8942 Usually this means the macro was only invoked conditionally." >&5
8943 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
8944 Usually this means the macro was only invoked conditionally." >&2;}
8945 { (exit 1); exit 1; }; }
8948 : ${CONFIG_STATUS=./config.status}
8949 ac_clean_files_save=$ac_clean_files
8950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8953 cat >$CONFIG_STATUS <<_ACEOF
8954 #! $SHELL
8955 # Generated by $as_me.
8956 # Run this file to recreate the current configuration.
8957 # Compiler output produced by configure, useful for debugging
8958 # configure, is in config.log if it exists.
8960 debug=false
8961 ac_cs_recheck=false
8962 ac_cs_silent=false
8963 SHELL=\${CONFIG_SHELL-$SHELL}
8964 _ACEOF
8966 cat >>$CONFIG_STATUS <<\_ACEOF
8967 ## --------------------- ##
8968 ## M4sh Initialization. ##
8969 ## --------------------- ##
8971 # Be Bourne compatible
8972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8973 emulate sh
8974 NULLCMD=:
8975 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8976 # is contrary to our usage. Disable this feature.
8977 alias -g '${1+"$@"}'='"$@"'
8978 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8979 set -o posix
8981 DUALCASE=1; export DUALCASE # for MKS sh
8983 # Support unset when possible.
8984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8985 as_unset=unset
8986 else
8987 as_unset=false
8991 # Work around bugs in pre-3.0 UWIN ksh.
8992 $as_unset ENV MAIL MAILPATH
8993 PS1='$ '
8994 PS2='> '
8995 PS4='+ '
8997 # NLS nuisances.
8998 for as_var in \
8999 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9000 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9001 LC_TELEPHONE LC_TIME
9003 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9004 eval $as_var=C; export $as_var
9005 else
9006 $as_unset $as_var
9008 done
9010 # Required to use basename.
9011 if expr a : '\(a\)' >/dev/null 2>&1; then
9012 as_expr=expr
9013 else
9014 as_expr=false
9017 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9018 as_basename=basename
9019 else
9020 as_basename=false
9024 # Name of the executable.
9025 as_me=`$as_basename "$0" ||
9026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9027 X"$0" : 'X\(//\)$' \| \
9028 X"$0" : 'X\(/\)$' \| \
9029 . : '\(.\)' 2>/dev/null ||
9030 echo X/"$0" |
9031 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9032 /^X\/\(\/\/\)$/{ s//\1/; q; }
9033 /^X\/\(\/\).*/{ s//\1/; q; }
9034 s/.*/./; q'`
9037 # PATH needs CR, and LINENO needs CR and PATH.
9038 # Avoid depending upon Character Ranges.
9039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9042 as_cr_digits='0123456789'
9043 as_cr_alnum=$as_cr_Letters$as_cr_digits
9045 # The user is always right.
9046 if test "${PATH_SEPARATOR+set}" != set; then
9047 echo "#! /bin/sh" >conf$$.sh
9048 echo "exit 0" >>conf$$.sh
9049 chmod +x conf$$.sh
9050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9051 PATH_SEPARATOR=';'
9052 else
9053 PATH_SEPARATOR=:
9055 rm -f conf$$.sh
9059 as_lineno_1=$LINENO
9060 as_lineno_2=$LINENO
9061 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9062 test "x$as_lineno_1" != "x$as_lineno_2" &&
9063 test "x$as_lineno_3" = "x$as_lineno_2" || {
9064 # Find who we are. Look in the path if we contain no path at all
9065 # relative or not.
9066 case $0 in
9067 *[\\/]* ) as_myself=$0 ;;
9068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9074 done
9077 esac
9078 # We did not find ourselves, most probably we were run as `sh COMMAND'
9079 # in which case we are not to be found in the path.
9080 if test "x$as_myself" = x; then
9081 as_myself=$0
9083 if test ! -f "$as_myself"; then
9084 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9085 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9086 { (exit 1); exit 1; }; }
9088 case $CONFIG_SHELL in
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for as_base in sh bash ksh sh5; do
9096 case $as_dir in
9098 if ("$as_dir/$as_base" -c '
9099 as_lineno_1=$LINENO
9100 as_lineno_2=$LINENO
9101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9102 test "x$as_lineno_1" != "x$as_lineno_2" &&
9103 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9104 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9105 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9106 CONFIG_SHELL=$as_dir/$as_base
9107 export CONFIG_SHELL
9108 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9109 fi;;
9110 esac
9111 done
9112 done
9114 esac
9116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9117 # uniformly replaced by the line number. The first 'sed' inserts a
9118 # line-number line before each line; the second 'sed' does the real
9119 # work. The second script uses 'N' to pair each line-number line
9120 # with the numbered line, and appends trailing '-' during
9121 # substitution so that $LINENO is not a special case at line end.
9122 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9123 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9124 sed '=' <$as_myself |
9125 sed '
9127 s,$,-,
9128 : loop
9129 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9130 t loop
9131 s,-$,,
9132 s,^['$as_cr_digits']*\n,,
9133 ' >$as_me.lineno &&
9134 chmod +x $as_me.lineno ||
9135 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9136 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9137 { (exit 1); exit 1; }; }
9139 # Don't try to exec as it changes $[0], causing all sort of problems
9140 # (the dirname of $[0] is not the place where we might find the
9141 # original and so on. Autoconf is especially sensible to this).
9142 . ./$as_me.lineno
9143 # Exit status is that of the last command.
9144 exit
9148 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9149 *c*,-n*) ECHO_N= ECHO_C='
9150 ' ECHO_T=' ' ;;
9151 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9152 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9153 esac
9155 if expr a : '\(a\)' >/dev/null 2>&1; then
9156 as_expr=expr
9157 else
9158 as_expr=false
9161 rm -f conf$$ conf$$.exe conf$$.file
9162 echo >conf$$.file
9163 if ln -s conf$$.file conf$$ 2>/dev/null; then
9164 # We could just check for DJGPP; but this test a) works b) is more generic
9165 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9166 if test -f conf$$.exe; then
9167 # Don't use ln at all; we don't have any links
9168 as_ln_s='cp -p'
9169 else
9170 as_ln_s='ln -s'
9172 elif ln conf$$.file conf$$ 2>/dev/null; then
9173 as_ln_s=ln
9174 else
9175 as_ln_s='cp -p'
9177 rm -f conf$$ conf$$.exe conf$$.file
9179 if mkdir -p . 2>/dev/null; then
9180 as_mkdir_p=:
9181 else
9182 test -d ./-p && rmdir ./-p
9183 as_mkdir_p=false
9186 as_executable_p="test -f"
9188 # Sed expression to map a string onto a valid CPP name.
9189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9191 # Sed expression to map a string onto a valid variable name.
9192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9195 # IFS
9196 # We need space, tab and new line, in precisely that order.
9197 as_nl='
9199 IFS=" $as_nl"
9201 # CDPATH.
9202 $as_unset CDPATH
9204 exec 6>&1
9206 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9207 # report actual input values of CONFIG_FILES etc. instead of their
9208 # values after options handling. Logging --version etc. is OK.
9209 exec 5>>config.log
9211 echo
9212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9213 ## Running $as_me. ##
9214 _ASBOX
9215 } >&5
9216 cat >&5 <<_CSEOF
9218 This file was extended by $as_me, which was
9219 generated by GNU Autoconf 2.59. Invocation command line was
9221 CONFIG_FILES = $CONFIG_FILES
9222 CONFIG_HEADERS = $CONFIG_HEADERS
9223 CONFIG_LINKS = $CONFIG_LINKS
9224 CONFIG_COMMANDS = $CONFIG_COMMANDS
9225 $ $0 $@
9227 _CSEOF
9228 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9229 echo >&5
9230 _ACEOF
9232 # Files that config.status was made for.
9233 if test -n "$ac_config_files"; then
9234 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9237 if test -n "$ac_config_headers"; then
9238 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9241 if test -n "$ac_config_links"; then
9242 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9245 if test -n "$ac_config_commands"; then
9246 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9249 cat >>$CONFIG_STATUS <<\_ACEOF
9251 ac_cs_usage="\
9252 \`$as_me' instantiates files from templates according to the
9253 current configuration.
9255 Usage: $0 [OPTIONS] [FILE]...
9257 -h, --help print this help, then exit
9258 -V, --version print version number, then exit
9259 -q, --quiet do not print progress messages
9260 -d, --debug don't remove temporary files
9261 --recheck update $as_me by reconfiguring in the same conditions
9262 --file=FILE[:TEMPLATE]
9263 instantiate the configuration file FILE
9264 --header=FILE[:TEMPLATE]
9265 instantiate the configuration header FILE
9267 Configuration files:
9268 $config_files
9270 Configuration headers:
9271 $config_headers
9273 Configuration commands:
9274 $config_commands
9276 Report bugs to <bug-autoconf@gnu.org>."
9277 _ACEOF
9279 cat >>$CONFIG_STATUS <<_ACEOF
9280 ac_cs_version="\\
9281 config.status
9282 configured by $0, generated by GNU Autoconf 2.59,
9283 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9285 Copyright (C) 2003 Free Software Foundation, Inc.
9286 This config.status script is free software; the Free Software Foundation
9287 gives unlimited permission to copy, distribute and modify it."
9288 srcdir=$srcdir
9289 INSTALL="$INSTALL"
9290 _ACEOF
9292 cat >>$CONFIG_STATUS <<\_ACEOF
9293 # If no file are specified by the user, then we need to provide default
9294 # value. By we need to know if files were specified by the user.
9295 ac_need_defaults=:
9296 while test $# != 0
9298 case $1 in
9299 --*=*)
9300 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9301 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9302 ac_shift=:
9305 ac_option=$1
9306 ac_optarg=$2
9307 ac_shift=shift
9309 *) # This is not an option, so the user has probably given explicit
9310 # arguments.
9311 ac_option=$1
9312 ac_need_defaults=false;;
9313 esac
9315 case $ac_option in
9316 # Handling of the options.
9317 _ACEOF
9318 cat >>$CONFIG_STATUS <<\_ACEOF
9319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9320 ac_cs_recheck=: ;;
9321 --version | --vers* | -V )
9322 echo "$ac_cs_version"; exit 0 ;;
9323 --he | --h)
9324 # Conflict between --help and --header
9325 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9326 Try \`$0 --help' for more information." >&5
9327 echo "$as_me: error: ambiguous option: $1
9328 Try \`$0 --help' for more information." >&2;}
9329 { (exit 1); exit 1; }; };;
9330 --help | --hel | -h )
9331 echo "$ac_cs_usage"; exit 0 ;;
9332 --debug | --d* | -d )
9333 debug=: ;;
9334 --file | --fil | --fi | --f )
9335 $ac_shift
9336 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9337 ac_need_defaults=false;;
9338 --header | --heade | --head | --hea )
9339 $ac_shift
9340 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9341 ac_need_defaults=false;;
9342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9344 ac_cs_silent=: ;;
9346 # This is an error.
9347 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9348 Try \`$0 --help' for more information." >&5
9349 echo "$as_me: error: unrecognized option: $1
9350 Try \`$0 --help' for more information." >&2;}
9351 { (exit 1); exit 1; }; } ;;
9353 *) ac_config_targets="$ac_config_targets $1" ;;
9355 esac
9356 shift
9357 done
9359 ac_configure_extra_args=
9361 if $ac_cs_silent; then
9362 exec 6>/dev/null
9363 ac_configure_extra_args="$ac_configure_extra_args --silent"
9366 _ACEOF
9367 cat >>$CONFIG_STATUS <<_ACEOF
9368 if \$ac_cs_recheck; then
9369 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9370 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9373 _ACEOF
9375 cat >>$CONFIG_STATUS <<_ACEOF
9377 # INIT-COMMANDS section.
9380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9381 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9382 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9383 # from automake.
9384 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9385 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9386 LINGUAS="${LINGUAS-%UNSET%}"
9389 _ACEOF
9393 cat >>$CONFIG_STATUS <<\_ACEOF
9394 for ac_config_target in $ac_config_targets
9396 case "$ac_config_target" in
9397 # Handling of arguments.
9398 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9399 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9400 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9401 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9402 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9403 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9404 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9406 { (exit 1); exit 1; }; };;
9407 esac
9408 done
9410 # If the user did not use the arguments to specify the items to instantiate,
9411 # then the envvar interface is used. Set only those that are not.
9412 # We use the long form for the default assignment because of an extremely
9413 # bizarre bug on SunOS 4.1.3.
9414 if $ac_need_defaults; then
9415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9420 # Have a temporary directory for convenience. Make it in the build tree
9421 # simply because there is no reason to put it here, and in addition,
9422 # creating and moving files from /tmp can sometimes cause problems.
9423 # Create a temporary directory, and hook for its removal unless debugging.
9424 $debug ||
9426 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9427 trap '{ (exit 1); exit 1; }' 1 2 13 15
9430 # Create a (secure) tmp directory for tmp files.
9433 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9434 test -n "$tmp" && test -d "$tmp"
9435 } ||
9437 tmp=./confstat$$-$RANDOM
9438 (umask 077 && mkdir $tmp)
9439 } ||
9441 echo "$me: cannot create a temporary directory in ." >&2
9442 { (exit 1); exit 1; }
9445 _ACEOF
9447 cat >>$CONFIG_STATUS <<_ACEOF
9450 # CONFIG_FILES section.
9453 # No need to generate the scripts if there are no CONFIG_FILES.
9454 # This happens for instance when ./config.status config.h
9455 if test -n "\$CONFIG_FILES"; then
9456 # Protect against being on the right side of a sed subst in config.status.
9457 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9458 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9459 s,@SHELL@,$SHELL,;t t
9460 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9461 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9462 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9463 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9464 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9465 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9466 s,@exec_prefix@,$exec_prefix,;t t
9467 s,@prefix@,$prefix,;t t
9468 s,@program_transform_name@,$program_transform_name,;t t
9469 s,@bindir@,$bindir,;t t
9470 s,@sbindir@,$sbindir,;t t
9471 s,@libexecdir@,$libexecdir,;t t
9472 s,@datadir@,$datadir,;t t
9473 s,@sysconfdir@,$sysconfdir,;t t
9474 s,@sharedstatedir@,$sharedstatedir,;t t
9475 s,@localstatedir@,$localstatedir,;t t
9476 s,@libdir@,$libdir,;t t
9477 s,@includedir@,$includedir,;t t
9478 s,@oldincludedir@,$oldincludedir,;t t
9479 s,@infodir@,$infodir,;t t
9480 s,@mandir@,$mandir,;t t
9481 s,@build_alias@,$build_alias,;t t
9482 s,@host_alias@,$host_alias,;t t
9483 s,@target_alias@,$target_alias,;t t
9484 s,@DEFS@,$DEFS,;t t
9485 s,@ECHO_C@,$ECHO_C,;t t
9486 s,@ECHO_N@,$ECHO_N,;t t
9487 s,@ECHO_T@,$ECHO_T,;t t
9488 s,@LIBS@,$LIBS,;t t
9489 s,@build@,$build,;t t
9490 s,@build_cpu@,$build_cpu,;t t
9491 s,@build_vendor@,$build_vendor,;t t
9492 s,@build_os@,$build_os,;t t
9493 s,@host@,$host,;t t
9494 s,@host_cpu@,$host_cpu,;t t
9495 s,@host_vendor@,$host_vendor,;t t
9496 s,@host_os@,$host_os,;t t
9497 s,@target@,$target,;t t
9498 s,@target_cpu@,$target_cpu,;t t
9499 s,@target_vendor@,$target_vendor,;t t
9500 s,@target_os@,$target_os,;t t
9501 s,@CC@,$CC,;t t
9502 s,@CFLAGS@,$CFLAGS,;t t
9503 s,@LDFLAGS@,$LDFLAGS,;t t
9504 s,@CPPFLAGS@,$CPPFLAGS,;t t
9505 s,@ac_ct_CC@,$ac_ct_CC,;t t
9506 s,@EXEEXT@,$EXEEXT,;t t
9507 s,@OBJEXT@,$OBJEXT,;t t
9508 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9509 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9510 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9511 s,@CYGPATH_W@,$CYGPATH_W,;t t
9512 s,@PACKAGE@,$PACKAGE,;t t
9513 s,@VERSION@,$VERSION,;t t
9514 s,@ACLOCAL@,$ACLOCAL,;t t
9515 s,@AUTOCONF@,$AUTOCONF,;t t
9516 s,@AUTOMAKE@,$AUTOMAKE,;t t
9517 s,@AUTOHEADER@,$AUTOHEADER,;t t
9518 s,@MAKEINFO@,$MAKEINFO,;t t
9519 s,@install_sh@,$install_sh,;t t
9520 s,@STRIP@,$STRIP,;t t
9521 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9522 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9523 s,@mkdir_p@,$mkdir_p,;t t
9524 s,@AWK@,$AWK,;t t
9525 s,@SET_MAKE@,$SET_MAKE,;t t
9526 s,@am__leading_dot@,$am__leading_dot,;t t
9527 s,@AMTAR@,$AMTAR,;t t
9528 s,@am__tar@,$am__tar,;t t
9529 s,@am__untar@,$am__untar,;t t
9530 s,@DEPDIR@,$DEPDIR,;t t
9531 s,@am__include@,$am__include,;t t
9532 s,@am__quote@,$am__quote,;t t
9533 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9534 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9535 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9536 s,@CCDEPMODE@,$CCDEPMODE,;t t
9537 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9538 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9539 s,@LN_S@,$LN_S,;t t
9540 s,@RANLIB@,$RANLIB,;t t
9541 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9542 s,@LIBTOOL@,$LIBTOOL,;t t
9543 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
9544 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9545 s,@NO_WERROR@,$NO_WERROR,;t t
9546 s,@YACC@,$YACC,;t t
9547 s,@LEX@,$LEX,;t t
9548 s,@LEXLIB@,$LEXLIB,;t t
9549 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9550 s,@USE_NLS@,$USE_NLS,;t t
9551 s,@LIBINTL@,$LIBINTL,;t t
9552 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9553 s,@INCINTL@,$INCINTL,;t t
9554 s,@XGETTEXT@,$XGETTEXT,;t t
9555 s,@GMSGFMT@,$GMSGFMT,;t t
9556 s,@POSUB@,$POSUB,;t t
9557 s,@CATALOGS@,$CATALOGS,;t t
9558 s,@DATADIRNAME@,$DATADIRNAME,;t t
9559 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9560 s,@GENCAT@,$GENCAT,;t t
9561 s,@CATOBJEXT@,$CATOBJEXT,;t t
9562 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9563 s,@MSGFMT@,$MSGFMT,;t t
9564 s,@MSGMERGE@,$MSGMERGE,;t t
9565 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9566 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9567 s,@MAINT@,$MAINT,;t t
9568 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
9569 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
9570 s,@HDEFINES@,$HDEFINES,;t t
9571 s,@AR@,$AR,;t t
9572 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9573 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9574 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
9575 s,@CPP@,$CPP,;t t
9576 s,@EGREP@,$EGREP,;t t
9577 s,@ALLOCA@,$ALLOCA,;t t
9578 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
9579 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
9580 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
9581 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
9582 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
9583 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
9584 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
9585 s,@BUILD_MISC@,$BUILD_MISC,;t t
9586 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
9587 s,@EMULATION@,$EMULATION,;t t
9588 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
9589 s,@datarootdir@,$datarootdir,;t t
9590 s,@docdir@,$docdir,;t t
9591 s,@htmldir@,$htmldir,;t t
9592 s,@LIBOBJS@,$LIBOBJS,;t t
9593 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9594 CEOF
9596 _ACEOF
9598 cat >>$CONFIG_STATUS <<\_ACEOF
9599 # Split the substitutions into bite-sized pieces for seds with
9600 # small command number limits, like on Digital OSF/1 and HP-UX.
9601 ac_max_sed_lines=48
9602 ac_sed_frag=1 # Number of current file.
9603 ac_beg=1 # First line for current file.
9604 ac_end=$ac_max_sed_lines # Line after last line for current file.
9605 ac_more_lines=:
9606 ac_sed_cmds=
9607 while $ac_more_lines; do
9608 if test $ac_beg -gt 1; then
9609 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9610 else
9611 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9613 if test ! -s $tmp/subs.frag; then
9614 ac_more_lines=false
9615 else
9616 # The purpose of the label and of the branching condition is to
9617 # speed up the sed processing (if there are no `@' at all, there
9618 # is no need to browse any of the substitutions).
9619 # These are the two extra sed commands mentioned above.
9620 (echo ':t
9621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9622 if test -z "$ac_sed_cmds"; then
9623 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9624 else
9625 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9627 ac_sed_frag=`expr $ac_sed_frag + 1`
9628 ac_beg=$ac_end
9629 ac_end=`expr $ac_end + $ac_max_sed_lines`
9631 done
9632 if test -z "$ac_sed_cmds"; then
9633 ac_sed_cmds=cat
9635 fi # test -n "$CONFIG_FILES"
9637 _ACEOF
9638 cat >>$CONFIG_STATUS <<\_ACEOF
9639 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9640 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9641 case $ac_file in
9642 - | *:- | *:-:* ) # input from stdin
9643 cat >$tmp/stdin
9644 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9646 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9648 * ) ac_file_in=$ac_file.in ;;
9649 esac
9651 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9652 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9654 X"$ac_file" : 'X\(//\)[^/]' \| \
9655 X"$ac_file" : 'X\(//\)$' \| \
9656 X"$ac_file" : 'X\(/\)' \| \
9657 . : '\(.\)' 2>/dev/null ||
9658 echo X"$ac_file" |
9659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9661 /^X\(\/\/\)$/{ s//\1/; q; }
9662 /^X\(\/\).*/{ s//\1/; q; }
9663 s/.*/./; q'`
9664 { if $as_mkdir_p; then
9665 mkdir -p "$ac_dir"
9666 else
9667 as_dir="$ac_dir"
9668 as_dirs=
9669 while test ! -d "$as_dir"; do
9670 as_dirs="$as_dir $as_dirs"
9671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9673 X"$as_dir" : 'X\(//\)[^/]' \| \
9674 X"$as_dir" : 'X\(//\)$' \| \
9675 X"$as_dir" : 'X\(/\)' \| \
9676 . : '\(.\)' 2>/dev/null ||
9677 echo X"$as_dir" |
9678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9680 /^X\(\/\/\)$/{ s//\1/; q; }
9681 /^X\(\/\).*/{ s//\1/; q; }
9682 s/.*/./; q'`
9683 done
9684 test ! -n "$as_dirs" || mkdir $as_dirs
9685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9687 { (exit 1); exit 1; }; }; }
9689 ac_builddir=.
9691 if test "$ac_dir" != .; then
9692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9693 # A "../" for each directory in $ac_dir_suffix.
9694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9695 else
9696 ac_dir_suffix= ac_top_builddir=
9699 case $srcdir in
9700 .) # No --srcdir option. We are building in place.
9701 ac_srcdir=.
9702 if test -z "$ac_top_builddir"; then
9703 ac_top_srcdir=.
9704 else
9705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9706 fi ;;
9707 [\\/]* | ?:[\\/]* ) # Absolute path.
9708 ac_srcdir=$srcdir$ac_dir_suffix;
9709 ac_top_srcdir=$srcdir ;;
9710 *) # Relative path.
9711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9713 esac
9715 # Do not use `cd foo && pwd` to compute absolute paths, because
9716 # the directories may not exist.
9717 case `pwd` in
9718 .) ac_abs_builddir="$ac_dir";;
9720 case "$ac_dir" in
9721 .) ac_abs_builddir=`pwd`;;
9722 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9723 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9724 esac;;
9725 esac
9726 case $ac_abs_builddir in
9727 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9729 case ${ac_top_builddir}. in
9730 .) ac_abs_top_builddir=$ac_abs_builddir;;
9731 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9732 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9733 esac;;
9734 esac
9735 case $ac_abs_builddir in
9736 .) ac_abs_srcdir=$ac_srcdir;;
9738 case $ac_srcdir in
9739 .) ac_abs_srcdir=$ac_abs_builddir;;
9740 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9741 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9742 esac;;
9743 esac
9744 case $ac_abs_builddir in
9745 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9747 case $ac_top_srcdir in
9748 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9749 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9750 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9751 esac;;
9752 esac
9755 case $INSTALL in
9756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9757 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9758 esac
9760 if test x"$ac_file" != x-; then
9761 { echo "$as_me:$LINENO: creating $ac_file" >&5
9762 echo "$as_me: creating $ac_file" >&6;}
9763 rm -f "$ac_file"
9765 # Let's still pretend it is `configure' which instantiates (i.e., don't
9766 # use $as_me), people would be surprised to read:
9767 # /* config.h. Generated by config.status. */
9768 if test x"$ac_file" = x-; then
9769 configure_input=
9770 else
9771 configure_input="$ac_file. "
9773 configure_input=$configure_input"Generated from `echo $ac_file_in |
9774 sed 's,.*/,,'` by configure."
9776 # First look for the input files in the build tree, otherwise in the
9777 # src tree.
9778 ac_file_inputs=`IFS=:
9779 for f in $ac_file_in; do
9780 case $f in
9781 -) echo $tmp/stdin ;;
9782 [\\/$]*)
9783 # Absolute (can't be DOS-style, as IFS=:)
9784 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9785 echo "$as_me: error: cannot find input file: $f" >&2;}
9786 { (exit 1); exit 1; }; }
9787 echo "$f";;
9788 *) # Relative
9789 if test -f "$f"; then
9790 # Build tree
9791 echo "$f"
9792 elif test -f "$srcdir/$f"; then
9793 # Source tree
9794 echo "$srcdir/$f"
9795 else
9796 # /dev/null tree
9797 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9798 echo "$as_me: error: cannot find input file: $f" >&2;}
9799 { (exit 1); exit 1; }; }
9800 fi;;
9801 esac
9802 done` || { (exit 1); exit 1; }
9803 _ACEOF
9804 cat >>$CONFIG_STATUS <<_ACEOF
9805 sed "$ac_vpsub
9806 $extrasub
9807 _ACEOF
9808 cat >>$CONFIG_STATUS <<\_ACEOF
9810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9811 s,@configure_input@,$configure_input,;t t
9812 s,@srcdir@,$ac_srcdir,;t t
9813 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9814 s,@top_srcdir@,$ac_top_srcdir,;t t
9815 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9816 s,@builddir@,$ac_builddir,;t t
9817 s,@abs_builddir@,$ac_abs_builddir,;t t
9818 s,@top_builddir@,$ac_top_builddir,;t t
9819 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9820 s,@INSTALL@,$ac_INSTALL,;t t
9821 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9822 rm -f $tmp/stdin
9823 if test x"$ac_file" != x-; then
9824 mv $tmp/out $ac_file
9825 else
9826 cat $tmp/out
9827 rm -f $tmp/out
9830 done
9831 _ACEOF
9832 cat >>$CONFIG_STATUS <<\_ACEOF
9835 # CONFIG_HEADER section.
9838 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9839 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9841 # ac_d sets the value in "#define NAME VALUE" lines.
9842 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9843 ac_dB='[ ].*$,\1#\2'
9844 ac_dC=' '
9845 ac_dD=',;t'
9846 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9847 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9848 ac_uB='$,\1#\2define\3'
9849 ac_uC=' '
9850 ac_uD=',;t'
9852 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9854 case $ac_file in
9855 - | *:- | *:-:* ) # input from stdin
9856 cat >$tmp/stdin
9857 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9859 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9861 * ) ac_file_in=$ac_file.in ;;
9862 esac
9864 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9865 echo "$as_me: creating $ac_file" >&6;}
9867 # First look for the input files in the build tree, otherwise in the
9868 # src tree.
9869 ac_file_inputs=`IFS=:
9870 for f in $ac_file_in; do
9871 case $f in
9872 -) echo $tmp/stdin ;;
9873 [\\/$]*)
9874 # Absolute (can't be DOS-style, as IFS=:)
9875 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9876 echo "$as_me: error: cannot find input file: $f" >&2;}
9877 { (exit 1); exit 1; }; }
9878 # Do quote $f, to prevent DOS paths from being IFS'd.
9879 echo "$f";;
9880 *) # Relative
9881 if test -f "$f"; then
9882 # Build tree
9883 echo "$f"
9884 elif test -f "$srcdir/$f"; then
9885 # Source tree
9886 echo "$srcdir/$f"
9887 else
9888 # /dev/null tree
9889 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9890 echo "$as_me: error: cannot find input file: $f" >&2;}
9891 { (exit 1); exit 1; }; }
9892 fi;;
9893 esac
9894 done` || { (exit 1); exit 1; }
9895 # Remove the trailing spaces.
9896 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9898 _ACEOF
9900 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9901 # `conftest.undefs', that substitutes the proper values into
9902 # config.h.in to produce config.h. The first handles `#define'
9903 # templates, and the second `#undef' templates.
9904 # And first: Protect against being on the right side of a sed subst in
9905 # config.status. Protect against being in an unquoted here document
9906 # in config.status.
9907 rm -f conftest.defines conftest.undefs
9908 # Using a here document instead of a string reduces the quoting nightmare.
9909 # Putting comments in sed scripts is not portable.
9911 # `end' is used to avoid that the second main sed command (meant for
9912 # 0-ary CPP macros) applies to n-ary macro definitions.
9913 # See the Autoconf documentation for `clear'.
9914 cat >confdef2sed.sed <<\_ACEOF
9915 s/[\\&,]/\\&/g
9916 s,[\\$`],\\&,g
9917 t clear
9918 : clear
9919 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9920 t end
9921 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9922 : end
9923 _ACEOF
9924 # If some macros were called several times there might be several times
9925 # the same #defines, which is useless. Nevertheless, we may not want to
9926 # sort them, since we want the *last* AC-DEFINE to be honored.
9927 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9928 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9929 rm -f confdef2sed.sed
9931 # This sed command replaces #undef with comments. This is necessary, for
9932 # example, in the case of _POSIX_SOURCE, which is predefined and required
9933 # on some systems where configure will not decide to define it.
9934 cat >>conftest.undefs <<\_ACEOF
9935 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9936 _ACEOF
9938 # Break up conftest.defines because some shells have a limit on the size
9939 # of here documents, and old seds have small limits too (100 cmds).
9940 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9941 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9942 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9943 echo ' :' >>$CONFIG_STATUS
9944 rm -f conftest.tail
9945 while grep . conftest.defines >/dev/null
9947 # Write a limited-size here document to $tmp/defines.sed.
9948 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9949 # Speed up: don't consider the non `#define' lines.
9950 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9951 # Work around the forget-to-reset-the-flag bug.
9952 echo 't clr' >>$CONFIG_STATUS
9953 echo ': clr' >>$CONFIG_STATUS
9954 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9955 echo 'CEOF
9956 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9957 rm -f $tmp/in
9958 mv $tmp/out $tmp/in
9959 ' >>$CONFIG_STATUS
9960 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9961 rm -f conftest.defines
9962 mv conftest.tail conftest.defines
9963 done
9964 rm -f conftest.defines
9965 echo ' fi # grep' >>$CONFIG_STATUS
9966 echo >>$CONFIG_STATUS
9968 # Break up conftest.undefs because some shells have a limit on the size
9969 # of here documents, and old seds have small limits too (100 cmds).
9970 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9971 rm -f conftest.tail
9972 while grep . conftest.undefs >/dev/null
9974 # Write a limited-size here document to $tmp/undefs.sed.
9975 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9976 # Speed up: don't consider the non `#undef'
9977 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9978 # Work around the forget-to-reset-the-flag bug.
9979 echo 't clr' >>$CONFIG_STATUS
9980 echo ': clr' >>$CONFIG_STATUS
9981 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9982 echo 'CEOF
9983 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9984 rm -f $tmp/in
9985 mv $tmp/out $tmp/in
9986 ' >>$CONFIG_STATUS
9987 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9988 rm -f conftest.undefs
9989 mv conftest.tail conftest.undefs
9990 done
9991 rm -f conftest.undefs
9993 cat >>$CONFIG_STATUS <<\_ACEOF
9994 # Let's still pretend it is `configure' which instantiates (i.e., don't
9995 # use $as_me), people would be surprised to read:
9996 # /* config.h. Generated by config.status. */
9997 if test x"$ac_file" = x-; then
9998 echo "/* Generated by configure. */" >$tmp/config.h
9999 else
10000 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10002 cat $tmp/in >>$tmp/config.h
10003 rm -f $tmp/in
10004 if test x"$ac_file" != x-; then
10005 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10006 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10007 echo "$as_me: $ac_file is unchanged" >&6;}
10008 else
10009 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10011 X"$ac_file" : 'X\(//\)[^/]' \| \
10012 X"$ac_file" : 'X\(//\)$' \| \
10013 X"$ac_file" : 'X\(/\)' \| \
10014 . : '\(.\)' 2>/dev/null ||
10015 echo X"$ac_file" |
10016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10018 /^X\(\/\/\)$/{ s//\1/; q; }
10019 /^X\(\/\).*/{ s//\1/; q; }
10020 s/.*/./; q'`
10021 { if $as_mkdir_p; then
10022 mkdir -p "$ac_dir"
10023 else
10024 as_dir="$ac_dir"
10025 as_dirs=
10026 while test ! -d "$as_dir"; do
10027 as_dirs="$as_dir $as_dirs"
10028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10030 X"$as_dir" : 'X\(//\)[^/]' \| \
10031 X"$as_dir" : 'X\(//\)$' \| \
10032 X"$as_dir" : 'X\(/\)' \| \
10033 . : '\(.\)' 2>/dev/null ||
10034 echo X"$as_dir" |
10035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10037 /^X\(\/\/\)$/{ s//\1/; q; }
10038 /^X\(\/\).*/{ s//\1/; q; }
10039 s/.*/./; q'`
10040 done
10041 test ! -n "$as_dirs" || mkdir $as_dirs
10042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10043 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10044 { (exit 1); exit 1; }; }; }
10046 rm -f $ac_file
10047 mv $tmp/config.h $ac_file
10049 else
10050 cat $tmp/config.h
10051 rm -f $tmp/config.h
10053 # Compute $ac_file's index in $config_headers.
10054 _am_stamp_count=1
10055 for _am_header in $config_headers :; do
10056 case $_am_header in
10057 $ac_file | $ac_file:* )
10058 break ;;
10060 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10061 esac
10062 done
10063 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10064 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10065 X$ac_file : 'X\(//\)[^/]' \| \
10066 X$ac_file : 'X\(//\)$' \| \
10067 X$ac_file : 'X\(/\)' \| \
10068 . : '\(.\)' 2>/dev/null ||
10069 echo X$ac_file |
10070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10072 /^X\(\/\/\)$/{ s//\1/; q; }
10073 /^X\(\/\).*/{ s//\1/; q; }
10074 s/.*/./; q'`/stamp-h$_am_stamp_count
10075 done
10076 _ACEOF
10077 cat >>$CONFIG_STATUS <<\_ACEOF
10080 # CONFIG_COMMANDS section.
10082 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10083 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10084 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10085 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10086 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10087 X"$ac_dest" : 'X\(//\)[^/]' \| \
10088 X"$ac_dest" : 'X\(//\)$' \| \
10089 X"$ac_dest" : 'X\(/\)' \| \
10090 . : '\(.\)' 2>/dev/null ||
10091 echo X"$ac_dest" |
10092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10094 /^X\(\/\/\)$/{ s//\1/; q; }
10095 /^X\(\/\).*/{ s//\1/; q; }
10096 s/.*/./; q'`
10097 { if $as_mkdir_p; then
10098 mkdir -p "$ac_dir"
10099 else
10100 as_dir="$ac_dir"
10101 as_dirs=
10102 while test ! -d "$as_dir"; do
10103 as_dirs="$as_dir $as_dirs"
10104 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10106 X"$as_dir" : 'X\(//\)[^/]' \| \
10107 X"$as_dir" : 'X\(//\)$' \| \
10108 X"$as_dir" : 'X\(/\)' \| \
10109 . : '\(.\)' 2>/dev/null ||
10110 echo X"$as_dir" |
10111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10113 /^X\(\/\/\)$/{ s//\1/; q; }
10114 /^X\(\/\).*/{ s//\1/; q; }
10115 s/.*/./; q'`
10116 done
10117 test ! -n "$as_dirs" || mkdir $as_dirs
10118 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10119 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10120 { (exit 1); exit 1; }; }; }
10122 ac_builddir=.
10124 if test "$ac_dir" != .; then
10125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10126 # A "../" for each directory in $ac_dir_suffix.
10127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10128 else
10129 ac_dir_suffix= ac_top_builddir=
10132 case $srcdir in
10133 .) # No --srcdir option. We are building in place.
10134 ac_srcdir=.
10135 if test -z "$ac_top_builddir"; then
10136 ac_top_srcdir=.
10137 else
10138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10139 fi ;;
10140 [\\/]* | ?:[\\/]* ) # Absolute path.
10141 ac_srcdir=$srcdir$ac_dir_suffix;
10142 ac_top_srcdir=$srcdir ;;
10143 *) # Relative path.
10144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10146 esac
10148 # Do not use `cd foo && pwd` to compute absolute paths, because
10149 # the directories may not exist.
10150 case `pwd` in
10151 .) ac_abs_builddir="$ac_dir";;
10153 case "$ac_dir" in
10154 .) ac_abs_builddir=`pwd`;;
10155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10157 esac;;
10158 esac
10159 case $ac_abs_builddir in
10160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10162 case ${ac_top_builddir}. in
10163 .) ac_abs_top_builddir=$ac_abs_builddir;;
10164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10166 esac;;
10167 esac
10168 case $ac_abs_builddir in
10169 .) ac_abs_srcdir=$ac_srcdir;;
10171 case $ac_srcdir in
10172 .) ac_abs_srcdir=$ac_abs_builddir;;
10173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10175 esac;;
10176 esac
10177 case $ac_abs_builddir in
10178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10180 case $ac_top_srcdir in
10181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10184 esac;;
10185 esac
10188 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10189 echo "$as_me: executing $ac_dest commands" >&6;}
10190 case $ac_dest in
10191 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10192 # Strip MF so we end up with the name of the file.
10193 mf=`echo "$mf" | sed -e 's/:.*$//'`
10194 # Check whether this is an Automake generated Makefile or not.
10195 # We used to match only the files named `Makefile.in', but
10196 # some people rename them; so instead we look at the file content.
10197 # Grep'ing the first line is not enough: some people post-process
10198 # each Makefile.in and add a new line on top of each file to say so.
10199 # So let's grep whole file.
10200 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10201 dirpart=`(dirname "$mf") 2>/dev/null ||
10202 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10203 X"$mf" : 'X\(//\)[^/]' \| \
10204 X"$mf" : 'X\(//\)$' \| \
10205 X"$mf" : 'X\(/\)' \| \
10206 . : '\(.\)' 2>/dev/null ||
10207 echo X"$mf" |
10208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10210 /^X\(\/\/\)$/{ s//\1/; q; }
10211 /^X\(\/\).*/{ s//\1/; q; }
10212 s/.*/./; q'`
10213 else
10214 continue
10216 # Extract the definition of DEPDIR, am__include, and am__quote
10217 # from the Makefile without running `make'.
10218 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10219 test -z "$DEPDIR" && continue
10220 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10221 test -z "am__include" && continue
10222 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10223 # When using ansi2knr, U may be empty or an underscore; expand it
10224 U=`sed -n 's/^U = //p' < "$mf"`
10225 # Find all dependency output files, they are included files with
10226 # $(DEPDIR) in their names. We invoke sed twice because it is the
10227 # simplest approach to changing $(DEPDIR) to its actual value in the
10228 # expansion.
10229 for file in `sed -n "
10230 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10231 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10232 # Make sure the directory exists.
10233 test -f "$dirpart/$file" && continue
10234 fdir=`(dirname "$file") 2>/dev/null ||
10235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10236 X"$file" : 'X\(//\)[^/]' \| \
10237 X"$file" : 'X\(//\)$' \| \
10238 X"$file" : 'X\(/\)' \| \
10239 . : '\(.\)' 2>/dev/null ||
10240 echo X"$file" |
10241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10243 /^X\(\/\/\)$/{ s//\1/; q; }
10244 /^X\(\/\).*/{ s//\1/; q; }
10245 s/.*/./; q'`
10246 { if $as_mkdir_p; then
10247 mkdir -p $dirpart/$fdir
10248 else
10249 as_dir=$dirpart/$fdir
10250 as_dirs=
10251 while test ! -d "$as_dir"; do
10252 as_dirs="$as_dir $as_dirs"
10253 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10255 X"$as_dir" : 'X\(//\)[^/]' \| \
10256 X"$as_dir" : 'X\(//\)$' \| \
10257 X"$as_dir" : 'X\(/\)' \| \
10258 . : '\(.\)' 2>/dev/null ||
10259 echo X"$as_dir" |
10260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10262 /^X\(\/\/\)$/{ s//\1/; q; }
10263 /^X\(\/\).*/{ s//\1/; q; }
10264 s/.*/./; q'`
10265 done
10266 test ! -n "$as_dirs" || mkdir $as_dirs
10267 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10268 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10269 { (exit 1); exit 1; }; }; }
10271 # echo "creating $dirpart/$file"
10272 echo '# dummy' > "$dirpart/$file"
10273 done
10274 done
10276 default-1 )
10277 for ac_file in $CONFIG_FILES; do
10278 # Support "outfile[:infile[:infile...]]"
10279 case "$ac_file" in
10280 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10281 esac
10282 # PO directories have a Makefile.in generated from Makefile.in.in.
10283 case "$ac_file" in */Makefile.in)
10284 # Adjust a relative srcdir.
10285 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10286 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10287 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10288 # In autoconf-2.13 it is called $ac_given_srcdir.
10289 # In autoconf-2.50 it is called $srcdir.
10290 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10291 case "$ac_given_srcdir" in
10292 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10293 /*) top_srcdir="$ac_given_srcdir" ;;
10294 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10295 esac
10296 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10297 rm -f "$ac_dir/POTFILES"
10298 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10299 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10300 POMAKEFILEDEPS="POTFILES.in"
10301 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10302 # on $ac_dir but don't depend on user-specified configuration
10303 # parameters.
10304 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10305 # The LINGUAS file contains the set of available languages.
10306 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10307 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10309 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10310 # Hide the ALL_LINGUAS assigment from automake.
10311 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10312 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10313 else
10314 # The set of available languages was given in configure.in.
10315 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10317 case "$ac_given_srcdir" in
10318 .) srcdirpre= ;;
10319 *) srcdirpre='$(srcdir)/' ;;
10320 esac
10321 POFILES=
10322 GMOFILES=
10323 UPDATEPOFILES=
10324 DUMMYPOFILES=
10325 for lang in $ALL_LINGUAS; do
10326 POFILES="$POFILES $srcdirpre$lang.po"
10327 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10328 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10329 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10330 done
10331 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10332 # environment variable.
10333 INST_LINGUAS=
10334 if test -n "$ALL_LINGUAS"; then
10335 for presentlang in $ALL_LINGUAS; do
10336 useit=no
10337 if test "%UNSET%" != "$LINGUAS"; then
10338 desiredlanguages="$LINGUAS"
10339 else
10340 desiredlanguages="$ALL_LINGUAS"
10342 for desiredlang in $desiredlanguages; do
10343 # Use the presentlang catalog if desiredlang is
10344 # a. equal to presentlang, or
10345 # b. a variant of presentlang (because in this case,
10346 # presentlang can be used as a fallback for messages
10347 # which are not translated in the desiredlang catalog).
10348 case "$desiredlang" in
10349 "$presentlang"*) useit=yes;;
10350 esac
10351 done
10352 if test $useit = yes; then
10353 INST_LINGUAS="$INST_LINGUAS $presentlang"
10355 done
10357 CATALOGS=
10358 if test -n "$INST_LINGUAS"; then
10359 for lang in $INST_LINGUAS; do
10360 CATALOGS="$CATALOGS $lang.gmo"
10361 done
10363 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10364 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10365 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10366 if test -f "$f"; then
10367 case "$f" in
10368 *.orig | *.bak | *~) ;;
10369 *) cat "$f" >> "$ac_dir/Makefile" ;;
10370 esac
10372 done
10375 esac
10376 done ;;
10377 esac
10378 done
10379 _ACEOF
10381 cat >>$CONFIG_STATUS <<\_ACEOF
10383 { (exit 0); exit 0; }
10384 _ACEOF
10385 chmod +x $CONFIG_STATUS
10386 ac_clean_files=$ac_clean_files_save
10389 # configure is writing to config.log, and then calls config.status.
10390 # config.status does its own redirection, appending to config.log.
10391 # Unfortunately, on DOS this fails, as config.log is still kept open
10392 # by configure, so config.status won't be able to write to it; its
10393 # output is simply discarded. So we exec the FD to /dev/null,
10394 # effectively closing config.log, so it can be properly (re)opened and
10395 # appended to by config.status. When coming back to configure, we
10396 # need to make the FD available again.
10397 if test "$no_create" != yes; then
10398 ac_cs_success=:
10399 ac_config_status_args=
10400 test "$silent" = yes &&
10401 ac_config_status_args="$ac_config_status_args --quiet"
10402 exec 5>/dev/null
10403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10404 exec 5>>config.log
10405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10406 # would make configure fail if this is the last instruction.
10407 $ac_cs_success || { (exit 1); exit 1; }