OSDN Git Service

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