]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
Add dependencies for zlib for gcc_update
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13 1#! /bin/sh
dfac8a13 2# Guess values for system-dependent variables and create Makefiles.
a8aea176 3# Generated by GNU Autoconf 2.59.
c45f211e 4#
a8aea176 5# Copyright (C) 2003 Free Software Foundation, Inc.
dfac8a13
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a8aea176
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
dfac8a13 185
a8aea176
NN
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
dfac8a13 254ac_default_prefix=/usr/local
a8aea176
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="zlib.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS zlib_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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL CPP EGREP target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
313ac_subst_files=''
dfac8a13
TT
314
315# Initialize some variables set by options.
a8aea176
NN
316ac_init_help=
317ac_init_version=false
dfac8a13
TT
318# The variables have the same names as the options, with
319# dashes changed to underlines.
a8aea176 320cache_file=/dev/null
dfac8a13 321exec_prefix=NONE
dfac8a13 322no_create=
dfac8a13
TT
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
dfac8a13
TT
331verbose=
332x_includes=NONE
333x_libraries=NONE
a8aea176
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
dfac8a13
TT
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
dfac8a13
TT
353ac_prev=
354for ac_option
355do
dfac8a13
TT
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
a8aea176 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
dfac8a13
TT
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
a8aea176 367 case $ac_option in
dfac8a13
TT
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a8aea176 372 bindir=$ac_optarg ;;
dfac8a13
TT
373
374 -build | --build | --buil | --bui | --bu)
a8aea176 375 ac_prev=build_alias ;;
dfac8a13 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a8aea176 377 build_alias=$ac_optarg ;;
dfac8a13
TT
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a8aea176
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
dfac8a13
TT
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
a8aea176 393 datadir=$ac_optarg ;;
dfac8a13
TT
394
395 -disable-* | --disable-*)
a8aea176 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
dfac8a13 397 # Reject names that are not valid shell variable names.
a8aea176
NN
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" ;;
dfac8a13
TT
403
404 -enable-* | --enable-*)
a8aea176 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
dfac8a13 406 # Reject names that are not valid shell variable names.
a8aea176
NN
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"`;;
dfac8a13
TT
413 *) ac_optarg=yes ;;
414 esac
a8aea176 415 eval "enable_$ac_feature='$ac_optarg'" ;;
dfac8a13
TT
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
a8aea176 424 exec_prefix=$ac_optarg ;;
dfac8a13
TT
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
a8aea176
NN
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 ;;
dfac8a13
TT
436
437 -host | --host | --hos | --ho)
a8aea176 438 ac_prev=host_alias ;;
dfac8a13 439 -host=* | --host=* | --hos=* | --ho=*)
a8aea176 440 host_alias=$ac_optarg ;;
dfac8a13
TT
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
a8aea176 447 includedir=$ac_optarg ;;
dfac8a13
TT
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a8aea176 452 infodir=$ac_optarg ;;
dfac8a13
TT
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a8aea176 457 libdir=$ac_optarg ;;
dfac8a13
TT
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
a8aea176 464 libexecdir=$ac_optarg ;;
dfac8a13
TT
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a8aea176 473 localstatedir=$ac_optarg ;;
dfac8a13
TT
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a8aea176 478 mandir=$ac_optarg ;;
dfac8a13
TT
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a8aea176 485 | --no-cr | --no-c | -n)
dfac8a13
TT
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a8aea176 499 oldincludedir=$ac_optarg ;;
dfac8a13
TT
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a8aea176 504 prefix=$ac_optarg ;;
dfac8a13
TT
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a8aea176 511 program_prefix=$ac_optarg ;;
dfac8a13
TT
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a8aea176 518 program_suffix=$ac_optarg ;;
dfac8a13
TT
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
a8aea176 535 program_transform_name=$ac_optarg ;;
dfac8a13
TT
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
a8aea176 545 sbindir=$ac_optarg ;;
dfac8a13
TT
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
a8aea176 556 sharedstatedir=$ac_optarg ;;
dfac8a13
TT
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
a8aea176 561 site=$ac_optarg ;;
dfac8a13
TT
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a8aea176 566 srcdir=$ac_optarg ;;
dfac8a13
TT
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a8aea176 573 sysconfdir=$ac_optarg ;;
dfac8a13
TT
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
a8aea176 576 ac_prev=target_alias ;;
dfac8a13 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a8aea176 578 target_alias=$ac_optarg ;;
dfac8a13
TT
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
a8aea176
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
dfac8a13
TT
585
586 -with-* | --with-*)
a8aea176 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
dfac8a13 588 # Reject names that are not valid shell variable names.
a8aea176
NN
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; }; }
dfac8a13 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
a8aea176
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
595 *) ac_optarg=yes ;;
596 esac
a8aea176 597 eval "with_$ac_package='$ac_optarg'" ;;
dfac8a13
TT
598
599 -without-* | --without-*)
a8aea176 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
dfac8a13 601 # Reject names that are not valid shell variable names.
a8aea176
NN
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" ;;
dfac8a13
TT
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a8aea176 617 x_includes=$ac_optarg ;;
dfac8a13
TT
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a8aea176 624 x_libraries=$ac_optarg ;;
dfac8a13 625
a8aea176
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
dfac8a13
TT
629 ;;
630
a8aea176
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
dfac8a13 641 *)
a8aea176
NN
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}
dfac8a13
TT
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
a8aea176
NN
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; }; }
dfac8a13 656fi
dfac8a13 657
a8aea176
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
dfac8a13 668
a8aea176
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c45f211e 672do
a8aea176
NN
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; }; };;
dfac8a13
TT
678 esac
679done
680
a8aea176
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
dfac8a13 698
a8aea176
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
dfac8a13 703
dfac8a13
TT
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
a8aea176
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
dfac8a13
TT
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
a8aea176
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
dfac8a13 732 else
a8aea176
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
dfac8a13
TT
735 fi
736fi
a8aea176
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
844fi
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-maintainer-mode enable make rules and dependencies not useful
854 (and sometimes confusing) to the casual installer
855 --enable-multilib build many library versions (default)
856 --enable-shared=PKGS build shared libraries default=yes
857 --enable-static=PKGS build static libraries default=yes
858 --enable-fast-install=PKGS optimize for fast installation default=yes
859 --disable-libtool-lock avoid locking (might break parallel builds)
860
861Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-target-subdir=SUBDIR
865 configuring in a subdirectory
866 --with-cross-host=HOST configuring with a cross compiler
867 --with-system-zlib use installed libz
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
870
871Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 CPP C preprocessor
879
880Use these variables to override the choices made by `configure' or to help
881it to find libraries and programs with nonstandard names/locations.
882
883_ACEOF
884fi
885
886if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
888 ac_popdir=`pwd`
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
891 ac_builddir=.
892
893if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897else
898 ac_dir_suffix= ac_top_builddir=
899fi
900
901case $srcdir in
902 .) # No --srcdir option. We are building in place.
903 ac_srcdir=.
904 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=.
906 else
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 fi ;;
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
912 *) # Relative path.
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915esac
916
917# Do not use `cd foo && pwd` to compute absolute paths, because
918# the directories may not exist.
919case `pwd` in
920.) ac_abs_builddir="$ac_dir";;
921*)
922 case "$ac_dir" in
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_top_builddir=${ac_top_builddir}.;;
930*)
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_srcdir=$ac_srcdir;;
939*)
940 case $ac_srcdir in
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_top_srcdir=$ac_top_srcdir;;
948*)
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 esac;;
954esac
955
956 cd $ac_dir
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
959 echo
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
962 echo
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
966 echo
967 $ac_configure --help
968 else
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 fi
971 cd "$ac_popdir"
972 done
973fi
974
975test -n "$ac_init_help" && exit 0
976if $ac_init_version; then
977 cat <<\_ACEOF
978
979Copyright (C) 2003 Free Software Foundation, Inc.
980This configure script is free software; the Free Software Foundation
981gives unlimited permission to copy, distribute and modify it.
982_ACEOF
983 exit 0
984fi
985exec 5>config.log
986cat >&5 <<_ACEOF
987This file contains any messages produced by compilers while
988running configure, to aid debugging if configure makes a mistake.
989
990It was created by $as_me, which was
991generated by GNU Autoconf 2.59. Invocation command line was
992
993 $ $0 $@
994
995_ACEOF
996{
997cat <<_ASUNAME
998## --------- ##
999## Platform. ##
1000## --------- ##
1001
1002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007
1008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010
1011/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018
1019_ASUNAME
1020
1021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022for as_dir in $PATH
1023do
1024 IFS=$as_save_IFS
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1027done
1028
1029} >&5
1030
1031cat >&5 <<_ACEOF
1032
1033
1034## ----------- ##
1035## Core tests. ##
1036## ----------- ##
1037
1038_ACEOF
1039
1040
1041# Keep a trace of the command line.
1042# Strip out --no-create and --no-recursion so they do not pile up.
1043# Strip out --silent because we don't want to record it for future runs.
1044# Also quote any args containing shell meta-characters.
1045# Make two passes to allow for proper duplicate-argument suppression.
1046ac_configure_args=
1047ac_configure_args0=
1048ac_configure_args1=
1049ac_sep=
1050ac_must_keep_next=false
1051for ac_pass in 1 2
1052do
1053 for ac_arg
1054 do
1055 case $ac_arg in
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 continue ;;
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 esac
1063 case $ac_pass in
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 2)
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1069 else
1070 case $ac_arg in
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 esac
1078 ;;
1079 -* ) ac_must_keep_next=true ;;
1080 esac
1081 fi
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1084 ac_sep=" "
1085 ;;
1086 esac
1087 done
1088done
1089$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091
1092# When interrupted or exit'd, cleanup temporary files, and complete
1093# config.log. We remove comments because anyway the quotes in there
1094# would cause problems or look ugly.
1095# WARNING: Be sure not to use single quotes in there, as some shells,
1096# such as our DU 5.0 friend, will then `close' the trap.
1097trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1099 {
1100 echo
1101
1102 cat <<\_ASBOX
1103## ---------------- ##
1104## Cache variables. ##
1105## ---------------- ##
1106_ASBOX
1107 echo
1108 # The following way of writing the cache mishandles newlines in values,
1109{
1110 (set) 2>&1 |
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 *ac_space=\ *)
1113 sed -n \
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 ;;
1117 *)
1118 sed -n \
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ;;
1121 esac;
1122}
1123 echo
1124
1125 cat <<\_ASBOX
1126## ----------------- ##
1127## Output variables. ##
1128## ----------------- ##
1129_ASBOX
1130 echo
1131 for ac_var in $ac_subst_vars
1132 do
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1137
1138 if test -n "$ac_subst_files"; then
1139 cat <<\_ASBOX
1140## ------------- ##
1141## Output files. ##
1142## ------------- ##
1143_ASBOX
1144 echo
1145 for ac_var in $ac_subst_files
1146 do
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1151 fi
1152
1153 if test -s confdefs.h; then
1154 cat <<\_ASBOX
1155## ----------- ##
1156## confdefs.h. ##
1157## ----------- ##
1158_ASBOX
1159 echo
1160 sed "/^$/d" confdefs.h | sort
1161 echo
1162 fi
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1166 } >&5
1167 rm -f core *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 exit $exit_status
1170 ' 0
1171for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173done
1174ac_signal=0
dfac8a13 1175
a8aea176
NN
1176# confdefs.h avoids OS command line length limits that DEFS can exceed.
1177rm -rf conftest* confdefs.h
1178# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179echo >confdefs.h
1180
1181# Predefined preprocessor variables.
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_NAME "$PACKAGE_NAME"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_VERSION "$PACKAGE_VERSION"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_STRING "$PACKAGE_STRING"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205_ACEOF
1206
1207
1208# Let the site file select an alternate cache file if it wants to.
dfac8a13 1209# Prefer explicitly selected file to automatically selected ones.
0ccf2c33
AO
1210if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 else
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
dfac8a13
TT
1215 fi
1216fi
1217for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
a8aea176
NN
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
dfac8a13
TT
1222 . "$ac_site_file"
1223 fi
1224done
1225
1226if test -r "$cache_file"; then
a8aea176
NN
1227 # Some versions of bash will fail to source /dev/null (special
1228 # files actually), so we avoid doing that.
1229 if test -f "$cache_file"; then
1230 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231echo "$as_me: loading cache $cache_file" >&6;}
1232 case $cache_file in
1233 [\\/]* | ?:[\\/]* ) . $cache_file;;
1234 *) . ./$cache_file;;
1235 esac
1236 fi
dfac8a13 1237else
a8aea176
NN
1238 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239echo "$as_me: creating cache $cache_file" >&6;}
1240 >$cache_file
1241fi
1242
1243# Check that the precious variables saved in the cache have kept the same
1244# value.
1245ac_cache_corrupted=false
1246for ac_var in `(set) 2>&1 |
1247 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249 eval ac_new_set=\$ac_env_${ac_var}_set
1250 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251 eval ac_new_val="\$ac_env_${ac_var}_value"
1252 case $ac_old_set,$ac_new_set in
1253 set,)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,set)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,);;
1262 *)
1263 if test "x$ac_old_val" != "x$ac_new_val"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1267echo "$as_me: former value: $ac_old_val" >&2;}
1268 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1269echo "$as_me: current value: $ac_new_val" >&2;}
1270 ac_cache_corrupted=:
1271 fi;;
1272 esac
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1275 case $ac_new_val in
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1279 esac
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 esac
1284 fi
1285done
1286if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291 { (exit 1); exit 1; }; }
dfac8a13
TT
1292fi
1293
1294ac_ext=c
dfac8a13 1295ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
1296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
dfac8a13
TT
1317
1318
0fd91e0a 1319
6706f116
AO
1320# This works around the fact that libtool configuration may change LD
1321# for this particular configuration, but some shells, instead of
1322# keeping the changes in LD private, export them just because LD is
1323# exported.
1324ORIGINAL_LD_FOR_MULTILIBS=$LD
1325
0fd91e0a
AO
1326
1327if test "x${with_target_subdir}" != x && \
1328 test "${srcdir}" = "."; then
1329 if test "${with_target_subdir}" != "."; then
1330 zlib_basedir="${srcdir}/${with_multisrctop}../"
1331 else
1332 zlib_basedir="${srcdir}/${with_multisrctop}"
1333 fi
1334else
1335 zlib_basedir="${srcdir}/"
1336fi
1337
dfac8a13 1338ac_aux_dir=
0fd91e0a 1339for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do
dfac8a13
TT
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
a8aea176
NN
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
dfac8a13
TT
1352 fi
1353done
1354if test -z "$ac_aux_dir"; then
a8aea176
NN
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&5
1356echo "$as_me: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&2;}
1357 { (exit 1); exit 1; }; }
dfac8a13 1358fi
a8aea176
NN
1359ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
dfac8a13 1362
0fd91e0a
AO
1363if :; then :; else
1364 # This overrides the previous occurrence for automake, but not for
1365 # autoconf, which is exactly what we want.
1366 ac_aux_dir=
1367for ac_dir in .. $srcdir/..; do
1368 if test -f $ac_dir/install-sh; then
1369 ac_aux_dir=$ac_dir
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 break
1372 elif test -f $ac_dir/install.sh; then
1373 ac_aux_dir=$ac_dir
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1375 break
a8aea176
NN
1376 elif test -f $ac_dir/shtool; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1379 break
1380 fi
0fd91e0a
AO
1381done
1382if test -z "$ac_aux_dir"; then
a8aea176
NN
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1384echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1385 { (exit 1); exit 1; }; }
0fd91e0a 1386fi
a8aea176
NN
1387ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
0fd91e0a
AO
1390
1391fi
1392
dfac8a13 1393# Make sure we can run config.sub.
a8aea176
NN
1394$ac_config_sub sun4 >/dev/null 2>&1 ||
1395 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1396echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399echo "$as_me:$LINENO: checking build system type" >&5
1400echo $ECHO_N "checking build system type... $ECHO_C" >&6
1401if test "${ac_cv_build+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403else
1404 ac_cv_build_alias=$build_alias
1405test -z "$ac_cv_build_alias" &&
1406 ac_cv_build_alias=`$ac_config_guess`
1407test -z "$ac_cv_build_alias" &&
1408 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1409echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1410 { (exit 1); exit 1; }; }
1411ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1413echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1414 { (exit 1); exit 1; }; }
1415
1416fi
1417echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1418echo "${ECHO_T}$ac_cv_build" >&6
1419build=$ac_cv_build
1420build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423
1424
1425echo "$as_me:$LINENO: checking host system type" >&5
1426echo $ECHO_N "checking host system type... $ECHO_C" >&6
1427if test "${ac_cv_host+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
1430 ac_cv_host_alias=$host_alias
1431test -z "$ac_cv_host_alias" &&
1432 ac_cv_host_alias=$ac_cv_build_alias
1433ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1435echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1437
1438fi
1439echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1440echo "${ECHO_T}$ac_cv_host" >&6
1441host=$ac_cv_host
1442host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447echo "$as_me:$LINENO: checking target system type" >&5
1448echo $ECHO_N "checking target system type... $ECHO_C" >&6
1449if test "${ac_cv_target+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451else
1452 ac_cv_target_alias=$target_alias
1453test "x$ac_cv_target_alias" = "x" &&
1454 ac_cv_target_alias=$ac_cv_host_alias
1455ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1457echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
dfac8a13 1459
a8aea176
NN
1460fi
1461echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1462echo "${ECHO_T}$ac_cv_target" >&6
1463target=$ac_cv_target
1464target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
dfac8a13 1467
dfac8a13 1468
a8aea176
NN
1469# The aliases save the names the user supplied, while $host etc.
1470# will get canonicalized.
1471test -n "$target_alias" &&
dfac8a13
TT
1472 test "$program_prefix$program_suffix$program_transform_name" = \
1473 NONENONEs,x,x, &&
1474 program_prefix=${target_alias}-
1475
8b55628e 1476# This works around an automake problem.
1e6347d8 1477mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
1478
1479
dfac8a13
TT
1480# Find a good install program. We prefer a C program (faster),
1481# so one script is as good as another. But avoid the broken or
1482# incompatible versions:
1483# SysV /etc/install, /usr/sbin/install
1484# SunOS /usr/etc/install
1485# IRIX /sbin/install
1486# AIX /bin/install
a8aea176 1487# AmigaOS /C/install, which installs bootblocks on floppy discs
dfac8a13
TT
1488# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1489# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a8aea176 1491# OS/2's system install, which has a completely different semantic
dfac8a13 1492# ./install, which can be erroneously created by make from ./install.sh.
a8aea176
NN
1493echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1494echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
dfac8a13 1495if test -z "$INSTALL"; then
a8aea176
NN
1496if test "${ac_cv_path_install+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1498else
a8aea176
NN
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 # Account for people who put trailing slashes in PATH elements.
1505case $as_dir/ in
1506 ./ | .// | /cC/* | \
1507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1508 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1509 /usr/ucb/* ) ;;
1510 *)
1511 # OSF1 and SCO ODT 3.0 have their own names for install.
1512 # Don't use installbsd from OSF since it installs stuff as root
1513 # by default.
1514 for ac_prog in ginstall scoinst install; do
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
dfac8a13 1517 if test $ac_prog = install &&
a8aea176 1518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
dfac8a13
TT
1519 # AIX install. It has an incompatible calling convention.
1520 :
a8aea176
NN
1521 elif test $ac_prog = install &&
1522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523 # program-specific install script used by HP pwplus--don't use.
1524 :
dfac8a13 1525 else
a8aea176
NN
1526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1527 break 3
dfac8a13
TT
1528 fi
1529 fi
1530 done
a8aea176
NN
1531 done
1532 ;;
1533esac
1534done
1535
dfac8a13
TT
1536
1537fi
1538 if test "${ac_cv_path_install+set}" = set; then
a8aea176 1539 INSTALL=$ac_cv_path_install
dfac8a13
TT
1540 else
1541 # As a last resort, use the slow shell script. We don't cache a
1542 # path for INSTALL within a source directory, because that will
1543 # break other packages using the cache if that directory is
1544 # removed, or if the path is relative.
a8aea176 1545 INSTALL=$ac_install_sh
dfac8a13
TT
1546 fi
1547fi
a8aea176
NN
1548echo "$as_me:$LINENO: result: $INSTALL" >&5
1549echo "${ECHO_T}$INSTALL" >&6
dfac8a13
TT
1550
1551# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1552# It thinks the first close brace ends the variable substitution.
1553test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1554
a8aea176 1555test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
dfac8a13
TT
1556
1557test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1558
a8aea176
NN
1559echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1560echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
dfac8a13
TT
1561# Just in case
1562sleep 1
1563echo timestamp > conftestfile
1564# Do `set' in a subshell so we don't clobber the current shell's
1565# arguments. Must try -L first in case configure is actually a
1566# symlink; some systems play weird games with the mod time of symlinks
1567# (eg FreeBSD returns the mod time of the symlink's containing
1568# directory).
1569if (
1570 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1571 if test "$*" = "X"; then
1572 # -L didn't work.
1573 set X `ls -t $srcdir/configure conftestfile`
1574 fi
1575 if test "$*" != "X $srcdir/configure conftestfile" \
1576 && test "$*" != "X conftestfile $srcdir/configure"; then
1577
1578 # If neither matched, then we have a broken ls. This can happen
1579 # if, for instance, CONFIG_SHELL is bash and it inherits a
1580 # broken ls alias from the environment. This has actually
1581 # happened. Such a system could not be considered "sane".
a8aea176
NN
1582 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1583alias in your environment" >&5
1584echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1585alias in your environment" >&2;}
1586 { (exit 1); exit 1; }; }
dfac8a13
TT
1587 fi
1588
1589 test "$2" = conftestfile
1590 )
1591then
1592 # Ok.
1593 :
1594else
a8aea176
NN
1595 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1596Check your system clock" >&5
1597echo "$as_me: error: newly created file is older than distributed files!
1598Check your system clock" >&2;}
1599 { (exit 1); exit 1; }; }
dfac8a13
TT
1600fi
1601rm -f conftest*
a8aea176
NN
1602echo "$as_me:$LINENO: result: yes" >&5
1603echo "${ECHO_T}yes" >&6
dfac8a13 1604test "$program_prefix" != NONE &&
a8aea176 1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
dfac8a13
TT
1606# Use a double $ so make ignores it.
1607test "$program_suffix" != NONE &&
a8aea176
NN
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609# Double any \ or $. echo might interpret backslashes.
1610# By default was `s,x,x', remove it if useless.
1611cat <<\_ACEOF >conftest.sed
1612s/[\\$]/&&/g;s/;s,x,x,$//
1613_ACEOF
1614program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1615rm conftest.sed
1616
1617echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1618echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1619set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1620if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1622else
a8aea176 1623 cat >conftest.make <<\_ACEOF
dfac8a13 1624all:
a8aea176
NN
1625 @echo 'ac_maketemp="$(MAKE)"'
1626_ACEOF
dfac8a13 1627# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8aea176 1628eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
dfac8a13
TT
1629if test -n "$ac_maketemp"; then
1630 eval ac_cv_prog_make_${ac_make}_set=yes
1631else
1632 eval ac_cv_prog_make_${ac_make}_set=no
1633fi
a8aea176 1634rm -f conftest.make
dfac8a13
TT
1635fi
1636if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a8aea176
NN
1637 echo "$as_me:$LINENO: result: yes" >&5
1638echo "${ECHO_T}yes" >&6
dfac8a13
TT
1639 SET_MAKE=
1640else
a8aea176
NN
1641 echo "$as_me:$LINENO: result: no" >&5
1642echo "${ECHO_T}no" >&6
dfac8a13
TT
1643 SET_MAKE="MAKE=${MAKE-make}"
1644fi
1645
1646
1647PACKAGE=zlib
1648
d59e375e 1649VERSION=1.1.4
dfac8a13
TT
1650
1651if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
a8aea176
NN
1652 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1653echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1654 { (exit 1); exit 1; }; }
dfac8a13 1655fi
a8aea176
NN
1656
1657cat >>confdefs.h <<_ACEOF
dfac8a13 1658#define PACKAGE "$PACKAGE"
a8aea176 1659_ACEOF
dfac8a13 1660
a8aea176
NN
1661
1662cat >>confdefs.h <<_ACEOF
dfac8a13 1663#define VERSION "$VERSION"
a8aea176 1664_ACEOF
dfac8a13
TT
1665
1666
1667
1668missing_dir=`cd $ac_aux_dir && pwd`
a8aea176
NN
1669echo "$as_me:$LINENO: checking for working aclocal" >&5
1670echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
dfac8a13
TT
1671# Run test in a subshell; some versions of sh will print an error if
1672# an executable is not found, even if stderr is redirected.
1673# Redirect stdin to placate older versions of autoconf. Sigh.
1674if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1675 ACLOCAL=aclocal
a8aea176
NN
1676 echo "$as_me:$LINENO: result: found" >&5
1677echo "${ECHO_T}found" >&6
dfac8a13
TT
1678else
1679 ACLOCAL="$missing_dir/missing aclocal"
a8aea176
NN
1680 echo "$as_me:$LINENO: result: missing" >&5
1681echo "${ECHO_T}missing" >&6
dfac8a13
TT
1682fi
1683
a8aea176
NN
1684echo "$as_me:$LINENO: checking for working autoconf" >&5
1685echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
dfac8a13
TT
1686# Run test in a subshell; some versions of sh will print an error if
1687# an executable is not found, even if stderr is redirected.
1688# Redirect stdin to placate older versions of autoconf. Sigh.
1689if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1690 AUTOCONF=autoconf
a8aea176
NN
1691 echo "$as_me:$LINENO: result: found" >&5
1692echo "${ECHO_T}found" >&6
dfac8a13
TT
1693else
1694 AUTOCONF="$missing_dir/missing autoconf"
a8aea176
NN
1695 echo "$as_me:$LINENO: result: missing" >&5
1696echo "${ECHO_T}missing" >&6
dfac8a13
TT
1697fi
1698
a8aea176
NN
1699echo "$as_me:$LINENO: checking for working automake" >&5
1700echo $ECHO_N "checking for working automake... $ECHO_C" >&6
dfac8a13
TT
1701# Run test in a subshell; some versions of sh will print an error if
1702# an executable is not found, even if stderr is redirected.
1703# Redirect stdin to placate older versions of autoconf. Sigh.
1704if (automake --version) < /dev/null > /dev/null 2>&1; then
1705 AUTOMAKE=automake
a8aea176
NN
1706 echo "$as_me:$LINENO: result: found" >&5
1707echo "${ECHO_T}found" >&6
dfac8a13
TT
1708else
1709 AUTOMAKE="$missing_dir/missing automake"
a8aea176
NN
1710 echo "$as_me:$LINENO: result: missing" >&5
1711echo "${ECHO_T}missing" >&6
dfac8a13
TT
1712fi
1713
a8aea176
NN
1714echo "$as_me:$LINENO: checking for working autoheader" >&5
1715echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
dfac8a13
TT
1716# Run test in a subshell; some versions of sh will print an error if
1717# an executable is not found, even if stderr is redirected.
1718# Redirect stdin to placate older versions of autoconf. Sigh.
1719if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1720 AUTOHEADER=autoheader
a8aea176
NN
1721 echo "$as_me:$LINENO: result: found" >&5
1722echo "${ECHO_T}found" >&6
dfac8a13
TT
1723else
1724 AUTOHEADER="$missing_dir/missing autoheader"
a8aea176
NN
1725 echo "$as_me:$LINENO: result: missing" >&5
1726echo "${ECHO_T}missing" >&6
dfac8a13
TT
1727fi
1728
a8aea176
NN
1729echo "$as_me:$LINENO: checking for working makeinfo" >&5
1730echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
dfac8a13
TT
1731# Run test in a subshell; some versions of sh will print an error if
1732# an executable is not found, even if stderr is redirected.
1733# Redirect stdin to placate older versions of autoconf. Sigh.
1734if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1735 MAKEINFO=makeinfo
a8aea176
NN
1736 echo "$as_me:$LINENO: result: found" >&5
1737echo "${ECHO_T}found" >&6
dfac8a13
TT
1738else
1739 MAKEINFO="$missing_dir/missing makeinfo"
a8aea176
NN
1740 echo "$as_me:$LINENO: result: missing" >&5
1741echo "${ECHO_T}missing" >&6
dfac8a13
TT
1742fi
1743
1744
1745
a8aea176
NN
1746echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1747echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
e093c992
AG
1748 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1749if test "${enable_maintainer_mode+set}" = set; then
1750 enableval="$enable_maintainer_mode"
1751 USE_MAINTAINER_MODE=$enableval
1752else
1753 USE_MAINTAINER_MODE=no
a8aea176
NN
1754fi;
1755 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1756echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
e093c992 1757
e093c992
AG
1758
1759if test $USE_MAINTAINER_MODE = yes; then
1760 MAINTAINER_MODE_TRUE=
1761 MAINTAINER_MODE_FALSE='#'
1762else
1763 MAINTAINER_MODE_TRUE='#'
1764 MAINTAINER_MODE_FALSE=
1765fi
1766 MAINT=$MAINTAINER_MODE_TRUE
a8aea176
NN
1767
1768
e093c992
AG
1769
1770
dfac8a13
TT
1771# Check whether --with-target-subdir or --without-target-subdir was given.
1772if test "${with_target_subdir+set}" = set; then
1773 withval="$with_target_subdir"
a8aea176
NN
1774
1775fi;
1776
1777if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
1778 COMPPATH=.
1779else
1780 COMPPATH=..
dfac8a13
TT
1781fi
1782
a8aea176
NN
1783
1784
dfac8a13
TT
1785# Check whether --with-cross-host or --without-cross-host was given.
1786if test "${with_cross_host+set}" = set; then
1787 withval="$with_cross_host"
dfac8a13 1788
a8aea176 1789fi;
dfac8a13
TT
1790
1791# Check whether --enable-multilib or --disable-multilib was given.
1792if test "${enable_multilib+set}" = set; then
1793 enableval="$enable_multilib"
1794 case "${enableval}" in
1795 yes) multilib=yes ;;
1796 no) multilib=no ;;
a8aea176
NN
1797 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1798echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1799 { (exit 1); exit 1; }; } ;;
dfac8a13
TT
1800 esac
1801else
67d08194 1802 test -z "$with_target_subdir" && multilib=no || multilib=yes
a8aea176 1803fi;
dfac8a13 1804
79a9a529
TT
1805# Check whether --with-system-zlib or --without-system-zlib was given.
1806if test "${with_system_zlib+set}" = set; then
1807 withval="$with_system_zlib"
79a9a529 1808
a8aea176
NN
1809fi;
1810
1811# Make sure we don't test executables when making cross-tools.
1812
1813
1814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
79a9a529 1843
a8aea176
NN
1844fi
1845fi
1846CC=$ac_cv_prog_CC
1847if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849echo "${ECHO_T}$CC" >&6
1850else
1851 echo "$as_me:$LINENO: result: no" >&5
1852echo "${ECHO_T}no" >&6
1853fi
025fd00e 1854
a8aea176
NN
1855fi
1856if test -z "$ac_cv_prog_CC"; then
1857 ac_ct_CC=$CC
1858 # Extract the first word of "gcc", so it can be a program name with args.
dfac8a13 1859set dummy gcc; ac_word=$2
a8aea176
NN
1860echo "$as_me:$LINENO: checking for $ac_word" >&5
1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867else
1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869for as_dir in $PATH
1870do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879done
1880done
1881
1882fi
1883fi
1884ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887echo "${ECHO_T}$ac_ct_CC" >&6
1888else
1889 echo "$as_me:$LINENO: result: no" >&5
1890echo "${ECHO_T}no" >&6
1891fi
1892
1893 CC=$ac_ct_CC
1894else
1895 CC="$ac_cv_prog_CC"
1896fi
1897
1898if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901set dummy ${ac_tool_prefix}cc; ac_word=$2
1902echo "$as_me:$LINENO: checking for $ac_word" >&5
1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
1906else
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1909else
a8aea176
NN
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921done
1922done
1923
dfac8a13
TT
1924fi
1925fi
a8aea176 1926CC=$ac_cv_prog_CC
dfac8a13 1927if test -n "$CC"; then
a8aea176
NN
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929echo "${ECHO_T}$CC" >&6
1930else
1931 echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935fi
1936if test -z "$ac_cv_prog_CC"; then
1937 ac_ct_CC=$CC
1938 # Extract the first word of "cc", so it can be a program name with args.
1939set dummy cc; ac_word=$2
1940echo "$as_me:$LINENO: checking for $ac_word" >&5
1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947else
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 break 2
1958 fi
1959done
1960done
1961
1962fi
1963fi
1964ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 1968else
a8aea176
NN
1969 echo "$as_me:$LINENO: result: no" >&5
1970echo "${ECHO_T}no" >&6
dfac8a13
TT
1971fi
1972
a8aea176
NN
1973 CC=$ac_ct_CC
1974else
1975 CC="$ac_cv_prog_CC"
1976fi
1977
1978fi
dfac8a13
TT
1979if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981set dummy cc; ac_word=$2
a8aea176
NN
1982echo "$as_me:$LINENO: checking for $ac_word" >&5
1983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
1986else
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1989else
dfac8a13 1990 ac_prog_rejected=no
a8aea176
NN
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2000 continue
2001 fi
2002 ac_cv_prog_CC="cc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
2008
dfac8a13
TT
2009if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2012 shift
a8aea176 2013 if test $# != 0; then
dfac8a13
TT
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2017 shift
a8aea176 2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
dfac8a13
TT
2019 fi
2020fi
2021fi
2022fi
a8aea176 2023CC=$ac_cv_prog_CC
dfac8a13 2024if test -n "$CC"; then
a8aea176
NN
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026echo "${ECHO_T}$CC" >&6
dfac8a13 2027else
a8aea176
NN
2028 echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
dfac8a13
TT
2030fi
2031
dfac8a13 2032fi
a8aea176
NN
2033if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2035 for ac_prog in cl
2036 do
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2043else
a8aea176
NN
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
dfac8a13 2046else
a8aea176
NN
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2057 fi
2058done
2059done
2060
dfac8a13 2061fi
a8aea176
NN
2062fi
2063CC=$ac_cv_prog_CC
2064if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066echo "${ECHO_T}$CC" >&6
2067else
2068 echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6
dfac8a13
TT
2070fi
2071
a8aea176
NN
2072 test -n "$CC" && break
2073 done
2074fi
2075if test -z "$CC"; then
2076 ac_ct_CC=$CC
2077 for ac_prog in cl
2078do
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080set dummy $ac_prog; ac_word=$2
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2085else
a8aea176
NN
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100done
2101done
2102
2103fi
2104fi
2105ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2109else
a8aea176
NN
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
dfac8a13 2112fi
dfac8a13 2113
a8aea176
NN
2114 test -n "$ac_ct_CC" && break
2115done
2116
2117 CC=$ac_ct_CC
2118fi
2119
2120fi
2121
2122
2123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2128
2129# Provide some information about the compiler.
2130echo "$as_me:$LINENO:" \
2131 "checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev/null >&5) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144 (eval $ac_compiler -V </dev/null >&5) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148
2149cat >conftest.$ac_ext <<_ACEOF
2150/* confdefs.h. */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h. */
2155
2156int
2157main ()
2158{
2159
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164# FIXME: Cleanup?
2165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2166 (eval $ac_link) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 gcc_no_link=no
2171else
2172 gcc_no_link=yes
dfac8a13
TT
2173fi
2174
a8aea176
NN
2175if test x$gcc_no_link = xyes; then
2176 # Setting cross_compile will disable run tests; it will
2177 # also disable AC_CHECK_FILE but that's generally
2178 # correct if we can't link.
2179 cross_compiling=yes
2180 EXEEXT=
2181else
2182 cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h. */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h. */
2188
2189int
2190main ()
2191{
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197ac_clean_files_save=$ac_clean_files
2198ac_clean_files="$ac_clean_files a.out a.exe b.out"
2199# Try to create an executable without -o first, disregard a.out.
2200# It will help us diagnose broken compilers, and finding out an intuition
2201# of exeext.
2202echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2203echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2204ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2205if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2206 (eval $ac_link_default) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # Find the output, starting from the most likely. This scheme is
2211# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2212# resort.
2213
2214# Be careful to initialize this variable, since it used to be cached.
2215# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2216ac_cv_exeext=
2217# b.out is created by i960 compilers.
2218for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2219do
2220 test -f "$ac_file" || continue
2221 case $ac_file in
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2223 ;;
2224 conftest.$ac_ext )
2225 # This is the source file.
2226 ;;
2227 [ab].out )
2228 # We found the default executable, but exeext='' is most
2229 # certainly right.
2230 break;;
2231 *.* )
2232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233 # FIXME: I believe we export ac_cv_exeext for Libtool,
2234 # but it would be cool to find out if it's true. Does anybody
2235 # maintain Libtool? --akim.
2236 export ac_cv_exeext
2237 break;;
2238 * )
2239 break;;
2240 esac
2241done
2242else
2243 echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: C compiler cannot create executables
2249See \`config.log' for more details." >&2;}
2250 { (exit 77); exit 77; }; }
2251fi
2252
2253ac_exeext=$ac_cv_exeext
2254echo "$as_me:$LINENO: result: $ac_file" >&5
2255echo "${ECHO_T}$ac_file" >&6
2256
2257# Check the compiler produces executables we can run. If not, either
2258# the compiler is broken, or we cross compile.
2259echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2260echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2261# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2262# If not cross compiling, check that we can run a simple program.
2263if test "$cross_compiling" != yes; then
2264 if { ac_try='./$ac_file'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 cross_compiling=no
dfac8a13 2271 else
a8aea176
NN
2272 if test "$cross_compiling" = maybe; then
2273 cross_compiling=yes
2274 else
2275 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2276If you meant to cross compile, use \`--host'.
2277See \`config.log' for more details." >&5
2278echo "$as_me: error: cannot run C compiled programs.
2279If you meant to cross compile, use \`--host'.
2280See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2282 fi
dfac8a13 2283 fi
a8aea176
NN
2284fi
2285echo "$as_me:$LINENO: result: yes" >&5
2286echo "${ECHO_T}yes" >&6
2287
2288rm -f a.out a.exe conftest$ac_cv_exeext b.out
2289ac_clean_files=$ac_clean_files_save
2290# Check the compiler produces executables we can run. If not, either
2291# the compiler is broken, or we cross compile.
2292echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2293echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2294echo "$as_me:$LINENO: result: $cross_compiling" >&5
2295echo "${ECHO_T}$cross_compiling" >&6
2296
2297echo "$as_me:$LINENO: checking for suffix of executables" >&5
2298echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2300 (eval $ac_link) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2305# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2306# work properly (i.e., refer to `conftest.exe'), while it won't with
2307# `rm'.
2308for ac_file in conftest.exe conftest conftest.*; do
2309 test -f "$ac_file" || continue
2310 case $ac_file in
2311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 export ac_cv_exeext
2314 break;;
2315 * ) break;;
2316 esac
2317done
dfac8a13 2318else
a8aea176
NN
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2320See \`config.log' for more details." >&5
2321echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2322See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2324fi
2325
2326rm -f conftest$ac_cv_exeext
2327echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2328echo "${ECHO_T}$ac_cv_exeext" >&6
2329
2330rm -f conftest.$ac_ext
2331EXEEXT=$ac_cv_exeext
2332ac_exeext=$EXEEXT
2333fi
2334echo "$as_me:$LINENO: checking for suffix of object files" >&5
2335echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2336if test "${ac_cv_objext+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2338else
a8aea176
NN
2339 cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h. */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h. */
5d836b57 2345
a8aea176
NN
2346int
2347main ()
2348{
5d836b57 2349
a8aea176
NN
2350 ;
2351 return 0;
2352}
2353_ACEOF
2354rm -f conftest.o conftest.obj
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2361 case $ac_file in
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 break;;
2365 esac
2366done
5d836b57 2367else
a8aea176
NN
2368 echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372See \`config.log' for more details." >&5
2373echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
5d836b57
TT
2376fi
2377
a8aea176
NN
2378rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379fi
2380echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381echo "${ECHO_T}$ac_cv_objext" >&6
2382OBJEXT=$ac_cv_objext
2383ac_objext=$OBJEXT
2384echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2386if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2388else
a8aea176
NN
2389 cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h. */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h. */
5d836b57 2395
a8aea176
NN
2396int
2397main ()
2398{
2399#ifndef __GNUC__
2400 choke me
2401#endif
2402
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 ac_compiler_gnu=yes
5d836b57 2429else
a8aea176
NN
2430 echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433ac_compiler_gnu=no
5d836b57 2434fi
a8aea176
NN
2435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436ac_cv_c_compiler_gnu=$ac_compiler_gnu
5d836b57 2437
a8aea176
NN
2438fi
2439echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2440echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2441GCC=`test $ac_compiler_gnu = yes && echo yes`
2442ac_test_CFLAGS=${CFLAGS+set}
2443ac_save_CFLAGS=$CFLAGS
2444CFLAGS="-g"
2445echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2446echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2447if test "${ac_cv_prog_cc_g+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450 cat >conftest.$ac_ext <<_ACEOF
2451/* confdefs.h. */
2452_ACEOF
2453cat confdefs.h >>conftest.$ac_ext
2454cat >>conftest.$ac_ext <<_ACEOF
2455/* end confdefs.h. */
5d836b57 2456
a8aea176
NN
2457int
2458main ()
2459{
5d836b57 2460
a8aea176
NN
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cc_g=yes
5d836b57 2487else
a8aea176
NN
2488 echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491ac_cv_prog_cc_g=no
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2496echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2497if test "$ac_test_CFLAGS" = set; then
2498 CFLAGS=$ac_save_CFLAGS
2499elif test $ac_cv_prog_cc_g = yes; then
2500 if test "$GCC" = yes; then
2501 CFLAGS="-g -O2"
2502 else
2503 CFLAGS="-g"
2504 fi
5d836b57 2505else
a8aea176
NN
2506 if test "$GCC" = yes; then
2507 CFLAGS="-O2"
5d836b57 2508 else
a8aea176 2509 CFLAGS=
5d836b57 2510 fi
5d836b57 2511fi
a8aea176
NN
2512echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2513echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2514if test "${ac_cv_prog_cc_stdc+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517 ac_cv_prog_cc_stdc=no
2518ac_save_CC=$CC
2519cat >conftest.$ac_ext <<_ACEOF
2520/* confdefs.h. */
2521_ACEOF
2522cat confdefs.h >>conftest.$ac_ext
2523cat >>conftest.$ac_ext <<_ACEOF
2524/* end confdefs.h. */
2525#include <stdarg.h>
2526#include <stdio.h>
2527#include <sys/types.h>
2528#include <sys/stat.h>
2529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2530struct buf { int x; };
2531FILE * (*rcsopen) (struct buf *, struct stat *, int);
2532static char *e (p, i)
2533 char **p;
2534 int i;
2535{
2536 return p[i];
2537}
2538static char *f (char * (*g) (char **, int), char **p, ...)
2539{
2540 char *s;
2541 va_list v;
2542 va_start (v,p);
2543 s = g (p, va_arg (v,int));
2544 va_end (v);
2545 return s;
2546}
5d836b57 2547
a8aea176
NN
2548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2549 function prototypes and stuff, but not '\xHH' hex character constants.
2550 These don't provoke an error unfortunately, instead are silently treated
2551 as 'x'. The following induces an error, until -std1 is added to get
2552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2553 array size at least. It's necessary to write '\x00'==0 to get something
2554 that's true only with -std1. */
2555int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2556
2557int test (int i, double x);
2558struct s1 {int (*f) (int a);};
2559struct s2 {int (*f) (double a);};
2560int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2561int argc;
2562char **argv;
2563int
2564main ()
2565{
2566return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571# Don't try gcc -ansi; that turns off useful extensions and
2572# breaks some systems' header files.
2573# AIX -qlanglvl=ansi
2574# Ultrix and OSF/1 -std1
2575# HP-UX 10.20 and later -Ae
2576# HP-UX older versions -Aa -D_HPUX_SOURCE
2577# SVR4 -Xc -D__EXTENSIONS__
2578for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2579do
2580 CC="$ac_save_CC $ac_arg"
2581 rm -f conftest.$ac_objext
2582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>conftest.er1
2584 ac_status=$?
2585 grep -v '^ *+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 ac_cv_prog_cc_stdc=$ac_arg
2603break
2604else
2605 echo "$as_me: failed program was:" >&5
2606sed 's/^/| /' conftest.$ac_ext >&5
2607
2608fi
2609rm -f conftest.err conftest.$ac_objext
2610done
2611rm -f conftest.$ac_ext conftest.$ac_objext
2612CC=$ac_save_CC
2613
2614fi
2615
2616case "x$ac_cv_prog_cc_stdc" in
2617 x|xno)
2618 echo "$as_me:$LINENO: result: none needed" >&5
2619echo "${ECHO_T}none needed" >&6 ;;
2620 *)
2621 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2622echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2623 CC="$CC $ac_cv_prog_cc_stdc" ;;
2624esac
2625
2626# Some people use a C++ compiler to compile C. Since we use `exit',
2627# in C++ we need to declare it. In case someone uses the same compiler
2628# for both compiling C and C++ we need to have the C++ compiler decide
2629# the declaration of exit, since it's the most demanding environment.
2630cat >conftest.$ac_ext <<_ACEOF
2631#ifndef __cplusplus
2632 choke me
2633#endif
2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 for ac_declaration in \
2657 '' \
2658 'extern "C" void std::exit (int) throw (); using std::exit;' \
2659 'extern "C" void std::exit (int); using std::exit;' \
2660 'extern "C" void exit (int) throw ();' \
2661 'extern "C" void exit (int);' \
2662 'void exit (int);'
2663do
2664 cat >conftest.$ac_ext <<_ACEOF
2665/* confdefs.h. */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
2669/* end confdefs.h. */
2670$ac_declaration
2671#include <stdlib.h>
2672int
2673main ()
2674{
2675exit (42);
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 :
2702else
2703 echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706continue
2707fi
2708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709 cat >conftest.$ac_ext <<_ACEOF
2710/* confdefs.h. */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h. */
2715$ac_declaration
2716int
2717main ()
2718{
2719exit (42);
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724rm -f conftest.$ac_objext
2725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 break
2746else
2747 echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750fi
2751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752done
2753rm -f conftest*
2754if test -n "$ac_declaration"; then
2755 echo '#ifdef __cplusplus' >>confdefs.h
2756 echo $ac_declaration >>confdefs.h
2757 echo '#endif' >>confdefs.h
2758fi
2759
2760else
2761 echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
5d836b57 2763
5d836b57 2764fi
a8aea176
NN
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766ac_ext=c
2767ac_cpp='$CPP $CPPFLAGS'
2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772
dfac8a13
TT
2773# Check whether --enable-shared or --disable-shared was given.
2774if test "${enable_shared+set}" = set; then
2775 enableval="$enable_shared"
2776 p=${PACKAGE-default}
0fd91e0a 2777case $enableval in
dfac8a13
TT
2778yes) enable_shared=yes ;;
2779no) enable_shared=no ;;
2780*)
2781 enable_shared=no
2782 # Look at the argument we got. We use all the common list separators.
2783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2784 for pkg in $enableval; do
2785 if test "X$pkg" = "X$p"; then
2786 enable_shared=yes
2787 fi
2788 done
2789 IFS="$ac_save_ifs"
2790 ;;
2791esac
2792else
2793 enable_shared=yes
a8aea176 2794fi;
dfac8a13
TT
2795# Check whether --enable-static or --disable-static was given.
2796if test "${enable_static+set}" = set; then
2797 enableval="$enable_static"
2798 p=${PACKAGE-default}
0fd91e0a 2799case $enableval in
dfac8a13
TT
2800yes) enable_static=yes ;;
2801no) enable_static=no ;;
2802*)
2803 enable_static=no
2804 # Look at the argument we got. We use all the common list separators.
2805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2806 for pkg in $enableval; do
2807 if test "X$pkg" = "X$p"; then
2808 enable_static=yes
2809 fi
2810 done
2811 IFS="$ac_save_ifs"
2812 ;;
2813esac
2814else
2815 enable_static=yes
a8aea176 2816fi;
dfac8a13
TT
2817# Check whether --enable-fast-install or --disable-fast-install was given.
2818if test "${enable_fast_install+set}" = set; then
2819 enableval="$enable_fast_install"
2820 p=${PACKAGE-default}
0fd91e0a 2821case $enableval in
dfac8a13
TT
2822yes) enable_fast_install=yes ;;
2823no) enable_fast_install=no ;;
2824*)
2825 enable_fast_install=no
2826 # Look at the argument we got. We use all the common list separators.
2827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2828 for pkg in $enableval; do
2829 if test "X$pkg" = "X$p"; then
2830 enable_fast_install=yes
2831 fi
2832 done
2833 IFS="$ac_save_ifs"
2834 ;;
2835esac
2836else
2837 enable_fast_install=yes
a8aea176 2838fi;
dfac8a13 2839
dfac8a13
TT
2840# Check whether --with-gnu-ld or --without-gnu-ld was given.
2841if test "${with_gnu_ld+set}" = set; then
2842 withval="$with_gnu_ld"
2843 test "$withval" = no || with_gnu_ld=yes
2844else
2845 with_gnu_ld=no
a8aea176 2846fi;
dfac8a13 2847ac_prog=ld
0fd91e0a 2848if test "$GCC" = yes; then
dfac8a13 2849 # Check if gcc -print-prog-name=ld gives a path.
a8aea176
NN
2850 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2851echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
0fd91e0a
AO
2852 case $host in
2853 *-*-mingw*)
2854 # gcc leaves a trailing carriage return which upsets mingw
2855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2856 *)
2857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2858 esac
2859 case $ac_prog in
dfac8a13 2860 # Accept absolute paths.
0fd91e0a 2861 [\\/]* | [A-Za-z]:[\\/]*)
dfac8a13
TT
2862 re_direlt='/[^/][^/]*/\.\./'
2863 # Canonicalize the path of ld
2864 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2865 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2866 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2867 done
2868 test -z "$LD" && LD="$ac_prog"
2869 ;;
2870 "")
2871 # If it fails, then pretend we aren't using GCC.
2872 ac_prog=ld
2873 ;;
2874 *)
2875 # If it is relative, then search for the first ld in PATH.
2876 with_gnu_ld=unknown
2877 ;;
2878 esac
2879elif test "$with_gnu_ld" = yes; then
a8aea176
NN
2880 echo "$as_me:$LINENO: checking for GNU ld" >&5
2881echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
dfac8a13 2882else
a8aea176
NN
2883 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2884echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
dfac8a13 2885fi
a8aea176
NN
2886if test "${lt_cv_path_LD+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2888else
2889 if test -z "$LD"; then
0fd91e0a 2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
2891 for ac_dir in $PATH; do
2892 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
2893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2894 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13
TT
2895 # Check to see if the program is GNU ld. I'd rather use --version,
2896 # but apparently some GNU ld's only accept -v.
2897 # Break only if it was the GNU/non-GNU ld that we prefer.
0fd91e0a 2898 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
dfac8a13
TT
2899 test "$with_gnu_ld" != no && break
2900 else
2901 test "$with_gnu_ld" != yes && break
2902 fi
2903 fi
2904 done
2905 IFS="$ac_save_ifs"
2906else
0fd91e0a 2907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
2908fi
2909fi
2910
0fd91e0a 2911LD="$lt_cv_path_LD"
dfac8a13 2912if test -n "$LD"; then
a8aea176
NN
2913 echo "$as_me:$LINENO: result: $LD" >&5
2914echo "${ECHO_T}$LD" >&6
dfac8a13 2915else
a8aea176
NN
2916 echo "$as_me:$LINENO: result: no" >&5
2917echo "${ECHO_T}no" >&6
2918fi
2919test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2920echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2921 { (exit 1); exit 1; }; }
2922echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2923echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2924if test "${lt_cv_prog_gnu_ld+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2926else
2927 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2928if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
0fd91e0a 2929 lt_cv_prog_gnu_ld=yes
dfac8a13 2930else
0fd91e0a 2931 lt_cv_prog_gnu_ld=no
dfac8a13
TT
2932fi
2933fi
a8aea176
NN
2934echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2935echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
0fd91e0a 2936with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
2937
2938
a8aea176
NN
2939echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2940echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2941if test "${lt_cv_ld_reload_flag+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a
AO
2943else
2944 lt_cv_ld_reload_flag='-r'
2945fi
a8aea176
NN
2946echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2947echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
0fd91e0a
AO
2948reload_flag=$lt_cv_ld_reload_flag
2949test -n "$reload_flag" && reload_flag=" $reload_flag"
2950
a8aea176
NN
2951echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2952echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2953if test "${lt_cv_path_NM+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2955else
2956 if test -n "$NM"; then
2957 # Let the user override the test.
0fd91e0a 2958 lt_cv_path_NM="$NM"
dfac8a13 2959else
0fd91e0a 2960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
2961 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2962 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
2963 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2964 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
dfac8a13
TT
2965 # Check to see if the nm accepts a BSD-compat flag.
2966 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2967 # nm: unknown option "B" ignored
0fd91e0a
AO
2968 # Tru64's nm complains that /dev/null is an invalid object file
2969 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2970 lt_cv_path_NM="$tmp_nm -B"
dfac8a13 2971 break
0fd91e0a
AO
2972 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2973 lt_cv_path_NM="$tmp_nm -p"
dfac8a13
TT
2974 break
2975 else
0fd91e0a 2976 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
dfac8a13
TT
2977 continue # so that we can try to find one that supports BSD flags
2978 fi
2979 fi
2980 done
2981 IFS="$ac_save_ifs"
0fd91e0a 2982 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
dfac8a13
TT
2983fi
2984fi
2985
0fd91e0a 2986NM="$lt_cv_path_NM"
a8aea176
NN
2987echo "$as_me:$LINENO: result: $NM" >&5
2988echo "${ECHO_T}$NM" >&6
2989
2990echo "$as_me:$LINENO: checking whether ln -s works" >&5
2991echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2992LN_S=$as_ln_s
2993if test "$LN_S" = "ln -s"; then
2994 echo "$as_me:$LINENO: result: yes" >&5
2995echo "${ECHO_T}yes" >&6
0fd91e0a 2996else
a8aea176
NN
2997 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2998echo "${ECHO_T}no, using $LN_S" >&6
0fd91e0a 2999fi
025fd00e 3000
a8aea176
NN
3001echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3002echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3003if test "${lt_cv_deplibs_check_method+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a
AO
3005else
3006 lt_cv_file_magic_cmd='$MAGIC_CMD'
3007lt_cv_file_magic_test_file=
3008lt_cv_deplibs_check_method='unknown'
3009# Need to set the preceding variable on all platforms that support
3010# interlibrary dependencies.
3011# 'none' -- dependencies not supported.
3012# `unknown' -- same as none, but documents that we really don't know.
3013# 'pass_all' -- all dependencies passed with no checks.
3014# 'test_compile' -- check by making test program.
3015# 'file_magic [regex]' -- check by looking for files in library path
3016# which responds to the $file_magic_cmd with a given egrep regex.
3017# If you have `file' or equivalent on your system and you're not sure
3018# whether `pass_all' will *always* work, you probably want this one.
3019
3020case $host_os in
025fd00e 3021aix*)
0fd91e0a 3022 lt_cv_deplibs_check_method=pass_all
025fd00e 3023 ;;
025fd00e 3024
0fd91e0a
AO
3025beos*)
3026 lt_cv_deplibs_check_method=pass_all
3027 ;;
025fd00e 3028
0fd91e0a
AO
3029bsdi4*)
3030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3031 lt_cv_file_magic_cmd='/usr/bin/file -L'
3032 lt_cv_file_magic_test_file=/shlib/libc.so
3033 ;;
025fd00e 3034
0fd91e0a
AO
3035cygwin* | mingw* |pw32*)
3036 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3037 lt_cv_file_magic_cmd='$OBJDUMP -f'
3038 ;;
025fd00e 3039
0fd91e0a 3040darwin* | rhapsody*)
a8aea176 3041 # this will be overwritten by pass_all, but leave it in just in case
0fd91e0a
AO
3042 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3043 lt_cv_file_magic_cmd='/usr/bin/file -L'
3044 case "$host_os" in
3045 rhapsody* | darwin1.012)
3046 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3047 ;;
3048 *) # Darwin 1.3 on
3049 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3050 ;;
3051 esac
a8aea176 3052 lt_cv_deplibs_check_method=pass_all
0fd91e0a 3053 ;;
025fd00e 3054
0fd91e0a
AO
3055freebsd* )
3056 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3057 case $host_cpu in
3058 i*86 )
3059 # Not sure whether the presence of OpenBSD here was a mistake.
3060 # Let's accept both of them until this is cleared up.
3061 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3062 lt_cv_file_magic_cmd=/usr/bin/file
3063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3064 ;;
3065 esac
3066 else
3067 lt_cv_deplibs_check_method=pass_all
3068 fi
3069 ;;
025fd00e 3070
0fd91e0a
AO
3071gnu*)
3072 lt_cv_deplibs_check_method=pass_all
3073 ;;
025fd00e 3074
0fd91e0a 3075hpux10.20*|hpux11*)
f5cc59a7
AO
3076 case $host_cpu in
3077 hppa*)
3078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3079 lt_cv_file_magic_cmd=/usr/bin/file
3080 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3081 ;;
3082 ia64*)
3083 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3084 lt_cv_file_magic_cmd=/usr/bin/file
3085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3086 ;;
3087 esac
0fd91e0a 3088 ;;
025fd00e 3089
0fd91e0a
AO
3090irix5* | irix6*)
3091 case $host_os in
3092 irix5*)
3093 # this will be overridden with pass_all, but let us keep it just in case
3094 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3095 ;;
3096 *)
3097 case $LD in
3098 *-32|*"-32 ") libmagic=32-bit;;
3099 *-n32|*"-n32 ") libmagic=N32;;
3100 *-64|*"-64 ") libmagic=64-bit;;
3101 *) libmagic=never-match;;
3102 esac
3103 # this will be overridden with pass_all, but let us keep it just in case
3104 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3105 ;;
3106 esac
3107 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3108 lt_cv_deplibs_check_method=pass_all
3109 ;;
025fd00e 3110
0fd91e0a
AO
3111# This must be Linux ELF.
3112linux-gnu*)
3113 case $host_cpu in
b1e0a93e 3114 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
0fd91e0a
AO
3115 lt_cv_deplibs_check_method=pass_all ;;
3116 *)
3117 # glibc up to 2.1.1 does not perform some relocations on ARM
3118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3119 esac
3120 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3121 ;;
025fd00e 3122
0fd91e0a
AO
3123netbsd*)
3124 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3125 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
025fd00e 3126 else
0fd91e0a 3127 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
025fd00e 3128 fi
0fd91e0a 3129 ;;
025fd00e 3130
0fd91e0a
AO
3131newsos6)
3132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3133 lt_cv_file_magic_cmd=/usr/bin/file
3134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3135 ;;
025fd00e 3136
0fd91e0a
AO
3137osf3* | osf4* | osf5*)
3138 # this will be overridden with pass_all, but let us keep it just in case
3139 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3140 lt_cv_file_magic_test_file=/shlib/libc.so
3141 lt_cv_deplibs_check_method=pass_all
3142 ;;
025fd00e 3143
0fd91e0a
AO
3144sco3.2v5*)
3145 lt_cv_deplibs_check_method=pass_all
3146 ;;
025fd00e 3147
0fd91e0a
AO
3148solaris*)
3149 lt_cv_deplibs_check_method=pass_all
3150 lt_cv_file_magic_test_file=/lib/libc.so
3151 ;;
025fd00e 3152
33456445
AO
3153sysv5uw[78]* | sysv4*uw2*)
3154 lt_cv_deplibs_check_method=pass_all
3155 ;;
3156
0fd91e0a
AO
3157sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3158 case $host_vendor in
3159 ncr)
3160 lt_cv_deplibs_check_method=pass_all
3161 ;;
3162 motorola)
3163 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]'
3164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3165 ;;
3166 esac
3167 ;;
3168esac
025fd00e
TT
3169
3170fi
a8aea176
NN
3171echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3172echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
0fd91e0a
AO
3173file_magic_cmd=$lt_cv_file_magic_cmd
3174deplibs_check_method=$lt_cv_deplibs_check_method
025fd00e 3175
dfac8a13 3176
0fd91e0a 3177
a8aea176 3178
025fd00e 3179
0fd91e0a 3180# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
dfac8a13 3181
0fd91e0a
AO
3182# Only perform the check for file, if the check method requires it
3183case $deplibs_check_method in
3184file_magic*)
3185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
a8aea176
NN
3186 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3187echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a
AO
3190else
3191 case $MAGIC_CMD in
3192 /*)
3193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3194 ;;
3195 ?:/*)
3196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3197 ;;
3198 *)
3199 ac_save_MAGIC_CMD="$MAGIC_CMD"
3200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3201 ac_dummy="/usr/bin:$PATH"
3202 for ac_dir in $ac_dummy; do
3203 test -z "$ac_dir" && ac_dir=.
3204 if test -f $ac_dir/${ac_tool_prefix}file; then
3205 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3206 if test -n "$file_magic_test_file"; then
3207 case $deplibs_check_method in
3208 "file_magic "*)
3209 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3212 egrep "$file_magic_regex" > /dev/null; then
3213 :
3214 else
3215 cat <<EOF 1>&2
dfac8a13 3216
0fd91e0a
AO
3217*** Warning: the command libtool uses to detect shared libraries,
3218*** $file_magic_cmd, produces output that libtool cannot recognize.
3219*** The result is that libtool may fail to recognize shared libraries
3220*** as such. This will affect the creation of libtool libraries that
3221*** depend on shared libraries, but programs linked with such libtool
3222*** libraries will work regardless of this problem. Nevertheless, you
3223*** may want to report the problem to your system manager and/or to
3224*** bug-libtool@gnu.org
3225
3226EOF
3227 fi ;;
3228 esac
3229 fi
3230 break
3231 fi
3232 done
3233 IFS="$ac_save_ifs"
3234 MAGIC_CMD="$ac_save_MAGIC_CMD"
dfac8a13 3235 ;;
0fd91e0a
AO
3236esac
3237fi
dfac8a13 3238
0fd91e0a
AO
3239MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3240if test -n "$MAGIC_CMD"; then
a8aea176
NN
3241 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3242echo "${ECHO_T}$MAGIC_CMD" >&6
0fd91e0a 3243else
a8aea176
NN
3244 echo "$as_me:$LINENO: result: no" >&5
3245echo "${ECHO_T}no" >&6
0fd91e0a
AO
3246fi
3247
3248if test -z "$lt_cv_path_MAGIC_CMD"; then
3249 if test -n "$ac_tool_prefix"; then
a8aea176
NN
3250 echo "$as_me:$LINENO: checking for file" >&5
3251echo $ECHO_N "checking for file... $ECHO_C" >&6
3252if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3254else
0fd91e0a
AO
3255 case $MAGIC_CMD in
3256 /*)
3257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3258 ;;
3259 ?:/*)
3260 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3261 ;;
3262 *)
3263 ac_save_MAGIC_CMD="$MAGIC_CMD"
3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3265 ac_dummy="/usr/bin:$PATH"
3266 for ac_dir in $ac_dummy; do
3267 test -z "$ac_dir" && ac_dir=.
3268 if test -f $ac_dir/file; then
3269 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3270 if test -n "$file_magic_test_file"; then
3271 case $deplibs_check_method in
3272 "file_magic "*)
3273 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3276 egrep "$file_magic_regex" > /dev/null; then
3277 :
3278 else
3279 cat <<EOF 1>&2
c45f211e 3280
0fd91e0a
AO
3281*** Warning: the command libtool uses to detect shared libraries,
3282*** $file_magic_cmd, produces output that libtool cannot recognize.
3283*** The result is that libtool may fail to recognize shared libraries
3284*** as such. This will affect the creation of libtool libraries that
3285*** depend on shared libraries, but programs linked with such libtool
3286*** libraries will work regardless of this problem. Nevertheless, you
3287*** may want to report the problem to your system manager and/or to
3288*** bug-libtool@gnu.org
dfac8a13 3289
c45f211e 3290EOF
0fd91e0a
AO
3291 fi ;;
3292 esac
3293 fi
3294 break
3295 fi
3296 done
3297 IFS="$ac_save_ifs"
3298 MAGIC_CMD="$ac_save_MAGIC_CMD"
3299 ;;
3300esac
3301fi
3302
3303MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3304if test -n "$MAGIC_CMD"; then
a8aea176
NN
3305 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3306echo "${ECHO_T}$MAGIC_CMD" >&6
dfac8a13 3307else
a8aea176
NN
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
dfac8a13 3310fi
0fd91e0a
AO
3311
3312 else
3313 MAGIC_CMD=:
3314 fi
dfac8a13
TT
3315fi
3316
dfac8a13
TT
3317 fi
3318 ;;
0fd91e0a 3319esac
dfac8a13 3320
a8aea176
NN
3321if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
0fd91e0a 3323set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8aea176
NN
3324echo "$as_me:$LINENO: checking for $ac_word" >&5
3325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326if test "${ac_cv_prog_RANLIB+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3328else
0fd91e0a
AO
3329 if test -n "$RANLIB"; then
3330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e 3331else
a8aea176
NN
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343done
3344done
3345
025fd00e
TT
3346fi
3347fi
a8aea176 3348RANLIB=$ac_cv_prog_RANLIB
0fd91e0a 3349if test -n "$RANLIB"; then
a8aea176
NN
3350 echo "$as_me:$LINENO: result: $RANLIB" >&5
3351echo "${ECHO_T}$RANLIB" >&6
025fd00e 3352else
a8aea176
NN
3353 echo "$as_me:$LINENO: result: no" >&5
3354echo "${ECHO_T}no" >&6
025fd00e
TT
3355fi
3356
a8aea176 3357fi
0fd91e0a 3358if test -z "$ac_cv_prog_RANLIB"; then
a8aea176 3359 ac_ct_RANLIB=$RANLIB
0fd91e0a
AO
3360 # Extract the first word of "ranlib", so it can be a program name with args.
3361set dummy ranlib; ac_word=$2
a8aea176
NN
3362echo "$as_me:$LINENO: checking for $ac_word" >&5
3363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3366else
a8aea176
NN
3367 if test -n "$ac_ct_RANLIB"; then
3368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
025fd00e 3369else
a8aea176
NN
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_ac_ct_RANLIB="ranlib"
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381done
3382done
3383
3384 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
025fd00e
TT
3385fi
3386fi
a8aea176
NN
3387ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3388if test -n "$ac_ct_RANLIB"; then
3389 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3390echo "${ECHO_T}$ac_ct_RANLIB" >&6
025fd00e 3391else
a8aea176
NN
3392 echo "$as_me:$LINENO: result: no" >&5
3393echo "${ECHO_T}no" >&6
025fd00e
TT
3394fi
3395
a8aea176 3396 RANLIB=$ac_ct_RANLIB
025fd00e 3397else
a8aea176 3398 RANLIB="$ac_cv_prog_RANLIB"
025fd00e
TT
3399fi
3400
a8aea176
NN
3401if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
0fd91e0a 3403set dummy ${ac_tool_prefix}strip; ac_word=$2
a8aea176
NN
3404echo "$as_me:$LINENO: checking for $ac_word" >&5
3405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406if test "${ac_cv_prog_STRIP+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3408else
0fd91e0a
AO
3409 if test -n "$STRIP"; then
3410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e 3411else
a8aea176
NN
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423done
3424done
3425
025fd00e
TT
3426fi
3427fi
a8aea176 3428STRIP=$ac_cv_prog_STRIP
0fd91e0a 3429if test -n "$STRIP"; then
a8aea176
NN
3430 echo "$as_me:$LINENO: result: $STRIP" >&5
3431echo "${ECHO_T}$STRIP" >&6
025fd00e 3432else
a8aea176
NN
3433 echo "$as_me:$LINENO: result: no" >&5
3434echo "${ECHO_T}no" >&6
025fd00e
TT
3435fi
3436
a8aea176 3437fi
0fd91e0a 3438if test -z "$ac_cv_prog_STRIP"; then
a8aea176 3439 ac_ct_STRIP=$STRIP
0fd91e0a
AO
3440 # Extract the first word of "strip", so it can be a program name with args.
3441set dummy strip; ac_word=$2
a8aea176
NN
3442echo "$as_me:$LINENO: checking for $ac_word" >&5
3443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3444if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3446else
a8aea176
NN
3447 if test -n "$ac_ct_STRIP"; then
3448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
025fd00e 3449else
a8aea176
NN
3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451for as_dir in $PATH
3452do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_ac_ct_STRIP="strip"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461done
3462done
3463
3464 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
025fd00e
TT
3465fi
3466fi
a8aea176
NN
3467ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3468if test -n "$ac_ct_STRIP"; then
3469 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3470echo "${ECHO_T}$ac_ct_STRIP" >&6
025fd00e 3471else
a8aea176
NN
3472 echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
025fd00e
TT
3474fi
3475
a8aea176 3476 STRIP=$ac_ct_STRIP
025fd00e 3477else
a8aea176 3478 STRIP="$ac_cv_prog_STRIP"
025fd00e
TT
3479fi
3480
3481
0fd91e0a
AO
3482# Check for any special flags to pass to ltconfig.
3483libtool_flags="--cache-file=$cache_file"
3484test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3485test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3486test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3487test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3488test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
c45f211e 3489
025fd00e
TT
3490
3491# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3492if test "${enable_libtool_lock+set}" = set; then
3493 enableval="$enable_libtool_lock"
0fd91e0a 3494
a8aea176 3495fi;
0fd91e0a
AO
3496test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3497test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3498
a8aea176 3499
0fd91e0a
AO
3500# Check whether --with-pic or --without-pic was given.
3501if test "${with_pic+set}" = set; then
3502 withval="$with_pic"
3503 pic_mode="$withval"
025fd00e 3504else
0fd91e0a 3505 pic_mode=default
a8aea176 3506fi;
0fd91e0a
AO
3507test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3508test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3509
3510# Some flags need to be propagated to the compiler or linker for good
3511# libtool support.
3512case $host in
3513*-*-irix6*)
3514 # Find out which ABI we are using.
a8aea176
NN
3515 echo '#line 3515 "configure"' > conftest.$ac_ext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; then
905280ac
AO
3521 if test "$lt_cv_prog_gnu_ld" = yes; then
3522 case `/usr/bin/file conftest.$ac_objext` in
3523 *32-bit*)
3524 LD="${LD-ld} -melf32bsmip"
3525 ;;
3526 *N32*)
3527 LD="${LD-ld} -melf32bmipn32"
3528 ;;
3529 *64-bit*)
3530 LD="${LD-ld} -melf64bmip"
3531 ;;
3532 esac
3533 else
0fd91e0a
AO
3534 case `/usr/bin/file conftest.$ac_objext` in
3535 *32-bit*)
3536 LD="${LD-ld} -32"
3537 ;;
3538 *N32*)
3539 LD="${LD-ld} -n32"
3540 ;;
3541 *64-bit*)
3542 LD="${LD-ld} -64"
3543 ;;
3544 esac
905280ac 3545 fi
0fd91e0a
AO
3546 fi
3547 rm -rf conftest*
3548 ;;
025fd00e 3549
f5cc59a7
AO
3550ia64-*-hpux*)
3551 # Find out which ABI we are using.
3552 echo 'int i;' > conftest.$ac_ext
a8aea176
NN
3553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554 (eval $ac_compile) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; then
f5cc59a7
AO
3558 case "`/usr/bin/file conftest.o`" in
3559 *ELF-32*)
3560 HPUX_IA64_MODE="32"
3561 ;;
3562 *ELF-64*)
3563 HPUX_IA64_MODE="64"
3564 ;;
3565 esac
3566 fi
3567 rm -rf conftest*
3568 ;;
3569
0ccf2c33
AO
3570x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3571 # Find out which ABI we are using.
3572 echo 'int i;' > conftest.$ac_ext
a8aea176
NN
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; then
0ccf2c33
AO
3578 case "`/usr/bin/file conftest.o`" in
3579 *32-bit*)
3580 case $host in
3581 x86_64-*linux*)
3582 LD="${LD-ld} -m elf_i386"
3583 ;;
e517f636 3584 ppc64-*linux*|powerpc64-*linux*)
0ccf2c33
AO
3585 LD="${LD-ld} -m elf32ppclinux"
3586 ;;
3587 s390x-*linux*)
3588 LD="${LD-ld} -m elf_s390"
3589 ;;
3590 sparc64-*linux*)
3591 LD="${LD-ld} -m elf32_sparc"
3592 ;;
3593 esac
3594 ;;
3595 *64-bit*)
3596 case $host in
3597 x86_64-*linux*)
3598 LD="${LD-ld} -m elf_x86_64"
3599 ;;
3600 ppc*-*linux*|powerpc*-*linux*)
3601 LD="${LD-ld} -m elf64ppc"
3602 ;;
3603 s390*-*linux*)
3604 LD="${LD-ld} -m elf64_s390"
3605 ;;
3606 sparc*-*linux*)
3607 LD="${LD-ld} -m elf64_sparc"
3608 ;;
3609 esac
3610 ;;
3611 esac
3612 fi
3613 rm -rf conftest*
3614 ;;
3615
0fd91e0a
AO
3616*-*-sco3.2v5*)
3617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3618 SAVE_CFLAGS="$CFLAGS"
3619 CFLAGS="$CFLAGS -belf"
a8aea176
NN
3620 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3621echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3622if test "${lt_cv_cc_needs_belf+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a 3624else
a8aea176
NN
3625
3626
0fd91e0a 3627 ac_ext=c
0fd91e0a 3628ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633 if test x$gcc_no_link = xyes; then
3634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3635echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3636 { (exit 1); exit 1; }; }
3637fi
3638cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
0fd91e0a 3644
a8aea176
NN
3645int
3646main ()
3647{
0fd91e0a 3648
a8aea176
NN
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext conftest$ac_exeext
3654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655 (eval $ac_link) 2>conftest.er1
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest$ac_exeext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
0fd91e0a
AO
3674 lt_cv_cc_needs_belf=yes
3675else
a8aea176
NN
3676 echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679lt_cv_cc_needs_belf=no
025fd00e 3680fi
a8aea176
NN
3681rm -f conftest.err conftest.$ac_objext \
3682 conftest$ac_exeext conftest.$ac_ext
0fd91e0a 3683 ac_ext=c
0fd91e0a 3684ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
0fd91e0a
AO
3688
3689fi
a8aea176
NN
3690echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3691echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
0fd91e0a
AO
3692 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3693 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3694 CFLAGS="$SAVE_CFLAGS"
3695 fi
3696 ;;
3697
3698
3699esac
025fd00e 3700
dfac8a13
TT
3701
3702# Save cache, so that ltconfig can load it
a8aea176 3703cat >confcache <<\_ACEOF
dfac8a13
TT
3704# This file is a shell script that caches the results of configure
3705# tests run on this system so they can be shared between configure
a8aea176
NN
3706# scripts and configure runs, see configure's option --config-cache.
3707# It is not useful on other systems. If it contains results you don't
3708# want to keep, you may remove or edit it.
dfac8a13 3709#
a8aea176
NN
3710# config.status only pays attention to the cache file if you give it
3711# the --recheck option to rerun configure.
dfac8a13 3712#
a8aea176
NN
3713# `ac_cv_env_foo' variables (set or unset) will be overridden when
3714# loading this file, other *unset* `ac_cv_foo' will be assigned the
3715# following values.
3716
3717_ACEOF
3718
dfac8a13
TT
3719# The following way of writing the cache mishandles newlines in values,
3720# but we know of no workaround that is simple, portable, and efficient.
3721# So, don't put newlines in cache variables' values.
3722# Ultrix sh set writes to stderr and can't be redirected directly,
3723# and sets the high bit in the cache file unless we assign to the vars.
a8aea176
NN
3724{
3725 (set) 2>&1 |
3726 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3727 *ac_space=\ *)
3728 # `set' does not quote correctly, so add quotes (double-quote
3729 # substitution turns \\\\ into \\, and sed turns \\ into \).
3730 sed -n \
3731 "s/'/'\\\\''/g;
3732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3733 ;;
3734 *)
3735 # `set' quotes correctly as required by POSIX, so do not add quotes.
3736 sed -n \
3737 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3738 ;;
3739 esac;
3740} |
3741 sed '
3742 t clear
3743 : clear
3744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3745 t end
3746 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3747 : end' >>confcache
3748if diff $cache_file confcache >/dev/null 2>&1; then :; else
dfac8a13 3749 if test -w $cache_file; then
a8aea176
NN
3750 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3751 cat confcache >$cache_file
c45f211e 3752 else
dfac8a13 3753 echo "not updating unwritable cache $cache_file"
c45f211e
TT
3754 fi
3755fi
dfac8a13
TT
3756rm -f confcache
3757
dfac8a13 3758# Actually configure libtool. ac_aux_dir is where install-sh is found.
0fd91e0a
AO
3759AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3760MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3761LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3762AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3763objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3764deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
dfac8a13 3765${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0fd91e0a 3766$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
a8aea176
NN
3767|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3768echo "$as_me: error: libtool configure failed" >&2;}
3769 { (exit 1); exit 1; }; }
dfac8a13
TT
3770
3771# Reload cache, that may have been modified by ltconfig
3772if test -r "$cache_file"; then
a8aea176
NN
3773 # Some versions of bash will fail to source /dev/null (special
3774 # files actually), so we avoid doing that.
3775 if test -f "$cache_file"; then
3776 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3777echo "$as_me: loading cache $cache_file" >&6;}
3778 case $cache_file in
3779 [\\/]* | ?:[\\/]* ) . $cache_file;;
3780 *) . ./$cache_file;;
3781 esac
3782 fi
dfac8a13 3783else
a8aea176
NN
3784 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3785echo "$as_me: creating cache $cache_file" >&6;}
3786 >$cache_file
dfac8a13
TT
3787fi
3788
3789
3790# This can be used to rebuild libtool when needed
0fd91e0a 3791LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
dfac8a13
TT
3792
3793# Always use our own libtool.
3794LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3795
3796# Redirect the config.log output again, so that the ltconfig log is not
3797# clobbered by the next message.
3798exec 5>>./config.log
3799
0fd91e0a 3800
dfac8a13 3801
a8aea176
NN
3802
3803
dfac8a13
TT
3804
3805
35241f18
CD
3806# Find CPP now so that any conditional tests below won't do it and
3807# thereby make the resulting definitions conditional.
a8aea176
NN
3808ac_ext=c
3809ac_cpp='$CPP $CPPFLAGS'
3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3814echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
dfac8a13
TT
3815# On Suns, sometimes $CPP names a directory.
3816if test -n "$CPP" && test -d "$CPP"; then
3817 CPP=
3818fi
3819if test -z "$CPP"; then
a8aea176
NN
3820 if test "${ac_cv_prog_CPP+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3822else
a8aea176
NN
3823 # Double quotes because CPP needs to be expanded
3824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3825 do
3826 ac_preproc_ok=false
3827for ac_c_preproc_warn_flag in '' yes
3828do
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
dfac8a13 3833 # On the NeXT, cc -E runs the code through the compiler's parser,
a8aea176
NN
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat >conftest.$ac_ext <<_ACEOF
3836/* confdefs.h. */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h. */
3841#ifdef __STDC__
3842# include <limits.h>
3843#else
3844# include <assert.h>
3845#endif
3846 Syntax error
3847_ACEOF
3848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } >/dev/null; then
3856 if test -s conftest.err; then
3857 ac_cpp_err=$ac_c_preproc_warn_flag
3858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3859 else
3860 ac_cpp_err=
3861 fi
dfac8a13 3862else
a8aea176
NN
3863 ac_cpp_err=yes
3864fi
3865if test -z "$ac_cpp_err"; then
dfac8a13
TT
3866 :
3867else
a8aea176
NN
3868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 # Broken: fails on valid input.
3872continue
3873fi
3874rm -f conftest.err conftest.$ac_ext
3875
3876 # OK, works on sane cases. Now check whether non-existent headers
3877 # can be detected and how.
3878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
3884#include <ac_nonexistent.h>
3885_ACEOF
3886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } >/dev/null; then
3894 if test -s conftest.err; then
3895 ac_cpp_err=$ac_c_preproc_warn_flag
3896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3897 else
3898 ac_cpp_err=
3899 fi
dfac8a13 3900else
a8aea176 3901 ac_cpp_err=yes
dfac8a13 3902fi
a8aea176
NN
3903if test -z "$ac_cpp_err"; then
3904 # Broken: success on invalid input.
3905continue
3906else
3907 echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 # Passes both tests.
3911ac_preproc_ok=:
3912break
dfac8a13 3913fi
a8aea176
NN
3914rm -f conftest.err conftest.$ac_ext
3915
3916done
3917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3918rm -f conftest.err conftest.$ac_ext
3919if $ac_preproc_ok; then
3920 break
dfac8a13 3921fi
a8aea176
NN
3922
3923 done
3924 ac_cv_prog_CPP=$CPP
3925
3926fi
3927 CPP=$ac_cv_prog_CPP
3928else
3929 ac_cv_prog_CPP=$CPP
3930fi
3931echo "$as_me:$LINENO: result: $CPP" >&5
3932echo "${ECHO_T}$CPP" >&6
3933ac_preproc_ok=false
3934for ac_c_preproc_warn_flag in '' yes
3935do
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#ifdef __STDC__
3949# include <limits.h>
3950#else
3951# include <assert.h>
3952#endif
3953 Syntax error
3954_ACEOF
3955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } >/dev/null; then
3963 if test -s conftest.err; then
3964 ac_cpp_err=$ac_c_preproc_warn_flag
3965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3966 else
3967 ac_cpp_err=
3968 fi
3969else
3970 ac_cpp_err=yes
3971fi
3972if test -z "$ac_cpp_err"; then
3973 :
3974else
3975 echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 # Broken: fails on valid input.
3979continue
3980fi
3981rm -f conftest.err conftest.$ac_ext
3982
3983 # OK, works on sane cases. Now check whether non-existent headers
3984 # can be detected and how.
3985 cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991#include <ac_nonexistent.h>
3992_ACEOF
3993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } >/dev/null; then
4001 if test -s conftest.err; then
4002 ac_cpp_err=$ac_c_preproc_warn_flag
4003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4004 else
4005 ac_cpp_err=
4006 fi
4007else
4008 ac_cpp_err=yes
4009fi
4010if test -z "$ac_cpp_err"; then
4011 # Broken: success on invalid input.
4012continue
4013else
4014 echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017 # Passes both tests.
4018ac_preproc_ok=:
4019break
dfac8a13 4020fi
a8aea176
NN
4021rm -f conftest.err conftest.$ac_ext
4022
4023done
4024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025rm -f conftest.err conftest.$ac_ext
4026if $ac_preproc_ok; then
4027 :
dfac8a13 4028else
a8aea176
NN
4029 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4030See \`config.log' for more details." >&5
4031echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4032See \`config.log' for more details." >&2;}
4033 { (exit 1); exit 1; }; }
dfac8a13 4034fi
a8aea176
NN
4035
4036ac_ext=c
4037ac_cpp='$CPP $CPPFLAGS'
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
dfac8a13 4041
35241f18
CD
4042
4043if test -n "$with_cross_host"; then
4044 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4045 # may not work correctly, because the compiler may not be able to
4046 # link executables.
4047
4048 # We assume newlib. This lets us hard-code the functions we know
4049 # we'll have.
a8aea176 4050 cat >>confdefs.h <<\_ACEOF
35241f18 4051#define HAVE_MEMCPY 1
a8aea176 4052_ACEOF
35241f18 4053
a8aea176 4054 cat >>confdefs.h <<\_ACEOF
35241f18 4055#define HAVE_STRERROR 1
a8aea176 4056_ACEOF
35241f18
CD
4057
4058
4059 # We ignore --with-system-zlib in this case.
4060 target_all=libzgcj.la
4061else
a8aea176
NN
4062 if test x$gcc_no_link = xyes; then
4063 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4064 ac_cv_func_mmap_fixed_mapped=no
4065 fi
dfac8a13 4066fi
a8aea176
NN
4067if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4068
4069echo "$as_me:$LINENO: checking for egrep" >&5
4070echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4071if test "${ac_cv_prog_egrep+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 4073else
a8aea176
NN
4074 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4075 then ac_cv_prog_egrep='grep -E'
4076 else ac_cv_prog_egrep='egrep'
4077 fi
c45f211e 4078fi
a8aea176
NN
4079echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4080echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4081 EGREP=$ac_cv_prog_egrep
dfac8a13 4082
dfac8a13 4083
a8aea176
NN
4084echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4085echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4086if test "${ac_cv_header_stdc+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095#include <stdlib.h>
4096#include <stdarg.h>
4097#include <string.h>
4098#include <float.h>
dfac8a13 4099
a8aea176
NN
4100int
4101main ()
4102{
c45f211e 4103
a8aea176
NN
4104 ;
4105 return 0;
4106}
4107_ACEOF
4108rm -f conftest.$ac_objext
4109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_header_stdc=yes
c45f211e 4130else
a8aea176
NN
4131 echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134ac_cv_header_stdc=no
4135fi
4136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#include <string.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4151 :
4152else
4153 ac_cv_header_stdc=no
dfac8a13
TT
4154fi
4155rm -f conftest*
a8aea176 4156
c45f211e
TT
4157fi
4158
a8aea176
NN
4159if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
4166/* end confdefs.h. */
4167#include <stdlib.h>
4168
4169_ACEOF
4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4172 :
c45f211e 4173else
a8aea176 4174 ac_cv_header_stdc=no
c45f211e 4175fi
a8aea176
NN
4176rm -f conftest*
4177
4178fi
4179
4180if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4183 :
4184else
4185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
4191#include <ctype.h>
4192#if ((' ' & 0x0FF) == 0x020)
4193# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195#else
4196# define ISLOWER(c) \
4197 (('a' <= (c) && (c) <= 'i') \
4198 || ('j' <= (c) && (c) <= 'r') \
4199 || ('s' <= (c) && (c) <= 'z'))
4200# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4201#endif
4202
4203#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204int
4205main ()
4206{
4207 int i;
4208 for (i = 0; i < 256; i++)
4209 if (XOR (islower (i), ISLOWER (i))
4210 || toupper (i) != TOUPPER (i))
4211 exit(2);
4212 exit (0);
4213}
4214_ACEOF
4215rm -f conftest$ac_exeext
4216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 :
4227else
4228 echo "$as_me: program exited with status $ac_status" >&5
4229echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232( exit $ac_status )
4233ac_cv_header_stdc=no
4234fi
4235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4236fi
4237fi
4238fi
4239echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4240echo "${ECHO_T}$ac_cv_header_stdc" >&6
4241if test $ac_cv_header_stdc = yes; then
4242
4243cat >>confdefs.h <<\_ACEOF
4244#define STDC_HEADERS 1
4245_ACEOF
4246
4247fi
4248
4249# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4250
4251
dfac8a13 4252
a8aea176
NN
4253
4254
4255
4256
4257
4258
4259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4260 inttypes.h stdint.h unistd.h
4261do
4262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263echo "$as_me:$LINENO: checking for $ac_header" >&5
4264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4265if eval "test \"\${$as_ac_Header+set}\" = set"; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 cat >conftest.$ac_ext <<_ACEOF
4269/* confdefs.h. */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h. */
4274$ac_includes_default
4275
4276#include <$ac_header>
4277_ACEOF
4278rm -f conftest.$ac_objext
4279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 eval "$as_ac_Header=yes"
4300else
4301 echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304eval "$as_ac_Header=no"
4305fi
4306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4307fi
4308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4310if test `eval echo '${'$as_ac_Header'}'` = yes; then
4311 cat >>confdefs.h <<_ACEOF
4312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4313_ACEOF
4314
4315fi
4316
4317done
4318
4319
4320
4321
4322for ac_header in stdlib.h unistd.h
4323do
4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo "$as_me:$LINENO: checking for $ac_header" >&5
4327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330fi
4331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333else
4334 # Is the header compilable?
4335echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343$ac_includes_default
4344#include <$ac_header>
4345_ACEOF
4346rm -f conftest.$ac_objext
4347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_header_compiler=yes
4368else
4369 echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372ac_header_compiler=no
4373fi
4374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4376echo "${ECHO_T}$ac_header_compiler" >&6
4377
4378# Is the header present?
4379echo "$as_me:$LINENO: checking $ac_header presence" >&5
4380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4381cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387#include <$ac_header>
4388_ACEOF
4389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4402 fi
4403else
4404 ac_cpp_err=yes
4405fi
4406if test -z "$ac_cpp_err"; then
4407 ac_header_preproc=yes
4408else
4409 echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_header_preproc=no
4413fi
4414rm -f conftest.err conftest.$ac_ext
4415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4416echo "${ECHO_T}$ac_header_preproc" >&6
4417
4418# So? What about this header?
4419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4420 yes:no: )
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4425 ac_header_preproc=yes
4426 ;;
4427 no:yes:* )
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4440 (
4441 cat <<\_ASBOX
4442## ------------------------------------------ ##
4443## Report this to the AC_PACKAGE_NAME lists. ##
4444## ------------------------------------------ ##
4445_ASBOX
4446 ) |
4447 sed "s/^/$as_me: WARNING: /" >&2
4448 ;;
4449esac
4450echo "$as_me:$LINENO: checking for $ac_header" >&5
4451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4452if eval "test \"\${$as_ac_Header+set}\" = set"; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455 eval "$as_ac_Header=\$ac_header_preproc"
4456fi
4457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459
4460fi
4461if test `eval echo '${'$as_ac_Header'}'` = yes; then
4462 cat >>confdefs.h <<_ACEOF
4463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4464_ACEOF
4465
4466fi
4467
4468done
4469
4470
4471for ac_func in getpagesize
4472do
4473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4474echo "$as_me:$LINENO: checking for $ac_func" >&5
4475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4476if eval "test \"\${$as_ac_var+set}\" = set"; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 if test x$gcc_no_link = xyes; then
4480 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4481echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4482 { (exit 1); exit 1; }; }
4483fi
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4492#define $ac_func innocuous_$ac_func
4493
4494/* System header to define __stub macros and hopefully few prototypes,
4495 which can conflict with char $ac_func (); below.
4496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4497 <limits.h> exists even on freestanding compilers. */
4498
4499#ifdef __STDC__
4500# include <limits.h>
4501#else
4502# include <assert.h>
4503#endif
4504
4505#undef $ac_func
4506
4507/* Override any gcc2 internal prototype to avoid an error. */
4508#ifdef __cplusplus
4509extern "C"
4510{
4511#endif
4512/* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4514char $ac_func ();
4515/* The GNU C library defines this for functions which it implements
4516 to always fail with ENOSYS. Some functions are actually named
4517 something starting with __ and the normal name is an alias. */
4518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4519choke me
4520#else
4521char (*f) () = $ac_func;
4522#endif
4523#ifdef __cplusplus
4524}
4525#endif
4526
4527int
4528main ()
4529{
4530return f != $ac_func;
4531 ;
4532 return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537 (eval $ac_link) 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest$ac_exeext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 eval "$as_ac_var=yes"
4557else
4558 echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561eval "$as_ac_var=no"
4562fi
4563rm -f conftest.err conftest.$ac_objext \
4564 conftest$ac_exeext conftest.$ac_ext
4565fi
4566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4568if test `eval echo '${'$as_ac_var'}'` = yes; then
4569 cat >>confdefs.h <<_ACEOF
4570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4571_ACEOF
4572
4573fi
4574done
4575
4576echo "$as_me:$LINENO: checking for working mmap" >&5
4577echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4578if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
4580else
4581 if test "$cross_compiling" = yes; then
4582 ac_cv_func_mmap_fixed_mapped=no
4583else
a8aea176
NN
4584 cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590$ac_includes_default
4591/* malloc might have been renamed as rpl_malloc. */
4592#undef malloc
dfac8a13
TT
4593
4594/* Thanks to Mike Haertel and Jim Avera for this test.
4595 Here is a matrix of mmap possibilities:
4596 mmap private not fixed
4597 mmap private fixed at somewhere currently unmapped
4598 mmap private fixed at somewhere already mapped
4599 mmap shared not fixed
4600 mmap shared fixed at somewhere currently unmapped
4601 mmap shared fixed at somewhere already mapped
4602 For private mappings, we should verify that changes cannot be read()
4603 back from the file, nor mmap's back from the file at a different
4604 address. (There have been systems where private was not correctly
4605 implemented like the infamous i386 svr4.0, and systems where the
a8aea176 4606 VM page cache was not coherent with the file system buffer cache
dfac8a13
TT
4607 like early versions of FreeBSD and possibly contemporary NetBSD.)
4608 For shared mappings, we should conversely verify that changes get
a8aea176 4609 propagated back to all the places they're supposed to be.
c45f211e 4610
dfac8a13
TT
4611 Grep wants private fixed already mapped.
4612 The main things grep needs to know about mmap are:
4613 * does it exist and is it safe to write into the mmap'd area
4614 * how to use it (BSD variants) */
a8aea176 4615
dfac8a13 4616#include <fcntl.h>
c45f211e 4617#include <sys/mman.h>
dfac8a13 4618
a8aea176
NN
4619#if !STDC_HEADERS && !HAVE_STDLIB_H
4620char *malloc ();
4621#endif
dfac8a13 4622
a8aea176
NN
4623/* This mess was copied from the GNU getpagesize.h. */
4624#if !HAVE_GETPAGESIZE
dfac8a13 4625/* Assume that all systems that can run configure have sys/param.h. */
a8aea176 4626# if !HAVE_SYS_PARAM_H
dfac8a13
TT
4627# define HAVE_SYS_PARAM_H 1
4628# endif
4629
4630# ifdef _SC_PAGESIZE
4631# define getpagesize() sysconf(_SC_PAGESIZE)
4632# else /* no _SC_PAGESIZE */
a8aea176 4633# if HAVE_SYS_PARAM_H
dfac8a13
TT
4634# include <sys/param.h>
4635# ifdef EXEC_PAGESIZE
4636# define getpagesize() EXEC_PAGESIZE
4637# else /* no EXEC_PAGESIZE */
4638# ifdef NBPG
4639# define getpagesize() NBPG * CLSIZE
4640# ifndef CLSIZE
4641# define CLSIZE 1
4642# endif /* no CLSIZE */
4643# else /* no NBPG */
4644# ifdef NBPC
4645# define getpagesize() NBPC
4646# else /* no NBPC */
4647# ifdef PAGESIZE
4648# define getpagesize() PAGESIZE
4649# endif /* PAGESIZE */
4650# endif /* no NBPC */
4651# endif /* no NBPG */
4652# endif /* no EXEC_PAGESIZE */
4653# else /* no HAVE_SYS_PARAM_H */
4654# define getpagesize() 8192 /* punt totally */
4655# endif /* no HAVE_SYS_PARAM_H */
4656# endif /* no _SC_PAGESIZE */
4657
4658#endif /* no HAVE_GETPAGESIZE */
4659
dfac8a13 4660int
a8aea176 4661main ()
dfac8a13 4662{
a8aea176
NN
4663 char *data, *data2, *data3;
4664 int i, pagesize;
4665 int fd;
4666
4667 pagesize = getpagesize ();
4668
4669 /* First, make a file with some known garbage in it. */
4670 data = (char *) malloc (pagesize);
4671 if (!data)
4672 exit (1);
4673 for (i = 0; i < pagesize; ++i)
4674 *(data + i) = rand ();
4675 umask (0);
4676 fd = creat ("conftest.mmap", 0600);
4677 if (fd < 0)
4678 exit (1);
4679 if (write (fd, data, pagesize) != pagesize)
4680 exit (1);
4681 close (fd);
4682
4683 /* Next, try to mmap the file at a fixed address which already has
4684 something else allocated at it. If we can, also make sure that
4685 we see the same garbage. */
4686 fd = open ("conftest.mmap", O_RDWR);
4687 if (fd < 0)
4688 exit (1);
4689 data2 = (char *) malloc (2 * pagesize);
4690 if (!data2)
4691 exit (1);
4692 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4693 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4694 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4695 exit (1);
4696 for (i = 0; i < pagesize; ++i)
4697 if (*(data + i) != *(data2 + i))
4698 exit (1);
4699
4700 /* Finally, make sure that changes to the mapped area do not
4701 percolate back to the file as seen by read(). (This is a bug on
4702 some variants of i386 svr4.0.) */
4703 for (i = 0; i < pagesize; ++i)
4704 *(data2 + i) = *(data2 + i) + 1;
4705 data3 = (char *) malloc (pagesize);
4706 if (!data3)
4707 exit (1);
4708 if (read (fd, data3, pagesize) != pagesize)
4709 exit (1);
4710 for (i = 0; i < pagesize; ++i)
4711 if (*(data + i) != *(data3 + i))
4712 exit (1);
4713 close (fd);
4714 exit (0);
c45f211e 4715}
a8aea176
NN
4716_ACEOF
4717rm -f conftest$ac_exeext
4718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719 (eval $ac_link) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
dfac8a13
TT
4728 ac_cv_func_mmap_fixed_mapped=yes
4729else
a8aea176
NN
4730 echo "$as_me: program exited with status $ac_status" >&5
4731echo "$as_me: failed program was:" >&5
4732sed 's/^/| /' conftest.$ac_ext >&5
4733
4734( exit $ac_status )
4735ac_cv_func_mmap_fixed_mapped=no
dfac8a13 4736fi
a8aea176 4737rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
dfac8a13 4738fi
dfac8a13 4739fi
a8aea176
NN
4740echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4741echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
dfac8a13 4742if test $ac_cv_func_mmap_fixed_mapped = yes; then
a8aea176
NN
4743
4744cat >>confdefs.h <<\_ACEOF
dfac8a13 4745#define HAVE_MMAP 1
a8aea176 4746_ACEOF
dfac8a13
TT
4747
4748fi
a8aea176 4749rm -f conftest.mmap
dfac8a13 4750
a8aea176
NN
4751fi
4752
4753
4754for ac_func in memcpy strerror
dfac8a13 4755do
a8aea176
NN
4756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4757echo "$as_me:$LINENO: checking for $ac_func" >&5
4758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4759if eval "test \"\${$as_ac_var+set}\" = set"; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762 if test x$gcc_no_link = xyes; then
4763 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4764echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4765 { (exit 1); exit 1; }; }
4766fi
4767cat >conftest.$ac_ext <<_ACEOF
4768/* confdefs.h. */
4769_ACEOF
4770cat confdefs.h >>conftest.$ac_ext
4771cat >>conftest.$ac_ext <<_ACEOF
4772/* end confdefs.h. */
4773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4775#define $ac_func innocuous_$ac_func
4776
dfac8a13 4777/* System header to define __stub macros and hopefully few prototypes,
a8aea176
NN
4778 which can conflict with char $ac_func (); below.
4779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4780 <limits.h> exists even on freestanding compilers. */
4781
4782#ifdef __STDC__
4783# include <limits.h>
4784#else
4785# include <assert.h>
4786#endif
dfac8a13 4787
a8aea176 4788#undef $ac_func
dfac8a13 4789
a8aea176
NN
4790/* Override any gcc2 internal prototype to avoid an error. */
4791#ifdef __cplusplus
4792extern "C"
4793{
4794#endif
4795/* We use char because int might match the return type of a gcc2
4796 builtin and then its argument prototype would still apply. */
4797char $ac_func ();
dfac8a13
TT
4798/* The GNU C library defines this for functions which it implements
4799 to always fail with ENOSYS. Some functions are actually named
4800 something starting with __ and the normal name is an alias. */
4801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4802choke me
4803#else
a8aea176
NN
4804char (*f) () = $ac_func;
4805#endif
4806#ifdef __cplusplus
4807}
dfac8a13
TT
4808#endif
4809
a8aea176
NN
4810int
4811main ()
4812{
4813return f != $ac_func;
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818rm -f conftest.$ac_objext conftest$ac_exeext
4819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4820 (eval $ac_link) 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; } &&
4833 { ac_try='test -s conftest$ac_exeext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 eval "$as_ac_var=yes"
dfac8a13 4840else
a8aea176
NN
4841 echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844eval "$as_ac_var=no"
dfac8a13 4845fi
a8aea176
NN
4846rm -f conftest.err conftest.$ac_objext \
4847 conftest$ac_exeext conftest.$ac_ext
dfac8a13 4848fi
a8aea176
NN
4849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4850echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4851if test `eval echo '${'$as_ac_var'}'` = yes; then
4852 cat >>confdefs.h <<_ACEOF
4853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4854_ACEOF
dfac8a13 4855
dfac8a13
TT
4856fi
4857done
4858
79a9a529
TT
4859
4860 if test "$with_system_zlib" = yes; then
a8aea176
NN
4861 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4862echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
4863if test "${ac_cv_lib_z_deflate+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
79a9a529 4865else
a8aea176 4866 ac_check_lib_save_LIBS=$LIBS
79a9a529 4867LIBS="-lz $LIBS"
a8aea176
NN
4868if test x$gcc_no_link = xyes; then
4869 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4870echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4871 { (exit 1); exit 1; }; }
4872fi
4873cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h. */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h. */
4879
79a9a529 4880/* Override any gcc2 internal prototype to avoid an error. */
a8aea176
NN
4881#ifdef __cplusplus
4882extern "C"
4883#endif
79a9a529 4884/* We use char because int might match the return type of a gcc2
a8aea176
NN
4885 builtin and then its argument prototype would still apply. */
4886char deflate ();
4887int
4888main ()
4889{
4890deflate ();
4891 ;
4892 return 0;
4893}
4894_ACEOF
4895rm -f conftest.$ac_objext conftest$ac_exeext
4896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest$ac_exeext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_cv_lib_z_deflate=yes
79a9a529 4917else
a8aea176
NN
4918 echo "$as_me: failed program was:" >&5
4919sed 's/^/| /' conftest.$ac_ext >&5
79a9a529 4920
a8aea176
NN
4921ac_cv_lib_z_deflate=no
4922fi
4923rm -f conftest.err conftest.$ac_objext \
4924 conftest$ac_exeext conftest.$ac_ext
4925LIBS=$ac_check_lib_save_LIBS
79a9a529 4926fi
a8aea176
NN
4927echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4928echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
4929if test $ac_cv_lib_z_deflate = yes; then
79a9a529
TT
4930 target_all=
4931else
a8aea176 4932 target_all=libzgcj.la
79a9a529
TT
4933fi
4934
4935 else
4936 target_all=libzgcj.la
4937 fi
4938fi
4939
4940
dfac8a13 4941
a8aea176
NN
4942
4943for ac_header in unistd.h
dfac8a13 4944do
a8aea176
NN
4945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4946if eval "test \"\${$as_ac_Header+set}\" = set"; then
4947 echo "$as_me:$LINENO: checking for $ac_header" >&5
4948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4949if eval "test \"\${$as_ac_Header+set}\" = set"; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951fi
4952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
dfac8a13 4954else
a8aea176
NN
4955 # Is the header compilable?
4956echo "$as_me:$LINENO: checking $ac_header usability" >&5
4957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4958cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h. */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h. */
4964$ac_includes_default
4965#include <$ac_header>
4966_ACEOF
4967rm -f conftest.$ac_objext
4968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4969 (eval $ac_compile) 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; } &&
4982 { ac_try='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_header_compiler=yes
4989else
4990 echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993ac_header_compiler=no
4994fi
4995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4997echo "${ECHO_T}$ac_header_compiler" >&6
4998
4999# Is the header present?
5000echo "$as_me:$LINENO: checking $ac_header presence" >&5
5001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5002cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
5008#include <$ac_header>
5009_ACEOF
5010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev/null; then
5018 if test -s conftest.err; then
5019 ac_cpp_err=$ac_c_preproc_warn_flag
5020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5021 else
5022 ac_cpp_err=
5023 fi
5024else
5025 ac_cpp_err=yes
dfac8a13 5026fi
a8aea176
NN
5027if test -z "$ac_cpp_err"; then
5028 ac_header_preproc=yes
5029else
5030 echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 ac_header_preproc=no
5034fi
5035rm -f conftest.err conftest.$ac_ext
5036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5037echo "${ECHO_T}$ac_header_preproc" >&6
5038
5039# So? What about this header?
5040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5041 yes:no: )
5042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5046 ac_header_preproc=yes
5047 ;;
5048 no:yes:* )
5049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5061 (
5062 cat <<\_ASBOX
5063## ------------------------------------------ ##
5064## Report this to the AC_PACKAGE_NAME lists. ##
5065## ------------------------------------------ ##
5066_ASBOX
5067 ) |
5068 sed "s/^/$as_me: WARNING: /" >&2
5069 ;;
5070esac
5071echo "$as_me:$LINENO: checking for $ac_header" >&5
5072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5073if eval "test \"\${$as_ac_Header+set}\" = set"; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 5075else
a8aea176 5076 eval "$as_ac_Header=\$ac_header_preproc"
dfac8a13 5077fi
a8aea176
NN
5078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5080
5081fi
5082if test `eval echo '${'$as_ac_Header'}'` = yes; then
5083 cat >>confdefs.h <<_ACEOF
5084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5085_ACEOF
5086
5087fi
5088
dfac8a13
TT
5089done
5090
5091
0ccf2c33
AO
5092if test -n "$with_cross_host" &&
5093 test x"$with_cross_host" != x"no"; then
5094 toolexecdir='$(exec_prefix)/$(target_alias)'
5095 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 5096else
0ccf2c33
AO
5097 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5098 toolexeclibdir='$(libdir)'
b48ed568 5099fi
905280ac
AO
5100if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
5101 multiosdir=/`$CC -print-multi-os-directory`
ff8b9ca8
AS
5102 case $multiosdir in
5103 /.) multiosdir= ;; # Avoid trailing /.
5104 esac
905280ac
AO
5105else
5106 multiosdir=
5107fi
5108toolexeclibdir=${toolexeclibdir}${multiosdir}
0ccf2c33
AO
5109
5110
5111
b48ed568 5112
e093c992
AG
5113
5114if test -n "$with_target_subdir"; then
5115 TARGET_LIBRARY_TRUE=
5116 TARGET_LIBRARY_FALSE='#'
5117else
5118 TARGET_LIBRARY_TRUE='#'
5119 TARGET_LIBRARY_FALSE=
5120fi
5121
dfac8a13
TT
5122if test "${multilib}" = "yes"; then
5123 multilib_arg="--enable-multilib"
5124else
5125 multilib_arg=
5126fi
5127
a8aea176
NN
5128 ac_config_files="$ac_config_files Makefile"
5129
5130
5131 ac_config_commands="$ac_config_commands default"
5132
5133
5134cat >confcache <<\_ACEOF
dfac8a13
TT
5135# This file is a shell script that caches the results of configure
5136# tests run on this system so they can be shared between configure
a8aea176
NN
5137# scripts and configure runs, see configure's option --config-cache.
5138# It is not useful on other systems. If it contains results you don't
5139# want to keep, you may remove or edit it.
dfac8a13 5140#
a8aea176
NN
5141# config.status only pays attention to the cache file if you give it
5142# the --recheck option to rerun configure.
dfac8a13 5143#
a8aea176
NN
5144# `ac_cv_env_foo' variables (set or unset) will be overridden when
5145# loading this file, other *unset* `ac_cv_foo' will be assigned the
5146# following values.
5147
5148_ACEOF
5149
dfac8a13
TT
5150# The following way of writing the cache mishandles newlines in values,
5151# but we know of no workaround that is simple, portable, and efficient.
5152# So, don't put newlines in cache variables' values.
5153# Ultrix sh set writes to stderr and can't be redirected directly,
5154# and sets the high bit in the cache file unless we assign to the vars.
a8aea176
NN
5155{
5156 (set) 2>&1 |
5157 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5158 *ac_space=\ *)
5159 # `set' does not quote correctly, so add quotes (double-quote
5160 # substitution turns \\\\ into \\, and sed turns \\ into \).
5161 sed -n \
5162 "s/'/'\\\\''/g;
5163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5164 ;;
5165 *)
5166 # `set' quotes correctly as required by POSIX, so do not add quotes.
5167 sed -n \
5168 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5169 ;;
5170 esac;
5171} |
5172 sed '
5173 t clear
5174 : clear
5175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5176 t end
5177 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5178 : end' >>confcache
5179if diff $cache_file confcache >/dev/null 2>&1; then :; else
dfac8a13 5180 if test -w $cache_file; then
a8aea176
NN
5181 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5182 cat confcache >$cache_file
dfac8a13
TT
5183 else
5184 echo "not updating unwritable cache $cache_file"
5185 fi
5186fi
5187rm -f confcache
5188
dfac8a13
TT
5189test "x$prefix" = xNONE && prefix=$ac_default_prefix
5190# Let make expand exec_prefix.
5191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5192
a8aea176
NN
5193# VPATH may cause trouble with some makes, so we remove $(srcdir),
5194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5195# trailing colons and then remove the whole line if VPATH becomes empty
5196# (actually we leave an empty line to preserve line numbers).
dfac8a13 5197if test "x$srcdir" = x.; then
a8aea176
NN
5198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5199s/:*\$(srcdir):*/:/;
5200s/:*\${srcdir}:*/:/;
5201s/:*@srcdir@:*/:/;
5202s/^\([^=]*=[ ]*\):*/\1/;
5203s/:*$//;
5204s/^[^=]*=[ ]*$//;
5205}'
c45f211e
TT
5206fi
5207
dfac8a13
TT
5208# Transform confdefs.h into DEFS.
5209# Protect against shell expansion while executing Makefile rules.
5210# Protect against Makefile macro expansion.
a8aea176
NN
5211#
5212# If the first sed substitution is executed (which looks for macros that
5213# take arguments), then we branch to the quote section. Otherwise,
5214# look for a macro that doesn't take arguments.
5215cat >confdef2opt.sed <<\_ACEOF
5216t clear
5217: clear
5218s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5219t quote
5220s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5221t quote
5222d
5223: quote
5224s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5225s,\[,\\&,g
5226s,\],\\&,g
5227s,\$,$$,g
5228p
5229_ACEOF
5230# We use echo to avoid assuming a particular line-breaking character.
5231# The extra dot is to prevent the shell from consuming trailing
5232# line-breaks from the sub-command output. A line-break within
5233# single-quotes doesn't work because, if this script is created in a
5234# platform that uses two characters for line-breaks (e.g., DOS), tr
5235# would break.
5236ac_LF_and_DOT=`echo; echo .`
5237DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5238rm -f confdef2opt.sed
5239
5240
5241ac_libobjs=
5242ac_ltlibobjs=
5243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5244 # 1. Remove the extension, and $U if already installed.
5245 ac_i=`echo "$ac_i" |
5246 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5247 # 2. Add them.
5248 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5249 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5250done
5251LIBOBJS=$ac_libobjs
dfac8a13 5252
a8aea176 5253LTLIBOBJS=$ac_ltlibobjs
dfac8a13 5254
dfac8a13 5255
a8aea176
NN
5256
5257: ${CONFIG_STATUS=./config.status}
5258ac_clean_files_save=$ac_clean_files
5259ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5260{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5261echo "$as_me: creating $CONFIG_STATUS" >&6;}
5262cat >$CONFIG_STATUS <<_ACEOF
5263#! $SHELL
5264# Generated by $as_me.
dfac8a13 5265# Run this file to recreate the current configuration.
dfac8a13 5266# Compiler output produced by configure, useful for debugging
a8aea176
NN
5267# configure, is in config.log if it exists.
5268
5269debug=false
5270ac_cs_recheck=false
5271ac_cs_silent=false
5272SHELL=\${CONFIG_SHELL-$SHELL}
5273_ACEOF
5274
5275cat >>$CONFIG_STATUS <<\_ACEOF
5276## --------------------- ##
5277## M4sh Initialization. ##
5278## --------------------- ##
5279
5280# Be Bourne compatible
5281if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5282 emulate sh
5283 NULLCMD=:
5284 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5285 # is contrary to our usage. Disable this feature.
5286 alias -g '${1+"$@"}'='"$@"'
5287elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5288 set -o posix
5289fi
5290DUALCASE=1; export DUALCASE # for MKS sh
5291
5292# Support unset when possible.
5293if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5294 as_unset=unset
5295else
5296 as_unset=false
5297fi
dfac8a13 5298
a8aea176
NN
5299
5300# Work around bugs in pre-3.0 UWIN ksh.
5301$as_unset ENV MAIL MAILPATH
5302PS1='$ '
5303PS2='> '
5304PS4='+ '
5305
5306# NLS nuisances.
5307for as_var in \
5308 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5309 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5310 LC_TELEPHONE LC_TIME
dfac8a13 5311do
a8aea176
NN
5312 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5313 eval $as_var=C; export $as_var
5314 else
5315 $as_unset $as_var
5316 fi
dfac8a13
TT
5317done
5318
a8aea176
NN
5319# Required to use basename.
5320if expr a : '\(a\)' >/dev/null 2>&1; then
5321 as_expr=expr
5322else
5323 as_expr=false
5324fi
dfac8a13 5325
a8aea176
NN
5326if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5327 as_basename=basename
5328else
5329 as_basename=false
5330fi
5331
5332
5333# Name of the executable.
5334as_me=`$as_basename "$0" ||
5335$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5336 X"$0" : 'X\(//\)$' \| \
5337 X"$0" : 'X\(/\)$' \| \
5338 . : '\(.\)' 2>/dev/null ||
5339echo X/"$0" |
5340 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5341 /^X\/\(\/\/\)$/{ s//\1/; q; }
5342 /^X\/\(\/\).*/{ s//\1/; q; }
5343 s/.*/./; q'`
5344
5345
5346# PATH needs CR, and LINENO needs CR and PATH.
5347# Avoid depending upon Character Ranges.
5348as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5349as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5350as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5351as_cr_digits='0123456789'
5352as_cr_alnum=$as_cr_Letters$as_cr_digits
5353
5354# The user is always right.
5355if test "${PATH_SEPARATOR+set}" != set; then
5356 echo "#! /bin/sh" >conf$$.sh
5357 echo "exit 0" >>conf$$.sh
5358 chmod +x conf$$.sh
5359 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5360 PATH_SEPARATOR=';'
5361 else
5362 PATH_SEPARATOR=:
5363 fi
5364 rm -f conf$$.sh
5365fi
dfac8a13 5366
dfac8a13 5367
a8aea176
NN
5368 as_lineno_1=$LINENO
5369 as_lineno_2=$LINENO
5370 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5371 test "x$as_lineno_1" != "x$as_lineno_2" &&
5372 test "x$as_lineno_3" = "x$as_lineno_2" || {
5373 # Find who we are. Look in the path if we contain no path at all
5374 # relative or not.
5375 case $0 in
5376 *[\\/]* ) as_myself=$0 ;;
5377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378for as_dir in $PATH
5379do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5383done
dfac8a13 5384
a8aea176
NN
5385 ;;
5386 esac
5387 # We did not find ourselves, most probably we were run as `sh COMMAND'
5388 # in which case we are not to be found in the path.
5389 if test "x$as_myself" = x; then
5390 as_myself=$0
dfac8a13 5391 fi
a8aea176
NN
5392 if test ! -f "$as_myself"; then
5393 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5394echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5395 { (exit 1); exit 1; }; }
dfac8a13 5396 fi
a8aea176
NN
5397 case $CONFIG_SHELL in
5398 '')
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5401do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for as_base in sh bash ksh sh5; do
5405 case $as_dir in
5406 /*)
5407 if ("$as_dir/$as_base" -c '
5408 as_lineno_1=$LINENO
5409 as_lineno_2=$LINENO
5410 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5411 test "x$as_lineno_1" != "x$as_lineno_2" &&
5412 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5413 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5414 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5415 CONFIG_SHELL=$as_dir/$as_base
5416 export CONFIG_SHELL
5417 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5418 fi;;
5419 esac
5420 done
dfac8a13 5421done
a8aea176
NN
5422;;
5423 esac
dfac8a13 5424
a8aea176
NN
5425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5426 # uniformly replaced by the line number. The first 'sed' inserts a
5427 # line-number line before each line; the second 'sed' does the real
5428 # work. The second script uses 'N' to pair each line-number line
5429 # with the numbered line, and appends trailing '-' during
5430 # substitution so that $LINENO is not a special case at line end.
5431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5432 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5433 sed '=' <$as_myself |
5434 sed '
5435 N
5436 s,$,-,
5437 : loop
5438 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5439 t loop
5440 s,-$,,
5441 s,^['$as_cr_digits']*\n,,
5442 ' >$as_me.lineno &&
5443 chmod +x $as_me.lineno ||
5444 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5445echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5446 { (exit 1); exit 1; }; }
5447
5448 # Don't try to exec as it changes $[0], causing all sort of problems
5449 # (the dirname of $[0] is not the place where we might find the
5450 # original and so on. Autoconf is especially sensible to this).
5451 . ./$as_me.lineno
5452 # Exit status is that of the last command.
5453 exit
5454}
dfac8a13 5455
dfac8a13 5456
a8aea176
NN
5457case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5458 *c*,-n*) ECHO_N= ECHO_C='
5459' ECHO_T=' ' ;;
5460 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5461 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5462esac
dfac8a13 5463
a8aea176
NN
5464if expr a : '\(a\)' >/dev/null 2>&1; then
5465 as_expr=expr
5466else
5467 as_expr=false
5468fi
5469
5470rm -f conf$$ conf$$.exe conf$$.file
5471echo >conf$$.file
5472if ln -s conf$$.file conf$$ 2>/dev/null; then
5473 # We could just check for DJGPP; but this test a) works b) is more generic
5474 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5475 if test -f conf$$.exe; then
5476 # Don't use ln at all; we don't have any links
5477 as_ln_s='cp -p'
dfac8a13 5478 else
a8aea176 5479 as_ln_s='ln -s'
dfac8a13 5480 fi
a8aea176
NN
5481elif ln conf$$.file conf$$ 2>/dev/null; then
5482 as_ln_s=ln
5483else
5484 as_ln_s='cp -p'
5485fi
5486rm -f conf$$ conf$$.exe conf$$.file
dfac8a13 5487
a8aea176
NN
5488if mkdir -p . 2>/dev/null; then
5489 as_mkdir_p=:
5490else
5491 test -d ./-p && rmdir ./-p
5492 as_mkdir_p=false
5493fi
5494
5495as_executable_p="test -f"
dfac8a13 5496
a8aea176
NN
5497# Sed expression to map a string onto a valid CPP name.
5498as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5499
5500# Sed expression to map a string onto a valid variable name.
5501as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5502
5503
5504# IFS
5505# We need space, tab and new line, in precisely that order.
5506as_nl='
5507'
5508IFS=" $as_nl"
5509
5510# CDPATH.
5511$as_unset CDPATH
5512
5513exec 6>&1
5514
5515# Open the log real soon, to keep \$[0] and so on meaningful, and to
5516# report actual input values of CONFIG_FILES etc. instead of their
5517# values after options handling. Logging --version etc. is OK.
5518exec 5>>config.log
5519{
5520 echo
5521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5522## Running $as_me. ##
5523_ASBOX
5524} >&5
5525cat >&5 <<_CSEOF
5526
5527This file was extended by $as_me, which was
5528generated by GNU Autoconf 2.59. Invocation command line was
5529
5530 CONFIG_FILES = $CONFIG_FILES
5531 CONFIG_HEADERS = $CONFIG_HEADERS
5532 CONFIG_LINKS = $CONFIG_LINKS
5533 CONFIG_COMMANDS = $CONFIG_COMMANDS
5534 $ $0 $@
5535
5536_CSEOF
5537echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5538echo >&5
5539_ACEOF
5540
5541# Files that config.status was made for.
5542if test -n "$ac_config_files"; then
5543 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5544fi
5545
5546if test -n "$ac_config_headers"; then
5547 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5548fi
5549
5550if test -n "$ac_config_links"; then
5551 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5552fi
5553
5554if test -n "$ac_config_commands"; then
5555 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5556fi
5557
5558cat >>$CONFIG_STATUS <<\_ACEOF
5559
5560ac_cs_usage="\
5561\`$as_me' instantiates files from templates according to the
5562current configuration.
5563
5564Usage: $0 [OPTIONS] [FILE]...
5565
5566 -h, --help print this help, then exit
5567 -V, --version print version number, then exit
5568 -q, --quiet do not print progress messages
5569 -d, --debug don't remove temporary files
5570 --recheck update $as_me by reconfiguring in the same conditions
5571 --file=FILE[:TEMPLATE]
5572 instantiate the configuration file FILE
5573
5574Configuration files:
5575$config_files
5576
5577Configuration commands:
5578$config_commands
5579
5580Report bugs to <bug-autoconf@gnu.org>."
5581_ACEOF
5582
5583cat >>$CONFIG_STATUS <<_ACEOF
5584ac_cs_version="\\
5585config.status
5586configured by $0, generated by GNU Autoconf 2.59,
5587 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5588
5589Copyright (C) 2003 Free Software Foundation, Inc.
5590This config.status script is free software; the Free Software Foundation
5591gives unlimited permission to copy, distribute and modify it."
5592srcdir=$srcdir
5593INSTALL="$INSTALL"
5594_ACEOF
5595
5596cat >>$CONFIG_STATUS <<\_ACEOF
5597# If no file are specified by the user, then we need to provide default
5598# value. By we need to know if files were specified by the user.
5599ac_need_defaults=:
5600while test $# != 0
5601do
5602 case $1 in
5603 --*=*)
5604 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5605 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5606 ac_shift=:
5607 ;;
5608 -*)
5609 ac_option=$1
5610 ac_optarg=$2
5611 ac_shift=shift
5612 ;;
5613 *) # This is not an option, so the user has probably given explicit
5614 # arguments.
5615 ac_option=$1
5616 ac_need_defaults=false;;
dfac8a13
TT
5617 esac
5618
a8aea176
NN
5619 case $ac_option in
5620 # Handling of the options.
5621_ACEOF
5622cat >>$CONFIG_STATUS <<\_ACEOF
5623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5624 ac_cs_recheck=: ;;
5625 --version | --vers* | -V )
5626 echo "$ac_cs_version"; exit 0 ;;
5627 --he | --h)
5628 # Conflict between --help and --header
5629 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5630Try \`$0 --help' for more information." >&5
5631echo "$as_me: error: ambiguous option: $1
5632Try \`$0 --help' for more information." >&2;}
5633 { (exit 1); exit 1; }; };;
5634 --help | --hel | -h )
5635 echo "$ac_cs_usage"; exit 0 ;;
5636 --debug | --d* | -d )
5637 debug=: ;;
5638 --file | --fil | --fi | --f )
5639 $ac_shift
5640 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5641 ac_need_defaults=false;;
5642 --header | --heade | --head | --hea )
5643 $ac_shift
5644 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5645 ac_need_defaults=false;;
5646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5648 ac_cs_silent=: ;;
5649
5650 # This is an error.
5651 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5652Try \`$0 --help' for more information." >&5
5653echo "$as_me: error: unrecognized option: $1
5654Try \`$0 --help' for more information." >&2;}
5655 { (exit 1); exit 1; }; } ;;
5656
5657 *) ac_config_targets="$ac_config_targets $1" ;;
5658
dfac8a13 5659 esac
a8aea176
NN
5660 shift
5661done
dfac8a13 5662
a8aea176
NN
5663ac_configure_extra_args=
5664
5665if $ac_cs_silent; then
5666 exec 6>/dev/null
5667 ac_configure_extra_args="$ac_configure_extra_args --silent"
5668fi
5669
5670_ACEOF
5671cat >>$CONFIG_STATUS <<_ACEOF
5672if \$ac_cs_recheck; then
5673 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5674 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5675fi
5676
5677_ACEOF
5678
5679cat >>$CONFIG_STATUS <<_ACEOF
5680#
5681# INIT-COMMANDS section.
5682#
dfac8a13 5683
dfac8a13
TT
5684srcdir=${srcdir}
5685host=${host}
5686target=${target}
5687with_multisubdir=${with_multisubdir}
5688ac_configure_args="${multilib_arg} ${ac_configure_args}"
5689CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5690zlib_basedir=${zlib_basedir}
5691CC="${CC}"
5692CXX="${CXX}"
3343fdd2 5693ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
dfac8a13 5694
a8aea176
NN
5695
5696_ACEOF
5697
5698
5699
5700cat >>$CONFIG_STATUS <<\_ACEOF
5701for ac_config_target in $ac_config_targets
5702do
5703 case "$ac_config_target" in
5704 # Handling of arguments.
5705 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5706 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5707 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5708echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5709 { (exit 1); exit 1; }; };;
5710 esac
5711done
5712
5713# If the user did not use the arguments to specify the items to instantiate,
5714# then the envvar interface is used. Set only those that are not.
5715# We use the long form for the default assignment because of an extremely
5716# bizarre bug on SunOS 4.1.3.
5717if $ac_need_defaults; then
5718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5719 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5720fi
5721
5722# Have a temporary directory for convenience. Make it in the build tree
5723# simply because there is no reason to put it here, and in addition,
5724# creating and moving files from /tmp can sometimes cause problems.
5725# Create a temporary directory, and hook for its removal unless debugging.
5726$debug ||
5727{
5728 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5729 trap '{ (exit 1); exit 1; }' 1 2 13 15
5730}
5731
5732# Create a (secure) tmp directory for tmp files.
5733
5734{
5735 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5736 test -n "$tmp" && test -d "$tmp"
5737} ||
5738{
5739 tmp=./confstat$$-$RANDOM
5740 (umask 077 && mkdir $tmp)
5741} ||
5742{
5743 echo "$me: cannot create a temporary directory in ." >&2
5744 { (exit 1); exit 1; }
5745}
5746
5747_ACEOF
5748
5749cat >>$CONFIG_STATUS <<_ACEOF
5750
5751#
5752# CONFIG_FILES section.
5753#
5754
5755# No need to generate the scripts if there are no CONFIG_FILES.
5756# This happens for instance when ./config.status config.h
5757if test -n "\$CONFIG_FILES"; then
5758 # Protect against being on the right side of a sed subst in config.status.
5759 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5760 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5761s,@SHELL@,$SHELL,;t t
5762s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5763s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5764s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5765s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5766s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5767s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5768s,@exec_prefix@,$exec_prefix,;t t
5769s,@prefix@,$prefix,;t t
5770s,@program_transform_name@,$program_transform_name,;t t
5771s,@bindir@,$bindir,;t t
5772s,@sbindir@,$sbindir,;t t
5773s,@libexecdir@,$libexecdir,;t t
5774s,@datadir@,$datadir,;t t
5775s,@sysconfdir@,$sysconfdir,;t t
5776s,@sharedstatedir@,$sharedstatedir,;t t
5777s,@localstatedir@,$localstatedir,;t t
5778s,@libdir@,$libdir,;t t
5779s,@includedir@,$includedir,;t t
5780s,@oldincludedir@,$oldincludedir,;t t
5781s,@infodir@,$infodir,;t t
5782s,@mandir@,$mandir,;t t
5783s,@build_alias@,$build_alias,;t t
5784s,@host_alias@,$host_alias,;t t
5785s,@target_alias@,$target_alias,;t t
5786s,@DEFS@,$DEFS,;t t
5787s,@ECHO_C@,$ECHO_C,;t t
5788s,@ECHO_N@,$ECHO_N,;t t
5789s,@ECHO_T@,$ECHO_T,;t t
5790s,@LIBS@,$LIBS,;t t
5791s,@zlib_basedir@,$zlib_basedir,;t t
5792s,@build@,$build,;t t
5793s,@build_cpu@,$build_cpu,;t t
5794s,@build_vendor@,$build_vendor,;t t
5795s,@build_os@,$build_os,;t t
5796s,@host@,$host,;t t
5797s,@host_cpu@,$host_cpu,;t t
5798s,@host_vendor@,$host_vendor,;t t
5799s,@host_os@,$host_os,;t t
5800s,@target@,$target,;t t
5801s,@target_cpu@,$target_cpu,;t t
5802s,@target_vendor@,$target_vendor,;t t
5803s,@target_os@,$target_os,;t t
5804s,@mkinstalldirs@,$mkinstalldirs,;t t
5805s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5806s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5807s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5808s,@PACKAGE@,$PACKAGE,;t t
5809s,@VERSION@,$VERSION,;t t
5810s,@ACLOCAL@,$ACLOCAL,;t t
5811s,@AUTOCONF@,$AUTOCONF,;t t
5812s,@AUTOMAKE@,$AUTOMAKE,;t t
5813s,@AUTOHEADER@,$AUTOHEADER,;t t
5814s,@MAKEINFO@,$MAKEINFO,;t t
5815s,@SET_MAKE@,$SET_MAKE,;t t
5816s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5817s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5818s,@MAINT@,$MAINT,;t t
5819s,@COMPPATH@,$COMPPATH,;t t
5820s,@CC@,$CC,;t t
5821s,@CFLAGS@,$CFLAGS,;t t
5822s,@LDFLAGS@,$LDFLAGS,;t t
5823s,@CPPFLAGS@,$CPPFLAGS,;t t
5824s,@ac_ct_CC@,$ac_ct_CC,;t t
5825s,@EXEEXT@,$EXEEXT,;t t
5826s,@OBJEXT@,$OBJEXT,;t t
5827s,@LN_S@,$LN_S,;t t
5828s,@RANLIB@,$RANLIB,;t t
5829s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5830s,@STRIP@,$STRIP,;t t
5831s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5832s,@LIBTOOL@,$LIBTOOL,;t t
5833s,@CPP@,$CPP,;t t
5834s,@EGREP@,$EGREP,;t t
5835s,@target_all@,$target_all,;t t
5836s,@toolexecdir@,$toolexecdir,;t t
5837s,@toolexeclibdir@,$toolexeclibdir,;t t
5838s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
5839s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
5840s,@LIBOBJS@,$LIBOBJS,;t t
5841s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5842CEOF
5843
5844_ACEOF
5845
5846 cat >>$CONFIG_STATUS <<\_ACEOF
5847 # Split the substitutions into bite-sized pieces for seds with
5848 # small command number limits, like on Digital OSF/1 and HP-UX.
5849 ac_max_sed_lines=48
5850 ac_sed_frag=1 # Number of current file.
5851 ac_beg=1 # First line for current file.
5852 ac_end=$ac_max_sed_lines # Line after last line for current file.
5853 ac_more_lines=:
5854 ac_sed_cmds=
5855 while $ac_more_lines; do
5856 if test $ac_beg -gt 1; then
5857 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5858 else
5859 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5860 fi
5861 if test ! -s $tmp/subs.frag; then
5862 ac_more_lines=false
5863 else
5864 # The purpose of the label and of the branching condition is to
5865 # speed up the sed processing (if there are no `@' at all, there
5866 # is no need to browse any of the substitutions).
5867 # These are the two extra sed commands mentioned above.
5868 (echo ':t
5869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5870 if test -z "$ac_sed_cmds"; then
5871 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5872 else
5873 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5874 fi
5875 ac_sed_frag=`expr $ac_sed_frag + 1`
5876 ac_beg=$ac_end
5877 ac_end=`expr $ac_end + $ac_max_sed_lines`
5878 fi
5879 done
5880 if test -z "$ac_sed_cmds"; then
5881 ac_sed_cmds=cat
5882 fi
5883fi # test -n "$CONFIG_FILES"
5884
5885_ACEOF
5886cat >>$CONFIG_STATUS <<\_ACEOF
5887for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5888 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5889 case $ac_file in
5890 - | *:- | *:-:* ) # input from stdin
5891 cat >$tmp/stdin
5892 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5893 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5894 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5896 * ) ac_file_in=$ac_file.in ;;
5897 esac
5898
5899 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5900 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5902 X"$ac_file" : 'X\(//\)[^/]' \| \
5903 X"$ac_file" : 'X\(//\)$' \| \
5904 X"$ac_file" : 'X\(/\)' \| \
5905 . : '\(.\)' 2>/dev/null ||
5906echo X"$ac_file" |
5907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5909 /^X\(\/\/\)$/{ s//\1/; q; }
5910 /^X\(\/\).*/{ s//\1/; q; }
5911 s/.*/./; q'`
5912 { if $as_mkdir_p; then
5913 mkdir -p "$ac_dir"
5914 else
5915 as_dir="$ac_dir"
5916 as_dirs=
5917 while test ! -d "$as_dir"; do
5918 as_dirs="$as_dir $as_dirs"
5919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5921 X"$as_dir" : 'X\(//\)[^/]' \| \
5922 X"$as_dir" : 'X\(//\)$' \| \
5923 X"$as_dir" : 'X\(/\)' \| \
5924 . : '\(.\)' 2>/dev/null ||
5925echo X"$as_dir" |
5926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5928 /^X\(\/\/\)$/{ s//\1/; q; }
5929 /^X\(\/\).*/{ s//\1/; q; }
5930 s/.*/./; q'`
5931 done
5932 test ! -n "$as_dirs" || mkdir $as_dirs
5933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5934echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5935 { (exit 1); exit 1; }; }; }
5936
5937 ac_builddir=.
5938
5939if test "$ac_dir" != .; then
5940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5941 # A "../" for each directory in $ac_dir_suffix.
5942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5943else
5944 ac_dir_suffix= ac_top_builddir=
5945fi
5946
5947case $srcdir in
5948 .) # No --srcdir option. We are building in place.
5949 ac_srcdir=.
5950 if test -z "$ac_top_builddir"; then
5951 ac_top_srcdir=.
5952 else
5953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5954 fi ;;
5955 [\\/]* | ?:[\\/]* ) # Absolute path.
5956 ac_srcdir=$srcdir$ac_dir_suffix;
5957 ac_top_srcdir=$srcdir ;;
5958 *) # Relative path.
5959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5961esac
5962
5963# Do not use `cd foo && pwd` to compute absolute paths, because
5964# the directories may not exist.
5965case `pwd` in
5966.) ac_abs_builddir="$ac_dir";;
5967*)
5968 case "$ac_dir" in
5969 .) ac_abs_builddir=`pwd`;;
5970 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5971 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5972 esac;;
5973esac
5974case $ac_abs_builddir in
5975.) ac_abs_top_builddir=${ac_top_builddir}.;;
5976*)
5977 case ${ac_top_builddir}. in
5978 .) ac_abs_top_builddir=$ac_abs_builddir;;
5979 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5980 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5981 esac;;
5982esac
5983case $ac_abs_builddir in
5984.) ac_abs_srcdir=$ac_srcdir;;
5985*)
5986 case $ac_srcdir in
5987 .) ac_abs_srcdir=$ac_abs_builddir;;
5988 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5989 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5990 esac;;
5991esac
5992case $ac_abs_builddir in
5993.) ac_abs_top_srcdir=$ac_top_srcdir;;
5994*)
5995 case $ac_top_srcdir in
5996 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5997 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5998 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5999 esac;;
6000esac
6001
6002
6003 case $INSTALL in
6004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6005 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6006 esac
6007
6008 # Let's still pretend it is `configure' which instantiates (i.e., don't
6009 # use $as_me), people would be surprised to read:
6010 # /* config.h. Generated by config.status. */
6011 if test x"$ac_file" = x-; then
6012 configure_input=
6013 else
6014 configure_input="$ac_file. "
6015 fi
6016 configure_input=$configure_input"Generated from `echo $ac_file_in |
6017 sed 's,.*/,,'` by configure."
6018
6019 # First look for the input files in the build tree, otherwise in the
6020 # src tree.
6021 ac_file_inputs=`IFS=:
6022 for f in $ac_file_in; do
6023 case $f in
6024 -) echo $tmp/stdin ;;
6025 [\\/$]*)
6026 # Absolute (can't be DOS-style, as IFS=:)
6027 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6028echo "$as_me: error: cannot find input file: $f" >&2;}
6029 { (exit 1); exit 1; }; }
6030 echo "$f";;
6031 *) # Relative
6032 if test -f "$f"; then
6033 # Build tree
6034 echo "$f"
6035 elif test -f "$srcdir/$f"; then
6036 # Source tree
6037 echo "$srcdir/$f"
6038 else
6039 # /dev/null tree
6040 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6041echo "$as_me: error: cannot find input file: $f" >&2;}
6042 { (exit 1); exit 1; }; }
6043 fi;;
6044 esac
6045 done` || { (exit 1); exit 1; }
6046
6047 if test x"$ac_file" != x-; then
6048 { echo "$as_me:$LINENO: creating $ac_file" >&5
6049echo "$as_me: creating $ac_file" >&6;}
6050 rm -f "$ac_file"
6051 fi
6052_ACEOF
6053cat >>$CONFIG_STATUS <<_ACEOF
6054 sed "$ac_vpsub
6055$extrasub
6056_ACEOF
6057cat >>$CONFIG_STATUS <<\_ACEOF
6058:t
6059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6060s,@configure_input@,$configure_input,;t t
6061s,@srcdir@,$ac_srcdir,;t t
6062s,@abs_srcdir@,$ac_abs_srcdir,;t t
6063s,@top_srcdir@,$ac_top_srcdir,;t t
6064s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6065s,@builddir@,$ac_builddir,;t t
6066s,@abs_builddir@,$ac_abs_builddir,;t t
6067s,@top_builddir@,$ac_top_builddir,;t t
6068s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6069s,@INSTALL@,$ac_INSTALL,;t t
6070" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6071 rm -f $tmp/stdin
6072 if test x"$ac_file" != x-; then
6073 mv $tmp/out $ac_file
6074 else
6075 cat $tmp/out
6076 rm -f $tmp/out
6077 fi
6078
6079done
6080_ACEOF
6081cat >>$CONFIG_STATUS <<\_ACEOF
6082
6083#
6084# CONFIG_COMMANDS section.
6085#
6086for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6087 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6088 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6089 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6090$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6091 X"$ac_dest" : 'X\(//\)[^/]' \| \
6092 X"$ac_dest" : 'X\(//\)$' \| \
6093 X"$ac_dest" : 'X\(/\)' \| \
6094 . : '\(.\)' 2>/dev/null ||
6095echo X"$ac_dest" |
6096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6098 /^X\(\/\/\)$/{ s//\1/; q; }
6099 /^X\(\/\).*/{ s//\1/; q; }
6100 s/.*/./; q'`
6101 { if $as_mkdir_p; then
6102 mkdir -p "$ac_dir"
6103 else
6104 as_dir="$ac_dir"
6105 as_dirs=
6106 while test ! -d "$as_dir"; do
6107 as_dirs="$as_dir $as_dirs"
6108 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6109$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6110 X"$as_dir" : 'X\(//\)[^/]' \| \
6111 X"$as_dir" : 'X\(//\)$' \| \
6112 X"$as_dir" : 'X\(/\)' \| \
6113 . : '\(.\)' 2>/dev/null ||
6114echo X"$as_dir" |
6115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6117 /^X\(\/\/\)$/{ s//\1/; q; }
6118 /^X\(\/\).*/{ s//\1/; q; }
6119 s/.*/./; q'`
6120 done
6121 test ! -n "$as_dirs" || mkdir $as_dirs
6122 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6123echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6124 { (exit 1); exit 1; }; }; }
6125
6126 ac_builddir=.
6127
6128if test "$ac_dir" != .; then
6129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6130 # A "../" for each directory in $ac_dir_suffix.
6131 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6132else
6133 ac_dir_suffix= ac_top_builddir=
6134fi
6135
6136case $srcdir in
6137 .) # No --srcdir option. We are building in place.
6138 ac_srcdir=.
6139 if test -z "$ac_top_builddir"; then
6140 ac_top_srcdir=.
6141 else
6142 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6143 fi ;;
6144 [\\/]* | ?:[\\/]* ) # Absolute path.
6145 ac_srcdir=$srcdir$ac_dir_suffix;
6146 ac_top_srcdir=$srcdir ;;
6147 *) # Relative path.
6148 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6149 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6150esac
6151
6152# Do not use `cd foo && pwd` to compute absolute paths, because
6153# the directories may not exist.
6154case `pwd` in
6155.) ac_abs_builddir="$ac_dir";;
6156*)
6157 case "$ac_dir" in
6158 .) ac_abs_builddir=`pwd`;;
6159 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6160 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6161 esac;;
6162esac
6163case $ac_abs_builddir in
6164.) ac_abs_top_builddir=${ac_top_builddir}.;;
6165*)
6166 case ${ac_top_builddir}. in
6167 .) ac_abs_top_builddir=$ac_abs_builddir;;
6168 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6169 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6170 esac;;
6171esac
6172case $ac_abs_builddir in
6173.) ac_abs_srcdir=$ac_srcdir;;
6174*)
6175 case $ac_srcdir in
6176 .) ac_abs_srcdir=$ac_abs_builddir;;
6177 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6178 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6179 esac;;
6180esac
6181case $ac_abs_builddir in
6182.) ac_abs_top_srcdir=$ac_top_srcdir;;
6183*)
6184 case $ac_top_srcdir in
6185 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6186 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6187 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6188 esac;;
6189esac
6190
6191
6192 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6193echo "$as_me: executing $ac_dest commands" >&6;}
6194 case $ac_dest in
6195 default ) if test -n "$CONFIG_FILES"; then
6706f116 6196 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
dfac8a13 6197 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
a8aea176
NN
6198fi ;;
6199 esac
6200done
6201_ACEOF
6202
6203cat >>$CONFIG_STATUS <<\_ACEOF
6204
6205{ (exit 0); exit 0; }
6206_ACEOF
dfac8a13 6207chmod +x $CONFIG_STATUS
a8aea176
NN
6208ac_clean_files=$ac_clean_files_save
6209
6210
6211# configure is writing to config.log, and then calls config.status.
6212# config.status does its own redirection, appending to config.log.
6213# Unfortunately, on DOS this fails, as config.log is still kept open
6214# by configure, so config.status won't be able to write to it; its
6215# output is simply discarded. So we exec the FD to /dev/null,
6216# effectively closing config.log, so it can be properly (re)opened and
6217# appended to by config.status. When coming back to configure, we
6218# need to make the FD available again.
6219if test "$no_create" != yes; then
6220 ac_cs_success=:
6221 ac_config_status_args=
6222 test "$silent" = yes &&
6223 ac_config_status_args="$ac_config_status_args --quiet"
6224 exec 5>/dev/null
6225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6226 exec 5>>config.log
6227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6228 # would make configure fail if this is the last instruction.
6229 $ac_cs_success || { (exit 1); exit 1; }
6230fi
c45f211e 6231