*** empty log message ***
[deliverable/binutils-gdb.git] / binutils / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
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## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="ar.c"
275# Factoring default headers for most tests.
276ac_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"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
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.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
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
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
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 ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
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 ;;
394
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" ;;
403
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'" ;;
416
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 ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
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 ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
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 ;;
491
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 ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
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 ;;
546
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 ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
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'" ;;
598
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" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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 ;;
618
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 ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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 ;;
640
641 *)
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}
647 ;;
648
649 esac
650done
651
652if 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; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
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
679done
680
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if 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 ||
715echo 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=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if 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; }; }
735 fi
736fi
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if 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.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
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 \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation 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]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine 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
831
832 cat <<\_ACEOF
833
834Program 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
838
839System 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
844fi
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional 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
866
867Optional 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
873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
973 cd $ac_popdir
974 done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
980
981Copyright (C) 2003 Free Software Foundation, Inc.
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985 exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
991
992It was created by $as_me, which was
993generated by GNU Autoconf 2.59. Invocation command line was
994
995 $ $0 $@
996
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029done
1030
1031} >&5
1032
1033cat >&5 <<_ACEOF
1034
1035
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
1039
1040_ACEOF
1041
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log. We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111{
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124}
1125 echo
1126
1127 cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
1177
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
1211# Prefer explicitly selected file to automatically selected ones.
1212if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226done
1227
1228if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287done
1288if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321ac_aux_dir=
1322for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1326 break
1327 elif test -f $ac_dir/install.sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1330 break
1331 elif test -f $ac_dir/shtool; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 break
1335 fi
1336done
1337if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1341fi
1342ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346# Make sure we can run config.sub.
1347$ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1351
1352echo "$as_me:$LINENO: checking build system type" >&5
1353echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356else
1357 ac_cv_build_alias=$build_alias
1358test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369fi
1370echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371echo "${ECHO_T}$ac_cv_build" >&6
1372build=$ac_cv_build
1373build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378echo "$as_me:$LINENO: checking host system type" >&5
1379echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 ac_cv_host_alias=$host_alias
1384test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1390
1391fi
1392echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393echo "${ECHO_T}$ac_cv_host" >&6
1394host=$ac_cv_host
1395host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400echo "$as_me:$LINENO: checking target system type" >&5
1401echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402if test "${ac_cv_target+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405 ac_cv_target_alias=$target_alias
1406test "x$ac_cv_target_alias" = "x" &&
1407 ac_cv_target_alias=$ac_cv_host_alias
1408ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1412
1413fi
1414echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415echo "${ECHO_T}$ac_cv_target" >&6
1416target=$ac_cv_target
1417target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422# The aliases save the names the user supplied, while $host etc.
1423# will get canonicalized.
1424test -n "$target_alias" &&
1425 test "$program_prefix$program_suffix$program_transform_name" = \
1426 NONENONEs,x,x, &&
1427 program_prefix=${target_alias}-
1428ac_ext=c
1429ac_cpp='$CPP $CPPFLAGS'
1430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436echo "$as_me:$LINENO: checking for $ac_word" >&5
1437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443else
1444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445for as_dir in $PATH
1446do
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1454 fi
1455done
1456done
1457
1458fi
1459fi
1460CC=$ac_cv_prog_CC
1461if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463echo "${ECHO_T}$CC" >&6
1464else
1465 echo "$as_me:$LINENO: result: no" >&5
1466echo "${ECHO_T}no" >&6
1467fi
1468
1469fi
1470if test -z "$ac_cv_prog_CC"; then
1471 ac_ct_CC=$CC
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473set dummy gcc; ac_word=$2
1474echo "$as_me:$LINENO: checking for $ac_word" >&5
1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481else
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1492 fi
1493done
1494done
1495
1496fi
1497fi
1498ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501echo "${ECHO_T}$ac_ct_CC" >&6
1502else
1503 echo "$as_me:$LINENO: result: no" >&5
1504echo "${ECHO_T}no" >&6
1505fi
1506
1507 CC=$ac_ct_CC
1508else
1509 CC="$ac_cv_prog_CC"
1510fi
1511
1512if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515set dummy ${ac_tool_prefix}cc; ac_word=$2
1516echo "$as_me:$LINENO: checking for $ac_word" >&5
1517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523else
1524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525for as_dir in $PATH
1526do
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1534 fi
1535done
1536done
1537
1538fi
1539fi
1540CC=$ac_cv_prog_CC
1541if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543echo "${ECHO_T}$CC" >&6
1544else
1545 echo "$as_me:$LINENO: result: no" >&5
1546echo "${ECHO_T}no" >&6
1547fi
1548
1549fi
1550if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "cc", so it can be a program name with args.
1553set dummy cc; ac_word=$2
1554echo "$as_me:$LINENO: checking for $ac_word" >&5
1555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561else
1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1572 fi
1573done
1574done
1575
1576fi
1577fi
1578ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581echo "${ECHO_T}$ac_ct_CC" >&6
1582else
1583 echo "$as_me:$LINENO: result: no" >&5
1584echo "${ECHO_T}no" >&6
1585fi
1586
1587 CC=$ac_ct_CC
1588else
1589 CC="$ac_cv_prog_CC"
1590fi
1591
1592fi
1593if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595set dummy cc; ac_word=$2
1596echo "$as_me:$LINENO: checking for $ac_word" >&5
1597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603else
1604 ac_prog_rejected=no
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1614 continue
1615 fi
1616 ac_cv_prog_CC="cc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620done
1621done
1622
1623if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1626 shift
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1631 shift
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633 fi
1634fi
1635fi
1636fi
1637CC=$ac_cv_prog_CC
1638if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640echo "${ECHO_T}$CC" >&6
1641else
1642 echo "$as_me:$LINENO: result: no" >&5
1643echo "${ECHO_T}no" >&6
1644fi
1645
1646fi
1647if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1649 for ac_prog in cl
1650 do
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653echo "$as_me:$LINENO: checking for $ac_word" >&5
1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660else
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672done
1673done
1674
1675fi
1676fi
1677CC=$ac_cv_prog_CC
1678if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680echo "${ECHO_T}$CC" >&6
1681else
1682 echo "$as_me:$LINENO: result: no" >&5
1683echo "${ECHO_T}no" >&6
1684fi
1685
1686 test -n "$CC" && break
1687 done
1688fi
1689if test -z "$CC"; then
1690 ac_ct_CC=$CC
1691 for ac_prog in cl
1692do
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694set dummy $ac_prog; ac_word=$2
1695echo "$as_me:$LINENO: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702else
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714done
1715done
1716
1717fi
1718fi
1719ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722echo "${ECHO_T}$ac_ct_CC" >&6
1723else
1724 echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727
1728 test -n "$ac_ct_CC" && break
1729done
1730
1731 CC=$ac_ct_CC
1732fi
1733
1734fi
1735
1736
1737test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738See \`config.log' for more details." >&5
1739echo "$as_me: error: no acceptable C compiler found in \$PATH
1740See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1742
1743# Provide some information about the compiler.
1744echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746ac_compiler=`set X $ac_compile; echo $2`
1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762
1763cat >conftest.$ac_ext <<_ACEOF
1764/* confdefs.h. */
1765_ACEOF
1766cat confdefs.h >>conftest.$ac_ext
1767cat >>conftest.$ac_ext <<_ACEOF
1768/* end confdefs.h. */
1769
1770int
1771main ()
1772{
1773
1774 ;
1775 return 0;
1776}
1777_ACEOF
1778ac_clean_files_save=$ac_clean_files
1779ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780# Try to create an executable without -o first, disregard a.out.
1781# It will help us diagnose broken compilers, and finding out an intuition
1782# of exeext.
1783echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793# resort.
1794
1795# Be careful to initialize this variable, since it used to be cached.
1796# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797ac_cv_exeext=
1798# b.out is created by i960 compilers.
1799for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800do
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 ;;
1805 conftest.$ac_ext )
1806 # This is the source file.
1807 ;;
1808 [ab].out )
1809 # We found the default executable, but exeext='' is most
1810 # certainly right.
1811 break;;
1812 *.* )
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1817 export ac_cv_exeext
1818 break;;
1819 * )
1820 break;;
1821 esac
1822done
1823else
1824 echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828See \`config.log' for more details." >&5
1829echo "$as_me: error: C compiler cannot create executables
1830See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1832fi
1833
1834ac_exeext=$ac_cv_exeext
1835echo "$as_me:$LINENO: result: $ac_file" >&5
1836echo "${ECHO_T}$ac_file" >&6
1837
1838# Check the compiler produces executables we can run. If not, either
1839# the compiler is broken, or we cross compile.
1840echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843# If not cross compiling, check that we can run a simple program.
1844if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 cross_compiling=no
1852 else
1853 if test "$cross_compiling" = maybe; then
1854 cross_compiling=yes
1855 else
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857If you meant to cross compile, use \`--host'.
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: cannot run C compiled programs.
1860If you meant to cross compile, use \`--host'.
1861See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1863 fi
1864 fi
1865fi
1866echo "$as_me:$LINENO: result: yes" >&5
1867echo "${ECHO_T}yes" >&6
1868
1869rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870ac_clean_files=$ac_clean_files_save
1871# Check the compiler produces executables we can run. If not, either
1872# the compiler is broken, or we cross compile.
1873echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876echo "${ECHO_T}$cross_compiling" >&6
1877
1878echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887# work properly (i.e., refer to `conftest.exe'), while it won't with
1888# `rm'.
1889for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894 export ac_cv_exeext
1895 break;;
1896 * ) break;;
1897 esac
1898done
1899else
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901See \`config.log' for more details." >&5
1902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1905fi
1906
1907rm -f conftest$ac_cv_exeext
1908echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909echo "${ECHO_T}$ac_cv_exeext" >&6
1910
1911rm -f conftest.$ac_ext
1912EXEEXT=$ac_cv_exeext
1913ac_exeext=$EXEEXT
1914echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919 cat >conftest.$ac_ext <<_ACEOF
1920/* confdefs.h. */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h. */
1925
1926int
1927main ()
1928{
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934rm -f conftest.o conftest.obj
1935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 case $ac_file in
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944 break;;
1945 esac
1946done
1947else
1948 echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
1951{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952See \`config.log' for more details." >&5
1953echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1956fi
1957
1958rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959fi
1960echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961echo "${ECHO_T}$ac_cv_objext" >&6
1962OBJEXT=$ac_cv_objext
1963ac_objext=$OBJEXT
1964echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 cat >conftest.$ac_ext <<_ACEOF
1970/* confdefs.h. */
1971_ACEOF
1972cat confdefs.h >>conftest.$ac_ext
1973cat >>conftest.$ac_ext <<_ACEOF
1974/* end confdefs.h. */
1975
1976int
1977main ()
1978{
1979#ifndef __GNUC__
1980 choke me
1981#endif
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010else
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014ac_compiler_gnu=no
2015fi
2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019fi
2020echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022GCC=`test $ac_compiler_gnu = yes && echo yes`
2023ac_test_CFLAGS=${CFLAGS+set}
2024ac_save_CFLAGS=$CFLAGS
2025CFLAGS="-g"
2026echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031 cat >conftest.$ac_ext <<_ACEOF
2032/* confdefs.h. */
2033_ACEOF
2034cat confdefs.h >>conftest.$ac_ext
2035cat >>conftest.$ac_ext <<_ACEOF
2036/* end confdefs.h. */
2037
2038int
2039main ()
2040{
2041
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046rm -f conftest.$ac_objext
2047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2049 ac_status=$?
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag"
2056 || test ! -s conftest.err'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 ac_cv_prog_cc_g=yes
2069else
2070 echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073ac_cv_prog_cc_g=no
2074fi
2075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2083 CFLAGS="-g -O2"
2084 else
2085 CFLAGS="-g"
2086 fi
2087else
2088 if test "$GCC" = yes; then
2089 CFLAGS="-O2"
2090 else
2091 CFLAGS=
2092 fi
2093fi
2094echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 ac_cv_prog_cc_stdc=no
2100ac_save_CC=$CC
2101cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h. */
2107#include <stdarg.h>
2108#include <stdio.h>
2109#include <sys/types.h>
2110#include <sys/stat.h>
2111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112struct buf { int x; };
2113FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114static char *e (p, i)
2115 char **p;
2116 int i;
2117{
2118 return p[i];
2119}
2120static char *f (char * (*g) (char **, int), char **p, ...)
2121{
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2128}
2129
2130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138
2139int test (int i, double x);
2140struct s1 {int (*f) (int a);};
2141struct s2 {int (*f) (double a);};
2142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143int argc;
2144char **argv;
2145int
2146main ()
2147{
2148return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153# Don't try gcc -ansi; that turns off useful extensions and
2154# breaks some systems' header files.
2155# AIX -qlanglvl=ansi
2156# Ultrix and OSF/1 -std1
2157# HP-UX 10.20 and later -Ae
2158# HP-UX older versions -Aa -D_HPUX_SOURCE
2159# SVR4 -Xc -D__EXTENSIONS__
2160for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161do
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2166 ac_status=$?
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -z "$ac_c_werror_flag"
2173 || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2186break
2187else
2188 echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191fi
2192rm -f conftest.err conftest.$ac_objext
2193done
2194rm -f conftest.$ac_ext conftest.$ac_objext
2195CC=$ac_save_CC
2196
2197fi
2198
2199case "x$ac_cv_prog_cc_stdc" in
2200 x|xno)
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202echo "${ECHO_T}none needed" >&6 ;;
2203 *)
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207esac
2208
2209# Some people use a C++ compiler to compile C. Since we use `exit',
2210# in C++ we need to declare it. In case someone uses the same compiler
2211# for both compiling C and C++ we need to have the C++ compiler decide
2212# the declaration of exit, since it's the most demanding environment.
2213cat >conftest.$ac_ext <<_ACEOF
2214#ifndef __cplusplus
2215 choke me
2216#endif
2217_ACEOF
2218rm -f conftest.$ac_objext
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2221 ac_status=$?
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2241 '' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2247do
2248 cat >conftest.$ac_ext <<_ACEOF
2249/* confdefs.h. */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h. */
2254$ac_declaration
2255#include <stdlib.h>
2256int
2257main ()
2258{
2259exit (42);
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 :
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291continue
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
2300$ac_declaration
2301int
2302main ()
2303{
2304exit (42);
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.$ac_objext
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332else
2333 echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336fi
2337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338done
2339rm -f conftest*
2340if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2344fi
2345
2346else
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350fi
2351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361if test "${ac_cv_search_strerror+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 ac_func_search_save_LIBS=$LIBS
2365ac_cv_search_strerror=no
2366cat >conftest.$ac_ext <<_ACEOF
2367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
2372
2373/* Override any gcc2 internal prototype to avoid an error. */
2374#ifdef __cplusplus
2375extern "C"
2376#endif
2377/* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379char strerror ();
2380int
2381main ()
2382{
2383strerror ();
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext conftest$ac_exeext
2389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag"
2398 || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest$ac_exeext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_cv_search_strerror="none required"
2411else
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415fi
2416rm -f conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2418if test "$ac_cv_search_strerror" = no; then
2419 for ac_lib in cposix; do
2420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2421 cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h. */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h. */
2427
2428/* Override any gcc2 internal prototype to avoid an error. */
2429#ifdef __cplusplus
2430extern "C"
2431#endif
2432/* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2434char strerror ();
2435int
2436main ()
2437{
2438strerror ();
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext conftest$ac_exeext
2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_search_strerror="-l$ac_lib"
2466break
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
2474 done
2475fi
2476LIBS=$ac_func_search_save_LIBS
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2479echo "${ECHO_T}$ac_cv_search_strerror" >&6
2480if test "$ac_cv_search_strerror" != no; then
2481 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2482
2483fi
2484
2485
2486BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2487am__api_version="1.9"
2488# Find a good install program. We prefer a C program (faster),
2489# so one script is as good as another. But avoid the broken or
2490# incompatible versions:
2491# SysV /etc/install, /usr/sbin/install
2492# SunOS /usr/etc/install
2493# IRIX /sbin/install
2494# AIX /bin/install
2495# AmigaOS /C/install, which installs bootblocks on floppy discs
2496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499# OS/2's system install, which has a completely different semantic
2500# ./install, which can be erroneously created by make from ./install.sh.
2501echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2502echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2503if test -z "$INSTALL"; then
2504if test "${ac_cv_path_install+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513case $as_dir/ in
2514 ./ | .// | /cC/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2528 :
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
2533 else
2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 break 3
2536 fi
2537 fi
2538 done
2539 done
2540 ;;
2541esac
2542done
2543
2544
2545fi
2546 if test "${ac_cv_path_install+set}" = set; then
2547 INSTALL=$ac_cv_path_install
2548 else
2549 # As a last resort, use the slow shell script. We don't cache a
2550 # path for INSTALL within a source directory, because that will
2551 # break other packages using the cache if that directory is
2552 # removed, or if the path is relative.
2553 INSTALL=$ac_install_sh
2554 fi
2555fi
2556echo "$as_me:$LINENO: result: $INSTALL" >&5
2557echo "${ECHO_T}$INSTALL" >&6
2558
2559# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560# It thinks the first close brace ends the variable substitution.
2561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562
2563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564
2565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566
2567echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2568echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2569# Just in case
2570sleep 1
2571echo timestamp > conftest.file
2572# Do `set' in a subshell so we don't clobber the current shell's
2573# arguments. Must try -L first in case configure is actually a
2574# symlink; some systems play weird games with the mod time of symlinks
2575# (eg FreeBSD returns the mod time of the symlink's containing
2576# directory).
2577if (
2578 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2579 if test "$*" = "X"; then
2580 # -L didn't work.
2581 set X `ls -t $srcdir/configure conftest.file`
2582 fi
2583 rm -f conftest.file
2584 if test "$*" != "X $srcdir/configure conftest.file" \
2585 && test "$*" != "X conftest.file $srcdir/configure"; then
2586
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
2591 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2592alias in your environment" >&5
2593echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2594alias in your environment" >&2;}
2595 { (exit 1); exit 1; }; }
2596 fi
2597
2598 test "$2" = conftest.file
2599 )
2600then
2601 # Ok.
2602 :
2603else
2604 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2605Check your system clock" >&5
2606echo "$as_me: error: newly created file is older than distributed files!
2607Check your system clock" >&2;}
2608 { (exit 1); exit 1; }; }
2609fi
2610echo "$as_me:$LINENO: result: yes" >&5
2611echo "${ECHO_T}yes" >&6
2612test "$program_prefix" != NONE &&
2613 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2614# Use a double $ so make ignores it.
2615test "$program_suffix" != NONE &&
2616 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2617# Double any \ or $. echo might interpret backslashes.
2618# By default was `s,x,x', remove it if useless.
2619cat <<\_ACEOF >conftest.sed
2620s/[\\$]/&&/g;s/;s,x,x,$//
2621_ACEOF
2622program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2623rm conftest.sed
2624
2625# expand $ac_aux_dir to an absolute path
2626am_aux_dir=`cd $ac_aux_dir && pwd`
2627
2628test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2629# Use eval to expand $SHELL
2630if eval "$MISSING --run true"; then
2631 am_missing_run="$MISSING --run "
2632else
2633 am_missing_run=
2634 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2635echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2636fi
2637
2638if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2639 # We used to keeping the `.' as first argument, in order to
2640 # allow $(mkdir_p) to be used without argument. As in
2641 # $(mkdir_p) $(somedir)
2642 # where $(somedir) is conditionally defined. However this is wrong
2643 # for two reasons:
2644 # 1. if the package is installed by a user who cannot write `.'
2645 # make install will fail,
2646 # 2. the above comment should most certainly read
2647 # $(mkdir_p) $(DESTDIR)$(somedir)
2648 # so it does not work when $(somedir) is undefined and
2649 # $(DESTDIR) is not.
2650 # To support the latter case, we have to write
2651 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2652 # so the `.' trick is pointless.
2653 mkdir_p='mkdir -p --'
2654else
2655 # On NextStep and OpenStep, the `mkdir' command does not
2656 # recognize any option. It will interpret all options as
2657 # directories to create, and then abort because `.' already
2658 # exists.
2659 for d in ./-p ./--version;
2660 do
2661 test -d $d && rmdir $d
2662 done
2663 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2664 if test -f "$ac_aux_dir/mkinstalldirs"; then
2665 mkdir_p='$(mkinstalldirs)'
2666 else
2667 mkdir_p='$(install_sh) -d'
2668 fi
2669fi
2670
2671for ac_prog in gawk mawk nawk awk
2672do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
2675echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677if test "${ac_cv_prog_AWK+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
2696
2697fi
2698fi
2699AWK=$ac_cv_prog_AWK
2700if test -n "$AWK"; then
2701 echo "$as_me:$LINENO: result: $AWK" >&5
2702echo "${ECHO_T}$AWK" >&6
2703else
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706fi
2707
2708 test -n "$AWK" && break
2709done
2710
2711echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2713set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2714if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717 cat >conftest.make <<\_ACEOF
2718all:
2719 @echo 'ac_maketemp="$(MAKE)"'
2720_ACEOF
2721# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2722eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2723if test -n "$ac_maketemp"; then
2724 eval ac_cv_prog_make_${ac_make}_set=yes
2725else
2726 eval ac_cv_prog_make_${ac_make}_set=no
2727fi
2728rm -f conftest.make
2729fi
2730if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2731 echo "$as_me:$LINENO: result: yes" >&5
2732echo "${ECHO_T}yes" >&6
2733 SET_MAKE=
2734else
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
2737 SET_MAKE="MAKE=${MAKE-make}"
2738fi
2739
2740rm -rf .tst 2>/dev/null
2741mkdir .tst 2>/dev/null
2742if test -d .tst; then
2743 am__leading_dot=.
2744else
2745 am__leading_dot=_
2746fi
2747rmdir .tst 2>/dev/null
2748
2749DEPDIR="${am__leading_dot}deps"
2750
2751 ac_config_commands="$ac_config_commands depfiles"
2752
2753
2754am_make=${MAKE-make}
2755cat > confinc << 'END'
2756am__doit:
2757 @echo done
2758.PHONY: am__doit
2759END
2760# If we don't find an include directive, just comment out the code.
2761echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2762echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2763am__include="#"
2764am__quote=
2765_am_result=none
2766# First try GNU make style include.
2767echo "include confinc" > confmf
2768# We grep out `Entering directory' and `Leaving directory'
2769# messages which can occur if `w' ends up in MAKEFLAGS.
2770# In particular we don't look at `^make:' because GNU make might
2771# be invoked under some other name (usually "gmake"), in which
2772# case it prints its new name instead of `make'.
2773if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2774 am__include=include
2775 am__quote=
2776 _am_result=GNU
2777fi
2778# Now try BSD make style include.
2779if test "$am__include" = "#"; then
2780 echo '.include "confinc"' > confmf
2781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2782 am__include=.include
2783 am__quote="\""
2784 _am_result=BSD
2785 fi
2786fi
2787
2788
2789echo "$as_me:$LINENO: result: $_am_result" >&5
2790echo "${ECHO_T}$_am_result" >&6
2791rm -f confinc confmf
2792
2793# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2794if test "${enable_dependency_tracking+set}" = set; then
2795 enableval="$enable_dependency_tracking"
2796
2797fi;
2798if test "x$enable_dependency_tracking" != xno; then
2799 am_depcomp="$ac_aux_dir/depcomp"
2800 AMDEPBACKSLASH='\'
2801fi
2802
2803
2804if test "x$enable_dependency_tracking" != xno; then
2805 AMDEP_TRUE=
2806 AMDEP_FALSE='#'
2807else
2808 AMDEP_TRUE='#'
2809 AMDEP_FALSE=
2810fi
2811
2812
2813
2814# test to see if srcdir already configured
2815if test "`cd $srcdir && pwd`" != "`pwd`" &&
2816 test -f $srcdir/config.status; then
2817 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2818echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2819 { (exit 1); exit 1; }; }
2820fi
2821
2822# test whether we have cygpath
2823if test -z "$CYGPATH_W"; then
2824 if (cygpath --version) >/dev/null 2>/dev/null; then
2825 CYGPATH_W='cygpath -w'
2826 else
2827 CYGPATH_W=echo
2828 fi
2829fi
2830
2831
2832# Define the identity of the package.
2833 PACKAGE=binutils
2834 VERSION=${BFD_VERSION}
2835
2836
2837cat >>confdefs.h <<_ACEOF
2838#define PACKAGE "$PACKAGE"
2839_ACEOF
2840
2841
2842cat >>confdefs.h <<_ACEOF
2843#define VERSION "$VERSION"
2844_ACEOF
2845
2846# Some tools Automake needs.
2847
2848ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849
2850
2851AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852
2853
2854AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855
2856
2857AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858
2859
2860MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861
2862install_sh=${install_sh-"$am_aux_dir/install-sh"}
2863
2864# Installed binaries are usually stripped using `strip' when the user
2865# run `make install-strip'. However `strip' might not be the right
2866# tool to use in cross-compilation environments, therefore Automake
2867# will honor the `STRIP' environment variable to overrule this program.
2868if test "$cross_compiling" != no; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871set dummy ${ac_tool_prefix}strip; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_STRIP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 if test -n "$STRIP"; then
2878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891done
2892done
2893
2894fi
2895fi
2896STRIP=$ac_cv_prog_STRIP
2897if test -n "$STRIP"; then
2898 echo "$as_me:$LINENO: result: $STRIP" >&5
2899echo "${ECHO_T}$STRIP" >&6
2900else
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905fi
2906if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909set dummy strip; ac_word=$2
2910echo "$as_me:$LINENO: checking for $ac_word" >&5
2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_STRIP="strip"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930done
2931
2932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2933fi
2934fi
2935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936if test -n "$ac_ct_STRIP"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2938echo "${ECHO_T}$ac_ct_STRIP" >&6
2939else
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942fi
2943
2944 STRIP=$ac_ct_STRIP
2945else
2946 STRIP="$ac_cv_prog_STRIP"
2947fi
2948
2949fi
2950INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2951
2952# We need awk for the "check" target. The system "awk" is bad on
2953# some platforms.
2954# Always define AMTAR for backward compatibility.
2955
2956AMTAR=${AMTAR-"${am_missing_run}tar"}
2957
2958am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2959
2960
2961
2962
2963depcc="$CC" am_compiler_list=
2964
2965echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971 # We make a subdir and do the tests there. Otherwise we can end up
2972 # making bogus files that we don't know about and never remove. For
2973 # instance it was reported that on HP-UX the gcc test will end up
2974 # making a dummy file named `D' -- because `-MD' means `put the output
2975 # in D'.
2976 mkdir conftest.dir
2977 # Copy depcomp to subdir because otherwise we won't find it if we're
2978 # using a relative directory.
2979 cp "$am_depcomp" conftest.dir
2980 cd conftest.dir
2981 # We will build objects and dependencies in a subdirectory because
2982 # it helps to detect inapplicable dependency modes. For instance
2983 # both Tru64's cc and ICC support -MD to output dependencies as a
2984 # side effect of compilation, but ICC will put the dependencies in
2985 # the current directory while Tru64 will put them in the object
2986 # directory.
2987 mkdir sub
2988
2989 am_cv_CC_dependencies_compiler_type=none
2990 if test "$am_compiler_list" = ""; then
2991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2992 fi
2993 for depmode in $am_compiler_list; do
2994 # Setup a source with many dependencies, because some compilers
2995 # like to wrap large dependency lists on column 80 (with \), and
2996 # we should not choose a depcomp mode which is confused by this.
2997 #
2998 # We need to recreate these files for each test, as the compiler may
2999 # overwrite some of them when testing with obscure command lines.
3000 # This happens at least with the AIX C compiler.
3001 : > sub/conftest.c
3002 for i in 1 2 3 4 5 6; do
3003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3005 # Solaris 8's {/usr,}/bin/sh.
3006 touch sub/conftst$i.h
3007 done
3008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3009
3010 case $depmode in
3011 nosideeffect)
3012 # after this tag, mechanisms are not by side-effect, so they'll
3013 # only be used when explicitly requested
3014 if test "x$enable_dependency_tracking" = xyes; then
3015 continue
3016 else
3017 break
3018 fi
3019 ;;
3020 none) break ;;
3021 esac
3022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3023 # mode. It turns out that the SunPro C++ compiler does not properly
3024 # handle `-M -o', and we need to detect this.
3025 if depmode=$depmode \
3026 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3029 >/dev/null 2>conftest.err &&
3030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3031 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3033 # icc doesn't choke on unknown options, it will just issue warnings
3034 # or remarks (even with -Werror). So we grep stderr for any message
3035 # that says an option was ignored or not supported.
3036 # When given -MP, icc 7.0 and 7.1 complain thusly:
3037 # icc: Command line warning: ignoring option '-M'; no argument required
3038 # The diagnosis changed in icc 8.0:
3039 # icc: Command line remark: option '-MP' not supported
3040 if (grep 'ignoring option' conftest.err ||
3041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3042 am_cv_CC_dependencies_compiler_type=$depmode
3043 break
3044 fi
3045 fi
3046 done
3047
3048 cd ..
3049 rm -rf conftest.dir
3050else
3051 am_cv_CC_dependencies_compiler_type=none
3052fi
3053
3054fi
3055echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3056echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3057CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3058
3059
3060
3061if
3062 test "x$enable_dependency_tracking" != xno \
3063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3064 am__fastdepCC_TRUE=
3065 am__fastdepCC_FALSE='#'
3066else
3067 am__fastdepCC_TRUE='#'
3068 am__fastdepCC_FALSE=
3069fi
3070
3071
3072
3073
3074ac_ext=c
3075ac_cpp='$CPP $CPPFLAGS'
3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3081set dummy ${ac_tool_prefix}gcc; ac_word=$2
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_CC+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102done
3103
3104fi
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108 echo "$as_me:$LINENO: result: $CC" >&5
3109echo "${ECHO_T}$CC" >&6
3110else
3111 echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
3115fi
3116if test -z "$ac_cv_prog_CC"; then
3117 ac_ct_CC=$CC
3118 # Extract the first word of "gcc", so it can be a program name with args.
3119set dummy gcc; ac_word=$2
3120echo "$as_me:$LINENO: checking for $ac_word" >&5
3121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_CC="gcc"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139done
3140done
3141
3142fi
3143fi
3144ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145if test -n "$ac_ct_CC"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3147echo "${ECHO_T}$ac_ct_CC" >&6
3148else
3149 echo "$as_me:$LINENO: result: no" >&5
3150echo "${ECHO_T}no" >&6
3151fi
3152
3153 CC=$ac_ct_CC
3154else
3155 CC="$ac_cv_prog_CC"
3156fi
3157
3158if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3161set dummy ${ac_tool_prefix}cc; ac_word=$2
3162echo "$as_me:$LINENO: checking for $ac_word" >&5
3163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164if test "${ac_cv_prog_CC+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="${ac_tool_prefix}cc"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181done
3182done
3183
3184fi
3185fi
3186CC=$ac_cv_prog_CC
3187if test -n "$CC"; then
3188 echo "$as_me:$LINENO: result: $CC" >&5
3189echo "${ECHO_T}$CC" >&6
3190else
3191 echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
3193fi
3194
3195fi
3196if test -z "$ac_cv_prog_CC"; then
3197 ac_ct_CC=$CC
3198 # Extract the first word of "cc", so it can be a program name with args.
3199set dummy cc; ac_word=$2
3200echo "$as_me:$LINENO: checking for $ac_word" >&5
3201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207else
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_CC="cc"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219done
3220done
3221
3222fi
3223fi
3224ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225if test -n "$ac_ct_CC"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3227echo "${ECHO_T}$ac_ct_CC" >&6
3228else
3229 echo "$as_me:$LINENO: result: no" >&5
3230echo "${ECHO_T}no" >&6
3231fi
3232
3233 CC=$ac_ct_CC
3234else
3235 CC="$ac_cv_prog_CC"
3236fi
3237
3238fi
3239if test -z "$CC"; then
3240 # Extract the first word of "cc", so it can be a program name with args.
3241set dummy cc; ac_word=$2
3242echo "$as_me:$LINENO: checking for $ac_word" >&5
3243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244if test "${ac_cv_prog_CC+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250 ac_prog_rejected=no
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259 ac_prog_rejected=yes
3260 continue
3261 fi
3262 ac_cv_prog_CC="cc"
3263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267done
3268
3269if test $ac_prog_rejected = yes; then
3270 # We found a bogon in the path, so make sure we never use it.
3271 set dummy $ac_cv_prog_CC
3272 shift
3273 if test $# != 0; then
3274 # We chose a different compiler from the bogus one.
3275 # However, it has the same basename, so the bogon will be chosen
3276 # first if we set CC to just the basename; use the full file name.
3277 shift
3278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3279 fi
3280fi
3281fi
3282fi
3283CC=$ac_cv_prog_CC
3284if test -n "$CC"; then
3285 echo "$as_me:$LINENO: result: $CC" >&5
3286echo "${ECHO_T}$CC" >&6
3287else
3288 echo "$as_me:$LINENO: result: no" >&5
3289echo "${ECHO_T}no" >&6
3290fi
3291
3292fi
3293if test -z "$CC"; then
3294 if test -n "$ac_tool_prefix"; then
3295 for ac_prog in cl
3296 do
3297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3299echo "$as_me:$LINENO: checking for $ac_word" >&5
3300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301if test "${ac_cv_prog_CC+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318done
3319done
3320
3321fi
3322fi
3323CC=$ac_cv_prog_CC
3324if test -n "$CC"; then
3325 echo "$as_me:$LINENO: result: $CC" >&5
3326echo "${ECHO_T}$CC" >&6
3327else
3328 echo "$as_me:$LINENO: result: no" >&5
3329echo "${ECHO_T}no" >&6
3330fi
3331
3332 test -n "$CC" && break
3333 done
3334fi
3335if test -z "$CC"; then
3336 ac_ct_CC=$CC
3337 for ac_prog in cl
3338do
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340set dummy $ac_prog; ac_word=$2
3341echo "$as_me:$LINENO: checking for $ac_word" >&5
3342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_CC="$ac_prog"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361done
3362
3363fi
3364fi
3365ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366if test -n "$ac_ct_CC"; then
3367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3368echo "${ECHO_T}$ac_ct_CC" >&6
3369else
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372fi
3373
3374 test -n "$ac_ct_CC" && break
3375done
3376
3377 CC=$ac_ct_CC
3378fi
3379
3380fi
3381
3382
3383test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3384See \`config.log' for more details." >&5
3385echo "$as_me: error: no acceptable C compiler found in \$PATH
3386See \`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }
3388
3389# Provide some information about the compiler.
3390echo "$as_me:$LINENO:" \
3391 "checking for C compiler version" >&5
3392ac_compiler=`set X $ac_compile; echo $2`
3393{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3394 (eval $ac_compiler --version </dev/null >&5) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3398{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3399 (eval $ac_compiler -v </dev/null >&5) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3403{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3404 (eval $ac_compiler -V </dev/null >&5) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }
3408
3409echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3410echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3411if test "${ac_cv_c_compiler_gnu+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420
3421int
3422main ()
3423{
3424#ifndef __GNUC__
3425 choke me
3426#endif
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 ac_compiler_gnu=yes
3455else
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459ac_compiler_gnu=no
3460fi
3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462ac_cv_c_compiler_gnu=$ac_compiler_gnu
3463
3464fi
3465echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3466echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3467GCC=`test $ac_compiler_gnu = yes && echo yes`
3468ac_test_CFLAGS=${CFLAGS+set}
3469ac_save_CFLAGS=$CFLAGS
3470CFLAGS="-g"
3471echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3472echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3473if test "${ac_cv_prog_cc_g+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482
3483int
3484main ()
3485{
3486
3487 ;
3488 return 0;
3489}
3490_ACEOF
3491rm -f conftest.$ac_objext
3492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try='test -z "$ac_c_werror_flag"
3501 || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_prog_cc_g=yes
3514else
3515 echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518ac_cv_prog_cc_g=no
3519fi
3520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521fi
3522echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3523echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3524if test "$ac_test_CFLAGS" = set; then
3525 CFLAGS=$ac_save_CFLAGS
3526elif test $ac_cv_prog_cc_g = yes; then
3527 if test "$GCC" = yes; then
3528 CFLAGS="-g -O2"
3529 else
3530 CFLAGS="-g"
3531 fi
3532else
3533 if test "$GCC" = yes; then
3534 CFLAGS="-O2"
3535 else
3536 CFLAGS=
3537 fi
3538fi
3539echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3540echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3541if test "${ac_cv_prog_cc_stdc+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 ac_cv_prog_cc_stdc=no
3545ac_save_CC=$CC
3546cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552#include <stdarg.h>
3553#include <stdio.h>
3554#include <sys/types.h>
3555#include <sys/stat.h>
3556/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3557struct buf { int x; };
3558FILE * (*rcsopen) (struct buf *, struct stat *, int);
3559static char *e (p, i)
3560 char **p;
3561 int i;
3562{
3563 return p[i];
3564}
3565static char *f (char * (*g) (char **, int), char **p, ...)
3566{
3567 char *s;
3568 va_list v;
3569 va_start (v,p);
3570 s = g (p, va_arg (v,int));
3571 va_end (v);
3572 return s;
3573}
3574
3575/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3576 function prototypes and stuff, but not '\xHH' hex character constants.
3577 These don't provoke an error unfortunately, instead are silently treated
3578 as 'x'. The following induces an error, until -std1 is added to get
3579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3580 array size at least. It's necessary to write '\x00'==0 to get something
3581 that's true only with -std1. */
3582int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3583
3584int test (int i, double x);
3585struct s1 {int (*f) (int a);};
3586struct s2 {int (*f) (double a);};
3587int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3588int argc;
3589char **argv;
3590int
3591main ()
3592{
3593return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598# Don't try gcc -ansi; that turns off useful extensions and
3599# breaks some systems' header files.
3600# AIX -qlanglvl=ansi
3601# Ultrix and OSF/1 -std1
3602# HP-UX 10.20 and later -Ae
3603# HP-UX older versions -Aa -D_HPUX_SOURCE
3604# SVR4 -Xc -D__EXTENSIONS__
3605for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3606do
3607 CC="$ac_save_CC $ac_arg"
3608 rm -f conftest.$ac_objext
3609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_prog_cc_stdc=$ac_arg
3631break
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636fi
3637rm -f conftest.err conftest.$ac_objext
3638done
3639rm -f conftest.$ac_ext conftest.$ac_objext
3640CC=$ac_save_CC
3641
3642fi
3643
3644case "x$ac_cv_prog_cc_stdc" in
3645 x|xno)
3646 echo "$as_me:$LINENO: result: none needed" >&5
3647echo "${ECHO_T}none needed" >&6 ;;
3648 *)
3649 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3650echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3651 CC="$CC $ac_cv_prog_cc_stdc" ;;
3652esac
3653
3654# Some people use a C++ compiler to compile C. Since we use `exit',
3655# in C++ we need to declare it. In case someone uses the same compiler
3656# for both compiling C and C++ we need to have the C++ compiler decide
3657# the declaration of exit, since it's the most demanding environment.
3658cat >conftest.$ac_ext <<_ACEOF
3659#ifndef __cplusplus
3660 choke me
3661#endif
3662_ACEOF
3663rm -f conftest.$ac_objext
3664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3666 ac_status=$?
3667 grep -v '^ *+' conftest.er1 >conftest.err
3668 rm -f conftest.er1
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 for ac_declaration in \
3686 '' \
3687 'extern "C" void std::exit (int) throw (); using std::exit;' \
3688 'extern "C" void std::exit (int); using std::exit;' \
3689 'extern "C" void exit (int) throw ();' \
3690 'extern "C" void exit (int);' \
3691 'void exit (int);'
3692do
3693 cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
3699$ac_declaration
3700#include <stdlib.h>
3701int
3702main ()
3703{
3704exit (42);
3705 ;
3706 return 0;
3707}
3708_ACEOF
3709rm -f conftest.$ac_objext
3710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 :
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736continue
3737fi
3738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3739 cat >conftest.$ac_ext <<_ACEOF
3740/* confdefs.h. */
3741_ACEOF
3742cat confdefs.h >>conftest.$ac_ext
3743cat >>conftest.$ac_ext <<_ACEOF
3744/* end confdefs.h. */
3745$ac_declaration
3746int
3747main ()
3748{
3749exit (42);
3750 ;
3751 return 0;
3752}
3753_ACEOF
3754rm -f conftest.$ac_objext
3755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -z "$ac_c_werror_flag"
3764 || test ! -s conftest.err'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 break
3777else
3778 echo "$as_me: failed program was:" >&5
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781fi
3782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3783done
3784rm -f conftest*
3785if test -n "$ac_declaration"; then
3786 echo '#ifdef __cplusplus' >>confdefs.h
3787 echo $ac_declaration >>confdefs.h
3788 echo '#endif' >>confdefs.h
3789fi
3790
3791else
3792 echo "$as_me: failed program was:" >&5
3793sed 's/^/| /' conftest.$ac_ext >&5
3794
3795fi
3796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3797ac_ext=c
3798ac_cpp='$CPP $CPPFLAGS'
3799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802
3803
3804cat >>confdefs.h <<\_ACEOF
3805#define _GNU_SOURCE 1
3806_ACEOF
3807
3808
3809# Check whether --enable-shared or --disable-shared was given.
3810if test "${enable_shared+set}" = set; then
3811 enableval="$enable_shared"
3812 p=${PACKAGE-default}
3813case $enableval in
3814yes) enable_shared=yes ;;
3815no) enable_shared=no ;;
3816*)
3817 enable_shared=no
3818 # Look at the argument we got. We use all the common list separators.
3819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3820 for pkg in $enableval; do
3821 if test "X$pkg" = "X$p"; then
3822 enable_shared=yes
3823 fi
3824 done
3825 IFS="$ac_save_ifs"
3826 ;;
3827esac
3828else
3829 enable_shared=yes
3830fi;
3831# Check whether --enable-static or --disable-static was given.
3832if test "${enable_static+set}" = set; then
3833 enableval="$enable_static"
3834 p=${PACKAGE-default}
3835case $enableval in
3836yes) enable_static=yes ;;
3837no) enable_static=no ;;
3838*)
3839 enable_static=no
3840 # Look at the argument we got. We use all the common list separators.
3841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3842 for pkg in $enableval; do
3843 if test "X$pkg" = "X$p"; then
3844 enable_static=yes
3845 fi
3846 done
3847 IFS="$ac_save_ifs"
3848 ;;
3849esac
3850else
3851 enable_static=yes
3852fi;
3853# Check whether --enable-fast-install or --disable-fast-install was given.
3854if test "${enable_fast_install+set}" = set; then
3855 enableval="$enable_fast_install"
3856 p=${PACKAGE-default}
3857case $enableval in
3858yes) enable_fast_install=yes ;;
3859no) enable_fast_install=no ;;
3860*)
3861 enable_fast_install=no
3862 # Look at the argument we got. We use all the common list separators.
3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3864 for pkg in $enableval; do
3865 if test "X$pkg" = "X$p"; then
3866 enable_fast_install=yes
3867 fi
3868 done
3869 IFS="$ac_save_ifs"
3870 ;;
3871esac
3872else
3873 enable_fast_install=yes
3874fi;
3875
3876# Check whether --with-gnu-ld or --without-gnu-ld was given.
3877if test "${with_gnu_ld+set}" = set; then
3878 withval="$with_gnu_ld"
3879 test "$withval" = no || with_gnu_ld=yes
3880else
3881 with_gnu_ld=no
3882fi;
3883ac_prog=ld
3884if test "$GCC" = yes; then
3885 # Check if gcc -print-prog-name=ld gives a path.
3886 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3887echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3888 case $host in
3889 *-*-mingw*)
3890 # gcc leaves a trailing carriage return which upsets mingw
3891 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3892 *)
3893 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3894 esac
3895 case $ac_prog in
3896 # Accept absolute paths.
3897 [\\/]* | [A-Za-z]:[\\/]*)
3898 re_direlt='/[^/][^/]*/\.\./'
3899 # Canonicalize the path of ld
3900 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3901 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3902 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3903 done
3904 test -z "$LD" && LD="$ac_prog"
3905 ;;
3906 "")
3907 # If it fails, then pretend we aren't using GCC.
3908 ac_prog=ld
3909 ;;
3910 *)
3911 # If it is relative, then search for the first ld in PATH.
3912 with_gnu_ld=unknown
3913 ;;
3914 esac
3915elif test "$with_gnu_ld" = yes; then
3916 echo "$as_me:$LINENO: checking for GNU ld" >&5
3917echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3918else
3919 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3920echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3921fi
3922if test "${lt_cv_path_LD+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925 if test -z "$LD"; then
3926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3927 for ac_dir in $PATH; do
3928 test -z "$ac_dir" && ac_dir=.
3929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3930 lt_cv_path_LD="$ac_dir/$ac_prog"
3931 # Check to see if the program is GNU ld. I'd rather use --version,
3932 # but apparently some GNU ld's only accept -v.
3933 # Break only if it was the GNU/non-GNU ld that we prefer.
3934 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3935 test "$with_gnu_ld" != no && break
3936 else
3937 test "$with_gnu_ld" != yes && break
3938 fi
3939 fi
3940 done
3941 IFS="$ac_save_ifs"
3942else
3943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3944fi
3945fi
3946
3947LD="$lt_cv_path_LD"
3948if test -n "$LD"; then
3949 echo "$as_me:$LINENO: result: $LD" >&5
3950echo "${ECHO_T}$LD" >&6
3951else
3952 echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
3954fi
3955test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3956echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3957 { (exit 1); exit 1; }; }
3958echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3959echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3960if test "${lt_cv_prog_gnu_ld+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3964if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3965 lt_cv_prog_gnu_ld=yes
3966else
3967 lt_cv_prog_gnu_ld=no
3968fi
3969fi
3970echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3971echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3972with_gnu_ld=$lt_cv_prog_gnu_ld
3973
3974
3975echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3976echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3977if test "${lt_cv_ld_reload_flag+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980 lt_cv_ld_reload_flag='-r'
3981fi
3982echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3983echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3984reload_flag=$lt_cv_ld_reload_flag
3985test -n "$reload_flag" && reload_flag=" $reload_flag"
3986
3987echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3988echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3989if test "${lt_cv_path_NM+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991else
3992 if test -n "$NM"; then
3993 # Let the user override the test.
3994 lt_cv_path_NM="$NM"
3995else
3996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3997 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3998 test -z "$ac_dir" && ac_dir=.
3999 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4000 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4001 # Check to see if the nm accepts a BSD-compat flag.
4002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4003 # nm: unknown option "B" ignored
4004 # Tru64's nm complains that /dev/null is an invalid object file
4005 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4006 lt_cv_path_NM="$tmp_nm -B"
4007 break
4008 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4009 lt_cv_path_NM="$tmp_nm -p"
4010 break
4011 else
4012 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4013 continue # so that we can try to find one that supports BSD flags
4014 fi
4015 fi
4016 done
4017 IFS="$ac_save_ifs"
4018 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4019fi
4020fi
4021
4022NM="$lt_cv_path_NM"
4023echo "$as_me:$LINENO: result: $NM" >&5
4024echo "${ECHO_T}$NM" >&6
4025
4026echo "$as_me:$LINENO: checking whether ln -s works" >&5
4027echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4028LN_S=$as_ln_s
4029if test "$LN_S" = "ln -s"; then
4030 echo "$as_me:$LINENO: result: yes" >&5
4031echo "${ECHO_T}yes" >&6
4032else
4033 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4034echo "${ECHO_T}no, using $LN_S" >&6
4035fi
4036
4037echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4038echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4039if test "${lt_cv_deplibs_check_method+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 lt_cv_file_magic_cmd='$MAGIC_CMD'
4043lt_cv_file_magic_test_file=
4044lt_cv_deplibs_check_method='unknown'
4045# Need to set the preceding variable on all platforms that support
4046# interlibrary dependencies.
4047# 'none' -- dependencies not supported.
4048# `unknown' -- same as none, but documents that we really don't know.
4049# 'pass_all' -- all dependencies passed with no checks.
4050# 'test_compile' -- check by making test program.
4051# 'file_magic [regex]' -- check by looking for files in library path
4052# which responds to the $file_magic_cmd with a given egrep regex.
4053# If you have `file' or equivalent on your system and you're not sure
4054# whether `pass_all' will *always* work, you probably want this one.
4055
4056case $host_os in
4057aix*)
4058 lt_cv_deplibs_check_method=pass_all
4059 ;;
4060
4061beos*)
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064
4065bsdi4*)
4066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4067 lt_cv_file_magic_cmd='/usr/bin/file -L'
4068 lt_cv_file_magic_test_file=/shlib/libc.so
4069 ;;
4070
4071cygwin* | mingw* |pw32*)
4072 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4073 lt_cv_file_magic_cmd='$OBJDUMP -f'
4074 ;;
4075
4076darwin* | rhapsody*)
4077 # this will be overwritten by pass_all, but leave it in just in case
4078 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4079 lt_cv_file_magic_cmd='/usr/bin/file -L'
4080 case "$host_os" in
4081 rhapsody* | darwin1.012)
4082 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4083 ;;
4084 *) # Darwin 1.3 on
4085 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4086 ;;
4087 esac
4088 lt_cv_deplibs_check_method=pass_all
4089 ;;
4090
4091freebsd* | kfreebsd*-gnu)
4092 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4093 case $host_cpu in
4094 i*86 )
4095 # Not sure whether the presence of OpenBSD here was a mistake.
4096 # Let's accept both of them until this is cleared up.
4097 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4098 lt_cv_file_magic_cmd=/usr/bin/file
4099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4100 ;;
4101 esac
4102 else
4103 lt_cv_deplibs_check_method=pass_all
4104 fi
4105 ;;
4106
4107gnu*)
4108 lt_cv_deplibs_check_method=pass_all
4109 ;;
4110
4111hpux10.20*|hpux11*)
4112 case $host_cpu in
4113 hppa*)
4114 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4115 lt_cv_file_magic_cmd=/usr/bin/file
4116 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4117 ;;
4118 ia64*)
4119 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4120 lt_cv_file_magic_cmd=/usr/bin/file
4121 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4122 ;;
4123 esac
4124 ;;
4125
4126irix5* | irix6*)
4127 case $host_os in
4128 irix5*)
4129 # this will be overridden with pass_all, but let us keep it just in case
4130 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4131 ;;
4132 *)
4133 case $LD in
4134 *-32|*"-32 ") libmagic=32-bit;;
4135 *-n32|*"-n32 ") libmagic=N32;;
4136 *-64|*"-64 ") libmagic=64-bit;;
4137 *) libmagic=never-match;;
4138 esac
4139 # this will be overridden with pass_all, but let us keep it just in case
4140 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4141 ;;
4142 esac
4143 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4144 lt_cv_deplibs_check_method=pass_all
4145 ;;
4146
4147# This must be Linux ELF.
4148linux-gnu*)
4149 lt_cv_deplibs_check_method=pass_all
4150 ;;
4151
4152netbsd* | knetbsd*-gnu)
4153 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4154 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4155 else
4156 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4157 fi
4158 ;;
4159
4160newsos6)
4161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4162 lt_cv_file_magic_cmd=/usr/bin/file
4163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4164 ;;
4165
4166osf3* | osf4* | osf5*)
4167 # this will be overridden with pass_all, but let us keep it just in case
4168 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4169 lt_cv_file_magic_test_file=/shlib/libc.so
4170 lt_cv_deplibs_check_method=pass_all
4171 ;;
4172
4173sco3.2v5*)
4174 lt_cv_deplibs_check_method=pass_all
4175 ;;
4176
4177solaris*)
4178 lt_cv_deplibs_check_method=pass_all
4179 lt_cv_file_magic_test_file=/lib/libc.so
4180 ;;
4181
4182sysv5uw[78]* | sysv4*uw2*)
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
4185
4186sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4187 case $host_vendor in
4188 ncr)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191 motorola)
4192 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]'
4193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4194 ;;
4195 esac
4196 ;;
4197esac
4198
4199fi
4200echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4201echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4202file_magic_cmd=$lt_cv_file_magic_cmd
4203deplibs_check_method=$lt_cv_deplibs_check_method
4204
4205
4206
4207
4208# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4209
4210# find the maximum length of command line arguments
4211echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4212echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4213if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216 i=0
4217 teststring="ABCD"
4218
4219 case $build_os in
4220 msdosdjgpp*)
4221 # On DJGPP, this test can blow up pretty badly due to problems in libc
4222 # (any single argument exceeding 2000 bytes causes a buffer overrun
4223 # during glob expansion). Even if it were fixed, the result of this
4224 # check would be larger than it should be.
4225 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4226 ;;
4227
4228 cygwin* | mingw*)
4229 # On Win9x/ME, this test blows up -- it succeeds, but takes
4230 # about 5 minutes as the teststring grows exponentially.
4231 # Worse, since 9x/ME are not pre-emptively multitasking,
4232 # you end up with a "frozen" computer, even though with patience
4233 # the test eventually succeeds (with a max line length of 256k).
4234 # Instead, let's just punt: use the minimum linelength reported by
4235 # all of the supported platforms: 8192 (on NT/2K/XP).
4236 lt_cv_sys_max_cmd_len=8192;
4237 ;;
4238
4239 amigaos*)
4240 # On AmigaOS with pdksh, this test takes hours, literally.
4241 # So we just punt and use a minimum line length of 8192.
4242 lt_cv_sys_max_cmd_len=8192;
4243 ;;
4244
4245 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4246 # This has been around since 386BSD, at least. Likely further.
4247 if test -x /sbin/sysctl; then
4248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4249 elif test -x /usr/sbin/sysctl; then
4250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4251 else
4252 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4253 fi
4254 # And add a safety zone
4255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4257 ;;
4258 esac
4259
4260fi
4261
4262if test -n "$lt_cv_sys_max_cmd_len" ; then
4263 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4264echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4265else
4266 echo "$as_me:$LINENO: result: none" >&5
4267echo "${ECHO_T}none" >&6
4268fi
4269
4270
4271# Only perform the check for file, if the check method requires it
4272case $deplibs_check_method in
4273file_magic*)
4274 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4275 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4276echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4277if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 case $MAGIC_CMD in
4281 /*)
4282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4283 ;;
4284 ?:/*)
4285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4286 ;;
4287 *)
4288 ac_save_MAGIC_CMD="$MAGIC_CMD"
4289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4290 ac_dummy="/usr/bin:$PATH"
4291 for ac_dir in $ac_dummy; do
4292 test -z "$ac_dir" && ac_dir=.
4293 if test -f $ac_dir/${ac_tool_prefix}file; then
4294 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4295 if test -n "$file_magic_test_file"; then
4296 case $deplibs_check_method in
4297 "file_magic "*)
4298 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4301 egrep "$file_magic_regex" > /dev/null; then
4302 :
4303 else
4304 cat <<EOF 1>&2
4305
4306*** Warning: the command libtool uses to detect shared libraries,
4307*** $file_magic_cmd, produces output that libtool cannot recognize.
4308*** The result is that libtool may fail to recognize shared libraries
4309*** as such. This will affect the creation of libtool libraries that
4310*** depend on shared libraries, but programs linked with such libtool
4311*** libraries will work regardless of this problem. Nevertheless, you
4312*** may want to report the problem to your system manager and/or to
4313*** bug-libtool@gnu.org
4314
4315EOF
4316 fi ;;
4317 esac
4318 fi
4319 break
4320 fi
4321 done
4322 IFS="$ac_save_ifs"
4323 MAGIC_CMD="$ac_save_MAGIC_CMD"
4324 ;;
4325esac
4326fi
4327
4328MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4329if test -n "$MAGIC_CMD"; then
4330 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4331echo "${ECHO_T}$MAGIC_CMD" >&6
4332else
4333 echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6
4335fi
4336
4337if test -z "$lt_cv_path_MAGIC_CMD"; then
4338 if test -n "$ac_tool_prefix"; then
4339 echo "$as_me:$LINENO: checking for file" >&5
4340echo $ECHO_N "checking for file... $ECHO_C" >&6
4341if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344 case $MAGIC_CMD in
4345 /*)
4346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4347 ;;
4348 ?:/*)
4349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4350 ;;
4351 *)
4352 ac_save_MAGIC_CMD="$MAGIC_CMD"
4353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4354 ac_dummy="/usr/bin:$PATH"
4355 for ac_dir in $ac_dummy; do
4356 test -z "$ac_dir" && ac_dir=.
4357 if test -f $ac_dir/file; then
4358 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4359 if test -n "$file_magic_test_file"; then
4360 case $deplibs_check_method in
4361 "file_magic "*)
4362 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4364 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4365 egrep "$file_magic_regex" > /dev/null; then
4366 :
4367 else
4368 cat <<EOF 1>&2
4369
4370*** Warning: the command libtool uses to detect shared libraries,
4371*** $file_magic_cmd, produces output that libtool cannot recognize.
4372*** The result is that libtool may fail to recognize shared libraries
4373*** as such. This will affect the creation of libtool libraries that
4374*** depend on shared libraries, but programs linked with such libtool
4375*** libraries will work regardless of this problem. Nevertheless, you
4376*** may want to report the problem to your system manager and/or to
4377*** bug-libtool@gnu.org
4378
4379EOF
4380 fi ;;
4381 esac
4382 fi
4383 break
4384 fi
4385 done
4386 IFS="$ac_save_ifs"
4387 MAGIC_CMD="$ac_save_MAGIC_CMD"
4388 ;;
4389esac
4390fi
4391
4392MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4393if test -n "$MAGIC_CMD"; then
4394 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4395echo "${ECHO_T}$MAGIC_CMD" >&6
4396else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399fi
4400
4401 else
4402 MAGIC_CMD=:
4403 fi
4404fi
4405
4406 fi
4407 ;;
4408esac
4409
4410if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4412set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4413echo "$as_me:$LINENO: checking for $ac_word" >&5
4414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415if test "${ac_cv_prog_RANLIB+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417else
4418 if test -n "$RANLIB"; then
4419 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432done
4433done
4434
4435fi
4436fi
4437RANLIB=$ac_cv_prog_RANLIB
4438if test -n "$RANLIB"; then
4439 echo "$as_me:$LINENO: result: $RANLIB" >&5
4440echo "${ECHO_T}$RANLIB" >&6
4441else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444fi
4445
4446fi
4447if test -z "$ac_cv_prog_RANLIB"; then
4448 ac_ct_RANLIB=$RANLIB
4449 # Extract the first word of "ranlib", so it can be a program name with args.
4450set dummy ranlib; ac_word=$2
4451echo "$as_me:$LINENO: checking for $ac_word" >&5
4452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456 if test -n "$ac_ct_RANLIB"; then
4457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_prog_ac_ct_RANLIB="ranlib"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470done
4471done
4472
4473 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4474fi
4475fi
4476ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4477if test -n "$ac_ct_RANLIB"; then
4478 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4479echo "${ECHO_T}$ac_ct_RANLIB" >&6
4480else
4481 echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483fi
4484
4485 RANLIB=$ac_ct_RANLIB
4486else
4487 RANLIB="$ac_cv_prog_RANLIB"
4488fi
4489
4490if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4492set dummy ${ac_tool_prefix}strip; ac_word=$2
4493echo "$as_me:$LINENO: checking for $ac_word" >&5
4494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495if test "${ac_cv_prog_STRIP+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498 if test -n "$STRIP"; then
4499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512done
4513done
4514
4515fi
4516fi
4517STRIP=$ac_cv_prog_STRIP
4518if test -n "$STRIP"; then
4519 echo "$as_me:$LINENO: result: $STRIP" >&5
4520echo "${ECHO_T}$STRIP" >&6
4521else
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524fi
4525
4526fi
4527if test -z "$ac_cv_prog_STRIP"; then
4528 ac_ct_STRIP=$STRIP
4529 # Extract the first word of "strip", so it can be a program name with args.
4530set dummy strip; ac_word=$2
4531echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 if test -n "$ac_ct_STRIP"; then
4537 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_ac_ct_STRIP="strip"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551done
4552
4553 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4554fi
4555fi
4556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4557if test -n "$ac_ct_STRIP"; then
4558 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4559echo "${ECHO_T}$ac_ct_STRIP" >&6
4560else
4561 echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564
4565 STRIP=$ac_ct_STRIP
4566else
4567 STRIP="$ac_cv_prog_STRIP"
4568fi
4569
4570
4571# Check for any special flags to pass to ltconfig.
4572libtool_flags="--cache-file=$cache_file"
4573test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4574test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4575test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4576test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4577test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4578
4579
4580# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4581if test "${enable_libtool_lock+set}" = set; then
4582 enableval="$enable_libtool_lock"
4583
4584fi;
4585test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4586test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4587
4588
4589# Check whether --with-pic or --without-pic was given.
4590if test "${with_pic+set}" = set; then
4591 withval="$with_pic"
4592 pic_mode="$withval"
4593else
4594 pic_mode=default
4595fi;
4596test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4597test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4598
4599# Some flags need to be propagated to the compiler or linker for good
4600# libtool support.
4601case $host in
4602*-*-irix6*)
4603 # Find out which ABI we are using.
4604 echo '#line 4604 "configure"' > conftest.$ac_ext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; then
4610 if test "$lt_cv_prog_gnu_ld" = yes; then
4611 case `/usr/bin/file conftest.$ac_objext` in
4612 *32-bit*)
4613 LD="${LD-ld} -melf32bsmip"
4614 ;;
4615 *N32*)
4616 LD="${LD-ld} -melf32bmipn32"
4617 ;;
4618 *64-bit*)
4619 LD="${LD-ld} -melf64bmip"
4620 ;;
4621 esac
4622 else
4623 case `/usr/bin/file conftest.$ac_objext` in
4624 *32-bit*)
4625 LD="${LD-ld} -32"
4626 ;;
4627 *N32*)
4628 LD="${LD-ld} -n32"
4629 ;;
4630 *64-bit*)
4631 LD="${LD-ld} -64"
4632 ;;
4633 esac
4634 fi
4635 fi
4636 rm -rf conftest*
4637 ;;
4638
4639ia64-*-hpux*)
4640 # Find out which ABI we are using.
4641 echo 'int i;' > conftest.$ac_ext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; then
4647 case "`/usr/bin/file conftest.o`" in
4648 *ELF-32*)
4649 HPUX_IA64_MODE="32"
4650 ;;
4651 *ELF-64*)
4652 HPUX_IA64_MODE="64"
4653 ;;
4654 esac
4655 fi
4656 rm -rf conftest*
4657 ;;
4658
4659x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4660 # Find out which ABI we are using.
4661 echo 'int i;' > conftest.$ac_ext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; then
4667 case "`/usr/bin/file conftest.o`" in
4668 *32-bit*)
4669 case $host in
4670 x86_64-*linux*)
4671 LD="${LD-ld} -m elf_i386"
4672 ;;
4673 ppc64-*linux*|powerpc64-*linux*)
4674 LD="${LD-ld} -m elf32ppclinux"
4675 ;;
4676 s390x-*linux*)
4677 LD="${LD-ld} -m elf_s390"
4678 ;;
4679 sparc64-*linux*)
4680 LD="${LD-ld} -m elf32_sparc"
4681 ;;
4682 esac
4683 ;;
4684 *64-bit*)
4685 case $host in
4686 x86_64-*linux*)
4687 LD="${LD-ld} -m elf_x86_64"
4688 ;;
4689 ppc*-*linux*|powerpc*-*linux*)
4690 LD="${LD-ld} -m elf64ppc"
4691 ;;
4692 s390*-*linux*)
4693 LD="${LD-ld} -m elf64_s390"
4694 ;;
4695 sparc*-*linux*)
4696 LD="${LD-ld} -m elf64_sparc"
4697 ;;
4698 esac
4699 ;;
4700 esac
4701 fi
4702 rm -rf conftest*
4703 ;;
4704
4705*-*-sco3.2v5*)
4706 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4707 SAVE_CFLAGS="$CFLAGS"
4708 CFLAGS="$CFLAGS -belf"
4709 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4710echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4711if test "${lt_cv_cc_needs_belf+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714
4715
4716 ac_ext=c
4717ac_cpp='$CPP $CPPFLAGS'
4718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721
4722 cat >conftest.$ac_ext <<_ACEOF
4723/* confdefs.h. */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h. */
4728
4729int
4730main ()
4731{
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737rm -f conftest.$ac_objext conftest$ac_exeext
4738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739 (eval $ac_link) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 lt_cv_cc_needs_belf=yes
4760else
4761 echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764lt_cv_cc_needs_belf=no
4765fi
4766rm -f conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 ac_ext=c
4769ac_cpp='$CPP $CPPFLAGS'
4770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773
4774fi
4775echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4776echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4777 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4778 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4779 CFLAGS="$SAVE_CFLAGS"
4780 fi
4781 ;;
4782
4783
4784esac
4785
4786
4787# Save cache, so that ltconfig can load it
4788cat >confcache <<\_ACEOF
4789# This file is a shell script that caches the results of configure
4790# tests run on this system so they can be shared between configure
4791# scripts and configure runs, see configure's option --config-cache.
4792# It is not useful on other systems. If it contains results you don't
4793# want to keep, you may remove or edit it.
4794#
4795# config.status only pays attention to the cache file if you give it
4796# the --recheck option to rerun configure.
4797#
4798# `ac_cv_env_foo' variables (set or unset) will be overridden when
4799# loading this file, other *unset* `ac_cv_foo' will be assigned the
4800# following values.
4801
4802_ACEOF
4803
4804# The following way of writing the cache mishandles newlines in values,
4805# but we know of no workaround that is simple, portable, and efficient.
4806# So, don't put newlines in cache variables' values.
4807# Ultrix sh set writes to stderr and can't be redirected directly,
4808# and sets the high bit in the cache file unless we assign to the vars.
4809{
4810 (set) 2>&1 |
4811 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4812 *ac_space=\ *)
4813 # `set' does not quote correctly, so add quotes (double-quote
4814 # substitution turns \\\\ into \\, and sed turns \\ into \).
4815 sed -n \
4816 "s/'/'\\\\''/g;
4817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4818 ;;
4819 *)
4820 # `set' quotes correctly as required by POSIX, so do not add quotes.
4821 sed -n \
4822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4823 ;;
4824 esac;
4825} |
4826 sed '
4827 t clear
4828 : clear
4829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4830 t end
4831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4832 : end' >>confcache
4833if diff $cache_file confcache >/dev/null 2>&1; then :; else
4834 if test -w $cache_file; then
4835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4836 cat confcache >$cache_file
4837 else
4838 echo "not updating unwritable cache $cache_file"
4839 fi
4840fi
4841rm -f confcache
4842
4843# Actually configure libtool. ac_aux_dir is where install-sh is found.
4844AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4845MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4846LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4847AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4848objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4849deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4850${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4851$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4852|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4853echo "$as_me: error: libtool configure failed" >&2;}
4854 { (exit 1); exit 1; }; }
4855
4856# Reload cache, that may have been modified by ltconfig
4857if test -r "$cache_file"; then
4858 # Some versions of bash will fail to source /dev/null (special
4859 # files actually), so we avoid doing that.
4860 if test -f "$cache_file"; then
4861 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4862echo "$as_me: loading cache $cache_file" >&6;}
4863 case $cache_file in
4864 [\\/]* | ?:[\\/]* ) . $cache_file;;
4865 *) . ./$cache_file;;
4866 esac
4867 fi
4868else
4869 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4870echo "$as_me: creating cache $cache_file" >&6;}
4871 >$cache_file
4872fi
4873
4874
4875# This can be used to rebuild libtool when needed
4876LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4877
4878# Always use our own libtool.
4879LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4880
4881# Redirect the config.log output again, so that the ltconfig log is not
4882# clobbered by the next message.
4883exec 5>>./config.log
4884
4885
4886
4887
4888
4889
4890
4891# Check whether --enable-targets or --disable-targets was given.
4892if test "${enable_targets+set}" = set; then
4893 enableval="$enable_targets"
4894 case "${enableval}" in
4895 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4896echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4897 { (exit 1); exit 1; }; }
4898 ;;
4899 no) enable_targets= ;;
4900 *) enable_targets=$enableval ;;
4901esac
4902fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4903if test "${enable_commonbfdlib+set}" = set; then
4904 enableval="$enable_commonbfdlib"
4905 case "${enableval}" in
4906 yes) commonbfdlib=true ;;
4907 no) commonbfdlib=false ;;
4908 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4909echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4911esac
4912fi;
4913
4914GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4915
4916# Check whether --enable-werror or --disable-werror was given.
4917if test "${enable_werror+set}" = set; then
4918 enableval="$enable_werror"
4919 case "${enableval}" in
4920 yes | y) ERROR_ON_WARNING="yes" ;;
4921 no | n) ERROR_ON_WARNING="no" ;;
4922 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4923echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4924 { (exit 1); exit 1; }; } ;;
4925 esac
4926fi;
4927
4928# Enable -Werror by default when using gcc
4929if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4930 ERROR_ON_WARNING=yes
4931fi
4932
4933NO_WERROR=
4934if test "${ERROR_ON_WARNING}" = yes ; then
4935 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4936 NO_WERROR="-Wno-error"
4937fi
4938
4939if test "${GCC}" = yes ; then
4940 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4941fi
4942
4943# Check whether --enable-build-warnings or --disable-build-warnings was given.
4944if test "${enable_build_warnings+set}" = set; then
4945 enableval="$enable_build_warnings"
4946 case "${enableval}" in
4947 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4948 no) if test "${GCC}" = yes ; then
4949 WARN_CFLAGS="-w"
4950 fi;;
4951 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4952 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4953 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4954 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4955 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4956esac
4957fi;
4958
4959if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4960 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4961fi
4962
4963
4964
4965
4966
4967 ac_config_headers="$ac_config_headers config.h:config.in"
4968
4969
4970if test -z "$target" ; then
4971 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4972echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4973 { (exit 1); exit 1; }; }
4974fi
4975if test -z "$host" ; then
4976 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4977echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4978 { (exit 1); exit 1; }; }
4979fi
4980
4981for ac_prog in 'bison -y' byacc
4982do
4983 # Extract the first word of "$ac_prog", so it can be a program name with args.
4984set dummy $ac_prog; ac_word=$2
4985echo "$as_me:$LINENO: checking for $ac_word" >&5
4986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987if test "${ac_cv_prog_YACC+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 if test -n "$YACC"; then
4991 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_YACC="$ac_prog"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004done
5005done
5006
5007fi
5008fi
5009YACC=$ac_cv_prog_YACC
5010if test -n "$YACC"; then
5011 echo "$as_me:$LINENO: result: $YACC" >&5
5012echo "${ECHO_T}$YACC" >&6
5013else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016fi
5017
5018 test -n "$YACC" && break
5019done
5020test -n "$YACC" || YACC="yacc"
5021
5022for ac_prog in flex lex
5023do
5024 # Extract the first word of "$ac_prog", so it can be a program name with args.
5025set dummy $ac_prog; ac_word=$2
5026echo "$as_me:$LINENO: checking for $ac_word" >&5
5027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5028if test "${ac_cv_prog_LEX+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031 if test -n "$LEX"; then
5032 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_prog_LEX="$ac_prog"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045done
5046done
5047
5048fi
5049fi
5050LEX=$ac_cv_prog_LEX
5051if test -n "$LEX"; then
5052 echo "$as_me:$LINENO: result: $LEX" >&5
5053echo "${ECHO_T}$LEX" >&6
5054else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059 test -n "$LEX" && break
5060done
5061test -n "$LEX" || LEX=":"
5062
5063if test -z "$LEXLIB"
5064then
5065 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5066echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5067if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070 ac_check_lib_save_LIBS=$LIBS
5071LIBS="-lfl $LIBS"
5072cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
5078
5079/* Override any gcc2 internal prototype to avoid an error. */
5080#ifdef __cplusplus
5081extern "C"
5082#endif
5083/* We use char because int might match the return type of a gcc2
5084 builtin and then its argument prototype would still apply. */
5085char yywrap ();
5086int
5087main ()
5088{
5089yywrap ();
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.$ac_objext conftest$ac_exeext
5095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5096 (eval $ac_link) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest$ac_exeext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_lib_fl_yywrap=yes
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121ac_cv_lib_fl_yywrap=no
5122fi
5123rm -f conftest.err conftest.$ac_objext \
5124 conftest$ac_exeext conftest.$ac_ext
5125LIBS=$ac_check_lib_save_LIBS
5126fi
5127echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5128echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5129if test $ac_cv_lib_fl_yywrap = yes; then
5130 LEXLIB="-lfl"
5131else
5132 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5133echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5134if test "${ac_cv_lib_l_yywrap+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137 ac_check_lib_save_LIBS=$LIBS
5138LIBS="-ll $LIBS"
5139cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
5145
5146/* Override any gcc2 internal prototype to avoid an error. */
5147#ifdef __cplusplus
5148extern "C"
5149#endif
5150/* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5152char yywrap ();
5153int
5154main ()
5155{
5156yywrap ();
5157 ;
5158 return 0;
5159}
5160_ACEOF
5161rm -f conftest.$ac_objext conftest$ac_exeext
5162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163 (eval $ac_link) 2>conftest.er1
5164 ac_status=$?
5165 grep -v '^ *+' conftest.er1 >conftest.err
5166 rm -f conftest.er1
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } &&
5170 { ac_try='test -z "$ac_c_werror_flag"
5171 || test ! -s conftest.err'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest$ac_exeext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 (eval $ac_try) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 ac_cv_lib_l_yywrap=yes
5184else
5185 echo "$as_me: failed program was:" >&5
5186sed 's/^/| /' conftest.$ac_ext >&5
5187
5188ac_cv_lib_l_yywrap=no
5189fi
5190rm -f conftest.err conftest.$ac_objext \
5191 conftest$ac_exeext conftest.$ac_ext
5192LIBS=$ac_check_lib_save_LIBS
5193fi
5194echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5195echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5196if test $ac_cv_lib_l_yywrap = yes; then
5197 LEXLIB="-ll"
5198fi
5199
5200fi
5201
5202fi
5203
5204if test "x$LEX" != "x:"; then
5205 echo "$as_me:$LINENO: checking lex output file root" >&5
5206echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5207if test "${ac_cv_prog_lex_root+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210 # The minimal lex program is just a single line: %%. But some broken lexes
5211# (Solaris, I think it was) want two %% lines, so accommodate them.
5212cat >conftest.l <<_ACEOF
5213%%
5214%%
5215_ACEOF
5216{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5217 (eval $LEX conftest.l) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }
5221if test -f lex.yy.c; then
5222 ac_cv_prog_lex_root=lex.yy
5223elif test -f lexyy.c; then
5224 ac_cv_prog_lex_root=lexyy
5225else
5226 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5227echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5228 { (exit 1); exit 1; }; }
5229fi
5230fi
5231echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5232echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5233rm -f conftest.l
5234LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5235
5236echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5237echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5238if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 # POSIX says lex can declare yytext either as a pointer or an array; the
5242# default is implementation-dependent. Figure out which it is, since
5243# not all implementations provide the %pointer and %array declarations.
5244ac_cv_prog_lex_yytext_pointer=no
5245echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5246ac_save_LIBS=$LIBS
5247LIBS="$LIBS $LEXLIB"
5248cat >conftest.$ac_ext <<_ACEOF
5249`cat $LEX_OUTPUT_ROOT.c`
5250_ACEOF
5251rm -f conftest.$ac_objext conftest$ac_exeext
5252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253 (eval $ac_link) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag"
5261 || test ! -s conftest.err'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest$ac_exeext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_prog_lex_yytext_pointer=yes
5274else
5275 echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278fi
5279rm -f conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281LIBS=$ac_save_LIBS
5282rm -f "${LEX_OUTPUT_ROOT}.c"
5283
5284fi
5285echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5286echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5287if test $ac_cv_prog_lex_yytext_pointer = yes; then
5288
5289cat >>confdefs.h <<\_ACEOF
5290#define YYTEXT_POINTER 1
5291_ACEOF
5292
5293fi
5294
5295fi
5296if test "$LEX" = :; then
5297 LEX=${am_missing_run}flex
5298fi
5299
5300ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
5301# If we haven't got the data from the intl directory,
5302# assume NLS is disabled.
5303USE_NLS=no
5304LIBINTL=
5305LIBINTL_DEP=
5306INCINTL=
5307XGETTEXT=
5308GMSGFMT=
5309POSUB=
5310
5311if test -f ../intl/config.intl; then
5312 . ../intl/config.intl
5313fi
5314echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5315echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5316if test x"$USE_NLS" != xyes; then
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319else
5320 echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
5322
5323cat >>confdefs.h <<\_ACEOF
5324#define ENABLE_NLS 1
5325_ACEOF
5326
5327
5328 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5329echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5330 # Look for .po and .gmo files in the source directory.
5331 CATALOGS=
5332 XLINGUAS=
5333 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5334 # If there aren't any .gmo files the shell will give us the
5335 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5336 # weeded out.
5337 case "$cat" in *\**)
5338 continue;;
5339 esac
5340 # The quadruple backslash is collapsed to a double backslash
5341 # by the backticks, then collapsed again by the double quotes,
5342 # leaving us with one backslash in the sed expression (right
5343 # before the dot that mustn't act as a wildcard).
5344 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5345 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5346 # The user is allowed to set LINGUAS to a list of languages to
5347 # install catalogs for. If it's empty that means "all of them."
5348 if test "x$LINGUAS" = x; then
5349 CATALOGS="$CATALOGS $cat"
5350 XLINGUAS="$XLINGUAS $lang"
5351 else
5352 case "$LINGUAS" in *$lang*)
5353 CATALOGS="$CATALOGS $cat"
5354 XLINGUAS="$XLINGUAS $lang"
5355 ;;
5356 esac
5357 fi
5358 done
5359 LINGUAS="$XLINGUAS"
5360 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5361echo "${ECHO_T}$LINGUAS" >&6
5362
5363
5364 DATADIRNAME=share
5365
5366 INSTOBJEXT=.mo
5367
5368 GENCAT=gencat
5369
5370 CATOBJEXT=.gmo
5371
5372fi
5373
5374 MKINSTALLDIRS=
5375 if test -n "$ac_aux_dir"; then
5376 case "$ac_aux_dir" in
5377 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5378 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5379 esac
5380 fi
5381 if test -z "$MKINSTALLDIRS"; then
5382 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5383 fi
5384
5385
5386
5387 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5388echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5389 # Check whether --enable-nls or --disable-nls was given.
5390if test "${enable_nls+set}" = set; then
5391 enableval="$enable_nls"
5392 USE_NLS=$enableval
5393else
5394 USE_NLS=yes
5395fi;
5396 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5397echo "${ECHO_T}$USE_NLS" >&6
5398
5399
5400
5401
5402
5403
5404# Prepare PATH_SEPARATOR.
5405# The user is always right.
5406if test "${PATH_SEPARATOR+set}" != set; then
5407 echo "#! /bin/sh" >conf$$.sh
5408 echo "exit 0" >>conf$$.sh
5409 chmod +x conf$$.sh
5410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5411 PATH_SEPARATOR=';'
5412 else
5413 PATH_SEPARATOR=:
5414 fi
5415 rm -f conf$$.sh
5416fi
5417
5418# Find out how to test for executable files. Don't use a zero-byte file,
5419# as systems may use methods other than mode bits to determine executability.
5420cat >conf$$.file <<_ASEOF
5421#! /bin/sh
5422exit 0
5423_ASEOF
5424chmod +x conf$$.file
5425if test -x conf$$.file >/dev/null 2>&1; then
5426 ac_executable_p="test -x"
5427else
5428 ac_executable_p="test -f"
5429fi
5430rm -f conf$$.file
5431
5432# Extract the first word of "msgfmt", so it can be a program name with args.
5433set dummy msgfmt; ac_word=$2
5434echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436if test "${ac_cv_path_MSGFMT+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 case "$MSGFMT" in
5440 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5442 ;;
5443 *)
5444 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5445 for ac_dir in $PATH; do
5446 IFS="$ac_save_IFS"
5447 test -z "$ac_dir" && ac_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5450 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5451 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5452 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5453 break 2
5454 fi
5455 fi
5456 done
5457 done
5458 IFS="$ac_save_IFS"
5459 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5460 ;;
5461esac
5462fi
5463MSGFMT="$ac_cv_path_MSGFMT"
5464if test "$MSGFMT" != ":"; then
5465 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5466echo "${ECHO_T}$MSGFMT" >&6
5467else
5468 echo "$as_me:$LINENO: result: no" >&5
5469echo "${ECHO_T}no" >&6
5470fi
5471
5472 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5473set dummy gmsgfmt; ac_word=$2
5474echo "$as_me:$LINENO: checking for $ac_word" >&5
5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476if test "${ac_cv_path_GMSGFMT+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 case $GMSGFMT in
5480 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5482 ;;
5483 *)
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495done
5496done
5497
5498 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5499 ;;
5500esac
5501fi
5502GMSGFMT=$ac_cv_path_GMSGFMT
5503
5504if test -n "$GMSGFMT"; then
5505 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5506echo "${ECHO_T}$GMSGFMT" >&6
5507else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510fi
5511
5512
5513
5514# Prepare PATH_SEPARATOR.
5515# The user is always right.
5516if test "${PATH_SEPARATOR+set}" != set; then
5517 echo "#! /bin/sh" >conf$$.sh
5518 echo "exit 0" >>conf$$.sh
5519 chmod +x conf$$.sh
5520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5521 PATH_SEPARATOR=';'
5522 else
5523 PATH_SEPARATOR=:
5524 fi
5525 rm -f conf$$.sh
5526fi
5527
5528# Find out how to test for executable files. Don't use a zero-byte file,
5529# as systems may use methods other than mode bits to determine executability.
5530cat >conf$$.file <<_ASEOF
5531#! /bin/sh
5532exit 0
5533_ASEOF
5534chmod +x conf$$.file
5535if test -x conf$$.file >/dev/null 2>&1; then
5536 ac_executable_p="test -x"
5537else
5538 ac_executable_p="test -f"
5539fi
5540rm -f conf$$.file
5541
5542# Extract the first word of "xgettext", so it can be a program name with args.
5543set dummy xgettext; ac_word=$2
5544echo "$as_me:$LINENO: checking for $ac_word" >&5
5545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546if test "${ac_cv_path_XGETTEXT+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
5549 case "$XGETTEXT" in
5550 [\\/]* | ?:[\\/]*)
5551 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5552 ;;
5553 *)
5554 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5555 for ac_dir in $PATH; do
5556 IFS="$ac_save_IFS"
5557 test -z "$ac_dir" && ac_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5560 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5561 (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
5562 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5563 break 2
5564 fi
5565 fi
5566 done
5567 done
5568 IFS="$ac_save_IFS"
5569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5570 ;;
5571esac
5572fi
5573XGETTEXT="$ac_cv_path_XGETTEXT"
5574if test "$XGETTEXT" != ":"; then
5575 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5576echo "${ECHO_T}$XGETTEXT" >&6
5577else
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580fi
5581
5582 rm -f messages.po
5583
5584
5585# Prepare PATH_SEPARATOR.
5586# The user is always right.
5587if test "${PATH_SEPARATOR+set}" != set; then
5588 echo "#! /bin/sh" >conf$$.sh
5589 echo "exit 0" >>conf$$.sh
5590 chmod +x conf$$.sh
5591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5592 PATH_SEPARATOR=';'
5593 else
5594 PATH_SEPARATOR=:
5595 fi
5596 rm -f conf$$.sh
5597fi
5598
5599# Find out how to test for executable files. Don't use a zero-byte file,
5600# as systems may use methods other than mode bits to determine executability.
5601cat >conf$$.file <<_ASEOF
5602#! /bin/sh
5603exit 0
5604_ASEOF
5605chmod +x conf$$.file
5606if test -x conf$$.file >/dev/null 2>&1; then
5607 ac_executable_p="test -x"
5608else
5609 ac_executable_p="test -f"
5610fi
5611rm -f conf$$.file
5612
5613# Extract the first word of "msgmerge", so it can be a program name with args.
5614set dummy msgmerge; ac_word=$2
5615echo "$as_me:$LINENO: checking for $ac_word" >&5
5616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5617if test "${ac_cv_path_MSGMERGE+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620 case "$MSGMERGE" in
5621 [\\/]* | ?:[\\/]*)
5622 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5623 ;;
5624 *)
5625 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5626 for ac_dir in $PATH; do
5627 IFS="$ac_save_IFS"
5628 test -z "$ac_dir" && ac_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5631 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5632 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5633 break 2
5634 fi
5635 fi
5636 done
5637 done
5638 IFS="$ac_save_IFS"
5639 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5640 ;;
5641esac
5642fi
5643MSGMERGE="$ac_cv_path_MSGMERGE"
5644if test "$MSGMERGE" != ":"; then
5645 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5646echo "${ECHO_T}$MSGMERGE" >&6
5647else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650fi
5651
5652
5653 if test "$GMSGFMT" != ":"; then
5654 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5655 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5656 : ;
5657 else
5658 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5659 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5660echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5661 GMSGFMT=":"
5662 fi
5663 fi
5664
5665 if test "$XGETTEXT" != ":"; then
5666 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5667 (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
5668 : ;
5669 else
5670 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5671echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5672 XGETTEXT=":"
5673 fi
5674 rm -f messages.po
5675 fi
5676
5677 ac_config_commands="$ac_config_commands default-1"
5678
5679
5680
5681echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5682echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5683 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5684if test "${enable_maintainer_mode+set}" = set; then
5685 enableval="$enable_maintainer_mode"
5686 USE_MAINTAINER_MODE=$enableval
5687else
5688 USE_MAINTAINER_MODE=no
5689fi;
5690 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5691echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5692
5693
5694if test $USE_MAINTAINER_MODE = yes; then
5695 MAINTAINER_MODE_TRUE=
5696 MAINTAINER_MODE_FALSE='#'
5697else
5698 MAINTAINER_MODE_TRUE='#'
5699 MAINTAINER_MODE_FALSE=
5700fi
5701
5702 MAINT=$MAINTAINER_MODE_TRUE
5703
5704
5705
5706
5707if false; then
5708 GENINSRC_NEVER_TRUE=
5709 GENINSRC_NEVER_FALSE='#'
5710else
5711 GENINSRC_NEVER_TRUE='#'
5712 GENINSRC_NEVER_FALSE=
5713fi
5714
5715
5716if test -n "$EXEEXT"; then
5717
5718cat >>confdefs.h <<\_ACEOF
5719#define HAVE_EXECUTABLE_SUFFIX 1
5720_ACEOF
5721
5722fi
5723
5724cat >>confdefs.h <<_ACEOF
5725#define EXECUTABLE_SUFFIX "${EXEEXT}"
5726_ACEOF
5727
5728
5729# host-specific stuff:
5730
5731HDEFINES=
5732
5733. ${srcdir}/../bfd/configure.host
5734
5735
5736AR=${AR-ar}
5737
5738if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_RANLIB+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 if test -n "$RANLIB"; then
5747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762
5763fi
5764fi
5765RANLIB=$ac_cv_prog_RANLIB
5766if test -n "$RANLIB"; then
5767 echo "$as_me:$LINENO: result: $RANLIB" >&5
5768echo "${ECHO_T}$RANLIB" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774fi
5775if test -z "$ac_cv_prog_RANLIB"; then
5776 ac_ct_RANLIB=$RANLIB
5777 # Extract the first word of "ranlib", so it can be a program name with args.
5778set dummy ranlib; ac_word=$2
5779echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 if test -n "$ac_ct_RANLIB"; then
5785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_RANLIB="ranlib"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798done
5799done
5800
5801 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5802fi
5803fi
5804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5805if test -n "$ac_ct_RANLIB"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5807echo "${ECHO_T}$ac_ct_RANLIB" >&6
5808else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813 RANLIB=$ac_ct_RANLIB
5814else
5815 RANLIB="$ac_cv_prog_RANLIB"
5816fi
5817
5818# Find a good install program. We prefer a C program (faster),
5819# so one script is as good as another. But avoid the broken or
5820# incompatible versions:
5821# SysV /etc/install, /usr/sbin/install
5822# SunOS /usr/etc/install
5823# IRIX /sbin/install
5824# AIX /bin/install
5825# AmigaOS /C/install, which installs bootblocks on floppy discs
5826# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5827# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5828# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5829# OS/2's system install, which has a completely different semantic
5830# ./install, which can be erroneously created by make from ./install.sh.
5831echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5832echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5833if test -z "$INSTALL"; then
5834if test "${ac_cv_path_install+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 # Account for people who put trailing slashes in PATH elements.
5843case $as_dir/ in
5844 ./ | .// | /cC/* | \
5845 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5846 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5847 /usr/ucb/* ) ;;
5848 *)
5849 # OSF1 and SCO ODT 3.0 have their own names for install.
5850 # Don't use installbsd from OSF since it installs stuff as root
5851 # by default.
5852 for ac_prog in ginstall scoinst install; do
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5855 if test $ac_prog = install &&
5856 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5857 # AIX install. It has an incompatible calling convention.
5858 :
5859 elif test $ac_prog = install &&
5860 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5861 # program-specific install script used by HP pwplus--don't use.
5862 :
5863 else
5864 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5865 break 3
5866 fi
5867 fi
5868 done
5869 done
5870 ;;
5871esac
5872done
5873
5874
5875fi
5876 if test "${ac_cv_path_install+set}" = set; then
5877 INSTALL=$ac_cv_path_install
5878 else
5879 # As a last resort, use the slow shell script. We don't cache a
5880 # path for INSTALL within a source directory, because that will
5881 # break other packages using the cache if that directory is
5882 # removed, or if the path is relative.
5883 INSTALL=$ac_install_sh
5884 fi
5885fi
5886echo "$as_me:$LINENO: result: $INSTALL" >&5
5887echo "${ECHO_T}$INSTALL" >&6
5888
5889# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5890# It thinks the first close brace ends the variable substitution.
5891test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5892
5893test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5894
5895test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5896
5897
5898# Put a plausible default for CC_FOR_BUILD in Makefile.
5899if test -z "$CC_FOR_BUILD"; then
5900 if test "x$cross_compiling" = "xno"; then
5901 CC_FOR_BUILD='$(CC)'
5902 else
5903 CC_FOR_BUILD=gcc
5904 fi
5905fi
5906
5907# Also set EXEEXT_FOR_BUILD.
5908if test "x$cross_compiling" = "xno"; then
5909 EXEEXT_FOR_BUILD='$(EXEEXT)'
5910else
5911 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
5912echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
5913if test "${bfd_cv_build_exeext+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916 rm -f conftest*
5917 echo 'int main () { return 0; }' > conftest.c
5918 bfd_cv_build_exeext=
5919 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
5920 for file in conftest.*; do
5921 case $file in
5922 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5923 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
5924 esac
5925 done
5926 rm -f conftest*
5927 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5928fi
5929echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
5930echo "${ECHO_T}$bfd_cv_build_exeext" >&6
5931 EXEEXT_FOR_BUILD=""
5932 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5933fi
5934
5935
5936DEMANGLER_NAME=c++filt
5937case "${host}" in
5938 *-*-go32* | *-*-msdos*)
5939 DEMANGLER_NAME=cxxfilt
5940esac
5941
5942
5943ac_ext=c
5944ac_cpp='$CPP $CPPFLAGS'
5945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5949echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5950# On Suns, sometimes $CPP names a directory.
5951if test -n "$CPP" && test -d "$CPP"; then
5952 CPP=
5953fi
5954if test -z "$CPP"; then
5955 if test "${ac_cv_prog_CPP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 # Double quotes because CPP needs to be expanded
5959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5960 do
5961 ac_preproc_ok=false
5962for ac_c_preproc_warn_flag in '' yes
5963do
5964 # Use a header file that comes with gcc, so configuring glibc
5965 # with a fresh cross-compiler works.
5966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5967 # <limits.h> exists even on freestanding compilers.
5968 # On the NeXT, cc -E runs the code through the compiler's parser,
5969 # not just through cpp. "Syntax error" is here to catch this case.
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976#ifdef __STDC__
5977# include <limits.h>
5978#else
5979# include <assert.h>
5980#endif
5981 Syntax error
5982_ACEOF
5983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null; then
5991 if test -s conftest.err; then
5992 ac_cpp_err=$ac_c_preproc_warn_flag
5993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5994 else
5995 ac_cpp_err=
5996 fi
5997else
5998 ac_cpp_err=yes
5999fi
6000if test -z "$ac_cpp_err"; then
6001 :
6002else
6003 echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 # Broken: fails on valid input.
6007continue
6008fi
6009rm -f conftest.err conftest.$ac_ext
6010
6011 # OK, works on sane cases. Now check whether non-existent headers
6012 # can be detected and how.
6013 cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019#include <ac_nonexistent.h>
6020_ACEOF
6021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null; then
6029 if test -s conftest.err; then
6030 ac_cpp_err=$ac_c_preproc_warn_flag
6031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6032 else
6033 ac_cpp_err=
6034 fi
6035else
6036 ac_cpp_err=yes
6037fi
6038if test -z "$ac_cpp_err"; then
6039 # Broken: success on invalid input.
6040continue
6041else
6042 echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045 # Passes both tests.
6046ac_preproc_ok=:
6047break
6048fi
6049rm -f conftest.err conftest.$ac_ext
6050
6051done
6052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6053rm -f conftest.err conftest.$ac_ext
6054if $ac_preproc_ok; then
6055 break
6056fi
6057
6058 done
6059 ac_cv_prog_CPP=$CPP
6060
6061fi
6062 CPP=$ac_cv_prog_CPP
6063else
6064 ac_cv_prog_CPP=$CPP
6065fi
6066echo "$as_me:$LINENO: result: $CPP" >&5
6067echo "${ECHO_T}$CPP" >&6
6068ac_preproc_ok=false
6069for ac_c_preproc_warn_flag in '' yes
6070do
6071 # Use a header file that comes with gcc, so configuring glibc
6072 # with a fresh cross-compiler works.
6073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6074 # <limits.h> exists even on freestanding compilers.
6075 # On the NeXT, cc -E runs the code through the compiler's parser,
6076 # not just through cpp. "Syntax error" is here to catch this case.
6077 cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h. */
6083#ifdef __STDC__
6084# include <limits.h>
6085#else
6086# include <assert.h>
6087#endif
6088 Syntax error
6089_ACEOF
6090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } >/dev/null; then
6098 if test -s conftest.err; then
6099 ac_cpp_err=$ac_c_preproc_warn_flag
6100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6101 else
6102 ac_cpp_err=
6103 fi
6104else
6105 ac_cpp_err=yes
6106fi
6107if test -z "$ac_cpp_err"; then
6108 :
6109else
6110 echo "$as_me: failed program was:" >&5
6111sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 # Broken: fails on valid input.
6114continue
6115fi
6116rm -f conftest.err conftest.$ac_ext
6117
6118 # OK, works on sane cases. Now check whether non-existent headers
6119 # can be detected and how.
6120 cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
6126#include <ac_nonexistent.h>
6127_ACEOF
6128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } >/dev/null; then
6136 if test -s conftest.err; then
6137 ac_cpp_err=$ac_c_preproc_warn_flag
6138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6139 else
6140 ac_cpp_err=
6141 fi
6142else
6143 ac_cpp_err=yes
6144fi
6145if test -z "$ac_cpp_err"; then
6146 # Broken: success on invalid input.
6147continue
6148else
6149 echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152 # Passes both tests.
6153ac_preproc_ok=:
6154break
6155fi
6156rm -f conftest.err conftest.$ac_ext
6157
6158done
6159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6160rm -f conftest.err conftest.$ac_ext
6161if $ac_preproc_ok; then
6162 :
6163else
6164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6165See \`config.log' for more details." >&5
6166echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6167See \`config.log' for more details." >&2;}
6168 { (exit 1); exit 1; }; }
6169fi
6170
6171ac_ext=c
6172ac_cpp='$CPP $CPPFLAGS'
6173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176
6177
6178echo "$as_me:$LINENO: checking for egrep" >&5
6179echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6180if test "${ac_cv_prog_egrep+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6184 then ac_cv_prog_egrep='grep -E'
6185 else ac_cv_prog_egrep='egrep'
6186 fi
6187fi
6188echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6189echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6190 EGREP=$ac_cv_prog_egrep
6191
6192
6193echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6194echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6195if test "${ac_cv_header_stdc+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198 cat >conftest.$ac_ext <<_ACEOF
6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
6204#include <stdlib.h>
6205#include <stdarg.h>
6206#include <string.h>
6207#include <float.h>
6208
6209int
6210main ()
6211{
6212
6213 ;
6214 return 0;
6215}
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_header_stdc=yes
6240else
6241 echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
6243
6244ac_cv_header_stdc=no
6245fi
6246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247
6248if test $ac_cv_header_stdc = yes; then
6249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6250 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256#include <string.h>
6257
6258_ACEOF
6259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 $EGREP "memchr" >/dev/null 2>&1; then
6261 :
6262else
6263 ac_cv_header_stdc=no
6264fi
6265rm -f conftest*
6266
6267fi
6268
6269if test $ac_cv_header_stdc = yes; then
6270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6271 cat >conftest.$ac_ext <<_ACEOF
6272/* confdefs.h. */
6273_ACEOF
6274cat confdefs.h >>conftest.$ac_ext
6275cat >>conftest.$ac_ext <<_ACEOF
6276/* end confdefs.h. */
6277#include <stdlib.h>
6278
6279_ACEOF
6280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "free" >/dev/null 2>&1; then
6282 :
6283else
6284 ac_cv_header_stdc=no
6285fi
6286rm -f conftest*
6287
6288fi
6289
6290if test $ac_cv_header_stdc = yes; then
6291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6292 if test "$cross_compiling" = yes; then
6293 :
6294else
6295 cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h. */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h. */
6301#include <ctype.h>
6302#if ((' ' & 0x0FF) == 0x020)
6303# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6304# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6305#else
6306# define ISLOWER(c) \
6307 (('a' <= (c) && (c) <= 'i') \
6308 || ('j' <= (c) && (c) <= 'r') \
6309 || ('s' <= (c) && (c) <= 'z'))
6310# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6311#endif
6312
6313#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6314int
6315main ()
6316{
6317 int i;
6318 for (i = 0; i < 256; i++)
6319 if (XOR (islower (i), ISLOWER (i))
6320 || toupper (i) != TOUPPER (i))
6321 exit(2);
6322 exit (0);
6323}
6324_ACEOF
6325rm -f conftest$ac_exeext
6326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327 (eval $ac_link) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 :
6337else
6338 echo "$as_me: program exited with status $ac_status" >&5
6339echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342( exit $ac_status )
6343ac_cv_header_stdc=no
6344fi
6345rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6346fi
6347fi
6348fi
6349echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6350echo "${ECHO_T}$ac_cv_header_stdc" >&6
6351if test $ac_cv_header_stdc = yes; then
6352
6353cat >>confdefs.h <<\_ACEOF
6354#define STDC_HEADERS 1
6355_ACEOF
6356
6357fi
6358
6359# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6370 inttypes.h stdint.h unistd.h
6371do
6372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373echo "$as_me:$LINENO: checking for $ac_header" >&5
6374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6375if eval "test \"\${$as_ac_Header+set}\" = set"; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377else
6378 cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384$ac_includes_default
6385
6386#include <$ac_header>
6387_ACEOF
6388rm -f conftest.$ac_objext
6389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390 (eval $ac_compile) 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -z "$ac_c_werror_flag"
6398 || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 eval "$as_ac_Header=yes"
6411else
6412 echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415eval "$as_ac_Header=no"
6416fi
6417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418fi
6419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6421if test `eval echo '${'$as_ac_Header'}'` = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6424_ACEOF
6425
6426fi
6427
6428done
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
6440do
6441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6442if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443 echo "$as_me:$LINENO: checking for $ac_header" >&5
6444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6445if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447fi
6448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6450else
6451 # Is the header compilable?
6452echo "$as_me:$LINENO: checking $ac_header usability" >&5
6453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6454cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h. */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h. */
6460$ac_includes_default
6461#include <$ac_header>
6462_ACEOF
6463rm -f conftest.$ac_objext
6464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 ac_header_compiler=yes
6486else
6487 echo "$as_me: failed program was:" >&5
6488sed 's/^/| /' conftest.$ac_ext >&5
6489
6490ac_header_compiler=no
6491fi
6492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6494echo "${ECHO_T}$ac_header_compiler" >&6
6495
6496# Is the header present?
6497echo "$as_me:$LINENO: checking $ac_header presence" >&5
6498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6499cat >conftest.$ac_ext <<_ACEOF
6500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
6505#include <$ac_header>
6506_ACEOF
6507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } >/dev/null; then
6515 if test -s conftest.err; then
6516 ac_cpp_err=$ac_c_preproc_warn_flag
6517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6518 else
6519 ac_cpp_err=
6520 fi
6521else
6522 ac_cpp_err=yes
6523fi
6524if test -z "$ac_cpp_err"; then
6525 ac_header_preproc=yes
6526else
6527 echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_header_preproc=no
6531fi
6532rm -f conftest.err conftest.$ac_ext
6533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6534echo "${ECHO_T}$ac_header_preproc" >&6
6535
6536# So? What about this header?
6537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6538 yes:no: )
6539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6543 ac_header_preproc=yes
6544 ;;
6545 no:yes:* )
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6558 (
6559 cat <<\_ASBOX
6560## ------------------------------------------ ##
6561## Report this to the AC_PACKAGE_NAME lists. ##
6562## ------------------------------------------ ##
6563_ASBOX
6564 ) |
6565 sed "s/^/$as_me: WARNING: /" >&2
6566 ;;
6567esac
6568echo "$as_me:$LINENO: checking for $ac_header" >&5
6569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6570if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 eval "$as_ac_Header=\$ac_header_preproc"
6574fi
6575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6577
6578fi
6579if test `eval echo '${'$as_ac_Header'}'` = yes; then
6580 cat >>confdefs.h <<_ACEOF
6581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582_ACEOF
6583
6584fi
6585
6586done
6587
6588echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6589echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6590if test "${ac_cv_header_sys_wait_h+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
6593 cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h. */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h. */
6599#include <sys/types.h>
6600#include <sys/wait.h>
6601#ifndef WEXITSTATUS
6602# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6603#endif
6604#ifndef WIFEXITED
6605# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6606#endif
6607
6608int
6609main ()
6610{
6611 int s;
6612 wait (&s);
6613 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6614 ;
6615 return 0;
6616}
6617_ACEOF
6618rm -f conftest.$ac_objext
6619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_header_sys_wait_h=yes
6641else
6642 echo "$as_me: failed program was:" >&5
6643sed 's/^/| /' conftest.$ac_ext >&5
6644
6645ac_cv_header_sys_wait_h=no
6646fi
6647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648fi
6649echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6650echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6651if test $ac_cv_header_sys_wait_h = yes; then
6652
6653cat >>confdefs.h <<\_ACEOF
6654#define HAVE_SYS_WAIT_H 1
6655_ACEOF
6656
6657fi
6658
6659# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6660# for constant arguments. Useless!
6661echo "$as_me:$LINENO: checking for working alloca.h" >&5
6662echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6663if test "${ac_cv_working_alloca_h+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h. */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h. */
6672#include <alloca.h>
6673int
6674main ()
6675{
6676char *p = (char *) alloca (2 * sizeof (int));
6677 ;
6678 return 0;
6679}
6680_ACEOF
6681rm -f conftest.$ac_objext conftest$ac_exeext
6682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try='test -s conftest$ac_exeext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_working_alloca_h=yes
6704else
6705 echo "$as_me: failed program was:" >&5
6706sed 's/^/| /' conftest.$ac_ext >&5
6707
6708ac_cv_working_alloca_h=no
6709fi
6710rm -f conftest.err conftest.$ac_objext \
6711 conftest$ac_exeext conftest.$ac_ext
6712fi
6713echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6714echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6715if test $ac_cv_working_alloca_h = yes; then
6716
6717cat >>confdefs.h <<\_ACEOF
6718#define HAVE_ALLOCA_H 1
6719_ACEOF
6720
6721fi
6722
6723echo "$as_me:$LINENO: checking for alloca" >&5
6724echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6725if test "${ac_cv_func_alloca_works+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728 cat >conftest.$ac_ext <<_ACEOF
6729/* confdefs.h. */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
6733/* end confdefs.h. */
6734#ifdef __GNUC__
6735# define alloca __builtin_alloca
6736#else
6737# ifdef _MSC_VER
6738# include <malloc.h>
6739# define alloca _alloca
6740# else
6741# if HAVE_ALLOCA_H
6742# include <alloca.h>
6743# else
6744# ifdef _AIX
6745 #pragma alloca
6746# else
6747# ifndef alloca /* predefined by HP cc +Olibcalls */
6748char *alloca ();
6749# endif
6750# endif
6751# endif
6752# endif
6753#endif
6754
6755int
6756main ()
6757{
6758char *p = (char *) alloca (1);
6759 ;
6760 return 0;
6761}
6762_ACEOF
6763rm -f conftest.$ac_objext conftest$ac_exeext
6764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6765 (eval $ac_link) 2>conftest.er1
6766 ac_status=$?
6767 grep -v '^ *+' conftest.er1 >conftest.err
6768 rm -f conftest.er1
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -z "$ac_c_werror_flag"
6773 || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_func_alloca_works=yes
6786else
6787 echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790ac_cv_func_alloca_works=no
6791fi
6792rm -f conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6794fi
6795echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6796echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6797
6798if test $ac_cv_func_alloca_works = yes; then
6799
6800cat >>confdefs.h <<\_ACEOF
6801#define HAVE_ALLOCA 1
6802_ACEOF
6803
6804else
6805 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6806# that cause trouble. Some versions do not even contain alloca or
6807# contain a buggy version. If you still want to use their alloca,
6808# use ar to extract alloca.o from them instead of compiling alloca.c.
6809
6810ALLOCA=alloca.$ac_objext
6811
6812cat >>confdefs.h <<\_ACEOF
6813#define C_ALLOCA 1
6814_ACEOF
6815
6816
6817echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6818echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6819if test "${ac_cv_os_cray+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822 cat >conftest.$ac_ext <<_ACEOF
6823/* confdefs.h. */
6824_ACEOF
6825cat confdefs.h >>conftest.$ac_ext
6826cat >>conftest.$ac_ext <<_ACEOF
6827/* end confdefs.h. */
6828#if defined(CRAY) && ! defined(CRAY2)
6829webecray
6830#else
6831wenotbecray
6832#endif
6833
6834_ACEOF
6835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "webecray" >/dev/null 2>&1; then
6837 ac_cv_os_cray=yes
6838else
6839 ac_cv_os_cray=no
6840fi
6841rm -f conftest*
6842
6843fi
6844echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6845echo "${ECHO_T}$ac_cv_os_cray" >&6
6846if test $ac_cv_os_cray = yes; then
6847 for ac_func in _getb67 GETB67 getb67; do
6848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6849echo "$as_me:$LINENO: checking for $ac_func" >&5
6850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6851if eval "test \"\${$as_ac_var+set}\" = set"; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h. */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h. */
6860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6862#define $ac_func innocuous_$ac_func
6863
6864/* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func (); below.
6866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867 <limits.h> exists even on freestanding compilers. */
6868
6869#ifdef __STDC__
6870# include <limits.h>
6871#else
6872# include <assert.h>
6873#endif
6874
6875#undef $ac_func
6876
6877/* Override any gcc2 internal prototype to avoid an error. */
6878#ifdef __cplusplus
6879extern "C"
6880{
6881#endif
6882/* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884char $ac_func ();
6885/* The GNU C library defines this for functions which it implements
6886 to always fail with ENOSYS. Some functions are actually named
6887 something starting with __ and the normal name is an alias. */
6888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6889choke me
6890#else
6891char (*f) () = $ac_func;
6892#endif
6893#ifdef __cplusplus
6894}
6895#endif
6896
6897int
6898main ()
6899{
6900return f != $ac_func;
6901 ;
6902 return 0;
6903}
6904_ACEOF
6905rm -f conftest.$ac_objext conftest$ac_exeext
6906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907 (eval $ac_link) 2>conftest.er1
6908 ac_status=$?
6909 grep -v '^ *+' conftest.er1 >conftest.err
6910 rm -f conftest.er1
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } &&
6914 { ac_try='test -z "$ac_c_werror_flag"
6915 || test ! -s conftest.err'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 eval "$as_ac_var=yes"
6928else
6929 echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932eval "$as_ac_var=no"
6933fi
6934rm -f conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936fi
6937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6939if test `eval echo '${'$as_ac_var'}'` = yes; then
6940
6941cat >>confdefs.h <<_ACEOF
6942#define CRAY_STACKSEG_END $ac_func
6943_ACEOF
6944
6945 break
6946fi
6947
6948 done
6949fi
6950
6951echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6952echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6953if test "${ac_cv_c_stack_direction+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 if test "$cross_compiling" = yes; then
6957 ac_cv_c_stack_direction=0
6958else
6959 cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h. */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h. */
6965int
6966find_stack_direction ()
6967{
6968 static char *addr = 0;
6969 auto char dummy;
6970 if (addr == 0)
6971 {
6972 addr = &dummy;
6973 return find_stack_direction ();
6974 }
6975 else
6976 return (&dummy > addr) ? 1 : -1;
6977}
6978
6979int
6980main ()
6981{
6982 exit (find_stack_direction () < 0);
6983}
6984_ACEOF
6985rm -f conftest$ac_exeext
6986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987 (eval $ac_link) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; }; then
6996 ac_cv_c_stack_direction=1
6997else
6998 echo "$as_me: program exited with status $ac_status" >&5
6999echo "$as_me: failed program was:" >&5
7000sed 's/^/| /' conftest.$ac_ext >&5
7001
7002( exit $ac_status )
7003ac_cv_c_stack_direction=-1
7004fi
7005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7006fi
7007fi
7008echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7009echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7010
7011cat >>confdefs.h <<_ACEOF
7012#define STACK_DIRECTION $ac_cv_c_stack_direction
7013_ACEOF
7014
7015
7016fi
7017
7018
7019
7020
7021
7022
7023for ac_func in sbrk utimes setmode getc_unlocked strcoll
7024do
7025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7026echo "$as_me:$LINENO: checking for $ac_func" >&5
7027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7028if eval "test \"\${$as_ac_var+set}\" = set"; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h. */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h. */
7037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7039#define $ac_func innocuous_$ac_func
7040
7041/* System header to define __stub macros and hopefully few prototypes,
7042 which can conflict with char $ac_func (); below.
7043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7044 <limits.h> exists even on freestanding compilers. */
7045
7046#ifdef __STDC__
7047# include <limits.h>
7048#else
7049# include <assert.h>
7050#endif
7051
7052#undef $ac_func
7053
7054/* Override any gcc2 internal prototype to avoid an error. */
7055#ifdef __cplusplus
7056extern "C"
7057{
7058#endif
7059/* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7061char $ac_func ();
7062/* The GNU C library defines this for functions which it implements
7063 to always fail with ENOSYS. Some functions are actually named
7064 something starting with __ and the normal name is an alias. */
7065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7066choke me
7067#else
7068char (*f) () = $ac_func;
7069#endif
7070#ifdef __cplusplus
7071}
7072#endif
7073
7074int
7075main ()
7076{
7077return f != $ac_func;
7078 ;
7079 return 0;
7080}
7081_ACEOF
7082rm -f conftest.$ac_objext conftest$ac_exeext
7083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7084 (eval $ac_link) 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -z "$ac_c_werror_flag"
7092 || test ! -s conftest.err'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; } &&
7098 { ac_try='test -s conftest$ac_exeext'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7104 eval "$as_ac_var=yes"
7105else
7106 echo "$as_me: failed program was:" >&5
7107sed 's/^/| /' conftest.$ac_ext >&5
7108
7109eval "$as_ac_var=no"
7110fi
7111rm -f conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113fi
7114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7115echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7116if test `eval echo '${'$as_ac_var'}'` = yes; then
7117 cat >>confdefs.h <<_ACEOF
7118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7119_ACEOF
7120
7121fi
7122done
7123
7124echo "$as_me:$LINENO: checking for mkstemp" >&5
7125echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7126if test "${ac_cv_func_mkstemp+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129 cat >conftest.$ac_ext <<_ACEOF
7130/* confdefs.h. */
7131_ACEOF
7132cat confdefs.h >>conftest.$ac_ext
7133cat >>conftest.$ac_ext <<_ACEOF
7134/* end confdefs.h. */
7135/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
7136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7137#define mkstemp innocuous_mkstemp
7138
7139/* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char mkstemp (); below.
7141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7142 <limits.h> exists even on freestanding compilers. */
7143
7144#ifdef __STDC__
7145# include <limits.h>
7146#else
7147# include <assert.h>
7148#endif
7149
7150#undef mkstemp
7151
7152/* Override any gcc2 internal prototype to avoid an error. */
7153#ifdef __cplusplus
7154extern "C"
7155{
7156#endif
7157/* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7159char mkstemp ();
7160/* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
7164choke me
7165#else
7166char (*f) () = mkstemp;
7167#endif
7168#ifdef __cplusplus
7169}
7170#endif
7171
7172int
7173main ()
7174{
7175return f != mkstemp;
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180rm -f conftest.$ac_objext conftest$ac_exeext
7181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>conftest.er1
7183 ac_status=$?
7184 grep -v '^ *+' conftest.er1 >conftest.err
7185 rm -f conftest.er1
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -z "$ac_c_werror_flag"
7190 || test ! -s conftest.err'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try='test -s conftest$ac_exeext'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 ac_cv_func_mkstemp=yes
7203else
7204 echo "$as_me: failed program was:" >&5
7205sed 's/^/| /' conftest.$ac_ext >&5
7206
7207ac_cv_func_mkstemp=no
7208fi
7209rm -f conftest.err conftest.$ac_objext \
7210 conftest$ac_exeext conftest.$ac_ext
7211fi
7212echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
7213echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
7214if test $ac_cv_func_mkstemp = yes; then
7215
7216cat >>confdefs.h <<\_ACEOF
7217#define HAVE_MKSTEMP 1
7218_ACEOF
7219
7220fi
7221
7222echo "$as_me:$LINENO: checking for mkdtemp" >&5
7223echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
7224if test "${ac_cv_func_mkdtemp+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
7234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7235#define mkdtemp innocuous_mkdtemp
7236
7237/* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char mkdtemp (); below.
7239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240 <limits.h> exists even on freestanding compilers. */
7241
7242#ifdef __STDC__
7243# include <limits.h>
7244#else
7245# include <assert.h>
7246#endif
7247
7248#undef mkdtemp
7249
7250/* Override any gcc2 internal prototype to avoid an error. */
7251#ifdef __cplusplus
7252extern "C"
7253{
7254#endif
7255/* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7257char mkdtemp ();
7258/* The GNU C library defines this for functions which it implements
7259 to always fail with ENOSYS. Some functions are actually named
7260 something starting with __ and the normal name is an alias. */
7261#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
7262choke me
7263#else
7264char (*f) () = mkdtemp;
7265#endif
7266#ifdef __cplusplus
7267}
7268#endif
7269
7270int
7271main ()
7272{
7273return f != mkdtemp;
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext conftest$ac_exeext
7279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_func_mkdtemp=yes
7301else
7302 echo "$as_me: failed program was:" >&5
7303sed 's/^/| /' conftest.$ac_ext >&5
7304
7305ac_cv_func_mkdtemp=no
7306fi
7307rm -f conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7309fi
7310echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
7311echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
7312if test $ac_cv_func_mkdtemp = yes; then
7313
7314cat >>confdefs.h <<\_ACEOF
7315#define HAVE_MKDTEMP 1
7316_ACEOF
7317
7318fi
7319
7320
7321# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
7322# needs to be defined for it
7323echo "$as_me:$LINENO: checking for fopen64" >&5
7324echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
7325if test "${bu_cv_have_fopen64+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328 cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h. */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h. */
7334#include <stdio.h>
7335int
7336main ()
7337{
7338FILE *f = fopen64 ("/tmp/foo","r");
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343rm -f conftest.$ac_objext conftest$ac_exeext
7344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest$ac_exeext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 bu_cv_have_fopen64=yes
7366else
7367 echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370saved_CPPFLAGS=$CPPFLAGS
7371 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7372 cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h. */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h. */
7378#include <stdio.h>
7379int
7380main ()
7381{
7382FILE *f = fopen64 ("/tmp/foo","r");
7383 ;
7384 return 0;
7385}
7386_ACEOF
7387rm -f conftest.$ac_objext conftest$ac_exeext
7388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7389 (eval $ac_link) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_c_werror_flag"
7397 || test ! -s conftest.err'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; } &&
7403 { ac_try='test -s conftest$ac_exeext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
7410else
7411 echo "$as_me: failed program was:" >&5
7412sed 's/^/| /' conftest.$ac_ext >&5
7413
7414bu_cv_have_fopen64=no
7415fi
7416rm -f conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
7418 CPPFLAGS=$saved_CPPFLAGS
7419fi
7420rm -f conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7422fi
7423
7424echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
7425echo "${ECHO_T}$bu_cv_have_fopen64" >&6
7426if test "$bu_cv_have_fopen64" != no; then
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define HAVE_FOPEN64 1
7430_ACEOF
7431
7432fi
7433echo "$as_me:$LINENO: checking for stat64" >&5
7434echo $ECHO_N "checking for stat64... $ECHO_C" >&6
7435if test "${bu_cv_have_stat64+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438 cat >conftest.$ac_ext <<_ACEOF
7439/* confdefs.h. */
7440_ACEOF
7441cat confdefs.h >>conftest.$ac_ext
7442cat >>conftest.$ac_ext <<_ACEOF
7443/* end confdefs.h. */
7444#include <sys/stat.h>
7445int
7446main ()
7447{
7448struct stat64 st; stat64 ("/tmp/foo", &st);
7449 ;
7450 return 0;
7451}
7452_ACEOF
7453rm -f conftest.$ac_objext conftest$ac_exeext
7454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455 (eval $ac_link) 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_c_werror_flag"
7463 || test ! -s conftest.err'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; } &&
7469 { ac_try='test -s conftest$ac_exeext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 bu_cv_have_stat64=yes
7476else
7477 echo "$as_me: failed program was:" >&5
7478sed 's/^/| /' conftest.$ac_ext >&5
7479
7480saved_CPPFLAGS=$CPPFLAGS
7481 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7482 cat >conftest.$ac_ext <<_ACEOF
7483/* confdefs.h. */
7484_ACEOF
7485cat confdefs.h >>conftest.$ac_ext
7486cat >>conftest.$ac_ext <<_ACEOF
7487/* end confdefs.h. */
7488#include <sys/stat.h>
7489int
7490main ()
7491{
7492struct stat64 st; stat64 ("/tmp/foo", &st);
7493 ;
7494 return 0;
7495}
7496_ACEOF
7497rm -f conftest.$ac_objext conftest$ac_exeext
7498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499 (eval $ac_link) 2>conftest.er1
7500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -z "$ac_c_werror_flag"
7507 || test ! -s conftest.err'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try='test -s conftest$ac_exeext'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
7520else
7521 echo "$as_me: failed program was:" >&5
7522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524bu_cv_have_stat64=no
7525fi
7526rm -f conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528 CPPFLAGS=$saved_CPPFLAGS
7529fi
7530rm -f conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532fi
7533
7534echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
7535echo "${ECHO_T}$bu_cv_have_stat64" >&6
7536if test "$bu_cv_have_stat64" != no; then
7537
7538cat >>confdefs.h <<\_ACEOF
7539#define HAVE_STAT64 1
7540_ACEOF
7541
7542fi
7543if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
7544 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
7545
7546cat >>confdefs.h <<\_ACEOF
7547#define _LARGEFILE64_SOURCE 1
7548_ACEOF
7549
7550 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7551fi
7552
7553# Some systems have frexp only in -lm, not in -lc.
7554echo "$as_me:$LINENO: checking for library containing frexp" >&5
7555echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
7556if test "${ac_cv_search_frexp+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559 ac_func_search_save_LIBS=$LIBS
7560ac_cv_search_frexp=no
7561cat >conftest.$ac_ext <<_ACEOF
7562/* confdefs.h. */
7563_ACEOF
7564cat confdefs.h >>conftest.$ac_ext
7565cat >>conftest.$ac_ext <<_ACEOF
7566/* end confdefs.h. */
7567
7568/* Override any gcc2 internal prototype to avoid an error. */
7569#ifdef __cplusplus
7570extern "C"
7571#endif
7572/* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7574char frexp ();
7575int
7576main ()
7577{
7578frexp ();
7579 ;
7580 return 0;
7581}
7582_ACEOF
7583rm -f conftest.$ac_objext conftest$ac_exeext
7584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585 (eval $ac_link) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest$ac_exeext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_search_frexp="none required"
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610fi
7611rm -f conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613if test "$ac_cv_search_frexp" = no; then
7614 for ac_lib in m; do
7615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7616 cat >conftest.$ac_ext <<_ACEOF
7617/* confdefs.h. */
7618_ACEOF
7619cat confdefs.h >>conftest.$ac_ext
7620cat >>conftest.$ac_ext <<_ACEOF
7621/* end confdefs.h. */
7622
7623/* Override any gcc2 internal prototype to avoid an error. */
7624#ifdef __cplusplus
7625extern "C"
7626#endif
7627/* We use char because int might match the return type of a gcc2
7628 builtin and then its argument prototype would still apply. */
7629char frexp ();
7630int
7631main ()
7632{
7633frexp ();
7634 ;
7635 return 0;
7636}
7637_ACEOF
7638rm -f conftest.$ac_objext conftest$ac_exeext
7639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7640 (eval $ac_link) 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -z "$ac_c_werror_flag"
7648 || test ! -s conftest.err'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } &&
7654 { ac_try='test -s conftest$ac_exeext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 ac_cv_search_frexp="-l$ac_lib"
7661break
7662else
7663 echo "$as_me: failed program was:" >&5
7664sed 's/^/| /' conftest.$ac_ext >&5
7665
7666fi
7667rm -f conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 done
7670fi
7671LIBS=$ac_func_search_save_LIBS
7672fi
7673echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
7674echo "${ECHO_T}$ac_cv_search_frexp" >&6
7675if test "$ac_cv_search_frexp" != no; then
7676 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
7677
7678fi
7679
7680
7681echo "$as_me:$LINENO: checking for time_t in time.h" >&5
7682echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
7683if test "${bu_cv_decl_time_t_time_h+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686 cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h. */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h. */
7692#include <time.h>
7693int
7694main ()
7695{
7696time_t i;
7697 ;
7698 return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext
7702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 bu_cv_decl_time_t_time_h=yes
7724else
7725 echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728bu_cv_decl_time_t_time_h=no
7729fi
7730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731fi
7732
7733echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
7734echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
7735if test $bu_cv_decl_time_t_time_h = yes; then
7736
7737cat >>confdefs.h <<\_ACEOF
7738#define HAVE_TIME_T_IN_TIME_H 1
7739_ACEOF
7740
7741fi
7742
7743echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
7744echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
7745if test "${bu_cv_decl_time_t_types_h+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 cat >conftest.$ac_ext <<_ACEOF
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h. */
7754#include <sys/types.h>
7755int
7756main ()
7757{
7758time_t i;
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763rm -f conftest.$ac_objext
7764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 bu_cv_decl_time_t_types_h=yes
7786else
7787 echo "$as_me: failed program was:" >&5
7788sed 's/^/| /' conftest.$ac_ext >&5
7789
7790bu_cv_decl_time_t_types_h=no
7791fi
7792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7793fi
7794
7795echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
7796echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
7797if test $bu_cv_decl_time_t_types_h = yes; then
7798
7799cat >>confdefs.h <<\_ACEOF
7800#define HAVE_TIME_T_IN_TYPES_H 1
7801_ACEOF
7802
7803fi
7804
7805echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
7806echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
7807if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809else
7810 cat >conftest.$ac_ext <<_ACEOF
7811/* confdefs.h. */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
7815/* end confdefs.h. */
7816#include <unistd.h>
7817int
7818main ()
7819{
7820extern int getopt (int, char *const*, const char *);
7821 ;
7822 return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext
7826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827 (eval $ac_compile) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest.$ac_objext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 bu_cv_decl_getopt_unistd_h=yes
7848else
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852bu_cv_decl_getopt_unistd_h=no
7853fi
7854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7855fi
7856
7857echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
7858echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
7859if test $bu_cv_decl_getopt_unistd_h = yes; then
7860
7861cat >>confdefs.h <<\_ACEOF
7862#define HAVE_DECL_GETOPT 1
7863_ACEOF
7864
7865fi
7866
7867# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
7868# by default.
7869echo "$as_me:$LINENO: checking for utime.h" >&5
7870echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
7871if test "${bu_cv_header_utime_h+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874 cat >conftest.$ac_ext <<_ACEOF
7875/* confdefs.h. */
7876_ACEOF
7877cat confdefs.h >>conftest.$ac_ext
7878cat >>conftest.$ac_ext <<_ACEOF
7879/* end confdefs.h. */
7880#include <sys/types.h>
7881#ifdef HAVE_TIME_H
7882#include <time.h>
7883#endif
7884#include <utime.h>
7885int
7886main ()
7887{
7888struct utimbuf s;
7889 ;
7890 return 0;
7891}
7892_ACEOF
7893rm -f conftest.$ac_objext
7894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 bu_cv_header_utime_h=yes
7916else
7917 echo "$as_me: failed program was:" >&5
7918sed 's/^/| /' conftest.$ac_ext >&5
7919
7920bu_cv_header_utime_h=no
7921fi
7922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923fi
7924
7925echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
7926echo "${ECHO_T}$bu_cv_header_utime_h" >&6
7927if test $bu_cv_header_utime_h = yes; then
7928
7929cat >>confdefs.h <<\_ACEOF
7930#define HAVE_GOOD_UTIME_H 1
7931_ACEOF
7932
7933fi
7934
7935echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
7936echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
7937if test "${ac_cv_have_decl_fprintf+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946$ac_includes_default
7947int
7948main ()
7949{
7950#ifndef fprintf
7951 char *p = (char *) fprintf;
7952#endif
7953
7954 ;
7955 return 0;
7956}
7957_ACEOF
7958rm -f conftest.$ac_objext
7959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest.$ac_objext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_have_decl_fprintf=yes
7981else
7982 echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985ac_cv_have_decl_fprintf=no
7986fi
7987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7988fi
7989echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
7990echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
7991if test $ac_cv_have_decl_fprintf = yes; then
7992
7993cat >>confdefs.h <<_ACEOF
7994#define HAVE_DECL_FPRINTF 1
7995_ACEOF
7996
7997
7998else
7999 cat >>confdefs.h <<_ACEOF
8000#define HAVE_DECL_FPRINTF 0
8001_ACEOF
8002
8003
8004fi
8005echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8006echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8007if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010 cat >conftest.$ac_ext <<_ACEOF
8011/* confdefs.h. */
8012_ACEOF
8013cat confdefs.h >>conftest.$ac_ext
8014cat >>conftest.$ac_ext <<_ACEOF
8015/* end confdefs.h. */
8016$ac_includes_default
8017int
8018main ()
8019{
8020#ifndef stpcpy
8021 char *p = (char *) stpcpy;
8022#endif
8023
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext
8029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag"
8038 || test ! -s conftest.err'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 (eval $ac_try) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest.$ac_objext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 ac_cv_have_decl_stpcpy=yes
8051else
8052 echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
8054
8055ac_cv_have_decl_stpcpy=no
8056fi
8057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8058fi
8059echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8060echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8061if test $ac_cv_have_decl_stpcpy = yes; then
8062
8063cat >>confdefs.h <<_ACEOF
8064#define HAVE_DECL_STPCPY 1
8065_ACEOF
8066
8067
8068else
8069 cat >>confdefs.h <<_ACEOF
8070#define HAVE_DECL_STPCPY 0
8071_ACEOF
8072
8073
8074fi
8075echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8076echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8077if test "${ac_cv_have_decl_strstr+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080 cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h. */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h. */
8086$ac_includes_default
8087int
8088main ()
8089{
8090#ifndef strstr
8091 char *p = (char *) strstr;
8092#endif
8093
8094 ;
8095 return 0;
8096}
8097_ACEOF
8098rm -f conftest.$ac_objext
8099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100 (eval $ac_compile) 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag"
8108 || test ! -s conftest.err'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest.$ac_objext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_have_decl_strstr=yes
8121else
8122 echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
8124
8125ac_cv_have_decl_strstr=no
8126fi
8127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128fi
8129echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8130echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8131if test $ac_cv_have_decl_strstr = yes; then
8132
8133cat >>confdefs.h <<_ACEOF
8134#define HAVE_DECL_STRSTR 1
8135_ACEOF
8136
8137
8138else
8139 cat >>confdefs.h <<_ACEOF
8140#define HAVE_DECL_STRSTR 0
8141_ACEOF
8142
8143
8144fi
8145echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8146echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8147if test "${ac_cv_have_decl_sbrk+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149else
8150 cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156$ac_includes_default
8157int
8158main ()
8159{
8160#ifndef sbrk
8161 char *p = (char *) sbrk;
8162#endif
8163
8164 ;
8165 return 0;
8166}
8167_ACEOF
8168rm -f conftest.$ac_objext
8169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_have_decl_sbrk=yes
8191else
8192 echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195ac_cv_have_decl_sbrk=no
8196fi
8197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8200echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8201if test $ac_cv_have_decl_sbrk = yes; then
8202
8203cat >>confdefs.h <<_ACEOF
8204#define HAVE_DECL_SBRK 1
8205_ACEOF
8206
8207
8208else
8209 cat >>confdefs.h <<_ACEOF
8210#define HAVE_DECL_SBRK 0
8211_ACEOF
8212
8213
8214fi
8215echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8216echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8217if test "${ac_cv_have_decl_getenv+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220 cat >conftest.$ac_ext <<_ACEOF
8221/* confdefs.h. */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h. */
8226$ac_includes_default
8227int
8228main ()
8229{
8230#ifndef getenv
8231 char *p = (char *) getenv;
8232#endif
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238rm -f conftest.$ac_objext
8239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240 (eval $ac_compile) 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -z "$ac_c_werror_flag"
8248 || test ! -s conftest.err'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_have_decl_getenv=yes
8261else
8262 echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
8265ac_cv_have_decl_getenv=no
8266fi
8267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8268fi
8269echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8270echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8271if test $ac_cv_have_decl_getenv = yes; then
8272
8273cat >>confdefs.h <<_ACEOF
8274#define HAVE_DECL_GETENV 1
8275_ACEOF
8276
8277
8278else
8279 cat >>confdefs.h <<_ACEOF
8280#define HAVE_DECL_GETENV 0
8281_ACEOF
8282
8283
8284fi
8285echo "$as_me:$LINENO: checking whether environ is declared" >&5
8286echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
8287if test "${ac_cv_have_decl_environ+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289else
8290 cat >conftest.$ac_ext <<_ACEOF
8291/* confdefs.h. */
8292_ACEOF
8293cat confdefs.h >>conftest.$ac_ext
8294cat >>conftest.$ac_ext <<_ACEOF
8295/* end confdefs.h. */
8296$ac_includes_default
8297int
8298main ()
8299{
8300#ifndef environ
8301 char *p = (char *) environ;
8302#endif
8303
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308rm -f conftest.$ac_objext
8309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8310 (eval $ac_compile) 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest.$ac_objext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_have_decl_environ=yes
8331else
8332 echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335ac_cv_have_decl_environ=no
8336fi
8337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8338fi
8339echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
8340echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
8341if test $ac_cv_have_decl_environ = yes; then
8342
8343cat >>confdefs.h <<_ACEOF
8344#define HAVE_DECL_ENVIRON 1
8345_ACEOF
8346
8347
8348else
8349 cat >>confdefs.h <<_ACEOF
8350#define HAVE_DECL_ENVIRON 0
8351_ACEOF
8352
8353
8354fi
8355echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8356echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8357if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360 cat >conftest.$ac_ext <<_ACEOF
8361/* confdefs.h. */
8362_ACEOF
8363cat confdefs.h >>conftest.$ac_ext
8364cat >>conftest.$ac_ext <<_ACEOF
8365/* end confdefs.h. */
8366$ac_includes_default
8367int
8368main ()
8369{
8370#ifndef getc_unlocked
8371 char *p = (char *) getc_unlocked;
8372#endif
8373
8374 ;
8375 return 0;
8376}
8377_ACEOF
8378rm -f conftest.$ac_objext
8379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380 (eval $ac_compile) 2>conftest.er1
8381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag"
8388 || test ! -s conftest.err'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest.$ac_objext'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 ac_cv_have_decl_getc_unlocked=yes
8401else
8402 echo "$as_me: failed program was:" >&5
8403sed 's/^/| /' conftest.$ac_ext >&5
8404
8405ac_cv_have_decl_getc_unlocked=no
8406fi
8407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8408fi
8409echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8410echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8411if test $ac_cv_have_decl_getc_unlocked = yes; then
8412
8413cat >>confdefs.h <<_ACEOF
8414#define HAVE_DECL_GETC_UNLOCKED 1
8415_ACEOF
8416
8417
8418else
8419 cat >>confdefs.h <<_ACEOF
8420#define HAVE_DECL_GETC_UNLOCKED 0
8421_ACEOF
8422
8423
8424fi
8425echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8426echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
8427if test "${ac_cv_have_decl_snprintf+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h. */
8436$ac_includes_default
8437int
8438main ()
8439{
8440#ifndef snprintf
8441 char *p = (char *) snprintf;
8442#endif
8443
8444 ;
8445 return 0;
8446}
8447_ACEOF
8448rm -f conftest.$ac_objext
8449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_have_decl_snprintf=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475ac_cv_have_decl_snprintf=no
8476fi
8477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478fi
8479echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8480echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
8481if test $ac_cv_have_decl_snprintf = yes; then
8482
8483cat >>confdefs.h <<_ACEOF
8484#define HAVE_DECL_SNPRINTF 1
8485_ACEOF
8486
8487
8488else
8489 cat >>confdefs.h <<_ACEOF
8490#define HAVE_DECL_SNPRINTF 0
8491_ACEOF
8492
8493
8494fi
8495echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8496echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8497if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500 cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506$ac_includes_default
8507int
8508main ()
8509{
8510#ifndef vsnprintf
8511 char *p = (char *) vsnprintf;
8512#endif
8513
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518rm -f conftest.$ac_objext
8519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag"
8528 || test ! -s conftest.err'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest.$ac_objext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 ac_cv_have_decl_vsnprintf=yes
8541else
8542 echo "$as_me: failed program was:" >&5
8543sed 's/^/| /' conftest.$ac_ext >&5
8544
8545ac_cv_have_decl_vsnprintf=no
8546fi
8547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8548fi
8549echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8550echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8551if test $ac_cv_have_decl_vsnprintf = yes; then
8552
8553cat >>confdefs.h <<_ACEOF
8554#define HAVE_DECL_VSNPRINTF 1
8555_ACEOF
8556
8557
8558else
8559 cat >>confdefs.h <<_ACEOF
8560#define HAVE_DECL_VSNPRINTF 0
8561_ACEOF
8562
8563
8564fi
8565
8566
8567
8568
8569case "${host}" in
8570*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8571
8572cat >>confdefs.h <<\_ACEOF
8573#define USE_BINARY_FOPEN 1
8574_ACEOF
8575 ;;
8576esac
8577
8578# target-specific stuff:
8579
8580# Canonicalize the secondary target names.
8581if test -n "$enable_targets"; then
8582 for targ in `echo $enable_targets | sed 's/,/ /g'`
8583 do
8584 result=`$ac_config_sub $targ 2>/dev/null`
8585 if test -n "$result"; then
8586 canon_targets="$canon_targets $result"
8587 else
8588 # Allow targets that config.sub doesn't recognize, like "all".
8589 canon_targets="$canon_targets $targ"
8590 fi
8591 done
8592fi
8593
8594all_targets=false
8595BUILD_NLMCONV=
8596NLMCONV_DEFS=
8597BUILD_SRCONV=
8598BUILD_DLLTOOL=
8599DLLTOOL_DEFS=
8600DLLTOOL_DEFAULT=
8601BUILD_WINDRES=
8602BUILD_DLLWRAP=
8603BUILD_MISC=
8604BUILD_INSTALL_MISC=
8605OBJDUMP_DEFS=
8606
8607for targ in $target $canon_targets
8608do
8609 if test "x$targ" = "xall"; then
8610 all_targets=true
8611 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8612 BUILD_SRCONV='$(SRCONV_PROG)'
8613 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
8614 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
8615 else
8616 case $targ in
8617 i[3-7]86*-*-netware*)
8618 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8619 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
8620 ;;
8621 alpha*-*-netware*)
8622 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8623 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
8624 ;;
8625 powerpc*-*-netware*)
8626 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8627 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
8628 ;;
8629 sparc*-*-netware*)
8630 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8631 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
8632 ;;
8633 esac
8634 case $targ in
8635 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
8636 esac
8637 case $targ in
8638 arm-epoc-pe*)
8639 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8640 if test -z "$DLLTOOL_DEFAULT"; then
8641 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
8642 fi
8643 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
8644 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8645 ;;
8646 arm-wince-pe* | arm-*-wince)
8647 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8648 if test -z "$DLLTOOL_DEFAULT"; then
8649 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
8650 fi
8651 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
8652 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8653 ;;
8654 arm-*-pe*)
8655 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8656 if test -z "$DLLTOOL_DEFAULT"; then
8657 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8658 fi
8659 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8660 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8661 ;;
8662 thumb-*-pe*)
8663 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8664 if test -z "$DLLTOOL_DEFAULT"; then
8665 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8666 fi
8667 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8668 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8669 ;;
8670 x86_64-*-mingw*)
8671 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8672 if test -z "$DLLTOOL_DEFAULT"; then
8673 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
8674 fi
8675 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
8676 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8677 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
8678 ;;
8679 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
8680 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8681 if test -z "$DLLTOOL_DEFAULT"; then
8682 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8683 fi
8684 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8685 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8686 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
8687 ;;
8688 i[3-7]86-*-interix)
8689 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
8690 if test -z "$DLLTOOL_DEFAULT"; then
8691 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8692 fi
8693 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8694 ;;
8695 powerpc*-aix5.[01])
8696 ;;
8697 powerpc*-aix5.*)
8698 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
8699 ;;
8700 powerpc*-*-pe* | powerpc*-*-cygwin*)
8701 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8702 if test -z "$DLLTOOL_DEFAULT"; then
8703 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
8704 fi
8705 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
8706 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8707 ;;
8708 powerpc*-*-linux* | powerpc*-*-elf*)
8709 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
8710 ;;
8711 sh*-*-pe)
8712 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8713 if test -z "$DLLTOOL_DEFAULT"; then
8714 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
8715 fi
8716 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
8717 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8718 ;;
8719 spu-*-*)
8720 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
8721 ;;
8722 mips*-*-pe)
8723 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8724 if test -z "$DLLTOOL_DEFAULT"; then
8725 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
8726 fi
8727 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
8728 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8729 ;;
8730 mcore-*-pe)
8731 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8732 if test -z "$DLLTOOL_DEFAULT"; then
8733 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
8734 fi
8735 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
8736 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8737 ;;
8738 mcore-*-elf)
8739 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8740 if test -z "$DLLTOOL_DEFAULT"; then
8741 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
8742 fi
8743 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
8744 ;;
8745 mep-*)
8746 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
8747 ;;
8748 esac
8749 fi
8750done
8751
8752DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
8753
8754if test "${with_windres+set}" = set; then
8755 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8756fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770cat >>confdefs.h <<_ACEOF
8771#define TARGET "${target}"
8772_ACEOF
8773
8774
8775targ=$target
8776. $srcdir/../bfd/config.bfd
8777if test "x$targ_underscore" = "xyes"; then
8778 UNDERSCORE=1
8779else
8780 UNDERSCORE=0
8781fi
8782
8783cat >>confdefs.h <<_ACEOF
8784#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
8785_ACEOF
8786
8787
8788# Emulation
8789for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8790do
8791 # Canonicalize the secondary target names.
8792 result=`$ac_config_sub $targ_alias 2>/dev/null`
8793 if test -n "$result"; then
8794 targ=$result
8795 else
8796 targ=$targ_alias
8797 fi
8798
8799 . ${srcdir}/configure.tgt
8800
8801 EMULATION=$targ_emul
8802 EMULATION_VECTOR=$targ_emul_vector
8803done
8804
8805
8806
8807
8808# Required for html and install-html
8809
8810
8811
8812
8813 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
8814cat >confcache <<\_ACEOF
8815# This file is a shell script that caches the results of configure
8816# tests run on this system so they can be shared between configure
8817# scripts and configure runs, see configure's option --config-cache.
8818# It is not useful on other systems. If it contains results you don't
8819# want to keep, you may remove or edit it.
8820#
8821# config.status only pays attention to the cache file if you give it
8822# the --recheck option to rerun configure.
8823#
8824# `ac_cv_env_foo' variables (set or unset) will be overridden when
8825# loading this file, other *unset* `ac_cv_foo' will be assigned the
8826# following values.
8827
8828_ACEOF
8829
8830# The following way of writing the cache mishandles newlines in values,
8831# but we know of no workaround that is simple, portable, and efficient.
8832# So, don't put newlines in cache variables' values.
8833# Ultrix sh set writes to stderr and can't be redirected directly,
8834# and sets the high bit in the cache file unless we assign to the vars.
8835{
8836 (set) 2>&1 |
8837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8838 *ac_space=\ *)
8839 # `set' does not quote correctly, so add quotes (double-quote
8840 # substitution turns \\\\ into \\, and sed turns \\ into \).
8841 sed -n \
8842 "s/'/'\\\\''/g;
8843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8844 ;;
8845 *)
8846 # `set' quotes correctly as required by POSIX, so do not add quotes.
8847 sed -n \
8848 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8849 ;;
8850 esac;
8851} |
8852 sed '
8853 t clear
8854 : clear
8855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8856 t end
8857 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8858 : end' >>confcache
8859if diff $cache_file confcache >/dev/null 2>&1; then :; else
8860 if test -w $cache_file; then
8861 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8862 cat confcache >$cache_file
8863 else
8864 echo "not updating unwritable cache $cache_file"
8865 fi
8866fi
8867rm -f confcache
8868
8869test "x$prefix" = xNONE && prefix=$ac_default_prefix
8870# Let make expand exec_prefix.
8871test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8872
8873# VPATH may cause trouble with some makes, so we remove $(srcdir),
8874# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8875# trailing colons and then remove the whole line if VPATH becomes empty
8876# (actually we leave an empty line to preserve line numbers).
8877if test "x$srcdir" = x.; then
8878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8879s/:*\$(srcdir):*/:/;
8880s/:*\${srcdir}:*/:/;
8881s/:*@srcdir@:*/:/;
8882s/^\([^=]*=[ ]*\):*/\1/;
8883s/:*$//;
8884s/^[^=]*=[ ]*$//;
8885}'
8886fi
8887
8888DEFS=-DHAVE_CONFIG_H
8889
8890ac_libobjs=
8891ac_ltlibobjs=
8892for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8893 # 1. Remove the extension, and $U if already installed.
8894 ac_i=`echo "$ac_i" |
8895 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8896 # 2. Add them.
8897 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8898 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8899done
8900LIBOBJS=$ac_libobjs
8901
8902LTLIBOBJS=$ac_ltlibobjs
8903
8904
8905if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8906 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8907Usually this means the macro was only invoked conditionally." >&5
8908echo "$as_me: error: conditional \"AMDEP\" was never defined.
8909Usually this means the macro was only invoked conditionally." >&2;}
8910 { (exit 1); exit 1; }; }
8911fi
8912if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8913 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8914Usually this means the macro was only invoked conditionally." >&5
8915echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8916Usually this means the macro was only invoked conditionally." >&2;}
8917 { (exit 1); exit 1; }; }
8918fi
8919if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8920 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8921Usually this means the macro was only invoked conditionally." >&5
8922echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8923Usually this means the macro was only invoked conditionally." >&2;}
8924 { (exit 1); exit 1; }; }
8925fi
8926if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
8927 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
8928Usually this means the macro was only invoked conditionally." >&5
8929echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
8930Usually this means the macro was only invoked conditionally." >&2;}
8931 { (exit 1); exit 1; }; }
8932fi
8933
8934: ${CONFIG_STATUS=./config.status}
8935ac_clean_files_save=$ac_clean_files
8936ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8937{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8938echo "$as_me: creating $CONFIG_STATUS" >&6;}
8939cat >$CONFIG_STATUS <<_ACEOF
8940#! $SHELL
8941# Generated by $as_me.
8942# Run this file to recreate the current configuration.
8943# Compiler output produced by configure, useful for debugging
8944# configure, is in config.log if it exists.
8945
8946debug=false
8947ac_cs_recheck=false
8948ac_cs_silent=false
8949SHELL=\${CONFIG_SHELL-$SHELL}
8950_ACEOF
8951
8952cat >>$CONFIG_STATUS <<\_ACEOF
8953## --------------------- ##
8954## M4sh Initialization. ##
8955## --------------------- ##
8956
8957# Be Bourne compatible
8958if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8959 emulate sh
8960 NULLCMD=:
8961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8962 # is contrary to our usage. Disable this feature.
8963 alias -g '${1+"$@"}'='"$@"'
8964elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8965 set -o posix
8966fi
8967DUALCASE=1; export DUALCASE # for MKS sh
8968
8969# Support unset when possible.
8970if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8971 as_unset=unset
8972else
8973 as_unset=false
8974fi
8975
8976
8977# Work around bugs in pre-3.0 UWIN ksh.
8978$as_unset ENV MAIL MAILPATH
8979PS1='$ '
8980PS2='> '
8981PS4='+ '
8982
8983# NLS nuisances.
8984for as_var in \
8985 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8986 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8987 LC_TELEPHONE LC_TIME
8988do
8989 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8990 eval $as_var=C; export $as_var
8991 else
8992 $as_unset $as_var
8993 fi
8994done
8995
8996# Required to use basename.
8997if expr a : '\(a\)' >/dev/null 2>&1; then
8998 as_expr=expr
8999else
9000 as_expr=false
9001fi
9002
9003if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9004 as_basename=basename
9005else
9006 as_basename=false
9007fi
9008
9009
9010# Name of the executable.
9011as_me=`$as_basename "$0" ||
9012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9013 X"$0" : 'X\(//\)$' \| \
9014 X"$0" : 'X\(/\)$' \| \
9015 . : '\(.\)' 2>/dev/null ||
9016echo X/"$0" |
9017 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9018 /^X\/\(\/\/\)$/{ s//\1/; q; }
9019 /^X\/\(\/\).*/{ s//\1/; q; }
9020 s/.*/./; q'`
9021
9022
9023# PATH needs CR, and LINENO needs CR and PATH.
9024# Avoid depending upon Character Ranges.
9025as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9026as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9027as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9028as_cr_digits='0123456789'
9029as_cr_alnum=$as_cr_Letters$as_cr_digits
9030
9031# The user is always right.
9032if test "${PATH_SEPARATOR+set}" != set; then
9033 echo "#! /bin/sh" >conf$$.sh
9034 echo "exit 0" >>conf$$.sh
9035 chmod +x conf$$.sh
9036 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9037 PATH_SEPARATOR=';'
9038 else
9039 PATH_SEPARATOR=:
9040 fi
9041 rm -f conf$$.sh
9042fi
9043
9044
9045 as_lineno_1=$LINENO
9046 as_lineno_2=$LINENO
9047 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9048 test "x$as_lineno_1" != "x$as_lineno_2" &&
9049 test "x$as_lineno_3" = "x$as_lineno_2" || {
9050 # Find who we are. Look in the path if we contain no path at all
9051 # relative or not.
9052 case $0 in
9053 *[\\/]* ) as_myself=$0 ;;
9054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055for as_dir in $PATH
9056do
9057 IFS=$as_save_IFS
9058 test -z "$as_dir" && as_dir=.
9059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9060done
9061
9062 ;;
9063 esac
9064 # We did not find ourselves, most probably we were run as `sh COMMAND'
9065 # in which case we are not to be found in the path.
9066 if test "x$as_myself" = x; then
9067 as_myself=$0
9068 fi
9069 if test ! -f "$as_myself"; then
9070 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9071echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9072 { (exit 1); exit 1; }; }
9073 fi
9074 case $CONFIG_SHELL in
9075 '')
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9078do
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for as_base in sh bash ksh sh5; do
9082 case $as_dir in
9083 /*)
9084 if ("$as_dir/$as_base" -c '
9085 as_lineno_1=$LINENO
9086 as_lineno_2=$LINENO
9087 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9088 test "x$as_lineno_1" != "x$as_lineno_2" &&
9089 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9090 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9091 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9092 CONFIG_SHELL=$as_dir/$as_base
9093 export CONFIG_SHELL
9094 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9095 fi;;
9096 esac
9097 done
9098done
9099;;
9100 esac
9101
9102 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9103 # uniformly replaced by the line number. The first 'sed' inserts a
9104 # line-number line before each line; the second 'sed' does the real
9105 # work. The second script uses 'N' to pair each line-number line
9106 # with the numbered line, and appends trailing '-' during
9107 # substitution so that $LINENO is not a special case at line end.
9108 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9109 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9110 sed '=' <$as_myself |
9111 sed '
9112 N
9113 s,$,-,
9114 : loop
9115 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9116 t loop
9117 s,-$,,
9118 s,^['$as_cr_digits']*\n,,
9119 ' >$as_me.lineno &&
9120 chmod +x $as_me.lineno ||
9121 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9122echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9123 { (exit 1); exit 1; }; }
9124
9125 # Don't try to exec as it changes $[0], causing all sort of problems
9126 # (the dirname of $[0] is not the place where we might find the
9127 # original and so on. Autoconf is especially sensible to this).
9128 . ./$as_me.lineno
9129 # Exit status is that of the last command.
9130 exit
9131}
9132
9133
9134case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9135 *c*,-n*) ECHO_N= ECHO_C='
9136' ECHO_T=' ' ;;
9137 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9138 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9139esac
9140
9141if expr a : '\(a\)' >/dev/null 2>&1; then
9142 as_expr=expr
9143else
9144 as_expr=false
9145fi
9146
9147rm -f conf$$ conf$$.exe conf$$.file
9148echo >conf$$.file
9149if ln -s conf$$.file conf$$ 2>/dev/null; then
9150 # We could just check for DJGPP; but this test a) works b) is more generic
9151 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9152 if test -f conf$$.exe; then
9153 # Don't use ln at all; we don't have any links
9154 as_ln_s='cp -p'
9155 else
9156 as_ln_s='ln -s'
9157 fi
9158elif ln conf$$.file conf$$ 2>/dev/null; then
9159 as_ln_s=ln
9160else
9161 as_ln_s='cp -p'
9162fi
9163rm -f conf$$ conf$$.exe conf$$.file
9164
9165if mkdir -p . 2>/dev/null; then
9166 as_mkdir_p=:
9167else
9168 test -d ./-p && rmdir ./-p
9169 as_mkdir_p=false
9170fi
9171
9172as_executable_p="test -f"
9173
9174# Sed expression to map a string onto a valid CPP name.
9175as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9176
9177# Sed expression to map a string onto a valid variable name.
9178as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9179
9180
9181# IFS
9182# We need space, tab and new line, in precisely that order.
9183as_nl='
9184'
9185IFS=" $as_nl"
9186
9187# CDPATH.
9188$as_unset CDPATH
9189
9190exec 6>&1
9191
9192# Open the log real soon, to keep \$[0] and so on meaningful, and to
9193# report actual input values of CONFIG_FILES etc. instead of their
9194# values after options handling. Logging --version etc. is OK.
9195exec 5>>config.log
9196{
9197 echo
9198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9199## Running $as_me. ##
9200_ASBOX
9201} >&5
9202cat >&5 <<_CSEOF
9203
9204This file was extended by $as_me, which was
9205generated by GNU Autoconf 2.59. Invocation command line was
9206
9207 CONFIG_FILES = $CONFIG_FILES
9208 CONFIG_HEADERS = $CONFIG_HEADERS
9209 CONFIG_LINKS = $CONFIG_LINKS
9210 CONFIG_COMMANDS = $CONFIG_COMMANDS
9211 $ $0 $@
9212
9213_CSEOF
9214echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9215echo >&5
9216_ACEOF
9217
9218# Files that config.status was made for.
9219if test -n "$ac_config_files"; then
9220 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9221fi
9222
9223if test -n "$ac_config_headers"; then
9224 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9225fi
9226
9227if test -n "$ac_config_links"; then
9228 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9229fi
9230
9231if test -n "$ac_config_commands"; then
9232 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9233fi
9234
9235cat >>$CONFIG_STATUS <<\_ACEOF
9236
9237ac_cs_usage="\
9238\`$as_me' instantiates files from templates according to the
9239current configuration.
9240
9241Usage: $0 [OPTIONS] [FILE]...
9242
9243 -h, --help print this help, then exit
9244 -V, --version print version number, then exit
9245 -q, --quiet do not print progress messages
9246 -d, --debug don't remove temporary files
9247 --recheck update $as_me by reconfiguring in the same conditions
9248 --file=FILE[:TEMPLATE]
9249 instantiate the configuration file FILE
9250 --header=FILE[:TEMPLATE]
9251 instantiate the configuration header FILE
9252
9253Configuration files:
9254$config_files
9255
9256Configuration headers:
9257$config_headers
9258
9259Configuration commands:
9260$config_commands
9261
9262Report bugs to <bug-autoconf@gnu.org>."
9263_ACEOF
9264
9265cat >>$CONFIG_STATUS <<_ACEOF
9266ac_cs_version="\\
9267config.status
9268configured by $0, generated by GNU Autoconf 2.59,
9269 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9270
9271Copyright (C) 2003 Free Software Foundation, Inc.
9272This config.status script is free software; the Free Software Foundation
9273gives unlimited permission to copy, distribute and modify it."
9274srcdir=$srcdir
9275INSTALL="$INSTALL"
9276_ACEOF
9277
9278cat >>$CONFIG_STATUS <<\_ACEOF
9279# If no file are specified by the user, then we need to provide default
9280# value. By we need to know if files were specified by the user.
9281ac_need_defaults=:
9282while test $# != 0
9283do
9284 case $1 in
9285 --*=*)
9286 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9287 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9288 ac_shift=:
9289 ;;
9290 -*)
9291 ac_option=$1
9292 ac_optarg=$2
9293 ac_shift=shift
9294 ;;
9295 *) # This is not an option, so the user has probably given explicit
9296 # arguments.
9297 ac_option=$1
9298 ac_need_defaults=false;;
9299 esac
9300
9301 case $ac_option in
9302 # Handling of the options.
9303_ACEOF
9304cat >>$CONFIG_STATUS <<\_ACEOF
9305 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9306 ac_cs_recheck=: ;;
9307 --version | --vers* | -V )
9308 echo "$ac_cs_version"; exit 0 ;;
9309 --he | --h)
9310 # Conflict between --help and --header
9311 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9312Try \`$0 --help' for more information." >&5
9313echo "$as_me: error: ambiguous option: $1
9314Try \`$0 --help' for more information." >&2;}
9315 { (exit 1); exit 1; }; };;
9316 --help | --hel | -h )
9317 echo "$ac_cs_usage"; exit 0 ;;
9318 --debug | --d* | -d )
9319 debug=: ;;
9320 --file | --fil | --fi | --f )
9321 $ac_shift
9322 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9323 ac_need_defaults=false;;
9324 --header | --heade | --head | --hea )
9325 $ac_shift
9326 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9327 ac_need_defaults=false;;
9328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9329 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9330 ac_cs_silent=: ;;
9331
9332 # This is an error.
9333 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9334Try \`$0 --help' for more information." >&5
9335echo "$as_me: error: unrecognized option: $1
9336Try \`$0 --help' for more information." >&2;}
9337 { (exit 1); exit 1; }; } ;;
9338
9339 *) ac_config_targets="$ac_config_targets $1" ;;
9340
9341 esac
9342 shift
9343done
9344
9345ac_configure_extra_args=
9346
9347if $ac_cs_silent; then
9348 exec 6>/dev/null
9349 ac_configure_extra_args="$ac_configure_extra_args --silent"
9350fi
9351
9352_ACEOF
9353cat >>$CONFIG_STATUS <<_ACEOF
9354if \$ac_cs_recheck; then
9355 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9356 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9357fi
9358
9359_ACEOF
9360
9361cat >>$CONFIG_STATUS <<_ACEOF
9362#
9363# INIT-COMMANDS section.
9364#
9365
9366AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9367# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9368 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9369 # from automake.
9370 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9371 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9372 LINGUAS="${LINGUAS-%UNSET%}"
9373
9374
9375_ACEOF
9376
9377
9378
9379cat >>$CONFIG_STATUS <<\_ACEOF
9380for ac_config_target in $ac_config_targets
9381do
9382 case "$ac_config_target" in
9383 # Handling of arguments.
9384 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9385 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9386 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9387 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9388 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9389 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9391echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9392 { (exit 1); exit 1; }; };;
9393 esac
9394done
9395
9396# If the user did not use the arguments to specify the items to instantiate,
9397# then the envvar interface is used. Set only those that are not.
9398# We use the long form for the default assignment because of an extremely
9399# bizarre bug on SunOS 4.1.3.
9400if $ac_need_defaults; then
9401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9404fi
9405
9406# Have a temporary directory for convenience. Make it in the build tree
9407# simply because there is no reason to put it here, and in addition,
9408# creating and moving files from /tmp can sometimes cause problems.
9409# Create a temporary directory, and hook for its removal unless debugging.
9410$debug ||
9411{
9412 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9413 trap '{ (exit 1); exit 1; }' 1 2 13 15
9414}
9415
9416# Create a (secure) tmp directory for tmp files.
9417
9418{
9419 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9420 test -n "$tmp" && test -d "$tmp"
9421} ||
9422{
9423 tmp=./confstat$$-$RANDOM
9424 (umask 077 && mkdir $tmp)
9425} ||
9426{
9427 echo "$me: cannot create a temporary directory in ." >&2
9428 { (exit 1); exit 1; }
9429}
9430
9431_ACEOF
9432
9433cat >>$CONFIG_STATUS <<_ACEOF
9434
9435#
9436# CONFIG_FILES section.
9437#
9438
9439# No need to generate the scripts if there are no CONFIG_FILES.
9440# This happens for instance when ./config.status config.h
9441if test -n "\$CONFIG_FILES"; then
9442 # Protect against being on the right side of a sed subst in config.status.
9443 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9444 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9445s,@SHELL@,$SHELL,;t t
9446s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9447s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9448s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9449s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9450s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9451s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9452s,@exec_prefix@,$exec_prefix,;t t
9453s,@prefix@,$prefix,;t t
9454s,@program_transform_name@,$program_transform_name,;t t
9455s,@bindir@,$bindir,;t t
9456s,@sbindir@,$sbindir,;t t
9457s,@libexecdir@,$libexecdir,;t t
9458s,@datadir@,$datadir,;t t
9459s,@sysconfdir@,$sysconfdir,;t t
9460s,@sharedstatedir@,$sharedstatedir,;t t
9461s,@localstatedir@,$localstatedir,;t t
9462s,@libdir@,$libdir,;t t
9463s,@includedir@,$includedir,;t t
9464s,@oldincludedir@,$oldincludedir,;t t
9465s,@infodir@,$infodir,;t t
9466s,@mandir@,$mandir,;t t
9467s,@build_alias@,$build_alias,;t t
9468s,@host_alias@,$host_alias,;t t
9469s,@target_alias@,$target_alias,;t t
9470s,@DEFS@,$DEFS,;t t
9471s,@ECHO_C@,$ECHO_C,;t t
9472s,@ECHO_N@,$ECHO_N,;t t
9473s,@ECHO_T@,$ECHO_T,;t t
9474s,@LIBS@,$LIBS,;t t
9475s,@build@,$build,;t t
9476s,@build_cpu@,$build_cpu,;t t
9477s,@build_vendor@,$build_vendor,;t t
9478s,@build_os@,$build_os,;t t
9479s,@host@,$host,;t t
9480s,@host_cpu@,$host_cpu,;t t
9481s,@host_vendor@,$host_vendor,;t t
9482s,@host_os@,$host_os,;t t
9483s,@target@,$target,;t t
9484s,@target_cpu@,$target_cpu,;t t
9485s,@target_vendor@,$target_vendor,;t t
9486s,@target_os@,$target_os,;t t
9487s,@CC@,$CC,;t t
9488s,@CFLAGS@,$CFLAGS,;t t
9489s,@LDFLAGS@,$LDFLAGS,;t t
9490s,@CPPFLAGS@,$CPPFLAGS,;t t
9491s,@ac_ct_CC@,$ac_ct_CC,;t t
9492s,@EXEEXT@,$EXEEXT,;t t
9493s,@OBJEXT@,$OBJEXT,;t t
9494s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9495s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9496s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9497s,@CYGPATH_W@,$CYGPATH_W,;t t
9498s,@PACKAGE@,$PACKAGE,;t t
9499s,@VERSION@,$VERSION,;t t
9500s,@ACLOCAL@,$ACLOCAL,;t t
9501s,@AUTOCONF@,$AUTOCONF,;t t
9502s,@AUTOMAKE@,$AUTOMAKE,;t t
9503s,@AUTOHEADER@,$AUTOHEADER,;t t
9504s,@MAKEINFO@,$MAKEINFO,;t t
9505s,@install_sh@,$install_sh,;t t
9506s,@STRIP@,$STRIP,;t t
9507s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9508s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9509s,@mkdir_p@,$mkdir_p,;t t
9510s,@AWK@,$AWK,;t t
9511s,@SET_MAKE@,$SET_MAKE,;t t
9512s,@am__leading_dot@,$am__leading_dot,;t t
9513s,@AMTAR@,$AMTAR,;t t
9514s,@am__tar@,$am__tar,;t t
9515s,@am__untar@,$am__untar,;t t
9516s,@DEPDIR@,$DEPDIR,;t t
9517s,@am__include@,$am__include,;t t
9518s,@am__quote@,$am__quote,;t t
9519s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9520s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9521s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9522s,@CCDEPMODE@,$CCDEPMODE,;t t
9523s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9524s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9525s,@LN_S@,$LN_S,;t t
9526s,@RANLIB@,$RANLIB,;t t
9527s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9528s,@LIBTOOL@,$LIBTOOL,;t t
9529s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9530s,@NO_WERROR@,$NO_WERROR,;t t
9531s,@YACC@,$YACC,;t t
9532s,@LEX@,$LEX,;t t
9533s,@LEXLIB@,$LEXLIB,;t t
9534s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9535s,@USE_NLS@,$USE_NLS,;t t
9536s,@LIBINTL@,$LIBINTL,;t t
9537s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9538s,@INCINTL@,$INCINTL,;t t
9539s,@XGETTEXT@,$XGETTEXT,;t t
9540s,@GMSGFMT@,$GMSGFMT,;t t
9541s,@POSUB@,$POSUB,;t t
9542s,@CATALOGS@,$CATALOGS,;t t
9543s,@DATADIRNAME@,$DATADIRNAME,;t t
9544s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9545s,@GENCAT@,$GENCAT,;t t
9546s,@CATOBJEXT@,$CATOBJEXT,;t t
9547s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9548s,@MSGFMT@,$MSGFMT,;t t
9549s,@MSGMERGE@,$MSGMERGE,;t t
9550s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9551s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9552s,@MAINT@,$MAINT,;t t
9553s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
9554s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
9555s,@HDEFINES@,$HDEFINES,;t t
9556s,@AR@,$AR,;t t
9557s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9558s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9559s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
9560s,@CPP@,$CPP,;t t
9561s,@EGREP@,$EGREP,;t t
9562s,@ALLOCA@,$ALLOCA,;t t
9563s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
9564s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
9565s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
9566s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
9567s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
9568s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
9569s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
9570s,@BUILD_MISC@,$BUILD_MISC,;t t
9571s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
9572s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
9573s,@EMULATION@,$EMULATION,;t t
9574s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
9575s,@datarootdir@,$datarootdir,;t t
9576s,@docdir@,$docdir,;t t
9577s,@htmldir@,$htmldir,;t t
9578s,@LIBOBJS@,$LIBOBJS,;t t
9579s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9580CEOF
9581
9582_ACEOF
9583
9584 cat >>$CONFIG_STATUS <<\_ACEOF
9585 # Split the substitutions into bite-sized pieces for seds with
9586 # small command number limits, like on Digital OSF/1 and HP-UX.
9587 ac_max_sed_lines=48
9588 ac_sed_frag=1 # Number of current file.
9589 ac_beg=1 # First line for current file.
9590 ac_end=$ac_max_sed_lines # Line after last line for current file.
9591 ac_more_lines=:
9592 ac_sed_cmds=
9593 while $ac_more_lines; do
9594 if test $ac_beg -gt 1; then
9595 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9596 else
9597 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9598 fi
9599 if test ! -s $tmp/subs.frag; then
9600 ac_more_lines=false
9601 else
9602 # The purpose of the label and of the branching condition is to
9603 # speed up the sed processing (if there are no `@' at all, there
9604 # is no need to browse any of the substitutions).
9605 # These are the two extra sed commands mentioned above.
9606 (echo ':t
9607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9608 if test -z "$ac_sed_cmds"; then
9609 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9610 else
9611 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9612 fi
9613 ac_sed_frag=`expr $ac_sed_frag + 1`
9614 ac_beg=$ac_end
9615 ac_end=`expr $ac_end + $ac_max_sed_lines`
9616 fi
9617 done
9618 if test -z "$ac_sed_cmds"; then
9619 ac_sed_cmds=cat
9620 fi
9621fi # test -n "$CONFIG_FILES"
9622
9623_ACEOF
9624cat >>$CONFIG_STATUS <<\_ACEOF
9625for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9626 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9627 case $ac_file in
9628 - | *:- | *:-:* ) # input from stdin
9629 cat >$tmp/stdin
9630 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9632 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9634 * ) ac_file_in=$ac_file.in ;;
9635 esac
9636
9637 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9638 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9639$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9640 X"$ac_file" : 'X\(//\)[^/]' \| \
9641 X"$ac_file" : 'X\(//\)$' \| \
9642 X"$ac_file" : 'X\(/\)' \| \
9643 . : '\(.\)' 2>/dev/null ||
9644echo X"$ac_file" |
9645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9647 /^X\(\/\/\)$/{ s//\1/; q; }
9648 /^X\(\/\).*/{ s//\1/; q; }
9649 s/.*/./; q'`
9650 { if $as_mkdir_p; then
9651 mkdir -p "$ac_dir"
9652 else
9653 as_dir="$ac_dir"
9654 as_dirs=
9655 while test ! -d "$as_dir"; do
9656 as_dirs="$as_dir $as_dirs"
9657 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9658$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9659 X"$as_dir" : 'X\(//\)[^/]' \| \
9660 X"$as_dir" : 'X\(//\)$' \| \
9661 X"$as_dir" : 'X\(/\)' \| \
9662 . : '\(.\)' 2>/dev/null ||
9663echo X"$as_dir" |
9664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9666 /^X\(\/\/\)$/{ s//\1/; q; }
9667 /^X\(\/\).*/{ s//\1/; q; }
9668 s/.*/./; q'`
9669 done
9670 test ! -n "$as_dirs" || mkdir $as_dirs
9671 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9672echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9673 { (exit 1); exit 1; }; }; }
9674
9675 ac_builddir=.
9676
9677if test "$ac_dir" != .; then
9678 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9679 # A "../" for each directory in $ac_dir_suffix.
9680 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9681else
9682 ac_dir_suffix= ac_top_builddir=
9683fi
9684
9685case $srcdir in
9686 .) # No --srcdir option. We are building in place.
9687 ac_srcdir=.
9688 if test -z "$ac_top_builddir"; then
9689 ac_top_srcdir=.
9690 else
9691 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9692 fi ;;
9693 [\\/]* | ?:[\\/]* ) # Absolute path.
9694 ac_srcdir=$srcdir$ac_dir_suffix;
9695 ac_top_srcdir=$srcdir ;;
9696 *) # Relative path.
9697 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9698 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9699esac
9700
9701# Do not use `cd foo && pwd` to compute absolute paths, because
9702# the directories may not exist.
9703case `pwd` in
9704.) ac_abs_builddir="$ac_dir";;
9705*)
9706 case "$ac_dir" in
9707 .) ac_abs_builddir=`pwd`;;
9708 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9709 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9710 esac;;
9711esac
9712case $ac_abs_builddir in
9713.) ac_abs_top_builddir=${ac_top_builddir}.;;
9714*)
9715 case ${ac_top_builddir}. in
9716 .) ac_abs_top_builddir=$ac_abs_builddir;;
9717 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9718 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9719 esac;;
9720esac
9721case $ac_abs_builddir in
9722.) ac_abs_srcdir=$ac_srcdir;;
9723*)
9724 case $ac_srcdir in
9725 .) ac_abs_srcdir=$ac_abs_builddir;;
9726 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9727 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9728 esac;;
9729esac
9730case $ac_abs_builddir in
9731.) ac_abs_top_srcdir=$ac_top_srcdir;;
9732*)
9733 case $ac_top_srcdir in
9734 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9735 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9736 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9737 esac;;
9738esac
9739
9740
9741 case $INSTALL in
9742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9743 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9744 esac
9745
9746 if test x"$ac_file" != x-; then
9747 { echo "$as_me:$LINENO: creating $ac_file" >&5
9748echo "$as_me: creating $ac_file" >&6;}
9749 rm -f "$ac_file"
9750 fi
9751 # Let's still pretend it is `configure' which instantiates (i.e., don't
9752 # use $as_me), people would be surprised to read:
9753 # /* config.h. Generated by config.status. */
9754 if test x"$ac_file" = x-; then
9755 configure_input=
9756 else
9757 configure_input="$ac_file. "
9758 fi
9759 configure_input=$configure_input"Generated from `echo $ac_file_in |
9760 sed 's,.*/,,'` by configure."
9761
9762 # First look for the input files in the build tree, otherwise in the
9763 # src tree.
9764 ac_file_inputs=`IFS=:
9765 for f in $ac_file_in; do
9766 case $f in
9767 -) echo $tmp/stdin ;;
9768 [\\/$]*)
9769 # Absolute (can't be DOS-style, as IFS=:)
9770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9771echo "$as_me: error: cannot find input file: $f" >&2;}
9772 { (exit 1); exit 1; }; }
9773 echo "$f";;
9774 *) # Relative
9775 if test -f "$f"; then
9776 # Build tree
9777 echo "$f"
9778 elif test -f "$srcdir/$f"; then
9779 # Source tree
9780 echo "$srcdir/$f"
9781 else
9782 # /dev/null tree
9783 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9784echo "$as_me: error: cannot find input file: $f" >&2;}
9785 { (exit 1); exit 1; }; }
9786 fi;;
9787 esac
9788 done` || { (exit 1); exit 1; }
9789_ACEOF
9790cat >>$CONFIG_STATUS <<_ACEOF
9791 sed "$ac_vpsub
9792$extrasub
9793_ACEOF
9794cat >>$CONFIG_STATUS <<\_ACEOF
9795:t
9796/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9797s,@configure_input@,$configure_input,;t t
9798s,@srcdir@,$ac_srcdir,;t t
9799s,@abs_srcdir@,$ac_abs_srcdir,;t t
9800s,@top_srcdir@,$ac_top_srcdir,;t t
9801s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9802s,@builddir@,$ac_builddir,;t t
9803s,@abs_builddir@,$ac_abs_builddir,;t t
9804s,@top_builddir@,$ac_top_builddir,;t t
9805s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9806s,@INSTALL@,$ac_INSTALL,;t t
9807" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9808 rm -f $tmp/stdin
9809 if test x"$ac_file" != x-; then
9810 mv $tmp/out $ac_file
9811 else
9812 cat $tmp/out
9813 rm -f $tmp/out
9814 fi
9815
9816done
9817_ACEOF
9818cat >>$CONFIG_STATUS <<\_ACEOF
9819
9820#
9821# CONFIG_HEADER section.
9822#
9823
9824# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9825# NAME is the cpp macro being defined and VALUE is the value it is being given.
9826#
9827# ac_d sets the value in "#define NAME VALUE" lines.
9828ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9829ac_dB='[ ].*$,\1#\2'
9830ac_dC=' '
9831ac_dD=',;t'
9832# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9833ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9834ac_uB='$,\1#\2define\3'
9835ac_uC=' '
9836ac_uD=',;t'
9837
9838for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9840 case $ac_file in
9841 - | *:- | *:-:* ) # input from stdin
9842 cat >$tmp/stdin
9843 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9845 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9847 * ) ac_file_in=$ac_file.in ;;
9848 esac
9849
9850 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9851echo "$as_me: creating $ac_file" >&6;}
9852
9853 # First look for the input files in the build tree, otherwise in the
9854 # src tree.
9855 ac_file_inputs=`IFS=:
9856 for f in $ac_file_in; do
9857 case $f in
9858 -) echo $tmp/stdin ;;
9859 [\\/$]*)
9860 # Absolute (can't be DOS-style, as IFS=:)
9861 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9862echo "$as_me: error: cannot find input file: $f" >&2;}
9863 { (exit 1); exit 1; }; }
9864 # Do quote $f, to prevent DOS paths from being IFS'd.
9865 echo "$f";;
9866 *) # Relative
9867 if test -f "$f"; then
9868 # Build tree
9869 echo "$f"
9870 elif test -f "$srcdir/$f"; then
9871 # Source tree
9872 echo "$srcdir/$f"
9873 else
9874 # /dev/null tree
9875 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9876echo "$as_me: error: cannot find input file: $f" >&2;}
9877 { (exit 1); exit 1; }; }
9878 fi;;
9879 esac
9880 done` || { (exit 1); exit 1; }
9881 # Remove the trailing spaces.
9882 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9883
9884_ACEOF
9885
9886# Transform confdefs.h into two sed scripts, `conftest.defines' and
9887# `conftest.undefs', that substitutes the proper values into
9888# config.h.in to produce config.h. The first handles `#define'
9889# templates, and the second `#undef' templates.
9890# And first: Protect against being on the right side of a sed subst in
9891# config.status. Protect against being in an unquoted here document
9892# in config.status.
9893rm -f conftest.defines conftest.undefs
9894# Using a here document instead of a string reduces the quoting nightmare.
9895# Putting comments in sed scripts is not portable.
9896#
9897# `end' is used to avoid that the second main sed command (meant for
9898# 0-ary CPP macros) applies to n-ary macro definitions.
9899# See the Autoconf documentation for `clear'.
9900cat >confdef2sed.sed <<\_ACEOF
9901s/[\\&,]/\\&/g
9902s,[\\$`],\\&,g
9903t clear
9904: clear
9905s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9906t end
9907s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9908: end
9909_ACEOF
9910# If some macros were called several times there might be several times
9911# the same #defines, which is useless. Nevertheless, we may not want to
9912# sort them, since we want the *last* AC-DEFINE to be honored.
9913uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9914sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9915rm -f confdef2sed.sed
9916
9917# This sed command replaces #undef with comments. This is necessary, for
9918# example, in the case of _POSIX_SOURCE, which is predefined and required
9919# on some systems where configure will not decide to define it.
9920cat >>conftest.undefs <<\_ACEOF
9921s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9922_ACEOF
9923
9924# Break up conftest.defines because some shells have a limit on the size
9925# of here documents, and old seds have small limits too (100 cmds).
9926echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9927echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9928echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9929echo ' :' >>$CONFIG_STATUS
9930rm -f conftest.tail
9931while grep . conftest.defines >/dev/null
9932do
9933 # Write a limited-size here document to $tmp/defines.sed.
9934 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9935 # Speed up: don't consider the non `#define' lines.
9936 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9937 # Work around the forget-to-reset-the-flag bug.
9938 echo 't clr' >>$CONFIG_STATUS
9939 echo ': clr' >>$CONFIG_STATUS
9940 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9941 echo 'CEOF
9942 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9943 rm -f $tmp/in
9944 mv $tmp/out $tmp/in
9945' >>$CONFIG_STATUS
9946 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9947 rm -f conftest.defines
9948 mv conftest.tail conftest.defines
9949done
9950rm -f conftest.defines
9951echo ' fi # grep' >>$CONFIG_STATUS
9952echo >>$CONFIG_STATUS
9953
9954# Break up conftest.undefs because some shells have a limit on the size
9955# of here documents, and old seds have small limits too (100 cmds).
9956echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9957rm -f conftest.tail
9958while grep . conftest.undefs >/dev/null
9959do
9960 # Write a limited-size here document to $tmp/undefs.sed.
9961 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9962 # Speed up: don't consider the non `#undef'
9963 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9964 # Work around the forget-to-reset-the-flag bug.
9965 echo 't clr' >>$CONFIG_STATUS
9966 echo ': clr' >>$CONFIG_STATUS
9967 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9968 echo 'CEOF
9969 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9970 rm -f $tmp/in
9971 mv $tmp/out $tmp/in
9972' >>$CONFIG_STATUS
9973 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9974 rm -f conftest.undefs
9975 mv conftest.tail conftest.undefs
9976done
9977rm -f conftest.undefs
9978
9979cat >>$CONFIG_STATUS <<\_ACEOF
9980 # Let's still pretend it is `configure' which instantiates (i.e., don't
9981 # use $as_me), people would be surprised to read:
9982 # /* config.h. Generated by config.status. */
9983 if test x"$ac_file" = x-; then
9984 echo "/* Generated by configure. */" >$tmp/config.h
9985 else
9986 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9987 fi
9988 cat $tmp/in >>$tmp/config.h
9989 rm -f $tmp/in
9990 if test x"$ac_file" != x-; then
9991 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9993echo "$as_me: $ac_file is unchanged" >&6;}
9994 else
9995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9997 X"$ac_file" : 'X\(//\)[^/]' \| \
9998 X"$ac_file" : 'X\(//\)$' \| \
9999 X"$ac_file" : 'X\(/\)' \| \
10000 . : '\(.\)' 2>/dev/null ||
10001echo X"$ac_file" |
10002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10004 /^X\(\/\/\)$/{ s//\1/; q; }
10005 /^X\(\/\).*/{ s//\1/; q; }
10006 s/.*/./; q'`
10007 { if $as_mkdir_p; then
10008 mkdir -p "$ac_dir"
10009 else
10010 as_dir="$ac_dir"
10011 as_dirs=
10012 while test ! -d "$as_dir"; do
10013 as_dirs="$as_dir $as_dirs"
10014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10016 X"$as_dir" : 'X\(//\)[^/]' \| \
10017 X"$as_dir" : 'X\(//\)$' \| \
10018 X"$as_dir" : 'X\(/\)' \| \
10019 . : '\(.\)' 2>/dev/null ||
10020echo X"$as_dir" |
10021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10023 /^X\(\/\/\)$/{ s//\1/; q; }
10024 /^X\(\/\).*/{ s//\1/; q; }
10025 s/.*/./; q'`
10026 done
10027 test ! -n "$as_dirs" || mkdir $as_dirs
10028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10029echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10030 { (exit 1); exit 1; }; }; }
10031
10032 rm -f $ac_file
10033 mv $tmp/config.h $ac_file
10034 fi
10035 else
10036 cat $tmp/config.h
10037 rm -f $tmp/config.h
10038 fi
10039# Compute $ac_file's index in $config_headers.
10040_am_stamp_count=1
10041for _am_header in $config_headers :; do
10042 case $_am_header in
10043 $ac_file | $ac_file:* )
10044 break ;;
10045 * )
10046 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10047 esac
10048done
10049echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10050$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10051 X$ac_file : 'X\(//\)[^/]' \| \
10052 X$ac_file : 'X\(//\)$' \| \
10053 X$ac_file : 'X\(/\)' \| \
10054 . : '\(.\)' 2>/dev/null ||
10055echo X$ac_file |
10056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10058 /^X\(\/\/\)$/{ s//\1/; q; }
10059 /^X\(\/\).*/{ s//\1/; q; }
10060 s/.*/./; q'`/stamp-h$_am_stamp_count
10061done
10062_ACEOF
10063cat >>$CONFIG_STATUS <<\_ACEOF
10064
10065#
10066# CONFIG_COMMANDS section.
10067#
10068for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10069 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10070 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10071 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10072$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10073 X"$ac_dest" : 'X\(//\)[^/]' \| \
10074 X"$ac_dest" : 'X\(//\)$' \| \
10075 X"$ac_dest" : 'X\(/\)' \| \
10076 . : '\(.\)' 2>/dev/null ||
10077echo X"$ac_dest" |
10078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10080 /^X\(\/\/\)$/{ s//\1/; q; }
10081 /^X\(\/\).*/{ s//\1/; q; }
10082 s/.*/./; q'`
10083 { if $as_mkdir_p; then
10084 mkdir -p "$ac_dir"
10085 else
10086 as_dir="$ac_dir"
10087 as_dirs=
10088 while test ! -d "$as_dir"; do
10089 as_dirs="$as_dir $as_dirs"
10090 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10091$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10092 X"$as_dir" : 'X\(//\)[^/]' \| \
10093 X"$as_dir" : 'X\(//\)$' \| \
10094 X"$as_dir" : 'X\(/\)' \| \
10095 . : '\(.\)' 2>/dev/null ||
10096echo X"$as_dir" |
10097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10099 /^X\(\/\/\)$/{ s//\1/; q; }
10100 /^X\(\/\).*/{ s//\1/; q; }
10101 s/.*/./; q'`
10102 done
10103 test ! -n "$as_dirs" || mkdir $as_dirs
10104 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10105echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10106 { (exit 1); exit 1; }; }; }
10107
10108 ac_builddir=.
10109
10110if test "$ac_dir" != .; then
10111 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10112 # A "../" for each directory in $ac_dir_suffix.
10113 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10114else
10115 ac_dir_suffix= ac_top_builddir=
10116fi
10117
10118case $srcdir in
10119 .) # No --srcdir option. We are building in place.
10120 ac_srcdir=.
10121 if test -z "$ac_top_builddir"; then
10122 ac_top_srcdir=.
10123 else
10124 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10125 fi ;;
10126 [\\/]* | ?:[\\/]* ) # Absolute path.
10127 ac_srcdir=$srcdir$ac_dir_suffix;
10128 ac_top_srcdir=$srcdir ;;
10129 *) # Relative path.
10130 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10131 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10132esac
10133
10134# Do not use `cd foo && pwd` to compute absolute paths, because
10135# the directories may not exist.
10136case `pwd` in
10137.) ac_abs_builddir="$ac_dir";;
10138*)
10139 case "$ac_dir" in
10140 .) ac_abs_builddir=`pwd`;;
10141 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10142 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10143 esac;;
10144esac
10145case $ac_abs_builddir in
10146.) ac_abs_top_builddir=${ac_top_builddir}.;;
10147*)
10148 case ${ac_top_builddir}. in
10149 .) ac_abs_top_builddir=$ac_abs_builddir;;
10150 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10151 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10152 esac;;
10153esac
10154case $ac_abs_builddir in
10155.) ac_abs_srcdir=$ac_srcdir;;
10156*)
10157 case $ac_srcdir in
10158 .) ac_abs_srcdir=$ac_abs_builddir;;
10159 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10160 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10161 esac;;
10162esac
10163case $ac_abs_builddir in
10164.) ac_abs_top_srcdir=$ac_top_srcdir;;
10165*)
10166 case $ac_top_srcdir in
10167 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10168 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10169 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10170 esac;;
10171esac
10172
10173
10174 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10175echo "$as_me: executing $ac_dest commands" >&6;}
10176 case $ac_dest in
10177 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10178 # Strip MF so we end up with the name of the file.
10179 mf=`echo "$mf" | sed -e 's/:.*$//'`
10180 # Check whether this is an Automake generated Makefile or not.
10181 # We used to match only the files named `Makefile.in', but
10182 # some people rename them; so instead we look at the file content.
10183 # Grep'ing the first line is not enough: some people post-process
10184 # each Makefile.in and add a new line on top of each file to say so.
10185 # So let's grep whole file.
10186 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10187 dirpart=`(dirname "$mf") 2>/dev/null ||
10188$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10189 X"$mf" : 'X\(//\)[^/]' \| \
10190 X"$mf" : 'X\(//\)$' \| \
10191 X"$mf" : 'X\(/\)' \| \
10192 . : '\(.\)' 2>/dev/null ||
10193echo X"$mf" |
10194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10196 /^X\(\/\/\)$/{ s//\1/; q; }
10197 /^X\(\/\).*/{ s//\1/; q; }
10198 s/.*/./; q'`
10199 else
10200 continue
10201 fi
10202 # Extract the definition of DEPDIR, am__include, and am__quote
10203 # from the Makefile without running `make'.
10204 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10205 test -z "$DEPDIR" && continue
10206 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10207 test -z "am__include" && continue
10208 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10209 # When using ansi2knr, U may be empty or an underscore; expand it
10210 U=`sed -n 's/^U = //p' < "$mf"`
10211 # Find all dependency output files, they are included files with
10212 # $(DEPDIR) in their names. We invoke sed twice because it is the
10213 # simplest approach to changing $(DEPDIR) to its actual value in the
10214 # expansion.
10215 for file in `sed -n "
10216 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10217 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10218 # Make sure the directory exists.
10219 test -f "$dirpart/$file" && continue
10220 fdir=`(dirname "$file") 2>/dev/null ||
10221$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10222 X"$file" : 'X\(//\)[^/]' \| \
10223 X"$file" : 'X\(//\)$' \| \
10224 X"$file" : 'X\(/\)' \| \
10225 . : '\(.\)' 2>/dev/null ||
10226echo X"$file" |
10227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10229 /^X\(\/\/\)$/{ s//\1/; q; }
10230 /^X\(\/\).*/{ s//\1/; q; }
10231 s/.*/./; q'`
10232 { if $as_mkdir_p; then
10233 mkdir -p $dirpart/$fdir
10234 else
10235 as_dir=$dirpart/$fdir
10236 as_dirs=
10237 while test ! -d "$as_dir"; do
10238 as_dirs="$as_dir $as_dirs"
10239 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10240$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10241 X"$as_dir" : 'X\(//\)[^/]' \| \
10242 X"$as_dir" : 'X\(//\)$' \| \
10243 X"$as_dir" : 'X\(/\)' \| \
10244 . : '\(.\)' 2>/dev/null ||
10245echo X"$as_dir" |
10246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10248 /^X\(\/\/\)$/{ s//\1/; q; }
10249 /^X\(\/\).*/{ s//\1/; q; }
10250 s/.*/./; q'`
10251 done
10252 test ! -n "$as_dirs" || mkdir $as_dirs
10253 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10254echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10255 { (exit 1); exit 1; }; }; }
10256
10257 # echo "creating $dirpart/$file"
10258 echo '# dummy' > "$dirpart/$file"
10259 done
10260done
10261 ;;
10262 default-1 )
10263 for ac_file in $CONFIG_FILES; do
10264 # Support "outfile[:infile[:infile...]]"
10265 case "$ac_file" in
10266 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10267 esac
10268 # PO directories have a Makefile.in generated from Makefile.in.in.
10269 case "$ac_file" in */Makefile.in)
10270 # Adjust a relative srcdir.
10271 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10272 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10273 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10274 # In autoconf-2.13 it is called $ac_given_srcdir.
10275 # In autoconf-2.50 it is called $srcdir.
10276 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10277 case "$ac_given_srcdir" in
10278 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10279 /*) top_srcdir="$ac_given_srcdir" ;;
10280 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10281 esac
10282 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10283 rm -f "$ac_dir/POTFILES"
10284 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10285 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10286 POMAKEFILEDEPS="POTFILES.in"
10287 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10288 # on $ac_dir but don't depend on user-specified configuration
10289 # parameters.
10290 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10291 # The LINGUAS file contains the set of available languages.
10292 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10293 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10294 fi
10295 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10296 # Hide the ALL_LINGUAS assigment from automake.
10297 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10298 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10299 else
10300 # The set of available languages was given in configure.in.
10301 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10302 fi
10303 case "$ac_given_srcdir" in
10304 .) srcdirpre= ;;
10305 *) srcdirpre='$(srcdir)/' ;;
10306 esac
10307 POFILES=
10308 GMOFILES=
10309 UPDATEPOFILES=
10310 DUMMYPOFILES=
10311 for lang in $ALL_LINGUAS; do
10312 POFILES="$POFILES $srcdirpre$lang.po"
10313 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10314 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10315 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10316 done
10317 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10318 # environment variable.
10319 INST_LINGUAS=
10320 if test -n "$ALL_LINGUAS"; then
10321 for presentlang in $ALL_LINGUAS; do
10322 useit=no
10323 if test "%UNSET%" != "$LINGUAS"; then
10324 desiredlanguages="$LINGUAS"
10325 else
10326 desiredlanguages="$ALL_LINGUAS"
10327 fi
10328 for desiredlang in $desiredlanguages; do
10329 # Use the presentlang catalog if desiredlang is
10330 # a. equal to presentlang, or
10331 # b. a variant of presentlang (because in this case,
10332 # presentlang can be used as a fallback for messages
10333 # which are not translated in the desiredlang catalog).
10334 case "$desiredlang" in
10335 "$presentlang"*) useit=yes;;
10336 esac
10337 done
10338 if test $useit = yes; then
10339 INST_LINGUAS="$INST_LINGUAS $presentlang"
10340 fi
10341 done
10342 fi
10343 CATALOGS=
10344 if test -n "$INST_LINGUAS"; then
10345 for lang in $INST_LINGUAS; do
10346 CATALOGS="$CATALOGS $lang.gmo"
10347 done
10348 fi
10349 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10350 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"
10351 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10352 if test -f "$f"; then
10353 case "$f" in
10354 *.orig | *.bak | *~) ;;
10355 *) cat "$f" >> "$ac_dir/Makefile" ;;
10356 esac
10357 fi
10358 done
10359 fi
10360 ;;
10361 esac
10362 done ;;
10363 esac
10364done
10365_ACEOF
10366
10367cat >>$CONFIG_STATUS <<\_ACEOF
10368
10369{ (exit 0); exit 0; }
10370_ACEOF
10371chmod +x $CONFIG_STATUS
10372ac_clean_files=$ac_clean_files_save
10373
10374
10375# configure is writing to config.log, and then calls config.status.
10376# config.status does its own redirection, appending to config.log.
10377# Unfortunately, on DOS this fails, as config.log is still kept open
10378# by configure, so config.status won't be able to write to it; its
10379# output is simply discarded. So we exec the FD to /dev/null,
10380# effectively closing config.log, so it can be properly (re)opened and
10381# appended to by config.status. When coming back to configure, we
10382# need to make the FD available again.
10383if test "$no_create" != yes; then
10384 ac_cs_success=:
10385 ac_config_status_args=
10386 test "$silent" = yes &&
10387 ac_config_status_args="$ac_config_status_args --quiet"
10388 exec 5>/dev/null
10389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10390 exec 5>>config.log
10391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10392 # would make configure fail if this is the last instruction.
10393 $ac_cs_success || { (exit 1); exit 1; }
10394fi
10395
This page took 0.060674 seconds and 4 git commands to generate.