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