source: trunk/src/gcc/zlib/configure@ 2

Last change on this file since 2 was 2, checked in by bird, 22 years ago

Initial revision

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