* sources.am, Makefile.in: Rebuilt.
[official-gcc.git] / zlib / configure
blob20f35a878d30714b35506a67300230307ff075f9
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="zlib.h"
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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL CPP CPPFLAGS EGREP target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
763 # Report the --help message.
765 if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
768 cat <<_ACEOF
769 \`configure' configures this package to adapt to many kinds of systems.
771 Usage: $0 [OPTION]... [VAR=VALUE]...
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE. See below for descriptions of some of the useful variables.
776 Defaults for the options are specified in brackets.
778 Configuration:
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
789 _ACEOF
791 cat <<_ACEOF
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
794 [$ac_default_prefix]
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
796 [PREFIX]
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
803 For better control, use the options below.
805 Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
818 _ACEOF
820 cat <<\_ACEOF
822 Program names:
823 --program-prefix=PREFIX prepend PREFIX to installed program names
824 --program-suffix=SUFFIX append SUFFIX to installed program names
825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
827 System types:
828 --build=BUILD configure for building on BUILD [guessed]
829 --host=HOST cross-compile to build programs to run on HOST [BUILD]
830 --target=TARGET configure for building compilers for TARGET [HOST]
831 _ACEOF
834 if test -n "$ac_init_help"; then
836 cat <<\_ACEOF
838 Optional Features:
839 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
840 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
841 --enable-multilib build many library versions (default)
842 --enable-maintainer-mode enable make rules and dependencies not useful
843 (and sometimes confusing) to the casual installer
844 --disable-dependency-tracking speeds up one-time build
845 --enable-dependency-tracking do not reject slow dependency extractors
846 --enable-shared=PKGS build shared libraries default=yes
847 --enable-static=PKGS build static libraries default=yes
848 --enable-fast-install=PKGS optimize for fast installation default=yes
849 --disable-libtool-lock avoid locking (might break parallel builds)
851 Optional Packages:
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-target-subdir=SUBDIR
855 configuring in a subdirectory
856 --with-cross-host=HOST configuring with a cross compiler
857 --with-system-zlib use installed libz
858 --with-gnu-ld assume the C compiler uses GNU ld default=no
859 --with-pic try to use only PIC/non-PIC objects default=use both
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 cd $ac_popdir
962 done
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973 exit 0
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
983 $ $0 $@
985 _ACEOF
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009 _ASUNAME
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1014 IFS=$as_save_IFS
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1017 done
1019 } >&5
1021 cat >&5 <<_ACEOF
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1028 _ACEOF
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1043 for ac_arg
1045 case $ac_arg in
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 continue ;;
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052 esac
1053 case $ac_pass in
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1059 else
1060 case $ac_arg in
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067 esac
1069 -* ) ac_must_keep_next=true ;;
1070 esac
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1074 ac_sep=" "
1076 esac
1077 done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1090 echo
1092 cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097 echo
1098 # The following way of writing the cache mishandles newlines in values,
1100 (set) 2>&1 |
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 *ac_space=\ *)
1103 sed -n \
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 sed -n \
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 esac;
1113 echo
1115 cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_vars
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
1128 if test -n "$ac_subst_files"; then
1129 cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_files
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1143 if test -s confdefs.h; then
1144 cat <<\_ASBOX
1145 ## ----------- ##
1146 ## confdefs.h. ##
1147 ## ----------- ##
1148 _ASBOX
1149 echo
1150 sed "/^$/d" confdefs.h | sort
1151 echo
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1156 } >&5
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159 exit $exit_status
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 else
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1212 . "$ac_site_file"
1214 done
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222 case $cache_file in
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1225 esac
1227 else
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230 >$cache_file
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1243 set,)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,set)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,);;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1261 fi;;
1262 esac
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1265 case $ac_new_val in
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1269 esac
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 esac
1275 done
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 # Default to --enable-multilib
1311 # Check whether --enable-multilib or --disable-multilib was given.
1312 if test "${enable_multilib+set}" = set; then
1313 enableval="$enable_multilib"
1314 case "$enableval" in
1315 yes) multilib=yes ;;
1316 no) multilib=no ;;
1317 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1318 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1319 { (exit 1); exit 1; }; } ;;
1320 esac
1321 else
1322 multilib=yes
1325 # We may get other options which we leave undocumented:
1326 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1327 # See config-ml.in if you want the gory details.
1329 if test "$srcdir" = "."; then
1330 if test "$with_target_subdir" != "."; then
1331 multi_basedir="$srcdir/$with_multisrctop../.."
1332 else
1333 multi_basedir="$srcdir/$with_multisrctop.."
1335 else
1336 multi_basedir="$srcdir/.."
1340 ac_config_commands="$ac_config_commands default-1"
1343 ac_aux_dir=
1344 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345 if test -f $ac_dir/install-sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1348 break
1349 elif test -f $ac_dir/install.sh; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1352 break
1353 elif test -f $ac_dir/shtool; then
1354 ac_aux_dir=$ac_dir
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1356 break
1358 done
1359 if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362 { (exit 1); exit 1; }; }
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 # Make sure we can run config.sub.
1369 $ac_config_sub sun4 >/dev/null 2>&1 ||
1370 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1371 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1372 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: checking build system type" >&5
1375 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1376 if test "${ac_cv_build+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379 ac_cv_build_alias=$build_alias
1380 test -z "$ac_cv_build_alias" &&
1381 ac_cv_build_alias=`$ac_config_guess`
1382 test -z "$ac_cv_build_alias" &&
1383 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1384 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1385 { (exit 1); exit 1; }; }
1386 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1393 echo "${ECHO_T}$ac_cv_build" >&6
1394 build=$ac_cv_build
1395 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:$LINENO: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1416 host=$ac_cv_host
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 echo "$as_me:$LINENO: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 # The aliases save the names the user supplied, while $host etc.
1445 # will get canonicalized.
1446 test -n "$target_alias" &&
1447 test "$program_prefix$program_suffix$program_transform_name" = \
1448 NONENONEs,x,x, &&
1449 program_prefix=${target_alias}-
1451 # This works around an automake problem.
1452 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1455 am__api_version="1.9"
1456 # Find a good install program. We prefer a C program (faster),
1457 # so one script is as good as another. But avoid the broken or
1458 # incompatible versions:
1459 # SysV /etc/install, /usr/sbin/install
1460 # SunOS /usr/etc/install
1461 # IRIX /sbin/install
1462 # AIX /bin/install
1463 # AmigaOS /C/install, which installs bootblocks on floppy discs
1464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467 # OS/2's system install, which has a completely different semantic
1468 # ./install, which can be erroneously created by make from ./install.sh.
1469 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471 if test -z "$INSTALL"; then
1472 if test "${ac_cv_path_install+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 for as_dir in $PATH
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 # Account for people who put trailing slashes in PATH elements.
1481 case $as_dir/ in
1482 ./ | .// | /cC/* | \
1483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485 /usr/ucb/* ) ;;
1487 # OSF1 and SCO ODT 3.0 have their own names for install.
1488 # Don't use installbsd from OSF since it installs stuff as root
1489 # by default.
1490 for ac_prog in ginstall scoinst install; do
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493 if test $ac_prog = install &&
1494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495 # AIX install. It has an incompatible calling convention.
1497 elif test $ac_prog = install &&
1498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499 # program-specific install script used by HP pwplus--don't use.
1501 else
1502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503 break 3
1506 done
1507 done
1509 esac
1510 done
1514 if test "${ac_cv_path_install+set}" = set; then
1515 INSTALL=$ac_cv_path_install
1516 else
1517 # As a last resort, use the slow shell script. We don't cache a
1518 # path for INSTALL within a source directory, because that will
1519 # break other packages using the cache if that directory is
1520 # removed, or if the path is relative.
1521 INSTALL=$ac_install_sh
1524 echo "$as_me:$LINENO: result: $INSTALL" >&5
1525 echo "${ECHO_T}$INSTALL" >&6
1527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528 # It thinks the first close brace ends the variable substitution.
1529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1535 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537 # Just in case
1538 sleep 1
1539 echo timestamp > conftest.file
1540 # Do `set' in a subshell so we don't clobber the current shell's
1541 # arguments. Must try -L first in case configure is actually a
1542 # symlink; some systems play weird games with the mod time of symlinks
1543 # (eg FreeBSD returns the mod time of the symlink's containing
1544 # directory).
1545 if (
1546 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547 if test "$*" = "X"; then
1548 # -L didn't work.
1549 set X `ls -t $srcdir/configure conftest.file`
1551 rm -f conftest.file
1552 if test "$*" != "X $srcdir/configure conftest.file" \
1553 && test "$*" != "X conftest.file $srcdir/configure"; then
1555 # If neither matched, then we have a broken ls. This can happen
1556 # if, for instance, CONFIG_SHELL is bash and it inherits a
1557 # broken ls alias from the environment. This has actually
1558 # happened. Such a system could not be considered "sane".
1559 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&5
1561 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1562 alias in your environment" >&2;}
1563 { (exit 1); exit 1; }; }
1566 test "$2" = conftest.file
1568 then
1569 # Ok.
1571 else
1572 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573 Check your system clock" >&5
1574 echo "$as_me: error: newly created file is older than distributed files!
1575 Check your system clock" >&2;}
1576 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1580 test "$program_prefix" != NONE &&
1581 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582 # Use a double $ so make ignores it.
1583 test "$program_suffix" != NONE &&
1584 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585 # Double any \ or $. echo might interpret backslashes.
1586 # By default was `s,x,x', remove it if useless.
1587 cat <<\_ACEOF >conftest.sed
1588 s/[\\$]/&&/g;s/;s,x,x,$//
1589 _ACEOF
1590 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591 rm conftest.sed
1593 # expand $ac_aux_dir to an absolute path
1594 am_aux_dir=`cd $ac_aux_dir && pwd`
1596 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597 # Use eval to expand $SHELL
1598 if eval "$MISSING --run true"; then
1599 am_missing_run="$MISSING --run "
1600 else
1601 am_missing_run=
1602 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1606 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607 # We used to keeping the `.' as first argument, in order to
1608 # allow $(mkdir_p) to be used without argument. As in
1609 # $(mkdir_p) $(somedir)
1610 # where $(somedir) is conditionally defined. However this is wrong
1611 # for two reasons:
1612 # 1. if the package is installed by a user who cannot write `.'
1613 # make install will fail,
1614 # 2. the above comment should most certainly read
1615 # $(mkdir_p) $(DESTDIR)$(somedir)
1616 # so it does not work when $(somedir) is undefined and
1617 # $(DESTDIR) is not.
1618 # To support the latter case, we have to write
1619 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1620 # so the `.' trick is pointless.
1621 mkdir_p='mkdir -p --'
1622 else
1623 # On NextStep and OpenStep, the `mkdir' command does not
1624 # recognize any option. It will interpret all options as
1625 # directories to create, and then abort because `.' already
1626 # exists.
1627 for d in ./-p ./--version;
1629 test -d $d && rmdir $d
1630 done
1631 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1632 if test -f "$ac_aux_dir/mkinstalldirs"; then
1633 mkdir_p='$(mkinstalldirs)'
1634 else
1635 mkdir_p='$(install_sh) -d'
1639 for ac_prog in gawk mawk nawk awk
1641 # Extract the first word of "$ac_prog", so it can be a program name with args.
1642 set dummy $ac_prog; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_AWK+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 if test -n "$AWK"; then
1649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_AWK="$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1662 done
1663 done
1667 AWK=$ac_cv_prog_AWK
1668 if test -n "$AWK"; then
1669 echo "$as_me:$LINENO: result: $AWK" >&5
1670 echo "${ECHO_T}$AWK" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1676 test -n "$AWK" && break
1677 done
1679 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1680 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1681 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1682 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 cat >conftest.make <<\_ACEOF
1686 all:
1687 @echo 'ac_maketemp="$(MAKE)"'
1688 _ACEOF
1689 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1690 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1691 if test -n "$ac_maketemp"; then
1692 eval ac_cv_prog_make_${ac_make}_set=yes
1693 else
1694 eval ac_cv_prog_make_${ac_make}_set=no
1696 rm -f conftest.make
1698 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1699 echo "$as_me:$LINENO: result: yes" >&5
1700 echo "${ECHO_T}yes" >&6
1701 SET_MAKE=
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1705 SET_MAKE="MAKE=${MAKE-make}"
1708 rm -rf .tst 2>/dev/null
1709 mkdir .tst 2>/dev/null
1710 if test -d .tst; then
1711 am__leading_dot=.
1712 else
1713 am__leading_dot=_
1715 rmdir .tst 2>/dev/null
1717 # test to see if srcdir already configured
1718 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1719 test -f $srcdir/config.status; then
1720 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1721 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1722 { (exit 1); exit 1; }; }
1725 # test whether we have cygpath
1726 if test -z "$CYGPATH_W"; then
1727 if (cygpath --version) >/dev/null 2>/dev/null; then
1728 CYGPATH_W='cygpath -w'
1729 else
1730 CYGPATH_W=echo
1735 # Define the identity of the package.
1736 PACKAGE=zlib
1737 VERSION=1.1.4
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE "$PACKAGE"
1742 _ACEOF
1745 cat >>confdefs.h <<_ACEOF
1746 #define VERSION "$VERSION"
1747 _ACEOF
1749 # Some tools Automake needs.
1751 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1754 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1757 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1760 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1763 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1765 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1767 # Installed binaries are usually stripped using `strip' when the user
1768 # run `make install-strip'. However `strip' might not be the right
1769 # tool to use in cross-compilation environments, therefore Automake
1770 # will honor the `STRIP' environment variable to overrule this program.
1771 if test "$cross_compiling" != no; then
1772 if test -n "$ac_tool_prefix"; then
1773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1774 set dummy ${ac_tool_prefix}strip; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_STRIP+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 if test -n "$STRIP"; then
1781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1786 IFS=$as_save_IFS
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1794 done
1795 done
1799 STRIP=$ac_cv_prog_STRIP
1800 if test -n "$STRIP"; then
1801 echo "$as_me:$LINENO: result: $STRIP" >&5
1802 echo "${ECHO_T}$STRIP" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1809 if test -z "$ac_cv_prog_STRIP"; then
1810 ac_ct_STRIP=$STRIP
1811 # Extract the first word of "strip", so it can be a program name with args.
1812 set dummy strip; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 if test -n "$ac_ct_STRIP"; then
1819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1820 else
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_ac_ct_STRIP="strip"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1832 done
1833 done
1835 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1838 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1839 if test -n "$ac_ct_STRIP"; then
1840 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1841 echo "${ECHO_T}$ac_ct_STRIP" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1847 STRIP=$ac_ct_STRIP
1848 else
1849 STRIP="$ac_cv_prog_STRIP"
1853 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1855 # We need awk for the "check" target. The system "awk" is bad on
1856 # some platforms.
1857 # Always define AMTAR for backward compatibility.
1859 AMTAR=${AMTAR-"${am_missing_run}tar"}
1861 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1868 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1869 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1870 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1871 if test "${enable_maintainer_mode+set}" = set; then
1872 enableval="$enable_maintainer_mode"
1873 USE_MAINTAINER_MODE=$enableval
1874 else
1875 USE_MAINTAINER_MODE=no
1877 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1878 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1881 if test $USE_MAINTAINER_MODE = yes; then
1882 MAINTAINER_MODE_TRUE=
1883 MAINTAINER_MODE_FALSE='#'
1884 else
1885 MAINTAINER_MODE_TRUE='#'
1886 MAINTAINER_MODE_FALSE=
1889 MAINT=$MAINTAINER_MODE_TRUE
1894 # Check whether --with-target-subdir or --without-target-subdir was given.
1895 if test "${with_target_subdir+set}" = set; then
1896 withval="$with_target_subdir"
1900 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
1901 COMPPATH=.
1902 else
1903 COMPPATH=..
1908 # Check whether --with-cross-host or --without-cross-host was given.
1909 if test "${with_cross_host+set}" = set; then
1910 withval="$with_cross_host"
1914 # Check whether --enable-multilib or --disable-multilib was given.
1915 if test "${enable_multilib+set}" = set; then
1916 enableval="$enable_multilib"
1917 case "${enableval}" in
1918 yes) multilib=yes ;;
1919 no) multilib=no ;;
1920 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1921 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1922 { (exit 1); exit 1; }; } ;;
1923 esac
1924 else
1925 test -z "$with_target_subdir" && multilib=no || multilib=yes
1928 # Check whether --with-system-zlib or --without-system-zlib was given.
1929 if test "${with_system_zlib+set}" = set; then
1930 withval="$with_system_zlib"
1934 # Make sure we don't test executables when making cross-tools.
1937 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1938 # We must force CC to /not/ be precious variables; otherwise
1939 # the wrong, non-multilib-adjusted value will be used in multilibs.
1940 # As a side effect, we have to subst CFLAGS ourselves.
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1971 done
1972 done
1976 CC=$ac_cv_prog_CC
1977 if test -n "$CC"; then
1978 echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6
1980 else
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1986 if test -z "$ac_cv_prog_CC"; then
1987 ac_ct_CC=$CC
1988 # Extract the first word of "gcc", so it can be a program name with args.
1989 set dummy gcc; ac_word=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 if test -n "$ac_ct_CC"; then
1996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 ac_cv_prog_ac_ct_CC="gcc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2009 done
2010 done
2014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2015 if test -n "$ac_ct_CC"; then
2016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017 echo "${ECHO_T}$ac_ct_CC" >&6
2018 else
2019 echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
2023 CC=$ac_ct_CC
2024 else
2025 CC="$ac_cv_prog_CC"
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}cc; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC="${ac_tool_prefix}cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2051 done
2052 done
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2060 else
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2066 if test -z "$ac_cv_prog_CC"; then
2067 ac_ct_CC=$CC
2068 # Extract the first word of "cc", so it can be a program name with args.
2069 set dummy cc; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC="cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6
2098 else
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 CC=$ac_ct_CC
2104 else
2105 CC="$ac_cv_prog_CC"
2109 if test -z "$CC"; then
2110 # Extract the first word of "cc", so it can be a program name with args.
2111 set dummy cc; ac_word=$2
2112 echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 ac_prog_rejected=no
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2129 ac_prog_rejected=yes
2130 continue
2132 ac_cv_prog_CC="cc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2136 done
2137 done
2139 if test $ac_prog_rejected = yes; then
2140 # We found a bogon in the path, so make sure we never use it.
2141 set dummy $ac_cv_prog_CC
2142 shift
2143 if test $# != 0; then
2144 # We chose a different compiler from the bogus one.
2145 # However, it has the same basename, so the bogon will be chosen
2146 # first if we set CC to just the basename; use the full file name.
2147 shift
2148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155 echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6
2157 else
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 for ac_prog in cl
2167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2188 done
2189 done
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195 echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6
2197 else
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2202 test -n "$CC" && break
2203 done
2205 if test -z "$CC"; then
2206 ac_ct_CC=$CC
2207 for ac_prog in cl
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy $ac_prog; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 if test -n "$ac_ct_CC"; then
2217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226 ac_cv_prog_ac_ct_CC="$ac_prog"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2230 done
2231 done
2235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236 if test -n "$ac_ct_CC"; then
2237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238 echo "${ECHO_T}$ac_ct_CC" >&6
2239 else
2240 echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6
2244 test -n "$ac_ct_CC" && break
2245 done
2247 CC=$ac_ct_CC
2253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2259 # Provide some information about the compiler.
2260 echo "$as_me:$LINENO:" \
2261 "checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2264 (eval $ac_compiler --version </dev/null >&5) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2269 (eval $ac_compiler -v </dev/null >&5) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2274 (eval $ac_compiler -V </dev/null >&5) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2279 cat >conftest.$ac_ext <<_ACEOF
2280 /* confdefs.h. */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2287 main ()
2291 return 0;
2293 _ACEOF
2294 # FIXME: Cleanup?
2295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2296 (eval $ac_link) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 gcc_no_link=no
2301 else
2302 gcc_no_link=yes
2305 if test x$gcc_no_link = xyes; then
2306 # Setting cross_compile will disable run tests; it will
2307 # also disable AC_CHECK_FILE but that's generally
2308 # correct if we can't link.
2309 cross_compiling=yes
2310 EXEEXT=
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2324 return 0;
2326 _ACEOF
2327 ac_clean_files_save=$ac_clean_files
2328 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2329 # Try to create an executable without -o first, disregard a.out.
2330 # It will help us diagnose broken compilers, and finding out an intuition
2331 # of exeext.
2332 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2333 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2334 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2335 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2336 (eval $ac_link_default) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 # Find the output, starting from the most likely. This scheme is
2341 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2342 # resort.
2344 # Be careful to initialize this variable, since it used to be cached.
2345 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2346 ac_cv_exeext=
2347 # b.out is created by i960 compilers.
2348 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2350 test -f "$ac_file" || continue
2351 case $ac_file in
2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2354 conftest.$ac_ext )
2355 # This is the source file.
2357 [ab].out )
2358 # We found the default executable, but exeext='' is most
2359 # certainly right.
2360 break;;
2361 *.* )
2362 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363 # FIXME: I believe we export ac_cv_exeext for Libtool,
2364 # but it would be cool to find out if it's true. Does anybody
2365 # maintain Libtool? --akim.
2366 export ac_cv_exeext
2367 break;;
2369 break;;
2370 esac
2371 done
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: C compiler cannot create executables
2379 See \`config.log' for more details." >&2;}
2380 { (exit 77); exit 77; }; }
2383 ac_exeext=$ac_cv_exeext
2384 echo "$as_me:$LINENO: result: $ac_file" >&5
2385 echo "${ECHO_T}$ac_file" >&6
2387 # Check the compiler produces executables we can run. If not, either
2388 # the compiler is broken, or we cross compile.
2389 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2390 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2391 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2392 # If not cross compiling, check that we can run a simple program.
2393 if test "$cross_compiling" != yes; then
2394 if { ac_try='./$ac_file'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 cross_compiling=no
2401 else
2402 if test "$cross_compiling" = maybe; then
2403 cross_compiling=yes
2404 else
2405 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2406 If you meant to cross compile, use \`--host'.
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot run C compiled programs.
2409 If you meant to cross compile, use \`--host'.
2410 See \`config.log' for more details." >&2;}
2411 { (exit 1); exit 1; }; }
2415 echo "$as_me:$LINENO: result: yes" >&5
2416 echo "${ECHO_T}yes" >&6
2418 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2419 ac_clean_files=$ac_clean_files_save
2420 # Check the compiler produces executables we can run. If not, either
2421 # the compiler is broken, or we cross compile.
2422 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2423 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2424 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2425 echo "${ECHO_T}$cross_compiling" >&6
2427 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2428 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2430 (eval $ac_link) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; then
2434 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2435 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2436 # work properly (i.e., refer to `conftest.exe'), while it won't with
2437 # `rm'.
2438 for ac_file in conftest.exe conftest conftest.*; do
2439 test -f "$ac_file" || continue
2440 case $ac_file in
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2442 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2443 export ac_cv_exeext
2444 break;;
2445 * ) break;;
2446 esac
2447 done
2448 else
2449 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2450 See \`config.log' for more details." >&5
2451 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2452 See \`config.log' for more details." >&2;}
2453 { (exit 1); exit 1; }; }
2456 rm -f conftest$ac_cv_exeext
2457 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2458 echo "${ECHO_T}$ac_cv_exeext" >&6
2460 rm -f conftest.$ac_ext
2461 EXEEXT=$ac_cv_exeext
2462 ac_exeext=$EXEEXT
2464 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2465 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2466 if test "${ac_cv_objext+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2477 main ()
2481 return 0;
2483 _ACEOF
2484 rm -f conftest.o conftest.obj
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; then
2490 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2491 case $ac_file in
2492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2494 break;;
2495 esac
2496 done
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2510 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2511 echo "${ECHO_T}$ac_cv_objext" >&6
2512 OBJEXT=$ac_cv_objext
2513 ac_objext=$OBJEXT
2514 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2515 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2516 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2527 main ()
2529 #ifndef __GNUC__
2530 choke me
2531 #endif
2534 return 0;
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>conftest.er1
2540 ac_status=$?
2541 grep -v '^ *+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag"
2547 || test ! -s conftest.err'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_compiler_gnu=yes
2560 else
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 ac_compiler_gnu=no
2566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2570 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2571 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2572 GCC=`test $ac_compiler_gnu = yes && echo yes`
2573 ac_test_CFLAGS=${CFLAGS+set}
2574 ac_save_CFLAGS=$CFLAGS
2575 CFLAGS="-g"
2576 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2578 if test "${ac_cv_prog_cc_g+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2589 main ()
2593 return 0;
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 ac_cv_prog_cc_g=yes
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2623 ac_cv_prog_cc_g=no
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2629 if test "$ac_test_CFLAGS" = set; then
2630 CFLAGS=$ac_save_CFLAGS
2631 elif test $ac_cv_prog_cc_g = yes; then
2632 if test "$GCC" = yes; then
2633 CFLAGS="-g -O2"
2634 else
2635 CFLAGS="-g"
2637 else
2638 if test "$GCC" = yes; then
2639 CFLAGS="-O2"
2640 else
2641 CFLAGS=
2644 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2645 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2646 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 ac_cv_prog_cc_stdc=no
2650 ac_save_CC=$CC
2651 cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657 #include <stdarg.h>
2658 #include <stdio.h>
2659 #include <sys/types.h>
2660 #include <sys/stat.h>
2661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2662 struct buf { int x; };
2663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2664 static char *e (p, i)
2665 char **p;
2666 int i;
2668 return p[i];
2670 static char *f (char * (*g) (char **, int), char **p, ...)
2672 char *s;
2673 va_list v;
2674 va_start (v,p);
2675 s = g (p, va_arg (v,int));
2676 va_end (v);
2677 return s;
2680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2681 function prototypes and stuff, but not '\xHH' hex character constants.
2682 These don't provoke an error unfortunately, instead are silently treated
2683 as 'x'. The following induces an error, until -std1 is added to get
2684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2685 array size at least. It's necessary to write '\x00'==0 to get something
2686 that's true only with -std1. */
2687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2689 int test (int i, double x);
2690 struct s1 {int (*f) (int a);};
2691 struct s2 {int (*f) (double a);};
2692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 int argc;
2694 char **argv;
2696 main ()
2698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 return 0;
2702 _ACEOF
2703 # Don't try gcc -ansi; that turns off useful extensions and
2704 # breaks some systems' header files.
2705 # AIX -qlanglvl=ansi
2706 # Ultrix and OSF/1 -std1
2707 # HP-UX 10.20 and later -Ae
2708 # HP-UX older versions -Aa -D_HPUX_SOURCE
2709 # SVR4 -Xc -D__EXTENSIONS__
2710 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2712 CC="$ac_save_CC $ac_arg"
2713 rm -f conftest.$ac_objext
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag"
2723 || test ! -s conftest.err'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_prog_cc_stdc=$ac_arg
2736 break
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f conftest.err conftest.$ac_objext
2743 done
2744 rm -f conftest.$ac_ext conftest.$ac_objext
2745 CC=$ac_save_CC
2749 case "x$ac_cv_prog_cc_stdc" in
2750 x|xno)
2751 echo "$as_me:$LINENO: result: none needed" >&5
2752 echo "${ECHO_T}none needed" >&6 ;;
2754 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2755 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2756 CC="$CC $ac_cv_prog_cc_stdc" ;;
2757 esac
2759 # Some people use a C++ compiler to compile C. Since we use `exit',
2760 # in C++ we need to declare it. In case someone uses the same compiler
2761 # for both compiling C and C++ we need to have the C++ compiler decide
2762 # the declaration of exit, since it's the most demanding environment.
2763 cat >conftest.$ac_ext <<_ACEOF
2764 #ifndef __cplusplus
2765 choke me
2766 #endif
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 for ac_declaration in \
2791 '' \
2792 'extern "C" void std::exit (int) throw (); using std::exit;' \
2793 'extern "C" void std::exit (int); using std::exit;' \
2794 'extern "C" void exit (int) throw ();' \
2795 'extern "C" void exit (int);' \
2796 'void exit (int);'
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 $ac_declaration
2805 #include <stdlib.h>
2807 main ()
2809 exit (42);
2811 return 0;
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 continue
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 $ac_declaration
2852 main ()
2854 exit (42);
2856 return 0;
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_c_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 break
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 done
2889 rm -f conftest*
2890 if test -n "$ac_declaration"; then
2891 echo '#ifdef __cplusplus' >>confdefs.h
2892 echo $ac_declaration >>confdefs.h
2893 echo '#endif' >>confdefs.h
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 ac_ext=c
2903 ac_cpp='$CPP $CPPFLAGS'
2904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907 DEPDIR="${am__leading_dot}deps"
2909 ac_config_commands="$ac_config_commands depfiles"
2912 am_make=${MAKE-make}
2913 cat > confinc << 'END'
2914 am__doit:
2915 @echo done
2916 .PHONY: am__doit
2918 # If we don't find an include directive, just comment out the code.
2919 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2920 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2921 am__include="#"
2922 am__quote=
2923 _am_result=none
2924 # First try GNU make style include.
2925 echo "include confinc" > confmf
2926 # We grep out `Entering directory' and `Leaving directory'
2927 # messages which can occur if `w' ends up in MAKEFLAGS.
2928 # In particular we don't look at `^make:' because GNU make might
2929 # be invoked under some other name (usually "gmake"), in which
2930 # case it prints its new name instead of `make'.
2931 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2932 am__include=include
2933 am__quote=
2934 _am_result=GNU
2936 # Now try BSD make style include.
2937 if test "$am__include" = "#"; then
2938 echo '.include "confinc"' > confmf
2939 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2940 am__include=.include
2941 am__quote="\""
2942 _am_result=BSD
2947 echo "$as_me:$LINENO: result: $_am_result" >&5
2948 echo "${ECHO_T}$_am_result" >&6
2949 rm -f confinc confmf
2951 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2952 if test "${enable_dependency_tracking+set}" = set; then
2953 enableval="$enable_dependency_tracking"
2956 if test "x$enable_dependency_tracking" != xno; then
2957 am_depcomp="$ac_aux_dir/depcomp"
2958 AMDEPBACKSLASH='\'
2962 if test "x$enable_dependency_tracking" != xno; then
2963 AMDEP_TRUE=
2964 AMDEP_FALSE='#'
2965 else
2966 AMDEP_TRUE='#'
2967 AMDEP_FALSE=
2973 depcc="$CC" am_compiler_list=
2975 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2976 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2981 # We make a subdir and do the tests there. Otherwise we can end up
2982 # making bogus files that we don't know about and never remove. For
2983 # instance it was reported that on HP-UX the gcc test will end up
2984 # making a dummy file named `D' -- because `-MD' means `put the output
2985 # in D'.
2986 mkdir conftest.dir
2987 # Copy depcomp to subdir because otherwise we won't find it if we're
2988 # using a relative directory.
2989 cp "$am_depcomp" conftest.dir
2990 cd conftest.dir
2991 # We will build objects and dependencies in a subdirectory because
2992 # it helps to detect inapplicable dependency modes. For instance
2993 # both Tru64's cc and ICC support -MD to output dependencies as a
2994 # side effect of compilation, but ICC will put the dependencies in
2995 # the current directory while Tru64 will put them in the object
2996 # directory.
2997 mkdir sub
2999 am_cv_CC_dependencies_compiler_type=none
3000 if test "$am_compiler_list" = ""; then
3001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3003 for depmode in $am_compiler_list; do
3004 # Setup a source with many dependencies, because some compilers
3005 # like to wrap large dependency lists on column 80 (with \), and
3006 # we should not choose a depcomp mode which is confused by this.
3008 # We need to recreate these files for each test, as the compiler may
3009 # overwrite some of them when testing with obscure command lines.
3010 # This happens at least with the AIX C compiler.
3011 : > sub/conftest.c
3012 for i in 1 2 3 4 5 6; do
3013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3014 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3015 # Solaris 8's {/usr,}/bin/sh.
3016 touch sub/conftst$i.h
3017 done
3018 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3020 case $depmode in
3021 nosideeffect)
3022 # after this tag, mechanisms are not by side-effect, so they'll
3023 # only be used when explicitly requested
3024 if test "x$enable_dependency_tracking" = xyes; then
3025 continue
3026 else
3027 break
3030 none) break ;;
3031 esac
3032 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3033 # mode. It turns out that the SunPro C++ compiler does not properly
3034 # handle `-M -o', and we need to detect this.
3035 if depmode=$depmode \
3036 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3038 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3039 >/dev/null 2>conftest.err &&
3040 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3041 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3042 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3043 # icc doesn't choke on unknown options, it will just issue warnings
3044 # or remarks (even with -Werror). So we grep stderr for any message
3045 # that says an option was ignored or not supported.
3046 # When given -MP, icc 7.0 and 7.1 complain thusly:
3047 # icc: Command line warning: ignoring option '-M'; no argument required
3048 # The diagnosis changed in icc 8.0:
3049 # icc: Command line remark: option '-MP' not supported
3050 if (grep 'ignoring option' conftest.err ||
3051 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3052 am_cv_CC_dependencies_compiler_type=$depmode
3053 break
3056 done
3058 cd ..
3059 rm -rf conftest.dir
3060 else
3061 am_cv_CC_dependencies_compiler_type=none
3065 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3066 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3067 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3072 test "x$enable_dependency_tracking" != xno \
3073 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3074 am__fastdepCC_TRUE=
3075 am__fastdepCC_FALSE='#'
3076 else
3077 am__fastdepCC_TRUE='#'
3078 am__fastdepCC_FALSE=
3086 # Check whether --enable-shared or --disable-shared was given.
3087 if test "${enable_shared+set}" = set; then
3088 enableval="$enable_shared"
3089 p=${PACKAGE-default}
3090 case $enableval in
3091 yes) enable_shared=yes ;;
3092 no) enable_shared=no ;;
3094 enable_shared=no
3095 # Look at the argument we got. We use all the common list separators.
3096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3097 for pkg in $enableval; do
3098 if test "X$pkg" = "X$p"; then
3099 enable_shared=yes
3101 done
3102 IFS="$ac_save_ifs"
3104 esac
3105 else
3106 enable_shared=yes
3108 # Check whether --enable-static or --disable-static was given.
3109 if test "${enable_static+set}" = set; then
3110 enableval="$enable_static"
3111 p=${PACKAGE-default}
3112 case $enableval in
3113 yes) enable_static=yes ;;
3114 no) enable_static=no ;;
3116 enable_static=no
3117 # Look at the argument we got. We use all the common list separators.
3118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3119 for pkg in $enableval; do
3120 if test "X$pkg" = "X$p"; then
3121 enable_static=yes
3123 done
3124 IFS="$ac_save_ifs"
3126 esac
3127 else
3128 enable_static=yes
3130 # Check whether --enable-fast-install or --disable-fast-install was given.
3131 if test "${enable_fast_install+set}" = set; then
3132 enableval="$enable_fast_install"
3133 p=${PACKAGE-default}
3134 case $enableval in
3135 yes) enable_fast_install=yes ;;
3136 no) enable_fast_install=no ;;
3138 enable_fast_install=no
3139 # Look at the argument we got. We use all the common list separators.
3140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3141 for pkg in $enableval; do
3142 if test "X$pkg" = "X$p"; then
3143 enable_fast_install=yes
3145 done
3146 IFS="$ac_save_ifs"
3148 esac
3149 else
3150 enable_fast_install=yes
3153 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3154 if test "${with_gnu_ld+set}" = set; then
3155 withval="$with_gnu_ld"
3156 test "$withval" = no || with_gnu_ld=yes
3157 else
3158 with_gnu_ld=no
3160 ac_prog=ld
3161 if test "$GCC" = yes; then
3162 # Check if gcc -print-prog-name=ld gives a path.
3163 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3164 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3165 case $host in
3166 *-*-mingw*)
3167 # gcc leaves a trailing carriage return which upsets mingw
3168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3171 esac
3172 case $ac_prog in
3173 # Accept absolute paths.
3174 [\\/]* | [A-Za-z]:[\\/]*)
3175 re_direlt='/[^/][^/]*/\.\./'
3176 # Canonicalize the path of ld
3177 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3178 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3179 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3180 done
3181 test -z "$LD" && LD="$ac_prog"
3184 # If it fails, then pretend we aren't using GCC.
3185 ac_prog=ld
3188 # If it is relative, then search for the first ld in PATH.
3189 with_gnu_ld=unknown
3191 esac
3192 elif test "$with_gnu_ld" = yes; then
3193 echo "$as_me:$LINENO: checking for GNU ld" >&5
3194 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3195 else
3196 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3197 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3199 if test "${lt_cv_path_LD+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 if test -z "$LD"; then
3203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3204 for ac_dir in $PATH; do
3205 test -z "$ac_dir" && ac_dir=.
3206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3207 lt_cv_path_LD="$ac_dir/$ac_prog"
3208 # Check to see if the program is GNU ld. I'd rather use --version,
3209 # but apparently some GNU ld's only accept -v.
3210 # Break only if it was the GNU/non-GNU ld that we prefer.
3211 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3212 test "$with_gnu_ld" != no && break
3213 else
3214 test "$with_gnu_ld" != yes && break
3217 done
3218 IFS="$ac_save_ifs"
3219 else
3220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3224 LD="$lt_cv_path_LD"
3225 if test -n "$LD"; then
3226 echo "$as_me:$LINENO: result: $LD" >&5
3227 echo "${ECHO_T}$LD" >&6
3228 else
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3234 { (exit 1); exit 1; }; }
3235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3241 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3242 lt_cv_prog_gnu_ld=yes
3243 else
3244 lt_cv_prog_gnu_ld=no
3247 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3248 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3249 with_gnu_ld=$lt_cv_prog_gnu_ld
3252 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3253 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3254 if test "${lt_cv_ld_reload_flag+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 lt_cv_ld_reload_flag='-r'
3259 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3260 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3261 reload_flag=$lt_cv_ld_reload_flag
3262 test -n "$reload_flag" && reload_flag=" $reload_flag"
3264 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3265 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3266 if test "${lt_cv_path_NM+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 if test -n "$NM"; then
3270 # Let the user override the test.
3271 lt_cv_path_NM="$NM"
3272 else
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3274 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3275 test -z "$ac_dir" && ac_dir=.
3276 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3277 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3278 # Check to see if the nm accepts a BSD-compat flag.
3279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3280 # nm: unknown option "B" ignored
3281 # Tru64's nm complains that /dev/null is an invalid object file
3282 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3283 lt_cv_path_NM="$tmp_nm -B"
3284 break
3285 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3286 lt_cv_path_NM="$tmp_nm -p"
3287 break
3288 else
3289 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3290 continue # so that we can try to find one that supports BSD flags
3293 done
3294 IFS="$ac_save_ifs"
3295 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3299 NM="$lt_cv_path_NM"
3300 echo "$as_me:$LINENO: result: $NM" >&5
3301 echo "${ECHO_T}$NM" >&6
3303 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3304 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3305 LN_S=$as_ln_s
3306 if test "$LN_S" = "ln -s"; then
3307 echo "$as_me:$LINENO: result: yes" >&5
3308 echo "${ECHO_T}yes" >&6
3309 else
3310 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3311 echo "${ECHO_T}no, using $LN_S" >&6
3314 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3315 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3316 if test "${lt_cv_deplibs_check_method+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 lt_cv_file_magic_cmd='$MAGIC_CMD'
3320 lt_cv_file_magic_test_file=
3321 lt_cv_deplibs_check_method='unknown'
3322 # Need to set the preceding variable on all platforms that support
3323 # interlibrary dependencies.
3324 # 'none' -- dependencies not supported.
3325 # `unknown' -- same as none, but documents that we really don't know.
3326 # 'pass_all' -- all dependencies passed with no checks.
3327 # 'test_compile' -- check by making test program.
3328 # 'file_magic [regex]' -- check by looking for files in library path
3329 # which responds to the $file_magic_cmd with a given egrep regex.
3330 # If you have `file' or equivalent on your system and you're not sure
3331 # whether `pass_all' will *always* work, you probably want this one.
3333 case $host_os in
3334 aix*)
3335 lt_cv_deplibs_check_method=pass_all
3338 beos*)
3339 lt_cv_deplibs_check_method=pass_all
3342 bsdi4*)
3343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3344 lt_cv_file_magic_cmd='/usr/bin/file -L'
3345 lt_cv_file_magic_test_file=/shlib/libc.so
3348 cygwin* | mingw* |pw32*)
3349 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3350 lt_cv_file_magic_cmd='$OBJDUMP -f'
3353 darwin* | rhapsody*)
3354 # this will be overwritten by pass_all, but leave it in just in case
3355 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3356 lt_cv_file_magic_cmd='/usr/bin/file -L'
3357 case "$host_os" in
3358 rhapsody* | darwin1.012)
3359 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3361 *) # Darwin 1.3 on
3362 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3364 esac
3365 lt_cv_deplibs_check_method=pass_all
3368 freebsd* | kfreebsd*-gnu)
3369 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3370 case $host_cpu in
3371 i*86 )
3372 # Not sure whether the presence of OpenBSD here was a mistake.
3373 # Let's accept both of them until this is cleared up.
3374 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3375 lt_cv_file_magic_cmd=/usr/bin/file
3376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3378 esac
3379 else
3380 lt_cv_deplibs_check_method=pass_all
3384 gnu*)
3385 lt_cv_deplibs_check_method=pass_all
3388 hpux10.20*|hpux11*)
3389 case $host_cpu in
3390 hppa*)
3391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3392 lt_cv_file_magic_cmd=/usr/bin/file
3393 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3395 ia64*)
3396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3397 lt_cv_file_magic_cmd=/usr/bin/file
3398 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3400 esac
3403 irix5* | irix6*)
3404 case $host_os in
3405 irix5*)
3406 # this will be overridden with pass_all, but let us keep it just in case
3407 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3410 case $LD in
3411 *-32|*"-32 ") libmagic=32-bit;;
3412 *-n32|*"-n32 ") libmagic=N32;;
3413 *-64|*"-64 ") libmagic=64-bit;;
3414 *) libmagic=never-match;;
3415 esac
3416 # this will be overridden with pass_all, but let us keep it just in case
3417 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3419 esac
3420 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3421 lt_cv_deplibs_check_method=pass_all
3424 # This must be Linux ELF.
3425 linux-gnu*)
3426 lt_cv_deplibs_check_method=pass_all
3429 netbsd* | knetbsd*-gnu)
3430 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3431 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3432 else
3433 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3437 newsos6)
3438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3439 lt_cv_file_magic_cmd=/usr/bin/file
3440 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3443 osf3* | osf4* | osf5*)
3444 # this will be overridden with pass_all, but let us keep it just in case
3445 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3446 lt_cv_file_magic_test_file=/shlib/libc.so
3447 lt_cv_deplibs_check_method=pass_all
3450 sco3.2v5*)
3451 lt_cv_deplibs_check_method=pass_all
3454 solaris*)
3455 lt_cv_deplibs_check_method=pass_all
3456 lt_cv_file_magic_test_file=/lib/libc.so
3459 sysv5uw[78]* | sysv4*uw2*)
3460 lt_cv_deplibs_check_method=pass_all
3463 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3464 case $host_vendor in
3465 ncr)
3466 lt_cv_deplibs_check_method=pass_all
3468 motorola)
3469 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]'
3470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3472 esac
3474 esac
3477 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3478 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3479 file_magic_cmd=$lt_cv_file_magic_cmd
3480 deplibs_check_method=$lt_cv_deplibs_check_method
3486 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3488 # find the maximum length of command line arguments
3489 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3490 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3491 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3495 teststring="ABCD"
3497 case $build_os in
3498 msdosdjgpp*)
3499 # On DJGPP, this test can blow up pretty badly due to problems in libc
3500 # (any single argument exceeding 2000 bytes causes a buffer overrun
3501 # during glob expansion). Even if it were fixed, the result of this
3502 # check would be larger than it should be.
3503 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3506 cygwin* | mingw*)
3507 # On Win9x/ME, this test blows up -- it succeeds, but takes
3508 # about 5 minutes as the teststring grows exponentially.
3509 # Worse, since 9x/ME are not pre-emptively multitasking,
3510 # you end up with a "frozen" computer, even though with patience
3511 # the test eventually succeeds (with a max line length of 256k).
3512 # Instead, let's just punt: use the minimum linelength reported by
3513 # all of the supported platforms: 8192 (on NT/2K/XP).
3514 lt_cv_sys_max_cmd_len=8192;
3517 amigaos*)
3518 # On AmigaOS with pdksh, this test takes hours, literally.
3519 # So we just punt and use a minimum line length of 8192.
3520 lt_cv_sys_max_cmd_len=8192;
3523 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3524 # This has been around since 386BSD, at least. Likely further.
3525 if test -x /sbin/sysctl; then
3526 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3527 elif test -x /usr/sbin/sysctl; then
3528 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3529 else
3530 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3532 # And add a safety zone
3533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3536 esac
3540 if test -n "$lt_cv_sys_max_cmd_len" ; then
3541 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3542 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3543 else
3544 echo "$as_me:$LINENO: result: none" >&5
3545 echo "${ECHO_T}none" >&6
3549 # Only perform the check for file, if the check method requires it
3550 case $deplibs_check_method in
3551 file_magic*)
3552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3553 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3554 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3555 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558 case $MAGIC_CMD in
3560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3562 ?:/*)
3563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3566 ac_save_MAGIC_CMD="$MAGIC_CMD"
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3568 ac_dummy="/usr/bin:$PATH"
3569 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 if test -f $ac_dir/${ac_tool_prefix}file; then
3572 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3573 if test -n "$file_magic_test_file"; then
3574 case $deplibs_check_method in
3575 "file_magic "*)
3576 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3578 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3579 egrep "$file_magic_regex" > /dev/null; then
3581 else
3582 cat <<EOF 1>&2
3584 *** Warning: the command libtool uses to detect shared libraries,
3585 *** $file_magic_cmd, produces output that libtool cannot recognize.
3586 *** The result is that libtool may fail to recognize shared libraries
3587 *** as such. This will affect the creation of libtool libraries that
3588 *** depend on shared libraries, but programs linked with such libtool
3589 *** libraries will work regardless of this problem. Nevertheless, you
3590 *** may want to report the problem to your system manager and/or to
3591 *** bug-libtool@gnu.org
3594 fi ;;
3595 esac
3597 break
3599 done
3600 IFS="$ac_save_ifs"
3601 MAGIC_CMD="$ac_save_MAGIC_CMD"
3603 esac
3606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3607 if test -n "$MAGIC_CMD"; then
3608 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3609 echo "${ECHO_T}$MAGIC_CMD" >&6
3610 else
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 if test -z "$lt_cv_path_MAGIC_CMD"; then
3616 if test -n "$ac_tool_prefix"; then
3617 echo "$as_me:$LINENO: checking for file" >&5
3618 echo $ECHO_N "checking for file... $ECHO_C" >&6
3619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 case $MAGIC_CMD in
3624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3626 ?:/*)
3627 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3630 ac_save_MAGIC_CMD="$MAGIC_CMD"
3631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3632 ac_dummy="/usr/bin:$PATH"
3633 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f $ac_dir/file; then
3636 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3637 if test -n "$file_magic_test_file"; then
3638 case $deplibs_check_method in
3639 "file_magic "*)
3640 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3643 egrep "$file_magic_regex" > /dev/null; then
3645 else
3646 cat <<EOF 1>&2
3648 *** Warning: the command libtool uses to detect shared libraries,
3649 *** $file_magic_cmd, produces output that libtool cannot recognize.
3650 *** The result is that libtool may fail to recognize shared libraries
3651 *** as such. This will affect the creation of libtool libraries that
3652 *** depend on shared libraries, but programs linked with such libtool
3653 *** libraries will work regardless of this problem. Nevertheless, you
3654 *** may want to report the problem to your system manager and/or to
3655 *** bug-libtool@gnu.org
3658 fi ;;
3659 esac
3661 break
3663 done
3664 IFS="$ac_save_ifs"
3665 MAGIC_CMD="$ac_save_MAGIC_CMD"
3667 esac
3670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3671 if test -n "$MAGIC_CMD"; then
3672 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3673 echo "${ECHO_T}$MAGIC_CMD" >&6
3674 else
3675 echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3679 else
3680 MAGIC_CMD=:
3686 esac
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_RANLIB+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$RANLIB"; then
3697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3715 RANLIB=$ac_cv_prog_RANLIB
3716 if test -n "$RANLIB"; then
3717 echo "$as_me:$LINENO: result: $RANLIB" >&5
3718 echo "${ECHO_T}$RANLIB" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3725 if test -z "$ac_cv_prog_RANLIB"; then
3726 ac_ct_RANLIB=$RANLIB
3727 # Extract the first word of "ranlib", so it can be a program name with args.
3728 set dummy ranlib; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 if test -n "$ac_ct_RANLIB"; then
3735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_RANLIB="ranlib"
3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3751 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3755 if test -n "$ac_ct_RANLIB"; then
3756 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3757 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3763 RANLIB=$ac_ct_RANLIB
3764 else
3765 RANLIB="$ac_cv_prog_RANLIB"
3768 if test -n "$ac_tool_prefix"; then
3769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3770 set dummy ${ac_tool_prefix}strip; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_STRIP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 if test -n "$STRIP"; then
3777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3790 done
3791 done
3795 STRIP=$ac_cv_prog_STRIP
3796 if test -n "$STRIP"; then
3797 echo "$as_me:$LINENO: result: $STRIP" >&5
3798 echo "${ECHO_T}$STRIP" >&6
3799 else
3800 echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3805 if test -z "$ac_cv_prog_STRIP"; then
3806 ac_ct_STRIP=$STRIP
3807 # Extract the first word of "strip", so it can be a program name with args.
3808 set dummy strip; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$ac_ct_STRIP"; then
3815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_ac_ct_STRIP="strip"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3831 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3834 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3835 if test -n "$ac_ct_STRIP"; then
3836 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3837 echo "${ECHO_T}$ac_ct_STRIP" >&6
3838 else
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3843 STRIP=$ac_ct_STRIP
3844 else
3845 STRIP="$ac_cv_prog_STRIP"
3849 # Check for any special flags to pass to ltconfig.
3850 libtool_flags="--cache-file=$cache_file"
3851 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3852 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3853 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3854 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3855 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3858 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3859 if test "${enable_libtool_lock+set}" = set; then
3860 enableval="$enable_libtool_lock"
3863 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3864 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3867 # Check whether --with-pic or --without-pic was given.
3868 if test "${with_pic+set}" = set; then
3869 withval="$with_pic"
3870 pic_mode="$withval"
3871 else
3872 pic_mode=default
3874 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3875 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3877 # Some flags need to be propagated to the compiler or linker for good
3878 # libtool support.
3879 case $host in
3880 *-*-irix6*)
3881 # Find out which ABI we are using.
3882 echo '#line 3882 "configure"' > conftest.$ac_ext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; then
3888 if test "$lt_cv_prog_gnu_ld" = yes; then
3889 case `/usr/bin/file conftest.$ac_objext` in
3890 *32-bit*)
3891 LD="${LD-ld} -melf32bsmip"
3893 *N32*)
3894 LD="${LD-ld} -melf32bmipn32"
3896 *64-bit*)
3897 LD="${LD-ld} -melf64bmip"
3899 esac
3900 else
3901 case `/usr/bin/file conftest.$ac_objext` in
3902 *32-bit*)
3903 LD="${LD-ld} -32"
3905 *N32*)
3906 LD="${LD-ld} -n32"
3908 *64-bit*)
3909 LD="${LD-ld} -64"
3911 esac
3914 rm -rf conftest*
3917 ia64-*-hpux*)
3918 # Find out which ABI we are using.
3919 echo 'int i;' > conftest.$ac_ext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; then
3925 case "`/usr/bin/file conftest.o`" in
3926 *ELF-32*)
3927 HPUX_IA64_MODE="32"
3929 *ELF-64*)
3930 HPUX_IA64_MODE="64"
3932 esac
3934 rm -rf conftest*
3937 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3938 # Find out which ABI we are using.
3939 echo 'int i;' > conftest.$ac_ext
3940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; then
3945 case "`/usr/bin/file conftest.o`" in
3946 *32-bit*)
3947 case $host in
3948 x86_64-*linux*)
3949 LD="${LD-ld} -m elf_i386"
3951 ppc64-*linux*|powerpc64-*linux*)
3952 LD="${LD-ld} -m elf32ppclinux"
3954 s390x-*linux*)
3955 LD="${LD-ld} -m elf_s390"
3957 sparc64-*linux*)
3958 LD="${LD-ld} -m elf32_sparc"
3960 esac
3962 *64-bit*)
3963 case $host in
3964 x86_64-*linux*)
3965 LD="${LD-ld} -m elf_x86_64"
3967 ppc*-*linux*|powerpc*-*linux*)
3968 LD="${LD-ld} -m elf64ppc"
3970 s390*-*linux*)
3971 LD="${LD-ld} -m elf64_s390"
3973 sparc*-*linux*)
3974 LD="${LD-ld} -m elf64_sparc"
3976 esac
3978 esac
3980 rm -rf conftest*
3983 *-*-sco3.2v5*)
3984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3985 SAVE_CFLAGS="$CFLAGS"
3986 CFLAGS="$CFLAGS -belf"
3987 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3988 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3989 if test "${lt_cv_cc_needs_belf+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 if test x$gcc_no_link = xyes; then
4001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4003 { (exit 1); exit 1; }; }
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4013 main ()
4017 return 0;
4019 _ACEOF
4020 rm -f conftest.$ac_objext conftest$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest$ac_exeext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 lt_cv_cc_needs_belf=yes
4043 else
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4047 lt_cv_cc_needs_belf=no
4049 rm -f conftest.err conftest.$ac_objext \
4050 conftest$ac_exeext conftest.$ac_ext
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4059 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4060 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4061 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4062 CFLAGS="$SAVE_CFLAGS"
4067 esac
4070 # Save cache, so that ltconfig can load it
4071 cat >confcache <<\_ACEOF
4072 # This file is a shell script that caches the results of configure
4073 # tests run on this system so they can be shared between configure
4074 # scripts and configure runs, see configure's option --config-cache.
4075 # It is not useful on other systems. If it contains results you don't
4076 # want to keep, you may remove or edit it.
4078 # config.status only pays attention to the cache file if you give it
4079 # the --recheck option to rerun configure.
4081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4083 # following values.
4085 _ACEOF
4087 # The following way of writing the cache mishandles newlines in values,
4088 # but we know of no workaround that is simple, portable, and efficient.
4089 # So, don't put newlines in cache variables' values.
4090 # Ultrix sh set writes to stderr and can't be redirected directly,
4091 # and sets the high bit in the cache file unless we assign to the vars.
4093 (set) 2>&1 |
4094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4095 *ac_space=\ *)
4096 # `set' does not quote correctly, so add quotes (double-quote
4097 # substitution turns \\\\ into \\, and sed turns \\ into \).
4098 sed -n \
4099 "s/'/'\\\\''/g;
4100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4103 # `set' quotes correctly as required by POSIX, so do not add quotes.
4104 sed -n \
4105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4107 esac;
4109 sed '
4110 t clear
4111 : clear
4112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4113 t end
4114 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4115 : end' >>confcache
4116 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4117 if test -w $cache_file; then
4118 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4119 cat confcache >$cache_file
4120 else
4121 echo "not updating unwritable cache $cache_file"
4124 rm -f confcache
4126 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4127 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4128 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4129 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4130 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4131 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4132 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4133 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4134 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4135 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4136 echo "$as_me: error: libtool configure failed" >&2;}
4137 { (exit 1); exit 1; }; }
4139 # Reload cache, that may have been modified by ltconfig
4140 if test -r "$cache_file"; then
4141 # Some versions of bash will fail to source /dev/null (special
4142 # files actually), so we avoid doing that.
4143 if test -f "$cache_file"; then
4144 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4145 echo "$as_me: loading cache $cache_file" >&6;}
4146 case $cache_file in
4147 [\\/]* | ?:[\\/]* ) . $cache_file;;
4148 *) . ./$cache_file;;
4149 esac
4151 else
4152 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4153 echo "$as_me: creating cache $cache_file" >&6;}
4154 >$cache_file
4158 # This can be used to rebuild libtool when needed
4159 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4161 # Always use our own libtool.
4162 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4164 # Redirect the config.log output again, so that the ltconfig log is not
4165 # clobbered by the next message.
4166 exec 5>>./config.log
4174 # Find CPP now so that any conditional tests below won't do it and
4175 # thereby make the resulting definitions conditional.
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4182 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4185 CPP=
4187 if test -z "$CPP"; then
4188 if test "${ac_cv_prog_CPP+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 # Double quotes because CPP needs to be expanded
4192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214 Syntax error
4215 _ACEOF
4216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } >/dev/null; then
4224 if test -s conftest.err; then
4225 ac_cpp_err=$ac_c_preproc_warn_flag
4226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4227 else
4228 ac_cpp_err=
4230 else
4231 ac_cpp_err=yes
4233 if test -z "$ac_cpp_err"; then
4235 else
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 # Broken: fails on valid input.
4240 continue
4242 rm -f conftest.err conftest.$ac_ext
4244 # OK, works on sane cases. Now check whether non-existent headers
4245 # can be detected and how.
4246 cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h. */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <ac_nonexistent.h>
4253 _ACEOF
4254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev/null; then
4262 if test -s conftest.err; then
4263 ac_cpp_err=$ac_c_preproc_warn_flag
4264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4265 else
4266 ac_cpp_err=
4268 else
4269 ac_cpp_err=yes
4271 if test -z "$ac_cpp_err"; then
4272 # Broken: success on invalid input.
4273 continue
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 # Passes both tests.
4279 ac_preproc_ok=:
4280 break
4282 rm -f conftest.err conftest.$ac_ext
4284 done
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then
4288 break
4291 done
4292 ac_cv_prog_CPP=$CPP
4295 CPP=$ac_cv_prog_CPP
4296 else
4297 ac_cv_prog_CPP=$CPP
4299 echo "$as_me:$LINENO: result: $CPP" >&5
4300 echo "${ECHO_T}$CPP" >&6
4301 ac_preproc_ok=false
4302 for ac_c_preproc_warn_flag in '' yes
4304 # Use a header file that comes with gcc, so configuring glibc
4305 # with a fresh cross-compiler works.
4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 # <limits.h> exists even on freestanding compilers.
4308 # On the NeXT, cc -E runs the code through the compiler's parser,
4309 # not just through cpp. "Syntax error" is here to catch this case.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 #ifdef __STDC__
4317 # include <limits.h>
4318 #else
4319 # include <assert.h>
4320 #endif
4321 Syntax error
4322 _ACEOF
4323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev/null; then
4331 if test -s conftest.err; then
4332 ac_cpp_err=$ac_c_preproc_warn_flag
4333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4334 else
4335 ac_cpp_err=
4337 else
4338 ac_cpp_err=yes
4340 if test -z "$ac_cpp_err"; then
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 # Broken: fails on valid input.
4347 continue
4349 rm -f conftest.err conftest.$ac_ext
4351 # OK, works on sane cases. Now check whether non-existent headers
4352 # can be detected and how.
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <ac_nonexistent.h>
4360 _ACEOF
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } >/dev/null; then
4369 if test -s conftest.err; then
4370 ac_cpp_err=$ac_c_preproc_warn_flag
4371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4372 else
4373 ac_cpp_err=
4375 else
4376 ac_cpp_err=yes
4378 if test -z "$ac_cpp_err"; then
4379 # Broken: success on invalid input.
4380 continue
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 # Passes both tests.
4386 ac_preproc_ok=:
4387 break
4389 rm -f conftest.err conftest.$ac_ext
4391 done
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.$ac_ext
4394 if $ac_preproc_ok; then
4396 else
4397 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&5
4399 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400 See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411 if test -n "$with_cross_host"; then
4412 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4413 # may not work correctly, because the compiler may not be able to
4414 # link executables.
4416 # We assume newlib. This lets us hard-code the functions we know
4417 # we'll have.
4418 cat >>confdefs.h <<\_ACEOF
4419 #define HAVE_MEMCPY 1
4420 _ACEOF
4422 cat >>confdefs.h <<\_ACEOF
4423 #define HAVE_STRERROR 1
4424 _ACEOF
4427 # We ignore --with-system-zlib in this case.
4428 target_all=libzgcj.la
4429 else
4430 if test x$gcc_no_link = xyes; then
4431 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4432 ac_cv_func_mmap_fixed_mapped=no
4435 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
4437 echo "$as_me:$LINENO: checking for egrep" >&5
4438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4439 if test "${ac_cv_prog_egrep+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4443 then ac_cv_prog_egrep='grep -E'
4444 else ac_cv_prog_egrep='egrep'
4447 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4448 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4449 EGREP=$ac_cv_prog_egrep
4452 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4453 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4454 if test "${ac_cv_header_stdc+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <stdlib.h>
4464 #include <stdarg.h>
4465 #include <string.h>
4466 #include <float.h>
4469 main ()
4473 return 0;
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag"
4486 || test ! -s conftest.err'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 ac_cv_header_stdc=yes
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 ac_cv_header_stdc=no
4505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 if test $ac_cv_header_stdc = yes; then
4508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <string.h>
4517 _ACEOF
4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4519 $EGREP "memchr" >/dev/null 2>&1; then
4521 else
4522 ac_cv_header_stdc=no
4524 rm -f conftest*
4528 if test $ac_cv_header_stdc = yes; then
4529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <stdlib.h>
4538 _ACEOF
4539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540 $EGREP "free" >/dev/null 2>&1; then
4542 else
4543 ac_cv_header_stdc=no
4545 rm -f conftest*
4549 if test $ac_cv_header_stdc = yes; then
4550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4551 if test "$cross_compiling" = yes; then
4553 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 #include <ctype.h>
4561 #if ((' ' & 0x0FF) == 0x020)
4562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4564 #else
4565 # define ISLOWER(c) \
4566 (('a' <= (c) && (c) <= 'i') \
4567 || ('j' <= (c) && (c) <= 'r') \
4568 || ('s' <= (c) && (c) <= 'z'))
4569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4570 #endif
4572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4574 main ()
4576 int i;
4577 for (i = 0; i < 256; i++)
4578 if (XOR (islower (i), ISLOWER (i))
4579 || toupper (i) != TOUPPER (i))
4580 exit(2);
4581 exit (0);
4583 _ACEOF
4584 rm -f conftest$ac_exeext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4586 (eval $ac_link) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4596 else
4597 echo "$as_me: program exited with status $ac_status" >&5
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 ( exit $ac_status )
4602 ac_cv_header_stdc=no
4604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4608 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4609 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4610 if test $ac_cv_header_stdc = yes; then
4612 cat >>confdefs.h <<\_ACEOF
4613 #define STDC_HEADERS 1
4614 _ACEOF
4618 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4628 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4629 inttypes.h stdint.h unistd.h
4631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632 echo "$as_me:$LINENO: checking for $ac_header" >&5
4633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4645 #include <$ac_header>
4646 _ACEOF
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>conftest.er1
4650 ac_status=$?
4651 grep -v '^ *+' conftest.er1 >conftest.err
4652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -z "$ac_c_werror_flag"
4657 || test ! -s conftest.err'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; } &&
4663 { ac_try='test -s conftest.$ac_objext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 eval "$as_ac_Header=yes"
4670 else
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 eval "$as_ac_Header=no"
4676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4681 cat >>confdefs.h <<_ACEOF
4682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683 _ACEOF
4687 done
4692 for ac_header in stdlib.h unistd.h
4694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4696 echo "$as_me:$LINENO: checking for $ac_header" >&5
4697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4703 else
4704 # Is the header compilable?
4705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 $ac_includes_default
4714 #include <$ac_header>
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_header_compiler=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_header_compiler=no
4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747 echo "${ECHO_T}$ac_header_compiler" >&6
4749 # Is the header present?
4750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 #include <$ac_header>
4759 _ACEOF
4760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 else
4772 ac_cpp_err=
4774 else
4775 ac_cpp_err=yes
4777 if test -z "$ac_cpp_err"; then
4778 ac_header_preproc=yes
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 ac_header_preproc=no
4785 rm -f conftest.err conftest.$ac_ext
4786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787 echo "${ECHO_T}$ac_header_preproc" >&6
4789 # So? What about this header?
4790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791 yes:no: )
4792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4796 ac_header_preproc=yes
4798 no:yes:* )
4799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4812 cat <<\_ASBOX
4813 ## ------------------------------------------ ##
4814 ## Report this to the AC_PACKAGE_NAME lists. ##
4815 ## ------------------------------------------ ##
4816 _ASBOX
4818 sed "s/^/$as_me: WARNING: /" >&2
4820 esac
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826 eval "$as_ac_Header=\$ac_header_preproc"
4828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4833 cat >>confdefs.h <<_ACEOF
4834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4835 _ACEOF
4839 done
4842 for ac_func in getpagesize
4844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4845 echo "$as_me:$LINENO: checking for $ac_func" >&5
4846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_var+set}\" = set"; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 if test x$gcc_no_link = xyes; then
4851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4853 { (exit 1); exit 1; }; }
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h. */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4863 #define $ac_func innocuous_$ac_func
4865 /* System header to define __stub macros and hopefully few prototypes,
4866 which can conflict with char $ac_func (); below.
4867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 <limits.h> exists even on freestanding compilers. */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4876 #undef $ac_func
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 #ifdef __cplusplus
4880 extern "C"
4882 #endif
4883 /* We use char because int might match the return type of a gcc2
4884 builtin and then its argument prototype would still apply. */
4885 char $ac_func ();
4886 /* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890 choke me
4891 #else
4892 char (*f) () = $ac_func;
4893 #endif
4894 #ifdef __cplusplus
4896 #endif
4899 main ()
4901 return f != $ac_func;
4903 return 0;
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest$ac_exeext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 eval "$as_ac_var=yes"
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 eval "$as_ac_var=no"
4935 rm -f conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4940 if test `eval echo '${'$as_ac_var'}'` = yes; then
4941 cat >>confdefs.h <<_ACEOF
4942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4943 _ACEOF
4946 done
4948 echo "$as_me:$LINENO: checking for working mmap" >&5
4949 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4950 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 if test "$cross_compiling" = yes; then
4954 ac_cv_func_mmap_fixed_mapped=no
4955 else
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4963 /* malloc might have been renamed as rpl_malloc. */
4964 #undef malloc
4966 /* Thanks to Mike Haertel and Jim Avera for this test.
4967 Here is a matrix of mmap possibilities:
4968 mmap private not fixed
4969 mmap private fixed at somewhere currently unmapped
4970 mmap private fixed at somewhere already mapped
4971 mmap shared not fixed
4972 mmap shared fixed at somewhere currently unmapped
4973 mmap shared fixed at somewhere already mapped
4974 For private mappings, we should verify that changes cannot be read()
4975 back from the file, nor mmap's back from the file at a different
4976 address. (There have been systems where private was not correctly
4977 implemented like the infamous i386 svr4.0, and systems where the
4978 VM page cache was not coherent with the file system buffer cache
4979 like early versions of FreeBSD and possibly contemporary NetBSD.)
4980 For shared mappings, we should conversely verify that changes get
4981 propagated back to all the places they're supposed to be.
4983 Grep wants private fixed already mapped.
4984 The main things grep needs to know about mmap are:
4985 * does it exist and is it safe to write into the mmap'd area
4986 * how to use it (BSD variants) */
4988 #include <fcntl.h>
4989 #include <sys/mman.h>
4991 #if !STDC_HEADERS && !HAVE_STDLIB_H
4992 char *malloc ();
4993 #endif
4995 /* This mess was copied from the GNU getpagesize.h. */
4996 #if !HAVE_GETPAGESIZE
4997 /* Assume that all systems that can run configure have sys/param.h. */
4998 # if !HAVE_SYS_PARAM_H
4999 # define HAVE_SYS_PARAM_H 1
5000 # endif
5002 # ifdef _SC_PAGESIZE
5003 # define getpagesize() sysconf(_SC_PAGESIZE)
5004 # else /* no _SC_PAGESIZE */
5005 # if HAVE_SYS_PARAM_H
5006 # include <sys/param.h>
5007 # ifdef EXEC_PAGESIZE
5008 # define getpagesize() EXEC_PAGESIZE
5009 # else /* no EXEC_PAGESIZE */
5010 # ifdef NBPG
5011 # define getpagesize() NBPG * CLSIZE
5012 # ifndef CLSIZE
5013 # define CLSIZE 1
5014 # endif /* no CLSIZE */
5015 # else /* no NBPG */
5016 # ifdef NBPC
5017 # define getpagesize() NBPC
5018 # else /* no NBPC */
5019 # ifdef PAGESIZE
5020 # define getpagesize() PAGESIZE
5021 # endif /* PAGESIZE */
5022 # endif /* no NBPC */
5023 # endif /* no NBPG */
5024 # endif /* no EXEC_PAGESIZE */
5025 # else /* no HAVE_SYS_PARAM_H */
5026 # define getpagesize() 8192 /* punt totally */
5027 # endif /* no HAVE_SYS_PARAM_H */
5028 # endif /* no _SC_PAGESIZE */
5030 #endif /* no HAVE_GETPAGESIZE */
5033 main ()
5035 char *data, *data2, *data3;
5036 int i, pagesize;
5037 int fd;
5039 pagesize = getpagesize ();
5041 /* First, make a file with some known garbage in it. */
5042 data = (char *) malloc (pagesize);
5043 if (!data)
5044 exit (1);
5045 for (i = 0; i < pagesize; ++i)
5046 *(data + i) = rand ();
5047 umask (0);
5048 fd = creat ("conftest.mmap", 0600);
5049 if (fd < 0)
5050 exit (1);
5051 if (write (fd, data, pagesize) != pagesize)
5052 exit (1);
5053 close (fd);
5055 /* Next, try to mmap the file at a fixed address which already has
5056 something else allocated at it. If we can, also make sure that
5057 we see the same garbage. */
5058 fd = open ("conftest.mmap", O_RDWR);
5059 if (fd < 0)
5060 exit (1);
5061 data2 = (char *) malloc (2 * pagesize);
5062 if (!data2)
5063 exit (1);
5064 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5065 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5066 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5067 exit (1);
5068 for (i = 0; i < pagesize; ++i)
5069 if (*(data + i) != *(data2 + i))
5070 exit (1);
5072 /* Finally, make sure that changes to the mapped area do not
5073 percolate back to the file as seen by read(). (This is a bug on
5074 some variants of i386 svr4.0.) */
5075 for (i = 0; i < pagesize; ++i)
5076 *(data2 + i) = *(data2 + i) + 1;
5077 data3 = (char *) malloc (pagesize);
5078 if (!data3)
5079 exit (1);
5080 if (read (fd, data3, pagesize) != pagesize)
5081 exit (1);
5082 for (i = 0; i < pagesize; ++i)
5083 if (*(data + i) != *(data3 + i))
5084 exit (1);
5085 close (fd);
5086 exit (0);
5088 _ACEOF
5089 rm -f conftest$ac_exeext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_func_mmap_fixed_mapped=yes
5101 else
5102 echo "$as_me: program exited with status $ac_status" >&5
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 ( exit $ac_status )
5107 ac_cv_func_mmap_fixed_mapped=no
5109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5112 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5113 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5116 cat >>confdefs.h <<\_ACEOF
5117 #define HAVE_MMAP 1
5118 _ACEOF
5121 rm -f conftest.mmap
5126 for ac_func in memcpy strerror
5128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5129 echo "$as_me:$LINENO: checking for $ac_func" >&5
5130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5131 if eval "test \"\${$as_ac_var+set}\" = set"; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 if test x$gcc_no_link = xyes; then
5135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5137 { (exit 1); exit 1; }; }
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5147 #define $ac_func innocuous_$ac_func
5149 /* System header to define __stub macros and hopefully few prototypes,
5150 which can conflict with char $ac_func (); below.
5151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 <limits.h> exists even on freestanding compilers. */
5154 #ifdef __STDC__
5155 # include <limits.h>
5156 #else
5157 # include <assert.h>
5158 #endif
5160 #undef $ac_func
5162 /* Override any gcc2 internal prototype to avoid an error. */
5163 #ifdef __cplusplus
5164 extern "C"
5166 #endif
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5169 char $ac_func ();
5170 /* The GNU C library defines this for functions which it implements
5171 to always fail with ENOSYS. Some functions are actually named
5172 something starting with __ and the normal name is an alias. */
5173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5174 choke me
5175 #else
5176 char (*f) () = $ac_func;
5177 #endif
5178 #ifdef __cplusplus
5180 #endif
5183 main ()
5185 return f != $ac_func;
5187 return 0;
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -z "$ac_c_werror_flag"
5200 || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest$ac_exeext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 eval "$as_ac_var=yes"
5213 else
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 eval "$as_ac_var=no"
5219 rm -f conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5224 if test `eval echo '${'$as_ac_var'}'` = yes; then
5225 cat >>confdefs.h <<_ACEOF
5226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5227 _ACEOF
5230 done
5233 if test "$with_system_zlib" = yes; then
5234 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5235 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5236 if test "${ac_cv_lib_z_deflate+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 ac_check_lib_save_LIBS=$LIBS
5240 LIBS="-lz $LIBS"
5241 if test x$gcc_no_link = xyes; then
5242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5244 { (exit 1); exit 1; }; }
5246 cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5253 /* Override any gcc2 internal prototype to avoid an error. */
5254 #ifdef __cplusplus
5255 extern "C"
5256 #endif
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5259 char deflate ();
5261 main ()
5263 deflate ();
5265 return 0;
5267 _ACEOF
5268 rm -f conftest.$ac_objext conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270 (eval $ac_link) 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_c_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest$ac_exeext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_cv_lib_z_deflate=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5295 ac_cv_lib_z_deflate=no
5297 rm -f conftest.err conftest.$ac_objext \
5298 conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5301 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5302 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5303 if test $ac_cv_lib_z_deflate = yes; then
5304 target_all=
5305 else
5306 target_all=libzgcj.la
5309 else
5310 target_all=libzgcj.la
5317 for ac_header in unistd.h
5319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5321 echo "$as_me:$LINENO: checking for $ac_header" >&5
5322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5328 else
5329 # Is the header compilable?
5330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5339 #include <$ac_header>
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343 (eval $ac_compile) 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -z "$ac_c_werror_flag"
5351 || test ! -s conftest.err'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; } &&
5357 { ac_try='test -s conftest.$ac_objext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5363 ac_header_compiler=yes
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 ac_header_compiler=no
5370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5372 echo "${ECHO_T}$ac_header_compiler" >&6
5374 # Is the header present?
5375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <$ac_header>
5384 _ACEOF
5385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev/null; then
5393 if test -s conftest.err; then
5394 ac_cpp_err=$ac_c_preproc_warn_flag
5395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5396 else
5397 ac_cpp_err=
5399 else
5400 ac_cpp_err=yes
5402 if test -z "$ac_cpp_err"; then
5403 ac_header_preproc=yes
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 ac_header_preproc=no
5410 rm -f conftest.err conftest.$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5412 echo "${ECHO_T}$ac_header_preproc" >&6
5414 # So? What about this header?
5415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5416 yes:no: )
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5421 ac_header_preproc=yes
5423 no:yes:* )
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5437 cat <<\_ASBOX
5438 ## ------------------------------------------ ##
5439 ## Report this to the AC_PACKAGE_NAME lists. ##
5440 ## ------------------------------------------ ##
5441 _ASBOX
5443 sed "s/^/$as_me: WARNING: /" >&2
5445 esac
5446 echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 eval "$as_ac_Header=\$ac_header_preproc"
5453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5460 _ACEOF
5464 done
5467 if test -n "$with_cross_host" &&
5468 test x"$with_cross_host" != x"no"; then
5469 toolexecdir='$(exec_prefix)/$(target_alias)'
5470 toolexeclibdir='$(toolexecdir)/lib'
5471 else
5472 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5473 toolexeclibdir='$(libdir)'
5475 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
5476 multiosdir=/`$CC -print-multi-os-directory`
5477 case $multiosdir in
5478 /.) multiosdir= ;; # Avoid trailing /.
5479 esac
5480 else
5481 multiosdir=
5483 toolexeclibdir=${toolexeclibdir}${multiosdir}
5489 if test -n "$with_target_subdir"; then
5490 TARGET_LIBRARY_TRUE=
5491 TARGET_LIBRARY_FALSE='#'
5492 else
5493 TARGET_LIBRARY_TRUE='#'
5494 TARGET_LIBRARY_FALSE=
5498 if test "${multilib}" = "yes"; then
5499 multilib_arg="--enable-multilib"
5500 else
5501 multilib_arg=
5504 ac_config_files="$ac_config_files Makefile"
5506 cat >confcache <<\_ACEOF
5507 # This file is a shell script that caches the results of configure
5508 # tests run on this system so they can be shared between configure
5509 # scripts and configure runs, see configure's option --config-cache.
5510 # It is not useful on other systems. If it contains results you don't
5511 # want to keep, you may remove or edit it.
5513 # config.status only pays attention to the cache file if you give it
5514 # the --recheck option to rerun configure.
5516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5518 # following values.
5520 _ACEOF
5522 # The following way of writing the cache mishandles newlines in values,
5523 # but we know of no workaround that is simple, portable, and efficient.
5524 # So, don't put newlines in cache variables' values.
5525 # Ultrix sh set writes to stderr and can't be redirected directly,
5526 # and sets the high bit in the cache file unless we assign to the vars.
5528 (set) 2>&1 |
5529 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5530 *ac_space=\ *)
5531 # `set' does not quote correctly, so add quotes (double-quote
5532 # substitution turns \\\\ into \\, and sed turns \\ into \).
5533 sed -n \
5534 "s/'/'\\\\''/g;
5535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5538 # `set' quotes correctly as required by POSIX, so do not add quotes.
5539 sed -n \
5540 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5542 esac;
5544 sed '
5545 t clear
5546 : clear
5547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5548 t end
5549 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5550 : end' >>confcache
5551 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5552 if test -w $cache_file; then
5553 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5554 cat confcache >$cache_file
5555 else
5556 echo "not updating unwritable cache $cache_file"
5559 rm -f confcache
5561 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5562 # Let make expand exec_prefix.
5563 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5565 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5566 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5567 # trailing colons and then remove the whole line if VPATH becomes empty
5568 # (actually we leave an empty line to preserve line numbers).
5569 if test "x$srcdir" = x.; then
5570 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5571 s/:*\$(srcdir):*/:/;
5572 s/:*\${srcdir}:*/:/;
5573 s/:*@srcdir@:*/:/;
5574 s/^\([^=]*=[ ]*\):*/\1/;
5575 s/:*$//;
5576 s/^[^=]*=[ ]*$//;
5580 # Transform confdefs.h into DEFS.
5581 # Protect against shell expansion while executing Makefile rules.
5582 # Protect against Makefile macro expansion.
5584 # If the first sed substitution is executed (which looks for macros that
5585 # take arguments), then we branch to the quote section. Otherwise,
5586 # look for a macro that doesn't take arguments.
5587 cat >confdef2opt.sed <<\_ACEOF
5588 t clear
5589 : clear
5590 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5591 t quote
5592 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5593 t quote
5595 : quote
5596 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5597 s,\[,\\&,g
5598 s,\],\\&,g
5599 s,\$,$$,g
5601 _ACEOF
5602 # We use echo to avoid assuming a particular line-breaking character.
5603 # The extra dot is to prevent the shell from consuming trailing
5604 # line-breaks from the sub-command output. A line-break within
5605 # single-quotes doesn't work because, if this script is created in a
5606 # platform that uses two characters for line-breaks (e.g., DOS), tr
5607 # would break.
5608 ac_LF_and_DOT=`echo; echo .`
5609 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5610 rm -f confdef2opt.sed
5613 ac_libobjs=
5614 ac_ltlibobjs=
5615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5616 # 1. Remove the extension, and $U if already installed.
5617 ac_i=`echo "$ac_i" |
5618 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5619 # 2. Add them.
5620 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5621 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5622 done
5623 LIBOBJS=$ac_libobjs
5625 LTLIBOBJS=$ac_ltlibobjs
5628 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5629 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5630 Usually this means the macro was only invoked conditionally." >&5
5631 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5632 Usually this means the macro was only invoked conditionally." >&2;}
5633 { (exit 1); exit 1; }; }
5635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5636 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5637 Usually this means the macro was only invoked conditionally." >&5
5638 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5639 Usually this means the macro was only invoked conditionally." >&2;}
5640 { (exit 1); exit 1; }; }
5642 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5643 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5644 Usually this means the macro was only invoked conditionally." >&5
5645 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5646 Usually this means the macro was only invoked conditionally." >&2;}
5647 { (exit 1); exit 1; }; }
5649 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
5650 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
5651 Usually this means the macro was only invoked conditionally." >&5
5652 echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
5653 Usually this means the macro was only invoked conditionally." >&2;}
5654 { (exit 1); exit 1; }; }
5657 : ${CONFIG_STATUS=./config.status}
5658 ac_clean_files_save=$ac_clean_files
5659 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5660 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5661 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5662 cat >$CONFIG_STATUS <<_ACEOF
5663 #! $SHELL
5664 # Generated by $as_me.
5665 # Run this file to recreate the current configuration.
5666 # Compiler output produced by configure, useful for debugging
5667 # configure, is in config.log if it exists.
5669 debug=false
5670 ac_cs_recheck=false
5671 ac_cs_silent=false
5672 SHELL=\${CONFIG_SHELL-$SHELL}
5673 _ACEOF
5675 cat >>$CONFIG_STATUS <<\_ACEOF
5676 ## --------------------- ##
5677 ## M4sh Initialization. ##
5678 ## --------------------- ##
5680 # Be Bourne compatible
5681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5682 emulate sh
5683 NULLCMD=:
5684 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5685 # is contrary to our usage. Disable this feature.
5686 alias -g '${1+"$@"}'='"$@"'
5687 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5688 set -o posix
5690 DUALCASE=1; export DUALCASE # for MKS sh
5692 # Support unset when possible.
5693 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5694 as_unset=unset
5695 else
5696 as_unset=false
5700 # Work around bugs in pre-3.0 UWIN ksh.
5701 $as_unset ENV MAIL MAILPATH
5702 PS1='$ '
5703 PS2='> '
5704 PS4='+ '
5706 # NLS nuisances.
5707 for as_var in \
5708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5710 LC_TELEPHONE LC_TIME
5712 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5713 eval $as_var=C; export $as_var
5714 else
5715 $as_unset $as_var
5717 done
5719 # Required to use basename.
5720 if expr a : '\(a\)' >/dev/null 2>&1; then
5721 as_expr=expr
5722 else
5723 as_expr=false
5726 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5727 as_basename=basename
5728 else
5729 as_basename=false
5733 # Name of the executable.
5734 as_me=`$as_basename "$0" ||
5735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5736 X"$0" : 'X\(//\)$' \| \
5737 X"$0" : 'X\(/\)$' \| \
5738 . : '\(.\)' 2>/dev/null ||
5739 echo X/"$0" |
5740 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5741 /^X\/\(\/\/\)$/{ s//\1/; q; }
5742 /^X\/\(\/\).*/{ s//\1/; q; }
5743 s/.*/./; q'`
5746 # PATH needs CR, and LINENO needs CR and PATH.
5747 # Avoid depending upon Character Ranges.
5748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5751 as_cr_digits='0123456789'
5752 as_cr_alnum=$as_cr_Letters$as_cr_digits
5754 # The user is always right.
5755 if test "${PATH_SEPARATOR+set}" != set; then
5756 echo "#! /bin/sh" >conf$$.sh
5757 echo "exit 0" >>conf$$.sh
5758 chmod +x conf$$.sh
5759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5760 PATH_SEPARATOR=';'
5761 else
5762 PATH_SEPARATOR=:
5764 rm -f conf$$.sh
5768 as_lineno_1=$LINENO
5769 as_lineno_2=$LINENO
5770 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5771 test "x$as_lineno_1" != "x$as_lineno_2" &&
5772 test "x$as_lineno_3" = "x$as_lineno_2" || {
5773 # Find who we are. Look in the path if we contain no path at all
5774 # relative or not.
5775 case $0 in
5776 *[\\/]* ) as_myself=$0 ;;
5777 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5783 done
5786 esac
5787 # We did not find ourselves, most probably we were run as `sh COMMAND'
5788 # in which case we are not to be found in the path.
5789 if test "x$as_myself" = x; then
5790 as_myself=$0
5792 if test ! -f "$as_myself"; then
5793 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5794 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5795 { (exit 1); exit 1; }; }
5797 case $CONFIG_SHELL in
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for as_base in sh bash ksh sh5; do
5805 case $as_dir in
5807 if ("$as_dir/$as_base" -c '
5808 as_lineno_1=$LINENO
5809 as_lineno_2=$LINENO
5810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5811 test "x$as_lineno_1" != "x$as_lineno_2" &&
5812 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5813 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5814 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5815 CONFIG_SHELL=$as_dir/$as_base
5816 export CONFIG_SHELL
5817 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5818 fi;;
5819 esac
5820 done
5821 done
5823 esac
5825 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5826 # uniformly replaced by the line number. The first 'sed' inserts a
5827 # line-number line before each line; the second 'sed' does the real
5828 # work. The second script uses 'N' to pair each line-number line
5829 # with the numbered line, and appends trailing '-' during
5830 # substitution so that $LINENO is not a special case at line end.
5831 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5832 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5833 sed '=' <$as_myself |
5834 sed '
5836 s,$,-,
5837 : loop
5838 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5839 t loop
5840 s,-$,,
5841 s,^['$as_cr_digits']*\n,,
5842 ' >$as_me.lineno &&
5843 chmod +x $as_me.lineno ||
5844 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5845 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5846 { (exit 1); exit 1; }; }
5848 # Don't try to exec as it changes $[0], causing all sort of problems
5849 # (the dirname of $[0] is not the place where we might find the
5850 # original and so on. Autoconf is especially sensible to this).
5851 . ./$as_me.lineno
5852 # Exit status is that of the last command.
5853 exit
5857 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5858 *c*,-n*) ECHO_N= ECHO_C='
5859 ' ECHO_T=' ' ;;
5860 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5861 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5862 esac
5864 if expr a : '\(a\)' >/dev/null 2>&1; then
5865 as_expr=expr
5866 else
5867 as_expr=false
5870 rm -f conf$$ conf$$.exe conf$$.file
5871 echo >conf$$.file
5872 if ln -s conf$$.file conf$$ 2>/dev/null; then
5873 # We could just check for DJGPP; but this test a) works b) is more generic
5874 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5875 if test -f conf$$.exe; then
5876 # Don't use ln at all; we don't have any links
5877 as_ln_s='cp -p'
5878 else
5879 as_ln_s='ln -s'
5881 elif ln conf$$.file conf$$ 2>/dev/null; then
5882 as_ln_s=ln
5883 else
5884 as_ln_s='cp -p'
5886 rm -f conf$$ conf$$.exe conf$$.file
5888 if mkdir -p . 2>/dev/null; then
5889 as_mkdir_p=:
5890 else
5891 test -d ./-p && rmdir ./-p
5892 as_mkdir_p=false
5895 as_executable_p="test -f"
5897 # Sed expression to map a string onto a valid CPP name.
5898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5900 # Sed expression to map a string onto a valid variable name.
5901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5904 # IFS
5905 # We need space, tab and new line, in precisely that order.
5906 as_nl='
5908 IFS=" $as_nl"
5910 # CDPATH.
5911 $as_unset CDPATH
5913 exec 6>&1
5915 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5916 # report actual input values of CONFIG_FILES etc. instead of their
5917 # values after options handling. Logging --version etc. is OK.
5918 exec 5>>config.log
5920 echo
5921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5922 ## Running $as_me. ##
5923 _ASBOX
5924 } >&5
5925 cat >&5 <<_CSEOF
5927 This file was extended by $as_me, which was
5928 generated by GNU Autoconf 2.59. Invocation command line was
5930 CONFIG_FILES = $CONFIG_FILES
5931 CONFIG_HEADERS = $CONFIG_HEADERS
5932 CONFIG_LINKS = $CONFIG_LINKS
5933 CONFIG_COMMANDS = $CONFIG_COMMANDS
5934 $ $0 $@
5936 _CSEOF
5937 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5938 echo >&5
5939 _ACEOF
5941 # Files that config.status was made for.
5942 if test -n "$ac_config_files"; then
5943 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5946 if test -n "$ac_config_headers"; then
5947 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5950 if test -n "$ac_config_links"; then
5951 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5954 if test -n "$ac_config_commands"; then
5955 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5958 cat >>$CONFIG_STATUS <<\_ACEOF
5960 ac_cs_usage="\
5961 \`$as_me' instantiates files from templates according to the
5962 current configuration.
5964 Usage: $0 [OPTIONS] [FILE]...
5966 -h, --help print this help, then exit
5967 -V, --version print version number, then exit
5968 -q, --quiet do not print progress messages
5969 -d, --debug don't remove temporary files
5970 --recheck update $as_me by reconfiguring in the same conditions
5971 --file=FILE[:TEMPLATE]
5972 instantiate the configuration file FILE
5974 Configuration files:
5975 $config_files
5977 Configuration commands:
5978 $config_commands
5980 Report bugs to <bug-autoconf@gnu.org>."
5981 _ACEOF
5983 cat >>$CONFIG_STATUS <<_ACEOF
5984 ac_cs_version="\\
5985 config.status
5986 configured by $0, generated by GNU Autoconf 2.59,
5987 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5989 Copyright (C) 2003 Free Software Foundation, Inc.
5990 This config.status script is free software; the Free Software Foundation
5991 gives unlimited permission to copy, distribute and modify it."
5992 srcdir=$srcdir
5993 INSTALL="$INSTALL"
5994 _ACEOF
5996 cat >>$CONFIG_STATUS <<\_ACEOF
5997 # If no file are specified by the user, then we need to provide default
5998 # value. By we need to know if files were specified by the user.
5999 ac_need_defaults=:
6000 while test $# != 0
6002 case $1 in
6003 --*=*)
6004 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6005 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6006 ac_shift=:
6009 ac_option=$1
6010 ac_optarg=$2
6011 ac_shift=shift
6013 *) # This is not an option, so the user has probably given explicit
6014 # arguments.
6015 ac_option=$1
6016 ac_need_defaults=false;;
6017 esac
6019 case $ac_option in
6020 # Handling of the options.
6021 _ACEOF
6022 cat >>$CONFIG_STATUS <<\_ACEOF
6023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6024 ac_cs_recheck=: ;;
6025 --version | --vers* | -V )
6026 echo "$ac_cs_version"; exit 0 ;;
6027 --he | --h)
6028 # Conflict between --help and --header
6029 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6030 Try \`$0 --help' for more information." >&5
6031 echo "$as_me: error: ambiguous option: $1
6032 Try \`$0 --help' for more information." >&2;}
6033 { (exit 1); exit 1; }; };;
6034 --help | --hel | -h )
6035 echo "$ac_cs_usage"; exit 0 ;;
6036 --debug | --d* | -d )
6037 debug=: ;;
6038 --file | --fil | --fi | --f )
6039 $ac_shift
6040 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6041 ac_need_defaults=false;;
6042 --header | --heade | --head | --hea )
6043 $ac_shift
6044 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6045 ac_need_defaults=false;;
6046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6047 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6048 ac_cs_silent=: ;;
6050 # This is an error.
6051 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6052 Try \`$0 --help' for more information." >&5
6053 echo "$as_me: error: unrecognized option: $1
6054 Try \`$0 --help' for more information." >&2;}
6055 { (exit 1); exit 1; }; } ;;
6057 *) ac_config_targets="$ac_config_targets $1" ;;
6059 esac
6060 shift
6061 done
6063 ac_configure_extra_args=
6065 if $ac_cs_silent; then
6066 exec 6>/dev/null
6067 ac_configure_extra_args="$ac_configure_extra_args --silent"
6070 _ACEOF
6071 cat >>$CONFIG_STATUS <<_ACEOF
6072 if \$ac_cs_recheck; then
6073 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6074 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6077 _ACEOF
6079 cat >>$CONFIG_STATUS <<_ACEOF
6081 # INIT-COMMANDS section.
6085 srcdir="$srcdir"
6086 host="$host"
6087 target="$target"
6088 with_multisubdir="$with_multisubdir"
6089 with_multisrctop="$with_multisrctop"
6090 with_target_subdir="$with_target_subdir"
6091 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6092 multi_basedir="$multi_basedir"
6093 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6094 CC="$CC"
6095 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6097 _ACEOF
6101 cat >>$CONFIG_STATUS <<\_ACEOF
6102 for ac_config_target in $ac_config_targets
6104 case "$ac_config_target" in
6105 # Handling of arguments.
6106 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6107 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6108 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6109 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6110 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6111 { (exit 1); exit 1; }; };;
6112 esac
6113 done
6115 # If the user did not use the arguments to specify the items to instantiate,
6116 # then the envvar interface is used. Set only those that are not.
6117 # We use the long form for the default assignment because of an extremely
6118 # bizarre bug on SunOS 4.1.3.
6119 if $ac_need_defaults; then
6120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6124 # Have a temporary directory for convenience. Make it in the build tree
6125 # simply because there is no reason to put it here, and in addition,
6126 # creating and moving files from /tmp can sometimes cause problems.
6127 # Create a temporary directory, and hook for its removal unless debugging.
6128 $debug ||
6130 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6131 trap '{ (exit 1); exit 1; }' 1 2 13 15
6134 # Create a (secure) tmp directory for tmp files.
6137 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6138 test -n "$tmp" && test -d "$tmp"
6139 } ||
6141 tmp=./confstat$$-$RANDOM
6142 (umask 077 && mkdir $tmp)
6143 } ||
6145 echo "$me: cannot create a temporary directory in ." >&2
6146 { (exit 1); exit 1; }
6149 _ACEOF
6151 cat >>$CONFIG_STATUS <<_ACEOF
6154 # CONFIG_FILES section.
6157 # No need to generate the scripts if there are no CONFIG_FILES.
6158 # This happens for instance when ./config.status config.h
6159 if test -n "\$CONFIG_FILES"; then
6160 # Protect against being on the right side of a sed subst in config.status.
6161 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6162 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6163 s,@SHELL@,$SHELL,;t t
6164 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6165 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6166 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6167 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6168 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6169 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6170 s,@exec_prefix@,$exec_prefix,;t t
6171 s,@prefix@,$prefix,;t t
6172 s,@program_transform_name@,$program_transform_name,;t t
6173 s,@bindir@,$bindir,;t t
6174 s,@sbindir@,$sbindir,;t t
6175 s,@libexecdir@,$libexecdir,;t t
6176 s,@datadir@,$datadir,;t t
6177 s,@sysconfdir@,$sysconfdir,;t t
6178 s,@sharedstatedir@,$sharedstatedir,;t t
6179 s,@localstatedir@,$localstatedir,;t t
6180 s,@libdir@,$libdir,;t t
6181 s,@includedir@,$includedir,;t t
6182 s,@oldincludedir@,$oldincludedir,;t t
6183 s,@infodir@,$infodir,;t t
6184 s,@mandir@,$mandir,;t t
6185 s,@build_alias@,$build_alias,;t t
6186 s,@host_alias@,$host_alias,;t t
6187 s,@target_alias@,$target_alias,;t t
6188 s,@DEFS@,$DEFS,;t t
6189 s,@ECHO_C@,$ECHO_C,;t t
6190 s,@ECHO_N@,$ECHO_N,;t t
6191 s,@ECHO_T@,$ECHO_T,;t t
6192 s,@LIBS@,$LIBS,;t t
6193 s,@multi_basedir@,$multi_basedir,;t t
6194 s,@build@,$build,;t t
6195 s,@build_cpu@,$build_cpu,;t t
6196 s,@build_vendor@,$build_vendor,;t t
6197 s,@build_os@,$build_os,;t t
6198 s,@host@,$host,;t t
6199 s,@host_cpu@,$host_cpu,;t t
6200 s,@host_vendor@,$host_vendor,;t t
6201 s,@host_os@,$host_os,;t t
6202 s,@target@,$target,;t t
6203 s,@target_cpu@,$target_cpu,;t t
6204 s,@target_vendor@,$target_vendor,;t t
6205 s,@target_os@,$target_os,;t t
6206 s,@mkinstalldirs@,$mkinstalldirs,;t t
6207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6210 s,@CYGPATH_W@,$CYGPATH_W,;t t
6211 s,@PACKAGE@,$PACKAGE,;t t
6212 s,@VERSION@,$VERSION,;t t
6213 s,@ACLOCAL@,$ACLOCAL,;t t
6214 s,@AUTOCONF@,$AUTOCONF,;t t
6215 s,@AUTOMAKE@,$AUTOMAKE,;t t
6216 s,@AUTOHEADER@,$AUTOHEADER,;t t
6217 s,@MAKEINFO@,$MAKEINFO,;t t
6218 s,@install_sh@,$install_sh,;t t
6219 s,@STRIP@,$STRIP,;t t
6220 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6221 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6222 s,@mkdir_p@,$mkdir_p,;t t
6223 s,@AWK@,$AWK,;t t
6224 s,@SET_MAKE@,$SET_MAKE,;t t
6225 s,@am__leading_dot@,$am__leading_dot,;t t
6226 s,@AMTAR@,$AMTAR,;t t
6227 s,@am__tar@,$am__tar,;t t
6228 s,@am__untar@,$am__untar,;t t
6229 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6230 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6231 s,@MAINT@,$MAINT,;t t
6232 s,@COMPPATH@,$COMPPATH,;t t
6233 s,@CC@,$CC,;t t
6234 s,@ac_ct_CC@,$ac_ct_CC,;t t
6235 s,@EXEEXT@,$EXEEXT,;t t
6236 s,@OBJEXT@,$OBJEXT,;t t
6237 s,@DEPDIR@,$DEPDIR,;t t
6238 s,@am__include@,$am__include,;t t
6239 s,@am__quote@,$am__quote,;t t
6240 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6241 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6242 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6243 s,@CCDEPMODE@,$CCDEPMODE,;t t
6244 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6245 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6246 s,@CFLAGS@,$CFLAGS,;t t
6247 s,@LN_S@,$LN_S,;t t
6248 s,@RANLIB@,$RANLIB,;t t
6249 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6250 s,@LIBTOOL@,$LIBTOOL,;t t
6251 s,@CPP@,$CPP,;t t
6252 s,@CPPFLAGS@,$CPPFLAGS,;t t
6253 s,@EGREP@,$EGREP,;t t
6254 s,@target_all@,$target_all,;t t
6255 s,@toolexecdir@,$toolexecdir,;t t
6256 s,@toolexeclibdir@,$toolexeclibdir,;t t
6257 s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
6258 s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
6259 s,@LIBOBJS@,$LIBOBJS,;t t
6260 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6261 CEOF
6263 _ACEOF
6265 cat >>$CONFIG_STATUS <<\_ACEOF
6266 # Split the substitutions into bite-sized pieces for seds with
6267 # small command number limits, like on Digital OSF/1 and HP-UX.
6268 ac_max_sed_lines=48
6269 ac_sed_frag=1 # Number of current file.
6270 ac_beg=1 # First line for current file.
6271 ac_end=$ac_max_sed_lines # Line after last line for current file.
6272 ac_more_lines=:
6273 ac_sed_cmds=
6274 while $ac_more_lines; do
6275 if test $ac_beg -gt 1; then
6276 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6277 else
6278 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6280 if test ! -s $tmp/subs.frag; then
6281 ac_more_lines=false
6282 else
6283 # The purpose of the label and of the branching condition is to
6284 # speed up the sed processing (if there are no `@' at all, there
6285 # is no need to browse any of the substitutions).
6286 # These are the two extra sed commands mentioned above.
6287 (echo ':t
6288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6289 if test -z "$ac_sed_cmds"; then
6290 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6291 else
6292 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6294 ac_sed_frag=`expr $ac_sed_frag + 1`
6295 ac_beg=$ac_end
6296 ac_end=`expr $ac_end + $ac_max_sed_lines`
6298 done
6299 if test -z "$ac_sed_cmds"; then
6300 ac_sed_cmds=cat
6302 fi # test -n "$CONFIG_FILES"
6304 _ACEOF
6305 cat >>$CONFIG_STATUS <<\_ACEOF
6306 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6308 case $ac_file in
6309 - | *:- | *:-:* ) # input from stdin
6310 cat >$tmp/stdin
6311 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6312 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6313 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6315 * ) ac_file_in=$ac_file.in ;;
6316 esac
6318 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6319 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6321 X"$ac_file" : 'X\(//\)[^/]' \| \
6322 X"$ac_file" : 'X\(//\)$' \| \
6323 X"$ac_file" : 'X\(/\)' \| \
6324 . : '\(.\)' 2>/dev/null ||
6325 echo X"$ac_file" |
6326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6328 /^X\(\/\/\)$/{ s//\1/; q; }
6329 /^X\(\/\).*/{ s//\1/; q; }
6330 s/.*/./; q'`
6331 { if $as_mkdir_p; then
6332 mkdir -p "$ac_dir"
6333 else
6334 as_dir="$ac_dir"
6335 as_dirs=
6336 while test ! -d "$as_dir"; do
6337 as_dirs="$as_dir $as_dirs"
6338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6340 X"$as_dir" : 'X\(//\)[^/]' \| \
6341 X"$as_dir" : 'X\(//\)$' \| \
6342 X"$as_dir" : 'X\(/\)' \| \
6343 . : '\(.\)' 2>/dev/null ||
6344 echo X"$as_dir" |
6345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6347 /^X\(\/\/\)$/{ s//\1/; q; }
6348 /^X\(\/\).*/{ s//\1/; q; }
6349 s/.*/./; q'`
6350 done
6351 test ! -n "$as_dirs" || mkdir $as_dirs
6352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6354 { (exit 1); exit 1; }; }; }
6356 ac_builddir=.
6358 if test "$ac_dir" != .; then
6359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6360 # A "../" for each directory in $ac_dir_suffix.
6361 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6362 else
6363 ac_dir_suffix= ac_top_builddir=
6366 case $srcdir in
6367 .) # No --srcdir option. We are building in place.
6368 ac_srcdir=.
6369 if test -z "$ac_top_builddir"; then
6370 ac_top_srcdir=.
6371 else
6372 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6373 fi ;;
6374 [\\/]* | ?:[\\/]* ) # Absolute path.
6375 ac_srcdir=$srcdir$ac_dir_suffix;
6376 ac_top_srcdir=$srcdir ;;
6377 *) # Relative path.
6378 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6379 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6380 esac
6382 # Do not use `cd foo && pwd` to compute absolute paths, because
6383 # the directories may not exist.
6384 case `pwd` in
6385 .) ac_abs_builddir="$ac_dir";;
6387 case "$ac_dir" in
6388 .) ac_abs_builddir=`pwd`;;
6389 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6390 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6391 esac;;
6392 esac
6393 case $ac_abs_builddir in
6394 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6396 case ${ac_top_builddir}. in
6397 .) ac_abs_top_builddir=$ac_abs_builddir;;
6398 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6399 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6400 esac;;
6401 esac
6402 case $ac_abs_builddir in
6403 .) ac_abs_srcdir=$ac_srcdir;;
6405 case $ac_srcdir in
6406 .) ac_abs_srcdir=$ac_abs_builddir;;
6407 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6408 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6409 esac;;
6410 esac
6411 case $ac_abs_builddir in
6412 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6414 case $ac_top_srcdir in
6415 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6416 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6417 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6418 esac;;
6419 esac
6422 case $INSTALL in
6423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6424 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6425 esac
6427 if test x"$ac_file" != x-; then
6428 { echo "$as_me:$LINENO: creating $ac_file" >&5
6429 echo "$as_me: creating $ac_file" >&6;}
6430 rm -f "$ac_file"
6432 # Let's still pretend it is `configure' which instantiates (i.e., don't
6433 # use $as_me), people would be surprised to read:
6434 # /* config.h. Generated by config.status. */
6435 if test x"$ac_file" = x-; then
6436 configure_input=
6437 else
6438 configure_input="$ac_file. "
6440 configure_input=$configure_input"Generated from `echo $ac_file_in |
6441 sed 's,.*/,,'` by configure."
6443 # First look for the input files in the build tree, otherwise in the
6444 # src tree.
6445 ac_file_inputs=`IFS=:
6446 for f in $ac_file_in; do
6447 case $f in
6448 -) echo $tmp/stdin ;;
6449 [\\/$]*)
6450 # Absolute (can't be DOS-style, as IFS=:)
6451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6452 echo "$as_me: error: cannot find input file: $f" >&2;}
6453 { (exit 1); exit 1; }; }
6454 echo "$f";;
6455 *) # Relative
6456 if test -f "$f"; then
6457 # Build tree
6458 echo "$f"
6459 elif test -f "$srcdir/$f"; then
6460 # Source tree
6461 echo "$srcdir/$f"
6462 else
6463 # /dev/null tree
6464 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6465 echo "$as_me: error: cannot find input file: $f" >&2;}
6466 { (exit 1); exit 1; }; }
6467 fi;;
6468 esac
6469 done` || { (exit 1); exit 1; }
6470 _ACEOF
6471 cat >>$CONFIG_STATUS <<_ACEOF
6472 sed "$ac_vpsub
6473 $extrasub
6474 _ACEOF
6475 cat >>$CONFIG_STATUS <<\_ACEOF
6477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6478 s,@configure_input@,$configure_input,;t t
6479 s,@srcdir@,$ac_srcdir,;t t
6480 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6481 s,@top_srcdir@,$ac_top_srcdir,;t t
6482 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6483 s,@builddir@,$ac_builddir,;t t
6484 s,@abs_builddir@,$ac_abs_builddir,;t t
6485 s,@top_builddir@,$ac_top_builddir,;t t
6486 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6487 s,@INSTALL@,$ac_INSTALL,;t t
6488 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6489 rm -f $tmp/stdin
6490 if test x"$ac_file" != x-; then
6491 mv $tmp/out $ac_file
6492 else
6493 cat $tmp/out
6494 rm -f $tmp/out
6497 done
6498 _ACEOF
6499 cat >>$CONFIG_STATUS <<\_ACEOF
6502 # CONFIG_COMMANDS section.
6504 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6505 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6506 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6507 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6508 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6509 X"$ac_dest" : 'X\(//\)[^/]' \| \
6510 X"$ac_dest" : 'X\(//\)$' \| \
6511 X"$ac_dest" : 'X\(/\)' \| \
6512 . : '\(.\)' 2>/dev/null ||
6513 echo X"$ac_dest" |
6514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6516 /^X\(\/\/\)$/{ s//\1/; q; }
6517 /^X\(\/\).*/{ s//\1/; q; }
6518 s/.*/./; q'`
6519 { if $as_mkdir_p; then
6520 mkdir -p "$ac_dir"
6521 else
6522 as_dir="$ac_dir"
6523 as_dirs=
6524 while test ! -d "$as_dir"; do
6525 as_dirs="$as_dir $as_dirs"
6526 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6527 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6528 X"$as_dir" : 'X\(//\)[^/]' \| \
6529 X"$as_dir" : 'X\(//\)$' \| \
6530 X"$as_dir" : 'X\(/\)' \| \
6531 . : '\(.\)' 2>/dev/null ||
6532 echo X"$as_dir" |
6533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6535 /^X\(\/\/\)$/{ s//\1/; q; }
6536 /^X\(\/\).*/{ s//\1/; q; }
6537 s/.*/./; q'`
6538 done
6539 test ! -n "$as_dirs" || mkdir $as_dirs
6540 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6541 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6542 { (exit 1); exit 1; }; }; }
6544 ac_builddir=.
6546 if test "$ac_dir" != .; then
6547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6548 # A "../" for each directory in $ac_dir_suffix.
6549 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6550 else
6551 ac_dir_suffix= ac_top_builddir=
6554 case $srcdir in
6555 .) # No --srcdir option. We are building in place.
6556 ac_srcdir=.
6557 if test -z "$ac_top_builddir"; then
6558 ac_top_srcdir=.
6559 else
6560 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6561 fi ;;
6562 [\\/]* | ?:[\\/]* ) # Absolute path.
6563 ac_srcdir=$srcdir$ac_dir_suffix;
6564 ac_top_srcdir=$srcdir ;;
6565 *) # Relative path.
6566 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6567 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6568 esac
6570 # Do not use `cd foo && pwd` to compute absolute paths, because
6571 # the directories may not exist.
6572 case `pwd` in
6573 .) ac_abs_builddir="$ac_dir";;
6575 case "$ac_dir" in
6576 .) ac_abs_builddir=`pwd`;;
6577 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6578 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6579 esac;;
6580 esac
6581 case $ac_abs_builddir in
6582 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6584 case ${ac_top_builddir}. in
6585 .) ac_abs_top_builddir=$ac_abs_builddir;;
6586 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6587 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6588 esac;;
6589 esac
6590 case $ac_abs_builddir in
6591 .) ac_abs_srcdir=$ac_srcdir;;
6593 case $ac_srcdir in
6594 .) ac_abs_srcdir=$ac_abs_builddir;;
6595 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6596 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6597 esac;;
6598 esac
6599 case $ac_abs_builddir in
6600 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6602 case $ac_top_srcdir in
6603 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6604 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6605 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6606 esac;;
6607 esac
6610 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6611 echo "$as_me: executing $ac_dest commands" >&6;}
6612 case $ac_dest in
6613 default-1 )
6614 # Only add multilib support code if we just rebuilt the top-level
6615 # Makefile.
6616 case " $CONFIG_FILES " in
6617 *" Makefile "*)
6618 ac_file=Makefile . ${multi_basedir}/config-ml.in
6620 esac ;;
6621 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6622 # Strip MF so we end up with the name of the file.
6623 mf=`echo "$mf" | sed -e 's/:.*$//'`
6624 # Check whether this is an Automake generated Makefile or not.
6625 # We used to match only the files named `Makefile.in', but
6626 # some people rename them; so instead we look at the file content.
6627 # Grep'ing the first line is not enough: some people post-process
6628 # each Makefile.in and add a new line on top of each file to say so.
6629 # So let's grep whole file.
6630 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6631 dirpart=`(dirname "$mf") 2>/dev/null ||
6632 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6633 X"$mf" : 'X\(//\)[^/]' \| \
6634 X"$mf" : 'X\(//\)$' \| \
6635 X"$mf" : 'X\(/\)' \| \
6636 . : '\(.\)' 2>/dev/null ||
6637 echo X"$mf" |
6638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6640 /^X\(\/\/\)$/{ s//\1/; q; }
6641 /^X\(\/\).*/{ s//\1/; q; }
6642 s/.*/./; q'`
6643 else
6644 continue
6646 # Extract the definition of DEPDIR, am__include, and am__quote
6647 # from the Makefile without running `make'.
6648 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6649 test -z "$DEPDIR" && continue
6650 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6651 test -z "am__include" && continue
6652 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6653 # When using ansi2knr, U may be empty or an underscore; expand it
6654 U=`sed -n 's/^U = //p' < "$mf"`
6655 # Find all dependency output files, they are included files with
6656 # $(DEPDIR) in their names. We invoke sed twice because it is the
6657 # simplest approach to changing $(DEPDIR) to its actual value in the
6658 # expansion.
6659 for file in `sed -n "
6660 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6661 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6662 # Make sure the directory exists.
6663 test -f "$dirpart/$file" && continue
6664 fdir=`(dirname "$file") 2>/dev/null ||
6665 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6666 X"$file" : 'X\(//\)[^/]' \| \
6667 X"$file" : 'X\(//\)$' \| \
6668 X"$file" : 'X\(/\)' \| \
6669 . : '\(.\)' 2>/dev/null ||
6670 echo X"$file" |
6671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6673 /^X\(\/\/\)$/{ s//\1/; q; }
6674 /^X\(\/\).*/{ s//\1/; q; }
6675 s/.*/./; q'`
6676 { if $as_mkdir_p; then
6677 mkdir -p $dirpart/$fdir
6678 else
6679 as_dir=$dirpart/$fdir
6680 as_dirs=
6681 while test ! -d "$as_dir"; do
6682 as_dirs="$as_dir $as_dirs"
6683 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6685 X"$as_dir" : 'X\(//\)[^/]' \| \
6686 X"$as_dir" : 'X\(//\)$' \| \
6687 X"$as_dir" : 'X\(/\)' \| \
6688 . : '\(.\)' 2>/dev/null ||
6689 echo X"$as_dir" |
6690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6692 /^X\(\/\/\)$/{ s//\1/; q; }
6693 /^X\(\/\).*/{ s//\1/; q; }
6694 s/.*/./; q'`
6695 done
6696 test ! -n "$as_dirs" || mkdir $as_dirs
6697 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6698 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6699 { (exit 1); exit 1; }; }; }
6701 # echo "creating $dirpart/$file"
6702 echo '# dummy' > "$dirpart/$file"
6703 done
6704 done
6706 esac
6707 done
6708 _ACEOF
6710 cat >>$CONFIG_STATUS <<\_ACEOF
6712 { (exit 0); exit 0; }
6713 _ACEOF
6714 chmod +x $CONFIG_STATUS
6715 ac_clean_files=$ac_clean_files_save
6718 # configure is writing to config.log, and then calls config.status.
6719 # config.status does its own redirection, appending to config.log.
6720 # Unfortunately, on DOS this fails, as config.log is still kept open
6721 # by configure, so config.status won't be able to write to it; its
6722 # output is simply discarded. So we exec the FD to /dev/null,
6723 # effectively closing config.log, so it can be properly (re)opened and
6724 # appended to by config.status. When coming back to configure, we
6725 # need to make the FD available again.
6726 if test "$no_create" != yes; then
6727 ac_cs_success=:
6728 ac_config_status_args=
6729 test "$silent" = yes &&
6730 ac_config_status_args="$ac_config_status_args --quiet"
6731 exec 5>/dev/null
6732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6733 exec 5>>config.log
6734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6735 # would make configure fail if this is the last instruction.
6736 $ac_cs_success || { (exit 1); exit 1; }