]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
* invoke.texi: Add more options to summary list.
[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
AO
559
560
561if test "x${with_target_subdir}" != x && \
562 test "${srcdir}" = "."; then
563 if test "${with_target_subdir}" != "."; then
564 zlib_basedir="${srcdir}/${with_multisrctop}../"
565 else
566 zlib_basedir="${srcdir}/${with_multisrctop}"
567 fi
568else
569 zlib_basedir="${srcdir}/"
570fi
571
dfac8a13 572ac_aux_dir=
0fd91e0a 573for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do
dfac8a13
TT
574 if test -f $ac_dir/install-sh; then
575 ac_aux_dir=$ac_dir
576 ac_install_sh="$ac_aux_dir/install-sh -c"
577 break
578 elif test -f $ac_dir/install.sh; then
579 ac_aux_dir=$ac_dir
580 ac_install_sh="$ac_aux_dir/install.sh -c"
581 break
582 fi
583done
584if test -z "$ac_aux_dir"; then
0fd91e0a 585 { echo "configure: error: can not find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." 1>&2; exit 1; }
dfac8a13
TT
586fi
587ac_config_guess=$ac_aux_dir/config.guess
588ac_config_sub=$ac_aux_dir/config.sub
589ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
590
0fd91e0a
AO
591if :; then :; else
592 # This overrides the previous occurrence for automake, but not for
593 # autoconf, which is exactly what we want.
594 ac_aux_dir=
595for ac_dir in .. $srcdir/..; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
604 fi
605done
606if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
608fi
609ac_config_guess=$ac_aux_dir/config.guess
610ac_config_sub=$ac_aux_dir/config.sub
611ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612
613fi
614
dfac8a13
TT
615
616# Do some error checking and defaulting for the host and target type.
617# The inputs are:
618# configure --host=HOST --target=TARGET --build=BUILD NONOPT
619#
620# The rules are:
621# 1. You are not allowed to specify --host, --target, and nonopt at the
622# same time.
623# 2. Host defaults to nonopt.
624# 3. If nonopt is not specified, then host defaults to the current host,
625# as determined by config.guess.
626# 4. Target and build default to nonopt.
627# 5. If nonopt is not specified, then target and build default to host.
628
629# The aliases save the names the user supplied, while $host etc.
630# will get canonicalized.
631case $host---$target---$nonopt in
632NONE---*---* | *---NONE---* | *---*---NONE) ;;
633*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
634esac
635
636
637# Make sure we can run config.sub.
638if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
639else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
640fi
641
642echo $ac_n "checking host system type""... $ac_c" 1>&6
0fd91e0a 643echo "configure:644: checking host system type" >&5
dfac8a13
TT
644
645host_alias=$host
646case "$host_alias" in
647NONE)
648 case $nonopt in
649 NONE)
650 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
651 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
652 fi ;;
653 *) host_alias=$nonopt ;;
654 esac ;;
655esac
656
657host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
658host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661echo "$ac_t""$host" 1>&6
662
663echo $ac_n "checking target system type""... $ac_c" 1>&6
0fd91e0a 664echo "configure:665: checking target system type" >&5
dfac8a13
TT
665
666target_alias=$target
667case "$target_alias" in
668NONE)
669 case $nonopt in
670 NONE) target_alias=$host_alias ;;
671 *) target_alias=$nonopt ;;
672 esac ;;
673esac
674
675target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
676target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679echo "$ac_t""$target" 1>&6
680
681echo $ac_n "checking build system type""... $ac_c" 1>&6
0fd91e0a 682echo "configure:683: checking build system type" >&5
dfac8a13
TT
683
684build_alias=$build
685case "$build_alias" in
686NONE)
687 case $nonopt in
688 NONE) build_alias=$host_alias ;;
689 *) build_alias=$nonopt ;;
690 esac ;;
691esac
692
693build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
694build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
697echo "$ac_t""$build" 1>&6
698
699test "$host_alias" != "$target_alias" &&
700 test "$program_prefix$program_suffix$program_transform_name" = \
701 NONENONEs,x,x, &&
702 program_prefix=${target_alias}-
703
704# Find a good install program. We prefer a C program (faster),
705# so one script is as good as another. But avoid the broken or
706# incompatible versions:
707# SysV /etc/install, /usr/sbin/install
708# SunOS /usr/etc/install
709# IRIX /sbin/install
710# AIX /bin/install
711# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
712# AFS /usr/afsws/bin/install, which mishandles nonexistent args
713# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
714# ./install, which can be erroneously created by make from ./install.sh.
715echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
0fd91e0a 716echo "configure:717: checking for a BSD compatible install" >&5
dfac8a13
TT
717if test -z "$INSTALL"; then
718if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
720else
721 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
722 for ac_dir in $PATH; do
723 # Account for people who put trailing slashes in PATH elements.
724 case "$ac_dir/" in
725 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
726 *)
727 # OSF1 and SCO ODT 3.0 have their own names for install.
728 # Don't use installbsd from OSF since it installs stuff as root
729 # by default.
730 for ac_prog in ginstall scoinst install; do
731 if test -f $ac_dir/$ac_prog; then
732 if test $ac_prog = install &&
733 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
734 # AIX install. It has an incompatible calling convention.
735 :
736 else
737 ac_cv_path_install="$ac_dir/$ac_prog -c"
738 break 2
739 fi
740 fi
741 done
742 ;;
743 esac
744 done
745 IFS="$ac_save_IFS"
746
747fi
748 if test "${ac_cv_path_install+set}" = set; then
749 INSTALL="$ac_cv_path_install"
750 else
751 # As a last resort, use the slow shell script. We don't cache a
752 # path for INSTALL within a source directory, because that will
753 # break other packages using the cache if that directory is
754 # removed, or if the path is relative.
755 INSTALL="$ac_install_sh"
756 fi
757fi
758echo "$ac_t""$INSTALL" 1>&6
759
760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
761# It thinks the first close brace ends the variable substitution.
762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
763
764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
765
766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
767
768echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
0fd91e0a 769echo "configure:770: checking whether build environment is sane" >&5
dfac8a13
TT
770# Just in case
771sleep 1
772echo timestamp > conftestfile
773# Do `set' in a subshell so we don't clobber the current shell's
774# arguments. Must try -L first in case configure is actually a
775# symlink; some systems play weird games with the mod time of symlinks
776# (eg FreeBSD returns the mod time of the symlink's containing
777# directory).
778if (
779 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
780 if test "$*" = "X"; then
781 # -L didn't work.
782 set X `ls -t $srcdir/configure conftestfile`
783 fi
784 if test "$*" != "X $srcdir/configure conftestfile" \
785 && test "$*" != "X conftestfile $srcdir/configure"; then
786
787 # If neither matched, then we have a broken ls. This can happen
788 # if, for instance, CONFIG_SHELL is bash and it inherits a
789 # broken ls alias from the environment. This has actually
790 # happened. Such a system could not be considered "sane".
791 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
792alias in your environment" 1>&2; exit 1; }
793 fi
794
795 test "$2" = conftestfile
796 )
797then
798 # Ok.
799 :
800else
801 { echo "configure: error: newly created file is older than distributed files!
802Check your system clock" 1>&2; exit 1; }
803fi
804rm -f conftest*
805echo "$ac_t""yes" 1>&6
806if test "$program_transform_name" = s,x,x,; then
807 program_transform_name=
808else
809 # Double any \ or $. echo might interpret backslashes.
810 cat <<\EOF_SED > conftestsed
811s,\\,\\\\,g; s,\$,$$,g
812EOF_SED
813 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
814 rm -f conftestsed
815fi
816test "$program_prefix" != NONE &&
817 program_transform_name="s,^,${program_prefix},; $program_transform_name"
818# Use a double $ so make ignores it.
819test "$program_suffix" != NONE &&
820 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
821
822# sed with no file args requires a program.
823test "$program_transform_name" = "" && program_transform_name="s,x,x,"
824
825echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
0fd91e0a 826echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
dfac8a13
TT
827set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
828if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830else
831 cat > conftestmake <<\EOF
832all:
833 @echo 'ac_maketemp="${MAKE}"'
834EOF
835# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
836eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
837if test -n "$ac_maketemp"; then
838 eval ac_cv_prog_make_${ac_make}_set=yes
839else
840 eval ac_cv_prog_make_${ac_make}_set=no
841fi
842rm -f conftestmake
843fi
844if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
845 echo "$ac_t""yes" 1>&6
846 SET_MAKE=
847else
848 echo "$ac_t""no" 1>&6
849 SET_MAKE="MAKE=${MAKE-make}"
850fi
851
852
853PACKAGE=zlib
854
855VERSION=1.1.3
856
857if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
858 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
859fi
860cat >> confdefs.h <<EOF
861#define PACKAGE "$PACKAGE"
862EOF
863
864cat >> confdefs.h <<EOF
865#define VERSION "$VERSION"
866EOF
867
868
869
870missing_dir=`cd $ac_aux_dir && pwd`
871echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
0fd91e0a 872echo "configure:873: checking for working aclocal" >&5
dfac8a13
TT
873# Run test in a subshell; some versions of sh will print an error if
874# an executable is not found, even if stderr is redirected.
875# Redirect stdin to placate older versions of autoconf. Sigh.
876if (aclocal --version) < /dev/null > /dev/null 2>&1; then
877 ACLOCAL=aclocal
878 echo "$ac_t""found" 1>&6
879else
880 ACLOCAL="$missing_dir/missing aclocal"
881 echo "$ac_t""missing" 1>&6
882fi
883
884echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
0fd91e0a 885echo "configure:886: checking for working autoconf" >&5
dfac8a13
TT
886# Run test in a subshell; some versions of sh will print an error if
887# an executable is not found, even if stderr is redirected.
888# Redirect stdin to placate older versions of autoconf. Sigh.
889if (autoconf --version) < /dev/null > /dev/null 2>&1; then
890 AUTOCONF=autoconf
891 echo "$ac_t""found" 1>&6
892else
893 AUTOCONF="$missing_dir/missing autoconf"
894 echo "$ac_t""missing" 1>&6
895fi
896
897echo $ac_n "checking for working automake""... $ac_c" 1>&6
0fd91e0a 898echo "configure:899: checking for working automake" >&5
dfac8a13
TT
899# Run test in a subshell; some versions of sh will print an error if
900# an executable is not found, even if stderr is redirected.
901# Redirect stdin to placate older versions of autoconf. Sigh.
902if (automake --version) < /dev/null > /dev/null 2>&1; then
903 AUTOMAKE=automake
904 echo "$ac_t""found" 1>&6
905else
906 AUTOMAKE="$missing_dir/missing automake"
907 echo "$ac_t""missing" 1>&6
908fi
909
910echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
0fd91e0a 911echo "configure:912: checking for working autoheader" >&5
dfac8a13
TT
912# Run test in a subshell; some versions of sh will print an error if
913# an executable is not found, even if stderr is redirected.
914# Redirect stdin to placate older versions of autoconf. Sigh.
915if (autoheader --version) < /dev/null > /dev/null 2>&1; then
916 AUTOHEADER=autoheader
917 echo "$ac_t""found" 1>&6
918else
919 AUTOHEADER="$missing_dir/missing autoheader"
920 echo "$ac_t""missing" 1>&6
921fi
922
923echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
0fd91e0a 924echo "configure:925: checking for working makeinfo" >&5
dfac8a13
TT
925# Run test in a subshell; some versions of sh will print an error if
926# an executable is not found, even if stderr is redirected.
927# Redirect stdin to placate older versions of autoconf. Sigh.
928if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
929 MAKEINFO=makeinfo
930 echo "$ac_t""found" 1>&6
931else
932 MAKEINFO="$missing_dir/missing makeinfo"
933 echo "$ac_t""missing" 1>&6
934fi
935
936
937
e093c992 938echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
0fd91e0a 939echo "configure:940: checking whether to enable maintainer-specific portions of Makefiles" >&5
e093c992
AG
940 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
941if test "${enable_maintainer_mode+set}" = set; then
942 enableval="$enable_maintainer_mode"
943 USE_MAINTAINER_MODE=$enableval
944else
945 USE_MAINTAINER_MODE=no
946fi
947
948 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
949
950
951if test $USE_MAINTAINER_MODE = yes; then
952 MAINTAINER_MODE_TRUE=
953 MAINTAINER_MODE_FALSE='#'
954else
955 MAINTAINER_MODE_TRUE='#'
956 MAINTAINER_MODE_FALSE=
957fi
958 MAINT=$MAINTAINER_MODE_TRUE
959
960
961
dfac8a13
TT
962# Check whether --with-target-subdir or --without-target-subdir was given.
963if test "${with_target_subdir+set}" = set; then
964 withval="$with_target_subdir"
965 :
966fi
967
968# Check whether --with-cross-host or --without-cross-host was given.
969if test "${with_cross_host+set}" = set; then
970 withval="$with_cross_host"
971 :
972fi
973
974
975# Check whether --enable-multilib or --disable-multilib was given.
976if test "${enable_multilib+set}" = set; then
977 enableval="$enable_multilib"
978 case "${enableval}" in
979 yes) multilib=yes ;;
980 no) multilib=no ;;
981 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
982 esac
983else
67d08194 984 test -z "$with_target_subdir" && multilib=no || multilib=yes
dfac8a13
TT
985fi
986
79a9a529
TT
987# Check whether --with-system-zlib or --without-system-zlib was given.
988if test "${with_system_zlib+set}" = set; then
989 withval="$with_system_zlib"
990 :
991fi
992
993
025fd00e 994
dfac8a13
TT
995# Extract the first word of "gcc", so it can be a program name with args.
996set dummy gcc; ac_word=$2
997echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0fd91e0a 998echo "configure:999: checking for $ac_word" >&5
dfac8a13
TT
999if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1001else
1002 if test -n "$CC"; then
1003 ac_cv_prog_CC="$CC" # Let the user override the test.
1004else
1005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1006 ac_dummy="$PATH"
1007 for ac_dir in $ac_dummy; do
1008 test -z "$ac_dir" && ac_dir=.
1009 if test -f $ac_dir/$ac_word; then
1010 ac_cv_prog_CC="gcc"
1011 break
1012 fi
1013 done
1014 IFS="$ac_save_ifs"
1015fi
1016fi
1017CC="$ac_cv_prog_CC"
1018if test -n "$CC"; then
1019 echo "$ac_t""$CC" 1>&6
1020else
1021 echo "$ac_t""no" 1>&6
1022fi
1023
1024if test -z "$CC"; then
1025 # Extract the first word of "cc", so it can be a program name with args.
1026set dummy cc; ac_word=$2
1027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0fd91e0a 1028echo "configure:1029: checking for $ac_word" >&5
dfac8a13
TT
1029if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1031else
1032 if test -n "$CC"; then
1033 ac_cv_prog_CC="$CC" # Let the user override the test.
1034else
1035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1036 ac_prog_rejected=no
1037 ac_dummy="$PATH"
1038 for ac_dir in $ac_dummy; do
1039 test -z "$ac_dir" && ac_dir=.
1040 if test -f $ac_dir/$ac_word; then
1041 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1042 ac_prog_rejected=yes
1043 continue
1044 fi
1045 ac_cv_prog_CC="cc"
1046 break
1047 fi
1048 done
1049 IFS="$ac_save_ifs"
1050if test $ac_prog_rejected = yes; then
1051 # We found a bogon in the path, so make sure we never use it.
1052 set dummy $ac_cv_prog_CC
1053 shift
1054 if test $# -gt 0; then
1055 # We chose a different compiler from the bogus one.
1056 # However, it has the same basename, so the bogon will be chosen
1057 # first if we set CC to just the basename; use the full file name.
1058 shift
1059 set dummy "$ac_dir/$ac_word" "$@"
1060 shift
1061 ac_cv_prog_CC="$@"
1062 fi
1063fi
1064fi
1065fi
1066CC="$ac_cv_prog_CC"
1067if test -n "$CC"; then
1068 echo "$ac_t""$CC" 1>&6
1069else
1070 echo "$ac_t""no" 1>&6
1071fi
1072
1073 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1074fi
1075
1076echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0fd91e0a 1077echo "configure:1078: checking whether we are using GNU C" >&5
dfac8a13
TT
1078if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1080else
1081 cat > conftest.c <<EOF
1082#ifdef __GNUC__
1083 yes;
1084#endif
1085EOF
0fd91e0a 1086if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
dfac8a13
TT
1087 ac_cv_prog_gcc=yes
1088else
1089 ac_cv_prog_gcc=no
1090fi
1091fi
1092
1093echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1094
1095if test $ac_cv_prog_gcc = yes; then
1096 GCC=yes
1097 ac_test_CFLAGS="${CFLAGS+set}"
1098 ac_save_CFLAGS="$CFLAGS"
1099 CFLAGS=
1100 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0fd91e0a 1101echo "configure:1102: checking whether ${CC-cc} accepts -g" >&5
dfac8a13
TT
1102if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104else
1105 echo 'void f(){}' > conftest.c
1106if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1107 ac_cv_prog_cc_g=yes
1108else
1109 ac_cv_prog_cc_g=no
1110fi
1111rm -f conftest*
1112
1113fi
1114
1115echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1116 if test "$ac_test_CFLAGS" = set; then
1117 CFLAGS="$ac_save_CFLAGS"
1118 elif test $ac_cv_prog_cc_g = yes; then
1119 CFLAGS="-g -O2"
1120 else
1121 CFLAGS="-O2"
1122 fi
1123else
1124 GCC=
1125 test "${CFLAGS+set}" = set || CFLAGS="-g"
1126fi
1127
e093c992
AG
1128# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1129# at least currently, we never actually build a program, so we never
1130# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1131# fails, because we are probably configuring with a cross compiler
1132# which cant create executables. So we include AC_EXEEXT to keep
1133# automake happy, but we dont execute it, since we dont care about
1134# the result.
1135if false; then
1136 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
0fd91e0a 1137echo "configure:1138: checking for Cygwin environment" >&5
5d836b57
TT
1138if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1140else
1141 cat > conftest.$ac_ext <<EOF
0fd91e0a 1142#line 1143 "configure"
5d836b57
TT
1143#include "confdefs.h"
1144
1145int main() {
1146
1147#ifndef __CYGWIN__
1148#define __CYGWIN__ __CYGWIN32__
1149#endif
1150return __CYGWIN__;
1151; return 0; }
1152EOF
0fd91e0a 1153if { (eval echo configure:1154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5d836b57
TT
1154 rm -rf conftest*
1155 ac_cv_cygwin=yes
1156else
1157 echo "configure: failed program was:" >&5
1158 cat conftest.$ac_ext >&5
1159 rm -rf conftest*
1160 ac_cv_cygwin=no
1161fi
1162rm -f conftest*
1163rm -f conftest*
1164fi
1165
1166echo "$ac_t""$ac_cv_cygwin" 1>&6
1167CYGWIN=
1168test "$ac_cv_cygwin" = yes && CYGWIN=yes
1169echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
0fd91e0a 1170echo "configure:1171: checking for mingw32 environment" >&5
5d836b57
TT
1171if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173else
1174 cat > conftest.$ac_ext <<EOF
0fd91e0a 1175#line 1176 "configure"
5d836b57
TT
1176#include "confdefs.h"
1177
1178int main() {
1179return __MINGW32__;
1180; return 0; }
1181EOF
0fd91e0a 1182if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5d836b57
TT
1183 rm -rf conftest*
1184 ac_cv_mingw32=yes
1185else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 ac_cv_mingw32=no
1190fi
1191rm -f conftest*
1192rm -f conftest*
1193fi
1194
1195echo "$ac_t""$ac_cv_mingw32" 1>&6
1196MINGW32=
1197test "$ac_cv_mingw32" = yes && MINGW32=yes
1198
1199
1200echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
0fd91e0a 1201echo "configure:1202: checking for executable suffix" >&5
5d836b57
TT
1202if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204else
1205 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1206 ac_cv_exeext=.exe
1207else
1208 rm -f conftest*
1209 echo 'int main () { return 0; }' > conftest.$ac_ext
1210 ac_cv_exeext=
0fd91e0a 1211 if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5d836b57
TT
1212 for file in conftest.*; do
1213 case $file in
35241f18 1214 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5d836b57
TT
1215 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1216 esac
1217 done
1218 else
1219 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1220 fi
1221 rm -f conftest*
1222 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1223fi
1224fi
1225
1226EXEEXT=""
1227test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1228echo "$ac_t""${ac_cv_exeext}" 1>&6
1229ac_exeext=$EXEEXT
1230
5d836b57 1231fi
dfac8a13
TT
1232# Check whether --enable-shared or --disable-shared was given.
1233if test "${enable_shared+set}" = set; then
1234 enableval="$enable_shared"
1235 p=${PACKAGE-default}
0fd91e0a 1236case $enableval in
dfac8a13
TT
1237yes) enable_shared=yes ;;
1238no) enable_shared=no ;;
1239*)
1240 enable_shared=no
1241 # Look at the argument we got. We use all the common list separators.
1242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1243 for pkg in $enableval; do
1244 if test "X$pkg" = "X$p"; then
1245 enable_shared=yes
1246 fi
1247 done
1248 IFS="$ac_save_ifs"
1249 ;;
1250esac
1251else
1252 enable_shared=yes
1253fi
1254
1255# Check whether --enable-static or --disable-static was given.
1256if test "${enable_static+set}" = set; then
1257 enableval="$enable_static"
1258 p=${PACKAGE-default}
0fd91e0a 1259case $enableval in
dfac8a13
TT
1260yes) enable_static=yes ;;
1261no) enable_static=no ;;
1262*)
1263 enable_static=no
1264 # Look at the argument we got. We use all the common list separators.
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1266 for pkg in $enableval; do
1267 if test "X$pkg" = "X$p"; then
1268 enable_static=yes
1269 fi
1270 done
1271 IFS="$ac_save_ifs"
1272 ;;
1273esac
1274else
1275 enable_static=yes
1276fi
1277
1278# Check whether --enable-fast-install or --disable-fast-install was given.
1279if test "${enable_fast_install+set}" = set; then
1280 enableval="$enable_fast_install"
1281 p=${PACKAGE-default}
0fd91e0a 1282case $enableval in
dfac8a13
TT
1283yes) enable_fast_install=yes ;;
1284no) enable_fast_install=no ;;
1285*)
1286 enable_fast_install=no
1287 # Look at the argument we got. We use all the common list separators.
1288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1289 for pkg in $enableval; do
1290 if test "X$pkg" = "X$p"; then
1291 enable_fast_install=yes
1292 fi
1293 done
1294 IFS="$ac_save_ifs"
1295 ;;
1296esac
1297else
1298 enable_fast_install=yes
1299fi
1300
dfac8a13
TT
1301# Check whether --with-gnu-ld or --without-gnu-ld was given.
1302if test "${with_gnu_ld+set}" = set; then
1303 withval="$with_gnu_ld"
1304 test "$withval" = no || with_gnu_ld=yes
1305else
1306 with_gnu_ld=no
1307fi
1308
1309ac_prog=ld
0fd91e0a 1310if test "$GCC" = yes; then
dfac8a13
TT
1311 # Check if gcc -print-prog-name=ld gives a path.
1312 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
0fd91e0a
AO
1313echo "configure:1314: checking for ld used by GCC" >&5
1314 case $host in
1315 *-*-mingw*)
1316 # gcc leaves a trailing carriage return which upsets mingw
1317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1318 *)
1319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1320 esac
1321 case $ac_prog in
dfac8a13 1322 # Accept absolute paths.
0fd91e0a 1323 [\\/]* | [A-Za-z]:[\\/]*)
dfac8a13
TT
1324 re_direlt='/[^/][^/]*/\.\./'
1325 # Canonicalize the path of ld
1326 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1328 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1329 done
1330 test -z "$LD" && LD="$ac_prog"
1331 ;;
1332 "")
1333 # If it fails, then pretend we aren't using GCC.
1334 ac_prog=ld
1335 ;;
1336 *)
1337 # If it is relative, then search for the first ld in PATH.
1338 with_gnu_ld=unknown
1339 ;;
1340 esac
1341elif test "$with_gnu_ld" = yes; then
1342 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
0fd91e0a 1343echo "configure:1344: checking for GNU ld" >&5
dfac8a13
TT
1344else
1345 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
0fd91e0a 1346echo "configure:1347: checking for non-GNU ld" >&5
dfac8a13 1347fi
0fd91e0a 1348if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
dfac8a13
TT
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350else
1351 if test -z "$LD"; then
0fd91e0a 1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
1353 for ac_dir in $PATH; do
1354 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
1355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1356 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13
TT
1357 # Check to see if the program is GNU ld. I'd rather use --version,
1358 # but apparently some GNU ld's only accept -v.
1359 # Break only if it was the GNU/non-GNU ld that we prefer.
0fd91e0a 1360 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
dfac8a13
TT
1361 test "$with_gnu_ld" != no && break
1362 else
1363 test "$with_gnu_ld" != yes && break
1364 fi
1365 fi
1366 done
1367 IFS="$ac_save_ifs"
1368else
0fd91e0a 1369 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
1370fi
1371fi
1372
0fd91e0a 1373LD="$lt_cv_path_LD"
dfac8a13
TT
1374if test -n "$LD"; then
1375 echo "$ac_t""$LD" 1>&6
1376else
1377 echo "$ac_t""no" 1>&6
1378fi
1379test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
dfac8a13 1380echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
0fd91e0a
AO
1381echo "configure:1382: checking if the linker ($LD) is GNU ld" >&5
1382if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
dfac8a13
TT
1383 echo $ac_n "(cached) $ac_c" 1>&6
1384else
1385 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1386if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
0fd91e0a 1387 lt_cv_prog_gnu_ld=yes
dfac8a13 1388else
0fd91e0a 1389 lt_cv_prog_gnu_ld=no
dfac8a13
TT
1390fi
1391fi
1392
0fd91e0a
AO
1393echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1394with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
1395
1396
0fd91e0a
AO
1397echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1398echo "configure:1399: checking for $LD option to reload object files" >&5
1399if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401else
1402 lt_cv_ld_reload_flag='-r'
1403fi
1404
1405echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1406reload_flag=$lt_cv_ld_reload_flag
1407test -n "$reload_flag" && reload_flag=" $reload_flag"
1408
dfac8a13 1409echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
0fd91e0a
AO
1410echo "configure:1411: checking for BSD-compatible nm" >&5
1411if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
dfac8a13
TT
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413else
1414 if test -n "$NM"; then
1415 # Let the user override the test.
0fd91e0a 1416 lt_cv_path_NM="$NM"
dfac8a13 1417else
0fd91e0a 1418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
1419 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1420 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
1421 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1422 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
dfac8a13
TT
1423 # Check to see if the nm accepts a BSD-compat flag.
1424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1425 # nm: unknown option "B" ignored
0fd91e0a
AO
1426 # Tru64's nm complains that /dev/null is an invalid object file
1427 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1428 lt_cv_path_NM="$tmp_nm -B"
dfac8a13 1429 break
0fd91e0a
AO
1430 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1431 lt_cv_path_NM="$tmp_nm -p"
dfac8a13
TT
1432 break
1433 else
0fd91e0a 1434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
dfac8a13
TT
1435 continue # so that we can try to find one that supports BSD flags
1436 fi
1437 fi
1438 done
1439 IFS="$ac_save_ifs"
0fd91e0a 1440 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
dfac8a13
TT
1441fi
1442fi
1443
0fd91e0a 1444NM="$lt_cv_path_NM"
dfac8a13
TT
1445echo "$ac_t""$NM" 1>&6
1446
0fd91e0a
AO
1447echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1448echo "configure:1449: checking whether ln -s works" >&5
1449if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
025fd00e
TT
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451else
0fd91e0a
AO
1452 rm -f conftestdata
1453if ln -s X conftestdata 2>/dev/null
1454then
1455 rm -f conftestdata
1456 ac_cv_prog_LN_S="ln -s"
1457else
1458 ac_cv_prog_LN_S=ln
1459fi
1460fi
1461LN_S="$ac_cv_prog_LN_S"
1462if test "$ac_cv_prog_LN_S" = "ln -s"; then
1463 echo "$ac_t""yes" 1>&6
1464else
1465 echo "$ac_t""no" 1>&6
1466fi
025fd00e 1467
0fd91e0a
AO
1468echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1469echo "configure:1470: checking how to recognise dependant libraries" >&5
1470if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472else
1473 lt_cv_file_magic_cmd='$MAGIC_CMD'
1474lt_cv_file_magic_test_file=
1475lt_cv_deplibs_check_method='unknown'
1476# Need to set the preceding variable on all platforms that support
1477# interlibrary dependencies.
1478# 'none' -- dependencies not supported.
1479# `unknown' -- same as none, but documents that we really don't know.
1480# 'pass_all' -- all dependencies passed with no checks.
1481# 'test_compile' -- check by making test program.
1482# 'file_magic [regex]' -- check by looking for files in library path
1483# which responds to the $file_magic_cmd with a given egrep regex.
1484# If you have `file' or equivalent on your system and you're not sure
1485# whether `pass_all' will *always* work, you probably want this one.
1486
1487case $host_os in
025fd00e 1488aix*)
0fd91e0a 1489 lt_cv_deplibs_check_method=pass_all
025fd00e 1490 ;;
025fd00e 1491
0fd91e0a
AO
1492beos*)
1493 lt_cv_deplibs_check_method=pass_all
1494 ;;
025fd00e 1495
0fd91e0a
AO
1496bsdi4*)
1497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1498 lt_cv_file_magic_cmd='/usr/bin/file -L'
1499 lt_cv_file_magic_test_file=/shlib/libc.so
1500 ;;
025fd00e 1501
0fd91e0a
AO
1502cygwin* | mingw* |pw32*)
1503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1504 lt_cv_file_magic_cmd='$OBJDUMP -f'
1505 ;;
025fd00e 1506
0fd91e0a
AO
1507darwin* | rhapsody*)
1508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1509 lt_cv_file_magic_cmd='/usr/bin/file -L'
1510 case "$host_os" in
1511 rhapsody* | darwin1.012)
1512 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1513 ;;
1514 *) # Darwin 1.3 on
1515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1516 ;;
1517 esac
1518 ;;
025fd00e 1519
0fd91e0a
AO
1520freebsd* )
1521 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1522 case $host_cpu in
1523 i*86 )
1524 # Not sure whether the presence of OpenBSD here was a mistake.
1525 # Let's accept both of them until this is cleared up.
1526 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1527 lt_cv_file_magic_cmd=/usr/bin/file
1528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1529 ;;
1530 esac
1531 else
1532 lt_cv_deplibs_check_method=pass_all
1533 fi
1534 ;;
025fd00e 1535
0fd91e0a
AO
1536gnu*)
1537 lt_cv_deplibs_check_method=pass_all
1538 ;;
025fd00e 1539
0fd91e0a
AO
1540hpux10.20*|hpux11*)
1541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1542 lt_cv_file_magic_cmd=/usr/bin/file
1543 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1544 ;;
025fd00e 1545
0fd91e0a
AO
1546irix5* | irix6*)
1547 case $host_os in
1548 irix5*)
1549 # this will be overridden with pass_all, but let us keep it just in case
1550 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1551 ;;
1552 *)
1553 case $LD in
1554 *-32|*"-32 ") libmagic=32-bit;;
1555 *-n32|*"-n32 ") libmagic=N32;;
1556 *-64|*"-64 ") libmagic=64-bit;;
1557 *) libmagic=never-match;;
1558 esac
1559 # this will be overridden with pass_all, but let us keep it just in case
1560 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1561 ;;
1562 esac
1563 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1564 lt_cv_deplibs_check_method=pass_all
1565 ;;
025fd00e 1566
0fd91e0a
AO
1567# This must be Linux ELF.
1568linux-gnu*)
1569 case $host_cpu in
1570 alpha* | i*86 | powerpc* | sparc* | ia64* )
1571 lt_cv_deplibs_check_method=pass_all ;;
1572 *)
1573 # glibc up to 2.1.1 does not perform some relocations on ARM
1574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1575 esac
1576 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1577 ;;
025fd00e 1578
0fd91e0a
AO
1579netbsd*)
1580 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1581 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
025fd00e 1582 else
0fd91e0a 1583 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
025fd00e 1584 fi
0fd91e0a 1585 ;;
025fd00e 1586
0fd91e0a
AO
1587newsos6)
1588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1589 lt_cv_file_magic_cmd=/usr/bin/file
1590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1591 ;;
025fd00e 1592
0fd91e0a
AO
1593osf3* | osf4* | osf5*)
1594 # this will be overridden with pass_all, but let us keep it just in case
1595 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1596 lt_cv_file_magic_test_file=/shlib/libc.so
1597 lt_cv_deplibs_check_method=pass_all
1598 ;;
025fd00e 1599
0fd91e0a
AO
1600sco3.2v5*)
1601 lt_cv_deplibs_check_method=pass_all
1602 ;;
025fd00e 1603
0fd91e0a
AO
1604solaris*)
1605 lt_cv_deplibs_check_method=pass_all
1606 lt_cv_file_magic_test_file=/lib/libc.so
1607 ;;
025fd00e 1608
0fd91e0a
AO
1609sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1610 case $host_vendor in
1611 ncr)
1612 lt_cv_deplibs_check_method=pass_all
1613 ;;
1614 motorola)
1615 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]'
1616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1617 ;;
1618 esac
1619 ;;
1620esac
025fd00e
TT
1621
1622fi
1623
0fd91e0a
AO
1624echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1625file_magic_cmd=$lt_cv_file_magic_cmd
1626deplibs_check_method=$lt_cv_deplibs_check_method
025fd00e 1627
0fd91e0a
AO
1628echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1629echo "configure:1630: checking for object suffix" >&5
1630if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
dfac8a13
TT
1631 echo $ac_n "(cached) $ac_c" 1>&6
1632else
0fd91e0a
AO
1633 rm -f conftest*
1634echo 'int i = 1;' > conftest.$ac_ext
1635if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1636 for ac_file in conftest.*; do
1637 case $ac_file in
1638 *.c) ;;
1639 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1640 esac
1641 done
dfac8a13 1642else
0fd91e0a 1643 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
dfac8a13 1644fi
0fd91e0a 1645rm -f conftest*
dfac8a13
TT
1646fi
1647
0fd91e0a
AO
1648echo "$ac_t""$ac_cv_objext" 1>&6
1649OBJEXT=$ac_cv_objext
1650ac_objext=$ac_cv_objext
1651
025fd00e
TT
1652if test $host != $build; then
1653 ac_tool_prefix=${host_alias}-
1654else
1655 ac_tool_prefix=
1656fi
1657
0fd91e0a 1658# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
dfac8a13 1659
0fd91e0a
AO
1660# Only perform the check for file, if the check method requires it
1661case $deplibs_check_method in
1662file_magic*)
1663 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1664 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1665echo "configure:1666: checking for ${ac_tool_prefix}file" >&5
1666if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668else
1669 case $MAGIC_CMD in
1670 /*)
1671 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1672 ;;
1673 ?:/*)
1674 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1675 ;;
1676 *)
1677 ac_save_MAGIC_CMD="$MAGIC_CMD"
1678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1679 ac_dummy="/usr/bin:$PATH"
1680 for ac_dir in $ac_dummy; do
1681 test -z "$ac_dir" && ac_dir=.
1682 if test -f $ac_dir/${ac_tool_prefix}file; then
1683 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1684 if test -n "$file_magic_test_file"; then
1685 case $deplibs_check_method in
1686 "file_magic "*)
1687 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1689 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1690 egrep "$file_magic_regex" > /dev/null; then
1691 :
1692 else
1693 cat <<EOF 1>&2
dfac8a13 1694
0fd91e0a
AO
1695*** Warning: the command libtool uses to detect shared libraries,
1696*** $file_magic_cmd, produces output that libtool cannot recognize.
1697*** The result is that libtool may fail to recognize shared libraries
1698*** as such. This will affect the creation of libtool libraries that
1699*** depend on shared libraries, but programs linked with such libtool
1700*** libraries will work regardless of this problem. Nevertheless, you
1701*** may want to report the problem to your system manager and/or to
1702*** bug-libtool@gnu.org
1703
1704EOF
1705 fi ;;
1706 esac
1707 fi
1708 break
1709 fi
1710 done
1711 IFS="$ac_save_ifs"
1712 MAGIC_CMD="$ac_save_MAGIC_CMD"
dfac8a13 1713 ;;
0fd91e0a
AO
1714esac
1715fi
dfac8a13 1716
0fd91e0a
AO
1717MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1718if test -n "$MAGIC_CMD"; then
1719 echo "$ac_t""$MAGIC_CMD" 1>&6
1720else
1721 echo "$ac_t""no" 1>&6
1722fi
1723
1724if test -z "$lt_cv_path_MAGIC_CMD"; then
1725 if test -n "$ac_tool_prefix"; then
1726 echo $ac_n "checking for file""... $ac_c" 1>&6
1727echo "configure:1728: checking for file" >&5
1728if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
dfac8a13
TT
1729 echo $ac_n "(cached) $ac_c" 1>&6
1730else
0fd91e0a
AO
1731 case $MAGIC_CMD in
1732 /*)
1733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1734 ;;
1735 ?:/*)
1736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1737 ;;
1738 *)
1739 ac_save_MAGIC_CMD="$MAGIC_CMD"
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1741 ac_dummy="/usr/bin:$PATH"
1742 for ac_dir in $ac_dummy; do
1743 test -z "$ac_dir" && ac_dir=.
1744 if test -f $ac_dir/file; then
1745 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1746 if test -n "$file_magic_test_file"; then
1747 case $deplibs_check_method in
1748 "file_magic "*)
1749 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1752 egrep "$file_magic_regex" > /dev/null; then
1753 :
1754 else
1755 cat <<EOF 1>&2
c45f211e 1756
0fd91e0a
AO
1757*** Warning: the command libtool uses to detect shared libraries,
1758*** $file_magic_cmd, produces output that libtool cannot recognize.
1759*** The result is that libtool may fail to recognize shared libraries
1760*** as such. This will affect the creation of libtool libraries that
1761*** depend on shared libraries, but programs linked with such libtool
1762*** libraries will work regardless of this problem. Nevertheless, you
1763*** may want to report the problem to your system manager and/or to
1764*** bug-libtool@gnu.org
dfac8a13 1765
c45f211e 1766EOF
0fd91e0a
AO
1767 fi ;;
1768 esac
1769 fi
1770 break
1771 fi
1772 done
1773 IFS="$ac_save_ifs"
1774 MAGIC_CMD="$ac_save_MAGIC_CMD"
1775 ;;
1776esac
1777fi
1778
1779MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1780if test -n "$MAGIC_CMD"; then
1781 echo "$ac_t""$MAGIC_CMD" 1>&6
dfac8a13 1782else
0fd91e0a 1783 echo "$ac_t""no" 1>&6
dfac8a13 1784fi
0fd91e0a
AO
1785
1786 else
1787 MAGIC_CMD=:
1788 fi
dfac8a13
TT
1789fi
1790
dfac8a13
TT
1791 fi
1792 ;;
0fd91e0a 1793esac
dfac8a13 1794
0fd91e0a
AO
1795# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1796set dummy ${ac_tool_prefix}ranlib; ac_word=$2
025fd00e 1797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0fd91e0a
AO
1798echo "configure:1799: checking for $ac_word" >&5
1799if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
025fd00e
TT
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801else
0fd91e0a
AO
1802 if test -n "$RANLIB"; then
1803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e
TT
1804else
1805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1806 ac_dummy="$PATH"
1807 for ac_dir in $ac_dummy; do
1808 test -z "$ac_dir" && ac_dir=.
1809 if test -f $ac_dir/$ac_word; then
0fd91e0a 1810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
025fd00e
TT
1811 break
1812 fi
1813 done
1814 IFS="$ac_save_ifs"
1815fi
1816fi
0fd91e0a
AO
1817RANLIB="$ac_cv_prog_RANLIB"
1818if test -n "$RANLIB"; then
1819 echo "$ac_t""$RANLIB" 1>&6
025fd00e
TT
1820else
1821 echo "$ac_t""no" 1>&6
1822fi
1823
1824
0fd91e0a 1825if test -z "$ac_cv_prog_RANLIB"; then
025fd00e 1826if test -n "$ac_tool_prefix"; then
0fd91e0a
AO
1827 # Extract the first word of "ranlib", so it can be a program name with args.
1828set dummy ranlib; ac_word=$2
025fd00e 1829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0fd91e0a
AO
1830echo "configure:1831: checking for $ac_word" >&5
1831if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
025fd00e
TT
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833else
0fd91e0a
AO
1834 if test -n "$RANLIB"; then
1835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e
TT
1836else
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1838 ac_dummy="$PATH"
1839 for ac_dir in $ac_dummy; do
1840 test -z "$ac_dir" && ac_dir=.
1841 if test -f $ac_dir/$ac_word; then
0fd91e0a 1842 ac_cv_prog_RANLIB="ranlib"
025fd00e
TT
1843 break
1844 fi
1845 done
1846 IFS="$ac_save_ifs"
0fd91e0a 1847 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
025fd00e
TT
1848fi
1849fi
0fd91e0a
AO
1850RANLIB="$ac_cv_prog_RANLIB"
1851if test -n "$RANLIB"; then
1852 echo "$ac_t""$RANLIB" 1>&6
025fd00e
TT
1853else
1854 echo "$ac_t""no" 1>&6
1855fi
1856
1857else
0fd91e0a 1858 RANLIB=":"
025fd00e
TT
1859fi
1860fi
1861
0fd91e0a
AO
1862# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863set dummy ${ac_tool_prefix}strip; ac_word=$2
025fd00e 1864echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0fd91e0a
AO
1865echo "configure:1866: checking for $ac_word" >&5
1866if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
025fd00e
TT
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868else
0fd91e0a
AO
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e
TT
1871else
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1873 ac_dummy="$PATH"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/$ac_word; then
0fd91e0a 1877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
025fd00e
TT
1878 break
1879 fi
1880 done
1881 IFS="$ac_save_ifs"
1882fi
1883fi
0fd91e0a
AO
1884STRIP="$ac_cv_prog_STRIP"
1885if test -n "$STRIP"; then
1886 echo "$ac_t""$STRIP" 1>&6
025fd00e
TT
1887else
1888 echo "$ac_t""no" 1>&6
1889fi
1890
1891
0fd91e0a 1892if test -z "$ac_cv_prog_STRIP"; then
025fd00e 1893if test -n "$ac_tool_prefix"; then
0fd91e0a
AO
1894 # Extract the first word of "strip", so it can be a program name with args.
1895set dummy strip; ac_word=$2
025fd00e 1896echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0fd91e0a
AO
1897echo "configure:1898: checking for $ac_word" >&5
1898if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
025fd00e
TT
1899 echo $ac_n "(cached) $ac_c" 1>&6
1900else
0fd91e0a
AO
1901 if test -n "$STRIP"; then
1902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e
TT
1903else
1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1905 ac_dummy="$PATH"
1906 for ac_dir in $ac_dummy; do
1907 test -z "$ac_dir" && ac_dir=.
1908 if test -f $ac_dir/$ac_word; then
0fd91e0a 1909 ac_cv_prog_STRIP="strip"
025fd00e
TT
1910 break
1911 fi
1912 done
1913 IFS="$ac_save_ifs"
0fd91e0a 1914 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
025fd00e
TT
1915fi
1916fi
0fd91e0a
AO
1917STRIP="$ac_cv_prog_STRIP"
1918if test -n "$STRIP"; then
1919 echo "$ac_t""$STRIP" 1>&6
025fd00e
TT
1920else
1921 echo "$ac_t""no" 1>&6
1922fi
1923
1924else
0fd91e0a 1925 STRIP=":"
025fd00e
TT
1926fi
1927fi
1928
1929
0fd91e0a
AO
1930# Check for any special flags to pass to ltconfig.
1931libtool_flags="--cache-file=$cache_file"
1932test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1933test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1934test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1935test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1936test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
c45f211e 1937
025fd00e
TT
1938
1939# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1940if test "${enable_libtool_lock+set}" = set; then
1941 enableval="$enable_libtool_lock"
0fd91e0a
AO
1942 :
1943fi
1944
1945test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1946test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1947
1948# Check whether --with-pic or --without-pic was given.
1949if test "${with_pic+set}" = set; then
1950 withval="$with_pic"
1951 pic_mode="$withval"
025fd00e 1952else
0fd91e0a 1953 pic_mode=default
025fd00e
TT
1954fi
1955
0fd91e0a
AO
1956test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1957test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1958
1959# Some flags need to be propagated to the compiler or linker for good
1960# libtool support.
1961case $host in
1962*-*-irix6*)
1963 # Find out which ABI we are using.
1964 echo '#line 1965 "configure"' > conftest.$ac_ext
1965 if { (eval echo configure:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1966 case `/usr/bin/file conftest.$ac_objext` in
1967 *32-bit*)
1968 LD="${LD-ld} -32"
1969 ;;
1970 *N32*)
1971 LD="${LD-ld} -n32"
1972 ;;
1973 *64-bit*)
1974 LD="${LD-ld} -64"
1975 ;;
1976 esac
1977 fi
1978 rm -rf conftest*
1979 ;;
025fd00e 1980
0fd91e0a
AO
1981*-*-sco3.2v5*)
1982 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1983 SAVE_CFLAGS="$CFLAGS"
1984 CFLAGS="$CFLAGS -belf"
1985 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1986echo "configure:1987: checking whether the C compiler needs -belf" >&5
1987if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1989else
1990
1991 ac_ext=c
1992# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1995ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1996cross_compiling=$ac_cv_prog_cc_cross
1997
1998 cat > conftest.$ac_ext <<EOF
1999#line 2000 "configure"
2000#include "confdefs.h"
2001
2002int main() {
2003
2004; return 0; }
2005EOF
2006if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2007 rm -rf conftest*
2008 lt_cv_cc_needs_belf=yes
2009else
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2012 rm -rf conftest*
2013 lt_cv_cc_needs_belf=no
025fd00e 2014fi
0fd91e0a
AO
2015rm -f conftest*
2016 ac_ext=c
2017# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2018ac_cpp='$CPP $CPPFLAGS'
2019ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2020ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2021cross_compiling=$ac_cv_prog_cc_cross
2022
2023fi
2024
2025echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2026 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2028 CFLAGS="$SAVE_CFLAGS"
2029 fi
2030 ;;
2031
2032
2033esac
025fd00e 2034
dfac8a13
TT
2035
2036# Save cache, so that ltconfig can load it
2037cat > confcache <<\EOF
2038# This file is a shell script that caches the results of configure
2039# tests run on this system so they can be shared between configure
2040# scripts and configure runs. It is not useful on other systems.
2041# If it contains results you don't want to keep, you may remove or edit it.
2042#
2043# By default, configure uses ./config.cache as the cache file,
2044# creating it if it does not exist already. You can give configure
2045# the --cache-file=FILE option to use a different cache file; that is
2046# what configure does when it calls configure scripts in
2047# subdirectories, so they share the cache.
2048# Giving --cache-file=/dev/null disables caching, for debugging configure.
2049# config.status only pays attention to the cache file if you give it the
2050# --recheck option to rerun configure.
2051#
2052EOF
2053# The following way of writing the cache mishandles newlines in values,
2054# but we know of no workaround that is simple, portable, and efficient.
2055# So, don't put newlines in cache variables' values.
2056# Ultrix sh set writes to stderr and can't be redirected directly,
2057# and sets the high bit in the cache file unless we assign to the vars.
2058(set) 2>&1 |
2059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2060 *ac_space=\ *)
2061 # `set' does not quote correctly, so add quotes (double-quote substitution
2062 # turns \\\\ into \\, and sed turns \\ into \).
2063 sed -n \
2064 -e "s/'/'\\\\''/g" \
2065 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2066 ;;
2067 *)
2068 # `set' quotes correctly as required by POSIX, so do not add quotes.
2069 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2070 ;;
2071 esac >> confcache
2072if cmp -s $cache_file confcache; then
2073 :
2074else
2075 if test -w $cache_file; then
2076 echo "updating cache $cache_file"
2077 cat confcache > $cache_file
c45f211e 2078 else
dfac8a13 2079 echo "not updating unwritable cache $cache_file"
c45f211e
TT
2080 fi
2081fi
dfac8a13
TT
2082rm -f confcache
2083
2084
2085# Actually configure libtool. ac_aux_dir is where install-sh is found.
0fd91e0a
AO
2086AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2087MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2088LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2089AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2090objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2091deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
dfac8a13 2092${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0fd91e0a 2093$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
dfac8a13
TT
2094|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2095
2096# Reload cache, that may have been modified by ltconfig
2097if test -r "$cache_file"; then
2098 echo "loading cache $cache_file"
2099 . $cache_file
2100else
2101 echo "creating cache $cache_file"
2102 > $cache_file
2103fi
2104
2105
2106# This can be used to rebuild libtool when needed
0fd91e0a 2107LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
dfac8a13
TT
2108
2109# Always use our own libtool.
2110LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2111
2112# Redirect the config.log output again, so that the ltconfig log is not
2113# clobbered by the next message.
2114exec 5>>./config.log
2115
0fd91e0a
AO
2116
2117
2118
2119
2120
dfac8a13
TT
2121
2122if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2123 COMPPATH=.
2124else
2125 COMPPATH=..
2126fi
2127
2128
35241f18
CD
2129# Find CPP now so that any conditional tests below won't do it and
2130# thereby make the resulting definitions conditional.
2131echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
0fd91e0a 2132echo "configure:2133: checking how to run the C preprocessor" >&5
dfac8a13
TT
2133# On Suns, sometimes $CPP names a directory.
2134if test -n "$CPP" && test -d "$CPP"; then
2135 CPP=
2136fi
2137if test -z "$CPP"; then
2138if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140else
2141 # This must be in double quotes, not single quotes, because CPP may get
2142 # substituted into the Makefile and "${CC-cc}" will confuse make.
2143 CPP="${CC-cc} -E"
2144 # On the NeXT, cc -E runs the code through the compiler's parser,
2145 # not just through cpp.
2146 cat > conftest.$ac_ext <<EOF
0fd91e0a 2147#line 2148 "configure"
dfac8a13
TT
2148#include "confdefs.h"
2149#include <assert.h>
2150Syntax Error
2151EOF
2152ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0fd91e0a 2153{ (eval echo configure:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2154ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2155if test -z "$ac_err"; then
2156 :
2157else
2158 echo "$ac_err" >&5
2159 echo "configure: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2161 rm -rf conftest*
2162 CPP="${CC-cc} -E -traditional-cpp"
2163 cat > conftest.$ac_ext <<EOF
0fd91e0a 2164#line 2165 "configure"
dfac8a13
TT
2165#include "confdefs.h"
2166#include <assert.h>
2167Syntax Error
2168EOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0fd91e0a 2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172if test -z "$ac_err"; then
2173 :
2174else
2175 echo "$ac_err" >&5
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 rm -rf conftest*
2179 CPP="${CC-cc} -nologo -E"
2180 cat > conftest.$ac_ext <<EOF
0fd91e0a 2181#line 2182 "configure"
dfac8a13
TT
2182#include "confdefs.h"
2183#include <assert.h>
2184Syntax Error
2185EOF
2186ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0fd91e0a 2187{ (eval echo configure:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2188ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2189if test -z "$ac_err"; then
2190 :
2191else
2192 echo "$ac_err" >&5
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 rm -rf conftest*
2196 CPP=/lib/cpp
2197fi
2198rm -f conftest*
2199fi
2200rm -f conftest*
2201fi
2202rm -f conftest*
2203 ac_cv_prog_CPP="$CPP"
2204fi
2205 CPP="$ac_cv_prog_CPP"
2206else
2207 ac_cv_prog_CPP="$CPP"
2208fi
2209echo "$ac_t""$CPP" 1>&6
2210
35241f18
CD
2211
2212if test -n "$with_cross_host"; then
2213 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2214 # may not work correctly, because the compiler may not be able to
2215 # link executables.
2216
2217 # We assume newlib. This lets us hard-code the functions we know
2218 # we'll have.
2219 cat >> confdefs.h <<\EOF
2220#define HAVE_MEMCPY 1
2221EOF
2222
2223 cat >> confdefs.h <<\EOF
2224#define HAVE_STRERROR 1
2225EOF
2226
2227
2228 # We ignore --with-system-zlib in this case.
2229 target_all=libzgcj.la
2230else
2231 for ac_hdr in unistd.h
dfac8a13
TT
2232do
2233ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2234echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0fd91e0a 2235echo "configure:2236: checking for $ac_hdr" >&5
dfac8a13
TT
2236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2238else
2239 cat > conftest.$ac_ext <<EOF
0fd91e0a 2240#line 2241 "configure"
dfac8a13
TT
2241#include "confdefs.h"
2242#include <$ac_hdr>
2243EOF
2244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0fd91e0a 2245{ (eval echo configure:2246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2247if test -z "$ac_err"; then
2248 rm -rf conftest*
2249 eval "ac_cv_header_$ac_safe=yes"
2250else
2251 echo "$ac_err" >&5
2252 echo "configure: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2254 rm -rf conftest*
2255 eval "ac_cv_header_$ac_safe=no"
2256fi
2257rm -f conftest*
2258fi
2259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2262 cat >> confdefs.h <<EOF
2263#define $ac_tr_hdr 1
2264EOF
2265
2266else
2267 echo "$ac_t""no" 1>&6
c45f211e 2268fi
dfac8a13
TT
2269done
2270
2271for ac_func in getpagesize
2272do
2273echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0fd91e0a 2274echo "configure:2275: checking for $ac_func" >&5
dfac8a13
TT
2275if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277else
2278 cat > conftest.$ac_ext <<EOF
0fd91e0a 2279#line 2280 "configure"
dfac8a13
TT
2280#include "confdefs.h"
2281/* System header to define __stub macros and hopefully few prototypes,
2282 which can conflict with char $ac_func(); below. */
2283#include <assert.h>
2284/* Override any gcc2 internal prototype to avoid an error. */
2285/* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2287char $ac_func();
2288
2289int main() {
2290
2291/* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2295choke me
2296#else
2297$ac_func();
2298#endif
c45f211e 2299
dfac8a13 2300; return 0; }
c45f211e 2301EOF
0fd91e0a 2302if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
dfac8a13
TT
2303 rm -rf conftest*
2304 eval "ac_cv_func_$ac_func=yes"
c45f211e 2305else
dfac8a13
TT
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 rm -rf conftest*
2309 eval "ac_cv_func_$ac_func=no"
2310fi
2311rm -f conftest*
c45f211e
TT
2312fi
2313
dfac8a13
TT
2314if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2317 cat >> confdefs.h <<EOF
2318#define $ac_tr_func 1
c45f211e 2319EOF
dfac8a13 2320
c45f211e 2321else
dfac8a13 2322 echo "$ac_t""no" 1>&6
c45f211e 2323fi
dfac8a13
TT
2324done
2325
2326echo $ac_n "checking for working mmap""... $ac_c" 1>&6
0fd91e0a 2327echo "configure:2328: checking for working mmap" >&5
dfac8a13
TT
2328if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330else
2331 if test "$cross_compiling" = yes; then
2332 ac_cv_func_mmap_fixed_mapped=no
2333else
2334 cat > conftest.$ac_ext <<EOF
0fd91e0a 2335#line 2336 "configure"
dfac8a13
TT
2336#include "confdefs.h"
2337
2338/* Thanks to Mike Haertel and Jim Avera for this test.
2339 Here is a matrix of mmap possibilities:
2340 mmap private not fixed
2341 mmap private fixed at somewhere currently unmapped
2342 mmap private fixed at somewhere already mapped
2343 mmap shared not fixed
2344 mmap shared fixed at somewhere currently unmapped
2345 mmap shared fixed at somewhere already mapped
2346 For private mappings, we should verify that changes cannot be read()
2347 back from the file, nor mmap's back from the file at a different
2348 address. (There have been systems where private was not correctly
2349 implemented like the infamous i386 svr4.0, and systems where the
2350 VM page cache was not coherent with the filesystem buffer cache
2351 like early versions of FreeBSD and possibly contemporary NetBSD.)
2352 For shared mappings, we should conversely verify that changes get
2353 propogated back to all the places they're supposed to be.
c45f211e 2354
dfac8a13
TT
2355 Grep wants private fixed already mapped.
2356 The main things grep needs to know about mmap are:
2357 * does it exist and is it safe to write into the mmap'd area
2358 * how to use it (BSD variants) */
c45f211e 2359#include <sys/types.h>
dfac8a13 2360#include <fcntl.h>
c45f211e 2361#include <sys/mman.h>
dfac8a13
TT
2362
2363/* This mess was copied from the GNU getpagesize.h. */
2364#ifndef HAVE_GETPAGESIZE
2365# ifdef HAVE_UNISTD_H
2366# include <unistd.h>
2367# endif
2368
2369/* Assume that all systems that can run configure have sys/param.h. */
2370# ifndef HAVE_SYS_PARAM_H
2371# define HAVE_SYS_PARAM_H 1
2372# endif
2373
2374# ifdef _SC_PAGESIZE
2375# define getpagesize() sysconf(_SC_PAGESIZE)
2376# else /* no _SC_PAGESIZE */
2377# ifdef HAVE_SYS_PARAM_H
2378# include <sys/param.h>
2379# ifdef EXEC_PAGESIZE
2380# define getpagesize() EXEC_PAGESIZE
2381# else /* no EXEC_PAGESIZE */
2382# ifdef NBPG
2383# define getpagesize() NBPG * CLSIZE
2384# ifndef CLSIZE
2385# define CLSIZE 1
2386# endif /* no CLSIZE */
2387# else /* no NBPG */
2388# ifdef NBPC
2389# define getpagesize() NBPC
2390# else /* no NBPC */
2391# ifdef PAGESIZE
2392# define getpagesize() PAGESIZE
2393# endif /* PAGESIZE */
2394# endif /* no NBPC */
2395# endif /* no NBPG */
2396# endif /* no EXEC_PAGESIZE */
2397# else /* no HAVE_SYS_PARAM_H */
2398# define getpagesize() 8192 /* punt totally */
2399# endif /* no HAVE_SYS_PARAM_H */
2400# endif /* no _SC_PAGESIZE */
2401
2402#endif /* no HAVE_GETPAGESIZE */
2403
2404#ifdef __cplusplus
2405extern "C" { void *malloc(unsigned); }
2406#else
2407char *malloc();
2408#endif
2409
2410int
2411main()
2412{
2413 char *data, *data2, *data3;
2414 int i, pagesize;
2415 int fd;
2416
2417 pagesize = getpagesize();
2418
2419 /*
2420 * First, make a file with some known garbage in it.
2421 */
2422 data = malloc(pagesize);
2423 if (!data)
2424 exit(1);
2425 for (i = 0; i < pagesize; ++i)
2426 *(data + i) = rand();
2427 umask(0);
2428 fd = creat("conftestmmap", 0600);
2429 if (fd < 0)
2430 exit(1);
2431 if (write(fd, data, pagesize) != pagesize)
2432 exit(1);
2433 close(fd);
2434
2435 /*
2436 * Next, try to mmap the file at a fixed address which
2437 * already has something else allocated at it. If we can,
2438 * also make sure that we see the same garbage.
2439 */
2440 fd = open("conftestmmap", O_RDWR);
2441 if (fd < 0)
2442 exit(1);
2443 data2 = malloc(2 * pagesize);
2444 if (!data2)
2445 exit(1);
2446 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2447 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2448 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2449 exit(1);
2450 for (i = 0; i < pagesize; ++i)
2451 if (*(data + i) != *(data2 + i))
2452 exit(1);
2453
2454 /*
2455 * Finally, make sure that changes to the mapped area
2456 * do not percolate back to the file as seen by read().
2457 * (This is a bug on some variants of i386 svr4.0.)
2458 */
2459 for (i = 0; i < pagesize; ++i)
2460 *(data2 + i) = *(data2 + i) + 1;
2461 data3 = malloc(pagesize);
2462 if (!data3)
2463 exit(1);
2464 if (read(fd, data3, pagesize) != pagesize)
2465 exit(1);
2466 for (i = 0; i < pagesize; ++i)
2467 if (*(data + i) != *(data3 + i))
2468 exit(1);
2469 close(fd);
2470 unlink("conftestmmap");
2471 exit(0);
c45f211e 2472}
dfac8a13
TT
2473
2474EOF
0fd91e0a 2475if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
dfac8a13
TT
2476then
2477 ac_cv_func_mmap_fixed_mapped=yes
2478else
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -fr conftest*
2482 ac_cv_func_mmap_fixed_mapped=no
2483fi
2484rm -fr conftest*
2485fi
2486
2487fi
2488
2489echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2490if test $ac_cv_func_mmap_fixed_mapped = yes; then
2491 cat >> confdefs.h <<\EOF
2492#define HAVE_MMAP 1
2493EOF
2494
2495fi
2496
2497 for ac_func in memcpy strerror
2498do
2499echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0fd91e0a 2500echo "configure:2501: checking for $ac_func" >&5
dfac8a13
TT
2501if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2503else
2504 cat > conftest.$ac_ext <<EOF
0fd91e0a 2505#line 2506 "configure"
dfac8a13
TT
2506#include "confdefs.h"
2507/* System header to define __stub macros and hopefully few prototypes,
2508 which can conflict with char $ac_func(); below. */
2509#include <assert.h>
2510/* Override any gcc2 internal prototype to avoid an error. */
2511/* We use char because int might match the return type of a gcc2
2512 builtin and then its argument prototype would still apply. */
2513char $ac_func();
2514
2515int main() {
2516
2517/* The GNU C library defines this for functions which it implements
2518 to always fail with ENOSYS. Some functions are actually named
2519 something starting with __ and the normal name is an alias. */
2520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2521choke me
2522#else
2523$ac_func();
2524#endif
2525
2526; return 0; }
2527EOF
0fd91e0a 2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
dfac8a13
TT
2529 rm -rf conftest*
2530 eval "ac_cv_func_$ac_func=yes"
2531else
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2534 rm -rf conftest*
2535 eval "ac_cv_func_$ac_func=no"
2536fi
2537rm -f conftest*
2538fi
2539
2540if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2543 cat >> confdefs.h <<EOF
2544#define $ac_tr_func 1
2545EOF
2546
2547else
2548 echo "$ac_t""no" 1>&6
2549fi
2550done
2551
79a9a529
TT
2552
2553 if test "$with_system_zlib" = yes; then
2554 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
0fd91e0a 2555echo "configure:2556: checking for deflate in -lz" >&5
79a9a529
TT
2556ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2557if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2559else
2560 ac_save_LIBS="$LIBS"
2561LIBS="-lz $LIBS"
2562cat > conftest.$ac_ext <<EOF
0fd91e0a 2563#line 2564 "configure"
79a9a529
TT
2564#include "confdefs.h"
2565/* Override any gcc2 internal prototype to avoid an error. */
2566/* We use char because int might match the return type of a gcc2
2567 builtin and then its argument prototype would still apply. */
2568char deflate();
2569
2570int main() {
2571deflate()
2572; return 0; }
2573EOF
0fd91e0a 2574if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
79a9a529
TT
2575 rm -rf conftest*
2576 eval "ac_cv_lib_$ac_lib_var=yes"
2577else
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 rm -rf conftest*
2581 eval "ac_cv_lib_$ac_lib_var=no"
dfac8a13 2582fi
79a9a529
TT
2583rm -f conftest*
2584LIBS="$ac_save_LIBS"
2585
2586fi
2587if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 target_all=
2590else
2591 echo "$ac_t""no" 1>&6
2592target_all=libzgcj.la
2593fi
2594
2595 else
2596 target_all=libzgcj.la
2597 fi
2598fi
2599
2600
dfac8a13
TT
2601
2602for ac_hdr in unistd.h
2603do
2604ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2605echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0fd91e0a 2606echo "configure:2607: checking for $ac_hdr" >&5
dfac8a13
TT
2607if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609else
2610 cat > conftest.$ac_ext <<EOF
0fd91e0a 2611#line 2612 "configure"
dfac8a13
TT
2612#include "confdefs.h"
2613#include <$ac_hdr>
2614EOF
2615ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0fd91e0a 2616{ (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2617ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2618if test -z "$ac_err"; then
2619 rm -rf conftest*
2620 eval "ac_cv_header_$ac_safe=yes"
2621else
2622 echo "$ac_err" >&5
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 rm -rf conftest*
2626 eval "ac_cv_header_$ac_safe=no"
2627fi
2628rm -f conftest*
2629fi
2630if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2631 echo "$ac_t""yes" 1>&6
2632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2633 cat >> confdefs.h <<EOF
2634#define $ac_tr_hdr 1
2635EOF
2636
2637else
2638 echo "$ac_t""no" 1>&6
2639fi
2640done
2641
2642
b48ed568
TT
2643
2644
2645if test -z "$with_cross_host"; then
2646 USE_LIBDIR_TRUE=
2647 USE_LIBDIR_FALSE='#'
2648else
2649 USE_LIBDIR_TRUE='#'
2650 USE_LIBDIR_FALSE=
2651fi
2652
e093c992
AG
2653
2654if test -n "$with_target_subdir"; then
2655 TARGET_LIBRARY_TRUE=
2656 TARGET_LIBRARY_FALSE='#'
2657else
2658 TARGET_LIBRARY_TRUE='#'
2659 TARGET_LIBRARY_FALSE=
2660fi
2661
dfac8a13
TT
2662if test "${multilib}" = "yes"; then
2663 multilib_arg="--enable-multilib"
2664else
2665 multilib_arg=
2666fi
2667
2668trap '' 1 2 15
2669cat > confcache <<\EOF
2670# This file is a shell script that caches the results of configure
2671# tests run on this system so they can be shared between configure
2672# scripts and configure runs. It is not useful on other systems.
2673# If it contains results you don't want to keep, you may remove or edit it.
2674#
2675# By default, configure uses ./config.cache as the cache file,
2676# creating it if it does not exist already. You can give configure
2677# the --cache-file=FILE option to use a different cache file; that is
2678# what configure does when it calls configure scripts in
2679# subdirectories, so they share the cache.
2680# Giving --cache-file=/dev/null disables caching, for debugging configure.
2681# config.status only pays attention to the cache file if you give it the
2682# --recheck option to rerun configure.
2683#
c45f211e 2684EOF
dfac8a13
TT
2685# The following way of writing the cache mishandles newlines in values,
2686# but we know of no workaround that is simple, portable, and efficient.
2687# So, don't put newlines in cache variables' values.
2688# Ultrix sh set writes to stderr and can't be redirected directly,
2689# and sets the high bit in the cache file unless we assign to the vars.
2690(set) 2>&1 |
2691 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2692 *ac_space=\ *)
2693 # `set' does not quote correctly, so add quotes (double-quote substitution
2694 # turns \\\\ into \\, and sed turns \\ into \).
2695 sed -n \
2696 -e "s/'/'\\\\''/g" \
2697 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2698 ;;
2699 *)
2700 # `set' quotes correctly as required by POSIX, so do not add quotes.
2701 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2702 ;;
2703 esac >> confcache
2704if cmp -s $cache_file confcache; then
2705 :
c45f211e 2706else
dfac8a13
TT
2707 if test -w $cache_file; then
2708 echo "updating cache $cache_file"
2709 cat confcache > $cache_file
2710 else
2711 echo "not updating unwritable cache $cache_file"
2712 fi
2713fi
2714rm -f confcache
2715
2716trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2717
2718test "x$prefix" = xNONE && prefix=$ac_default_prefix
2719# Let make expand exec_prefix.
2720test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2721
2722# Any assignment to VPATH causes Sun make to only execute
2723# the first set of double-colon rules, so remove it if not needed.
2724# If there is a colon in the path, we need to keep it.
2725if test "x$srcdir" = x.; then
2726 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
c45f211e
TT
2727fi
2728
dfac8a13
TT
2729trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2730
2731# Transform confdefs.h into DEFS.
2732# Protect against shell expansion while executing Makefile rules.
2733# Protect against Makefile macro expansion.
2734cat > conftest.defs <<\EOF
2735s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2736s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2737s%\[%\\&%g
2738s%\]%\\&%g
2739s%\$%$$%g
2740EOF
2741DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2742rm -f conftest.defs
2743
2744
2745# Without the "./", some shells look in PATH for config.status.
2746: ${CONFIG_STATUS=./config.status}
2747
2748echo creating $CONFIG_STATUS
2749rm -f $CONFIG_STATUS
2750cat > $CONFIG_STATUS <<EOF
2751#! /bin/sh
2752# Generated automatically by configure.
2753# Run this file to recreate the current configuration.
2754# This directory was configured as follows,
2755# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2756#
2757# $0 $ac_configure_args
2758#
2759# Compiler output produced by configure, useful for debugging
2760# configure, is in ./config.log if it exists.
2761
2762ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2763for ac_option
2764do
2765 case "\$ac_option" in
2766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2767 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2768 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2769 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2770 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2771 exit 0 ;;
2772 -help | --help | --hel | --he | --h)
2773 echo "\$ac_cs_usage"; exit 0 ;;
2774 *) echo "\$ac_cs_usage"; exit 1 ;;
2775 esac
2776done
2777
2778ac_given_srcdir=$srcdir
2779ac_given_INSTALL="$INSTALL"
2780
2781trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2782EOF
2783cat >> $CONFIG_STATUS <<EOF
2784
2785# Protect against being on the right side of a sed subst in config.status.
2786sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2787 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2788$ac_vpsub
2789$extrasub
2790s%@SHELL@%$SHELL%g
2791s%@CFLAGS@%$CFLAGS%g
2792s%@CPPFLAGS@%$CPPFLAGS%g
2793s%@CXXFLAGS@%$CXXFLAGS%g
2794s%@FFLAGS@%$FFLAGS%g
2795s%@DEFS@%$DEFS%g
2796s%@LDFLAGS@%$LDFLAGS%g
2797s%@LIBS@%$LIBS%g
2798s%@exec_prefix@%$exec_prefix%g
2799s%@prefix@%$prefix%g
2800s%@program_transform_name@%$program_transform_name%g
2801s%@bindir@%$bindir%g
2802s%@sbindir@%$sbindir%g
2803s%@libexecdir@%$libexecdir%g
2804s%@datadir@%$datadir%g
2805s%@sysconfdir@%$sysconfdir%g
2806s%@sharedstatedir@%$sharedstatedir%g
2807s%@localstatedir@%$localstatedir%g
2808s%@libdir@%$libdir%g
2809s%@includedir@%$includedir%g
2810s%@oldincludedir@%$oldincludedir%g
2811s%@infodir@%$infodir%g
2812s%@mandir@%$mandir%g
0fd91e0a 2813s%@zlib_basedir@%$zlib_basedir%g
dfac8a13
TT
2814s%@host@%$host%g
2815s%@host_alias@%$host_alias%g
2816s%@host_cpu@%$host_cpu%g
2817s%@host_vendor@%$host_vendor%g
2818s%@host_os@%$host_os%g
2819s%@target@%$target%g
2820s%@target_alias@%$target_alias%g
2821s%@target_cpu@%$target_cpu%g
2822s%@target_vendor@%$target_vendor%g
2823s%@target_os@%$target_os%g
2824s%@build@%$build%g
2825s%@build_alias@%$build_alias%g
2826s%@build_cpu@%$build_cpu%g
2827s%@build_vendor@%$build_vendor%g
2828s%@build_os@%$build_os%g
2829s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2830s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2831s%@INSTALL_DATA@%$INSTALL_DATA%g
2832s%@PACKAGE@%$PACKAGE%g
2833s%@VERSION@%$VERSION%g
2834s%@ACLOCAL@%$ACLOCAL%g
2835s%@AUTOCONF@%$AUTOCONF%g
2836s%@AUTOMAKE@%$AUTOMAKE%g
2837s%@AUTOHEADER@%$AUTOHEADER%g
2838s%@MAKEINFO@%$MAKEINFO%g
2839s%@SET_MAKE@%$SET_MAKE%g
2840s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2841s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2842s%@MAINT@%$MAINT%g
e093c992 2843s%@CC@%$CC%g
dfac8a13 2844s%@EXEEXT@%$EXEEXT%g
dfac8a13 2845s%@LN_S@%$LN_S%g
0fd91e0a
AO
2846s%@OBJEXT@%$OBJEXT%g
2847s%@RANLIB@%$RANLIB%g
2848s%@STRIP@%$STRIP%g
dfac8a13
TT
2849s%@LIBTOOL@%$LIBTOOL%g
2850s%@COMPPATH@%$COMPPATH%g
2851s%@CPP@%$CPP%g
79a9a529 2852s%@target_all@%$target_all%g
b48ed568
TT
2853s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2854s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
e093c992
AG
2855s%@TARGET_LIBRARY_TRUE@%$TARGET_LIBRARY_TRUE%g
2856s%@TARGET_LIBRARY_FALSE@%$TARGET_LIBRARY_FALSE%g
dfac8a13
TT
2857
2858CEOF
2859EOF
2860
2861cat >> $CONFIG_STATUS <<\EOF
2862
2863# Split the substitutions into bite-sized pieces for seds with
2864# small command number limits, like on Digital OSF/1 and HP-UX.
2865ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2866ac_file=1 # Number of current file.
2867ac_beg=1 # First line for current file.
2868ac_end=$ac_max_sed_cmds # Line after last line for current file.
2869ac_more_lines=:
2870ac_sed_cmds=""
2871while $ac_more_lines; do
2872 if test $ac_beg -gt 1; then
2873 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2874 else
2875 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2876 fi
2877 if test ! -s conftest.s$ac_file; then
2878 ac_more_lines=false
2879 rm -f conftest.s$ac_file
2880 else
2881 if test -z "$ac_sed_cmds"; then
2882 ac_sed_cmds="sed -f conftest.s$ac_file"
c45f211e 2883 else
dfac8a13
TT
2884 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2885 fi
2886 ac_file=`expr $ac_file + 1`
2887 ac_beg=$ac_end
2888 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2889 fi
2890done
2891if test -z "$ac_sed_cmds"; then
2892 ac_sed_cmds=cat
2893fi
2894EOF
2895
2896cat >> $CONFIG_STATUS <<EOF
2897
2898CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2899EOF
2900cat >> $CONFIG_STATUS <<\EOF
2901for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2903 case "$ac_file" in
2904 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2905 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2906 *) ac_file_in="${ac_file}.in" ;;
2907 esac
2908
2909 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2910
2911 # Remove last slash and all that follows it. Not all systems have dirname.
2912 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2913 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2914 # The file is in a subdirectory.
2915 test ! -d "$ac_dir" && mkdir "$ac_dir"
2916 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2917 # A "../" for each directory in $ac_dir_suffix.
2918 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2919 else
2920 ac_dir_suffix= ac_dots=
2921 fi
2922
2923 case "$ac_given_srcdir" in
2924 .) srcdir=.
2925 if test -z "$ac_dots"; then top_srcdir=.
2926 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2927 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2928 *) # Relative path.
2929 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2930 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2931 esac
2932
2933 case "$ac_given_INSTALL" in
2934 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2935 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2936 esac
2937
2938 echo creating "$ac_file"
2939 rm -f "$ac_file"
2940 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2941 case "$ac_file" in
2942 *Makefile*) ac_comsub="1i\\
2943# $configure_input" ;;
2944 *) ac_comsub= ;;
2945 esac
2946
2947 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2948 sed -e "$ac_comsub
2949s%@configure_input@%$configure_input%g
2950s%@srcdir@%$srcdir%g
2951s%@top_srcdir@%$top_srcdir%g
2952s%@INSTALL@%$INSTALL%g
2953" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2954fi; done
2955rm -f conftest.s*
2956
2957EOF
2958cat >> $CONFIG_STATUS <<EOF
2959srcdir=${srcdir}
2960host=${host}
2961target=${target}
2962with_multisubdir=${with_multisubdir}
2963ac_configure_args="${multilib_arg} ${ac_configure_args}"
2964CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2965zlib_basedir=${zlib_basedir}
2966CC="${CC}"
2967CXX="${CXX}"
2968
2969EOF
2970cat >> $CONFIG_STATUS <<\EOF
2971if test -n "$CONFIG_FILES"; then
2972 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
2973fi
2974exit 0
2975EOF
2976chmod +x $CONFIG_STATUS
2977rm -fr confdefs* $ac_clean_files
2978test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
c45f211e 2979