source: branches/libc-0.6/src/gcc/zlib/configure

Last change on this file was 1479, checked in by bird, 21 years ago

Joined gcc 3.3.4 with head.

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