]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
aclocal.m4 (glibcpp_toolexeclibdir): Instead of $(MULTISUBDIR)...
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13
TT
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
c45f211e 6#
dfac8a13
TT
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
e093c992
AG
14ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
dfac8a13 17ac_help="$ac_help
3ef1cea8
RO
18 --with-target-subdir=SUBDIR
19 configuring in a subdirectory"
dfac8a13 20ac_help="$ac_help
3ef1cea8 21 --with-cross-host=HOST configuring with a cross compiler"
dfac8a13 22ac_help="$ac_help
3ef1cea8 23 --enable-multilib build many library versions (default)"
79a9a529 24ac_help="$ac_help
3ef1cea8 25 --with-system-zlib use installed libz"
dfac8a13
TT
26ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34ac_help="$ac_help
0fd91e0a
AO
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
dfac8a13
TT
38
39# Initialize some variables set by options.
40# The variables have the same names as the options, with
41# dashes changed to underlines.
42build=NONE
43cache_file=./config.cache
44exec_prefix=NONE
45host=NONE
46no_create=
47nonopt=NONE
48no_recursion=
49prefix=NONE
50program_prefix=NONE
51program_suffix=NONE
52program_transform_name=s,x,x,
53silent=
54site=
35241f18 55sitefile=
dfac8a13
TT
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
90 fi
91
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
96
97 # Accept the important Cygnus configure options, so we can diagnose typos.
98
99 case "$ac_option" in
100
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
105
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
110
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
117
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
123
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
132
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 fi
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
145
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
154
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
158
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
162 cat << EOF
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
35241f18 170 --site-file=FILE use FILE as the site file
dfac8a13
TT
171 --version print the version of autoconf that created configure
172Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
174 [$ac_default_prefix]
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 [same as prefix]
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
181 [PREFIX/share]
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 [PREFIX/com]
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
196EOF
197 cat << EOF
198Host type:
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
209EOF
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
212 fi
213 exit 0 ;;
214
215 -host | --host | --hos | --ho)
216 ac_prev=host ;;
217 -host=* | --host=* | --hos=* | --ho=*)
218 host="$ac_optarg" ;;
219
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
226
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 ac_prev=infodir ;;
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
231
232 -libdir | --libdir | --libdi | --libd)
233 ac_prev=libdir ;;
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
236
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
243
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
252
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 ac_prev=mandir ;;
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
257
258 -nfp | --nfp | --nf)
259 # Obsolete; use --without-fp.
260 with_fp=no ;;
261
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 | --no-cr | --no-c)
264 no_create=yes ;;
265
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 no_recursion=yes ;;
269
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
278
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 ac_prev=prefix ;;
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
283
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
290
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
297
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
314
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
317 silent=yes ;;
318
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 ac_prev=sbindir ;;
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 | --sbi=* | --sb=*)
323 sbindir="$ac_optarg" ;;
324
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
328 | --sha | --sh)
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 | --sha=* | --sh=*)
334 sharedstatedir="$ac_optarg" ;;
335
336 -site | --site | --sit)
337 ac_prev=site ;;
338 -site=* | --site=* | --sit=*)
339 site="$ac_optarg" ;;
340
35241f18
CD
341 -site-file | --site-file | --site-fil | --site-fi | --site-f)
342 ac_prev=sitefile ;;
343 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
344 sitefile="$ac_optarg" ;;
345
dfac8a13
TT
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
350
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
357
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
362
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
365
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
369
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 fi
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
382
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
391
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
395
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
402
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
409
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 ;;
412
413 *)
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 fi
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 fi
420 nonopt="$ac_option"
421 ;;
422
423 esac
424done
425
426if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428fi
429
430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432# File descriptor usage:
433# 0 standard input
434# 1 file creation
435# 2 errors and warnings
436# 3 some systems may open it to /dev/tty
437# 4 used on the Kubota Titan
438# 6 checking for... messages and results
439# 5 compiler messages saved in config.log
440if test "$silent" = yes; then
441 exec 6>/dev/null
442else
443 exec 6>&1
444fi
445exec 5>./config.log
446
447echo "\
448This file contains any messages produced by compilers while
449running configure, to aid debugging if configure makes a mistake.
450" 1>&5
451
452# Strip out --no-create and --no-recursion so they do not pile up.
453# Also quote any args containing shell metacharacters.
454ac_configure_args=
455for ac_arg
c45f211e 456do
dfac8a13
TT
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466done
467
468# NLS nuisances.
469# Only set these to C if already set. These must not be set unconditionally
470# because not all systems understand e.g. LANG=C (notably SCO).
471# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472# Non-C LC_CTYPE values break the ctype check.
473if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477
478# confdefs.h avoids OS command line length limits that DEFS can exceed.
479rm -rf conftest* confdefs.h
480# AIX cpp loses on an empty file, so make sure it contains at least a newline.
481echo > confdefs.h
482
483# A filename unique to this package, relative to the directory that
484# configure is in, which we can look for to find out if srcdir is correct.
485ac_unique_file=zlib.h
486
487# Find the source files, if location was not specified.
488if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
497 fi
498else
499 ac_srcdir_defaulted=no
500fi
501if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 fi
507fi
508srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509
510# Prefer explicitly selected file to automatically selected ones.
35241f18
CD
511if test -z "$sitefile"; then
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 else
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 fi
dfac8a13 518 fi
35241f18
CD
519else
520 CONFIG_SITE="$sitefile"
dfac8a13
TT
521fi
522for ac_site_file in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
525 . "$ac_site_file"
526 fi
527done
528
529if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
531 . $cache_file
532else
533 echo "creating cache $cache_file"
534 > $cache_file
535fi
536
537ac_ext=c
538# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539ac_cpp='$CPP $CPPFLAGS'
540ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542cross_compiling=$ac_cv_prog_cc_cross
543
544ac_exeext=
545ac_objext=o
546if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='
550' ac_t=' '
551 else
552 ac_n=-n ac_c= ac_t=
553 fi
554else
555 ac_n= ac_c='\c' ac_t=
556fi
557
558
0fd91e0a 559
6706f116
AO
560# This works around the fact that libtool configuration may change LD
561# for this particular configuration, but some shells, instead of
562# keeping the changes in LD private, export them just because LD is
563# exported.
564ORIGINAL_LD_FOR_MULTILIBS=$LD
565
0fd91e0a
AO
566
567if test "x${with_target_subdir}" != x && \
568 test "${srcdir}" = "."; then
569 if test "${with_target_subdir}" != "."; then
570 zlib_basedir="${srcdir}/${with_multisrctop}../"
571 else
572 zlib_basedir="${srcdir}/${with_multisrctop}"
573 fi
574else
575 zlib_basedir="${srcdir}/"
576fi
577
dfac8a13 578ac_aux_dir=
0fd91e0a 579for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do
dfac8a13
TT
580 if test -f $ac_dir/install-sh; then
581 ac_aux_dir=$ac_dir
582 ac_install_sh="$ac_aux_dir/install-sh -c"
583 break
584 elif test -f $ac_dir/install.sh; then
585 ac_aux_dir=$ac_dir
586 ac_install_sh="$ac_aux_dir/install.sh -c"
587 break
588 fi
589done
590if test -z "$ac_aux_dir"; then
0fd91e0a 591 { echo "configure: error: can not find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." 1>&2; exit 1; }
dfac8a13
TT
592fi
593ac_config_guess=$ac_aux_dir/config.guess
594ac_config_sub=$ac_aux_dir/config.sub
595ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596
0fd91e0a
AO
597if :; then :; else
598 # This overrides the previous occurrence for automake, but not for
599 # autoconf, which is exactly what we want.
600 ac_aux_dir=
601for ac_dir in .. $srcdir/..; do
602 if test -f $ac_dir/install-sh; then
603 ac_aux_dir=$ac_dir
604 ac_install_sh="$ac_aux_dir/install-sh -c"
605 break
606 elif test -f $ac_dir/install.sh; then
607 ac_aux_dir=$ac_dir
608 ac_install_sh="$ac_aux_dir/install.sh -c"
609 break
610 fi
611done
612if test -z "$ac_aux_dir"; then
613 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
614fi
615ac_config_guess=$ac_aux_dir/config.guess
616ac_config_sub=$ac_aux_dir/config.sub
617ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
618
619fi
620
dfac8a13
TT
621
622# Do some error checking and defaulting for the host and target type.
623# The inputs are:
624# configure --host=HOST --target=TARGET --build=BUILD NONOPT
625#
626# The rules are:
627# 1. You are not allowed to specify --host, --target, and nonopt at the
628# same time.
629# 2. Host defaults to nonopt.
630# 3. If nonopt is not specified, then host defaults to the current host,
631# as determined by config.guess.
632# 4. Target and build default to nonopt.
633# 5. If nonopt is not specified, then target and build default to host.
634
635# The aliases save the names the user supplied, while $host etc.
636# will get canonicalized.
637case $host---$target---$nonopt in
638NONE---*---* | *---NONE---* | *---*---NONE) ;;
639*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
640esac
641
642
643# Make sure we can run config.sub.
644if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
645else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
646fi
647
648echo $ac_n "checking host system type""... $ac_c" 1>&6
6706f116 649echo "configure:650: checking host system type" >&5
dfac8a13
TT
650
651host_alias=$host
652case "$host_alias" in
653NONE)
654 case $nonopt in
655 NONE)
656 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
657 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
658 fi ;;
659 *) host_alias=$nonopt ;;
660 esac ;;
661esac
662
663host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
664host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667echo "$ac_t""$host" 1>&6
668
669echo $ac_n "checking target system type""... $ac_c" 1>&6
6706f116 670echo "configure:671: checking target system type" >&5
dfac8a13
TT
671
672target_alias=$target
673case "$target_alias" in
674NONE)
675 case $nonopt in
676 NONE) target_alias=$host_alias ;;
677 *) target_alias=$nonopt ;;
678 esac ;;
679esac
680
681target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
682target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685echo "$ac_t""$target" 1>&6
686
687echo $ac_n "checking build system type""... $ac_c" 1>&6
6706f116 688echo "configure:689: checking build system type" >&5
dfac8a13
TT
689
690build_alias=$build
691case "$build_alias" in
692NONE)
693 case $nonopt in
694 NONE) build_alias=$host_alias ;;
695 *) build_alias=$nonopt ;;
696 esac ;;
697esac
698
699build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
700build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
703echo "$ac_t""$build" 1>&6
704
705test "$host_alias" != "$target_alias" &&
706 test "$program_prefix$program_suffix$program_transform_name" = \
707 NONENONEs,x,x, &&
708 program_prefix=${target_alias}-
709
8b55628e
TT
710
711# This works around an automake problem.
1e6347d8 712mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
713
714
dfac8a13
TT
715# Find a good install program. We prefer a C program (faster),
716# so one script is as good as another. But avoid the broken or
717# incompatible versions:
718# SysV /etc/install, /usr/sbin/install
719# SunOS /usr/etc/install
720# IRIX /sbin/install
721# AIX /bin/install
722# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
723# AFS /usr/afsws/bin/install, which mishandles nonexistent args
724# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
725# ./install, which can be erroneously created by make from ./install.sh.
726echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6706f116 727echo "configure:728: checking for a BSD compatible install" >&5
dfac8a13
TT
728if test -z "$INSTALL"; then
729if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731else
732 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
733 for ac_dir in $PATH; do
734 # Account for people who put trailing slashes in PATH elements.
735 case "$ac_dir/" in
736 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
737 *)
738 # OSF1 and SCO ODT 3.0 have their own names for install.
739 # Don't use installbsd from OSF since it installs stuff as root
740 # by default.
741 for ac_prog in ginstall scoinst install; do
742 if test -f $ac_dir/$ac_prog; then
743 if test $ac_prog = install &&
744 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
745 # AIX install. It has an incompatible calling convention.
746 :
747 else
748 ac_cv_path_install="$ac_dir/$ac_prog -c"
749 break 2
750 fi
751 fi
752 done
753 ;;
754 esac
755 done
756 IFS="$ac_save_IFS"
757
758fi
759 if test "${ac_cv_path_install+set}" = set; then
760 INSTALL="$ac_cv_path_install"
761 else
762 # As a last resort, use the slow shell script. We don't cache a
763 # path for INSTALL within a source directory, because that will
764 # break other packages using the cache if that directory is
765 # removed, or if the path is relative.
766 INSTALL="$ac_install_sh"
767 fi
768fi
769echo "$ac_t""$INSTALL" 1>&6
770
771# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
772# It thinks the first close brace ends the variable substitution.
773test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
774
775test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
776
777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
778
779echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
6706f116 780echo "configure:781: checking whether build environment is sane" >&5
dfac8a13
TT
781# Just in case
782sleep 1
783echo timestamp > conftestfile
784# Do `set' in a subshell so we don't clobber the current shell's
785# arguments. Must try -L first in case configure is actually a
786# symlink; some systems play weird games with the mod time of symlinks
787# (eg FreeBSD returns the mod time of the symlink's containing
788# directory).
789if (
790 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
791 if test "$*" = "X"; then
792 # -L didn't work.
793 set X `ls -t $srcdir/configure conftestfile`
794 fi
795 if test "$*" != "X $srcdir/configure conftestfile" \
796 && test "$*" != "X conftestfile $srcdir/configure"; then
797
798 # If neither matched, then we have a broken ls. This can happen
799 # if, for instance, CONFIG_SHELL is bash and it inherits a
800 # broken ls alias from the environment. This has actually
801 # happened. Such a system could not be considered "sane".
802 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
803alias in your environment" 1>&2; exit 1; }
804 fi
805
806 test "$2" = conftestfile
807 )
808then
809 # Ok.
810 :
811else
812 { echo "configure: error: newly created file is older than distributed files!
813Check your system clock" 1>&2; exit 1; }
814fi
815rm -f conftest*
816echo "$ac_t""yes" 1>&6
817if test "$program_transform_name" = s,x,x,; then
818 program_transform_name=
819else
820 # Double any \ or $. echo might interpret backslashes.
821 cat <<\EOF_SED > conftestsed
822s,\\,\\\\,g; s,\$,$$,g
823EOF_SED
824 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
825 rm -f conftestsed
826fi
827test "$program_prefix" != NONE &&
828 program_transform_name="s,^,${program_prefix},; $program_transform_name"
829# Use a double $ so make ignores it.
830test "$program_suffix" != NONE &&
831 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
832
833# sed with no file args requires a program.
834test "$program_transform_name" = "" && program_transform_name="s,x,x,"
835
836echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6706f116 837echo "configure:838: checking whether ${MAKE-make} sets \${MAKE}" >&5
dfac8a13
TT
838set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
839if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
841else
842 cat > conftestmake <<\EOF
843all:
844 @echo 'ac_maketemp="${MAKE}"'
845EOF
846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
847eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
848if test -n "$ac_maketemp"; then
849 eval ac_cv_prog_make_${ac_make}_set=yes
850else
851 eval ac_cv_prog_make_${ac_make}_set=no
852fi
853rm -f conftestmake
854fi
855if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
856 echo "$ac_t""yes" 1>&6
857 SET_MAKE=
858else
859 echo "$ac_t""no" 1>&6
860 SET_MAKE="MAKE=${MAKE-make}"
861fi
862
863
864PACKAGE=zlib
865
866VERSION=1.1.3
867
868if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
869 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
870fi
871cat >> confdefs.h <<EOF
872#define PACKAGE "$PACKAGE"
873EOF
874
875cat >> confdefs.h <<EOF
876#define VERSION "$VERSION"
877EOF
878
879
880
881missing_dir=`cd $ac_aux_dir && pwd`
882echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
6706f116 883echo "configure:884: checking for working aclocal" >&5
dfac8a13
TT
884# Run test in a subshell; some versions of sh will print an error if
885# an executable is not found, even if stderr is redirected.
886# Redirect stdin to placate older versions of autoconf. Sigh.
887if (aclocal --version) < /dev/null > /dev/null 2>&1; then
888 ACLOCAL=aclocal
889 echo "$ac_t""found" 1>&6
890else
891 ACLOCAL="$missing_dir/missing aclocal"
892 echo "$ac_t""missing" 1>&6
893fi
894
895echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
6706f116 896echo "configure:897: checking for working autoconf" >&5
dfac8a13
TT
897# Run test in a subshell; some versions of sh will print an error if
898# an executable is not found, even if stderr is redirected.
899# Redirect stdin to placate older versions of autoconf. Sigh.
900if (autoconf --version) < /dev/null > /dev/null 2>&1; then
901 AUTOCONF=autoconf
902 echo "$ac_t""found" 1>&6
903else
904 AUTOCONF="$missing_dir/missing autoconf"
905 echo "$ac_t""missing" 1>&6
906fi
907
908echo $ac_n "checking for working automake""... $ac_c" 1>&6
6706f116 909echo "configure:910: checking for working automake" >&5
dfac8a13
TT
910# Run test in a subshell; some versions of sh will print an error if
911# an executable is not found, even if stderr is redirected.
912# Redirect stdin to placate older versions of autoconf. Sigh.
913if (automake --version) < /dev/null > /dev/null 2>&1; then
914 AUTOMAKE=automake
915 echo "$ac_t""found" 1>&6
916else
917 AUTOMAKE="$missing_dir/missing automake"
918 echo "$ac_t""missing" 1>&6
919fi
920
921echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
6706f116 922echo "configure:923: checking for working autoheader" >&5
dfac8a13
TT
923# Run test in a subshell; some versions of sh will print an error if
924# an executable is not found, even if stderr is redirected.
925# Redirect stdin to placate older versions of autoconf. Sigh.
926if (autoheader --version) < /dev/null > /dev/null 2>&1; then
927 AUTOHEADER=autoheader
928 echo "$ac_t""found" 1>&6
929else
930 AUTOHEADER="$missing_dir/missing autoheader"
931 echo "$ac_t""missing" 1>&6
932fi
933
934echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
6706f116 935echo "configure:936: checking for working makeinfo" >&5
dfac8a13
TT
936# Run test in a subshell; some versions of sh will print an error if
937# an executable is not found, even if stderr is redirected.
938# Redirect stdin to placate older versions of autoconf. Sigh.
939if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
940 MAKEINFO=makeinfo
941 echo "$ac_t""found" 1>&6
942else
943 MAKEINFO="$missing_dir/missing makeinfo"
944 echo "$ac_t""missing" 1>&6
945fi
946
947
948
e093c992 949echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6706f116 950echo "configure:951: checking whether to enable maintainer-specific portions of Makefiles" >&5
e093c992
AG
951 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
952if test "${enable_maintainer_mode+set}" = set; then
953 enableval="$enable_maintainer_mode"
954 USE_MAINTAINER_MODE=$enableval
955else
956 USE_MAINTAINER_MODE=no
957fi
958
959 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
960
961
962if test $USE_MAINTAINER_MODE = yes; then
963 MAINTAINER_MODE_TRUE=
964 MAINTAINER_MODE_FALSE='#'
965else
966 MAINTAINER_MODE_TRUE='#'
967 MAINTAINER_MODE_FALSE=
968fi
969 MAINT=$MAINTAINER_MODE_TRUE
970
971
972
dfac8a13
TT
973# Check whether --with-target-subdir or --without-target-subdir was given.
974if test "${with_target_subdir+set}" = set; then
975 withval="$with_target_subdir"
976 :
977fi
978
979# Check whether --with-cross-host or --without-cross-host was given.
980if test "${with_cross_host+set}" = set; then
981 withval="$with_cross_host"
982 :
983fi
984
985
986# Check whether --enable-multilib or --disable-multilib was given.
987if test "${enable_multilib+set}" = set; then
988 enableval="$enable_multilib"
989 case "${enableval}" in
990 yes) multilib=yes ;;
991 no) multilib=no ;;
992 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
993 esac
994else
67d08194 995 test -z "$with_target_subdir" && multilib=no || multilib=yes
dfac8a13
TT
996fi
997
79a9a529
TT
998# Check whether --with-system-zlib or --without-system-zlib was given.
999if test "${with_system_zlib+set}" = set; then
1000 withval="$with_system_zlib"
1001 :
1002fi
1003
1004
025fd00e 1005
dfac8a13
TT
1006# Extract the first word of "gcc", so it can be a program name with args.
1007set dummy gcc; ac_word=$2
1008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1009echo "configure:1010: checking for $ac_word" >&5
dfac8a13
TT
1010if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1012else
1013 if test -n "$CC"; then
1014 ac_cv_prog_CC="$CC" # Let the user override the test.
1015else
1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1017 ac_dummy="$PATH"
1018 for ac_dir in $ac_dummy; do
1019 test -z "$ac_dir" && ac_dir=.
1020 if test -f $ac_dir/$ac_word; then
1021 ac_cv_prog_CC="gcc"
1022 break
1023 fi
1024 done
1025 IFS="$ac_save_ifs"
1026fi
1027fi
1028CC="$ac_cv_prog_CC"
1029if test -n "$CC"; then
1030 echo "$ac_t""$CC" 1>&6
1031else
1032 echo "$ac_t""no" 1>&6
1033fi
1034
1035if test -z "$CC"; then
1036 # Extract the first word of "cc", so it can be a program name with args.
1037set dummy cc; ac_word=$2
1038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1039echo "configure:1040: checking for $ac_word" >&5
dfac8a13
TT
1040if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042else
1043 if test -n "$CC"; then
1044 ac_cv_prog_CC="$CC" # Let the user override the test.
1045else
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 ac_prog_rejected=no
1048 ac_dummy="$PATH"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1053 ac_prog_rejected=yes
1054 continue
1055 fi
1056 ac_cv_prog_CC="cc"
1057 break
1058 fi
1059 done
1060 IFS="$ac_save_ifs"
1061if test $ac_prog_rejected = yes; then
1062 # We found a bogon in the path, so make sure we never use it.
1063 set dummy $ac_cv_prog_CC
1064 shift
1065 if test $# -gt 0; then
1066 # We chose a different compiler from the bogus one.
1067 # However, it has the same basename, so the bogon will be chosen
1068 # first if we set CC to just the basename; use the full file name.
1069 shift
1070 set dummy "$ac_dir/$ac_word" "$@"
1071 shift
1072 ac_cv_prog_CC="$@"
1073 fi
1074fi
1075fi
1076fi
1077CC="$ac_cv_prog_CC"
1078if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1080else
1081 echo "$ac_t""no" 1>&6
1082fi
1083
1084 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1085fi
1086
1087echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6706f116 1088echo "configure:1089: checking whether we are using GNU C" >&5
dfac8a13
TT
1089if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091else
1092 cat > conftest.c <<EOF
1093#ifdef __GNUC__
1094 yes;
1095#endif
1096EOF
6706f116 1097if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
dfac8a13
TT
1098 ac_cv_prog_gcc=yes
1099else
1100 ac_cv_prog_gcc=no
1101fi
1102fi
1103
1104echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1105
1106if test $ac_cv_prog_gcc = yes; then
1107 GCC=yes
1108 ac_test_CFLAGS="${CFLAGS+set}"
1109 ac_save_CFLAGS="$CFLAGS"
1110 CFLAGS=
1111 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6706f116 1112echo "configure:1113: checking whether ${CC-cc} accepts -g" >&5
dfac8a13
TT
1113if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115else
1116 echo 'void f(){}' > conftest.c
1117if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1118 ac_cv_prog_cc_g=yes
1119else
1120 ac_cv_prog_cc_g=no
1121fi
1122rm -f conftest*
1123
1124fi
1125
1126echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1127 if test "$ac_test_CFLAGS" = set; then
1128 CFLAGS="$ac_save_CFLAGS"
1129 elif test $ac_cv_prog_cc_g = yes; then
1130 CFLAGS="-g -O2"
1131 else
1132 CFLAGS="-O2"
1133 fi
1134else
1135 GCC=
1136 test "${CFLAGS+set}" = set || CFLAGS="-g"
1137fi
1138
e093c992
AG
1139# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1140# at least currently, we never actually build a program, so we never
1141# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1142# fails, because we are probably configuring with a cross compiler
1143# which cant create executables. So we include AC_EXEEXT to keep
1144# automake happy, but we dont execute it, since we dont care about
1145# the result.
1146if false; then
01ef8751
AO
1147 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1148 # to nothing, so nothing would remain between `then' and `fi' if it
1149 # were not for the `:' below.
1150 :
e093c992 1151 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
6706f116 1152echo "configure:1153: checking for Cygwin environment" >&5
5d836b57
TT
1153if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1155else
1156 cat > conftest.$ac_ext <<EOF
6706f116 1157#line 1158 "configure"
5d836b57
TT
1158#include "confdefs.h"
1159
1160int main() {
1161
1162#ifndef __CYGWIN__
1163#define __CYGWIN__ __CYGWIN32__
1164#endif
1165return __CYGWIN__;
1166; return 0; }
1167EOF
6706f116 1168if { (eval echo configure:1169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5d836b57
TT
1169 rm -rf conftest*
1170 ac_cv_cygwin=yes
1171else
1172 echo "configure: failed program was:" >&5
1173 cat conftest.$ac_ext >&5
1174 rm -rf conftest*
1175 ac_cv_cygwin=no
1176fi
1177rm -f conftest*
1178rm -f conftest*
1179fi
1180
1181echo "$ac_t""$ac_cv_cygwin" 1>&6
1182CYGWIN=
1183test "$ac_cv_cygwin" = yes && CYGWIN=yes
1184echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
6706f116 1185echo "configure:1186: checking for mingw32 environment" >&5
5d836b57
TT
1186if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188else
1189 cat > conftest.$ac_ext <<EOF
6706f116 1190#line 1191 "configure"
5d836b57
TT
1191#include "confdefs.h"
1192
1193int main() {
1194return __MINGW32__;
1195; return 0; }
1196EOF
6706f116 1197if { (eval echo configure:1198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5d836b57
TT
1198 rm -rf conftest*
1199 ac_cv_mingw32=yes
1200else
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1203 rm -rf conftest*
1204 ac_cv_mingw32=no
1205fi
1206rm -f conftest*
1207rm -f conftest*
1208fi
1209
1210echo "$ac_t""$ac_cv_mingw32" 1>&6
1211MINGW32=
1212test "$ac_cv_mingw32" = yes && MINGW32=yes
1213
1214
1215echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6706f116 1216echo "configure:1217: checking for executable suffix" >&5
5d836b57
TT
1217if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219else
1220 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1221 ac_cv_exeext=.exe
1222else
1223 rm -f conftest*
1224 echo 'int main () { return 0; }' > conftest.$ac_ext
1225 ac_cv_exeext=
6706f116 1226 if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5d836b57
TT
1227 for file in conftest.*; do
1228 case $file in
35241f18 1229 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5d836b57
TT
1230 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1231 esac
1232 done
1233 else
1234 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1235 fi
1236 rm -f conftest*
1237 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1238fi
1239fi
1240
1241EXEEXT=""
1242test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1243echo "$ac_t""${ac_cv_exeext}" 1>&6
1244ac_exeext=$EXEEXT
1245
5d836b57 1246fi
dfac8a13
TT
1247# Check whether --enable-shared or --disable-shared was given.
1248if test "${enable_shared+set}" = set; then
1249 enableval="$enable_shared"
1250 p=${PACKAGE-default}
0fd91e0a 1251case $enableval in
dfac8a13
TT
1252yes) enable_shared=yes ;;
1253no) enable_shared=no ;;
1254*)
1255 enable_shared=no
1256 # Look at the argument we got. We use all the common list separators.
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1258 for pkg in $enableval; do
1259 if test "X$pkg" = "X$p"; then
1260 enable_shared=yes
1261 fi
1262 done
1263 IFS="$ac_save_ifs"
1264 ;;
1265esac
1266else
1267 enable_shared=yes
1268fi
1269
1270# Check whether --enable-static or --disable-static was given.
1271if test "${enable_static+set}" = set; then
1272 enableval="$enable_static"
1273 p=${PACKAGE-default}
0fd91e0a 1274case $enableval in
dfac8a13
TT
1275yes) enable_static=yes ;;
1276no) enable_static=no ;;
1277*)
1278 enable_static=no
1279 # Look at the argument we got. We use all the common list separators.
1280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1281 for pkg in $enableval; do
1282 if test "X$pkg" = "X$p"; then
1283 enable_static=yes
1284 fi
1285 done
1286 IFS="$ac_save_ifs"
1287 ;;
1288esac
1289else
1290 enable_static=yes
1291fi
1292
1293# Check whether --enable-fast-install or --disable-fast-install was given.
1294if test "${enable_fast_install+set}" = set; then
1295 enableval="$enable_fast_install"
1296 p=${PACKAGE-default}
0fd91e0a 1297case $enableval in
dfac8a13
TT
1298yes) enable_fast_install=yes ;;
1299no) enable_fast_install=no ;;
1300*)
1301 enable_fast_install=no
1302 # Look at the argument we got. We use all the common list separators.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1304 for pkg in $enableval; do
1305 if test "X$pkg" = "X$p"; then
1306 enable_fast_install=yes
1307 fi
1308 done
1309 IFS="$ac_save_ifs"
1310 ;;
1311esac
1312else
1313 enable_fast_install=yes
1314fi
1315
dfac8a13
TT
1316# Check whether --with-gnu-ld or --without-gnu-ld was given.
1317if test "${with_gnu_ld+set}" = set; then
1318 withval="$with_gnu_ld"
1319 test "$withval" = no || with_gnu_ld=yes
1320else
1321 with_gnu_ld=no
1322fi
1323
1324ac_prog=ld
0fd91e0a 1325if test "$GCC" = yes; then
dfac8a13
TT
1326 # Check if gcc -print-prog-name=ld gives a path.
1327 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
6706f116 1328echo "configure:1329: checking for ld used by GCC" >&5
0fd91e0a
AO
1329 case $host in
1330 *-*-mingw*)
1331 # gcc leaves a trailing carriage return which upsets mingw
1332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1333 *)
1334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1335 esac
1336 case $ac_prog in
dfac8a13 1337 # Accept absolute paths.
0fd91e0a 1338 [\\/]* | [A-Za-z]:[\\/]*)
dfac8a13
TT
1339 re_direlt='/[^/][^/]*/\.\./'
1340 # Canonicalize the path of ld
1341 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1342 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1343 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1344 done
1345 test -z "$LD" && LD="$ac_prog"
1346 ;;
1347 "")
1348 # If it fails, then pretend we aren't using GCC.
1349 ac_prog=ld
1350 ;;
1351 *)
1352 # If it is relative, then search for the first ld in PATH.
1353 with_gnu_ld=unknown
1354 ;;
1355 esac
1356elif test "$with_gnu_ld" = yes; then
1357 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
6706f116 1358echo "configure:1359: checking for GNU ld" >&5
dfac8a13
TT
1359else
1360 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
6706f116 1361echo "configure:1362: checking for non-GNU ld" >&5
dfac8a13 1362fi
0fd91e0a 1363if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
dfac8a13
TT
1364 echo $ac_n "(cached) $ac_c" 1>&6
1365else
1366 if test -z "$LD"; then
0fd91e0a 1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
1368 for ac_dir in $PATH; do
1369 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
1370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1371 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13
TT
1372 # Check to see if the program is GNU ld. I'd rather use --version,
1373 # but apparently some GNU ld's only accept -v.
1374 # Break only if it was the GNU/non-GNU ld that we prefer.
0fd91e0a 1375 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
dfac8a13
TT
1376 test "$with_gnu_ld" != no && break
1377 else
1378 test "$with_gnu_ld" != yes && break
1379 fi
1380 fi
1381 done
1382 IFS="$ac_save_ifs"
1383else
0fd91e0a 1384 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
1385fi
1386fi
1387
0fd91e0a 1388LD="$lt_cv_path_LD"
dfac8a13
TT
1389if test -n "$LD"; then
1390 echo "$ac_t""$LD" 1>&6
1391else
1392 echo "$ac_t""no" 1>&6
1393fi
1394test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
dfac8a13 1395echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
6706f116 1396echo "configure:1397: checking if the linker ($LD) is GNU ld" >&5
0fd91e0a 1397if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
dfac8a13
TT
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399else
1400 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1401if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
0fd91e0a 1402 lt_cv_prog_gnu_ld=yes
dfac8a13 1403else
0fd91e0a 1404 lt_cv_prog_gnu_ld=no
dfac8a13
TT
1405fi
1406fi
1407
0fd91e0a
AO
1408echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1409with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
1410
1411
0fd91e0a 1412echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
6706f116 1413echo "configure:1414: checking for $LD option to reload object files" >&5
0fd91e0a
AO
1414if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416else
1417 lt_cv_ld_reload_flag='-r'
1418fi
1419
1420echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1421reload_flag=$lt_cv_ld_reload_flag
1422test -n "$reload_flag" && reload_flag=" $reload_flag"
1423
dfac8a13 1424echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
6706f116 1425echo "configure:1426: checking for BSD-compatible nm" >&5
0fd91e0a 1426if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
dfac8a13
TT
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428else
1429 if test -n "$NM"; then
1430 # Let the user override the test.
0fd91e0a 1431 lt_cv_path_NM="$NM"
dfac8a13 1432else
0fd91e0a 1433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
1434 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1435 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
1436 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1437 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
dfac8a13
TT
1438 # Check to see if the nm accepts a BSD-compat flag.
1439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1440 # nm: unknown option "B" ignored
0fd91e0a
AO
1441 # Tru64's nm complains that /dev/null is an invalid object file
1442 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1443 lt_cv_path_NM="$tmp_nm -B"
dfac8a13 1444 break
0fd91e0a
AO
1445 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1446 lt_cv_path_NM="$tmp_nm -p"
dfac8a13
TT
1447 break
1448 else
0fd91e0a 1449 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
dfac8a13
TT
1450 continue # so that we can try to find one that supports BSD flags
1451 fi
1452 fi
1453 done
1454 IFS="$ac_save_ifs"
0fd91e0a 1455 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
dfac8a13
TT
1456fi
1457fi
1458
0fd91e0a 1459NM="$lt_cv_path_NM"
dfac8a13
TT
1460echo "$ac_t""$NM" 1>&6
1461
0fd91e0a 1462echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6706f116 1463echo "configure:1464: checking whether ln -s works" >&5
0fd91e0a 1464if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
025fd00e
TT
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466else
0fd91e0a
AO
1467 rm -f conftestdata
1468if ln -s X conftestdata 2>/dev/null
1469then
1470 rm -f conftestdata
1471 ac_cv_prog_LN_S="ln -s"
1472else
1473 ac_cv_prog_LN_S=ln
1474fi
1475fi
1476LN_S="$ac_cv_prog_LN_S"
1477if test "$ac_cv_prog_LN_S" = "ln -s"; then
1478 echo "$ac_t""yes" 1>&6
1479else
1480 echo "$ac_t""no" 1>&6
1481fi
025fd00e 1482
0fd91e0a 1483echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
6706f116 1484echo "configure:1485: checking how to recognise dependant libraries" >&5
0fd91e0a
AO
1485if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1487else
1488 lt_cv_file_magic_cmd='$MAGIC_CMD'
1489lt_cv_file_magic_test_file=
1490lt_cv_deplibs_check_method='unknown'
1491# Need to set the preceding variable on all platforms that support
1492# interlibrary dependencies.
1493# 'none' -- dependencies not supported.
1494# `unknown' -- same as none, but documents that we really don't know.
1495# 'pass_all' -- all dependencies passed with no checks.
1496# 'test_compile' -- check by making test program.
1497# 'file_magic [regex]' -- check by looking for files in library path
1498# which responds to the $file_magic_cmd with a given egrep regex.
1499# If you have `file' or equivalent on your system and you're not sure
1500# whether `pass_all' will *always* work, you probably want this one.
1501
1502case $host_os in
025fd00e 1503aix*)
0fd91e0a 1504 lt_cv_deplibs_check_method=pass_all
025fd00e 1505 ;;
025fd00e 1506
0fd91e0a
AO
1507beos*)
1508 lt_cv_deplibs_check_method=pass_all
1509 ;;
025fd00e 1510
0fd91e0a
AO
1511bsdi4*)
1512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1513 lt_cv_file_magic_cmd='/usr/bin/file -L'
1514 lt_cv_file_magic_test_file=/shlib/libc.so
1515 ;;
025fd00e 1516
0fd91e0a
AO
1517cygwin* | mingw* |pw32*)
1518 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1519 lt_cv_file_magic_cmd='$OBJDUMP -f'
1520 ;;
025fd00e 1521
0fd91e0a
AO
1522darwin* | rhapsody*)
1523 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1524 lt_cv_file_magic_cmd='/usr/bin/file -L'
1525 case "$host_os" in
1526 rhapsody* | darwin1.012)
1527 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1528 ;;
1529 *) # Darwin 1.3 on
1530 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1531 ;;
1532 esac
1533 ;;
025fd00e 1534
0fd91e0a
AO
1535freebsd* )
1536 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1537 case $host_cpu in
1538 i*86 )
1539 # Not sure whether the presence of OpenBSD here was a mistake.
1540 # Let's accept both of them until this is cleared up.
1541 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1542 lt_cv_file_magic_cmd=/usr/bin/file
1543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1544 ;;
1545 esac
1546 else
1547 lt_cv_deplibs_check_method=pass_all
1548 fi
1549 ;;
025fd00e 1550
0fd91e0a
AO
1551gnu*)
1552 lt_cv_deplibs_check_method=pass_all
1553 ;;
025fd00e 1554
0fd91e0a 1555hpux10.20*|hpux11*)
f5cc59a7
AO
1556 case $host_cpu in
1557 hppa*)
1558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1559 lt_cv_file_magic_cmd=/usr/bin/file
1560 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1561 ;;
1562 ia64*)
1563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1564 lt_cv_file_magic_cmd=/usr/bin/file
1565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1566 ;;
1567 esac
0fd91e0a 1568 ;;
025fd00e 1569
0fd91e0a
AO
1570irix5* | irix6*)
1571 case $host_os in
1572 irix5*)
1573 # this will be overridden with pass_all, but let us keep it just in case
1574 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1575 ;;
1576 *)
1577 case $LD in
1578 *-32|*"-32 ") libmagic=32-bit;;
1579 *-n32|*"-n32 ") libmagic=N32;;
1580 *-64|*"-64 ") libmagic=64-bit;;
1581 *) libmagic=never-match;;
1582 esac
1583 # this will be overridden with pass_all, but let us keep it just in case
1584 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1585 ;;
1586 esac
1587 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1588 lt_cv_deplibs_check_method=pass_all
1589 ;;
025fd00e 1590
0fd91e0a
AO
1591# This must be Linux ELF.
1592linux-gnu*)
1593 case $host_cpu in
33456445 1594 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
0fd91e0a
AO
1595 lt_cv_deplibs_check_method=pass_all ;;
1596 *)
1597 # glibc up to 2.1.1 does not perform some relocations on ARM
1598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1599 esac
1600 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1601 ;;
025fd00e 1602
0fd91e0a
AO
1603netbsd*)
1604 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1605 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
025fd00e 1606 else
0fd91e0a 1607 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
025fd00e 1608 fi
0fd91e0a 1609 ;;
025fd00e 1610
0fd91e0a
AO
1611newsos6)
1612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1613 lt_cv_file_magic_cmd=/usr/bin/file
1614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1615 ;;
025fd00e 1616
0fd91e0a
AO
1617osf3* | osf4* | osf5*)
1618 # this will be overridden with pass_all, but let us keep it just in case
1619 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1620 lt_cv_file_magic_test_file=/shlib/libc.so
1621 lt_cv_deplibs_check_method=pass_all
1622 ;;
025fd00e 1623
0fd91e0a
AO
1624sco3.2v5*)
1625 lt_cv_deplibs_check_method=pass_all
1626 ;;
025fd00e 1627
0fd91e0a
AO
1628solaris*)
1629 lt_cv_deplibs_check_method=pass_all
1630 lt_cv_file_magic_test_file=/lib/libc.so
1631 ;;
025fd00e 1632
33456445
AO
1633sysv5uw[78]* | sysv4*uw2*)
1634 lt_cv_deplibs_check_method=pass_all
1635 ;;
1636
0fd91e0a
AO
1637sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1638 case $host_vendor in
1639 ncr)
1640 lt_cv_deplibs_check_method=pass_all
1641 ;;
1642 motorola)
1643 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]'
1644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1645 ;;
1646 esac
1647 ;;
1648esac
025fd00e
TT
1649
1650fi
1651
0fd91e0a
AO
1652echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1653file_magic_cmd=$lt_cv_file_magic_cmd
1654deplibs_check_method=$lt_cv_deplibs_check_method
025fd00e 1655
0fd91e0a 1656echo $ac_n "checking for object suffix""... $ac_c" 1>&6
f5cc59a7 1657echo "configure:1658: checking for object suffix" >&5
0fd91e0a 1658if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
dfac8a13
TT
1659 echo $ac_n "(cached) $ac_c" 1>&6
1660else
0fd91e0a
AO
1661 rm -f conftest*
1662echo 'int i = 1;' > conftest.$ac_ext
f5cc59a7 1663if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0fd91e0a
AO
1664 for ac_file in conftest.*; do
1665 case $ac_file in
1666 *.c) ;;
1667 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1668 esac
1669 done
dfac8a13 1670else
0fd91e0a 1671 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
dfac8a13 1672fi
0fd91e0a 1673rm -f conftest*
dfac8a13
TT
1674fi
1675
0fd91e0a
AO
1676echo "$ac_t""$ac_cv_objext" 1>&6
1677OBJEXT=$ac_cv_objext
1678ac_objext=$ac_cv_objext
1679
025fd00e
TT
1680if test $host != $build; then
1681 ac_tool_prefix=${host_alias}-
1682else
1683 ac_tool_prefix=
1684fi
1685
0fd91e0a 1686# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
dfac8a13 1687
0fd91e0a
AO
1688# Only perform the check for file, if the check method requires it
1689case $deplibs_check_method in
1690file_magic*)
1691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1692 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
f5cc59a7 1693echo "configure:1694: checking for ${ac_tool_prefix}file" >&5
0fd91e0a
AO
1694if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1696else
1697 case $MAGIC_CMD in
1698 /*)
1699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1700 ;;
1701 ?:/*)
1702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1703 ;;
1704 *)
1705 ac_save_MAGIC_CMD="$MAGIC_CMD"
1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1707 ac_dummy="/usr/bin:$PATH"
1708 for ac_dir in $ac_dummy; do
1709 test -z "$ac_dir" && ac_dir=.
1710 if test -f $ac_dir/${ac_tool_prefix}file; then
1711 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1712 if test -n "$file_magic_test_file"; then
1713 case $deplibs_check_method in
1714 "file_magic "*)
1715 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1718 egrep "$file_magic_regex" > /dev/null; then
1719 :
1720 else
1721 cat <<EOF 1>&2
dfac8a13 1722
0fd91e0a
AO
1723*** Warning: the command libtool uses to detect shared libraries,
1724*** $file_magic_cmd, produces output that libtool cannot recognize.
1725*** The result is that libtool may fail to recognize shared libraries
1726*** as such. This will affect the creation of libtool libraries that
1727*** depend on shared libraries, but programs linked with such libtool
1728*** libraries will work regardless of this problem. Nevertheless, you
1729*** may want to report the problem to your system manager and/or to
1730*** bug-libtool@gnu.org
1731
1732EOF
1733 fi ;;
1734 esac
1735 fi
1736 break
1737 fi
1738 done
1739 IFS="$ac_save_ifs"
1740 MAGIC_CMD="$ac_save_MAGIC_CMD"
dfac8a13 1741 ;;
0fd91e0a
AO
1742esac
1743fi
dfac8a13 1744
0fd91e0a
AO
1745MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1746if test -n "$MAGIC_CMD"; then
1747 echo "$ac_t""$MAGIC_CMD" 1>&6
1748else
1749 echo "$ac_t""no" 1>&6
1750fi
1751
1752if test -z "$lt_cv_path_MAGIC_CMD"; then
1753 if test -n "$ac_tool_prefix"; then
1754 echo $ac_n "checking for file""... $ac_c" 1>&6
f5cc59a7 1755echo "configure:1756: checking for file" >&5
0fd91e0a 1756if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
dfac8a13
TT
1757 echo $ac_n "(cached) $ac_c" 1>&6
1758else
0fd91e0a
AO
1759 case $MAGIC_CMD in
1760 /*)
1761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1762 ;;
1763 ?:/*)
1764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1765 ;;
1766 *)
1767 ac_save_MAGIC_CMD="$MAGIC_CMD"
1768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1769 ac_dummy="/usr/bin:$PATH"
1770 for ac_dir in $ac_dummy; do
1771 test -z "$ac_dir" && ac_dir=.
1772 if test -f $ac_dir/file; then
1773 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1774 if test -n "$file_magic_test_file"; then
1775 case $deplibs_check_method in
1776 "file_magic "*)
1777 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1780 egrep "$file_magic_regex" > /dev/null; then
1781 :
1782 else
1783 cat <<EOF 1>&2
c45f211e 1784
0fd91e0a
AO
1785*** Warning: the command libtool uses to detect shared libraries,
1786*** $file_magic_cmd, produces output that libtool cannot recognize.
1787*** The result is that libtool may fail to recognize shared libraries
1788*** as such. This will affect the creation of libtool libraries that
1789*** depend on shared libraries, but programs linked with such libtool
1790*** libraries will work regardless of this problem. Nevertheless, you
1791*** may want to report the problem to your system manager and/or to
1792*** bug-libtool@gnu.org
dfac8a13 1793
c45f211e 1794EOF
0fd91e0a
AO
1795 fi ;;
1796 esac
1797 fi
1798 break
1799 fi
1800 done
1801 IFS="$ac_save_ifs"
1802 MAGIC_CMD="$ac_save_MAGIC_CMD"
1803 ;;
1804esac
1805fi
1806
1807MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1808if test -n "$MAGIC_CMD"; then
1809 echo "$ac_t""$MAGIC_CMD" 1>&6
dfac8a13 1810else
0fd91e0a 1811 echo "$ac_t""no" 1>&6
dfac8a13 1812fi
0fd91e0a
AO
1813
1814 else
1815 MAGIC_CMD=:
1816 fi
dfac8a13
TT
1817fi
1818
dfac8a13
TT
1819 fi
1820 ;;
0fd91e0a 1821esac
dfac8a13 1822
0fd91e0a
AO
1823# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1824set dummy ${ac_tool_prefix}ranlib; ac_word=$2
025fd00e 1825echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f5cc59a7 1826echo "configure:1827: checking for $ac_word" >&5
0fd91e0a 1827if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
025fd00e
TT
1828 echo $ac_n "(cached) $ac_c" 1>&6
1829else
0fd91e0a
AO
1830 if test -n "$RANLIB"; then
1831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e
TT
1832else
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1834 ac_dummy="$PATH"
1835 for ac_dir in $ac_dummy; do
1836 test -z "$ac_dir" && ac_dir=.
1837 if test -f $ac_dir/$ac_word; then
0fd91e0a 1838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
025fd00e
TT
1839 break
1840 fi
1841 done
1842 IFS="$ac_save_ifs"
1843fi
1844fi
0fd91e0a
AO
1845RANLIB="$ac_cv_prog_RANLIB"
1846if test -n "$RANLIB"; then
1847 echo "$ac_t""$RANLIB" 1>&6
025fd00e
TT
1848else
1849 echo "$ac_t""no" 1>&6
1850fi
1851
1852
0fd91e0a 1853if test -z "$ac_cv_prog_RANLIB"; then
025fd00e 1854if test -n "$ac_tool_prefix"; then
0fd91e0a
AO
1855 # Extract the first word of "ranlib", so it can be a program name with args.
1856set dummy ranlib; ac_word=$2
025fd00e 1857echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f5cc59a7 1858echo "configure:1859: checking for $ac_word" >&5
0fd91e0a 1859if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
025fd00e
TT
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861else
0fd91e0a
AO
1862 if test -n "$RANLIB"; then
1863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e
TT
1864else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1866 ac_dummy="$PATH"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
0fd91e0a 1870 ac_cv_prog_RANLIB="ranlib"
025fd00e
TT
1871 break
1872 fi
1873 done
1874 IFS="$ac_save_ifs"
0fd91e0a 1875 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
025fd00e
TT
1876fi
1877fi
0fd91e0a
AO
1878RANLIB="$ac_cv_prog_RANLIB"
1879if test -n "$RANLIB"; then
1880 echo "$ac_t""$RANLIB" 1>&6
025fd00e
TT
1881else
1882 echo "$ac_t""no" 1>&6
1883fi
1884
1885else
0fd91e0a 1886 RANLIB=":"
025fd00e
TT
1887fi
1888fi
1889
0fd91e0a
AO
1890# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1891set dummy ${ac_tool_prefix}strip; ac_word=$2
025fd00e 1892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f5cc59a7 1893echo "configure:1894: checking for $ac_word" >&5
0fd91e0a 1894if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
025fd00e
TT
1895 echo $ac_n "(cached) $ac_c" 1>&6
1896else
0fd91e0a
AO
1897 if test -n "$STRIP"; then
1898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e
TT
1899else
1900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1901 ac_dummy="$PATH"
1902 for ac_dir in $ac_dummy; do
1903 test -z "$ac_dir" && ac_dir=.
1904 if test -f $ac_dir/$ac_word; then
0fd91e0a 1905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
025fd00e
TT
1906 break
1907 fi
1908 done
1909 IFS="$ac_save_ifs"
1910fi
1911fi
0fd91e0a
AO
1912STRIP="$ac_cv_prog_STRIP"
1913if test -n "$STRIP"; then
1914 echo "$ac_t""$STRIP" 1>&6
025fd00e
TT
1915else
1916 echo "$ac_t""no" 1>&6
1917fi
1918
1919
0fd91e0a 1920if test -z "$ac_cv_prog_STRIP"; then
025fd00e 1921if test -n "$ac_tool_prefix"; then
0fd91e0a
AO
1922 # Extract the first word of "strip", so it can be a program name with args.
1923set dummy strip; ac_word=$2
025fd00e 1924echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f5cc59a7 1925echo "configure:1926: checking for $ac_word" >&5
0fd91e0a 1926if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
025fd00e
TT
1927 echo $ac_n "(cached) $ac_c" 1>&6
1928else
0fd91e0a
AO
1929 if test -n "$STRIP"; then
1930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e
TT
1931else
1932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1933 ac_dummy="$PATH"
1934 for ac_dir in $ac_dummy; do
1935 test -z "$ac_dir" && ac_dir=.
1936 if test -f $ac_dir/$ac_word; then
0fd91e0a 1937 ac_cv_prog_STRIP="strip"
025fd00e
TT
1938 break
1939 fi
1940 done
1941 IFS="$ac_save_ifs"
0fd91e0a 1942 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
025fd00e
TT
1943fi
1944fi
0fd91e0a
AO
1945STRIP="$ac_cv_prog_STRIP"
1946if test -n "$STRIP"; then
1947 echo "$ac_t""$STRIP" 1>&6
025fd00e
TT
1948else
1949 echo "$ac_t""no" 1>&6
1950fi
1951
1952else
0fd91e0a 1953 STRIP=":"
025fd00e
TT
1954fi
1955fi
1956
1957
0fd91e0a
AO
1958# Check for any special flags to pass to ltconfig.
1959libtool_flags="--cache-file=$cache_file"
1960test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1961test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1962test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1963test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1964test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
c45f211e 1965
025fd00e
TT
1966
1967# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1968if test "${enable_libtool_lock+set}" = set; then
1969 enableval="$enable_libtool_lock"
0fd91e0a
AO
1970 :
1971fi
1972
1973test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1974test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1975
1976# Check whether --with-pic or --without-pic was given.
1977if test "${with_pic+set}" = set; then
1978 withval="$with_pic"
1979 pic_mode="$withval"
025fd00e 1980else
0fd91e0a 1981 pic_mode=default
025fd00e
TT
1982fi
1983
0fd91e0a
AO
1984test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1985test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1986
1987# Some flags need to be propagated to the compiler or linker for good
1988# libtool support.
1989case $host in
1990*-*-irix6*)
1991 # Find out which ABI we are using.
f5cc59a7
AO
1992 echo '#line 1993 "configure"' > conftest.$ac_ext
1993 if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0fd91e0a
AO
1994 case `/usr/bin/file conftest.$ac_objext` in
1995 *32-bit*)
1996 LD="${LD-ld} -32"
1997 ;;
1998 *N32*)
1999 LD="${LD-ld} -n32"
2000 ;;
2001 *64-bit*)
2002 LD="${LD-ld} -64"
2003 ;;
2004 esac
2005 fi
2006 rm -rf conftest*
2007 ;;
025fd00e 2008
f5cc59a7
AO
2009ia64-*-hpux*)
2010 # Find out which ABI we are using.
2011 echo 'int i;' > conftest.$ac_ext
2012 if { (eval echo configure:2013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2013 case "`/usr/bin/file conftest.o`" in
2014 *ELF-32*)
2015 HPUX_IA64_MODE="32"
2016 ;;
2017 *ELF-64*)
2018 HPUX_IA64_MODE="64"
2019 ;;
2020 esac
2021 fi
2022 rm -rf conftest*
2023 ;;
2024
0fd91e0a
AO
2025*-*-sco3.2v5*)
2026 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2027 SAVE_CFLAGS="$CFLAGS"
2028 CFLAGS="$CFLAGS -belf"
2029 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
f5cc59a7 2030echo "configure:2031: checking whether the C compiler needs -belf" >&5
0fd91e0a
AO
2031if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033else
2034
2035 ac_ext=c
2036# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2037ac_cpp='$CPP $CPPFLAGS'
2038ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2039ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2040cross_compiling=$ac_cv_prog_cc_cross
2041
2042 cat > conftest.$ac_ext <<EOF
f5cc59a7 2043#line 2044 "configure"
0fd91e0a
AO
2044#include "confdefs.h"
2045
2046int main() {
2047
2048; return 0; }
2049EOF
f5cc59a7 2050if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fd91e0a
AO
2051 rm -rf conftest*
2052 lt_cv_cc_needs_belf=yes
2053else
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2056 rm -rf conftest*
2057 lt_cv_cc_needs_belf=no
025fd00e 2058fi
0fd91e0a
AO
2059rm -f conftest*
2060 ac_ext=c
2061# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2062ac_cpp='$CPP $CPPFLAGS'
2063ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2064ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2065cross_compiling=$ac_cv_prog_cc_cross
2066
2067fi
2068
2069echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2070 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2071 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2072 CFLAGS="$SAVE_CFLAGS"
2073 fi
2074 ;;
2075
2076
2077esac
025fd00e 2078
dfac8a13
TT
2079
2080# Save cache, so that ltconfig can load it
2081cat > confcache <<\EOF
2082# This file is a shell script that caches the results of configure
2083# tests run on this system so they can be shared between configure
2084# scripts and configure runs. It is not useful on other systems.
2085# If it contains results you don't want to keep, you may remove or edit it.
2086#
2087# By default, configure uses ./config.cache as the cache file,
2088# creating it if it does not exist already. You can give configure
2089# the --cache-file=FILE option to use a different cache file; that is
2090# what configure does when it calls configure scripts in
2091# subdirectories, so they share the cache.
2092# Giving --cache-file=/dev/null disables caching, for debugging configure.
2093# config.status only pays attention to the cache file if you give it the
2094# --recheck option to rerun configure.
2095#
2096EOF
2097# The following way of writing the cache mishandles newlines in values,
2098# but we know of no workaround that is simple, portable, and efficient.
2099# So, don't put newlines in cache variables' values.
2100# Ultrix sh set writes to stderr and can't be redirected directly,
2101# and sets the high bit in the cache file unless we assign to the vars.
2102(set) 2>&1 |
2103 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2104 *ac_space=\ *)
2105 # `set' does not quote correctly, so add quotes (double-quote substitution
2106 # turns \\\\ into \\, and sed turns \\ into \).
2107 sed -n \
2108 -e "s/'/'\\\\''/g" \
2109 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2110 ;;
2111 *)
2112 # `set' quotes correctly as required by POSIX, so do not add quotes.
2113 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2114 ;;
2115 esac >> confcache
2116if cmp -s $cache_file confcache; then
2117 :
2118else
2119 if test -w $cache_file; then
2120 echo "updating cache $cache_file"
2121 cat confcache > $cache_file
c45f211e 2122 else
dfac8a13 2123 echo "not updating unwritable cache $cache_file"
c45f211e
TT
2124 fi
2125fi
dfac8a13
TT
2126rm -f confcache
2127
2128
2129# Actually configure libtool. ac_aux_dir is where install-sh is found.
0fd91e0a
AO
2130AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2131MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2132LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2133AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2134objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2135deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
dfac8a13 2136${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0fd91e0a 2137$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
dfac8a13
TT
2138|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2139
2140# Reload cache, that may have been modified by ltconfig
2141if test -r "$cache_file"; then
2142 echo "loading cache $cache_file"
2143 . $cache_file
2144else
2145 echo "creating cache $cache_file"
2146 > $cache_file
2147fi
2148
2149
2150# This can be used to rebuild libtool when needed
0fd91e0a 2151LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
dfac8a13
TT
2152
2153# Always use our own libtool.
2154LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2155
2156# Redirect the config.log output again, so that the ltconfig log is not
2157# clobbered by the next message.
2158exec 5>>./config.log
2159
0fd91e0a
AO
2160
2161
2162
2163
2164
dfac8a13
TT
2165
2166if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2167 COMPPATH=.
2168else
2169 COMPPATH=..
2170fi
2171
2172
35241f18
CD
2173# Find CPP now so that any conditional tests below won't do it and
2174# thereby make the resulting definitions conditional.
2175echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f5cc59a7 2176echo "configure:2177: checking how to run the C preprocessor" >&5
dfac8a13
TT
2177# On Suns, sometimes $CPP names a directory.
2178if test -n "$CPP" && test -d "$CPP"; then
2179 CPP=
2180fi
2181if test -z "$CPP"; then
2182if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184else
2185 # This must be in double quotes, not single quotes, because CPP may get
2186 # substituted into the Makefile and "${CC-cc}" will confuse make.
2187 CPP="${CC-cc} -E"
2188 # On the NeXT, cc -E runs the code through the compiler's parser,
2189 # not just through cpp.
2190 cat > conftest.$ac_ext <<EOF
f5cc59a7 2191#line 2192 "configure"
dfac8a13
TT
2192#include "confdefs.h"
2193#include <assert.h>
2194Syntax Error
2195EOF
2196ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f5cc59a7 2197{ (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2198ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2199if test -z "$ac_err"; then
2200 :
2201else
2202 echo "$ac_err" >&5
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 CPP="${CC-cc} -E -traditional-cpp"
2207 cat > conftest.$ac_ext <<EOF
f5cc59a7 2208#line 2209 "configure"
dfac8a13
TT
2209#include "confdefs.h"
2210#include <assert.h>
2211Syntax Error
2212EOF
2213ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f5cc59a7 2214{ (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2215ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216if test -z "$ac_err"; then
2217 :
2218else
2219 echo "$ac_err" >&5
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2222 rm -rf conftest*
2223 CPP="${CC-cc} -nologo -E"
2224 cat > conftest.$ac_ext <<EOF
f5cc59a7 2225#line 2226 "configure"
dfac8a13
TT
2226#include "confdefs.h"
2227#include <assert.h>
2228Syntax Error
2229EOF
2230ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f5cc59a7 2231{ (eval echo configure:2232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2232ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2233if test -z "$ac_err"; then
2234 :
2235else
2236 echo "$ac_err" >&5
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2239 rm -rf conftest*
2240 CPP=/lib/cpp
2241fi
2242rm -f conftest*
2243fi
2244rm -f conftest*
2245fi
2246rm -f conftest*
2247 ac_cv_prog_CPP="$CPP"
2248fi
2249 CPP="$ac_cv_prog_CPP"
2250else
2251 ac_cv_prog_CPP="$CPP"
2252fi
2253echo "$ac_t""$CPP" 1>&6
2254
35241f18
CD
2255
2256if test -n "$with_cross_host"; then
2257 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2258 # may not work correctly, because the compiler may not be able to
2259 # link executables.
2260
2261 # We assume newlib. This lets us hard-code the functions we know
2262 # we'll have.
2263 cat >> confdefs.h <<\EOF
2264#define HAVE_MEMCPY 1
2265EOF
2266
2267 cat >> confdefs.h <<\EOF
2268#define HAVE_STRERROR 1
2269EOF
2270
2271
2272 # We ignore --with-system-zlib in this case.
2273 target_all=libzgcj.la
2274else
2275 for ac_hdr in unistd.h
dfac8a13
TT
2276do
2277ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2278echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f5cc59a7 2279echo "configure:2280: checking for $ac_hdr" >&5
dfac8a13
TT
2280if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282else
2283 cat > conftest.$ac_ext <<EOF
f5cc59a7 2284#line 2285 "configure"
dfac8a13
TT
2285#include "confdefs.h"
2286#include <$ac_hdr>
2287EOF
2288ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f5cc59a7 2289{ (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2290ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2291if test -z "$ac_err"; then
2292 rm -rf conftest*
2293 eval "ac_cv_header_$ac_safe=yes"
2294else
2295 echo "$ac_err" >&5
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 eval "ac_cv_header_$ac_safe=no"
2300fi
2301rm -f conftest*
2302fi
2303if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2306 cat >> confdefs.h <<EOF
2307#define $ac_tr_hdr 1
2308EOF
2309
2310else
2311 echo "$ac_t""no" 1>&6
c45f211e 2312fi
dfac8a13
TT
2313done
2314
2315for ac_func in getpagesize
2316do
2317echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f5cc59a7 2318echo "configure:2319: checking for $ac_func" >&5
dfac8a13
TT
2319if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2321else
2322 cat > conftest.$ac_ext <<EOF
f5cc59a7 2323#line 2324 "configure"
dfac8a13
TT
2324#include "confdefs.h"
2325/* System header to define __stub macros and hopefully few prototypes,
2326 which can conflict with char $ac_func(); below. */
2327#include <assert.h>
2328/* Override any gcc2 internal prototype to avoid an error. */
2329/* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2331char $ac_func();
2332
2333int main() {
2334
2335/* The GNU C library defines this for functions which it implements
2336 to always fail with ENOSYS. Some functions are actually named
2337 something starting with __ and the normal name is an alias. */
2338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2339choke me
2340#else
2341$ac_func();
2342#endif
c45f211e 2343
dfac8a13 2344; return 0; }
c45f211e 2345EOF
f5cc59a7 2346if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
dfac8a13
TT
2347 rm -rf conftest*
2348 eval "ac_cv_func_$ac_func=yes"
c45f211e 2349else
dfac8a13
TT
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2352 rm -rf conftest*
2353 eval "ac_cv_func_$ac_func=no"
2354fi
2355rm -f conftest*
c45f211e
TT
2356fi
2357
dfac8a13
TT
2358if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2361 cat >> confdefs.h <<EOF
2362#define $ac_tr_func 1
c45f211e 2363EOF
dfac8a13 2364
c45f211e 2365else
dfac8a13 2366 echo "$ac_t""no" 1>&6
c45f211e 2367fi
dfac8a13
TT
2368done
2369
2370echo $ac_n "checking for working mmap""... $ac_c" 1>&6
f5cc59a7 2371echo "configure:2372: checking for working mmap" >&5
dfac8a13
TT
2372if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2374else
2375 if test "$cross_compiling" = yes; then
2376 ac_cv_func_mmap_fixed_mapped=no
2377else
2378 cat > conftest.$ac_ext <<EOF
f5cc59a7 2379#line 2380 "configure"
dfac8a13
TT
2380#include "confdefs.h"
2381
2382/* Thanks to Mike Haertel and Jim Avera for this test.
2383 Here is a matrix of mmap possibilities:
2384 mmap private not fixed
2385 mmap private fixed at somewhere currently unmapped
2386 mmap private fixed at somewhere already mapped
2387 mmap shared not fixed
2388 mmap shared fixed at somewhere currently unmapped
2389 mmap shared fixed at somewhere already mapped
2390 For private mappings, we should verify that changes cannot be read()
2391 back from the file, nor mmap's back from the file at a different
2392 address. (There have been systems where private was not correctly
2393 implemented like the infamous i386 svr4.0, and systems where the
2394 VM page cache was not coherent with the filesystem buffer cache
2395 like early versions of FreeBSD and possibly contemporary NetBSD.)
2396 For shared mappings, we should conversely verify that changes get
2397 propogated back to all the places they're supposed to be.
c45f211e 2398
dfac8a13
TT
2399 Grep wants private fixed already mapped.
2400 The main things grep needs to know about mmap are:
2401 * does it exist and is it safe to write into the mmap'd area
2402 * how to use it (BSD variants) */
c45f211e 2403#include <sys/types.h>
dfac8a13 2404#include <fcntl.h>
c45f211e 2405#include <sys/mman.h>
dfac8a13
TT
2406
2407/* This mess was copied from the GNU getpagesize.h. */
2408#ifndef HAVE_GETPAGESIZE
2409# ifdef HAVE_UNISTD_H
2410# include <unistd.h>
2411# endif
2412
2413/* Assume that all systems that can run configure have sys/param.h. */
2414# ifndef HAVE_SYS_PARAM_H
2415# define HAVE_SYS_PARAM_H 1
2416# endif
2417
2418# ifdef _SC_PAGESIZE
2419# define getpagesize() sysconf(_SC_PAGESIZE)
2420# else /* no _SC_PAGESIZE */
2421# ifdef HAVE_SYS_PARAM_H
2422# include <sys/param.h>
2423# ifdef EXEC_PAGESIZE
2424# define getpagesize() EXEC_PAGESIZE
2425# else /* no EXEC_PAGESIZE */
2426# ifdef NBPG
2427# define getpagesize() NBPG * CLSIZE
2428# ifndef CLSIZE
2429# define CLSIZE 1
2430# endif /* no CLSIZE */
2431# else /* no NBPG */
2432# ifdef NBPC
2433# define getpagesize() NBPC
2434# else /* no NBPC */
2435# ifdef PAGESIZE
2436# define getpagesize() PAGESIZE
2437# endif /* PAGESIZE */
2438# endif /* no NBPC */
2439# endif /* no NBPG */
2440# endif /* no EXEC_PAGESIZE */
2441# else /* no HAVE_SYS_PARAM_H */
2442# define getpagesize() 8192 /* punt totally */
2443# endif /* no HAVE_SYS_PARAM_H */
2444# endif /* no _SC_PAGESIZE */
2445
2446#endif /* no HAVE_GETPAGESIZE */
2447
2448#ifdef __cplusplus
2449extern "C" { void *malloc(unsigned); }
2450#else
2451char *malloc();
2452#endif
2453
2454int
2455main()
2456{
2457 char *data, *data2, *data3;
2458 int i, pagesize;
2459 int fd;
2460
2461 pagesize = getpagesize();
2462
2463 /*
2464 * First, make a file with some known garbage in it.
2465 */
2466 data = malloc(pagesize);
2467 if (!data)
2468 exit(1);
2469 for (i = 0; i < pagesize; ++i)
2470 *(data + i) = rand();
2471 umask(0);
2472 fd = creat("conftestmmap", 0600);
2473 if (fd < 0)
2474 exit(1);
2475 if (write(fd, data, pagesize) != pagesize)
2476 exit(1);
2477 close(fd);
2478
2479 /*
2480 * Next, try to mmap the file at a fixed address which
2481 * already has something else allocated at it. If we can,
2482 * also make sure that we see the same garbage.
2483 */
2484 fd = open("conftestmmap", O_RDWR);
2485 if (fd < 0)
2486 exit(1);
2487 data2 = malloc(2 * pagesize);
2488 if (!data2)
2489 exit(1);
2490 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2491 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2492 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2493 exit(1);
2494 for (i = 0; i < pagesize; ++i)
2495 if (*(data + i) != *(data2 + i))
2496 exit(1);
2497
2498 /*
2499 * Finally, make sure that changes to the mapped area
2500 * do not percolate back to the file as seen by read().
2501 * (This is a bug on some variants of i386 svr4.0.)
2502 */
2503 for (i = 0; i < pagesize; ++i)
2504 *(data2 + i) = *(data2 + i) + 1;
2505 data3 = malloc(pagesize);
2506 if (!data3)
2507 exit(1);
2508 if (read(fd, data3, pagesize) != pagesize)
2509 exit(1);
2510 for (i = 0; i < pagesize; ++i)
2511 if (*(data + i) != *(data3 + i))
2512 exit(1);
2513 close(fd);
2514 unlink("conftestmmap");
2515 exit(0);
c45f211e 2516}
dfac8a13
TT
2517
2518EOF
f5cc59a7 2519if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
dfac8a13
TT
2520then
2521 ac_cv_func_mmap_fixed_mapped=yes
2522else
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -fr conftest*
2526 ac_cv_func_mmap_fixed_mapped=no
2527fi
2528rm -fr conftest*
2529fi
2530
2531fi
2532
2533echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2534if test $ac_cv_func_mmap_fixed_mapped = yes; then
2535 cat >> confdefs.h <<\EOF
2536#define HAVE_MMAP 1
2537EOF
2538
2539fi
2540
2541 for ac_func in memcpy strerror
2542do
2543echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f5cc59a7 2544echo "configure:2545: checking for $ac_func" >&5
dfac8a13
TT
2545if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2547else
2548 cat > conftest.$ac_ext <<EOF
f5cc59a7 2549#line 2550 "configure"
dfac8a13
TT
2550#include "confdefs.h"
2551/* System header to define __stub macros and hopefully few prototypes,
2552 which can conflict with char $ac_func(); below. */
2553#include <assert.h>
2554/* Override any gcc2 internal prototype to avoid an error. */
2555/* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2557char $ac_func();
2558
2559int main() {
2560
2561/* The GNU C library defines this for functions which it implements
2562 to always fail with ENOSYS. Some functions are actually named
2563 something starting with __ and the normal name is an alias. */
2564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2565choke me
2566#else
2567$ac_func();
2568#endif
2569
2570; return 0; }
2571EOF
f5cc59a7 2572if { (eval echo configure:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
dfac8a13
TT
2573 rm -rf conftest*
2574 eval "ac_cv_func_$ac_func=yes"
2575else
2576 echo "configure: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2578 rm -rf conftest*
2579 eval "ac_cv_func_$ac_func=no"
2580fi
2581rm -f conftest*
2582fi
2583
2584if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2585 echo "$ac_t""yes" 1>&6
2586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2587 cat >> confdefs.h <<EOF
2588#define $ac_tr_func 1
2589EOF
2590
2591else
2592 echo "$ac_t""no" 1>&6
2593fi
2594done
2595
79a9a529
TT
2596
2597 if test "$with_system_zlib" = yes; then
2598 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
f5cc59a7 2599echo "configure:2600: checking for deflate in -lz" >&5
79a9a529
TT
2600ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2601if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2603else
2604 ac_save_LIBS="$LIBS"
2605LIBS="-lz $LIBS"
2606cat > conftest.$ac_ext <<EOF
f5cc59a7 2607#line 2608 "configure"
79a9a529
TT
2608#include "confdefs.h"
2609/* Override any gcc2 internal prototype to avoid an error. */
2610/* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2612char deflate();
2613
2614int main() {
2615deflate()
2616; return 0; }
2617EOF
f5cc59a7 2618if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
79a9a529
TT
2619 rm -rf conftest*
2620 eval "ac_cv_lib_$ac_lib_var=yes"
2621else
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 rm -rf conftest*
2625 eval "ac_cv_lib_$ac_lib_var=no"
dfac8a13 2626fi
79a9a529
TT
2627rm -f conftest*
2628LIBS="$ac_save_LIBS"
2629
2630fi
2631if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 target_all=
2634else
2635 echo "$ac_t""no" 1>&6
2636target_all=libzgcj.la
2637fi
2638
2639 else
2640 target_all=libzgcj.la
2641 fi
2642fi
2643
2644
dfac8a13
TT
2645
2646for ac_hdr in unistd.h
2647do
2648ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2649echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f5cc59a7 2650echo "configure:2651: checking for $ac_hdr" >&5
dfac8a13
TT
2651if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2653else
2654 cat > conftest.$ac_ext <<EOF
f5cc59a7 2655#line 2656 "configure"
dfac8a13
TT
2656#include "confdefs.h"
2657#include <$ac_hdr>
2658EOF
2659ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f5cc59a7 2660{ (eval echo configure:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2661ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2662if test -z "$ac_err"; then
2663 rm -rf conftest*
2664 eval "ac_cv_header_$ac_safe=yes"
2665else
2666 echo "$ac_err" >&5
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 rm -rf conftest*
2670 eval "ac_cv_header_$ac_safe=no"
2671fi
2672rm -f conftest*
2673fi
2674if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2677 cat >> confdefs.h <<EOF
2678#define $ac_tr_hdr 1
2679EOF
2680
2681else
2682 echo "$ac_t""no" 1>&6
2683fi
2684done
2685
2686
b48ed568
TT
2687
2688
2689if test -z "$with_cross_host"; then
2690 USE_LIBDIR_TRUE=
2691 USE_LIBDIR_FALSE='#'
2692else
2693 USE_LIBDIR_TRUE='#'
2694 USE_LIBDIR_FALSE=
2695fi
2696
e093c992
AG
2697
2698if test -n "$with_target_subdir"; then
2699 TARGET_LIBRARY_TRUE=
2700 TARGET_LIBRARY_FALSE='#'
2701else
2702 TARGET_LIBRARY_TRUE='#'
2703 TARGET_LIBRARY_FALSE=
2704fi
2705
dfac8a13
TT
2706if test "${multilib}" = "yes"; then
2707 multilib_arg="--enable-multilib"
2708else
2709 multilib_arg=
2710fi
2711
2712trap '' 1 2 15
2713cat > confcache <<\EOF
2714# This file is a shell script that caches the results of configure
2715# tests run on this system so they can be shared between configure
2716# scripts and configure runs. It is not useful on other systems.
2717# If it contains results you don't want to keep, you may remove or edit it.
2718#
2719# By default, configure uses ./config.cache as the cache file,
2720# creating it if it does not exist already. You can give configure
2721# the --cache-file=FILE option to use a different cache file; that is
2722# what configure does when it calls configure scripts in
2723# subdirectories, so they share the cache.
2724# Giving --cache-file=/dev/null disables caching, for debugging configure.
2725# config.status only pays attention to the cache file if you give it the
2726# --recheck option to rerun configure.
2727#
c45f211e 2728EOF
dfac8a13
TT
2729# The following way of writing the cache mishandles newlines in values,
2730# but we know of no workaround that is simple, portable, and efficient.
2731# So, don't put newlines in cache variables' values.
2732# Ultrix sh set writes to stderr and can't be redirected directly,
2733# and sets the high bit in the cache file unless we assign to the vars.
2734(set) 2>&1 |
2735 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2736 *ac_space=\ *)
2737 # `set' does not quote correctly, so add quotes (double-quote substitution
2738 # turns \\\\ into \\, and sed turns \\ into \).
2739 sed -n \
2740 -e "s/'/'\\\\''/g" \
2741 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2742 ;;
2743 *)
2744 # `set' quotes correctly as required by POSIX, so do not add quotes.
2745 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2746 ;;
2747 esac >> confcache
2748if cmp -s $cache_file confcache; then
2749 :
c45f211e 2750else
dfac8a13
TT
2751 if test -w $cache_file; then
2752 echo "updating cache $cache_file"
2753 cat confcache > $cache_file
2754 else
2755 echo "not updating unwritable cache $cache_file"
2756 fi
2757fi
2758rm -f confcache
2759
2760trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2761
2762test "x$prefix" = xNONE && prefix=$ac_default_prefix
2763# Let make expand exec_prefix.
2764test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2765
2766# Any assignment to VPATH causes Sun make to only execute
2767# the first set of double-colon rules, so remove it if not needed.
2768# If there is a colon in the path, we need to keep it.
2769if test "x$srcdir" = x.; then
2770 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
c45f211e
TT
2771fi
2772
dfac8a13
TT
2773trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2774
2775# Transform confdefs.h into DEFS.
2776# Protect against shell expansion while executing Makefile rules.
2777# Protect against Makefile macro expansion.
2778cat > conftest.defs <<\EOF
2779s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2780s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2781s%\[%\\&%g
2782s%\]%\\&%g
2783s%\$%$$%g
2784EOF
2785DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2786rm -f conftest.defs
2787
2788
2789# Without the "./", some shells look in PATH for config.status.
2790: ${CONFIG_STATUS=./config.status}
2791
2792echo creating $CONFIG_STATUS
2793rm -f $CONFIG_STATUS
2794cat > $CONFIG_STATUS <<EOF
2795#! /bin/sh
2796# Generated automatically by configure.
2797# Run this file to recreate the current configuration.
2798# This directory was configured as follows,
2799# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2800#
2801# $0 $ac_configure_args
2802#
2803# Compiler output produced by configure, useful for debugging
2804# configure, is in ./config.log if it exists.
2805
2806ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2807for ac_option
2808do
2809 case "\$ac_option" in
2810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2811 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2812 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2813 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2814 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2815 exit 0 ;;
2816 -help | --help | --hel | --he | --h)
2817 echo "\$ac_cs_usage"; exit 0 ;;
2818 *) echo "\$ac_cs_usage"; exit 1 ;;
2819 esac
2820done
2821
2822ac_given_srcdir=$srcdir
2823ac_given_INSTALL="$INSTALL"
2824
2825trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2826EOF
2827cat >> $CONFIG_STATUS <<EOF
2828
2829# Protect against being on the right side of a sed subst in config.status.
2830sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2831 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2832$ac_vpsub
2833$extrasub
2834s%@SHELL@%$SHELL%g
2835s%@CFLAGS@%$CFLAGS%g
2836s%@CPPFLAGS@%$CPPFLAGS%g
2837s%@CXXFLAGS@%$CXXFLAGS%g
2838s%@FFLAGS@%$FFLAGS%g
2839s%@DEFS@%$DEFS%g
2840s%@LDFLAGS@%$LDFLAGS%g
2841s%@LIBS@%$LIBS%g
2842s%@exec_prefix@%$exec_prefix%g
2843s%@prefix@%$prefix%g
2844s%@program_transform_name@%$program_transform_name%g
2845s%@bindir@%$bindir%g
2846s%@sbindir@%$sbindir%g
2847s%@libexecdir@%$libexecdir%g
2848s%@datadir@%$datadir%g
2849s%@sysconfdir@%$sysconfdir%g
2850s%@sharedstatedir@%$sharedstatedir%g
2851s%@localstatedir@%$localstatedir%g
2852s%@libdir@%$libdir%g
2853s%@includedir@%$includedir%g
2854s%@oldincludedir@%$oldincludedir%g
2855s%@infodir@%$infodir%g
2856s%@mandir@%$mandir%g
0fd91e0a 2857s%@zlib_basedir@%$zlib_basedir%g
dfac8a13
TT
2858s%@host@%$host%g
2859s%@host_alias@%$host_alias%g
2860s%@host_cpu@%$host_cpu%g
2861s%@host_vendor@%$host_vendor%g
2862s%@host_os@%$host_os%g
2863s%@target@%$target%g
2864s%@target_alias@%$target_alias%g
2865s%@target_cpu@%$target_cpu%g
2866s%@target_vendor@%$target_vendor%g
2867s%@target_os@%$target_os%g
2868s%@build@%$build%g
2869s%@build_alias@%$build_alias%g
2870s%@build_cpu@%$build_cpu%g
2871s%@build_vendor@%$build_vendor%g
2872s%@build_os@%$build_os%g
8b55628e 2873s%@mkinstalldirs@%$mkinstalldirs%g
dfac8a13
TT
2874s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2875s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2876s%@INSTALL_DATA@%$INSTALL_DATA%g
2877s%@PACKAGE@%$PACKAGE%g
2878s%@VERSION@%$VERSION%g
2879s%@ACLOCAL@%$ACLOCAL%g
2880s%@AUTOCONF@%$AUTOCONF%g
2881s%@AUTOMAKE@%$AUTOMAKE%g
2882s%@AUTOHEADER@%$AUTOHEADER%g
2883s%@MAKEINFO@%$MAKEINFO%g
2884s%@SET_MAKE@%$SET_MAKE%g
2885s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2886s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2887s%@MAINT@%$MAINT%g
e093c992 2888s%@CC@%$CC%g
dfac8a13 2889s%@EXEEXT@%$EXEEXT%g
dfac8a13 2890s%@LN_S@%$LN_S%g
0fd91e0a
AO
2891s%@OBJEXT@%$OBJEXT%g
2892s%@RANLIB@%$RANLIB%g
2893s%@STRIP@%$STRIP%g
dfac8a13
TT
2894s%@LIBTOOL@%$LIBTOOL%g
2895s%@COMPPATH@%$COMPPATH%g
2896s%@CPP@%$CPP%g
79a9a529 2897s%@target_all@%$target_all%g
b48ed568
TT
2898s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2899s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
e093c992
AG
2900s%@TARGET_LIBRARY_TRUE@%$TARGET_LIBRARY_TRUE%g
2901s%@TARGET_LIBRARY_FALSE@%$TARGET_LIBRARY_FALSE%g
dfac8a13
TT
2902
2903CEOF
2904EOF
2905
2906cat >> $CONFIG_STATUS <<\EOF
2907
2908# Split the substitutions into bite-sized pieces for seds with
2909# small command number limits, like on Digital OSF/1 and HP-UX.
2910ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2911ac_file=1 # Number of current file.
2912ac_beg=1 # First line for current file.
2913ac_end=$ac_max_sed_cmds # Line after last line for current file.
2914ac_more_lines=:
2915ac_sed_cmds=""
2916while $ac_more_lines; do
2917 if test $ac_beg -gt 1; then
2918 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2919 else
2920 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2921 fi
2922 if test ! -s conftest.s$ac_file; then
2923 ac_more_lines=false
2924 rm -f conftest.s$ac_file
2925 else
2926 if test -z "$ac_sed_cmds"; then
2927 ac_sed_cmds="sed -f conftest.s$ac_file"
c45f211e 2928 else
dfac8a13
TT
2929 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2930 fi
2931 ac_file=`expr $ac_file + 1`
2932 ac_beg=$ac_end
2933 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2934 fi
2935done
2936if test -z "$ac_sed_cmds"; then
2937 ac_sed_cmds=cat
2938fi
2939EOF
2940
2941cat >> $CONFIG_STATUS <<EOF
2942
2943CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2944EOF
2945cat >> $CONFIG_STATUS <<\EOF
2946for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2948 case "$ac_file" in
2949 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2950 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2951 *) ac_file_in="${ac_file}.in" ;;
2952 esac
2953
2954 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2955
2956 # Remove last slash and all that follows it. Not all systems have dirname.
2957 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2958 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2959 # The file is in a subdirectory.
2960 test ! -d "$ac_dir" && mkdir "$ac_dir"
2961 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2962 # A "../" for each directory in $ac_dir_suffix.
2963 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2964 else
2965 ac_dir_suffix= ac_dots=
2966 fi
2967
2968 case "$ac_given_srcdir" in
2969 .) srcdir=.
2970 if test -z "$ac_dots"; then top_srcdir=.
2971 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2972 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2973 *) # Relative path.
2974 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2975 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2976 esac
2977
2978 case "$ac_given_INSTALL" in
2979 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2980 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2981 esac
2982
2983 echo creating "$ac_file"
2984 rm -f "$ac_file"
2985 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2986 case "$ac_file" in
2987 *Makefile*) ac_comsub="1i\\
2988# $configure_input" ;;
2989 *) ac_comsub= ;;
2990 esac
2991
2992 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2993 sed -e "$ac_comsub
2994s%@configure_input@%$configure_input%g
2995s%@srcdir@%$srcdir%g
2996s%@top_srcdir@%$top_srcdir%g
2997s%@INSTALL@%$INSTALL%g
2998" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2999fi; done
3000rm -f conftest.s*
3001
3002EOF
3003cat >> $CONFIG_STATUS <<EOF
3004srcdir=${srcdir}
3005host=${host}
3006target=${target}
3007with_multisubdir=${with_multisubdir}
3008ac_configure_args="${multilib_arg} ${ac_configure_args}"
3009CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3010zlib_basedir=${zlib_basedir}
3011CC="${CC}"
3012CXX="${CXX}"
3013
3014EOF
3015cat >> $CONFIG_STATUS <<\EOF
3016if test -n "$CONFIG_FILES"; then
6706f116 3017 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
dfac8a13
TT
3018 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
3019fi
3020exit 0
3021EOF
3022chmod +x $CONFIG_STATUS
3023rm -fr confdefs* $ac_clean_files
3024test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
c45f211e 3025