* configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Fix
[binutils.git] / ld / configure
blob9f10ff6cfae4befe92acae26dfa9f7febaa58dd1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="ldmain.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE REPORT_BUGS_TO WARN_CFLAGS NO_WERROR CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files='TDIRS'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-lib-path=dir1:dir2... set default LIB_PATH
873 --with-sysroot=DIR Search for usr/lib et al within DIR.
874 --with-bugurl=URL Direct users to URL to report a bug
875 --with-included-gettext use the GNU gettext library included here
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 _ACEOF
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904 ac_dir_suffix= ac_top_builddir=
907 case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
925 case `pwd` in
926 .) ac_abs_builddir="$ac_dir";;
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960 esac
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 cd $ac_popdir
978 done
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
983 cat <<\_ACEOF
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 ac_aux_dir=
1326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if 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/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1340 done
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350 # Make sure we can run config.sub.
1351 $ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1356 echo "$as_me:$LINENO: checking build system type" >&5
1357 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358 if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361 ac_cv_build_alias=$build_alias
1362 test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364 test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375 echo "${ECHO_T}$ac_cv_build" >&6
1376 build=$ac_cv_build
1377 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382 echo "$as_me:$LINENO: checking host system type" >&5
1383 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384 if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387 ac_cv_host_alias=$host_alias
1388 test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397 echo "${ECHO_T}$ac_cv_host" >&6
1398 host=$ac_cv_host
1399 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404 echo "$as_me:$LINENO: checking target system type" >&5
1405 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406 if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 ac_cv_target_alias=$target_alias
1410 test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419 echo "${ECHO_T}$ac_cv_target" >&6
1420 target=$ac_cv_target
1421 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426 # The aliases save the names the user supplied, while $host etc.
1427 # will get canonicalized.
1428 test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1459 done
1460 done
1464 CC=$ac_cv_prog_CC
1465 if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1474 if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1497 done
1498 done
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1506 else
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1511 CC=$ac_ct_CC
1512 else
1513 CC="$ac_cv_prog_CC"
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1539 done
1540 done
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1577 done
1578 done
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1591 CC=$ac_ct_CC
1592 else
1593 CC="$ac_cv_prog_CC"
1597 if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 ac_prog_rejected=no
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1624 done
1625 done
1627 if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1676 done
1677 done
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 test -n "$CC" && break
1691 done
1693 if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1718 done
1719 done
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1727 else
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1732 test -n "$ac_ct_CC" && break
1733 done
1735 CC=$ac_ct_CC
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1747 # Provide some information about the compiler.
1748 echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1767 cat >conftest.$ac_ext <<_ACEOF
1768 /* confdefs.h. */
1769 _ACEOF
1770 cat confdefs.h >>conftest.$ac_ext
1771 cat >>conftest.$ac_ext <<_ACEOF
1772 /* end confdefs.h. */
1775 main ()
1779 return 0;
1781 _ACEOF
1782 ac_clean_files_save=$ac_clean_files
1783 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784 # Try to create an executable without -o first, disregard a.out.
1785 # It will help us diagnose broken compilers, and finding out an intuition
1786 # of exeext.
1787 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 # resort.
1799 # Be careful to initialize this variable, since it used to be cached.
1800 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 ac_cv_exeext=
1802 # b.out is created by i960 compilers.
1803 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 conftest.$ac_ext )
1810 # This is the source file.
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1824 break;;
1825 esac
1826 done
1827 else
1828 echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1838 ac_exeext=$ac_cv_exeext
1839 echo "$as_me:$LINENO: result: $ac_file" >&5
1840 echo "${ECHO_T}$ac_file" >&6
1842 # Check the compiler produces executables we can run. If not, either
1843 # the compiler is broken, or we cross compile.
1844 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847 # If not cross compiling, check that we can run a simple program.
1848 if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&5
1863 echo "$as_me: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1870 echo "$as_me:$LINENO: result: yes" >&5
1871 echo "${ECHO_T}yes" >&6
1873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874 ac_clean_files=$ac_clean_files_save
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880 echo "${ECHO_T}$cross_compiling" >&6
1882 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 # `rm'.
1893 for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902 done
1903 else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&5
1906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1911 rm -f conftest$ac_cv_exeext
1912 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913 echo "${ECHO_T}$ac_cv_exeext" >&6
1915 rm -f conftest.$ac_ext
1916 EXEEXT=$ac_cv_exeext
1917 ac_exeext=$EXEEXT
1918 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920 if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 cat >conftest.$ac_ext <<_ACEOF
1924 /* confdefs.h. */
1925 _ACEOF
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h. */
1931 main ()
1935 return 0;
1937 _ACEOF
1938 rm -f conftest.o conftest.obj
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950 done
1951 else
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965 echo "${ECHO_T}$ac_cv_objext" >&6
1966 OBJEXT=$ac_cv_objext
1967 ac_objext=$OBJEXT
1968 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1981 main ()
1983 #ifndef __GNUC__
1984 choke me
1985 #endif
1988 return 0;
1990 _ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_compiler_gnu=yes
2014 else
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2018 ac_compiler_gnu=no
2020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2024 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026 GCC=`test $ac_compiler_gnu = yes && echo yes`
2027 ac_test_CFLAGS=${CFLAGS+set}
2028 ac_save_CFLAGS=$CFLAGS
2029 CFLAGS="-g"
2030 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032 if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 cat >conftest.$ac_ext <<_ACEOF
2036 /* confdefs.h. */
2037 _ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2043 main ()
2047 return 0;
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 ac_cv_prog_cc_g=no
2079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083 if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085 elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2091 else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2098 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 ac_cv_prog_cc_stdc=no
2104 ac_save_CC=$CC
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h. */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2111 #include <stdarg.h>
2112 #include <stdio.h>
2113 #include <sys/types.h>
2114 #include <sys/stat.h>
2115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116 struct buf { int x; };
2117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118 static char *e (p, i)
2119 char **p;
2120 int i;
2122 return p[i];
2124 static char *f (char * (*g) (char **, int), char **p, ...)
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 int argc;
2148 char **argv;
2150 main ()
2152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 return 0;
2156 _ACEOF
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX -qlanglvl=ansi
2160 # Ultrix and OSF/1 -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions -Aa -D_HPUX_SOURCE
2163 # SVR4 -Xc -D__EXTENSIONS__
2164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_stdc=$ac_arg
2190 break
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2196 rm -f conftest.err conftest.$ac_objext
2197 done
2198 rm -f conftest.$ac_ext conftest.$ac_objext
2199 CC=$ac_save_CC
2203 case "x$ac_cv_prog_cc_stdc" in
2204 x|xno)
2205 echo "$as_me:$LINENO: result: none needed" >&5
2206 echo "${ECHO_T}none needed" >&6 ;;
2208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 esac
2213 # Some people use a C++ compiler to compile C. Since we use `exit',
2214 # in C++ we need to declare it. In case someone uses the same compiler
2215 # for both compiling C and C++ we need to have the C++ compiler decide
2216 # the declaration of exit, since it's the most demanding environment.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #ifndef __cplusplus
2219 choke me
2220 #endif
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 for ac_declaration in \
2245 '' \
2246 'extern "C" void std::exit (int) throw (); using std::exit;' \
2247 'extern "C" void std::exit (int); using std::exit;' \
2248 'extern "C" void exit (int) throw ();' \
2249 'extern "C" void exit (int);' \
2250 'void exit (int);'
2252 cat >conftest.$ac_ext <<_ACEOF
2253 /* confdefs.h. */
2254 _ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2258 $ac_declaration
2259 #include <stdlib.h>
2261 main ()
2263 exit (42);
2265 return 0;
2267 _ACEOF
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 continue
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2304 $ac_declaration
2306 main ()
2308 exit (42);
2310 return 0;
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 break
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 done
2343 rm -f conftest*
2344 if test -n "$ac_declaration"; then
2345 echo '#ifdef __cplusplus' >>confdefs.h
2346 echo $ac_declaration >>confdefs.h
2347 echo '#endif' >>confdefs.h
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2364 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2365 if test "${ac_cv_search_strerror+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 ac_func_search_save_LIBS=$LIBS
2369 ac_cv_search_strerror=no
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 #ifdef __cplusplus
2379 extern "C"
2380 #endif
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2383 char strerror ();
2385 main ()
2387 strerror ();
2389 return 0;
2391 _ACEOF
2392 rm -f conftest.$ac_objext conftest$ac_exeext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest$ac_exeext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 ac_cv_search_strerror="none required"
2415 else
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422 if test "$ac_cv_search_strerror" = no; then
2423 for ac_lib in cposix; do
2424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2432 /* Override any gcc2 internal prototype to avoid an error. */
2433 #ifdef __cplusplus
2434 extern "C"
2435 #endif
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438 char strerror ();
2440 main ()
2442 strerror ();
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.$ac_objext conftest$ac_exeext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_search_strerror="-l$ac_lib"
2470 break
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2476 rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 done
2480 LIBS=$ac_func_search_save_LIBS
2482 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2483 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2484 if test "$ac_cv_search_strerror" != no; then
2485 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2490 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2491 am__api_version="1.9"
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2507 if test -z "$INSTALL"; then
2508 if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517 case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529 if test $ac_prog = install &&
2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # AIX install. It has an incompatible calling convention.
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2537 else
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
2542 done
2543 done
2545 esac
2546 done
2550 if test "${ac_cv_path_install+set}" = set; then
2551 INSTALL=$ac_cv_path_install
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
2557 INSTALL=$ac_install_sh
2560 echo "$as_me:$LINENO: result: $INSTALL" >&5
2561 echo "${ECHO_T}$INSTALL" >&6
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2573 # Just in case
2574 sleep 1
2575 echo timestamp > conftest.file
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2580 # directory).
2581 if (
2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2584 # -L didn't work.
2585 set X `ls -t $srcdir/configure conftest.file`
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2602 test "$2" = conftest.file
2604 then
2605 # Ok.
2607 else
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621 # Double any \ or $. echo might interpret backslashes.
2622 # By default was `s,x,x', remove it if useless.
2623 cat <<\_ACEOF >conftest.sed
2624 s/[\\$]/&&/g;s/;s,x,x,$//
2625 _ACEOF
2626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627 rm conftest.sed
2629 # expand $ac_aux_dir to an absolute path
2630 am_aux_dir=`cd $ac_aux_dir && pwd`
2632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636 else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658 else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2675 for ac_prog in gawk mawk nawk awk
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706 echo "${ECHO_T}$AWK" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$AWK" && break
2713 done
2715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 all:
2723 @echo 'ac_maketemp="$(MAKE)"'
2724 _ACEOF
2725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2727 if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729 else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2732 rm -f conftest.make
2734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 SET_MAKE=
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741 SET_MAKE="MAKE=${MAKE-make}"
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2747 am__leading_dot=.
2748 else
2749 am__leading_dot=_
2751 rmdir .tst 2>/dev/null
2753 DEPDIR="${am__leading_dot}deps"
2755 ac_config_commands="$ac_config_commands depfiles"
2758 am_make=${MAKE-make}
2759 cat > confinc << 'END'
2760 am__doit:
2761 @echo done
2762 .PHONY: am__doit
2764 # If we don't find an include directive, just comment out the code.
2765 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767 am__include="#"
2768 am__quote=
2769 _am_result=none
2770 # First try GNU make style include.
2771 echo "include confinc" > confmf
2772 # We grep out `Entering directory' and `Leaving directory'
2773 # messages which can occur if `w' ends up in MAKEFLAGS.
2774 # In particular we don't look at `^make:' because GNU make might
2775 # be invoked under some other name (usually "gmake"), in which
2776 # case it prints its new name instead of `make'.
2777 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2782 # Now try BSD make style include.
2783 if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2793 echo "$as_me:$LINENO: result: $_am_result" >&5
2794 echo "${ECHO_T}$_am_result" >&6
2795 rm -f confinc confmf
2797 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798 if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2802 if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2808 if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811 else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2818 # test to see if srcdir already configured
2819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2836 # Define the identity of the package.
2837 PACKAGE=ld
2838 VERSION=${BFD_VERSION}
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE "$PACKAGE"
2843 _ACEOF
2846 cat >>confdefs.h <<_ACEOF
2847 #define VERSION "$VERSION"
2848 _ACEOF
2850 # Some tools Automake needs.
2852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2868 # Installed binaries are usually stripped using `strip' when the user
2869 # run `make install-strip'. However `strip' might not be the right
2870 # tool to use in cross-compilation environments, therefore Automake
2871 # will honor the `STRIP' environment variable to overrule this program.
2872 if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}strip; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903 echo "${ECHO_T}$STRIP" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2910 if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913 set dummy strip; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942 echo "${ECHO_T}$ac_ct_STRIP" >&6
2943 else
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2948 STRIP=$ac_ct_STRIP
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956 # We need awk for the "check" target. The system "awk" is bad on
2957 # some platforms.
2958 # Always define AMTAR for backward compatibility.
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967 depcc="$CC" am_compiler_list=
2969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3050 done
3052 cd ..
3053 rm -rf conftest.dir
3054 else
3055 am_cv_CC_dependencies_compiler_type=none
3059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
3070 else
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
3078 # Check whether --enable-shared or --disable-shared was given.
3079 if test "${enable_shared+set}" = set; then
3080 enableval="$enable_shared"
3081 p=${PACKAGE-default}
3082 case $enableval in
3083 yes) enable_shared=yes ;;
3084 no) enable_shared=no ;;
3086 enable_shared=no
3087 # Look at the argument we got. We use all the common list separators.
3088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3089 for pkg in $enableval; do
3090 if test "X$pkg" = "X$p"; then
3091 enable_shared=yes
3093 done
3094 IFS="$ac_save_ifs"
3096 esac
3097 else
3098 enable_shared=yes
3100 # Check whether --enable-static or --disable-static was given.
3101 if test "${enable_static+set}" = set; then
3102 enableval="$enable_static"
3103 p=${PACKAGE-default}
3104 case $enableval in
3105 yes) enable_static=yes ;;
3106 no) enable_static=no ;;
3108 enable_static=no
3109 # Look at the argument we got. We use all the common list separators.
3110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3111 for pkg in $enableval; do
3112 if test "X$pkg" = "X$p"; then
3113 enable_static=yes
3115 done
3116 IFS="$ac_save_ifs"
3118 esac
3119 else
3120 enable_static=yes
3122 # Check whether --enable-fast-install or --disable-fast-install was given.
3123 if test "${enable_fast_install+set}" = set; then
3124 enableval="$enable_fast_install"
3125 p=${PACKAGE-default}
3126 case $enableval in
3127 yes) enable_fast_install=yes ;;
3128 no) enable_fast_install=no ;;
3130 enable_fast_install=no
3131 # Look at the argument we got. We use all the common list separators.
3132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3133 for pkg in $enableval; do
3134 if test "X$pkg" = "X$p"; then
3135 enable_fast_install=yes
3137 done
3138 IFS="$ac_save_ifs"
3140 esac
3141 else
3142 enable_fast_install=yes
3145 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3146 if test "${with_gnu_ld+set}" = set; then
3147 withval="$with_gnu_ld"
3148 test "$withval" = no || with_gnu_ld=yes
3149 else
3150 with_gnu_ld=no
3152 ac_prog=ld
3153 if test "$GCC" = yes; then
3154 # Check if gcc -print-prog-name=ld gives a path.
3155 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3156 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3157 case $host in
3158 *-*-mingw*)
3159 # gcc leaves a trailing carriage return which upsets mingw
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3163 esac
3164 case $ac_prog in
3165 # Accept absolute paths.
3166 [\\/]* | [A-Za-z]:[\\/]*)
3167 re_direlt='/[^/][^/]*/\.\./'
3168 # Canonicalize the path of ld
3169 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3171 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3172 done
3173 test -z "$LD" && LD="$ac_prog"
3176 # If it fails, then pretend we aren't using GCC.
3177 ac_prog=ld
3180 # If it is relative, then search for the first ld in PATH.
3181 with_gnu_ld=unknown
3183 esac
3184 elif test "$with_gnu_ld" = yes; then
3185 echo "$as_me:$LINENO: checking for GNU ld" >&5
3186 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3187 else
3188 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3189 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3191 if test "${lt_cv_path_LD+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if test -z "$LD"; then
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3196 for ac_dir in $PATH; do
3197 test -z "$ac_dir" && ac_dir=.
3198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3199 lt_cv_path_LD="$ac_dir/$ac_prog"
3200 # Check to see if the program is GNU ld. I'd rather use --version,
3201 # but apparently some GNU ld's only accept -v.
3202 # Break only if it was the GNU/non-GNU ld that we prefer.
3203 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3204 test "$with_gnu_ld" != no && break
3205 else
3206 test "$with_gnu_ld" != yes && break
3209 done
3210 IFS="$ac_save_ifs"
3211 else
3212 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3216 LD="$lt_cv_path_LD"
3217 if test -n "$LD"; then
3218 echo "$as_me:$LINENO: result: $LD" >&5
3219 echo "${ECHO_T}$LD" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3224 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3225 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3226 { (exit 1); exit 1; }; }
3227 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3228 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3229 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3233 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3234 lt_cv_prog_gnu_ld=yes
3235 else
3236 lt_cv_prog_gnu_ld=no
3239 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3240 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3241 with_gnu_ld=$lt_cv_prog_gnu_ld
3244 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3245 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3246 if test "${lt_cv_ld_reload_flag+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 lt_cv_ld_reload_flag='-r'
3251 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3252 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3253 reload_flag=$lt_cv_ld_reload_flag
3254 test -n "$reload_flag" && reload_flag=" $reload_flag"
3256 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3257 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3258 if test "${lt_cv_path_NM+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 if test -n "$NM"; then
3262 # Let the user override the test.
3263 lt_cv_path_NM="$NM"
3264 else
3265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3266 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3267 test -z "$ac_dir" && ac_dir=.
3268 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3269 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3270 # Check to see if the nm accepts a BSD-compat flag.
3271 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3272 # nm: unknown option "B" ignored
3273 # Tru64's nm complains that /dev/null is an invalid object file
3274 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3275 lt_cv_path_NM="$tmp_nm -B"
3276 break
3277 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3278 lt_cv_path_NM="$tmp_nm -p"
3279 break
3280 else
3281 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3282 continue # so that we can try to find one that supports BSD flags
3285 done
3286 IFS="$ac_save_ifs"
3287 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3291 NM="$lt_cv_path_NM"
3292 echo "$as_me:$LINENO: result: $NM" >&5
3293 echo "${ECHO_T}$NM" >&6
3295 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3296 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3297 LN_S=$as_ln_s
3298 if test "$LN_S" = "ln -s"; then
3299 echo "$as_me:$LINENO: result: yes" >&5
3300 echo "${ECHO_T}yes" >&6
3301 else
3302 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3303 echo "${ECHO_T}no, using $LN_S" >&6
3306 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3307 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3308 if test "${lt_cv_deplibs_check_method+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 lt_cv_file_magic_cmd='$MAGIC_CMD'
3312 lt_cv_file_magic_test_file=
3313 lt_cv_deplibs_check_method='unknown'
3314 # Need to set the preceding variable on all platforms that support
3315 # interlibrary dependencies.
3316 # 'none' -- dependencies not supported.
3317 # `unknown' -- same as none, but documents that we really don't know.
3318 # 'pass_all' -- all dependencies passed with no checks.
3319 # 'test_compile' -- check by making test program.
3320 # 'file_magic [regex]' -- check by looking for files in library path
3321 # which responds to the $file_magic_cmd with a given egrep regex.
3322 # If you have `file' or equivalent on your system and you're not sure
3323 # whether `pass_all' will *always* work, you probably want this one.
3325 case $host_os in
3326 aix*)
3327 lt_cv_deplibs_check_method=pass_all
3330 beos*)
3331 lt_cv_deplibs_check_method=pass_all
3334 bsdi4*)
3335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3336 lt_cv_file_magic_cmd='/usr/bin/file -L'
3337 lt_cv_file_magic_test_file=/shlib/libc.so
3340 cygwin* | mingw* |pw32*)
3341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3342 lt_cv_file_magic_cmd='$OBJDUMP -f'
3345 darwin* | rhapsody*)
3346 # this will be overwritten by pass_all, but leave it in just in case
3347 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3348 lt_cv_file_magic_cmd='/usr/bin/file -L'
3349 case "$host_os" in
3350 rhapsody* | darwin1.012)
3351 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3353 *) # Darwin 1.3 on
3354 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3356 esac
3357 lt_cv_deplibs_check_method=pass_all
3360 freebsd* | kfreebsd*-gnu)
3361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3362 case $host_cpu in
3363 i*86 )
3364 # Not sure whether the presence of OpenBSD here was a mistake.
3365 # Let's accept both of them until this is cleared up.
3366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3367 lt_cv_file_magic_cmd=/usr/bin/file
3368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3370 esac
3371 else
3372 lt_cv_deplibs_check_method=pass_all
3376 gnu*)
3377 lt_cv_deplibs_check_method=pass_all
3380 hpux10.20*|hpux11*)
3381 case $host_cpu in
3382 hppa*)
3383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3384 lt_cv_file_magic_cmd=/usr/bin/file
3385 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3387 ia64*)
3388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3389 lt_cv_file_magic_cmd=/usr/bin/file
3390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3392 esac
3395 irix5* | irix6*)
3396 case $host_os in
3397 irix5*)
3398 # this will be overridden with pass_all, but let us keep it just in case
3399 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3402 case $LD in
3403 *-32|*"-32 ") libmagic=32-bit;;
3404 *-n32|*"-n32 ") libmagic=N32;;
3405 *-64|*"-64 ") libmagic=64-bit;;
3406 *) libmagic=never-match;;
3407 esac
3408 # this will be overridden with pass_all, but let us keep it just in case
3409 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3411 esac
3412 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3413 lt_cv_deplibs_check_method=pass_all
3416 # This must be Linux ELF.
3417 linux-gnu*)
3418 lt_cv_deplibs_check_method=pass_all
3421 netbsd* | knetbsd*-gnu)
3422 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3423 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3424 else
3425 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3429 newsos6)
3430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3431 lt_cv_file_magic_cmd=/usr/bin/file
3432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3435 osf3* | osf4* | osf5*)
3436 # this will be overridden with pass_all, but let us keep it just in case
3437 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3438 lt_cv_file_magic_test_file=/shlib/libc.so
3439 lt_cv_deplibs_check_method=pass_all
3442 sco3.2v5*)
3443 lt_cv_deplibs_check_method=pass_all
3446 solaris*)
3447 lt_cv_deplibs_check_method=pass_all
3448 lt_cv_file_magic_test_file=/lib/libc.so
3451 sysv5uw[78]* | sysv4*uw2*)
3452 lt_cv_deplibs_check_method=pass_all
3455 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3456 case $host_vendor in
3457 ncr)
3458 lt_cv_deplibs_check_method=pass_all
3460 motorola)
3461 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]'
3462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3464 esac
3466 esac
3469 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3470 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3471 file_magic_cmd=$lt_cv_file_magic_cmd
3472 deplibs_check_method=$lt_cv_deplibs_check_method
3477 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3479 # find the maximum length of command line arguments
3480 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3481 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3486 teststring="ABCD"
3488 case $build_os in
3489 msdosdjgpp*)
3490 # On DJGPP, this test can blow up pretty badly due to problems in libc
3491 # (any single argument exceeding 2000 bytes causes a buffer overrun
3492 # during glob expansion). Even if it were fixed, the result of this
3493 # check would be larger than it should be.
3494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3497 cygwin* | mingw*)
3498 # On Win9x/ME, this test blows up -- it succeeds, but takes
3499 # about 5 minutes as the teststring grows exponentially.
3500 # Worse, since 9x/ME are not pre-emptively multitasking,
3501 # you end up with a "frozen" computer, even though with patience
3502 # the test eventually succeeds (with a max line length of 256k).
3503 # Instead, let's just punt: use the minimum linelength reported by
3504 # all of the supported platforms: 8192 (on NT/2K/XP).
3505 lt_cv_sys_max_cmd_len=8192;
3508 amigaos*)
3509 # On AmigaOS with pdksh, this test takes hours, literally.
3510 # So we just punt and use a minimum line length of 8192.
3511 lt_cv_sys_max_cmd_len=8192;
3514 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3515 # This has been around since 386BSD, at least. Likely further.
3516 if test -x /sbin/sysctl; then
3517 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3518 elif test -x /usr/sbin/sysctl; then
3519 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3520 else
3521 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3523 # And add a safety zone
3524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3527 esac
3531 if test -n "$lt_cv_sys_max_cmd_len" ; then
3532 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3533 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3534 else
3535 echo "$as_me:$LINENO: result: none" >&5
3536 echo "${ECHO_T}none" >&6
3540 # Only perform the check for file, if the check method requires it
3541 case $deplibs_check_method in
3542 file_magic*)
3543 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3544 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3545 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 case $MAGIC_CMD in
3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3553 ?:/*)
3554 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3557 ac_save_MAGIC_CMD="$MAGIC_CMD"
3558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 ac_dummy="/usr/bin:$PATH"
3560 for ac_dir in $ac_dummy; do
3561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/${ac_tool_prefix}file; then
3563 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3564 if test -n "$file_magic_test_file"; then
3565 case $deplibs_check_method in
3566 "file_magic "*)
3567 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3570 egrep "$file_magic_regex" > /dev/null; then
3572 else
3573 cat <<EOF 1>&2
3575 *** Warning: the command libtool uses to detect shared libraries,
3576 *** $file_magic_cmd, produces output that libtool cannot recognize.
3577 *** The result is that libtool may fail to recognize shared libraries
3578 *** as such. This will affect the creation of libtool libraries that
3579 *** depend on shared libraries, but programs linked with such libtool
3580 *** libraries will work regardless of this problem. Nevertheless, you
3581 *** may want to report the problem to your system manager and/or to
3582 *** bug-libtool@gnu.org
3585 fi ;;
3586 esac
3588 break
3590 done
3591 IFS="$ac_save_ifs"
3592 MAGIC_CMD="$ac_save_MAGIC_CMD"
3594 esac
3597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3598 if test -n "$MAGIC_CMD"; then
3599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3600 echo "${ECHO_T}$MAGIC_CMD" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3606 if test -z "$lt_cv_path_MAGIC_CMD"; then
3607 if test -n "$ac_tool_prefix"; then
3608 echo "$as_me:$LINENO: checking for file" >&5
3609 echo $ECHO_N "checking for file... $ECHO_C" >&6
3610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 case $MAGIC_CMD in
3615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3617 ?:/*)
3618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3621 ac_save_MAGIC_CMD="$MAGIC_CMD"
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3623 ac_dummy="/usr/bin:$PATH"
3624 for ac_dir in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f $ac_dir/file; then
3627 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3628 if test -n "$file_magic_test_file"; then
3629 case $deplibs_check_method in
3630 "file_magic "*)
3631 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3634 egrep "$file_magic_regex" > /dev/null; then
3636 else
3637 cat <<EOF 1>&2
3639 *** Warning: the command libtool uses to detect shared libraries,
3640 *** $file_magic_cmd, produces output that libtool cannot recognize.
3641 *** The result is that libtool may fail to recognize shared libraries
3642 *** as such. This will affect the creation of libtool libraries that
3643 *** depend on shared libraries, but programs linked with such libtool
3644 *** libraries will work regardless of this problem. Nevertheless, you
3645 *** may want to report the problem to your system manager and/or to
3646 *** bug-libtool@gnu.org
3649 fi ;;
3650 esac
3652 break
3654 done
3655 IFS="$ac_save_ifs"
3656 MAGIC_CMD="$ac_save_MAGIC_CMD"
3658 esac
3661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3662 if test -n "$MAGIC_CMD"; then
3663 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3664 echo "${ECHO_T}$MAGIC_CMD" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3670 else
3671 MAGIC_CMD=:
3677 esac
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3682 echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_RANLIB+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 if test -n "$RANLIB"; then
3688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3701 done
3702 done
3706 RANLIB=$ac_cv_prog_RANLIB
3707 if test -n "$RANLIB"; then
3708 echo "$as_me:$LINENO: result: $RANLIB" >&5
3709 echo "${ECHO_T}$RANLIB" >&6
3710 else
3711 echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3716 if test -z "$ac_cv_prog_RANLIB"; then
3717 ac_ct_RANLIB=$RANLIB
3718 # Extract the first word of "ranlib", so it can be a program name with args.
3719 set dummy ranlib; ac_word=$2
3720 echo "$as_me:$LINENO: checking for $ac_word" >&5
3721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 if test -n "$ac_ct_RANLIB"; then
3726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_RANLIB="ranlib"
3736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3742 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3746 if test -n "$ac_ct_RANLIB"; then
3747 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3748 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 RANLIB=$ac_ct_RANLIB
3755 else
3756 RANLIB="$ac_cv_prog_RANLIB"
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}strip; ac_word=$2
3762 echo "$as_me:$LINENO: checking for $ac_word" >&5
3763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3764 if test "${ac_cv_prog_STRIP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 if test -n "$STRIP"; then
3768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 break 2
3781 done
3782 done
3786 STRIP=$ac_cv_prog_STRIP
3787 if test -n "$STRIP"; then
3788 echo "$as_me:$LINENO: result: $STRIP" >&5
3789 echo "${ECHO_T}$STRIP" >&6
3790 else
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3796 if test -z "$ac_cv_prog_STRIP"; then
3797 ac_ct_STRIP=$STRIP
3798 # Extract the first word of "strip", so it can be a program name with args.
3799 set dummy strip; ac_word=$2
3800 echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 if test -n "$ac_ct_STRIP"; then
3806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_ac_ct_STRIP="strip"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3819 done
3820 done
3822 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3826 if test -n "$ac_ct_STRIP"; then
3827 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3828 echo "${ECHO_T}$ac_ct_STRIP" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 STRIP=$ac_ct_STRIP
3835 else
3836 STRIP="$ac_cv_prog_STRIP"
3840 # Check for any special flags to pass to ltconfig.
3841 libtool_flags="--cache-file=$cache_file"
3842 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3843 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3844 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3845 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3846 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3849 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3850 if test "${enable_libtool_lock+set}" = set; then
3851 enableval="$enable_libtool_lock"
3854 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3855 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3858 # Check whether --with-pic or --without-pic was given.
3859 if test "${with_pic+set}" = set; then
3860 withval="$with_pic"
3861 pic_mode="$withval"
3862 else
3863 pic_mode=default
3865 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3866 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3868 # Some flags need to be propagated to the compiler or linker for good
3869 # libtool support.
3870 case $host in
3871 *-*-irix6*)
3872 # Find out which ABI we are using.
3873 echo '#line 3873 "configure"' > conftest.$ac_ext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; then
3879 if test "$lt_cv_prog_gnu_ld" = yes; then
3880 case `/usr/bin/file conftest.$ac_objext` in
3881 *32-bit*)
3882 LD="${LD-ld} -melf32bsmip"
3884 *N32*)
3885 LD="${LD-ld} -melf32bmipn32"
3887 *64-bit*)
3888 LD="${LD-ld} -melf64bmip"
3890 esac
3891 else
3892 case `/usr/bin/file conftest.$ac_objext` in
3893 *32-bit*)
3894 LD="${LD-ld} -32"
3896 *N32*)
3897 LD="${LD-ld} -n32"
3899 *64-bit*)
3900 LD="${LD-ld} -64"
3902 esac
3905 rm -rf conftest*
3908 ia64-*-hpux*)
3909 # Find out which ABI we are using.
3910 echo 'int i;' > conftest.$ac_ext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; then
3916 case "`/usr/bin/file conftest.o`" in
3917 *ELF-32*)
3918 HPUX_IA64_MODE="32"
3920 *ELF-64*)
3921 HPUX_IA64_MODE="64"
3923 esac
3925 rm -rf conftest*
3928 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3929 # Find out which ABI we are using.
3930 echo 'int i;' > conftest.$ac_ext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932 (eval $ac_compile) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; then
3936 case "`/usr/bin/file conftest.o`" in
3937 *32-bit*)
3938 case $host in
3939 x86_64-*linux*)
3940 LD="${LD-ld} -m elf_i386"
3942 ppc64-*linux*|powerpc64-*linux*)
3943 LD="${LD-ld} -m elf32ppclinux"
3945 s390x-*linux*)
3946 LD="${LD-ld} -m elf_s390"
3948 sparc64-*linux*)
3949 LD="${LD-ld} -m elf32_sparc"
3951 esac
3953 *64-bit*)
3954 case $host in
3955 x86_64-*linux*)
3956 LD="${LD-ld} -m elf_x86_64"
3958 ppc*-*linux*|powerpc*-*linux*)
3959 LD="${LD-ld} -m elf64ppc"
3961 s390*-*linux*)
3962 LD="${LD-ld} -m elf64_s390"
3964 sparc*-*linux*)
3965 LD="${LD-ld} -m elf64_sparc"
3967 esac
3969 esac
3971 rm -rf conftest*
3974 *-*-sco3.2v5*)
3975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3976 SAVE_CFLAGS="$CFLAGS"
3977 CFLAGS="$CFLAGS -belf"
3978 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3979 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3980 if test "${lt_cv_cc_needs_belf+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3999 main ()
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.$ac_objext conftest$ac_exeext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 lt_cv_cc_needs_belf=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 lt_cv_cc_needs_belf=no
4035 rm -f conftest.err conftest.$ac_objext \
4036 conftest$ac_exeext conftest.$ac_ext
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4045 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4046 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4047 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4048 CFLAGS="$SAVE_CFLAGS"
4053 esac
4056 # Save cache, so that ltconfig can load it
4057 cat >confcache <<\_ACEOF
4058 # This file is a shell script that caches the results of configure
4059 # tests run on this system so they can be shared between configure
4060 # scripts and configure runs, see configure's option --config-cache.
4061 # It is not useful on other systems. If it contains results you don't
4062 # want to keep, you may remove or edit it.
4064 # config.status only pays attention to the cache file if you give it
4065 # the --recheck option to rerun configure.
4067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4069 # following values.
4071 _ACEOF
4073 # The following way of writing the cache mishandles newlines in values,
4074 # but we know of no workaround that is simple, portable, and efficient.
4075 # So, don't put newlines in cache variables' values.
4076 # Ultrix sh set writes to stderr and can't be redirected directly,
4077 # and sets the high bit in the cache file unless we assign to the vars.
4079 (set) 2>&1 |
4080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4081 *ac_space=\ *)
4082 # `set' does not quote correctly, so add quotes (double-quote
4083 # substitution turns \\\\ into \\, and sed turns \\ into \).
4084 sed -n \
4085 "s/'/'\\\\''/g;
4086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4089 # `set' quotes correctly as required by POSIX, so do not add quotes.
4090 sed -n \
4091 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4093 esac;
4095 sed '
4096 t clear
4097 : clear
4098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4099 t end
4100 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4101 : end' >>confcache
4102 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4103 if test -w $cache_file; then
4104 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4105 cat confcache >$cache_file
4106 else
4107 echo "not updating unwritable cache $cache_file"
4110 rm -f confcache
4112 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4113 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4114 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4115 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4116 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4117 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4118 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4119 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4120 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4121 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4122 echo "$as_me: error: libtool configure failed" >&2;}
4123 { (exit 1); exit 1; }; }
4125 # Reload cache, that may have been modified by ltconfig
4126 if test -r "$cache_file"; then
4127 # Some versions of bash will fail to source /dev/null (special
4128 # files actually), so we avoid doing that.
4129 if test -f "$cache_file"; then
4130 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4131 echo "$as_me: loading cache $cache_file" >&6;}
4132 case $cache_file in
4133 [\\/]* | ?:[\\/]* ) . $cache_file;;
4134 *) . ./$cache_file;;
4135 esac
4137 else
4138 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4139 echo "$as_me: creating cache $cache_file" >&6;}
4140 >$cache_file
4144 # This can be used to rebuild libtool when needed
4145 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4147 # Always use our own libtool.
4148 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4150 # Redirect the config.log output again, so that the ltconfig log is not
4151 # clobbered by the next message.
4152 exec 5>>./config.log
4161 # Check whether --with-lib-path or --without-lib-path was given.
4162 if test "${with_lib_path+set}" = set; then
4163 withval="$with_lib_path"
4164 LIB_PATH=$withval
4166 # Check whether --enable-targets or --disable-targets was given.
4167 if test "${enable_targets+set}" = set; then
4168 enableval="$enable_targets"
4169 case "${enableval}" in
4170 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4171 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4172 { (exit 1); exit 1; }; }
4174 no) enable_targets= ;;
4175 *) enable_targets=$enableval ;;
4176 esac
4177 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4178 if test "${enable_64_bit_bfd+set}" = set; then
4179 enableval="$enable_64_bit_bfd"
4180 case "${enableval}" in
4181 yes) want64=true ;;
4182 no) want64=false ;;
4183 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4184 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4185 { (exit 1); exit 1; }; } ;;
4186 esac
4187 else
4188 want64=false
4191 # Check whether --with-sysroot or --without-sysroot was given.
4192 if test "${with_sysroot+set}" = set; then
4193 withval="$with_sysroot"
4195 case ${with_sysroot} in
4196 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4197 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4198 esac
4200 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4201 use_sysroot=yes
4203 if test "x$exec_prefix" = xNONE; then
4204 if test "x$prefix" = xNONE; then
4205 test_prefix=/usr/local
4206 else
4207 test_prefix=$prefix
4209 else
4210 test_prefix=$exec_prefix
4212 case ${TARGET_SYSTEM_ROOT} in
4213 "${test_prefix}"|"${test_prefix}/"*|\
4214 '${exec_prefix}'|'${exec_prefix}/'*)
4215 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4216 TARGET_SYSTEM_ROOT_DEFINE="$t"
4218 esac
4220 else
4222 use_sysroot=no
4223 TARGET_SYSTEM_ROOT=
4224 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4231 # The location to which bugs should be reported.
4233 # Check whether --with-bugurl or --without-bugurl was given.
4234 if test "${with_bugurl+set}" = set; then
4235 withval="$with_bugurl"
4236 case "$withval" in
4237 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4238 echo "$as_me: error: bug URL not specified" >&2;}
4239 { (exit 1); exit 1; }; } ;;
4240 no) REPORT_BUGS_TO="" ;;
4241 *) REPORT_BUGS_TO="<URL:$withval>" ;;
4242 esac
4243 else
4244 REPORT_BUGS_TO=""
4250 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4252 # Check whether --enable-werror or --disable-werror was given.
4253 if test "${enable_werror+set}" = set; then
4254 enableval="$enable_werror"
4255 case "${enableval}" in
4256 yes | y) ERROR_ON_WARNING="yes" ;;
4257 no | n) ERROR_ON_WARNING="no" ;;
4258 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4259 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4260 { (exit 1); exit 1; }; } ;;
4261 esac
4264 # Enable -Werror by default when using gcc
4265 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4266 ERROR_ON_WARNING=yes
4269 NO_WERROR=
4270 if test "${ERROR_ON_WARNING}" = yes ; then
4271 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4272 NO_WERROR="-Wno-error"
4275 if test "${GCC}" = yes ; then
4276 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4279 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4280 if test "${enable_build_warnings+set}" = set; then
4281 enableval="$enable_build_warnings"
4282 case "${enableval}" in
4283 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4284 no) if test "${GCC}" = yes ; then
4285 WARN_CFLAGS="-w"
4286 fi;;
4287 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4288 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4289 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4290 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4291 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4292 esac
4295 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4296 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4303 ac_config_headers="$ac_config_headers config.h:config.in"
4306 if test -z "$target" ; then
4307 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4308 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4309 { (exit 1); exit 1; }; }
4311 if test -z "$host" ; then
4312 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4313 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4314 { (exit 1); exit 1; }; }
4317 # host-specific stuff:
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 if test -n "$ac_tool_prefix"; then
4325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$CC"; then
4333 ac_cv_prog_CC="$CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4351 CC=$ac_cv_prog_CC
4352 if test -n "$CC"; then
4353 echo "$as_me:$LINENO: result: $CC" >&5
4354 echo "${ECHO_T}$CC" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4361 if test -z "$ac_cv_prog_CC"; then
4362 ac_ct_CC=$CC
4363 # Extract the first word of "gcc", so it can be a program name with args.
4364 set dummy gcc; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_ac_ct_CC="gcc"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4390 if test -n "$ac_ct_CC"; then
4391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4392 echo "${ECHO_T}$ac_ct_CC" >&6
4393 else
4394 echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6
4398 CC=$ac_ct_CC
4399 else
4400 CC="$ac_cv_prog_CC"
4403 if test -z "$CC"; then
4404 if test -n "$ac_tool_prefix"; then
4405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4406 set dummy ${ac_tool_prefix}cc; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_prog_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 if test -n "$CC"; then
4413 ac_cv_prog_CC="$CC" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_CC="${ac_tool_prefix}cc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4431 CC=$ac_cv_prog_CC
4432 if test -n "$CC"; then
4433 echo "$as_me:$LINENO: result: $CC" >&5
4434 echo "${ECHO_T}$CC" >&6
4435 else
4436 echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6
4441 if test -z "$ac_cv_prog_CC"; then
4442 ac_ct_CC=$CC
4443 # Extract the first word of "cc", so it can be a program name with args.
4444 set dummy cc; ac_word=$2
4445 echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 if test -n "$ac_ct_CC"; then
4451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_ac_ct_CC="cc"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4470 if test -n "$ac_ct_CC"; then
4471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4472 echo "${ECHO_T}$ac_ct_CC" >&6
4473 else
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4478 CC=$ac_ct_CC
4479 else
4480 CC="$ac_cv_prog_CC"
4484 if test -z "$CC"; then
4485 # Extract the first word of "cc", so it can be a program name with args.
4486 set dummy cc; ac_word=$2
4487 echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4489 if test "${ac_cv_prog_CC+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 if test -n "$CC"; then
4493 ac_cv_prog_CC="$CC" # Let the user override the test.
4494 else
4495 ac_prog_rejected=no
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4504 ac_prog_rejected=yes
4505 continue
4507 ac_cv_prog_CC="cc"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4511 done
4512 done
4514 if test $ac_prog_rejected = yes; then
4515 # We found a bogon in the path, so make sure we never use it.
4516 set dummy $ac_cv_prog_CC
4517 shift
4518 if test $# != 0; then
4519 # We chose a different compiler from the bogus one.
4520 # However, it has the same basename, so the bogon will be chosen
4521 # first if we set CC to just the basename; use the full file name.
4522 shift
4523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4528 CC=$ac_cv_prog_CC
4529 if test -n "$CC"; then
4530 echo "$as_me:$LINENO: result: $CC" >&5
4531 echo "${ECHO_T}$CC" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4538 if test -z "$CC"; then
4539 if test -n "$ac_tool_prefix"; then
4540 for ac_prog in cl
4542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4544 echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_prog_CC+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570 echo "$as_me:$LINENO: result: $CC" >&5
4571 echo "${ECHO_T}$CC" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 test -n "$CC" && break
4578 done
4580 if test -z "$CC"; then
4581 ac_ct_CC=$CC
4582 for ac_prog in cl
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="$ac_prog"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4613 echo "${ECHO_T}$ac_ct_CC" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4619 test -n "$ac_ct_CC" && break
4620 done
4622 CC=$ac_ct_CC
4628 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: no acceptable C compiler found in \$PATH
4631 See \`config.log' for more details." >&2;}
4632 { (exit 1); exit 1; }; }
4634 # Provide some information about the compiler.
4635 echo "$as_me:$LINENO:" \
4636 "checking for C compiler version" >&5
4637 ac_compiler=`set X $ac_compile; echo $2`
4638 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4639 (eval $ac_compiler --version </dev/null >&5) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }
4643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4644 (eval $ac_compiler -v </dev/null >&5) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4649 (eval $ac_compiler -V </dev/null >&5) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }
4654 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4655 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4667 main ()
4669 #ifndef __GNUC__
4670 choke me
4671 #endif
4674 return 0;
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_c_werror_flag"
4687 || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_compiler_gnu=yes
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_compiler_gnu=no
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4710 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4712 GCC=`test $ac_compiler_gnu = yes && echo yes`
4713 ac_test_CFLAGS=${CFLAGS+set}
4714 ac_save_CFLAGS=$CFLAGS
4715 CFLAGS="-g"
4716 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4717 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4718 if test "${ac_cv_prog_cc_g+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4729 main ()
4733 return 0;
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -z "$ac_c_werror_flag"
4746 || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_prog_cc_g=yes
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 ac_cv_prog_cc_g=no
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4768 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4769 if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4773 CFLAGS="-g -O2"
4774 else
4775 CFLAGS="-g"
4777 else
4778 if test "$GCC" = yes; then
4779 CFLAGS="-O2"
4780 else
4781 CFLAGS=
4784 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4785 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4786 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 ac_cv_prog_cc_stdc=no
4790 ac_save_CC=$CC
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 #include <stdarg.h>
4798 #include <stdio.h>
4799 #include <sys/types.h>
4800 #include <sys/stat.h>
4801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4802 struct buf { int x; };
4803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4804 static char *e (p, i)
4805 char **p;
4806 int i;
4808 return p[i];
4810 static char *f (char * (*g) (char **, int), char **p, ...)
4812 char *s;
4813 va_list v;
4814 va_start (v,p);
4815 s = g (p, va_arg (v,int));
4816 va_end (v);
4817 return s;
4820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4821 function prototypes and stuff, but not '\xHH' hex character constants.
4822 These don't provoke an error unfortunately, instead are silently treated
4823 as 'x'. The following induces an error, until -std1 is added to get
4824 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4825 array size at least. It's necessary to write '\x00'==0 to get something
4826 that's true only with -std1. */
4827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4829 int test (int i, double x);
4830 struct s1 {int (*f) (int a);};
4831 struct s2 {int (*f) (double a);};
4832 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4833 int argc;
4834 char **argv;
4836 main ()
4838 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 return 0;
4842 _ACEOF
4843 # Don't try gcc -ansi; that turns off useful extensions and
4844 # breaks some systems' header files.
4845 # AIX -qlanglvl=ansi
4846 # Ultrix and OSF/1 -std1
4847 # HP-UX 10.20 and later -Ae
4848 # HP-UX older versions -Aa -D_HPUX_SOURCE
4849 # SVR4 -Xc -D__EXTENSIONS__
4850 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4852 CC="$ac_save_CC $ac_arg"
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_prog_cc_stdc=$ac_arg
4876 break
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4882 rm -f conftest.err conftest.$ac_objext
4883 done
4884 rm -f conftest.$ac_ext conftest.$ac_objext
4885 CC=$ac_save_CC
4889 case "x$ac_cv_prog_cc_stdc" in
4890 x|xno)
4891 echo "$as_me:$LINENO: result: none needed" >&5
4892 echo "${ECHO_T}none needed" >&6 ;;
4894 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4895 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4896 CC="$CC $ac_cv_prog_cc_stdc" ;;
4897 esac
4899 # Some people use a C++ compiler to compile C. Since we use `exit',
4900 # in C++ we need to declare it. In case someone uses the same compiler
4901 # for both compiling C and C++ we need to have the C++ compiler decide
4902 # the declaration of exit, since it's the most demanding environment.
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #ifndef __cplusplus
4905 choke me
4906 #endif
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 for ac_declaration in \
4931 '' \
4932 'extern "C" void std::exit (int) throw (); using std::exit;' \
4933 'extern "C" void std::exit (int); using std::exit;' \
4934 'extern "C" void exit (int) throw ();' \
4935 'extern "C" void exit (int);' \
4936 'void exit (int);'
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944 $ac_declaration
4945 #include <stdlib.h>
4947 main ()
4949 exit (42);
4951 return 0;
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -z "$ac_c_werror_flag"
4964 || test ! -s conftest.err'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 continue
4983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 $ac_declaration
4992 main ()
4994 exit (42);
4996 return 0;
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001 (eval $ac_compile) 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
5008 { ac_try='test -z "$ac_c_werror_flag"
5009 || test ! -s conftest.err'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; } &&
5015 { ac_try='test -s conftest.$ac_objext'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 break
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 done
5029 rm -f conftest*
5030 if test -n "$ac_declaration"; then
5031 echo '#ifdef __cplusplus' >>confdefs.h
5032 echo $ac_declaration >>confdefs.h
5033 echo '#endif' >>confdefs.h
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5048 # Find a good install program. We prefer a C program (faster),
5049 # so one script is as good as another. But avoid the broken or
5050 # incompatible versions:
5051 # SysV /etc/install, /usr/sbin/install
5052 # SunOS /usr/etc/install
5053 # IRIX /sbin/install
5054 # AIX /bin/install
5055 # AmigaOS /C/install, which installs bootblocks on floppy discs
5056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5059 # OS/2's system install, which has a completely different semantic
5060 # ./install, which can be erroneously created by make from ./install.sh.
5061 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5062 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5063 if test -z "$INSTALL"; then
5064 if test "${ac_cv_path_install+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 # Account for people who put trailing slashes in PATH elements.
5073 case $as_dir/ in
5074 ./ | .// | /cC/* | \
5075 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5076 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5077 /usr/ucb/* ) ;;
5079 # OSF1 and SCO ODT 3.0 have their own names for install.
5080 # Don't use installbsd from OSF since it installs stuff as root
5081 # by default.
5082 for ac_prog in ginstall scoinst install; do
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5085 if test $ac_prog = install &&
5086 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5087 # AIX install. It has an incompatible calling convention.
5089 elif test $ac_prog = install &&
5090 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5091 # program-specific install script used by HP pwplus--don't use.
5093 else
5094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5095 break 3
5098 done
5099 done
5101 esac
5102 done
5106 if test "${ac_cv_path_install+set}" = set; then
5107 INSTALL=$ac_cv_path_install
5108 else
5109 # As a last resort, use the slow shell script. We don't cache a
5110 # path for INSTALL within a source directory, because that will
5111 # break other packages using the cache if that directory is
5112 # removed, or if the path is relative.
5113 INSTALL=$ac_install_sh
5116 echo "$as_me:$LINENO: result: $INSTALL" >&5
5117 echo "${ECHO_T}$INSTALL" >&6
5119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5120 # It thinks the first close brace ends the variable substitution.
5121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5123 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5125 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5128 ALL_LINGUAS="fr sv tr es da vi zh_CN"
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_RANLIB+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 if test -n "$RANLIB"; then
5138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5156 RANLIB=$ac_cv_prog_RANLIB
5157 if test -n "$RANLIB"; then
5158 echo "$as_me:$LINENO: result: $RANLIB" >&5
5159 echo "${ECHO_T}$RANLIB" >&6
5160 else
5161 echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5166 if test -z "$ac_cv_prog_RANLIB"; then
5167 ac_ct_RANLIB=$RANLIB
5168 # Extract the first word of "ranlib", so it can be a program name with args.
5169 set dummy ranlib; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 if test -n "$ac_ct_RANLIB"; then
5176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_prog_ac_ct_RANLIB="ranlib"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5189 done
5190 done
5192 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5196 if test -n "$ac_ct_RANLIB"; then
5197 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5198 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5199 else
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5204 RANLIB=$ac_ct_RANLIB
5205 else
5206 RANLIB="$ac_cv_prog_RANLIB"
5209 ac_ext=c
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5216 # On Suns, sometimes $CPP names a directory.
5217 if test -n "$CPP" && test -d "$CPP"; then
5218 CPP=
5220 if test -z "$CPP"; then
5221 if test "${ac_cv_prog_CPP+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 # Double quotes because CPP needs to be expanded
5225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5227 ac_preproc_ok=false
5228 for ac_c_preproc_warn_flag in '' yes
5230 # Use a header file that comes with gcc, so configuring glibc
5231 # with a fresh cross-compiler works.
5232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5233 # <limits.h> exists even on freestanding compilers.
5234 # On the NeXT, cc -E runs the code through the compiler's parser,
5235 # not just through cpp. "Syntax error" is here to catch this case.
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #ifdef __STDC__
5243 # include <limits.h>
5244 #else
5245 # include <assert.h>
5246 #endif
5247 Syntax error
5248 _ACEOF
5249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } >/dev/null; then
5257 if test -s conftest.err; then
5258 ac_cpp_err=$ac_c_preproc_warn_flag
5259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5260 else
5261 ac_cpp_err=
5263 else
5264 ac_cpp_err=yes
5266 if test -z "$ac_cpp_err"; then
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 # Broken: fails on valid input.
5273 continue
5275 rm -f conftest.err conftest.$ac_ext
5277 # OK, works on sane cases. Now check whether non-existent headers
5278 # can be detected and how.
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <ac_nonexistent.h>
5286 _ACEOF
5287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } >/dev/null; then
5295 if test -s conftest.err; then
5296 ac_cpp_err=$ac_c_preproc_warn_flag
5297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5298 else
5299 ac_cpp_err=
5301 else
5302 ac_cpp_err=yes
5304 if test -z "$ac_cpp_err"; then
5305 # Broken: success on invalid input.
5306 continue
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 # Passes both tests.
5312 ac_preproc_ok=:
5313 break
5315 rm -f conftest.err conftest.$ac_ext
5317 done
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then
5321 break
5324 done
5325 ac_cv_prog_CPP=$CPP
5328 CPP=$ac_cv_prog_CPP
5329 else
5330 ac_cv_prog_CPP=$CPP
5332 echo "$as_me:$LINENO: result: $CPP" >&5
5333 echo "${ECHO_T}$CPP" >&6
5334 ac_preproc_ok=false
5335 for ac_c_preproc_warn_flag in '' yes
5337 # Use a header file that comes with gcc, so configuring glibc
5338 # with a fresh cross-compiler works.
5339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 # <limits.h> exists even on freestanding compilers.
5341 # On the NeXT, cc -E runs the code through the compiler's parser,
5342 # not just through cpp. "Syntax error" is here to catch this case.
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #ifdef __STDC__
5350 # include <limits.h>
5351 #else
5352 # include <assert.h>
5353 #endif
5354 Syntax error
5355 _ACEOF
5356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } >/dev/null; then
5364 if test -s conftest.err; then
5365 ac_cpp_err=$ac_c_preproc_warn_flag
5366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5367 else
5368 ac_cpp_err=
5370 else
5371 ac_cpp_err=yes
5373 if test -z "$ac_cpp_err"; then
5375 else
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 # Broken: fails on valid input.
5380 continue
5382 rm -f conftest.err conftest.$ac_ext
5384 # OK, works on sane cases. Now check whether non-existent headers
5385 # can be detected and how.
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <ac_nonexistent.h>
5393 _ACEOF
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_c_preproc_warn_flag
5404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405 else
5406 ac_cpp_err=
5408 else
5409 ac_cpp_err=yes
5411 if test -z "$ac_cpp_err"; then
5412 # Broken: success on invalid input.
5413 continue
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 # Passes both tests.
5419 ac_preproc_ok=:
5420 break
5422 rm -f conftest.err conftest.$ac_ext
5424 done
5425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5426 rm -f conftest.err conftest.$ac_ext
5427 if $ac_preproc_ok; then
5429 else
5430 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&5
5432 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5433 See \`config.log' for more details." >&2;}
5434 { (exit 1); exit 1; }; }
5437 ac_ext=c
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444 echo "$as_me:$LINENO: checking for egrep" >&5
5445 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5446 if test "${ac_cv_prog_egrep+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5450 then ac_cv_prog_egrep='grep -E'
5451 else ac_cv_prog_egrep='egrep'
5454 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5455 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5456 EGREP=$ac_cv_prog_egrep
5459 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5461 if test "${ac_cv_header_stdc+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 #include <stdlib.h>
5471 #include <stdarg.h>
5472 #include <string.h>
5473 #include <float.h>
5476 main ()
5480 return 0;
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_header_stdc=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_cv_header_stdc=no
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514 if test $ac_cv_header_stdc = yes; then
5515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <string.h>
5524 _ACEOF
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "memchr" >/dev/null 2>&1; then
5528 else
5529 ac_cv_header_stdc=no
5531 rm -f conftest*
5535 if test $ac_cv_header_stdc = yes; then
5536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 #include <stdlib.h>
5545 _ACEOF
5546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5547 $EGREP "free" >/dev/null 2>&1; then
5549 else
5550 ac_cv_header_stdc=no
5552 rm -f conftest*
5556 if test $ac_cv_header_stdc = yes; then
5557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5558 if test "$cross_compiling" = yes; then
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <ctype.h>
5568 #if ((' ' & 0x0FF) == 0x020)
5569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5571 #else
5572 # define ISLOWER(c) \
5573 (('a' <= (c) && (c) <= 'i') \
5574 || ('j' <= (c) && (c) <= 'r') \
5575 || ('s' <= (c) && (c) <= 'z'))
5576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5577 #endif
5579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5581 main ()
5583 int i;
5584 for (i = 0; i < 256; i++)
5585 if (XOR (islower (i), ISLOWER (i))
5586 || toupper (i) != TOUPPER (i))
5587 exit(2);
5588 exit (0);
5590 _ACEOF
5591 rm -f conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5603 else
5604 echo "$as_me: program exited with status $ac_status" >&5
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ( exit $ac_status )
5609 ac_cv_header_stdc=no
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5615 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5616 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5617 if test $ac_cv_header_stdc = yes; then
5619 cat >>confdefs.h <<\_ACEOF
5620 #define STDC_HEADERS 1
5621 _ACEOF
5625 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5626 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5627 if test "${ac_cv_c_const+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5638 main ()
5640 /* FIXME: Include the comments suggested by Paul. */
5641 #ifndef __cplusplus
5642 /* Ultrix mips cc rejects this. */
5643 typedef int charset[2];
5644 const charset x;
5645 /* SunOS 4.1.1 cc rejects this. */
5646 char const *const *ccp;
5647 char **p;
5648 /* NEC SVR4.0.2 mips cc rejects this. */
5649 struct point {int x, y;};
5650 static struct point const zero = {0,0};
5651 /* AIX XL C 1.02.0.0 rejects this.
5652 It does not let you subtract one const X* pointer from another in
5653 an arm of an if-expression whose if-part is not a constant
5654 expression */
5655 const char *g = "string";
5656 ccp = &g + (g ? g-g : 0);
5657 /* HPUX 7.0 cc rejects these. */
5658 ++ccp;
5659 p = (char**) ccp;
5660 ccp = (char const *const *) p;
5661 { /* SCO 3.2v4 cc rejects this. */
5662 char *t;
5663 char const *s = 0 ? (char *) 0 : (char const *) 0;
5665 *t++ = 0;
5667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5668 int x[] = {25, 17};
5669 const int *foo = &x[0];
5670 ++foo;
5672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5673 typedef const int *iptr;
5674 iptr p = 0;
5675 ++p;
5677 { /* AIX XL C 1.02.0.0 rejects this saying
5678 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5679 struct s { int j; const int *ap[3]; };
5680 struct s *b; b->j = 5;
5682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5683 const int foo = 10;
5685 #endif
5688 return 0;
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -z "$ac_c_werror_flag"
5701 || test ! -s conftest.err'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_c_const=yes
5714 else
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 ac_cv_c_const=no
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5722 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5723 echo "${ECHO_T}$ac_cv_c_const" >&6
5724 if test $ac_cv_c_const = no; then
5726 cat >>confdefs.h <<\_ACEOF
5727 #define const
5728 _ACEOF
5732 echo "$as_me:$LINENO: checking for inline" >&5
5733 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5734 if test "${ac_cv_c_inline+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 ac_cv_c_inline=no
5738 for ac_kw in inline __inline__ __inline; do
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #ifndef __cplusplus
5746 typedef int foo_t;
5747 static $ac_kw foo_t static_foo () {return 0; }
5748 $ac_kw foo_t foo () {return 0; }
5749 #endif
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_c_inline=$ac_kw; break
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 done
5784 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5785 echo "${ECHO_T}$ac_cv_c_inline" >&6
5788 case $ac_cv_c_inline in
5789 inline | yes) ;;
5791 case $ac_cv_c_inline in
5792 no) ac_val=;;
5793 *) ac_val=$ac_cv_c_inline;;
5794 esac
5795 cat >>confdefs.h <<_ACEOF
5796 #ifndef __cplusplus
5797 #define inline $ac_val
5798 #endif
5799 _ACEOF
5801 esac
5803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5814 inttypes.h stdint.h unistd.h
5816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5817 echo "$as_me:$LINENO: checking for $ac_header" >&5
5818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 $ac_includes_default
5830 #include <$ac_header>
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 eval "$as_ac_Header=yes"
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 eval "$as_ac_Header=no"
5861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5866 cat >>confdefs.h <<_ACEOF
5867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5868 _ACEOF
5872 done
5875 echo "$as_me:$LINENO: checking for off_t" >&5
5876 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5877 if test "${ac_cv_type_off_t+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5888 main ()
5890 if ((off_t *) 0)
5891 return 0;
5892 if (sizeof (off_t))
5893 return 0;
5895 return 0;
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_type_off_t=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_cv_type_off_t=no
5927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5930 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5931 if test $ac_cv_type_off_t = yes; then
5933 else
5935 cat >>confdefs.h <<_ACEOF
5936 #define off_t long
5937 _ACEOF
5941 echo "$as_me:$LINENO: checking for size_t" >&5
5942 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5943 if test "${ac_cv_type_size_t+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 $ac_includes_default
5954 main ()
5956 if ((size_t *) 0)
5957 return 0;
5958 if (sizeof (size_t))
5959 return 0;
5961 return 0;
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966 (eval $ac_compile) 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_cv_type_size_t=yes
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_type_size_t=no
5993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5995 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5996 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5997 if test $ac_cv_type_size_t = yes; then
5999 else
6001 cat >>confdefs.h <<_ACEOF
6002 #define size_t unsigned
6003 _ACEOF
6007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6008 # for constant arguments. Useless!
6009 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6010 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6011 if test "${ac_cv_working_alloca_h+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <alloca.h>
6022 main ()
6024 char *p = (char *) alloca (2 * sizeof (int));
6026 return 0;
6028 _ACEOF
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag"
6039 || test ! -s conftest.err'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; } &&
6045 { ac_try='test -s conftest$ac_exeext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 ac_cv_working_alloca_h=yes
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 ac_cv_working_alloca_h=no
6058 rm -f conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6061 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6062 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6063 if test $ac_cv_working_alloca_h = yes; then
6065 cat >>confdefs.h <<\_ACEOF
6066 #define HAVE_ALLOCA_H 1
6067 _ACEOF
6071 echo "$as_me:$LINENO: checking for alloca" >&5
6072 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6073 if test "${ac_cv_func_alloca_works+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #ifdef __GNUC__
6083 # define alloca __builtin_alloca
6084 #else
6085 # ifdef _MSC_VER
6086 # include <malloc.h>
6087 # define alloca _alloca
6088 # else
6089 # if HAVE_ALLOCA_H
6090 # include <alloca.h>
6091 # else
6092 # ifdef _AIX
6093 #pragma alloca
6094 # else
6095 # ifndef alloca /* predefined by HP cc +Olibcalls */
6096 char *alloca ();
6097 # endif
6098 # endif
6099 # endif
6100 # endif
6101 #endif
6104 main ()
6106 char *p = (char *) alloca (1);
6108 return 0;
6110 _ACEOF
6111 rm -f conftest.$ac_objext conftest$ac_exeext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113 (eval $ac_link) 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_c_werror_flag"
6121 || test ! -s conftest.err'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_func_alloca_works=yes
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_cv_func_alloca_works=no
6140 rm -f conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6144 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6146 if test $ac_cv_func_alloca_works = yes; then
6148 cat >>confdefs.h <<\_ACEOF
6149 #define HAVE_ALLOCA 1
6150 _ACEOF
6152 else
6153 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6154 # that cause trouble. Some versions do not even contain alloca or
6155 # contain a buggy version. If you still want to use their alloca,
6156 # use ar to extract alloca.o from them instead of compiling alloca.c.
6158 ALLOCA=alloca.$ac_objext
6160 cat >>confdefs.h <<\_ACEOF
6161 #define C_ALLOCA 1
6162 _ACEOF
6165 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6166 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6167 if test "${ac_cv_os_cray+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 #if defined(CRAY) && ! defined(CRAY2)
6177 webecray
6178 #else
6179 wenotbecray
6180 #endif
6182 _ACEOF
6183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6184 $EGREP "webecray" >/dev/null 2>&1; then
6185 ac_cv_os_cray=yes
6186 else
6187 ac_cv_os_cray=no
6189 rm -f conftest*
6192 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6193 echo "${ECHO_T}$ac_cv_os_cray" >&6
6194 if test $ac_cv_os_cray = yes; then
6195 for ac_func in _getb67 GETB67 getb67; do
6196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6197 echo "$as_me:$LINENO: checking for $ac_func" >&5
6198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6199 if eval "test \"\${$as_ac_var+set}\" = set"; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6210 #define $ac_func innocuous_$ac_func
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func (); below.
6214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6215 <limits.h> exists even on freestanding compilers. */
6217 #ifdef __STDC__
6218 # include <limits.h>
6219 #else
6220 # include <assert.h>
6221 #endif
6223 #undef $ac_func
6225 /* Override any gcc2 internal prototype to avoid an error. */
6226 #ifdef __cplusplus
6227 extern "C"
6229 #endif
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6232 char $ac_func ();
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 choke me
6238 #else
6239 char (*f) () = $ac_func;
6240 #endif
6241 #ifdef __cplusplus
6243 #endif
6246 main ()
6248 return f != $ac_func;
6250 return 0;
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 eval "$as_ac_var=yes"
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 eval "$as_ac_var=no"
6282 rm -f conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6287 if test `eval echo '${'$as_ac_var'}'` = yes; then
6289 cat >>confdefs.h <<_ACEOF
6290 #define CRAY_STACKSEG_END $ac_func
6291 _ACEOF
6293 break
6296 done
6299 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6300 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6301 if test "${ac_cv_c_stack_direction+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 if test "$cross_compiling" = yes; then
6305 ac_cv_c_stack_direction=0
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 find_stack_direction ()
6316 static char *addr = 0;
6317 auto char dummy;
6318 if (addr == 0)
6320 addr = &dummy;
6321 return find_stack_direction ();
6323 else
6324 return (&dummy > addr) ? 1 : -1;
6328 main ()
6330 exit (find_stack_direction () < 0);
6332 _ACEOF
6333 rm -f conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_cv_c_stack_direction=1
6345 else
6346 echo "$as_me: program exited with status $ac_status" >&5
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6350 ( exit $ac_status )
6351 ac_cv_c_stack_direction=-1
6353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6357 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6359 cat >>confdefs.h <<_ACEOF
6360 #define STACK_DIRECTION $ac_cv_c_stack_direction
6361 _ACEOF
6368 for ac_header in stdlib.h unistd.h
6370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo "$as_me:$LINENO: checking for $ac_header" >&5
6373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6379 else
6380 # Is the header compilable?
6381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 #include <$ac_header>
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_header_compiler=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_compiler=no
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6423 echo "${ECHO_T}$ac_header_compiler" >&6
6425 # Is the header present?
6426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #include <$ac_header>
6435 _ACEOF
6436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } >/dev/null; then
6444 if test -s conftest.err; then
6445 ac_cpp_err=$ac_c_preproc_warn_flag
6446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6447 else
6448 ac_cpp_err=
6450 else
6451 ac_cpp_err=yes
6453 if test -z "$ac_cpp_err"; then
6454 ac_header_preproc=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_header_preproc=no
6461 rm -f conftest.err conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6463 echo "${ECHO_T}$ac_header_preproc" >&6
6465 # So? What about this header?
6466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6467 yes:no: )
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6472 ac_header_preproc=yes
6474 no:yes:* )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6488 cat <<\_ASBOX
6489 ## ------------------------------------------ ##
6490 ## Report this to the AC_PACKAGE_NAME lists. ##
6491 ## ------------------------------------------ ##
6492 _ASBOX
6494 sed "s/^/$as_me: WARNING: /" >&2
6496 esac
6497 echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502 eval "$as_ac_Header=\$ac_header_preproc"
6504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6515 done
6518 for ac_func in getpagesize
6520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6521 echo "$as_me:$LINENO: checking for $ac_func" >&5
6522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_var+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6534 #define $ac_func innocuous_$ac_func
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char $ac_func (); below.
6538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6539 <limits.h> exists even on freestanding compilers. */
6541 #ifdef __STDC__
6542 # include <limits.h>
6543 #else
6544 # include <assert.h>
6545 #endif
6547 #undef $ac_func
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 #ifdef __cplusplus
6551 extern "C"
6553 #endif
6554 /* We use char because int might match the return type of a gcc2
6555 builtin and then its argument prototype would still apply. */
6556 char $ac_func ();
6557 /* The GNU C library defines this for functions which it implements
6558 to always fail with ENOSYS. Some functions are actually named
6559 something starting with __ and the normal name is an alias. */
6560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6561 choke me
6562 #else
6563 char (*f) () = $ac_func;
6564 #endif
6565 #ifdef __cplusplus
6567 #endif
6570 main ()
6572 return f != $ac_func;
6574 return 0;
6576 _ACEOF
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579 (eval $ac_link) 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -z "$ac_c_werror_flag"
6587 || test ! -s conftest.err'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; } &&
6593 { ac_try='test -s conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 (eval $ac_try) 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 eval "$as_ac_var=yes"
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 eval "$as_ac_var=no"
6606 rm -f conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6611 if test `eval echo '${'$as_ac_var'}'` = yes; then
6612 cat >>confdefs.h <<_ACEOF
6613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6614 _ACEOF
6617 done
6619 echo "$as_me:$LINENO: checking for working mmap" >&5
6620 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6621 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 if test "$cross_compiling" = yes; then
6625 ac_cv_func_mmap_fixed_mapped=no
6626 else
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 /* malloc might have been renamed as rpl_malloc. */
6635 #undef malloc
6637 /* Thanks to Mike Haertel and Jim Avera for this test.
6638 Here is a matrix of mmap possibilities:
6639 mmap private not fixed
6640 mmap private fixed at somewhere currently unmapped
6641 mmap private fixed at somewhere already mapped
6642 mmap shared not fixed
6643 mmap shared fixed at somewhere currently unmapped
6644 mmap shared fixed at somewhere already mapped
6645 For private mappings, we should verify that changes cannot be read()
6646 back from the file, nor mmap's back from the file at a different
6647 address. (There have been systems where private was not correctly
6648 implemented like the infamous i386 svr4.0, and systems where the
6649 VM page cache was not coherent with the file system buffer cache
6650 like early versions of FreeBSD and possibly contemporary NetBSD.)
6651 For shared mappings, we should conversely verify that changes get
6652 propagated back to all the places they're supposed to be.
6654 Grep wants private fixed already mapped.
6655 The main things grep needs to know about mmap are:
6656 * does it exist and is it safe to write into the mmap'd area
6657 * how to use it (BSD variants) */
6659 #include <fcntl.h>
6660 #include <sys/mman.h>
6662 #if !STDC_HEADERS && !HAVE_STDLIB_H
6663 char *malloc ();
6664 #endif
6666 /* This mess was copied from the GNU getpagesize.h. */
6667 #if !HAVE_GETPAGESIZE
6668 /* Assume that all systems that can run configure have sys/param.h. */
6669 # if !HAVE_SYS_PARAM_H
6670 # define HAVE_SYS_PARAM_H 1
6671 # endif
6673 # ifdef _SC_PAGESIZE
6674 # define getpagesize() sysconf(_SC_PAGESIZE)
6675 # else /* no _SC_PAGESIZE */
6676 # if HAVE_SYS_PARAM_H
6677 # include <sys/param.h>
6678 # ifdef EXEC_PAGESIZE
6679 # define getpagesize() EXEC_PAGESIZE
6680 # else /* no EXEC_PAGESIZE */
6681 # ifdef NBPG
6682 # define getpagesize() NBPG * CLSIZE
6683 # ifndef CLSIZE
6684 # define CLSIZE 1
6685 # endif /* no CLSIZE */
6686 # else /* no NBPG */
6687 # ifdef NBPC
6688 # define getpagesize() NBPC
6689 # else /* no NBPC */
6690 # ifdef PAGESIZE
6691 # define getpagesize() PAGESIZE
6692 # endif /* PAGESIZE */
6693 # endif /* no NBPC */
6694 # endif /* no NBPG */
6695 # endif /* no EXEC_PAGESIZE */
6696 # else /* no HAVE_SYS_PARAM_H */
6697 # define getpagesize() 8192 /* punt totally */
6698 # endif /* no HAVE_SYS_PARAM_H */
6699 # endif /* no _SC_PAGESIZE */
6701 #endif /* no HAVE_GETPAGESIZE */
6704 main ()
6706 char *data, *data2, *data3;
6707 int i, pagesize;
6708 int fd;
6710 pagesize = getpagesize ();
6712 /* First, make a file with some known garbage in it. */
6713 data = (char *) malloc (pagesize);
6714 if (!data)
6715 exit (1);
6716 for (i = 0; i < pagesize; ++i)
6717 *(data + i) = rand ();
6718 umask (0);
6719 fd = creat ("conftest.mmap", 0600);
6720 if (fd < 0)
6721 exit (1);
6722 if (write (fd, data, pagesize) != pagesize)
6723 exit (1);
6724 close (fd);
6726 /* Next, try to mmap the file at a fixed address which already has
6727 something else allocated at it. If we can, also make sure that
6728 we see the same garbage. */
6729 fd = open ("conftest.mmap", O_RDWR);
6730 if (fd < 0)
6731 exit (1);
6732 data2 = (char *) malloc (2 * pagesize);
6733 if (!data2)
6734 exit (1);
6735 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6736 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6737 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6738 exit (1);
6739 for (i = 0; i < pagesize; ++i)
6740 if (*(data + i) != *(data2 + i))
6741 exit (1);
6743 /* Finally, make sure that changes to the mapped area do not
6744 percolate back to the file as seen by read(). (This is a bug on
6745 some variants of i386 svr4.0.) */
6746 for (i = 0; i < pagesize; ++i)
6747 *(data2 + i) = *(data2 + i) + 1;
6748 data3 = (char *) malloc (pagesize);
6749 if (!data3)
6750 exit (1);
6751 if (read (fd, data3, pagesize) != pagesize)
6752 exit (1);
6753 for (i = 0; i < pagesize; ++i)
6754 if (*(data + i) != *(data3 + i))
6755 exit (1);
6756 close (fd);
6757 exit (0);
6759 _ACEOF
6760 rm -f conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_cv_func_mmap_fixed_mapped=yes
6772 else
6773 echo "$as_me: program exited with status $ac_status" >&5
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ( exit $ac_status )
6778 ac_cv_func_mmap_fixed_mapped=no
6780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6784 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6785 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_MMAP 1
6789 _ACEOF
6792 rm -f conftest.mmap
6804 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6805 unistd.h values.h sys/param.h
6807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6809 echo "$as_me:$LINENO: checking for $ac_header" >&5
6810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6816 else
6817 # Is the header compilable?
6818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6827 #include <$ac_header>
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_header_compiler=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_header_compiler=no
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <$ac_header>
6872 _ACEOF
6873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev/null; then
6881 if test -s conftest.err; then
6882 ac_cpp_err=$ac_c_preproc_warn_flag
6883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6884 else
6885 ac_cpp_err=
6887 else
6888 ac_cpp_err=yes
6890 if test -z "$ac_cpp_err"; then
6891 ac_header_preproc=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_header_preproc=no
6898 rm -f conftest.err conftest.$ac_ext
6899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6900 echo "${ECHO_T}$ac_header_preproc" >&6
6902 # So? What about this header?
6903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6904 yes:no: )
6905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6909 ac_header_preproc=yes
6911 no:yes:* )
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6925 cat <<\_ASBOX
6926 ## ------------------------------------------ ##
6927 ## Report this to the AC_PACKAGE_NAME lists. ##
6928 ## ------------------------------------------ ##
6929 _ASBOX
6931 sed "s/^/$as_me: WARNING: /" >&2
6933 esac
6934 echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 eval "$as_ac_Header=\$ac_header_preproc"
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h <<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6948 _ACEOF
6952 done
6964 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6965 __argz_count __argz_stringify __argz_next
6967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6968 echo "$as_me:$LINENO: checking for $ac_func" >&5
6969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6970 if eval "test \"\${$as_ac_var+set}\" = set"; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6981 #define $ac_func innocuous_$ac_func
6983 /* System header to define __stub macros and hopefully few prototypes,
6984 which can conflict with char $ac_func (); below.
6985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986 <limits.h> exists even on freestanding compilers. */
6988 #ifdef __STDC__
6989 # include <limits.h>
6990 #else
6991 # include <assert.h>
6992 #endif
6994 #undef $ac_func
6996 /* Override any gcc2 internal prototype to avoid an error. */
6997 #ifdef __cplusplus
6998 extern "C"
7000 #endif
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char $ac_func ();
7004 /* The GNU C library defines this for functions which it implements
7005 to always fail with ENOSYS. Some functions are actually named
7006 something starting with __ and the normal name is an alias. */
7007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7008 choke me
7009 #else
7010 char (*f) () = $ac_func;
7011 #endif
7012 #ifdef __cplusplus
7014 #endif
7017 main ()
7019 return f != $ac_func;
7021 return 0;
7023 _ACEOF
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest$ac_exeext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7046 eval "$as_ac_var=yes"
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 eval "$as_ac_var=no"
7053 rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058 if test `eval echo '${'$as_ac_var'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7061 _ACEOF
7064 done
7067 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7069 for ac_func in stpcpy
7071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072 echo "$as_me:$LINENO: checking for $ac_func" >&5
7073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7074 if eval "test \"\${$as_ac_var+set}\" = set"; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7085 #define $ac_func innocuous_$ac_func
7087 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func (); below.
7089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090 <limits.h> exists even on freestanding compilers. */
7092 #ifdef __STDC__
7093 # include <limits.h>
7094 #else
7095 # include <assert.h>
7096 #endif
7098 #undef $ac_func
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 #ifdef __cplusplus
7102 extern "C"
7104 #endif
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7107 char $ac_func ();
7108 /* The GNU C library defines this for functions which it implements
7109 to always fail with ENOSYS. Some functions are actually named
7110 something starting with __ and the normal name is an alias. */
7111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7112 choke me
7113 #else
7114 char (*f) () = $ac_func;
7115 #endif
7116 #ifdef __cplusplus
7118 #endif
7121 main ()
7123 return f != $ac_func;
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext conftest$ac_exeext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130 (eval $ac_link) 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -z "$ac_c_werror_flag"
7138 || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try='test -s conftest$ac_exeext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 eval "$as_ac_var=yes"
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 eval "$as_ac_var=no"
7157 rm -f conftest.err conftest.$ac_objext \
7158 conftest$ac_exeext conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7162 if test `eval echo '${'$as_ac_var'}'` = yes; then
7163 cat >>confdefs.h <<_ACEOF
7164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7165 _ACEOF
7168 done
7171 if test "${ac_cv_func_stpcpy}" = "yes"; then
7173 cat >>confdefs.h <<\_ACEOF
7174 #define HAVE_STPCPY 1
7175 _ACEOF
7179 if test $ac_cv_header_locale_h = yes; then
7180 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7181 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7182 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #include <locale.h>
7193 main ()
7195 return LC_MESSAGES
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext conftest$ac_exeext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7202 (eval $ac_link) 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -z "$ac_c_werror_flag"
7210 || test ! -s conftest.err'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; } &&
7216 { ac_try='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 am_cv_val_LC_MESSAGES=yes
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 am_cv_val_LC_MESSAGES=no
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7232 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7233 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7234 if test $am_cv_val_LC_MESSAGES = yes; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_LC_MESSAGES 1
7238 _ACEOF
7242 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7243 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7244 # Check whether --enable-nls or --disable-nls was given.
7245 if test "${enable_nls+set}" = set; then
7246 enableval="$enable_nls"
7247 USE_NLS=$enableval
7248 else
7249 USE_NLS=yes
7251 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7252 echo "${ECHO_T}$USE_NLS" >&6
7255 USE_INCLUDED_LIBINTL=no
7257 if test "$USE_NLS" = "yes"; then
7258 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7259 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7261 # Check whether --with-included-gettext or --without-included-gettext was given.
7262 if test "${with_included_gettext+set}" = set; then
7263 withval="$with_included_gettext"
7264 nls_cv_force_use_gnu_gettext=$withval
7265 else
7266 nls_cv_force_use_gnu_gettext=no
7268 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7269 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7271 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7272 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7273 nls_cv_header_intl=
7274 nls_cv_header_libgt=
7275 CATOBJEXT=
7277 if test "${ac_cv_header_libintl_h+set}" = set; then
7278 echo "$as_me:$LINENO: checking for libintl.h" >&5
7279 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7280 if test "${ac_cv_header_libintl_h+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7284 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7285 else
7286 # Is the header compilable?
7287 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7288 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h. */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7296 #include <libintl.h>
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300 (eval $ac_compile) 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -z "$ac_c_werror_flag"
7308 || test ! -s conftest.err'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 ac_header_compiler=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_header_compiler=no
7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7333 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 #include <libintl.h>
7341 _ACEOF
7342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } >/dev/null; then
7350 if test -s conftest.err; then
7351 ac_cpp_err=$ac_c_preproc_warn_flag
7352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7353 else
7354 ac_cpp_err=
7356 else
7357 ac_cpp_err=yes
7359 if test -z "$ac_cpp_err"; then
7360 ac_header_preproc=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_header_preproc=no
7367 rm -f conftest.err conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7369 echo "${ECHO_T}$ac_header_preproc" >&6
7371 # So? What about this header?
7372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7373 yes:no: )
7374 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7375 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7377 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7378 ac_header_preproc=yes
7380 no:yes:* )
7381 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7382 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7384 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7386 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7388 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7390 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7392 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7394 cat <<\_ASBOX
7395 ## ------------------------------------------ ##
7396 ## Report this to the AC_PACKAGE_NAME lists. ##
7397 ## ------------------------------------------ ##
7398 _ASBOX
7400 sed "s/^/$as_me: WARNING: /" >&2
7402 esac
7403 echo "$as_me:$LINENO: checking for libintl.h" >&5
7404 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7405 if test "${ac_cv_header_libintl_h+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 ac_cv_header_libintl_h=$ac_header_preproc
7410 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7411 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7414 if test $ac_cv_header_libintl_h = yes; then
7415 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7416 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7417 if test "${gt_cv_func_gettext_libc+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 #include <libintl.h>
7428 main ()
7430 return (int) gettext ("")
7432 return 0;
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 gt_cv_func_gettext_libc=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 gt_cv_func_gettext_libc=no
7464 rm -f conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7467 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7468 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7470 if test "$gt_cv_func_gettext_libc" != "yes"; then
7471 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7472 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7473 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lintl $LIBS"
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 #ifdef __cplusplus
7487 extern "C"
7488 #endif
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char bindtextdomain ();
7493 main ()
7495 bindtextdomain ();
7497 return 0;
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_intl_bindtextdomain=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_lib_intl_bindtextdomain=no
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7534 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7535 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7536 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7537 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7538 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7549 main ()
7551 return (int) gettext ("")
7553 return 0;
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -z "$ac_c_werror_flag"
7566 || test ! -s conftest.err'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 (eval $ac_try) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; } &&
7572 { ac_try='test -s conftest$ac_exeext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 gt_cv_func_gettext_libintl=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 gt_cv_func_gettext_libintl=no
7585 rm -f conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7588 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7589 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7594 if test "$gt_cv_func_gettext_libc" = "yes" \
7595 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_GETTEXT 1
7599 _ACEOF
7601 # Extract the first word of "msgfmt", so it can be a program name with args.
7602 set dummy msgfmt; ac_word=$2
7603 echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605 if test "${ac_cv_path_MSGFMT+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 case "$MSGFMT" in
7610 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7614 for ac_dir in $PATH; do
7615 test -z "$ac_dir" && ac_dir=.
7616 if test -f $ac_dir/$ac_word; then
7617 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7618 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7619 break
7622 done
7623 IFS="$ac_save_ifs"
7624 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7626 esac
7628 MSGFMT="$ac_cv_path_MSGFMT"
7629 if test -n "$MSGFMT"; then
7630 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7631 echo "${ECHO_T}$MSGFMT" >&6
7632 else
7633 echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7636 if test "$MSGFMT" != "no"; then
7638 for ac_func in dcgettext
7640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7641 echo "$as_me:$LINENO: checking for $ac_func" >&5
7642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7643 if eval "test \"\${$as_ac_var+set}\" = set"; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7654 #define $ac_func innocuous_$ac_func
7656 /* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char $ac_func (); below.
7658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7659 <limits.h> exists even on freestanding compilers. */
7661 #ifdef __STDC__
7662 # include <limits.h>
7663 #else
7664 # include <assert.h>
7665 #endif
7667 #undef $ac_func
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 #ifdef __cplusplus
7671 extern "C"
7673 #endif
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7676 char $ac_func ();
7677 /* The GNU C library defines this for functions which it implements
7678 to always fail with ENOSYS. Some functions are actually named
7679 something starting with __ and the normal name is an alias. */
7680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7681 choke me
7682 #else
7683 char (*f) () = $ac_func;
7684 #endif
7685 #ifdef __cplusplus
7687 #endif
7690 main ()
7692 return f != $ac_func;
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest$ac_exeext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 eval "$as_ac_var=yes"
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 eval "$as_ac_var=no"
7726 rm -f conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7731 if test `eval echo '${'$as_ac_var'}'` = yes; then
7732 cat >>confdefs.h <<_ACEOF
7733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7734 _ACEOF
7737 done
7739 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7740 set dummy gmsgfmt; ac_word=$2
7741 echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7743 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 case $GMSGFMT in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7765 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7767 esac
7769 GMSGFMT=$ac_cv_path_GMSGFMT
7771 if test -n "$GMSGFMT"; then
7772 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7773 echo "${ECHO_T}$GMSGFMT" >&6
7774 else
7775 echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6
7779 # Extract the first word of "xgettext", so it can be a program name with args.
7780 set dummy xgettext; ac_word=$2
7781 echo "$as_me:$LINENO: checking for $ac_word" >&5
7782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7783 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786 case "$XGETTEXT" in
7788 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7792 for ac_dir in $PATH; do
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f $ac_dir/$ac_word; then
7795 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7796 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7797 break
7800 done
7801 IFS="$ac_save_ifs"
7802 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7804 esac
7806 XGETTEXT="$ac_cv_path_XGETTEXT"
7807 if test -n "$XGETTEXT"; then
7808 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7809 echo "${ECHO_T}$XGETTEXT" >&6
7810 else
7811 echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7823 main ()
7825 extern int _nl_msg_cat_cntr;
7826 return _nl_msg_cat_cntr
7828 return 0;
7830 _ACEOF
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag"
7841 || test ! -s conftest.err'
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); }; } &&
7847 { ac_try='test -s conftest$ac_exeext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 CATOBJEXT=.gmo
7854 DATADIRNAME=share
7855 else
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7859 CATOBJEXT=.mo
7860 DATADIRNAME=lib
7862 rm -f conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 INSTOBJEXT=.mo
7873 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7874 # Neither gettext nor catgets in included in the C library.
7875 # Fall back on GNU gettext library (assuming it is present).
7876 nls_cv_use_gnu_gettext=yes
7880 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7881 INTLOBJS="\$(GETTOBJS)"
7882 # Extract the first word of "msgfmt", so it can be a program name with args.
7883 set dummy msgfmt; ac_word=$2
7884 echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7886 if test "${ac_cv_path_MSGFMT+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 case "$MSGFMT" in
7891 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7895 for ac_dir in $PATH; do
7896 test -z "$ac_dir" && ac_dir=.
7897 if test -f $ac_dir/$ac_word; then
7898 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7899 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7900 break
7903 done
7904 IFS="$ac_save_ifs"
7905 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7907 esac
7909 MSGFMT="$ac_cv_path_MSGFMT"
7910 if test -n "$MSGFMT"; then
7911 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7912 echo "${ECHO_T}$MSGFMT" >&6
7913 else
7914 echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6
7918 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7919 set dummy gmsgfmt; ac_word=$2
7920 echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7922 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925 case $GMSGFMT in
7926 [\\/]* | ?:[\\/]*)
7927 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7941 done
7942 done
7944 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7946 esac
7948 GMSGFMT=$ac_cv_path_GMSGFMT
7950 if test -n "$GMSGFMT"; then
7951 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7952 echo "${ECHO_T}$GMSGFMT" >&6
7953 else
7954 echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6
7958 # Extract the first word of "xgettext", so it can be a program name with args.
7959 set dummy xgettext; ac_word=$2
7960 echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7962 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 case "$XGETTEXT" in
7967 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7971 for ac_dir in $PATH; do
7972 test -z "$ac_dir" && ac_dir=.
7973 if test -f $ac_dir/$ac_word; then
7974 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7975 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7976 break
7979 done
7980 IFS="$ac_save_ifs"
7981 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7983 esac
7985 XGETTEXT="$ac_cv_path_XGETTEXT"
7986 if test -n "$XGETTEXT"; then
7987 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7988 echo "${ECHO_T}$XGETTEXT" >&6
7989 else
7990 echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7995 USE_INCLUDED_LIBINTL=yes
7996 CATOBJEXT=.gmo
7997 INSTOBJEXT=.mo
7998 DATADIRNAME=share
7999 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8000 INTLLIBS=$INTLDEPS
8001 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8002 nls_cv_header_intl=libintl.h
8003 nls_cv_header_libgt=libgettext.h
8006 if test "$XGETTEXT" != ":"; then
8007 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8009 else
8010 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8011 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8012 XGETTEXT=":"
8016 # We need to process the po/ directory.
8017 POSUB=po
8018 else
8019 DATADIRNAME=share
8020 nls_cv_header_intl=libintl.h
8021 nls_cv_header_libgt=libgettext.h
8024 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8025 # because some of the sources are only built for this goal.
8026 if test "$PACKAGE" = gettext; then
8027 USE_NLS=yes
8028 USE_INCLUDED_LIBINTL=yes
8031 for lang in $ALL_LINGUAS; do
8032 GMOFILES="$GMOFILES $lang.gmo"
8033 POFILES="$POFILES $lang.po"
8034 done
8047 if test "x$CATOBJEXT" != "x"; then
8049 cat >>confdefs.h <<\_ACEOF
8050 #define ENABLE_NLS 1
8051 _ACEOF
8056 if test "x$CATOBJEXT" != "x"; then
8057 if test "x$ALL_LINGUAS" = "x"; then
8058 LINGUAS=
8059 else
8060 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8061 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8062 NEW_LINGUAS=
8063 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8064 case "$ALL_LINGUAS" in
8065 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8066 esac
8067 done
8068 LINGUAS=$NEW_LINGUAS
8069 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8070 echo "${ECHO_T}$LINGUAS" >&6
8073 if test -n "$LINGUAS"; then
8074 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8078 if test $ac_cv_header_locale_h = yes; then
8079 INCLUDE_LOCALE_H="#include <locale.h>"
8080 else
8081 INCLUDE_LOCALE_H="\
8082 /* The system does not provide the header <locale.h>. Take care yourself. */"
8086 if test -f $srcdir/po2tbl.sed.in; then
8087 if test "$CATOBJEXT" = ".cat"; then
8088 if test "${ac_cv_header_linux_version_h+set}" = set; then
8089 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8090 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8091 if test "${ac_cv_header_linux_version_h+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8095 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8096 else
8097 # Is the header compilable?
8098 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8099 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8107 #include <linux/version.h>
8108 _ACEOF
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag"
8119 || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_header_compiler=yes
8132 else
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_header_compiler=no
8138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140 echo "${ECHO_T}$ac_header_compiler" >&6
8142 # Is the header present?
8143 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8144 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <linux/version.h>
8152 _ACEOF
8153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } >/dev/null; then
8161 if test -s conftest.err; then
8162 ac_cpp_err=$ac_c_preproc_warn_flag
8163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8164 else
8165 ac_cpp_err=
8167 else
8168 ac_cpp_err=yes
8170 if test -z "$ac_cpp_err"; then
8171 ac_header_preproc=yes
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_header_preproc=no
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8182 # So? What about this header?
8183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8184 yes:no: )
8185 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8188 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8189 ac_header_preproc=yes
8191 no:yes:* )
8192 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8193 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8195 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8197 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8199 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8203 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8205 cat <<\_ASBOX
8206 ## ------------------------------------------ ##
8207 ## Report this to the AC_PACKAGE_NAME lists. ##
8208 ## ------------------------------------------ ##
8209 _ASBOX
8211 sed "s/^/$as_me: WARNING: /" >&2
8213 esac
8214 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8215 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8216 if test "${ac_cv_header_linux_version_h+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 ac_cv_header_linux_version_h=$ac_header_preproc
8221 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8222 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8225 if test $ac_cv_header_linux_version_h = yes; then
8226 msgformat=linux
8227 else
8228 msgformat=xopen
8233 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8235 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8236 $srcdir/po2tbl.sed.in > po2tbl.sed
8239 if test "$PACKAGE" = "gettext"; then
8240 GT_NO="#NO#"
8241 GT_YES=
8242 else
8243 GT_NO=
8244 GT_YES="#YES#"
8249 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8255 if test -f $srcdir/po/POTFILES.in; then
8256 test -d po || mkdir po
8257 if test "x$srcdir" != "x."; then
8258 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8259 posrcprefix="$srcdir/"
8260 else
8261 posrcprefix="../$srcdir/"
8263 else
8264 posrcprefix="../"
8266 rm -f po/POTFILES
8267 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8268 < $srcdir/po/POTFILES.in > po/POTFILES
8274 for ac_prog in 'bison -y' byacc
8276 # Extract the first word of "$ac_prog", so it can be a program name with args.
8277 set dummy $ac_prog; ac_word=$2
8278 echo "$as_me:$LINENO: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280 if test "${ac_cv_prog_YACC+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283 if test -n "$YACC"; then
8284 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_YACC="$ac_prog"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8302 YACC=$ac_cv_prog_YACC
8303 if test -n "$YACC"; then
8304 echo "$as_me:$LINENO: result: $YACC" >&5
8305 echo "${ECHO_T}$YACC" >&6
8306 else
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8311 test -n "$YACC" && break
8312 done
8313 test -n "$YACC" || YACC="yacc"
8315 for ac_prog in flex lex
8317 # Extract the first word of "$ac_prog", so it can be a program name with args.
8318 set dummy $ac_prog; ac_word=$2
8319 echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8321 if test "${ac_cv_prog_LEX+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 if test -n "$LEX"; then
8325 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_LEX="$ac_prog"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8338 done
8339 done
8343 LEX=$ac_cv_prog_LEX
8344 if test -n "$LEX"; then
8345 echo "$as_me:$LINENO: result: $LEX" >&5
8346 echo "${ECHO_T}$LEX" >&6
8347 else
8348 echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6
8352 test -n "$LEX" && break
8353 done
8354 test -n "$LEX" || LEX=":"
8356 if test -z "$LEXLIB"
8357 then
8358 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8359 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8360 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lfl $LIBS"
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char yywrap ();
8380 main ()
8382 yywrap ();
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_fl_yywrap=yes
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 ac_cv_lib_fl_yywrap=no
8416 rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8420 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8421 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8422 if test $ac_cv_lib_fl_yywrap = yes; then
8423 LEXLIB="-lfl"
8424 else
8425 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8426 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8427 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430 ac_check_lib_save_LIBS=$LIBS
8431 LIBS="-ll $LIBS"
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char yywrap ();
8447 main ()
8449 yywrap ();
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
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); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_lib_l_yywrap=yes
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_lib_l_yywrap=no
8483 rm -f conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8487 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8488 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8489 if test $ac_cv_lib_l_yywrap = yes; then
8490 LEXLIB="-ll"
8497 if test "x$LEX" != "x:"; then
8498 echo "$as_me:$LINENO: checking lex output file root" >&5
8499 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8500 if test "${ac_cv_prog_lex_root+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503 # The minimal lex program is just a single line: %%. But some broken lexes
8504 # (Solaris, I think it was) want two %% lines, so accommodate them.
8505 cat >conftest.l <<_ACEOF
8508 _ACEOF
8509 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8510 (eval $LEX conftest.l) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }
8514 if test -f lex.yy.c; then
8515 ac_cv_prog_lex_root=lex.yy
8516 elif test -f lexyy.c; then
8517 ac_cv_prog_lex_root=lexyy
8518 else
8519 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8520 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8521 { (exit 1); exit 1; }; }
8524 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8525 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8526 rm -f conftest.l
8527 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8529 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8530 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8531 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 # POSIX says lex can declare yytext either as a pointer or an array; the
8535 # default is implementation-dependent. Figure out which it is, since
8536 # not all implementations provide the %pointer and %array declarations.
8537 ac_cv_prog_lex_yytext_pointer=no
8538 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8539 ac_save_LIBS=$LIBS
8540 LIBS="$LIBS $LEXLIB"
8541 cat >conftest.$ac_ext <<_ACEOF
8542 `cat $LEX_OUTPUT_ROOT.c`
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_prog_lex_yytext_pointer=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8572 rm -f conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_save_LIBS
8575 rm -f "${LEX_OUTPUT_ROOT}.c"
8578 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8579 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8580 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8582 cat >>confdefs.h <<\_ACEOF
8583 #define YYTEXT_POINTER 1
8584 _ACEOF
8589 if test "$LEX" = :; then
8590 LEX=${am_missing_run}flex
8593 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8594 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8595 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8596 if test "${enable_maintainer_mode+set}" = set; then
8597 enableval="$enable_maintainer_mode"
8598 USE_MAINTAINER_MODE=$enableval
8599 else
8600 USE_MAINTAINER_MODE=no
8602 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8603 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8606 if test $USE_MAINTAINER_MODE = yes; then
8607 MAINTAINER_MODE_TRUE=
8608 MAINTAINER_MODE_FALSE='#'
8609 else
8610 MAINTAINER_MODE_TRUE='#'
8611 MAINTAINER_MODE_FALSE=
8614 MAINT=$MAINTAINER_MODE_TRUE
8618 . ${srcdir}/configure.host
8630 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h
8632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo "$as_me:$LINENO: checking for $ac_header" >&5
8635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8641 else
8642 # Is the header compilable?
8643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 #include <$ac_header>
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656 (eval $ac_compile) 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -z "$ac_c_werror_flag"
8664 || test ! -s conftest.err'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_header_compiler=yes
8677 else
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_header_compiler=no
8683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8685 echo "${ECHO_T}$ac_header_compiler" >&6
8687 # Is the header present?
8688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h. */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 #include <$ac_header>
8697 _ACEOF
8698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } >/dev/null; then
8706 if test -s conftest.err; then
8707 ac_cpp_err=$ac_c_preproc_warn_flag
8708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8709 else
8710 ac_cpp_err=
8712 else
8713 ac_cpp_err=yes
8715 if test -z "$ac_cpp_err"; then
8716 ac_header_preproc=yes
8717 else
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 ac_header_preproc=no
8723 rm -f conftest.err conftest.$ac_ext
8724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8725 echo "${ECHO_T}$ac_header_preproc" >&6
8727 # So? What about this header?
8728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8729 yes:no: )
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8734 ac_header_preproc=yes
8736 no:yes:* )
8737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8750 cat <<\_ASBOX
8751 ## ------------------------------------------ ##
8752 ## Report this to the AC_PACKAGE_NAME lists. ##
8753 ## ------------------------------------------ ##
8754 _ASBOX
8756 sed "s/^/$as_me: WARNING: /" >&2
8758 esac
8759 echo "$as_me:$LINENO: checking for $ac_header" >&5
8760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 eval "$as_ac_Header=\$ac_header_preproc"
8766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8771 cat >>confdefs.h <<_ACEOF
8772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8773 _ACEOF
8777 done
8782 for ac_func in sbrk realpath glob
8784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785 echo "$as_me:$LINENO: checking for $ac_func" >&5
8786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8798 #define $ac_func innocuous_$ac_func
8800 /* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char $ac_func (); below.
8802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 <limits.h> exists even on freestanding compilers. */
8805 #ifdef __STDC__
8806 # include <limits.h>
8807 #else
8808 # include <assert.h>
8809 #endif
8811 #undef $ac_func
8813 /* Override any gcc2 internal prototype to avoid an error. */
8814 #ifdef __cplusplus
8815 extern "C"
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char $ac_func ();
8821 /* The GNU C library defines this for functions which it implements
8822 to always fail with ENOSYS. Some functions are actually named
8823 something starting with __ and the normal name is an alias. */
8824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8825 choke me
8826 #else
8827 char (*f) () = $ac_func;
8828 #endif
8829 #ifdef __cplusplus
8831 #endif
8834 main ()
8836 return f != $ac_func;
8838 return 0;
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -z "$ac_c_werror_flag"
8851 || test ! -s conftest.err'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } &&
8857 { ac_try='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 eval "$as_ac_var=yes"
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 eval "$as_ac_var=no"
8870 rm -f conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8875 if test `eval echo '${'$as_ac_var'}'` = yes; then
8876 cat >>confdefs.h <<_ACEOF
8877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8878 _ACEOF
8881 done
8888 ac_header_dirent=no
8889 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8890 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8891 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8892 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 #include <sys/types.h>
8903 #include <$ac_hdr>
8906 main ()
8908 if ((DIR *) 0)
8909 return 0;
8911 return 0;
8913 _ACEOF
8914 rm -f conftest.$ac_objext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8916 (eval $ac_compile) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest.$ac_objext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 eval "$as_ac_Header=yes"
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 eval "$as_ac_Header=no"
8943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948 cat >>confdefs.h <<_ACEOF
8949 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8950 _ACEOF
8952 ac_header_dirent=$ac_hdr; break
8955 done
8956 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8957 if test $ac_header_dirent = dirent.h; then
8958 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8959 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8960 if test "${ac_cv_search_opendir+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963 ac_func_search_save_LIBS=$LIBS
8964 ac_cv_search_opendir=no
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8972 /* Override any gcc2 internal prototype to avoid an error. */
8973 #ifdef __cplusplus
8974 extern "C"
8975 #endif
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978 char opendir ();
8980 main ()
8982 opendir ();
8984 return 0;
8986 _ACEOF
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>conftest.er1
8990 ac_status=$?
8991 grep -v '^ *+' conftest.er1 >conftest.err
8992 rm -f conftest.er1
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try='test -z "$ac_c_werror_flag"
8997 || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_search_opendir="none required"
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9015 rm -f conftest.err conftest.$ac_objext \
9016 conftest$ac_exeext conftest.$ac_ext
9017 if test "$ac_cv_search_opendir" = no; then
9018 for ac_lib in dir; do
9019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9020 cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h. */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9027 /* Override any gcc2 internal prototype to avoid an error. */
9028 #ifdef __cplusplus
9029 extern "C"
9030 #endif
9031 /* We use char because int might match the return type of a gcc2
9032 builtin and then its argument prototype would still apply. */
9033 char opendir ();
9035 main ()
9037 opendir ();
9039 return 0;
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044 (eval $ac_link) 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try='test -z "$ac_c_werror_flag"
9052 || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_search_opendir="-l$ac_lib"
9065 break
9066 else
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9071 rm -f conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 done
9075 LIBS=$ac_func_search_save_LIBS
9077 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9078 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9079 if test "$ac_cv_search_opendir" != no; then
9080 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9084 else
9085 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9086 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9087 if test "${ac_cv_search_opendir+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090 ac_func_search_save_LIBS=$LIBS
9091 ac_cv_search_opendir=no
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9099 /* Override any gcc2 internal prototype to avoid an error. */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9105 char opendir ();
9107 main ()
9109 opendir ();
9111 return 0;
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag"
9124 || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_search_opendir="none required"
9137 else
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9142 rm -f conftest.err conftest.$ac_objext \
9143 conftest$ac_exeext conftest.$ac_ext
9144 if test "$ac_cv_search_opendir" = no; then
9145 for ac_lib in x; do
9146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9154 /* Override any gcc2 internal prototype to avoid an error. */
9155 #ifdef __cplusplus
9156 extern "C"
9157 #endif
9158 /* We use char because int might match the return type of a gcc2
9159 builtin and then its argument prototype would still apply. */
9160 char opendir ();
9162 main ()
9164 opendir ();
9166 return 0;
9168 _ACEOF
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171 (eval $ac_link) 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_search_opendir="-l$ac_lib"
9192 break
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9198 rm -f conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9200 done
9202 LIBS=$ac_func_search_save_LIBS
9204 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9205 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9206 if test "$ac_cv_search_opendir" != no; then
9207 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9214 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9215 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9216 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 #include <unistd.h>
9227 main ()
9229 extern int getopt (int, char *const*, const char *);
9231 return 0;
9233 _ACEOF
9234 rm -f conftest.$ac_objext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236 (eval $ac_compile) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ld_cv_decl_getopt_unistd_h=yes
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ld_cv_decl_getopt_unistd_h=no
9263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9266 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
9267 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
9268 if test $ld_cv_decl_getopt_unistd_h = yes; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_DECL_GETOPT 1
9272 _ACEOF
9277 case "${host}" in
9278 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9280 cat >>confdefs.h <<\_ACEOF
9281 #define USE_BINARY_FOPEN 1
9282 _ACEOF
9284 esac
9286 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9287 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9288 if test "${ac_cv_have_decl_strstr+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 $ac_includes_default
9299 main ()
9301 #ifndef strstr
9302 char *p = (char *) strstr;
9303 #endif
9306 return 0;
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_cv_have_decl_strstr=yes
9332 else
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_cv_have_decl_strstr=no
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9341 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9342 if test $ac_cv_have_decl_strstr = yes; then
9344 cat >>confdefs.h <<_ACEOF
9345 #define HAVE_DECL_STRSTR 1
9346 _ACEOF
9349 else
9350 cat >>confdefs.h <<_ACEOF
9351 #define HAVE_DECL_STRSTR 0
9352 _ACEOF
9356 echo "$as_me:$LINENO: checking whether free is declared" >&5
9357 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9358 if test "${ac_cv_have_decl_free+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9369 main ()
9371 #ifndef free
9372 char *p = (char *) free;
9373 #endif
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_cv_have_decl_free=yes
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_cv_have_decl_free=no
9408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9410 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9411 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9412 if test $ac_cv_have_decl_free = yes; then
9414 cat >>confdefs.h <<_ACEOF
9415 #define HAVE_DECL_FREE 1
9416 _ACEOF
9419 else
9420 cat >>confdefs.h <<_ACEOF
9421 #define HAVE_DECL_FREE 0
9422 _ACEOF
9426 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
9427 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
9428 if test "${ac_cv_have_decl_sbrk+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h. */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 $ac_includes_default
9439 main ()
9441 #ifndef sbrk
9442 char *p = (char *) sbrk;
9443 #endif
9446 return 0;
9448 _ACEOF
9449 rm -f conftest.$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_have_decl_sbrk=yes
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_cv_have_decl_sbrk=no
9478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9480 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
9481 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
9482 if test $ac_cv_have_decl_sbrk = yes; then
9484 cat >>confdefs.h <<_ACEOF
9485 #define HAVE_DECL_SBRK 1
9486 _ACEOF
9489 else
9490 cat >>confdefs.h <<_ACEOF
9491 #define HAVE_DECL_SBRK 0
9492 _ACEOF
9496 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9497 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9498 if test "${ac_cv_have_decl_getenv+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h. */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 $ac_includes_default
9509 main ()
9511 #ifndef getenv
9512 char *p = (char *) getenv;
9513 #endif
9516 return 0;
9518 _ACEOF
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_have_decl_getenv=yes
9542 else
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_cv_have_decl_getenv=no
9548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9550 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9551 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9552 if test $ac_cv_have_decl_getenv = yes; then
9554 cat >>confdefs.h <<_ACEOF
9555 #define HAVE_DECL_GETENV 1
9556 _ACEOF
9559 else
9560 cat >>confdefs.h <<_ACEOF
9561 #define HAVE_DECL_GETENV 0
9562 _ACEOF
9566 echo "$as_me:$LINENO: checking whether environ is declared" >&5
9567 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
9568 if test "${ac_cv_have_decl_environ+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 $ac_includes_default
9579 main ()
9581 #ifndef environ
9582 char *p = (char *) environ;
9583 #endif
9586 return 0;
9588 _ACEOF
9589 rm -f conftest.$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_cv_have_decl_environ=yes
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_have_decl_environ=no
9618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9620 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
9621 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
9622 if test $ac_cv_have_decl_environ = yes; then
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_DECL_ENVIRON 1
9626 _ACEOF
9629 else
9630 cat >>confdefs.h <<_ACEOF
9631 #define HAVE_DECL_ENVIRON 0
9632 _ACEOF
9639 # When converting linker scripts into strings for use in emulation
9640 # files, use astring.sed if the compiler supports ANSI string
9641 # concatenation, or ostring.sed otherwise. This is to support the
9642 # broken Microsoft MSVC compiler, which limits the length of string
9643 # constants, while still supporting pre-ANSI compilers which do not
9644 # support string concatenation.
9645 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9646 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9647 if test "${ld_cv_string_concatenation+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9658 main ()
9660 char *a = "a" "a";
9662 return 0;
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667 (eval $ac_compile) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ld_cv_string_concatenation=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ld_cv_string_concatenation=no
9694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9698 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
9699 if test "$ld_cv_string_concatenation" = "yes"; then
9700 STRINGIFY=astring.sed
9701 else
9702 STRINGIFY=ostring.sed
9706 # target-specific stuff:
9708 all_targets=
9709 EMUL=
9710 all_emuls=
9711 all_emul_extras=
9712 all_libpath=
9714 rm -f tdirs
9716 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9718 if test "$targ_alias" = "all"; then
9719 all_targets=true
9720 else
9721 # Canonicalize the secondary target names.
9722 result=`$ac_config_sub $targ_alias 2>/dev/null`
9723 if test -n "$result"; then
9724 targ=$result
9725 else
9726 targ=$targ_alias
9729 . ${srcdir}/configure.tgt
9731 if test "$targ" = "$target"; then
9732 EMUL=$targ_emul
9735 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
9736 case " $all_emuls " in
9737 *" e${i}.o "*) ;;
9739 all_emuls="$all_emuls e${i}.o"
9740 eval result=\$tdir_$i
9741 test -z "$result" && result=$targ_alias
9742 echo tdir_$i=$result >> tdirs
9744 esac
9745 done
9747 for i in $targ_emul $targ_extra_libpath; do
9748 case " $all_libpath " in
9749 *" ${i} "*) ;;
9751 if test -z "$all_libpath"; then
9752 all_libpath=${i}
9753 else
9754 all_libpath="$all_libpath ${i}"
9757 esac
9758 done
9760 for i in $targ_extra_ofiles; do
9761 case " $all_emul_extras " in
9762 *" ${i} "*) ;;
9764 all_emul_extras="$all_emul_extras ${i}"
9766 esac
9767 done
9769 done
9773 TDIRS=tdirs
9776 if test x${all_targets} = xtrue; then
9777 if test x${want64} = xtrue; then
9778 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9779 else
9780 EMULATION_OFILES='$(ALL_EMULATIONS)'
9782 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9783 else
9784 EMULATION_OFILES=$all_emuls
9785 EMUL_EXTRA_OFILES=$all_emul_extras
9791 EMULATION_LIBPATH=$all_libpath
9794 if test x${enable_static} = xno; then
9795 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9796 else
9797 TESTBFDLIB="../bfd/.libs/libbfd.a"
9801 target_vendor=${target_vendor=$host_vendor}
9802 case "$target_vendor" in
9803 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9804 *) EXTRA_SHLIB_EXTENSION= ;;
9805 esac
9807 case "$target_os" in
9808 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9809 esac
9811 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9815 _ACEOF
9823 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9824 ac_config_commands="$ac_config_commands default"
9825 cat >confcache <<\_ACEOF
9826 # This file is a shell script that caches the results of configure
9827 # tests run on this system so they can be shared between configure
9828 # scripts and configure runs, see configure's option --config-cache.
9829 # It is not useful on other systems. If it contains results you don't
9830 # want to keep, you may remove or edit it.
9832 # config.status only pays attention to the cache file if you give it
9833 # the --recheck option to rerun configure.
9835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9837 # following values.
9839 _ACEOF
9841 # The following way of writing the cache mishandles newlines in values,
9842 # but we know of no workaround that is simple, portable, and efficient.
9843 # So, don't put newlines in cache variables' values.
9844 # Ultrix sh set writes to stderr and can't be redirected directly,
9845 # and sets the high bit in the cache file unless we assign to the vars.
9847 (set) 2>&1 |
9848 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9849 *ac_space=\ *)
9850 # `set' does not quote correctly, so add quotes (double-quote
9851 # substitution turns \\\\ into \\, and sed turns \\ into \).
9852 sed -n \
9853 "s/'/'\\\\''/g;
9854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9857 # `set' quotes correctly as required by POSIX, so do not add quotes.
9858 sed -n \
9859 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9861 esac;
9863 sed '
9864 t clear
9865 : clear
9866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9867 t end
9868 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9869 : end' >>confcache
9870 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9871 if test -w $cache_file; then
9872 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9873 cat confcache >$cache_file
9874 else
9875 echo "not updating unwritable cache $cache_file"
9878 rm -f confcache
9880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9881 # Let make expand exec_prefix.
9882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9886 # trailing colons and then remove the whole line if VPATH becomes empty
9887 # (actually we leave an empty line to preserve line numbers).
9888 if test "x$srcdir" = x.; then
9889 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9890 s/:*\$(srcdir):*/:/;
9891 s/:*\${srcdir}:*/:/;
9892 s/:*@srcdir@:*/:/;
9893 s/^\([^=]*=[ ]*\):*/\1/;
9894 s/:*$//;
9895 s/^[^=]*=[ ]*$//;
9899 DEFS=-DHAVE_CONFIG_H
9901 ac_libobjs=
9902 ac_ltlibobjs=
9903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9904 # 1. Remove the extension, and $U if already installed.
9905 ac_i=`echo "$ac_i" |
9906 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9907 # 2. Add them.
9908 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9909 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9910 done
9911 LIBOBJS=$ac_libobjs
9913 LTLIBOBJS=$ac_ltlibobjs
9916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9917 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9918 Usually this means the macro was only invoked conditionally." >&5
9919 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9920 Usually this means the macro was only invoked conditionally." >&2;}
9921 { (exit 1); exit 1; }; }
9923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9924 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9925 Usually this means the macro was only invoked conditionally." >&5
9926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9927 Usually this means the macro was only invoked conditionally." >&2;}
9928 { (exit 1); exit 1; }; }
9930 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9931 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9932 Usually this means the macro was only invoked conditionally." >&5
9933 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9934 Usually this means the macro was only invoked conditionally." >&2;}
9935 { (exit 1); exit 1; }; }
9938 : ${CONFIG_STATUS=./config.status}
9939 ac_clean_files_save=$ac_clean_files
9940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9943 cat >$CONFIG_STATUS <<_ACEOF
9944 #! $SHELL
9945 # Generated by $as_me.
9946 # Run this file to recreate the current configuration.
9947 # Compiler output produced by configure, useful for debugging
9948 # configure, is in config.log if it exists.
9950 debug=false
9951 ac_cs_recheck=false
9952 ac_cs_silent=false
9953 SHELL=\${CONFIG_SHELL-$SHELL}
9954 _ACEOF
9956 cat >>$CONFIG_STATUS <<\_ACEOF
9957 ## --------------------- ##
9958 ## M4sh Initialization. ##
9959 ## --------------------- ##
9961 # Be Bourne compatible
9962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9963 emulate sh
9964 NULLCMD=:
9965 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9966 # is contrary to our usage. Disable this feature.
9967 alias -g '${1+"$@"}'='"$@"'
9968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9969 set -o posix
9971 DUALCASE=1; export DUALCASE # for MKS sh
9973 # Support unset when possible.
9974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9975 as_unset=unset
9976 else
9977 as_unset=false
9981 # Work around bugs in pre-3.0 UWIN ksh.
9982 $as_unset ENV MAIL MAILPATH
9983 PS1='$ '
9984 PS2='> '
9985 PS4='+ '
9987 # NLS nuisances.
9988 for as_var in \
9989 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9990 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9991 LC_TELEPHONE LC_TIME
9993 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9994 eval $as_var=C; export $as_var
9995 else
9996 $as_unset $as_var
9998 done
10000 # Required to use basename.
10001 if expr a : '\(a\)' >/dev/null 2>&1; then
10002 as_expr=expr
10003 else
10004 as_expr=false
10007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10008 as_basename=basename
10009 else
10010 as_basename=false
10014 # Name of the executable.
10015 as_me=`$as_basename "$0" ||
10016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10017 X"$0" : 'X\(//\)$' \| \
10018 X"$0" : 'X\(/\)$' \| \
10019 . : '\(.\)' 2>/dev/null ||
10020 echo X/"$0" |
10021 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10022 /^X\/\(\/\/\)$/{ s//\1/; q; }
10023 /^X\/\(\/\).*/{ s//\1/; q; }
10024 s/.*/./; q'`
10027 # PATH needs CR, and LINENO needs CR and PATH.
10028 # Avoid depending upon Character Ranges.
10029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10032 as_cr_digits='0123456789'
10033 as_cr_alnum=$as_cr_Letters$as_cr_digits
10035 # The user is always right.
10036 if test "${PATH_SEPARATOR+set}" != set; then
10037 echo "#! /bin/sh" >conf$$.sh
10038 echo "exit 0" >>conf$$.sh
10039 chmod +x conf$$.sh
10040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10041 PATH_SEPARATOR=';'
10042 else
10043 PATH_SEPARATOR=:
10045 rm -f conf$$.sh
10049 as_lineno_1=$LINENO
10050 as_lineno_2=$LINENO
10051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10052 test "x$as_lineno_1" != "x$as_lineno_2" &&
10053 test "x$as_lineno_3" = "x$as_lineno_2" || {
10054 # Find who we are. Look in the path if we contain no path at all
10055 # relative or not.
10056 case $0 in
10057 *[\\/]* ) as_myself=$0 ;;
10058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10064 done
10067 esac
10068 # We did not find ourselves, most probably we were run as `sh COMMAND'
10069 # in which case we are not to be found in the path.
10070 if test "x$as_myself" = x; then
10071 as_myself=$0
10073 if test ! -f "$as_myself"; then
10074 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10076 { (exit 1); exit 1; }; }
10078 case $CONFIG_SHELL in
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for as_base in sh bash ksh sh5; do
10086 case $as_dir in
10088 if ("$as_dir/$as_base" -c '
10089 as_lineno_1=$LINENO
10090 as_lineno_2=$LINENO
10091 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10092 test "x$as_lineno_1" != "x$as_lineno_2" &&
10093 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10094 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10095 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10096 CONFIG_SHELL=$as_dir/$as_base
10097 export CONFIG_SHELL
10098 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10099 fi;;
10100 esac
10101 done
10102 done
10104 esac
10106 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10107 # uniformly replaced by the line number. The first 'sed' inserts a
10108 # line-number line before each line; the second 'sed' does the real
10109 # work. The second script uses 'N' to pair each line-number line
10110 # with the numbered line, and appends trailing '-' during
10111 # substitution so that $LINENO is not a special case at line end.
10112 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10113 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10114 sed '=' <$as_myself |
10115 sed '
10117 s,$,-,
10118 : loop
10119 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10120 t loop
10121 s,-$,,
10122 s,^['$as_cr_digits']*\n,,
10123 ' >$as_me.lineno &&
10124 chmod +x $as_me.lineno ||
10125 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10127 { (exit 1); exit 1; }; }
10129 # Don't try to exec as it changes $[0], causing all sort of problems
10130 # (the dirname of $[0] is not the place where we might find the
10131 # original and so on. Autoconf is especially sensible to this).
10132 . ./$as_me.lineno
10133 # Exit status is that of the last command.
10134 exit
10138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10139 *c*,-n*) ECHO_N= ECHO_C='
10140 ' ECHO_T=' ' ;;
10141 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10142 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10143 esac
10145 if expr a : '\(a\)' >/dev/null 2>&1; then
10146 as_expr=expr
10147 else
10148 as_expr=false
10151 rm -f conf$$ conf$$.exe conf$$.file
10152 echo >conf$$.file
10153 if ln -s conf$$.file conf$$ 2>/dev/null; then
10154 # We could just check for DJGPP; but this test a) works b) is more generic
10155 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10156 if test -f conf$$.exe; then
10157 # Don't use ln at all; we don't have any links
10158 as_ln_s='cp -p'
10159 else
10160 as_ln_s='ln -s'
10162 elif ln conf$$.file conf$$ 2>/dev/null; then
10163 as_ln_s=ln
10164 else
10165 as_ln_s='cp -p'
10167 rm -f conf$$ conf$$.exe conf$$.file
10169 if mkdir -p . 2>/dev/null; then
10170 as_mkdir_p=:
10171 else
10172 test -d ./-p && rmdir ./-p
10173 as_mkdir_p=false
10176 as_executable_p="test -f"
10178 # Sed expression to map a string onto a valid CPP name.
10179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10181 # Sed expression to map a string onto a valid variable name.
10182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10185 # IFS
10186 # We need space, tab and new line, in precisely that order.
10187 as_nl='
10189 IFS=" $as_nl"
10191 # CDPATH.
10192 $as_unset CDPATH
10194 exec 6>&1
10196 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10197 # report actual input values of CONFIG_FILES etc. instead of their
10198 # values after options handling. Logging --version etc. is OK.
10199 exec 5>>config.log
10201 echo
10202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10203 ## Running $as_me. ##
10204 _ASBOX
10205 } >&5
10206 cat >&5 <<_CSEOF
10208 This file was extended by $as_me, which was
10209 generated by GNU Autoconf 2.59. Invocation command line was
10211 CONFIG_FILES = $CONFIG_FILES
10212 CONFIG_HEADERS = $CONFIG_HEADERS
10213 CONFIG_LINKS = $CONFIG_LINKS
10214 CONFIG_COMMANDS = $CONFIG_COMMANDS
10215 $ $0 $@
10217 _CSEOF
10218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10219 echo >&5
10220 _ACEOF
10222 # Files that config.status was made for.
10223 if test -n "$ac_config_files"; then
10224 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10227 if test -n "$ac_config_headers"; then
10228 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10231 if test -n "$ac_config_links"; then
10232 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10235 if test -n "$ac_config_commands"; then
10236 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10239 cat >>$CONFIG_STATUS <<\_ACEOF
10241 ac_cs_usage="\
10242 \`$as_me' instantiates files from templates according to the
10243 current configuration.
10245 Usage: $0 [OPTIONS] [FILE]...
10247 -h, --help print this help, then exit
10248 -V, --version print version number, then exit
10249 -q, --quiet do not print progress messages
10250 -d, --debug don't remove temporary files
10251 --recheck update $as_me by reconfiguring in the same conditions
10252 --file=FILE[:TEMPLATE]
10253 instantiate the configuration file FILE
10254 --header=FILE[:TEMPLATE]
10255 instantiate the configuration header FILE
10257 Configuration files:
10258 $config_files
10260 Configuration headers:
10261 $config_headers
10263 Configuration commands:
10264 $config_commands
10266 Report bugs to <bug-autoconf@gnu.org>."
10267 _ACEOF
10269 cat >>$CONFIG_STATUS <<_ACEOF
10270 ac_cs_version="\\
10271 config.status
10272 configured by $0, generated by GNU Autoconf 2.59,
10273 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10275 Copyright (C) 2003 Free Software Foundation, Inc.
10276 This config.status script is free software; the Free Software Foundation
10277 gives unlimited permission to copy, distribute and modify it."
10278 srcdir=$srcdir
10279 INSTALL="$INSTALL"
10280 _ACEOF
10282 cat >>$CONFIG_STATUS <<\_ACEOF
10283 # If no file are specified by the user, then we need to provide default
10284 # value. By we need to know if files were specified by the user.
10285 ac_need_defaults=:
10286 while test $# != 0
10288 case $1 in
10289 --*=*)
10290 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10291 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10292 ac_shift=:
10295 ac_option=$1
10296 ac_optarg=$2
10297 ac_shift=shift
10299 *) # This is not an option, so the user has probably given explicit
10300 # arguments.
10301 ac_option=$1
10302 ac_need_defaults=false;;
10303 esac
10305 case $ac_option in
10306 # Handling of the options.
10307 _ACEOF
10308 cat >>$CONFIG_STATUS <<\_ACEOF
10309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10310 ac_cs_recheck=: ;;
10311 --version | --vers* | -V )
10312 echo "$ac_cs_version"; exit 0 ;;
10313 --he | --h)
10314 # Conflict between --help and --header
10315 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10316 Try \`$0 --help' for more information." >&5
10317 echo "$as_me: error: ambiguous option: $1
10318 Try \`$0 --help' for more information." >&2;}
10319 { (exit 1); exit 1; }; };;
10320 --help | --hel | -h )
10321 echo "$ac_cs_usage"; exit 0 ;;
10322 --debug | --d* | -d )
10323 debug=: ;;
10324 --file | --fil | --fi | --f )
10325 $ac_shift
10326 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10327 ac_need_defaults=false;;
10328 --header | --heade | --head | --hea )
10329 $ac_shift
10330 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10331 ac_need_defaults=false;;
10332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10334 ac_cs_silent=: ;;
10336 # This is an error.
10337 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10338 Try \`$0 --help' for more information." >&5
10339 echo "$as_me: error: unrecognized option: $1
10340 Try \`$0 --help' for more information." >&2;}
10341 { (exit 1); exit 1; }; } ;;
10343 *) ac_config_targets="$ac_config_targets $1" ;;
10345 esac
10346 shift
10347 done
10349 ac_configure_extra_args=
10351 if $ac_cs_silent; then
10352 exec 6>/dev/null
10353 ac_configure_extra_args="$ac_configure_extra_args --silent"
10356 _ACEOF
10357 cat >>$CONFIG_STATUS <<_ACEOF
10358 if \$ac_cs_recheck; then
10359 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10360 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10363 _ACEOF
10365 cat >>$CONFIG_STATUS <<_ACEOF
10367 # INIT-COMMANDS section.
10370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10372 _ACEOF
10376 cat >>$CONFIG_STATUS <<\_ACEOF
10377 for ac_config_target in $ac_config_targets
10379 case "$ac_config_target" in
10380 # Handling of arguments.
10381 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10382 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10383 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10384 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10385 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10386 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10388 { (exit 1); exit 1; }; };;
10389 esac
10390 done
10392 # If the user did not use the arguments to specify the items to instantiate,
10393 # then the envvar interface is used. Set only those that are not.
10394 # We use the long form for the default assignment because of an extremely
10395 # bizarre bug on SunOS 4.1.3.
10396 if $ac_need_defaults; then
10397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10402 # Have a temporary directory for convenience. Make it in the build tree
10403 # simply because there is no reason to put it here, and in addition,
10404 # creating and moving files from /tmp can sometimes cause problems.
10405 # Create a temporary directory, and hook for its removal unless debugging.
10406 $debug ||
10408 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10409 trap '{ (exit 1); exit 1; }' 1 2 13 15
10412 # Create a (secure) tmp directory for tmp files.
10415 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10416 test -n "$tmp" && test -d "$tmp"
10417 } ||
10419 tmp=./confstat$$-$RANDOM
10420 (umask 077 && mkdir $tmp)
10421 } ||
10423 echo "$me: cannot create a temporary directory in ." >&2
10424 { (exit 1); exit 1; }
10427 _ACEOF
10429 cat >>$CONFIG_STATUS <<_ACEOF
10432 # CONFIG_FILES section.
10435 # No need to generate the scripts if there are no CONFIG_FILES.
10436 # This happens for instance when ./config.status config.h
10437 if test -n "\$CONFIG_FILES"; then
10438 # Protect against being on the right side of a sed subst in config.status.
10439 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10440 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10441 s,@SHELL@,$SHELL,;t t
10442 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10443 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10444 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10445 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10446 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10447 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10448 s,@exec_prefix@,$exec_prefix,;t t
10449 s,@prefix@,$prefix,;t t
10450 s,@program_transform_name@,$program_transform_name,;t t
10451 s,@bindir@,$bindir,;t t
10452 s,@sbindir@,$sbindir,;t t
10453 s,@libexecdir@,$libexecdir,;t t
10454 s,@datadir@,$datadir,;t t
10455 s,@sysconfdir@,$sysconfdir,;t t
10456 s,@sharedstatedir@,$sharedstatedir,;t t
10457 s,@localstatedir@,$localstatedir,;t t
10458 s,@libdir@,$libdir,;t t
10459 s,@includedir@,$includedir,;t t
10460 s,@oldincludedir@,$oldincludedir,;t t
10461 s,@infodir@,$infodir,;t t
10462 s,@mandir@,$mandir,;t t
10463 s,@build_alias@,$build_alias,;t t
10464 s,@host_alias@,$host_alias,;t t
10465 s,@target_alias@,$target_alias,;t t
10466 s,@DEFS@,$DEFS,;t t
10467 s,@ECHO_C@,$ECHO_C,;t t
10468 s,@ECHO_N@,$ECHO_N,;t t
10469 s,@ECHO_T@,$ECHO_T,;t t
10470 s,@LIBS@,$LIBS,;t t
10471 s,@build@,$build,;t t
10472 s,@build_cpu@,$build_cpu,;t t
10473 s,@build_vendor@,$build_vendor,;t t
10474 s,@build_os@,$build_os,;t t
10475 s,@host@,$host,;t t
10476 s,@host_cpu@,$host_cpu,;t t
10477 s,@host_vendor@,$host_vendor,;t t
10478 s,@host_os@,$host_os,;t t
10479 s,@target@,$target,;t t
10480 s,@target_cpu@,$target_cpu,;t t
10481 s,@target_vendor@,$target_vendor,;t t
10482 s,@target_os@,$target_os,;t t
10483 s,@CC@,$CC,;t t
10484 s,@CFLAGS@,$CFLAGS,;t t
10485 s,@LDFLAGS@,$LDFLAGS,;t t
10486 s,@CPPFLAGS@,$CPPFLAGS,;t t
10487 s,@ac_ct_CC@,$ac_ct_CC,;t t
10488 s,@EXEEXT@,$EXEEXT,;t t
10489 s,@OBJEXT@,$OBJEXT,;t t
10490 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10491 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10492 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10493 s,@CYGPATH_W@,$CYGPATH_W,;t t
10494 s,@PACKAGE@,$PACKAGE,;t t
10495 s,@VERSION@,$VERSION,;t t
10496 s,@ACLOCAL@,$ACLOCAL,;t t
10497 s,@AUTOCONF@,$AUTOCONF,;t t
10498 s,@AUTOMAKE@,$AUTOMAKE,;t t
10499 s,@AUTOHEADER@,$AUTOHEADER,;t t
10500 s,@MAKEINFO@,$MAKEINFO,;t t
10501 s,@install_sh@,$install_sh,;t t
10502 s,@STRIP@,$STRIP,;t t
10503 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10504 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10505 s,@mkdir_p@,$mkdir_p,;t t
10506 s,@AWK@,$AWK,;t t
10507 s,@SET_MAKE@,$SET_MAKE,;t t
10508 s,@am__leading_dot@,$am__leading_dot,;t t
10509 s,@AMTAR@,$AMTAR,;t t
10510 s,@am__tar@,$am__tar,;t t
10511 s,@am__untar@,$am__untar,;t t
10512 s,@DEPDIR@,$DEPDIR,;t t
10513 s,@am__include@,$am__include,;t t
10514 s,@am__quote@,$am__quote,;t t
10515 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10516 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10517 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10518 s,@CCDEPMODE@,$CCDEPMODE,;t t
10519 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10520 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10521 s,@LN_S@,$LN_S,;t t
10522 s,@RANLIB@,$RANLIB,;t t
10523 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10524 s,@LIBTOOL@,$LIBTOOL,;t t
10525 s,@use_sysroot@,$use_sysroot,;t t
10526 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10527 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10528 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
10529 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10530 s,@NO_WERROR@,$NO_WERROR,;t t
10531 s,@CPP@,$CPP,;t t
10532 s,@EGREP@,$EGREP,;t t
10533 s,@ALLOCA@,$ALLOCA,;t t
10534 s,@USE_NLS@,$USE_NLS,;t t
10535 s,@MSGFMT@,$MSGFMT,;t t
10536 s,@GMSGFMT@,$GMSGFMT,;t t
10537 s,@XGETTEXT@,$XGETTEXT,;t t
10538 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10539 s,@CATALOGS@,$CATALOGS,;t t
10540 s,@CATOBJEXT@,$CATOBJEXT,;t t
10541 s,@DATADIRNAME@,$DATADIRNAME,;t t
10542 s,@GMOFILES@,$GMOFILES,;t t
10543 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10544 s,@INTLDEPS@,$INTLDEPS,;t t
10545 s,@INTLLIBS@,$INTLLIBS,;t t
10546 s,@INTLOBJS@,$INTLOBJS,;t t
10547 s,@POFILES@,$POFILES,;t t
10548 s,@POSUB@,$POSUB,;t t
10549 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10550 s,@GT_NO@,$GT_NO,;t t
10551 s,@GT_YES@,$GT_YES,;t t
10552 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10553 s,@l@,$l,;t t
10554 s,@YACC@,$YACC,;t t
10555 s,@LEX@,$LEX,;t t
10556 s,@LEXLIB@,$LEXLIB,;t t
10557 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10558 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10559 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10560 s,@MAINT@,$MAINT,;t t
10561 s,@HDEFINES@,$HDEFINES,;t t
10562 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10563 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10564 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10565 s,@STRINGIFY@,$STRINGIFY,;t t
10566 s,@EMUL@,$EMUL,;t t
10567 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10568 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10569 s,@LIB_PATH@,$LIB_PATH,;t t
10570 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10571 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10572 s,@datarootdir@,$datarootdir,;t t
10573 s,@docdir@,$docdir,;t t
10574 s,@htmldir@,$htmldir,;t t
10575 s,@LIBOBJS@,$LIBOBJS,;t t
10576 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10577 /@TDIRS@/r $TDIRS
10578 s,@TDIRS@,,;t t
10579 CEOF
10581 _ACEOF
10583 cat >>$CONFIG_STATUS <<\_ACEOF
10584 # Split the substitutions into bite-sized pieces for seds with
10585 # small command number limits, like on Digital OSF/1 and HP-UX.
10586 ac_max_sed_lines=48
10587 ac_sed_frag=1 # Number of current file.
10588 ac_beg=1 # First line for current file.
10589 ac_end=$ac_max_sed_lines # Line after last line for current file.
10590 ac_more_lines=:
10591 ac_sed_cmds=
10592 while $ac_more_lines; do
10593 if test $ac_beg -gt 1; then
10594 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10595 else
10596 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10598 if test ! -s $tmp/subs.frag; then
10599 ac_more_lines=false
10600 else
10601 # The purpose of the label and of the branching condition is to
10602 # speed up the sed processing (if there are no `@' at all, there
10603 # is no need to browse any of the substitutions).
10604 # These are the two extra sed commands mentioned above.
10605 (echo ':t
10606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10607 if test -z "$ac_sed_cmds"; then
10608 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10609 else
10610 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10612 ac_sed_frag=`expr $ac_sed_frag + 1`
10613 ac_beg=$ac_end
10614 ac_end=`expr $ac_end + $ac_max_sed_lines`
10616 done
10617 if test -z "$ac_sed_cmds"; then
10618 ac_sed_cmds=cat
10620 fi # test -n "$CONFIG_FILES"
10622 _ACEOF
10623 cat >>$CONFIG_STATUS <<\_ACEOF
10624 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10626 case $ac_file in
10627 - | *:- | *:-:* ) # input from stdin
10628 cat >$tmp/stdin
10629 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10630 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10631 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10633 * ) ac_file_in=$ac_file.in ;;
10634 esac
10636 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10637 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10639 X"$ac_file" : 'X\(//\)[^/]' \| \
10640 X"$ac_file" : 'X\(//\)$' \| \
10641 X"$ac_file" : 'X\(/\)' \| \
10642 . : '\(.\)' 2>/dev/null ||
10643 echo X"$ac_file" |
10644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10646 /^X\(\/\/\)$/{ s//\1/; q; }
10647 /^X\(\/\).*/{ s//\1/; q; }
10648 s/.*/./; q'`
10649 { if $as_mkdir_p; then
10650 mkdir -p "$ac_dir"
10651 else
10652 as_dir="$ac_dir"
10653 as_dirs=
10654 while test ! -d "$as_dir"; do
10655 as_dirs="$as_dir $as_dirs"
10656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10658 X"$as_dir" : 'X\(//\)[^/]' \| \
10659 X"$as_dir" : 'X\(//\)$' \| \
10660 X"$as_dir" : 'X\(/\)' \| \
10661 . : '\(.\)' 2>/dev/null ||
10662 echo X"$as_dir" |
10663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10665 /^X\(\/\/\)$/{ s//\1/; q; }
10666 /^X\(\/\).*/{ s//\1/; q; }
10667 s/.*/./; q'`
10668 done
10669 test ! -n "$as_dirs" || mkdir $as_dirs
10670 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10671 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10672 { (exit 1); exit 1; }; }; }
10674 ac_builddir=.
10676 if test "$ac_dir" != .; then
10677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10678 # A "../" for each directory in $ac_dir_suffix.
10679 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10680 else
10681 ac_dir_suffix= ac_top_builddir=
10684 case $srcdir in
10685 .) # No --srcdir option. We are building in place.
10686 ac_srcdir=.
10687 if test -z "$ac_top_builddir"; then
10688 ac_top_srcdir=.
10689 else
10690 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10691 fi ;;
10692 [\\/]* | ?:[\\/]* ) # Absolute path.
10693 ac_srcdir=$srcdir$ac_dir_suffix;
10694 ac_top_srcdir=$srcdir ;;
10695 *) # Relative path.
10696 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10697 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10698 esac
10700 # Do not use `cd foo && pwd` to compute absolute paths, because
10701 # the directories may not exist.
10702 case `pwd` in
10703 .) ac_abs_builddir="$ac_dir";;
10705 case "$ac_dir" in
10706 .) ac_abs_builddir=`pwd`;;
10707 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10708 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10709 esac;;
10710 esac
10711 case $ac_abs_builddir in
10712 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10714 case ${ac_top_builddir}. in
10715 .) ac_abs_top_builddir=$ac_abs_builddir;;
10716 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10717 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10718 esac;;
10719 esac
10720 case $ac_abs_builddir in
10721 .) ac_abs_srcdir=$ac_srcdir;;
10723 case $ac_srcdir in
10724 .) ac_abs_srcdir=$ac_abs_builddir;;
10725 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10726 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10727 esac;;
10728 esac
10729 case $ac_abs_builddir in
10730 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10732 case $ac_top_srcdir in
10733 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10734 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10735 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10736 esac;;
10737 esac
10740 case $INSTALL in
10741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10742 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10743 esac
10745 if test x"$ac_file" != x-; then
10746 { echo "$as_me:$LINENO: creating $ac_file" >&5
10747 echo "$as_me: creating $ac_file" >&6;}
10748 rm -f "$ac_file"
10750 # Let's still pretend it is `configure' which instantiates (i.e., don't
10751 # use $as_me), people would be surprised to read:
10752 # /* config.h. Generated by config.status. */
10753 if test x"$ac_file" = x-; then
10754 configure_input=
10755 else
10756 configure_input="$ac_file. "
10758 configure_input=$configure_input"Generated from `echo $ac_file_in |
10759 sed 's,.*/,,'` by configure."
10761 # First look for the input files in the build tree, otherwise in the
10762 # src tree.
10763 ac_file_inputs=`IFS=:
10764 for f in $ac_file_in; do
10765 case $f in
10766 -) echo $tmp/stdin ;;
10767 [\\/$]*)
10768 # Absolute (can't be DOS-style, as IFS=:)
10769 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10770 echo "$as_me: error: cannot find input file: $f" >&2;}
10771 { (exit 1); exit 1; }; }
10772 echo "$f";;
10773 *) # Relative
10774 if test -f "$f"; then
10775 # Build tree
10776 echo "$f"
10777 elif test -f "$srcdir/$f"; then
10778 # Source tree
10779 echo "$srcdir/$f"
10780 else
10781 # /dev/null tree
10782 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10783 echo "$as_me: error: cannot find input file: $f" >&2;}
10784 { (exit 1); exit 1; }; }
10785 fi;;
10786 esac
10787 done` || { (exit 1); exit 1; }
10788 _ACEOF
10789 cat >>$CONFIG_STATUS <<_ACEOF
10790 sed "$ac_vpsub
10791 $extrasub
10792 _ACEOF
10793 cat >>$CONFIG_STATUS <<\_ACEOF
10795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10796 s,@configure_input@,$configure_input,;t t
10797 s,@srcdir@,$ac_srcdir,;t t
10798 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10799 s,@top_srcdir@,$ac_top_srcdir,;t t
10800 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10801 s,@builddir@,$ac_builddir,;t t
10802 s,@abs_builddir@,$ac_abs_builddir,;t t
10803 s,@top_builddir@,$ac_top_builddir,;t t
10804 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10805 s,@INSTALL@,$ac_INSTALL,;t t
10806 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10807 rm -f $tmp/stdin
10808 if test x"$ac_file" != x-; then
10809 mv $tmp/out $ac_file
10810 else
10811 cat $tmp/out
10812 rm -f $tmp/out
10815 done
10816 _ACEOF
10817 cat >>$CONFIG_STATUS <<\_ACEOF
10820 # CONFIG_HEADER section.
10823 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10824 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10826 # ac_d sets the value in "#define NAME VALUE" lines.
10827 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10828 ac_dB='[ ].*$,\1#\2'
10829 ac_dC=' '
10830 ac_dD=',;t'
10831 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10832 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10833 ac_uB='$,\1#\2define\3'
10834 ac_uC=' '
10835 ac_uD=',;t'
10837 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10839 case $ac_file in
10840 - | *:- | *:-:* ) # input from stdin
10841 cat >$tmp/stdin
10842 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10844 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10846 * ) ac_file_in=$ac_file.in ;;
10847 esac
10849 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10850 echo "$as_me: creating $ac_file" >&6;}
10852 # First look for the input files in the build tree, otherwise in the
10853 # src tree.
10854 ac_file_inputs=`IFS=:
10855 for f in $ac_file_in; do
10856 case $f in
10857 -) echo $tmp/stdin ;;
10858 [\\/$]*)
10859 # Absolute (can't be DOS-style, as IFS=:)
10860 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10861 echo "$as_me: error: cannot find input file: $f" >&2;}
10862 { (exit 1); exit 1; }; }
10863 # Do quote $f, to prevent DOS paths from being IFS'd.
10864 echo "$f";;
10865 *) # Relative
10866 if test -f "$f"; then
10867 # Build tree
10868 echo "$f"
10869 elif test -f "$srcdir/$f"; then
10870 # Source tree
10871 echo "$srcdir/$f"
10872 else
10873 # /dev/null tree
10874 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10875 echo "$as_me: error: cannot find input file: $f" >&2;}
10876 { (exit 1); exit 1; }; }
10877 fi;;
10878 esac
10879 done` || { (exit 1); exit 1; }
10880 # Remove the trailing spaces.
10881 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10883 _ACEOF
10885 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10886 # `conftest.undefs', that substitutes the proper values into
10887 # config.h.in to produce config.h. The first handles `#define'
10888 # templates, and the second `#undef' templates.
10889 # And first: Protect against being on the right side of a sed subst in
10890 # config.status. Protect against being in an unquoted here document
10891 # in config.status.
10892 rm -f conftest.defines conftest.undefs
10893 # Using a here document instead of a string reduces the quoting nightmare.
10894 # Putting comments in sed scripts is not portable.
10896 # `end' is used to avoid that the second main sed command (meant for
10897 # 0-ary CPP macros) applies to n-ary macro definitions.
10898 # See the Autoconf documentation for `clear'.
10899 cat >confdef2sed.sed <<\_ACEOF
10900 s/[\\&,]/\\&/g
10901 s,[\\$`],\\&,g
10902 t clear
10903 : clear
10904 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10905 t end
10906 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10907 : end
10908 _ACEOF
10909 # If some macros were called several times there might be several times
10910 # the same #defines, which is useless. Nevertheless, we may not want to
10911 # sort them, since we want the *last* AC-DEFINE to be honored.
10912 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10913 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10914 rm -f confdef2sed.sed
10916 # This sed command replaces #undef with comments. This is necessary, for
10917 # example, in the case of _POSIX_SOURCE, which is predefined and required
10918 # on some systems where configure will not decide to define it.
10919 cat >>conftest.undefs <<\_ACEOF
10920 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10921 _ACEOF
10923 # Break up conftest.defines because some shells have a limit on the size
10924 # of here documents, and old seds have small limits too (100 cmds).
10925 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10926 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10927 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10928 echo ' :' >>$CONFIG_STATUS
10929 rm -f conftest.tail
10930 while grep . conftest.defines >/dev/null
10932 # Write a limited-size here document to $tmp/defines.sed.
10933 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10934 # Speed up: don't consider the non `#define' lines.
10935 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10936 # Work around the forget-to-reset-the-flag bug.
10937 echo 't clr' >>$CONFIG_STATUS
10938 echo ': clr' >>$CONFIG_STATUS
10939 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10940 echo 'CEOF
10941 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10942 rm -f $tmp/in
10943 mv $tmp/out $tmp/in
10944 ' >>$CONFIG_STATUS
10945 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10946 rm -f conftest.defines
10947 mv conftest.tail conftest.defines
10948 done
10949 rm -f conftest.defines
10950 echo ' fi # grep' >>$CONFIG_STATUS
10951 echo >>$CONFIG_STATUS
10953 # Break up conftest.undefs because some shells have a limit on the size
10954 # of here documents, and old seds have small limits too (100 cmds).
10955 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10956 rm -f conftest.tail
10957 while grep . conftest.undefs >/dev/null
10959 # Write a limited-size here document to $tmp/undefs.sed.
10960 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10961 # Speed up: don't consider the non `#undef'
10962 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10963 # Work around the forget-to-reset-the-flag bug.
10964 echo 't clr' >>$CONFIG_STATUS
10965 echo ': clr' >>$CONFIG_STATUS
10966 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10967 echo 'CEOF
10968 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10969 rm -f $tmp/in
10970 mv $tmp/out $tmp/in
10971 ' >>$CONFIG_STATUS
10972 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10973 rm -f conftest.undefs
10974 mv conftest.tail conftest.undefs
10975 done
10976 rm -f conftest.undefs
10978 cat >>$CONFIG_STATUS <<\_ACEOF
10979 # Let's still pretend it is `configure' which instantiates (i.e., don't
10980 # use $as_me), people would be surprised to read:
10981 # /* config.h. Generated by config.status. */
10982 if test x"$ac_file" = x-; then
10983 echo "/* Generated by configure. */" >$tmp/config.h
10984 else
10985 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10987 cat $tmp/in >>$tmp/config.h
10988 rm -f $tmp/in
10989 if test x"$ac_file" != x-; then
10990 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10991 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10992 echo "$as_me: $ac_file is unchanged" >&6;}
10993 else
10994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10996 X"$ac_file" : 'X\(//\)[^/]' \| \
10997 X"$ac_file" : 'X\(//\)$' \| \
10998 X"$ac_file" : 'X\(/\)' \| \
10999 . : '\(.\)' 2>/dev/null ||
11000 echo X"$ac_file" |
11001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11003 /^X\(\/\/\)$/{ s//\1/; q; }
11004 /^X\(\/\).*/{ s//\1/; q; }
11005 s/.*/./; q'`
11006 { if $as_mkdir_p; then
11007 mkdir -p "$ac_dir"
11008 else
11009 as_dir="$ac_dir"
11010 as_dirs=
11011 while test ! -d "$as_dir"; do
11012 as_dirs="$as_dir $as_dirs"
11013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11015 X"$as_dir" : 'X\(//\)[^/]' \| \
11016 X"$as_dir" : 'X\(//\)$' \| \
11017 X"$as_dir" : 'X\(/\)' \| \
11018 . : '\(.\)' 2>/dev/null ||
11019 echo X"$as_dir" |
11020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11022 /^X\(\/\/\)$/{ s//\1/; q; }
11023 /^X\(\/\).*/{ s//\1/; q; }
11024 s/.*/./; q'`
11025 done
11026 test ! -n "$as_dirs" || mkdir $as_dirs
11027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11029 { (exit 1); exit 1; }; }; }
11031 rm -f $ac_file
11032 mv $tmp/config.h $ac_file
11034 else
11035 cat $tmp/config.h
11036 rm -f $tmp/config.h
11038 # Compute $ac_file's index in $config_headers.
11039 _am_stamp_count=1
11040 for _am_header in $config_headers :; do
11041 case $_am_header in
11042 $ac_file | $ac_file:* )
11043 break ;;
11045 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11046 esac
11047 done
11048 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11049 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11050 X$ac_file : 'X\(//\)[^/]' \| \
11051 X$ac_file : 'X\(//\)$' \| \
11052 X$ac_file : 'X\(/\)' \| \
11053 . : '\(.\)' 2>/dev/null ||
11054 echo X$ac_file |
11055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11057 /^X\(\/\/\)$/{ s//\1/; q; }
11058 /^X\(\/\).*/{ s//\1/; q; }
11059 s/.*/./; q'`/stamp-h$_am_stamp_count
11060 done
11061 _ACEOF
11062 cat >>$CONFIG_STATUS <<\_ACEOF
11065 # CONFIG_COMMANDS section.
11067 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11068 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11069 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11070 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11071 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11072 X"$ac_dest" : 'X\(//\)[^/]' \| \
11073 X"$ac_dest" : 'X\(//\)$' \| \
11074 X"$ac_dest" : 'X\(/\)' \| \
11075 . : '\(.\)' 2>/dev/null ||
11076 echo X"$ac_dest" |
11077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11079 /^X\(\/\/\)$/{ s//\1/; q; }
11080 /^X\(\/\).*/{ s//\1/; q; }
11081 s/.*/./; q'`
11082 { if $as_mkdir_p; then
11083 mkdir -p "$ac_dir"
11084 else
11085 as_dir="$ac_dir"
11086 as_dirs=
11087 while test ! -d "$as_dir"; do
11088 as_dirs="$as_dir $as_dirs"
11089 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11091 X"$as_dir" : 'X\(//\)[^/]' \| \
11092 X"$as_dir" : 'X\(//\)$' \| \
11093 X"$as_dir" : 'X\(/\)' \| \
11094 . : '\(.\)' 2>/dev/null ||
11095 echo X"$as_dir" |
11096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11098 /^X\(\/\/\)$/{ s//\1/; q; }
11099 /^X\(\/\).*/{ s//\1/; q; }
11100 s/.*/./; q'`
11101 done
11102 test ! -n "$as_dirs" || mkdir $as_dirs
11103 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11105 { (exit 1); exit 1; }; }; }
11107 ac_builddir=.
11109 if test "$ac_dir" != .; then
11110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11111 # A "../" for each directory in $ac_dir_suffix.
11112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11113 else
11114 ac_dir_suffix= ac_top_builddir=
11117 case $srcdir in
11118 .) # No --srcdir option. We are building in place.
11119 ac_srcdir=.
11120 if test -z "$ac_top_builddir"; then
11121 ac_top_srcdir=.
11122 else
11123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11124 fi ;;
11125 [\\/]* | ?:[\\/]* ) # Absolute path.
11126 ac_srcdir=$srcdir$ac_dir_suffix;
11127 ac_top_srcdir=$srcdir ;;
11128 *) # Relative path.
11129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11131 esac
11133 # Do not use `cd foo && pwd` to compute absolute paths, because
11134 # the directories may not exist.
11135 case `pwd` in
11136 .) ac_abs_builddir="$ac_dir";;
11138 case "$ac_dir" in
11139 .) ac_abs_builddir=`pwd`;;
11140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11142 esac;;
11143 esac
11144 case $ac_abs_builddir in
11145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11147 case ${ac_top_builddir}. in
11148 .) ac_abs_top_builddir=$ac_abs_builddir;;
11149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11151 esac;;
11152 esac
11153 case $ac_abs_builddir in
11154 .) ac_abs_srcdir=$ac_srcdir;;
11156 case $ac_srcdir in
11157 .) ac_abs_srcdir=$ac_abs_builddir;;
11158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11160 esac;;
11161 esac
11162 case $ac_abs_builddir in
11163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11165 case $ac_top_srcdir in
11166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11169 esac;;
11170 esac
11173 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11174 echo "$as_me: executing $ac_dest commands" >&6;}
11175 case $ac_dest in
11176 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11177 # Strip MF so we end up with the name of the file.
11178 mf=`echo "$mf" | sed -e 's/:.*$//'`
11179 # Check whether this is an Automake generated Makefile or not.
11180 # We used to match only the files named `Makefile.in', but
11181 # some people rename them; so instead we look at the file content.
11182 # Grep'ing the first line is not enough: some people post-process
11183 # each Makefile.in and add a new line on top of each file to say so.
11184 # So let's grep whole file.
11185 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11186 dirpart=`(dirname "$mf") 2>/dev/null ||
11187 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11188 X"$mf" : 'X\(//\)[^/]' \| \
11189 X"$mf" : 'X\(//\)$' \| \
11190 X"$mf" : 'X\(/\)' \| \
11191 . : '\(.\)' 2>/dev/null ||
11192 echo X"$mf" |
11193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11195 /^X\(\/\/\)$/{ s//\1/; q; }
11196 /^X\(\/\).*/{ s//\1/; q; }
11197 s/.*/./; q'`
11198 else
11199 continue
11201 # Extract the definition of DEPDIR, am__include, and am__quote
11202 # from the Makefile without running `make'.
11203 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11204 test -z "$DEPDIR" && continue
11205 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11206 test -z "am__include" && continue
11207 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11208 # When using ansi2knr, U may be empty or an underscore; expand it
11209 U=`sed -n 's/^U = //p' < "$mf"`
11210 # Find all dependency output files, they are included files with
11211 # $(DEPDIR) in their names. We invoke sed twice because it is the
11212 # simplest approach to changing $(DEPDIR) to its actual value in the
11213 # expansion.
11214 for file in `sed -n "
11215 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11216 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11217 # Make sure the directory exists.
11218 test -f "$dirpart/$file" && continue
11219 fdir=`(dirname "$file") 2>/dev/null ||
11220 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11221 X"$file" : 'X\(//\)[^/]' \| \
11222 X"$file" : 'X\(//\)$' \| \
11223 X"$file" : 'X\(/\)' \| \
11224 . : '\(.\)' 2>/dev/null ||
11225 echo X"$file" |
11226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11228 /^X\(\/\/\)$/{ s//\1/; q; }
11229 /^X\(\/\).*/{ s//\1/; q; }
11230 s/.*/./; q'`
11231 { if $as_mkdir_p; then
11232 mkdir -p $dirpart/$fdir
11233 else
11234 as_dir=$dirpart/$fdir
11235 as_dirs=
11236 while test ! -d "$as_dir"; do
11237 as_dirs="$as_dir $as_dirs"
11238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11240 X"$as_dir" : 'X\(//\)[^/]' \| \
11241 X"$as_dir" : 'X\(//\)$' \| \
11242 X"$as_dir" : 'X\(/\)' \| \
11243 . : '\(.\)' 2>/dev/null ||
11244 echo X"$as_dir" |
11245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11247 /^X\(\/\/\)$/{ s//\1/; q; }
11248 /^X\(\/\).*/{ s//\1/; q; }
11249 s/.*/./; q'`
11250 done
11251 test ! -n "$as_dirs" || mkdir $as_dirs
11252 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11253 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11254 { (exit 1); exit 1; }; }; }
11256 # echo "creating $dirpart/$file"
11257 echo '# dummy' > "$dirpart/$file"
11258 done
11259 done
11261 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11262 esac
11263 done
11264 _ACEOF
11266 cat >>$CONFIG_STATUS <<\_ACEOF
11268 { (exit 0); exit 0; }
11269 _ACEOF
11270 chmod +x $CONFIG_STATUS
11271 ac_clean_files=$ac_clean_files_save
11274 # configure is writing to config.log, and then calls config.status.
11275 # config.status does its own redirection, appending to config.log.
11276 # Unfortunately, on DOS this fails, as config.log is still kept open
11277 # by configure, so config.status won't be able to write to it; its
11278 # output is simply discarded. So we exec the FD to /dev/null,
11279 # effectively closing config.log, so it can be properly (re)opened and
11280 # appended to by config.status. When coming back to configure, we
11281 # need to make the FD available again.
11282 if test "$no_create" != yes; then
11283 ac_cs_success=:
11284 ac_config_status_args=
11285 test "$silent" = yes &&
11286 ac_config_status_args="$ac_config_status_args --quiet"
11287 exec 5>/dev/null
11288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11289 exec 5>>config.log
11290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11291 # would make configure fail if this is the last instruction.
11292 $ac_cs_success || { (exit 1); exit 1; }