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