OSDN Git Service

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