OSDN Git Service

patch from Anil Paranjpe to fix H8/300 .ident problem.
[pf3gnuchains/gcc-fork.git] / zlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="zlib.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS zlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CPP EGREP target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --enable-maintainer-mode enable make rules and dependencies not useful
854                           (and sometimes confusing) to the casual installer
855   --enable-multilib       build many library versions (default)
856   --disable-dependency-tracking Speeds up one-time builds
857   --enable-dependency-tracking  Do not reject slow dependency extractors
858   --enable-shared=PKGS  build shared libraries default=yes
859   --enable-static=PKGS  build static libraries default=yes
860   --enable-fast-install=PKGS  optimize for fast installation default=yes
861   --disable-libtool-lock  avoid locking (might break parallel builds)
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866   --with-target-subdir=SUBDIR
867                           configuring in a subdirectory
868   --with-cross-host=HOST  configuring with a cross compiler
869   --with-system-zlib      use installed libz
870   --with-gnu-ld           assume the C compiler uses GNU ld default=no
871   --with-pic              try to use only PIC/non-PIC objects default=use both
872
873 Some influential environment variables:
874   CC          C compiler command
875   CFLAGS      C compiler flags
876   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877               nonstandard directory <lib dir>
878   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879               headers in a nonstandard directory <include dir>
880   CPP         C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889   # If there are subdirs, report their specific --help.
890   ac_popdir=`pwd`
891   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892     test -d $ac_dir || continue
893     ac_builddir=.
894
895 if test "$ac_dir" != .; then
896   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897   # A "../" for each directory in $ac_dir_suffix.
898   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900   ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904   .)  # No --srcdir option.  We are building in place.
905     ac_srcdir=.
906     if test -z "$ac_top_builddir"; then
907        ac_top_srcdir=.
908     else
909        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910     fi ;;
911   [\\/]* | ?:[\\/]* )  # Absolute path.
912     ac_srcdir=$srcdir$ac_dir_suffix;
913     ac_top_srcdir=$srcdir ;;
914   *) # Relative path.
915     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916     ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924   case "$ac_dir" in
925   .) ac_abs_builddir=`pwd`;;
926   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927   *) ac_abs_builddir=`pwd`/"$ac_dir";;
928   esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933   case ${ac_top_builddir}. in
934   .) ac_abs_top_builddir=$ac_abs_builddir;;
935   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942   case $ac_srcdir in
943   .) ac_abs_srcdir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951   case $ac_top_srcdir in
952   .) ac_abs_top_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955   esac;;
956 esac
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd $ac_popdir
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984 _ACEOF
985   exit 0
986 fi
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
991
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59.  Invocation command line was
994
995   $ $0 $@
996
997 _ACEOF
998 {
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1003
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1012
1013 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1014 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1017 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1018 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1019 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1020
1021 _ASUNAME
1022
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1025 do
1026   IFS=$as_save_IFS
1027   test -z "$as_dir" && as_dir=.
1028   echo "PATH: $as_dir"
1029 done
1030
1031 } >&5
1032
1033 cat >&5 <<_ACEOF
1034
1035
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1039
1040 _ACEOF
1041
1042
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_configure_args=
1049 ac_configure_args0=
1050 ac_configure_args1=
1051 ac_sep=
1052 ac_must_keep_next=false
1053 for ac_pass in 1 2
1054 do
1055   for ac_arg
1056   do
1057     case $ac_arg in
1058     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060     | -silent | --silent | --silen | --sile | --sil)
1061       continue ;;
1062     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064     esac
1065     case $ac_pass in
1066     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067     2)
1068       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069       if test $ac_must_keep_next = true; then
1070         ac_must_keep_next=false # Got value, back to normal.
1071       else
1072         case $ac_arg in
1073           *=* | --config-cache | -C | -disable-* | --disable-* \
1074           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076           | -with-* | --with-* | -without-* | --without-* | --x)
1077             case "$ac_configure_args0 " in
1078               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079             esac
1080             ;;
1081           -* ) ac_must_keep_next=true ;;
1082         esac
1083       fi
1084       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085       # Get rid of the leading space.
1086       ac_sep=" "
1087       ;;
1088     esac
1089   done
1090 done
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log.  We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100   # Save into config.log some information that might help in debugging.
1101   {
1102     echo
1103
1104     cat <<\_ASBOX
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1108 _ASBOX
1109     echo
1110     # The following way of writing the cache mishandles newlines in values,
1111 {
1112   (set) 2>&1 |
1113     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114     *ac_space=\ *)
1115       sed -n \
1116         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118       ;;
1119     *)
1120       sed -n \
1121         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122       ;;
1123     esac;
1124 }
1125     echo
1126
1127     cat <<\_ASBOX
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1131 _ASBOX
1132     echo
1133     for ac_var in $ac_subst_vars
1134     do
1135       eval ac_val=$`echo $ac_var`
1136       echo "$ac_var='"'"'$ac_val'"'"'"
1137     done | sort
1138     echo
1139
1140     if test -n "$ac_subst_files"; then
1141       cat <<\_ASBOX
1142 ## ------------- ##
1143 ## Output files. ##
1144 ## ------------- ##
1145 _ASBOX
1146       echo
1147       for ac_var in $ac_subst_files
1148       do
1149         eval ac_val=$`echo $ac_var`
1150         echo "$ac_var='"'"'$ac_val'"'"'"
1151       done | sort
1152       echo
1153     fi
1154
1155     if test -s confdefs.h; then
1156       cat <<\_ASBOX
1157 ## ----------- ##
1158 ## confdefs.h. ##
1159 ## ----------- ##
1160 _ASBOX
1161       echo
1162       sed "/^$/d" confdefs.h | sort
1163       echo
1164     fi
1165     test "$ac_signal" != 0 &&
1166       echo "$as_me: caught signal $ac_signal"
1167     echo "$as_me: exit $exit_status"
1168   } >&5
1169   rm -f core *.core &&
1170   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171     exit $exit_status
1172      ' 0
1173 for ac_signal in 1 2 13 15; do
1174   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 done
1176 ac_signal=0
1177
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 echo >confdefs.h
1182
1183 # Predefined preprocessor variables.
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 _ACEOF
1208
1209
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213   if test "x$prefix" != xNONE; then
1214     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215   else
1216     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217   fi
1218 fi
1219 for ac_site_file in $CONFIG_SITE; do
1220   if test -r "$ac_site_file"; then
1221     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223     sed 's/^/| /' "$ac_site_file" >&5
1224     . "$ac_site_file"
1225   fi
1226 done
1227
1228 if test -r "$cache_file"; then
1229   # Some versions of bash will fail to source /dev/null (special
1230   # files actually), so we avoid doing that.
1231   if test -f "$cache_file"; then
1232     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1234     case $cache_file in
1235       [\\/]* | ?:[\\/]* ) . $cache_file;;
1236       *)                      . ./$cache_file;;
1237     esac
1238   fi
1239 else
1240   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1242   >$cache_file
1243 fi
1244
1245 # Check that the precious variables saved in the cache have kept the same
1246 # value.
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251   eval ac_new_set=\$ac_env_${ac_var}_set
1252   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253   eval ac_new_val="\$ac_env_${ac_var}_value"
1254   case $ac_old_set,$ac_new_set in
1255     set,)
1256       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258       ac_cache_corrupted=: ;;
1259     ,set)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,);;
1264     *)
1265       if test "x$ac_old_val" != "x$ac_new_val"; then
1266         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1269 echo "$as_me:   former value:  $ac_old_val" >&2;}
1270         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1271 echo "$as_me:   current value: $ac_new_val" >&2;}
1272         ac_cache_corrupted=:
1273       fi;;
1274   esac
1275   # Pass precious variables to config.status.
1276   if test "$ac_new_set" = set; then
1277     case $ac_new_val in
1278     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280     *) ac_arg=$ac_var=$ac_new_val ;;
1281     esac
1282     case " $ac_configure_args " in
1283       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1284       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285     esac
1286   fi
1287 done
1288 if $ac_cache_corrupted; then
1289   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293    { (exit 1); exit 1; }; }
1294 fi
1295
1296 ac_ext=c
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322 # This works around the fact that libtool configuration may change LD
1323 # for this particular configuration, but some shells, instead of
1324 # keeping the changes in LD private, export them just because LD is
1325 # exported.
1326 ORIGINAL_LD_FOR_MULTILIBS=$LD
1327
1328
1329 if test "x${with_target_subdir}" != x && \
1330    test "${srcdir}" = "."; then
1331   if test "${with_target_subdir}" != "."; then
1332     zlib_basedir="${srcdir}/${with_multisrctop}../"
1333   else
1334     zlib_basedir="${srcdir}/${with_multisrctop}"
1335   fi
1336 else
1337   zlib_basedir="${srcdir}/"
1338 fi
1339
1340 ac_aux_dir=
1341 for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do
1342   if test -f $ac_dir/install-sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install-sh -c"
1345     break
1346   elif test -f $ac_dir/install.sh; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/install.sh -c"
1349     break
1350   elif test -f $ac_dir/shtool; then
1351     ac_aux_dir=$ac_dir
1352     ac_install_sh="$ac_aux_dir/shtool install -c"
1353     break
1354   fi
1355 done
1356 if test -z "$ac_aux_dir"; then
1357   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&2;}
1359    { (exit 1); exit 1; }; }
1360 fi
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1364
1365 if :; then :; else
1366   # This overrides the previous occurrence for automake, but not for
1367   # autoconf, which is exactly what we want.
1368   ac_aux_dir=
1369 for ac_dir in .. $srcdir/..; do
1370   if test -f $ac_dir/install-sh; then
1371     ac_aux_dir=$ac_dir
1372     ac_install_sh="$ac_aux_dir/install-sh -c"
1373     break
1374   elif test -f $ac_dir/install.sh; then
1375     ac_aux_dir=$ac_dir
1376     ac_install_sh="$ac_aux_dir/install.sh -c"
1377     break
1378   elif test -f $ac_dir/shtool; then
1379     ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/shtool install -c"
1381     break
1382   fi
1383 done
1384 if test -z "$ac_aux_dir"; then
1385   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1386 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392
1393 fi
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408   ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412    { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 echo "$as_me:$LINENO: checking host system type" >&5
1428 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429 if test "${ac_cv_host+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   ac_cv_host_alias=$host_alias
1433 test -z "$ac_cv_host_alias" &&
1434   ac_cv_host_alias=$ac_cv_build_alias
1435 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438    { (exit 1); exit 1; }; }
1439
1440 fi
1441 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442 echo "${ECHO_T}$ac_cv_host" >&6
1443 host=$ac_cv_host
1444 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449 echo "$as_me:$LINENO: checking target system type" >&5
1450 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1451 if test "${ac_cv_target+set}" = set; then
1452   echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454   ac_cv_target_alias=$target_alias
1455 test "x$ac_cv_target_alias" = "x" &&
1456   ac_cv_target_alias=$ac_cv_host_alias
1457 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1458   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1459 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1460    { (exit 1); exit 1; }; }
1461
1462 fi
1463 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1464 echo "${ECHO_T}$ac_cv_target" >&6
1465 target=$ac_cv_target
1466 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469
1470
1471 # The aliases save the names the user supplied, while $host etc.
1472 # will get canonicalized.
1473 test -n "$target_alias" &&
1474   test "$program_prefix$program_suffix$program_transform_name" = \
1475     NONENONEs,x,x, &&
1476   program_prefix=${target_alias}-
1477
1478 # This works around an automake problem.
1479 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1480
1481
1482 am__api_version="1.7"
1483 # Find a good install program.  We prefer a C program (faster),
1484 # so one script is as good as another.  But avoid the broken or
1485 # incompatible versions:
1486 # SysV /etc/install, /usr/sbin/install
1487 # SunOS /usr/etc/install
1488 # IRIX /sbin/install
1489 # AIX /bin/install
1490 # AmigaOS /C/install, which installs bootblocks on floppy discs
1491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1494 # OS/2's system install, which has a completely different semantic
1495 # ./install, which can be erroneously created by make from ./install.sh.
1496 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1497 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1498 if test -z "$INSTALL"; then
1499 if test "${ac_cv_path_install+set}" = set; then
1500   echo $ECHO_N "(cached) $ECHO_C" >&6
1501 else
1502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   # Account for people who put trailing slashes in PATH elements.
1508 case $as_dir/ in
1509   ./ | .// | /cC/* | \
1510   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1511   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1512   /usr/ucb/* ) ;;
1513   *)
1514     # OSF1 and SCO ODT 3.0 have their own names for install.
1515     # Don't use installbsd from OSF since it installs stuff as root
1516     # by default.
1517     for ac_prog in ginstall scoinst install; do
1518       for ac_exec_ext in '' $ac_executable_extensions; do
1519         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1520           if test $ac_prog = install &&
1521             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1522             # AIX install.  It has an incompatible calling convention.
1523             :
1524           elif test $ac_prog = install &&
1525             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1526             # program-specific install script used by HP pwplus--don't use.
1527             :
1528           else
1529             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1530             break 3
1531           fi
1532         fi
1533       done
1534     done
1535     ;;
1536 esac
1537 done
1538
1539
1540 fi
1541   if test "${ac_cv_path_install+set}" = set; then
1542     INSTALL=$ac_cv_path_install
1543   else
1544     # As a last resort, use the slow shell script.  We don't cache a
1545     # path for INSTALL within a source directory, because that will
1546     # break other packages using the cache if that directory is
1547     # removed, or if the path is relative.
1548     INSTALL=$ac_install_sh
1549   fi
1550 fi
1551 echo "$as_me:$LINENO: result: $INSTALL" >&5
1552 echo "${ECHO_T}$INSTALL" >&6
1553
1554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1555 # It thinks the first close brace ends the variable substitution.
1556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1557
1558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1559
1560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1561
1562 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1563 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1564 # Just in case
1565 sleep 1
1566 echo timestamp > conftest.file
1567 # Do `set' in a subshell so we don't clobber the current shell's
1568 # arguments.  Must try -L first in case configure is actually a
1569 # symlink; some systems play weird games with the mod time of symlinks
1570 # (eg FreeBSD returns the mod time of the symlink's containing
1571 # directory).
1572 if (
1573    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1574    if test "$*" = "X"; then
1575       # -L didn't work.
1576       set X `ls -t $srcdir/configure conftest.file`
1577    fi
1578    rm -f conftest.file
1579    if test "$*" != "X $srcdir/configure conftest.file" \
1580       && test "$*" != "X conftest.file $srcdir/configure"; then
1581
1582       # If neither matched, then we have a broken ls.  This can happen
1583       # if, for instance, CONFIG_SHELL is bash and it inherits a
1584       # broken ls alias from the environment.  This has actually
1585       # happened.  Such a system could not be considered "sane".
1586       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1587 alias in your environment" >&5
1588 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1589 alias in your environment" >&2;}
1590    { (exit 1); exit 1; }; }
1591    fi
1592
1593    test "$2" = conftest.file
1594    )
1595 then
1596    # Ok.
1597    :
1598 else
1599    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1600 Check your system clock" >&5
1601 echo "$as_me: error: newly created file is older than distributed files!
1602 Check your system clock" >&2;}
1603    { (exit 1); exit 1; }; }
1604 fi
1605 echo "$as_me:$LINENO: result: yes" >&5
1606 echo "${ECHO_T}yes" >&6
1607 test "$program_prefix" != NONE &&
1608   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1609 # Use a double $ so make ignores it.
1610 test "$program_suffix" != NONE &&
1611   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1612 # Double any \ or $.  echo might interpret backslashes.
1613 # By default was `s,x,x', remove it if useless.
1614 cat <<\_ACEOF >conftest.sed
1615 s/[\\$]/&&/g;s/;s,x,x,$//
1616 _ACEOF
1617 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1618 rm conftest.sed
1619
1620
1621 # expand $ac_aux_dir to an absolute path
1622 am_aux_dir=`cd $ac_aux_dir && pwd`
1623
1624 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1625 # Use eval to expand $SHELL
1626 if eval "$MISSING --run true"; then
1627   am_missing_run="$MISSING --run "
1628 else
1629   am_missing_run=
1630   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1631 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1632 fi
1633
1634 for ac_prog in gawk mawk nawk awk
1635 do
1636   # Extract the first word of "$ac_prog", so it can be a program name with args.
1637 set dummy $ac_prog; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_AWK+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$AWK"; then
1644   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_AWK="$ac_prog"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 AWK=$ac_cv_prog_AWK
1663 if test -n "$AWK"; then
1664   echo "$as_me:$LINENO: result: $AWK" >&5
1665 echo "${ECHO_T}$AWK" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671   test -n "$AWK" && break
1672 done
1673
1674 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1675 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1677 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   cat >conftest.make <<\_ACEOF
1681 all:
1682         @echo 'ac_maketemp="$(MAKE)"'
1683 _ACEOF
1684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1685 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1686 if test -n "$ac_maketemp"; then
1687   eval ac_cv_prog_make_${ac_make}_set=yes
1688 else
1689   eval ac_cv_prog_make_${ac_make}_set=no
1690 fi
1691 rm -f conftest.make
1692 fi
1693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1694   echo "$as_me:$LINENO: result: yes" >&5
1695 echo "${ECHO_T}yes" >&6
1696   SET_MAKE=
1697 else
1698   echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700   SET_MAKE="MAKE=${MAKE-make}"
1701 fi
1702
1703 rm -rf .tst 2>/dev/null
1704 mkdir .tst 2>/dev/null
1705 if test -d .tst; then
1706   am__leading_dot=.
1707 else
1708   am__leading_dot=_
1709 fi
1710 rmdir .tst 2>/dev/null
1711
1712  # test to see if srcdir already configured
1713 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1714    test -f $srcdir/config.status; then
1715   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1716 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1717    { (exit 1); exit 1; }; }
1718 fi
1719
1720 # test whether we have cygpath
1721 if test -z "$CYGPATH_W"; then
1722   if (cygpath --version) >/dev/null 2>/dev/null; then
1723     CYGPATH_W='cygpath -w'
1724   else
1725     CYGPATH_W=echo
1726   fi
1727 fi
1728
1729
1730 # Define the identity of the package.
1731  PACKAGE=zlib
1732  VERSION=1.1.4
1733
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE "$PACKAGE"
1737 _ACEOF
1738
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define VERSION "$VERSION"
1742 _ACEOF
1743
1744 # Some tools Automake needs.
1745
1746 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1747
1748
1749 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1750
1751
1752 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1753
1754
1755 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1756
1757
1758 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1759
1760
1761 AMTAR=${AMTAR-"${am_missing_run}tar"}
1762
1763 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1764
1765 # Installed binaries are usually stripped using `strip' when the user
1766 # run `make install-strip'.  However `strip' might not be the right
1767 # tool to use in cross-compilation environments, therefore Automake
1768 # will honor the `STRIP' environment variable to overrule this program.
1769 if test "$cross_compiling" != no; then
1770   if test -n "$ac_tool_prefix"; then
1771   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772 set dummy ${ac_tool_prefix}strip; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_STRIP+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778   if test -n "$STRIP"; then
1779   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1780 else
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1783 do
1784   IFS=$as_save_IFS
1785   test -z "$as_dir" && as_dir=.
1786   for ac_exec_ext in '' $ac_executable_extensions; do
1787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790     break 2
1791   fi
1792 done
1793 done
1794
1795 fi
1796 fi
1797 STRIP=$ac_cv_prog_STRIP
1798 if test -n "$STRIP"; then
1799   echo "$as_me:$LINENO: result: $STRIP" >&5
1800 echo "${ECHO_T}$STRIP" >&6
1801 else
1802   echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1804 fi
1805
1806 fi
1807 if test -z "$ac_cv_prog_STRIP"; then
1808   ac_ct_STRIP=$STRIP
1809   # Extract the first word of "strip", so it can be a program name with args.
1810 set dummy strip; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814   echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816   if test -n "$ac_ct_STRIP"; then
1817   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822   IFS=$as_save_IFS
1823   test -z "$as_dir" && as_dir=.
1824   for ac_exec_ext in '' $ac_executable_extensions; do
1825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826     ac_cv_prog_ac_ct_STRIP="strip"
1827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828     break 2
1829   fi
1830 done
1831 done
1832
1833   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1834 fi
1835 fi
1836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1837 if test -n "$ac_ct_STRIP"; then
1838   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839 echo "${ECHO_T}$ac_ct_STRIP" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845   STRIP=$ac_ct_STRIP
1846 else
1847   STRIP="$ac_cv_prog_STRIP"
1848 fi
1849
1850 fi
1851 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1852
1853 # We need awk for the "check" target.  The system "awk" is bad on
1854 # some platforms.
1855
1856
1857
1858
1859 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1860 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1861     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1862 if test "${enable_maintainer_mode+set}" = set; then
1863   enableval="$enable_maintainer_mode"
1864   USE_MAINTAINER_MODE=$enableval
1865 else
1866   USE_MAINTAINER_MODE=no
1867 fi;
1868   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1869 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1870
1871
1872 if test $USE_MAINTAINER_MODE = yes; then
1873   MAINTAINER_MODE_TRUE=
1874   MAINTAINER_MODE_FALSE='#'
1875 else
1876   MAINTAINER_MODE_TRUE='#'
1877   MAINTAINER_MODE_FALSE=
1878 fi
1879
1880   MAINT=$MAINTAINER_MODE_TRUE
1881
1882
1883
1884
1885 # Check whether --with-target-subdir or --without-target-subdir was given.
1886 if test "${with_target_subdir+set}" = set; then
1887   withval="$with_target_subdir"
1888
1889 fi;
1890
1891 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
1892    COMPPATH=.
1893 else
1894    COMPPATH=..
1895 fi
1896
1897
1898
1899 # Check whether --with-cross-host or --without-cross-host was given.
1900 if test "${with_cross_host+set}" = set; then
1901   withval="$with_cross_host"
1902
1903 fi;
1904
1905 # Check whether --enable-multilib or --disable-multilib was given.
1906 if test "${enable_multilib+set}" = set; then
1907   enableval="$enable_multilib"
1908   case "${enableval}" in
1909   yes) multilib=yes ;;
1910   no)  multilib=no ;;
1911   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1912 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1913    { (exit 1); exit 1; }; } ;;
1914  esac
1915 else
1916   test -z "$with_target_subdir" && multilib=no || multilib=yes
1917 fi;
1918
1919 # Check whether --with-system-zlib or --without-system-zlib was given.
1920 if test "${with_system_zlib+set}" = set; then
1921   withval="$with_system_zlib"
1922
1923 fi;
1924
1925 # Make sure we don't test executables when making cross-tools.
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 if test -n "$ac_tool_prefix"; then
1934   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$CC"; then
1942   ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 fi
1959 fi
1960 CC=$ac_cv_prog_CC
1961 if test -n "$CC"; then
1962   echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969 fi
1970 if test -z "$ac_cv_prog_CC"; then
1971   ac_ct_CC=$CC
1972   # Extract the first word of "gcc", so it can be a program name with args.
1973 set dummy gcc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$ac_ct_CC"; then
1980   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989     ac_cv_prog_ac_ct_CC="gcc"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1999 if test -n "$ac_ct_CC"; then
2000   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2001 echo "${ECHO_T}$ac_ct_CC" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007   CC=$ac_ct_CC
2008 else
2009   CC="$ac_cv_prog_CC"
2010 fi
2011
2012 if test -z "$CC"; then
2013   if test -n "$ac_tool_prefix"; then
2014   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}cc; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$CC"; then
2022   ac_cv_prog_CC="$CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031     ac_cv_prog_CC="${ac_tool_prefix}cc"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042   echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6
2044 else
2045   echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049 fi
2050 if test -z "$ac_cv_prog_CC"; then
2051   ac_ct_CC=$CC
2052   # Extract the first word of "cc", so it can be a program name with args.
2053 set dummy cc; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$ac_ct_CC"; then
2060   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069     ac_cv_prog_ac_ct_CC="cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075
2076 fi
2077 fi
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6
2082 else
2083   echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2085 fi
2086
2087   CC=$ac_ct_CC
2088 else
2089   CC="$ac_cv_prog_CC"
2090 fi
2091
2092 fi
2093 if test -z "$CC"; then
2094   # Extract the first word of "cc", so it can be a program name with args.
2095 set dummy cc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$CC"; then
2102   ac_cv_prog_CC="$CC" # Let the user override the test.
2103 else
2104   ac_prog_rejected=no
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2113        ac_prog_rejected=yes
2114        continue
2115      fi
2116     ac_cv_prog_CC="cc"
2117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122
2123 if test $ac_prog_rejected = yes; then
2124   # We found a bogon in the path, so make sure we never use it.
2125   set dummy $ac_cv_prog_CC
2126   shift
2127   if test $# != 0; then
2128     # We chose a different compiler from the bogus one.
2129     # However, it has the same basename, so the bogon will be chosen
2130     # first if we set CC to just the basename; use the full file name.
2131     shift
2132     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2133   fi
2134 fi
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139   echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6
2141 else
2142   echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6
2144 fi
2145
2146 fi
2147 if test -z "$CC"; then
2148   if test -n "$ac_tool_prefix"; then
2149   for ac_prog in cl
2150   do
2151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6
2181 else
2182   echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2184 fi
2185
2186     test -n "$CC" && break
2187   done
2188 fi
2189 if test -z "$CC"; then
2190   ac_ct_CC=$CC
2191   for ac_prog in cl
2192 do
2193   # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   if test -n "$ac_ct_CC"; then
2201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210     ac_cv_prog_ac_ct_CC="$ac_prog"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216
2217 fi
2218 fi
2219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2220 if test -n "$ac_ct_CC"; then
2221   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2222 echo "${ECHO_T}$ac_ct_CC" >&6
2223 else
2224   echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2226 fi
2227
2228   test -n "$ac_ct_CC" && break
2229 done
2230
2231   CC=$ac_ct_CC
2232 fi
2233
2234 fi
2235
2236
2237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: no acceptable C compiler found in \$PATH
2240 See \`config.log' for more details." >&2;}
2241    { (exit 1); exit 1; }; }
2242
2243 # Provide some information about the compiler.
2244 echo "$as_me:$LINENO:" \
2245      "checking for C compiler version" >&5
2246 ac_compiler=`set X $ac_compile; echo $2`
2247 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2248   (eval $ac_compiler --version </dev/null >&5) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }
2252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2253   (eval $ac_compiler -v </dev/null >&5) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }
2257 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2258   (eval $ac_compiler -V </dev/null >&5) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }
2262
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h.  */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h.  */
2269
2270 int
2271 main ()
2272 {
2273
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 # FIXME: Cleanup?
2279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2280   (eval $ac_link) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; then
2284   gcc_no_link=no
2285 else
2286   gcc_no_link=yes
2287 fi
2288
2289 if test x$gcc_no_link = xyes; then
2290   # Setting cross_compile will disable run tests; it will
2291   # also disable AC_CHECK_FILE but that's generally
2292   # correct if we can't link.
2293   cross_compiling=yes
2294   EXEEXT=
2295 else
2296   cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302
2303 int
2304 main ()
2305 {
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2315 # of exeext.
2316 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2320   (eval $ac_link_default) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; then
2324   # Find the output, starting from the most likely.  This scheme is
2325 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2326 # resort.
2327
2328 # Be careful to initialize this variable, since it used to be cached.
2329 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330 ac_cv_exeext=
2331 # b.out is created by i960 compilers.
2332 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333 do
2334   test -f "$ac_file" || continue
2335   case $ac_file in
2336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2337         ;;
2338     conftest.$ac_ext )
2339         # This is the source file.
2340         ;;
2341     [ab].out )
2342         # We found the default executable, but exeext='' is most
2343         # certainly right.
2344         break;;
2345     *.* )
2346         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347         # FIXME: I believe we export ac_cv_exeext for Libtool,
2348         # but it would be cool to find out if it's true.  Does anybody
2349         # maintain Libtool? --akim.
2350         export ac_cv_exeext
2351         break;;
2352     * )
2353         break;;
2354   esac
2355 done
2356 else
2357   echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: C compiler cannot create executables
2363 See \`config.log' for more details." >&2;}
2364    { (exit 77); exit 77; }; }
2365 fi
2366
2367 ac_exeext=$ac_cv_exeext
2368 echo "$as_me:$LINENO: result: $ac_file" >&5
2369 echo "${ECHO_T}$ac_file" >&6
2370
2371 # Check the compiler produces executables we can run.  If not, either
2372 # the compiler is broken, or we cross compile.
2373 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2374 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2375 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2376 # If not cross compiling, check that we can run a simple program.
2377 if test "$cross_compiling" != yes; then
2378   if { ac_try='./$ac_file'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; }; then
2384     cross_compiling=no
2385   else
2386     if test "$cross_compiling" = maybe; then
2387         cross_compiling=yes
2388     else
2389         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2390 If you meant to cross compile, use \`--host'.
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot run C compiled programs.
2393 If you meant to cross compile, use \`--host'.
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }
2396     fi
2397   fi
2398 fi
2399 echo "$as_me:$LINENO: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2401
2402 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2403 ac_clean_files=$ac_clean_files_save
2404 # Check the compiler produces executables we can run.  If not, either
2405 # the compiler is broken, or we cross compile.
2406 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2407 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2408 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2409 echo "${ECHO_T}$cross_compiling" >&6
2410
2411 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2412 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2414   (eval $ac_link) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; then
2418   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2419 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2420 # work properly (i.e., refer to `conftest.exe'), while it won't with
2421 # `rm'.
2422 for ac_file in conftest.exe conftest conftest.*; do
2423   test -f "$ac_file" || continue
2424   case $ac_file in
2425     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2426     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427           export ac_cv_exeext
2428           break;;
2429     * ) break;;
2430   esac
2431 done
2432 else
2433   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438 fi
2439
2440 rm -f conftest$ac_cv_exeext
2441 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2442 echo "${ECHO_T}$ac_cv_exeext" >&6
2443
2444 rm -f conftest.$ac_ext
2445 EXEEXT=$ac_cv_exeext
2446 ac_exeext=$EXEEXT
2447 fi
2448 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2449 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2450 if test "${ac_cv_objext+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.o conftest.obj
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470   (eval $ac_compile) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; then
2474   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2475   case $ac_file in
2476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2477     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2478        break;;
2479   esac
2480 done
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2488 See \`config.log' for more details." >&2;}
2489    { (exit 1); exit 1; }; }
2490 fi
2491
2492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 fi
2494 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2495 echo "${ECHO_T}$ac_cv_objext" >&6
2496 OBJEXT=$ac_cv_objext
2497 ac_objext=$OBJEXT
2498 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2499 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513 #ifndef __GNUC__
2514        choke me
2515 #endif
2516
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -z "$ac_c_werror_flag"
2531                          || test ! -s conftest.err'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; } &&
2537          { ac_try='test -s conftest.$ac_objext'
2538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539   (eval $ac_try) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; }; then
2543   ac_compiler_gnu=yes
2544 else
2545   echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_compiler_gnu=no
2549 fi
2550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2552
2553 fi
2554 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2555 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2556 GCC=`test $ac_compiler_gnu = yes && echo yes`
2557 ac_test_CFLAGS=${CFLAGS+set}
2558 ac_save_CFLAGS=$CFLAGS
2559 CFLAGS="-g"
2560 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2561 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2562 if test "${ac_cv_prog_cc_g+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582   (eval $ac_compile) 2>conftest.er1
2583   ac_status=$?
2584   grep -v '^ *+' conftest.er1 >conftest.err
2585   rm -f conftest.er1
2586   cat conftest.err >&5
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); } &&
2589          { ac_try='test -z "$ac_c_werror_flag"
2590                          || test ! -s conftest.err'
2591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592   (eval $ac_try) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   ac_cv_prog_cc_g=yes
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 ac_cv_prog_cc_g=no
2608 fi
2609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2613 if test "$ac_test_CFLAGS" = set; then
2614   CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616   if test "$GCC" = yes; then
2617     CFLAGS="-g -O2"
2618   else
2619     CFLAGS="-g"
2620   fi
2621 else
2622   if test "$GCC" = yes; then
2623     CFLAGS="-O2"
2624   else
2625     CFLAGS=
2626   fi
2627 fi
2628 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2629 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   ac_cv_prog_cc_stdc=no
2634 ac_save_CC=$CC
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641 #include <stdarg.h>
2642 #include <stdio.h>
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2649      char **p;
2650      int i;
2651 {
2652   return p[i];
2653 }
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2655 {
2656   char *s;
2657   va_list v;
2658   va_start (v,p);
2659   s = g (p, va_arg (v,int));
2660   va_end (v);
2661   return s;
2662 }
2663
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2665    function prototypes and stuff, but not '\xHH' hex character constants.
2666    These don't provoke an error unfortunately, instead are silently treated
2667    as 'x'.  The following induces an error, until -std1 is added to get
2668    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2669    array size at least.  It's necessary to write '\x00'==0 to get something
2670    that's true only with -std1.  */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
2673 int test (int i, double x);
2674 struct s1 {int (*f) (int a);};
2675 struct s2 {int (*f) (double a);};
2676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2677 int argc;
2678 char **argv;
2679 int
2680 main ()
2681 {
2682 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 # Don't try gcc -ansi; that turns off useful extensions and
2688 # breaks some systems' header files.
2689 # AIX                   -qlanglvl=ansi
2690 # Ultrix and OSF/1      -std1
2691 # HP-UX 10.20 and later -Ae
2692 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2693 # SVR4                  -Xc -D__EXTENSIONS__
2694 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 do
2696   CC="$ac_save_CC $ac_arg"
2697   rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_c_werror_flag"
2707                          || test ! -s conftest.err'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; } &&
2713          { ac_try='test -s conftest.$ac_objext'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   ac_cv_prog_cc_stdc=$ac_arg
2720 break
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 fi
2726 rm -f conftest.err conftest.$ac_objext
2727 done
2728 rm -f conftest.$ac_ext conftest.$ac_objext
2729 CC=$ac_save_CC
2730
2731 fi
2732
2733 case "x$ac_cv_prog_cc_stdc" in
2734   x|xno)
2735     echo "$as_me:$LINENO: result: none needed" >&5
2736 echo "${ECHO_T}none needed" >&6 ;;
2737   *)
2738     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2739 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2740     CC="$CC $ac_cv_prog_cc_stdc" ;;
2741 esac
2742
2743 # Some people use a C++ compiler to compile C.  Since we use `exit',
2744 # in C++ we need to declare it.  In case someone uses the same compiler
2745 # for both compiling C and C++ we need to have the C++ compiler decide
2746 # the declaration of exit, since it's the most demanding environment.
2747 cat >conftest.$ac_ext <<_ACEOF
2748 #ifndef __cplusplus
2749   choke me
2750 #endif
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754   (eval $ac_compile) 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -z "$ac_c_werror_flag"
2762                          || test ! -s conftest.err'
2763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764   (eval $ac_try) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; } &&
2768          { ac_try='test -s conftest.$ac_objext'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; }; then
2774   for ac_declaration in \
2775    '' \
2776    'extern "C" void std::exit (int) throw (); using std::exit;' \
2777    'extern "C" void std::exit (int); using std::exit;' \
2778    'extern "C" void exit (int) throw ();' \
2779    'extern "C" void exit (int);' \
2780    'void exit (int);'
2781 do
2782   cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h.  */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h.  */
2788 $ac_declaration
2789 #include <stdlib.h>
2790 int
2791 main ()
2792 {
2793 exit (42);
2794   ;
2795   return 0;
2796 }
2797 _ACEOF
2798 rm -f conftest.$ac_objext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800   (eval $ac_compile) 2>conftest.er1
2801   ac_status=$?
2802   grep -v '^ *+' conftest.er1 >conftest.err
2803   rm -f conftest.er1
2804   cat conftest.err >&5
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -z "$ac_c_werror_flag"
2808                          || test ! -s conftest.err'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; } &&
2814          { ac_try='test -s conftest.$ac_objext'
2815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816   (eval $ac_try) 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; }; then
2820   :
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 continue
2826 fi
2827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828   cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 $ac_declaration
2835 int
2836 main ()
2837 {
2838 exit (42);
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845   (eval $ac_compile) 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -z "$ac_c_werror_flag"
2853                          || test ! -s conftest.err'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; } &&
2859          { ac_try='test -s conftest.$ac_objext'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   break
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 fi
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872 done
2873 rm -f conftest*
2874 if test -n "$ac_declaration"; then
2875   echo '#ifdef __cplusplus' >>confdefs.h
2876   echo $ac_declaration      >>confdefs.h
2877   echo '#endif'             >>confdefs.h
2878 fi
2879
2880 else
2881   echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2883
2884 fi
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 DEPDIR="${am__leading_dot}deps"
2892
2893           ac_config_commands="$ac_config_commands depfiles"
2894
2895
2896 am_make=${MAKE-make}
2897 cat > confinc << 'END'
2898 am__doit:
2899         @echo done
2900 .PHONY: am__doit
2901 END
2902 # If we don't find an include directive, just comment out the code.
2903 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2904 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2905 am__include="#"
2906 am__quote=
2907 _am_result=none
2908 # First try GNU make style include.
2909 echo "include confinc" > confmf
2910 # We grep out `Entering directory' and `Leaving directory'
2911 # messages which can occur if `w' ends up in MAKEFLAGS.
2912 # In particular we don't look at `^make:' because GNU make might
2913 # be invoked under some other name (usually "gmake"), in which
2914 # case it prints its new name instead of `make'.
2915 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2916    am__include=include
2917    am__quote=
2918    _am_result=GNU
2919 fi
2920 # Now try BSD make style include.
2921 if test "$am__include" = "#"; then
2922    echo '.include "confinc"' > confmf
2923    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2924       am__include=.include
2925       am__quote="\""
2926       _am_result=BSD
2927    fi
2928 fi
2929
2930
2931 echo "$as_me:$LINENO: result: $_am_result" >&5
2932 echo "${ECHO_T}$_am_result" >&6
2933 rm -f confinc confmf
2934
2935 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2936 if test "${enable_dependency_tracking+set}" = set; then
2937   enableval="$enable_dependency_tracking"
2938
2939 fi;
2940 if test "x$enable_dependency_tracking" != xno; then
2941   am_depcomp="$ac_aux_dir/depcomp"
2942   AMDEPBACKSLASH='\'
2943 fi
2944
2945
2946 if test "x$enable_dependency_tracking" != xno; then
2947   AMDEP_TRUE=
2948   AMDEP_FALSE='#'
2949 else
2950   AMDEP_TRUE='#'
2951   AMDEP_FALSE=
2952 fi
2953
2954
2955
2956
2957 depcc="$CC"   am_compiler_list=
2958
2959 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2960 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2961 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2962   echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2965   # We make a subdir and do the tests there.  Otherwise we can end up
2966   # making bogus files that we don't know about and never remove.  For
2967   # instance it was reported that on HP-UX the gcc test will end up
2968   # making a dummy file named `D' -- because `-MD' means `put the output
2969   # in D'.
2970   mkdir conftest.dir
2971   # Copy depcomp to subdir because otherwise we won't find it if we're
2972   # using a relative directory.
2973   cp "$am_depcomp" conftest.dir
2974   cd conftest.dir
2975   # We will build objects and dependencies in a subdirectory because
2976   # it helps to detect inapplicable dependency modes.  For instance
2977   # both Tru64's cc and ICC support -MD to output dependencies as a
2978   # side effect of compilation, but ICC will put the dependencies in
2979   # the current directory while Tru64 will put them in the object
2980   # directory.
2981   mkdir sub
2982
2983   am_cv_CC_dependencies_compiler_type=none
2984   if test "$am_compiler_list" = ""; then
2985      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2986   fi
2987   for depmode in $am_compiler_list; do
2988     # Setup a source with many dependencies, because some compilers
2989     # like to wrap large dependency lists on column 80 (with \), and
2990     # we should not choose a depcomp mode which is confused by this.
2991     #
2992     # We need to recreate these files for each test, as the compiler may
2993     # overwrite some of them when testing with obscure command lines.
2994     # This happens at least with the AIX C compiler.
2995     : > sub/conftest.c
2996     for i in 1 2 3 4 5 6; do
2997       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2998       : > sub/conftst$i.h
2999     done
3000     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3001
3002     case $depmode in
3003     nosideeffect)
3004       # after this tag, mechanisms are not by side-effect, so they'll
3005       # only be used when explicitly requested
3006       if test "x$enable_dependency_tracking" = xyes; then
3007         continue
3008       else
3009         break
3010       fi
3011       ;;
3012     none) break ;;
3013     esac
3014     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3015     # mode.  It turns out that the SunPro C++ compiler does not properly
3016     # handle `-M -o', and we need to detect this.
3017     if depmode=$depmode \
3018        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3019        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3020        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3021          >/dev/null 2>conftest.err &&
3022        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3023        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3024        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3025       # icc doesn't choke on unknown options, it will just issue warnings
3026       # (even with -Werror).  So we grep stderr for any message
3027       # that says an option was ignored.
3028       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3029         am_cv_CC_dependencies_compiler_type=$depmode
3030         break
3031       fi
3032     fi
3033   done
3034
3035   cd ..
3036   rm -rf conftest.dir
3037 else
3038   am_cv_CC_dependencies_compiler_type=none
3039 fi
3040
3041 fi
3042 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3043 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3044 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3045
3046
3047
3048 if
3049   test "x$enable_dependency_tracking" != xno \
3050   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3051   am__fastdepCC_TRUE=
3052   am__fastdepCC_FALSE='#'
3053 else
3054   am__fastdepCC_TRUE='#'
3055   am__fastdepCC_FALSE=
3056 fi
3057
3058
3059
3060 # Check whether --enable-shared or --disable-shared was given.
3061 if test "${enable_shared+set}" = set; then
3062   enableval="$enable_shared"
3063   p=${PACKAGE-default}
3064 case $enableval in
3065 yes) enable_shared=yes ;;
3066 no) enable_shared=no ;;
3067 *)
3068   enable_shared=no
3069   # Look at the argument we got.  We use all the common list separators.
3070   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3071   for pkg in $enableval; do
3072     if test "X$pkg" = "X$p"; then
3073       enable_shared=yes
3074     fi
3075   done
3076   IFS="$ac_save_ifs"
3077   ;;
3078 esac
3079 else
3080   enable_shared=yes
3081 fi;
3082 # Check whether --enable-static or --disable-static was given.
3083 if test "${enable_static+set}" = set; then
3084   enableval="$enable_static"
3085   p=${PACKAGE-default}
3086 case $enableval in
3087 yes) enable_static=yes ;;
3088 no) enable_static=no ;;
3089 *)
3090   enable_static=no
3091   # Look at the argument we got.  We use all the common list separators.
3092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3093   for pkg in $enableval; do
3094     if test "X$pkg" = "X$p"; then
3095       enable_static=yes
3096     fi
3097   done
3098   IFS="$ac_save_ifs"
3099   ;;
3100 esac
3101 else
3102   enable_static=yes
3103 fi;
3104 # Check whether --enable-fast-install or --disable-fast-install was given.
3105 if test "${enable_fast_install+set}" = set; then
3106   enableval="$enable_fast_install"
3107   p=${PACKAGE-default}
3108 case $enableval in
3109 yes) enable_fast_install=yes ;;
3110 no) enable_fast_install=no ;;
3111 *)
3112   enable_fast_install=no
3113   # Look at the argument we got.  We use all the common list separators.
3114   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3115   for pkg in $enableval; do
3116     if test "X$pkg" = "X$p"; then
3117       enable_fast_install=yes
3118     fi
3119   done
3120   IFS="$ac_save_ifs"
3121   ;;
3122 esac
3123 else
3124   enable_fast_install=yes
3125 fi;
3126
3127 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3128 if test "${with_gnu_ld+set}" = set; then
3129   withval="$with_gnu_ld"
3130   test "$withval" = no || with_gnu_ld=yes
3131 else
3132   with_gnu_ld=no
3133 fi;
3134 ac_prog=ld
3135 if test "$GCC" = yes; then
3136   # Check if gcc -print-prog-name=ld gives a path.
3137   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3138 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3139   case $host in
3140   *-*-mingw*)
3141     # gcc leaves a trailing carriage return which upsets mingw
3142     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3143   *)
3144     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3145   esac
3146   case $ac_prog in
3147     # Accept absolute paths.
3148     [\\/]* | [A-Za-z]:[\\/]*)
3149       re_direlt='/[^/][^/]*/\.\./'
3150       # Canonicalize the path of ld
3151       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3152       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3153         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3154       done
3155       test -z "$LD" && LD="$ac_prog"
3156       ;;
3157   "")
3158     # If it fails, then pretend we aren't using GCC.
3159     ac_prog=ld
3160     ;;
3161   *)
3162     # If it is relative, then search for the first ld in PATH.
3163     with_gnu_ld=unknown
3164     ;;
3165   esac
3166 elif test "$with_gnu_ld" = yes; then
3167   echo "$as_me:$LINENO: checking for GNU ld" >&5
3168 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3169 else
3170   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3171 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3172 fi
3173 if test "${lt_cv_path_LD+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176   if test -z "$LD"; then
3177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3178   for ac_dir in $PATH; do
3179     test -z "$ac_dir" && ac_dir=.
3180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3181       lt_cv_path_LD="$ac_dir/$ac_prog"
3182       # Check to see if the program is GNU ld.  I'd rather use --version,
3183       # but apparently some GNU ld's only accept -v.
3184       # Break only if it was the GNU/non-GNU ld that we prefer.
3185       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3186         test "$with_gnu_ld" != no && break
3187       else
3188         test "$with_gnu_ld" != yes && break
3189       fi
3190     fi
3191   done
3192   IFS="$ac_save_ifs"
3193 else
3194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3195 fi
3196 fi
3197
3198 LD="$lt_cv_path_LD"
3199 if test -n "$LD"; then
3200   echo "$as_me:$LINENO: result: $LD" >&5
3201 echo "${ECHO_T}$LD" >&6
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3208    { (exit 1); exit 1; }; }
3209 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3215 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3216   lt_cv_prog_gnu_ld=yes
3217 else
3218   lt_cv_prog_gnu_ld=no
3219 fi
3220 fi
3221 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3223 with_gnu_ld=$lt_cv_prog_gnu_ld
3224
3225
3226 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3227 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3228 if test "${lt_cv_ld_reload_flag+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   lt_cv_ld_reload_flag='-r'
3232 fi
3233 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3234 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3235 reload_flag=$lt_cv_ld_reload_flag
3236 test -n "$reload_flag" && reload_flag=" $reload_flag"
3237
3238 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3239 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3240 if test "${lt_cv_path_NM+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   if test -n "$NM"; then
3244   # Let the user override the test.
3245   lt_cv_path_NM="$NM"
3246 else
3247   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3248   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3249     test -z "$ac_dir" && ac_dir=.
3250     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3251     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3252       # Check to see if the nm accepts a BSD-compat flag.
3253       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3254       #   nm: unknown option "B" ignored
3255       # Tru64's nm complains that /dev/null is an invalid object file
3256       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3257         lt_cv_path_NM="$tmp_nm -B"
3258         break
3259       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3260         lt_cv_path_NM="$tmp_nm -p"
3261         break
3262       else
3263         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3264         continue # so that we can try to find one that supports BSD flags
3265       fi
3266     fi
3267   done
3268   IFS="$ac_save_ifs"
3269   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3270 fi
3271 fi
3272
3273 NM="$lt_cv_path_NM"
3274 echo "$as_me:$LINENO: result: $NM" >&5
3275 echo "${ECHO_T}$NM" >&6
3276
3277 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3278 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3279 LN_S=$as_ln_s
3280 if test "$LN_S" = "ln -s"; then
3281   echo "$as_me:$LINENO: result: yes" >&5
3282 echo "${ECHO_T}yes" >&6
3283 else
3284   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3285 echo "${ECHO_T}no, using $LN_S" >&6
3286 fi
3287
3288 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3289 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3290 if test "${lt_cv_deplibs_check_method+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   lt_cv_file_magic_cmd='$MAGIC_CMD'
3294 lt_cv_file_magic_test_file=
3295 lt_cv_deplibs_check_method='unknown'
3296 # Need to set the preceding variable on all platforms that support
3297 # interlibrary dependencies.
3298 # 'none' -- dependencies not supported.
3299 # `unknown' -- same as none, but documents that we really don't know.
3300 # 'pass_all' -- all dependencies passed with no checks.
3301 # 'test_compile' -- check by making test program.
3302 # 'file_magic [regex]' -- check by looking for files in library path
3303 # which responds to the $file_magic_cmd with a given egrep regex.
3304 # If you have `file' or equivalent on your system and you're not sure
3305 # whether `pass_all' will *always* work, you probably want this one.
3306
3307 case $host_os in
3308 aix*)
3309   lt_cv_deplibs_check_method=pass_all
3310   ;;
3311
3312 beos*)
3313   lt_cv_deplibs_check_method=pass_all
3314   ;;
3315
3316 bsdi4*)
3317   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3318   lt_cv_file_magic_cmd='/usr/bin/file -L'
3319   lt_cv_file_magic_test_file=/shlib/libc.so
3320   ;;
3321
3322 cygwin* | mingw* |pw32*)
3323   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3324   lt_cv_file_magic_cmd='$OBJDUMP -f'
3325   ;;
3326
3327 darwin* | rhapsody*)
3328   # this will be overwritten by pass_all, but leave it in just in case
3329   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3330   lt_cv_file_magic_cmd='/usr/bin/file -L'
3331   case "$host_os" in
3332   rhapsody* | darwin1.012)
3333     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3334     ;;
3335   *) # Darwin 1.3 on
3336     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3337     ;;
3338   esac
3339   lt_cv_deplibs_check_method=pass_all
3340   ;;
3341
3342 freebsd* )
3343   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3344     case $host_cpu in
3345     i*86 )
3346       # Not sure whether the presence of OpenBSD here was a mistake.
3347       # Let's accept both of them until this is cleared up.
3348       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3349       lt_cv_file_magic_cmd=/usr/bin/file
3350       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3351       ;;
3352     esac
3353   else
3354     lt_cv_deplibs_check_method=pass_all
3355   fi
3356   ;;
3357
3358 gnu*)
3359   lt_cv_deplibs_check_method=pass_all
3360   ;;
3361
3362 hpux10.20*|hpux11*)
3363   case $host_cpu in
3364   hppa*)
3365     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3366     lt_cv_file_magic_cmd=/usr/bin/file
3367     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3368     ;;
3369   ia64*)
3370     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3371     lt_cv_file_magic_cmd=/usr/bin/file
3372     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3373     ;;
3374   esac
3375   ;;
3376
3377 irix5* | irix6*)
3378   case $host_os in
3379   irix5*)
3380     # this will be overridden with pass_all, but let us keep it just in case
3381     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3382     ;;
3383   *)
3384     case $LD in
3385     *-32|*"-32 ") libmagic=32-bit;;
3386     *-n32|*"-n32 ") libmagic=N32;;
3387     *-64|*"-64 ") libmagic=64-bit;;
3388     *) libmagic=never-match;;
3389     esac
3390     # this will be overridden with pass_all, but let us keep it just in case
3391     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3392     ;;
3393   esac
3394   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3395   lt_cv_deplibs_check_method=pass_all
3396   ;;
3397
3398 # This must be Linux ELF.
3399 linux-gnu*)
3400   case $host_cpu in
3401   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3402     lt_cv_deplibs_check_method=pass_all ;;
3403   *)
3404     # glibc up to 2.1.1 does not perform some relocations on ARM
3405     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3406   esac
3407   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3408   ;;
3409
3410 netbsd*)
3411   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3412     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3413   else
3414     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3415   fi
3416   ;;
3417
3418 newsos6)
3419   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3420   lt_cv_file_magic_cmd=/usr/bin/file
3421   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3422   ;;
3423
3424 osf3* | osf4* | osf5*)
3425   # this will be overridden with pass_all, but let us keep it just in case
3426   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3427   lt_cv_file_magic_test_file=/shlib/libc.so
3428   lt_cv_deplibs_check_method=pass_all
3429   ;;
3430
3431 sco3.2v5*)
3432   lt_cv_deplibs_check_method=pass_all
3433   ;;
3434
3435 solaris*)
3436   lt_cv_deplibs_check_method=pass_all
3437   lt_cv_file_magic_test_file=/lib/libc.so
3438   ;;
3439
3440 sysv5uw[78]* | sysv4*uw2*)
3441   lt_cv_deplibs_check_method=pass_all
3442   ;;
3443
3444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3445   case $host_vendor in
3446   ncr)
3447     lt_cv_deplibs_check_method=pass_all
3448     ;;
3449   motorola)
3450     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]'
3451     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3452     ;;
3453   esac
3454   ;;
3455 esac
3456
3457 fi
3458 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3459 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3460 file_magic_cmd=$lt_cv_file_magic_cmd
3461 deplibs_check_method=$lt_cv_deplibs_check_method
3462
3463
3464
3465
3466
3467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3468
3469 # Only perform the check for file, if the check method requires it
3470 case $deplibs_check_method in
3471 file_magic*)
3472   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3473     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3474 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   case $MAGIC_CMD in
3479   /*)
3480   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3481   ;;
3482   ?:/*)
3483   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3484   ;;
3485   *)
3486   ac_save_MAGIC_CMD="$MAGIC_CMD"
3487   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3488   ac_dummy="/usr/bin:$PATH"
3489   for ac_dir in $ac_dummy; do
3490     test -z "$ac_dir" && ac_dir=.
3491     if test -f $ac_dir/${ac_tool_prefix}file; then
3492       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3493       if test -n "$file_magic_test_file"; then
3494         case $deplibs_check_method in
3495         "file_magic "*)
3496           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3497           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3498           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3499             egrep "$file_magic_regex" > /dev/null; then
3500             :
3501           else
3502             cat <<EOF 1>&2
3503
3504 *** Warning: the command libtool uses to detect shared libraries,
3505 *** $file_magic_cmd, produces output that libtool cannot recognize.
3506 *** The result is that libtool may fail to recognize shared libraries
3507 *** as such.  This will affect the creation of libtool libraries that
3508 *** depend on shared libraries, but programs linked with such libtool
3509 *** libraries will work regardless of this problem.  Nevertheless, you
3510 *** may want to report the problem to your system manager and/or to
3511 *** bug-libtool@gnu.org
3512
3513 EOF
3514           fi ;;
3515         esac
3516       fi
3517       break
3518     fi
3519   done
3520   IFS="$ac_save_ifs"
3521   MAGIC_CMD="$ac_save_MAGIC_CMD"
3522   ;;
3523 esac
3524 fi
3525
3526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3527 if test -n "$MAGIC_CMD"; then
3528   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3529 echo "${ECHO_T}$MAGIC_CMD" >&6
3530 else
3531   echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3533 fi
3534
3535 if test -z "$lt_cv_path_MAGIC_CMD"; then
3536   if test -n "$ac_tool_prefix"; then
3537     echo "$as_me:$LINENO: checking for file" >&5
3538 echo $ECHO_N "checking for file... $ECHO_C" >&6
3539 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   case $MAGIC_CMD in
3543   /*)
3544   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3545   ;;
3546   ?:/*)
3547   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3548   ;;
3549   *)
3550   ac_save_MAGIC_CMD="$MAGIC_CMD"
3551   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3552   ac_dummy="/usr/bin:$PATH"
3553   for ac_dir in $ac_dummy; do
3554     test -z "$ac_dir" && ac_dir=.
3555     if test -f $ac_dir/file; then
3556       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3557       if test -n "$file_magic_test_file"; then
3558         case $deplibs_check_method in
3559         "file_magic "*)
3560           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3561           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3562           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3563             egrep "$file_magic_regex" > /dev/null; then
3564             :
3565           else
3566             cat <<EOF 1>&2
3567
3568 *** Warning: the command libtool uses to detect shared libraries,
3569 *** $file_magic_cmd, produces output that libtool cannot recognize.
3570 *** The result is that libtool may fail to recognize shared libraries
3571 *** as such.  This will affect the creation of libtool libraries that
3572 *** depend on shared libraries, but programs linked with such libtool
3573 *** libraries will work regardless of this problem.  Nevertheless, you
3574 *** may want to report the problem to your system manager and/or to
3575 *** bug-libtool@gnu.org
3576
3577 EOF
3578           fi ;;
3579         esac
3580       fi
3581       break
3582     fi
3583   done
3584   IFS="$ac_save_ifs"
3585   MAGIC_CMD="$ac_save_MAGIC_CMD"
3586   ;;
3587 esac
3588 fi
3589
3590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3591 if test -n "$MAGIC_CMD"; then
3592   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3593 echo "${ECHO_T}$MAGIC_CMD" >&6
3594 else
3595   echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6
3597 fi
3598
3599   else
3600     MAGIC_CMD=:
3601   fi
3602 fi
3603
3604   fi
3605   ;;
3606 esac
3607
3608 if test -n "$ac_tool_prefix"; then
3609   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_prog_RANLIB+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   if test -n "$RANLIB"; then
3617   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622   IFS=$as_save_IFS
3623   test -z "$as_dir" && as_dir=.
3624   for ac_exec_ext in '' $ac_executable_extensions; do
3625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628     break 2
3629   fi
3630 done
3631 done
3632
3633 fi
3634 fi
3635 RANLIB=$ac_cv_prog_RANLIB
3636 if test -n "$RANLIB"; then
3637   echo "$as_me:$LINENO: result: $RANLIB" >&5
3638 echo "${ECHO_T}$RANLIB" >&6
3639 else
3640   echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3642 fi
3643
3644 fi
3645 if test -z "$ac_cv_prog_RANLIB"; then
3646   ac_ct_RANLIB=$RANLIB
3647   # Extract the first word of "ranlib", so it can be a program name with args.
3648 set dummy ranlib; ac_word=$2
3649 echo "$as_me:$LINENO: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   if test -n "$ac_ct_RANLIB"; then
3655   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660   IFS=$as_save_IFS
3661   test -z "$as_dir" && as_dir=.
3662   for ac_exec_ext in '' $ac_executable_extensions; do
3663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664     ac_cv_prog_ac_ct_RANLIB="ranlib"
3665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666     break 2
3667   fi
3668 done
3669 done
3670
3671   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3672 fi
3673 fi
3674 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3675 if test -n "$ac_ct_RANLIB"; then
3676   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3677 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3678 else
3679   echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681 fi
3682
3683   RANLIB=$ac_ct_RANLIB
3684 else
3685   RANLIB="$ac_cv_prog_RANLIB"
3686 fi
3687
3688 if test -n "$ac_tool_prefix"; then
3689   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}strip; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_STRIP+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   if test -n "$STRIP"; then
3697   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for ac_exec_ext in '' $ac_executable_extensions; do
3705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711 done
3712
3713 fi
3714 fi
3715 STRIP=$ac_cv_prog_STRIP
3716 if test -n "$STRIP"; then
3717   echo "$as_me:$LINENO: result: $STRIP" >&5
3718 echo "${ECHO_T}$STRIP" >&6
3719 else
3720   echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3722 fi
3723
3724 fi
3725 if test -z "$ac_cv_prog_STRIP"; then
3726   ac_ct_STRIP=$STRIP
3727   # Extract the first word of "strip", so it can be a program name with args.
3728 set dummy strip; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   if test -n "$ac_ct_STRIP"; then
3735   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742   for ac_exec_ext in '' $ac_executable_extensions; do
3743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744     ac_cv_prog_ac_ct_STRIP="strip"
3745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749 done
3750
3751   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3752 fi
3753 fi
3754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3755 if test -n "$ac_ct_STRIP"; then
3756   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3757 echo "${ECHO_T}$ac_ct_STRIP" >&6
3758 else
3759   echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763   STRIP=$ac_ct_STRIP
3764 else
3765   STRIP="$ac_cv_prog_STRIP"
3766 fi
3767
3768
3769 # Check for any special flags to pass to ltconfig.
3770 libtool_flags="--cache-file=$cache_file"
3771 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3772 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3773 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3774 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3775 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3776
3777
3778 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3779 if test "${enable_libtool_lock+set}" = set; then
3780   enableval="$enable_libtool_lock"
3781
3782 fi;
3783 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3784 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3785
3786
3787 # Check whether --with-pic or --without-pic was given.
3788 if test "${with_pic+set}" = set; then
3789   withval="$with_pic"
3790   pic_mode="$withval"
3791 else
3792   pic_mode=default
3793 fi;
3794 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3795 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3796
3797 # Some flags need to be propagated to the compiler or linker for good
3798 # libtool support.
3799 case $host in
3800 *-*-irix6*)
3801   # Find out which ABI we are using.
3802   echo '#line 3802 "configure"' > conftest.$ac_ext
3803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804   (eval $ac_compile) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; then
3808    if test "$lt_cv_prog_gnu_ld" = yes; then
3809     case `/usr/bin/file conftest.$ac_objext` in
3810     *32-bit*)
3811       LD="${LD-ld} -melf32bsmip"
3812       ;;
3813     *N32*)
3814       LD="${LD-ld} -melf32bmipn32"
3815       ;;
3816     *64-bit*)
3817       LD="${LD-ld} -melf64bmip"
3818       ;;
3819     esac
3820    else
3821     case `/usr/bin/file conftest.$ac_objext` in
3822     *32-bit*)
3823       LD="${LD-ld} -32"
3824       ;;
3825     *N32*)
3826       LD="${LD-ld} -n32"
3827       ;;
3828     *64-bit*)
3829       LD="${LD-ld} -64"
3830       ;;
3831     esac
3832    fi
3833   fi
3834   rm -rf conftest*
3835   ;;
3836
3837 ia64-*-hpux*)
3838   # Find out which ABI we are using.
3839   echo 'int i;' > conftest.$ac_ext
3840   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841   (eval $ac_compile) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; then
3845     case "`/usr/bin/file conftest.o`" in
3846     *ELF-32*)
3847       HPUX_IA64_MODE="32"
3848       ;;
3849     *ELF-64*)
3850       HPUX_IA64_MODE="64"
3851       ;;
3852     esac
3853   fi
3854   rm -rf conftest*
3855   ;;
3856
3857 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3858   # Find out which ABI we are using.
3859   echo 'int i;' > conftest.$ac_ext
3860   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861   (eval $ac_compile) 2>&5
3862   ac_status=$?
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); }; then
3865     case "`/usr/bin/file conftest.o`" in
3866     *32-bit*)
3867       case $host in
3868         x86_64-*linux*)
3869           LD="${LD-ld} -m elf_i386"
3870           ;;
3871         ppc64-*linux*|powerpc64-*linux*)
3872           LD="${LD-ld} -m elf32ppclinux"
3873           ;;
3874         s390x-*linux*)
3875           LD="${LD-ld} -m elf_s390"
3876           ;;
3877         sparc64-*linux*)
3878           LD="${LD-ld} -m elf32_sparc"
3879           ;;
3880       esac
3881       ;;
3882     *64-bit*)
3883       case $host in
3884         x86_64-*linux*)
3885           LD="${LD-ld} -m elf_x86_64"
3886           ;;
3887         ppc*-*linux*|powerpc*-*linux*)
3888           LD="${LD-ld} -m elf64ppc"
3889           ;;
3890         s390*-*linux*)
3891           LD="${LD-ld} -m elf64_s390"
3892           ;;
3893         sparc*-*linux*)
3894           LD="${LD-ld} -m elf64_sparc"
3895           ;;
3896       esac
3897       ;;
3898     esac
3899   fi
3900   rm -rf conftest*
3901   ;;
3902
3903 *-*-sco3.2v5*)
3904   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3905   SAVE_CFLAGS="$CFLAGS"
3906   CFLAGS="$CFLAGS -belf"
3907   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3908 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3909 if test "${lt_cv_cc_needs_belf+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912
3913
3914      ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920      if test x$gcc_no_link = xyes; then
3921   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3923    { (exit 1); exit 1; }; }
3924 fi
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h.  */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942   (eval $ac_link) 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } &&
3949          { ac_try='test -z "$ac_c_werror_flag"
3950                          || test ! -s conftest.err'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; } &&
3956          { ac_try='test -s conftest$ac_exeext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   lt_cv_cc_needs_belf=yes
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 lt_cv_cc_needs_belf=no
3968 fi
3969 rm -f conftest.err conftest.$ac_objext \
3970       conftest$ac_exeext conftest.$ac_ext
3971      ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976
3977 fi
3978 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3979 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3980   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3981     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3982     CFLAGS="$SAVE_CFLAGS"
3983   fi
3984   ;;
3985
3986
3987 esac
3988
3989
3990 # Save cache, so that ltconfig can load it
3991 cat >confcache <<\_ACEOF
3992 # This file is a shell script that caches the results of configure
3993 # tests run on this system so they can be shared between configure
3994 # scripts and configure runs, see configure's option --config-cache.
3995 # It is not useful on other systems.  If it contains results you don't
3996 # want to keep, you may remove or edit it.
3997 #
3998 # config.status only pays attention to the cache file if you give it
3999 # the --recheck option to rerun configure.
4000 #
4001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4003 # following values.
4004
4005 _ACEOF
4006
4007 # The following way of writing the cache mishandles newlines in values,
4008 # but we know of no workaround that is simple, portable, and efficient.
4009 # So, don't put newlines in cache variables' values.
4010 # Ultrix sh set writes to stderr and can't be redirected directly,
4011 # and sets the high bit in the cache file unless we assign to the vars.
4012 {
4013   (set) 2>&1 |
4014     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4015     *ac_space=\ *)
4016       # `set' does not quote correctly, so add quotes (double-quote
4017       # substitution turns \\\\ into \\, and sed turns \\ into \).
4018       sed -n \
4019         "s/'/'\\\\''/g;
4020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4021       ;;
4022     *)
4023       # `set' quotes correctly as required by POSIX, so do not add quotes.
4024       sed -n \
4025         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4026       ;;
4027     esac;
4028 } |
4029   sed '
4030      t clear
4031      : clear
4032      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4033      t end
4034      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4035      : end' >>confcache
4036 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4037   if test -w $cache_file; then
4038     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4039     cat confcache >$cache_file
4040   else
4041     echo "not updating unwritable cache $cache_file"
4042   fi
4043 fi
4044 rm -f confcache
4045
4046 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4047 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4048 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4049 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4050 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4051 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4052 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4053 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4054 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4055 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4056 echo "$as_me: error: libtool configure failed" >&2;}
4057    { (exit 1); exit 1; }; }
4058
4059 # Reload cache, that may have been modified by ltconfig
4060 if test -r "$cache_file"; then
4061   # Some versions of bash will fail to source /dev/null (special
4062   # files actually), so we avoid doing that.
4063   if test -f "$cache_file"; then
4064     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4065 echo "$as_me: loading cache $cache_file" >&6;}
4066     case $cache_file in
4067       [\\/]* | ?:[\\/]* ) . $cache_file;;
4068       *)                      . ./$cache_file;;
4069     esac
4070   fi
4071 else
4072   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4073 echo "$as_me: creating cache $cache_file" >&6;}
4074   >$cache_file
4075 fi
4076
4077
4078 # This can be used to rebuild libtool when needed
4079 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4080
4081 # Always use our own libtool.
4082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4083
4084 # Redirect the config.log output again, so that the ltconfig log is not
4085 # clobbered by the next message.
4086 exec 5>>./config.log
4087
4088
4089
4090
4091
4092
4093
4094 # Find CPP now so that any conditional tests below won't do it and
4095 # thereby make the resulting definitions conditional.
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4102 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4103 # On Suns, sometimes $CPP names a directory.
4104 if test -n "$CPP" && test -d "$CPP"; then
4105   CPP=
4106 fi
4107 if test -z "$CPP"; then
4108   if test "${ac_cv_prog_CPP+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111       # Double quotes because CPP needs to be expanded
4112     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4113     do
4114       ac_preproc_ok=false
4115 for ac_c_preproc_warn_flag in '' yes
4116 do
4117   # Use a header file that comes with gcc, so configuring glibc
4118   # with a fresh cross-compiler works.
4119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120   # <limits.h> exists even on freestanding compilers.
4121   # On the NeXT, cc -E runs the code through the compiler's parser,
4122   # not just through cpp. "Syntax error" is here to catch this case.
4123   cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4134                      Syntax error
4135 _ACEOF
4136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } >/dev/null; then
4144   if test -s conftest.err; then
4145     ac_cpp_err=$ac_c_preproc_warn_flag
4146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4147   else
4148     ac_cpp_err=
4149   fi
4150 else
4151   ac_cpp_err=yes
4152 fi
4153 if test -z "$ac_cpp_err"; then
4154   :
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159   # Broken: fails on valid input.
4160 continue
4161 fi
4162 rm -f conftest.err conftest.$ac_ext
4163
4164   # OK, works on sane cases.  Now check whether non-existent headers
4165   # can be detected and how.
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <ac_nonexistent.h>
4173 _ACEOF
4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } >/dev/null; then
4182   if test -s conftest.err; then
4183     ac_cpp_err=$ac_c_preproc_warn_flag
4184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4185   else
4186     ac_cpp_err=
4187   fi
4188 else
4189   ac_cpp_err=yes
4190 fi
4191 if test -z "$ac_cpp_err"; then
4192   # Broken: success on invalid input.
4193 continue
4194 else
4195   echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198   # Passes both tests.
4199 ac_preproc_ok=:
4200 break
4201 fi
4202 rm -f conftest.err conftest.$ac_ext
4203
4204 done
4205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206 rm -f conftest.err conftest.$ac_ext
4207 if $ac_preproc_ok; then
4208   break
4209 fi
4210
4211     done
4212     ac_cv_prog_CPP=$CPP
4213
4214 fi
4215   CPP=$ac_cv_prog_CPP
4216 else
4217   ac_cv_prog_CPP=$CPP
4218 fi
4219 echo "$as_me:$LINENO: result: $CPP" >&5
4220 echo "${ECHO_T}$CPP" >&6
4221 ac_preproc_ok=false
4222 for ac_c_preproc_warn_flag in '' yes
4223 do
4224   # Use a header file that comes with gcc, so configuring glibc
4225   # with a fresh cross-compiler works.
4226   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227   # <limits.h> exists even on freestanding compilers.
4228   # On the NeXT, cc -E runs the code through the compiler's parser,
4229   # not just through cpp. "Syntax error" is here to catch this case.
4230   cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236 #ifdef __STDC__
4237 # include <limits.h>
4238 #else
4239 # include <assert.h>
4240 #endif
4241                      Syntax error
4242 _ACEOF
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } >/dev/null; then
4251   if test -s conftest.err; then
4252     ac_cpp_err=$ac_c_preproc_warn_flag
4253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4254   else
4255     ac_cpp_err=
4256   fi
4257 else
4258   ac_cpp_err=yes
4259 fi
4260 if test -z "$ac_cpp_err"; then
4261   :
4262 else
4263   echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266   # Broken: fails on valid input.
4267 continue
4268 fi
4269 rm -f conftest.err conftest.$ac_ext
4270
4271   # OK, works on sane cases.  Now check whether non-existent headers
4272   # can be detected and how.
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279 #include <ac_nonexistent.h>
4280 _ACEOF
4281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } >/dev/null; then
4289   if test -s conftest.err; then
4290     ac_cpp_err=$ac_c_preproc_warn_flag
4291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4292   else
4293     ac_cpp_err=
4294   fi
4295 else
4296   ac_cpp_err=yes
4297 fi
4298 if test -z "$ac_cpp_err"; then
4299   # Broken: success on invalid input.
4300 continue
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305   # Passes both tests.
4306 ac_preproc_ok=:
4307 break
4308 fi
4309 rm -f conftest.err conftest.$ac_ext
4310
4311 done
4312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313 rm -f conftest.err conftest.$ac_ext
4314 if $ac_preproc_ok; then
4315   :
4316 else
4317   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4318 See \`config.log' for more details." >&5
4319 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4320 See \`config.log' for more details." >&2;}
4321    { (exit 1); exit 1; }; }
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330
4331 if test -n "$with_cross_host"; then
4332    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
4333    # may not work correctly, because the compiler may not be able to
4334    # link executables.
4335
4336    # We assume newlib.  This lets us hard-code the functions we know
4337    # we'll have.
4338    cat >>confdefs.h <<\_ACEOF
4339 #define HAVE_MEMCPY 1
4340 _ACEOF
4341
4342    cat >>confdefs.h <<\_ACEOF
4343 #define HAVE_STRERROR 1
4344 _ACEOF
4345
4346
4347    # We ignore --with-system-zlib in this case.
4348    target_all=libzgcj.la
4349 else
4350    if test x$gcc_no_link = xyes; then
4351   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4352     ac_cv_func_mmap_fixed_mapped=no
4353   fi
4354 fi
4355 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4356
4357 echo "$as_me:$LINENO: checking for egrep" >&5
4358 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4359 if test "${ac_cv_prog_egrep+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4363     then ac_cv_prog_egrep='grep -E'
4364     else ac_cv_prog_egrep='egrep'
4365     fi
4366 fi
4367 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4368 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4369  EGREP=$ac_cv_prog_egrep
4370
4371
4372 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4373 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4374 if test "${ac_cv_header_stdc+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 #include <stdlib.h>
4384 #include <stdarg.h>
4385 #include <string.h>
4386 #include <float.h>
4387
4388 int
4389 main ()
4390 {
4391
4392   ;
4393   return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398   (eval $ac_compile) 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } &&
4405          { ac_try='test -z "$ac_c_werror_flag"
4406                          || test ! -s conftest.err'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   ac_cv_header_stdc=yes
4419 else
4420   echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_cv_header_stdc=no
4424 fi
4425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426
4427 if test $ac_cv_header_stdc = yes; then
4428   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4429   cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435 #include <string.h>
4436
4437 _ACEOF
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439   $EGREP "memchr" >/dev/null 2>&1; then
4440   :
4441 else
4442   ac_cv_header_stdc=no
4443 fi
4444 rm -f conftest*
4445
4446 fi
4447
4448 if test $ac_cv_header_stdc = yes; then
4449   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <stdlib.h>
4457
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460   $EGREP "free" >/dev/null 2>&1; then
4461   :
4462 else
4463   ac_cv_header_stdc=no
4464 fi
4465 rm -f conftest*
4466
4467 fi
4468
4469 if test $ac_cv_header_stdc = yes; then
4470   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471   if test "$cross_compiling" = yes; then
4472   :
4473 else
4474   cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 #include <ctype.h>
4481 #if ((' ' & 0x0FF) == 0x020)
4482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4484 #else
4485 # define ISLOWER(c) \
4486                    (('a' <= (c) && (c) <= 'i') \
4487                      || ('j' <= (c) && (c) <= 'r') \
4488                      || ('s' <= (c) && (c) <= 'z'))
4489 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4490 #endif
4491
4492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4493 int
4494 main ()
4495 {
4496   int i;
4497   for (i = 0; i < 256; i++)
4498     if (XOR (islower (i), ISLOWER (i))
4499         || toupper (i) != TOUPPER (i))
4500       exit(2);
4501   exit (0);
4502 }
4503 _ACEOF
4504 rm -f conftest$ac_exeext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506   (eval $ac_link) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511   (eval $ac_try) 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }; }; then
4515   :
4516 else
4517   echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 ( exit $ac_status )
4522 ac_cv_header_stdc=no
4523 fi
4524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4525 fi
4526 fi
4527 fi
4528 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4529 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4530 if test $ac_cv_header_stdc = yes; then
4531
4532 cat >>confdefs.h <<\_ACEOF
4533 #define STDC_HEADERS 1
4534 _ACEOF
4535
4536 fi
4537
4538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4549                   inttypes.h stdint.h unistd.h
4550 do
4551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4552 echo "$as_me:$LINENO: checking for $ac_header" >&5
4553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563 $ac_includes_default
4564
4565 #include <$ac_header>
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569   (eval $ac_compile) 2>conftest.er1
4570   ac_status=$?
4571   grep -v '^ *+' conftest.er1 >conftest.err
4572   rm -f conftest.er1
4573   cat conftest.err >&5
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); } &&
4576          { ac_try='test -z "$ac_c_werror_flag"
4577                          || test ! -s conftest.err'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; } &&
4583          { ac_try='test -s conftest.$ac_objext'
4584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585   (eval $ac_try) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); }; }; then
4589   eval "$as_ac_Header=yes"
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 eval "$as_ac_Header=no"
4595 fi
4596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4597 fi
4598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4601   cat >>confdefs.h <<_ACEOF
4602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4603 _ACEOF
4604
4605 fi
4606
4607 done
4608
4609
4610
4611
4612 for ac_header in stdlib.h unistd.h
4613 do
4614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616   echo "$as_me:$LINENO: checking for $ac_header" >&5
4617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 fi
4621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4623 else
4624   # Is the header compilable?
4625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 $ac_includes_default
4634 #include <$ac_header>
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -z "$ac_c_werror_flag"
4646                          || test ! -s conftest.err'
4647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648   (eval $ac_try) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; } &&
4652          { ac_try='test -s conftest.$ac_objext'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; }; then
4658   ac_header_compiler=yes
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 ac_header_compiler=no
4664 fi
4665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4667 echo "${ECHO_T}$ac_header_compiler" >&6
4668
4669 # Is the header present?
4670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h.  */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h.  */
4678 #include <$ac_header>
4679 _ACEOF
4680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } >/dev/null; then
4688   if test -s conftest.err; then
4689     ac_cpp_err=$ac_c_preproc_warn_flag
4690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4691   else
4692     ac_cpp_err=
4693   fi
4694 else
4695   ac_cpp_err=yes
4696 fi
4697 if test -z "$ac_cpp_err"; then
4698   ac_header_preproc=yes
4699 else
4700   echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703   ac_header_preproc=no
4704 fi
4705 rm -f conftest.err conftest.$ac_ext
4706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4707 echo "${ECHO_T}$ac_header_preproc" >&6
4708
4709 # So?  What about this header?
4710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4711   yes:no: )
4712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4716     ac_header_preproc=yes
4717     ;;
4718   no:yes:* )
4719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4731     (
4732       cat <<\_ASBOX
4733 ## ------------------------------------------ ##
4734 ## Report this to the AC_PACKAGE_NAME lists.  ##
4735 ## ------------------------------------------ ##
4736 _ASBOX
4737     ) |
4738       sed "s/^/$as_me: WARNING:     /" >&2
4739     ;;
4740 esac
4741 echo "$as_me:$LINENO: checking for $ac_header" >&5
4742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   eval "$as_ac_Header=\$ac_header_preproc"
4747 fi
4748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4750
4751 fi
4752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4753   cat >>confdefs.h <<_ACEOF
4754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755 _ACEOF
4756
4757 fi
4758
4759 done
4760
4761
4762 for ac_func in getpagesize
4763 do
4764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4765 echo "$as_me:$LINENO: checking for $ac_func" >&5
4766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4767 if eval "test \"\${$as_ac_var+set}\" = set"; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   if test x$gcc_no_link = xyes; then
4771   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4773    { (exit 1); exit 1; }; }
4774 fi
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4783 #define $ac_func innocuous_$ac_func
4784
4785 /* System header to define __stub macros and hopefully few prototypes,
4786     which can conflict with char $ac_func (); below.
4787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4788     <limits.h> exists even on freestanding compilers.  */
4789
4790 #ifdef __STDC__
4791 # include <limits.h>
4792 #else
4793 # include <assert.h>
4794 #endif
4795
4796 #undef $ac_func
4797
4798 /* Override any gcc2 internal prototype to avoid an error.  */
4799 #ifdef __cplusplus
4800 extern "C"
4801 {
4802 #endif
4803 /* We use char because int might match the return type of a gcc2
4804    builtin and then its argument prototype would still apply.  */
4805 char $ac_func ();
4806 /* The GNU C library defines this for functions which it implements
4807     to always fail with ENOSYS.  Some functions are actually named
4808     something starting with __ and the normal name is an alias.  */
4809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810 choke me
4811 #else
4812 char (*f) () = $ac_func;
4813 #endif
4814 #ifdef __cplusplus
4815 }
4816 #endif
4817
4818 int
4819 main ()
4820 {
4821 return f != $ac_func;
4822   ;
4823   return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest.$ac_objext conftest$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828   (eval $ac_link) 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } &&
4835          { ac_try='test -z "$ac_c_werror_flag"
4836                          || test ! -s conftest.err'
4837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; } &&
4842          { ac_try='test -s conftest$ac_exeext'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; }; then
4848   eval "$as_ac_var=yes"
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853 eval "$as_ac_var=no"
4854 fi
4855 rm -f conftest.err conftest.$ac_objext \
4856       conftest$ac_exeext conftest.$ac_ext
4857 fi
4858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4860 if test `eval echo '${'$as_ac_var'}'` = yes; then
4861   cat >>confdefs.h <<_ACEOF
4862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4863 _ACEOF
4864
4865 fi
4866 done
4867
4868 echo "$as_me:$LINENO: checking for working mmap" >&5
4869 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4870 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   if test "$cross_compiling" = yes; then
4874   ac_cv_func_mmap_fixed_mapped=no
4875 else
4876   cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882 $ac_includes_default
4883 /* malloc might have been renamed as rpl_malloc. */
4884 #undef malloc
4885
4886 /* Thanks to Mike Haertel and Jim Avera for this test.
4887    Here is a matrix of mmap possibilities:
4888         mmap private not fixed
4889         mmap private fixed at somewhere currently unmapped
4890         mmap private fixed at somewhere already mapped
4891         mmap shared not fixed
4892         mmap shared fixed at somewhere currently unmapped
4893         mmap shared fixed at somewhere already mapped
4894    For private mappings, we should verify that changes cannot be read()
4895    back from the file, nor mmap's back from the file at a different
4896    address.  (There have been systems where private was not correctly
4897    implemented like the infamous i386 svr4.0, and systems where the
4898    VM page cache was not coherent with the file system buffer cache
4899    like early versions of FreeBSD and possibly contemporary NetBSD.)
4900    For shared mappings, we should conversely verify that changes get
4901    propagated back to all the places they're supposed to be.
4902
4903    Grep wants private fixed already mapped.
4904    The main things grep needs to know about mmap are:
4905    * does it exist and is it safe to write into the mmap'd area
4906    * how to use it (BSD variants)  */
4907
4908 #include <fcntl.h>
4909 #include <sys/mman.h>
4910
4911 #if !STDC_HEADERS && !HAVE_STDLIB_H
4912 char *malloc ();
4913 #endif
4914
4915 /* This mess was copied from the GNU getpagesize.h.  */
4916 #if !HAVE_GETPAGESIZE
4917 /* Assume that all systems that can run configure have sys/param.h.  */
4918 # if !HAVE_SYS_PARAM_H
4919 #  define HAVE_SYS_PARAM_H 1
4920 # endif
4921
4922 # ifdef _SC_PAGESIZE
4923 #  define getpagesize() sysconf(_SC_PAGESIZE)
4924 # else /* no _SC_PAGESIZE */
4925 #  if HAVE_SYS_PARAM_H
4926 #   include <sys/param.h>
4927 #   ifdef EXEC_PAGESIZE
4928 #    define getpagesize() EXEC_PAGESIZE
4929 #   else /* no EXEC_PAGESIZE */
4930 #    ifdef NBPG
4931 #     define getpagesize() NBPG * CLSIZE
4932 #     ifndef CLSIZE
4933 #      define CLSIZE 1
4934 #     endif /* no CLSIZE */
4935 #    else /* no NBPG */
4936 #     ifdef NBPC
4937 #      define getpagesize() NBPC
4938 #     else /* no NBPC */
4939 #      ifdef PAGESIZE
4940 #       define getpagesize() PAGESIZE
4941 #      endif /* PAGESIZE */
4942 #     endif /* no NBPC */
4943 #    endif /* no NBPG */
4944 #   endif /* no EXEC_PAGESIZE */
4945 #  else /* no HAVE_SYS_PARAM_H */
4946 #   define getpagesize() 8192   /* punt totally */
4947 #  endif /* no HAVE_SYS_PARAM_H */
4948 # endif /* no _SC_PAGESIZE */
4949
4950 #endif /* no HAVE_GETPAGESIZE */
4951
4952 int
4953 main ()
4954 {
4955   char *data, *data2, *data3;
4956   int i, pagesize;
4957   int fd;
4958
4959   pagesize = getpagesize ();
4960
4961   /* First, make a file with some known garbage in it. */
4962   data = (char *) malloc (pagesize);
4963   if (!data)
4964     exit (1);
4965   for (i = 0; i < pagesize; ++i)
4966     *(data + i) = rand ();
4967   umask (0);
4968   fd = creat ("conftest.mmap", 0600);
4969   if (fd < 0)
4970     exit (1);
4971   if (write (fd, data, pagesize) != pagesize)
4972     exit (1);
4973   close (fd);
4974
4975   /* Next, try to mmap the file at a fixed address which already has
4976      something else allocated at it.  If we can, also make sure that
4977      we see the same garbage.  */
4978   fd = open ("conftest.mmap", O_RDWR);
4979   if (fd < 0)
4980     exit (1);
4981   data2 = (char *) malloc (2 * pagesize);
4982   if (!data2)
4983     exit (1);
4984   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4985   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4986                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4987     exit (1);
4988   for (i = 0; i < pagesize; ++i)
4989     if (*(data + i) != *(data2 + i))
4990       exit (1);
4991
4992   /* Finally, make sure that changes to the mapped area do not
4993      percolate back to the file as seen by read().  (This is a bug on
4994      some variants of i386 svr4.0.)  */
4995   for (i = 0; i < pagesize; ++i)
4996     *(data2 + i) = *(data2 + i) + 1;
4997   data3 = (char *) malloc (pagesize);
4998   if (!data3)
4999     exit (1);
5000   if (read (fd, data3, pagesize) != pagesize)
5001     exit (1);
5002   for (i = 0; i < pagesize; ++i)
5003     if (*(data + i) != *(data3 + i))
5004       exit (1);
5005   close (fd);
5006   exit (0);
5007 }
5008 _ACEOF
5009 rm -f conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011   (eval $ac_link) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016   (eval $ac_try) 2>&5
5017   ac_status=$?
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); }; }; then
5020   ac_cv_func_mmap_fixed_mapped=yes
5021 else
5022   echo "$as_me: program exited with status $ac_status" >&5
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 ( exit $ac_status )
5027 ac_cv_func_mmap_fixed_mapped=no
5028 fi
5029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 fi
5032 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5033 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5034 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5035
5036 cat >>confdefs.h <<\_ACEOF
5037 #define HAVE_MMAP 1
5038 _ACEOF
5039
5040 fi
5041 rm -f conftest.mmap
5042
5043 fi
5044
5045
5046 for ac_func in memcpy strerror
5047 do
5048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5049 echo "$as_me:$LINENO: checking for $ac_func" >&5
5050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5051 if eval "test \"\${$as_ac_var+set}\" = set"; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test x$gcc_no_link = xyes; then
5055   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5057    { (exit 1); exit 1; }; }
5058 fi
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5067 #define $ac_func innocuous_$ac_func
5068
5069 /* System header to define __stub macros and hopefully few prototypes,
5070     which can conflict with char $ac_func (); below.
5071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072     <limits.h> exists even on freestanding compilers.  */
5073
5074 #ifdef __STDC__
5075 # include <limits.h>
5076 #else
5077 # include <assert.h>
5078 #endif
5079
5080 #undef $ac_func
5081
5082 /* Override any gcc2 internal prototype to avoid an error.  */
5083 #ifdef __cplusplus
5084 extern "C"
5085 {
5086 #endif
5087 /* We use char because int might match the return type of a gcc2
5088    builtin and then its argument prototype would still apply.  */
5089 char $ac_func ();
5090 /* The GNU C library defines this for functions which it implements
5091     to always fail with ENOSYS.  Some functions are actually named
5092     something starting with __ and the normal name is an alias.  */
5093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5094 choke me
5095 #else
5096 char (*f) () = $ac_func;
5097 #endif
5098 #ifdef __cplusplus
5099 }
5100 #endif
5101
5102 int
5103 main ()
5104 {
5105 return f != $ac_func;
5106   ;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112   (eval $ac_link) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } &&
5119          { ac_try='test -z "$ac_c_werror_flag"
5120                          || test ! -s conftest.err'
5121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122   (eval $ac_try) 2>&5
5123   ac_status=$?
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); }; } &&
5126          { ac_try='test -s conftest$ac_exeext'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; }; then
5132   eval "$as_ac_var=yes"
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 eval "$as_ac_var=no"
5138 fi
5139 rm -f conftest.err conftest.$ac_objext \
5140       conftest$ac_exeext conftest.$ac_ext
5141 fi
5142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5144 if test `eval echo '${'$as_ac_var'}'` = yes; then
5145   cat >>confdefs.h <<_ACEOF
5146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5147 _ACEOF
5148
5149 fi
5150 done
5151
5152
5153    if test "$with_system_zlib" = yes; then
5154       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5155 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5156 if test "${ac_cv_lib_z_deflate+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   ac_check_lib_save_LIBS=$LIBS
5160 LIBS="-lz  $LIBS"
5161 if test x$gcc_no_link = xyes; then
5162   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5163 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5164    { (exit 1); exit 1; }; }
5165 fi
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172
5173 /* Override any gcc2 internal prototype to avoid an error.  */
5174 #ifdef __cplusplus
5175 extern "C"
5176 #endif
5177 /* We use char because int might match the return type of a gcc2
5178    builtin and then its argument prototype would still apply.  */
5179 char deflate ();
5180 int
5181 main ()
5182 {
5183 deflate ();
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext conftest$ac_exeext
5189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5190   (eval $ac_link) 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } &&
5197          { ac_try='test -z "$ac_c_werror_flag"
5198                          || test ! -s conftest.err'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; } &&
5204          { ac_try='test -s conftest$ac_exeext'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; }; then
5210   ac_cv_lib_z_deflate=yes
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 ac_cv_lib_z_deflate=no
5216 fi
5217 rm -f conftest.err conftest.$ac_objext \
5218       conftest$ac_exeext conftest.$ac_ext
5219 LIBS=$ac_check_lib_save_LIBS
5220 fi
5221 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5222 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5223 if test $ac_cv_lib_z_deflate = yes; then
5224   target_all=
5225 else
5226   target_all=libzgcj.la
5227 fi
5228
5229    else
5230       target_all=libzgcj.la
5231    fi
5232 fi
5233
5234
5235
5236
5237 for ac_header in unistd.h
5238 do
5239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5241   echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 fi
5246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5248 else
5249   # Is the header compilable?
5250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258 $ac_includes_default
5259 #include <$ac_header>
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263   (eval $ac_compile) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag"
5271                          || test ! -s conftest.err'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; } &&
5277          { ac_try='test -s conftest.$ac_objext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_header_compiler=yes
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_header_compiler=no
5289 fi
5290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292 echo "${ECHO_T}$ac_header_compiler" >&6
5293
5294 # Is the header present?
5295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303 #include <$ac_header>
5304 _ACEOF
5305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } >/dev/null; then
5313   if test -s conftest.err; then
5314     ac_cpp_err=$ac_c_preproc_warn_flag
5315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5316   else
5317     ac_cpp_err=
5318   fi
5319 else
5320   ac_cpp_err=yes
5321 fi
5322 if test -z "$ac_cpp_err"; then
5323   ac_header_preproc=yes
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328   ac_header_preproc=no
5329 fi
5330 rm -f conftest.err conftest.$ac_ext
5331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5332 echo "${ECHO_T}$ac_header_preproc" >&6
5333
5334 # So?  What about this header?
5335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5336   yes:no: )
5337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5341     ac_header_preproc=yes
5342     ;;
5343   no:yes:* )
5344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5356     (
5357       cat <<\_ASBOX
5358 ## ------------------------------------------ ##
5359 ## Report this to the AC_PACKAGE_NAME lists.  ##
5360 ## ------------------------------------------ ##
5361 _ASBOX
5362     ) |
5363       sed "s/^/$as_me: WARNING:     /" >&2
5364     ;;
5365 esac
5366 echo "$as_me:$LINENO: checking for $ac_header" >&5
5367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   eval "$as_ac_Header=\$ac_header_preproc"
5372 fi
5373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5375
5376 fi
5377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378   cat >>confdefs.h <<_ACEOF
5379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380 _ACEOF
5381
5382 fi
5383
5384 done
5385
5386
5387 if test -n "$with_cross_host" &&
5388    test x"$with_cross_host" != x"no"; then
5389   toolexecdir='$(exec_prefix)/$(target_alias)'
5390   toolexeclibdir='$(toolexecdir)/lib'
5391 else
5392   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5393   toolexeclibdir='$(libdir)'
5394 fi
5395 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
5396   multiosdir=/`$CC -print-multi-os-directory`
5397   case $multiosdir in
5398     /.) multiosdir= ;; # Avoid trailing /.
5399   esac
5400 else
5401   multiosdir=
5402 fi
5403 toolexeclibdir=${toolexeclibdir}${multiosdir}
5404
5405
5406
5407
5408
5409 if test -n "$with_target_subdir"; then
5410   TARGET_LIBRARY_TRUE=
5411   TARGET_LIBRARY_FALSE='#'
5412 else
5413   TARGET_LIBRARY_TRUE='#'
5414   TARGET_LIBRARY_FALSE=
5415 fi
5416
5417
5418 if test "${multilib}" = "yes"; then
5419   multilib_arg="--enable-multilib"
5420 else
5421   multilib_arg=
5422 fi
5423
5424           ac_config_files="$ac_config_files Makefile"
5425
5426
5427           ac_config_commands="$ac_config_commands default"
5428
5429
5430 cat >confcache <<\_ACEOF
5431 # This file is a shell script that caches the results of configure
5432 # tests run on this system so they can be shared between configure
5433 # scripts and configure runs, see configure's option --config-cache.
5434 # It is not useful on other systems.  If it contains results you don't
5435 # want to keep, you may remove or edit it.
5436 #
5437 # config.status only pays attention to the cache file if you give it
5438 # the --recheck option to rerun configure.
5439 #
5440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5442 # following values.
5443
5444 _ACEOF
5445
5446 # The following way of writing the cache mishandles newlines in values,
5447 # but we know of no workaround that is simple, portable, and efficient.
5448 # So, don't put newlines in cache variables' values.
5449 # Ultrix sh set writes to stderr and can't be redirected directly,
5450 # and sets the high bit in the cache file unless we assign to the vars.
5451 {
5452   (set) 2>&1 |
5453     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5454     *ac_space=\ *)
5455       # `set' does not quote correctly, so add quotes (double-quote
5456       # substitution turns \\\\ into \\, and sed turns \\ into \).
5457       sed -n \
5458         "s/'/'\\\\''/g;
5459           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5460       ;;
5461     *)
5462       # `set' quotes correctly as required by POSIX, so do not add quotes.
5463       sed -n \
5464         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5465       ;;
5466     esac;
5467 } |
5468   sed '
5469      t clear
5470      : clear
5471      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5472      t end
5473      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5474      : end' >>confcache
5475 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5476   if test -w $cache_file; then
5477     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5478     cat confcache >$cache_file
5479   else
5480     echo "not updating unwritable cache $cache_file"
5481   fi
5482 fi
5483 rm -f confcache
5484
5485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5486 # Let make expand exec_prefix.
5487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5488
5489 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5490 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5491 # trailing colons and then remove the whole line if VPATH becomes empty
5492 # (actually we leave an empty line to preserve line numbers).
5493 if test "x$srcdir" = x.; then
5494   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5495 s/:*\$(srcdir):*/:/;
5496 s/:*\${srcdir}:*/:/;
5497 s/:*@srcdir@:*/:/;
5498 s/^\([^=]*=[     ]*\):*/\1/;
5499 s/:*$//;
5500 s/^[^=]*=[       ]*$//;
5501 }'
5502 fi
5503
5504 # Transform confdefs.h into DEFS.
5505 # Protect against shell expansion while executing Makefile rules.
5506 # Protect against Makefile macro expansion.
5507 #
5508 # If the first sed substitution is executed (which looks for macros that
5509 # take arguments), then we branch to the quote section.  Otherwise,
5510 # look for a macro that doesn't take arguments.
5511 cat >confdef2opt.sed <<\_ACEOF
5512 t clear
5513 : clear
5514 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5515 t quote
5516 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5517 t quote
5518 d
5519 : quote
5520 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5521 s,\[,\\&,g
5522 s,\],\\&,g
5523 s,\$,$$,g
5524 p
5525 _ACEOF
5526 # We use echo to avoid assuming a particular line-breaking character.
5527 # The extra dot is to prevent the shell from consuming trailing
5528 # line-breaks from the sub-command output.  A line-break within
5529 # single-quotes doesn't work because, if this script is created in a
5530 # platform that uses two characters for line-breaks (e.g., DOS), tr
5531 # would break.
5532 ac_LF_and_DOT=`echo; echo .`
5533 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5534 rm -f confdef2opt.sed
5535
5536
5537 ac_libobjs=
5538 ac_ltlibobjs=
5539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5540   # 1. Remove the extension, and $U if already installed.
5541   ac_i=`echo "$ac_i" |
5542          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5543   # 2. Add them.
5544   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5545   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5546 done
5547 LIBOBJS=$ac_libobjs
5548
5549 LTLIBOBJS=$ac_ltlibobjs
5550
5551
5552 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5553   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5554 Usually this means the macro was only invoked conditionally." >&5
5555 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5556 Usually this means the macro was only invoked conditionally." >&2;}
5557    { (exit 1); exit 1; }; }
5558 fi
5559 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5560   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5561 Usually this means the macro was only invoked conditionally." >&5
5562 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5563 Usually this means the macro was only invoked conditionally." >&2;}
5564    { (exit 1); exit 1; }; }
5565 fi
5566 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5567   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5568 Usually this means the macro was only invoked conditionally." >&5
5569 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5570 Usually this means the macro was only invoked conditionally." >&2;}
5571    { (exit 1); exit 1; }; }
5572 fi
5573 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
5574   { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
5575 Usually this means the macro was only invoked conditionally." >&5
5576 echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
5577 Usually this means the macro was only invoked conditionally." >&2;}
5578    { (exit 1); exit 1; }; }
5579 fi
5580
5581 : ${CONFIG_STATUS=./config.status}
5582 ac_clean_files_save=$ac_clean_files
5583 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5584 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5585 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5586 cat >$CONFIG_STATUS <<_ACEOF
5587 #! $SHELL
5588 # Generated by $as_me.
5589 # Run this file to recreate the current configuration.
5590 # Compiler output produced by configure, useful for debugging
5591 # configure, is in config.log if it exists.
5592
5593 debug=false
5594 ac_cs_recheck=false
5595 ac_cs_silent=false
5596 SHELL=\${CONFIG_SHELL-$SHELL}
5597 _ACEOF
5598
5599 cat >>$CONFIG_STATUS <<\_ACEOF
5600 ## --------------------- ##
5601 ## M4sh Initialization.  ##
5602 ## --------------------- ##
5603
5604 # Be Bourne compatible
5605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5606   emulate sh
5607   NULLCMD=:
5608   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5609   # is contrary to our usage.  Disable this feature.
5610   alias -g '${1+"$@"}'='"$@"'
5611 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5612   set -o posix
5613 fi
5614 DUALCASE=1; export DUALCASE # for MKS sh
5615
5616 # Support unset when possible.
5617 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5618   as_unset=unset
5619 else
5620   as_unset=false
5621 fi
5622
5623
5624 # Work around bugs in pre-3.0 UWIN ksh.
5625 $as_unset ENV MAIL MAILPATH
5626 PS1='$ '
5627 PS2='> '
5628 PS4='+ '
5629
5630 # NLS nuisances.
5631 for as_var in \
5632   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5633   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5634   LC_TELEPHONE LC_TIME
5635 do
5636   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5637     eval $as_var=C; export $as_var
5638   else
5639     $as_unset $as_var
5640   fi
5641 done
5642
5643 # Required to use basename.
5644 if expr a : '\(a\)' >/dev/null 2>&1; then
5645   as_expr=expr
5646 else
5647   as_expr=false
5648 fi
5649
5650 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5651   as_basename=basename
5652 else
5653   as_basename=false
5654 fi
5655
5656
5657 # Name of the executable.
5658 as_me=`$as_basename "$0" ||
5659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5660          X"$0" : 'X\(//\)$' \| \
5661          X"$0" : 'X\(/\)$' \| \
5662          .     : '\(.\)' 2>/dev/null ||
5663 echo X/"$0" |
5664     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5665           /^X\/\(\/\/\)$/{ s//\1/; q; }
5666           /^X\/\(\/\).*/{ s//\1/; q; }
5667           s/.*/./; q'`
5668
5669
5670 # PATH needs CR, and LINENO needs CR and PATH.
5671 # Avoid depending upon Character Ranges.
5672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5675 as_cr_digits='0123456789'
5676 as_cr_alnum=$as_cr_Letters$as_cr_digits
5677
5678 # The user is always right.
5679 if test "${PATH_SEPARATOR+set}" != set; then
5680   echo "#! /bin/sh" >conf$$.sh
5681   echo  "exit 0"   >>conf$$.sh
5682   chmod +x conf$$.sh
5683   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5684     PATH_SEPARATOR=';'
5685   else
5686     PATH_SEPARATOR=:
5687   fi
5688   rm -f conf$$.sh
5689 fi
5690
5691
5692   as_lineno_1=$LINENO
5693   as_lineno_2=$LINENO
5694   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5695   test "x$as_lineno_1" != "x$as_lineno_2" &&
5696   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5697   # Find who we are.  Look in the path if we contain no path at all
5698   # relative or not.
5699   case $0 in
5700     *[\\/]* ) as_myself=$0 ;;
5701     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5707 done
5708
5709        ;;
5710   esac
5711   # We did not find ourselves, most probably we were run as `sh COMMAND'
5712   # in which case we are not to be found in the path.
5713   if test "x$as_myself" = x; then
5714     as_myself=$0
5715   fi
5716   if test ! -f "$as_myself"; then
5717     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5718 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5719    { (exit 1); exit 1; }; }
5720   fi
5721   case $CONFIG_SHELL in
5722   '')
5723     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728   for as_base in sh bash ksh sh5; do
5729          case $as_dir in
5730          /*)
5731            if ("$as_dir/$as_base" -c '
5732   as_lineno_1=$LINENO
5733   as_lineno_2=$LINENO
5734   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5735   test "x$as_lineno_1" != "x$as_lineno_2" &&
5736   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5737              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5738              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5739              CONFIG_SHELL=$as_dir/$as_base
5740              export CONFIG_SHELL
5741              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5742            fi;;
5743          esac
5744        done
5745 done
5746 ;;
5747   esac
5748
5749   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5750   # uniformly replaced by the line number.  The first 'sed' inserts a
5751   # line-number line before each line; the second 'sed' does the real
5752   # work.  The second script uses 'N' to pair each line-number line
5753   # with the numbered line, and appends trailing '-' during
5754   # substitution so that $LINENO is not a special case at line end.
5755   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5756   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5757   sed '=' <$as_myself |
5758     sed '
5759       N
5760       s,$,-,
5761       : loop
5762       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5763       t loop
5764       s,-$,,
5765       s,^['$as_cr_digits']*\n,,
5766     ' >$as_me.lineno &&
5767   chmod +x $as_me.lineno ||
5768     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5769 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5770    { (exit 1); exit 1; }; }
5771
5772   # Don't try to exec as it changes $[0], causing all sort of problems
5773   # (the dirname of $[0] is not the place where we might find the
5774   # original and so on.  Autoconf is especially sensible to this).
5775   . ./$as_me.lineno
5776   # Exit status is that of the last command.
5777   exit
5778 }
5779
5780
5781 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5782   *c*,-n*) ECHO_N= ECHO_C='
5783 ' ECHO_T='      ' ;;
5784   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5785   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5786 esac
5787
5788 if expr a : '\(a\)' >/dev/null 2>&1; then
5789   as_expr=expr
5790 else
5791   as_expr=false
5792 fi
5793
5794 rm -f conf$$ conf$$.exe conf$$.file
5795 echo >conf$$.file
5796 if ln -s conf$$.file conf$$ 2>/dev/null; then
5797   # We could just check for DJGPP; but this test a) works b) is more generic
5798   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5799   if test -f conf$$.exe; then
5800     # Don't use ln at all; we don't have any links
5801     as_ln_s='cp -p'
5802   else
5803     as_ln_s='ln -s'
5804   fi
5805 elif ln conf$$.file conf$$ 2>/dev/null; then
5806   as_ln_s=ln
5807 else
5808   as_ln_s='cp -p'
5809 fi
5810 rm -f conf$$ conf$$.exe conf$$.file
5811
5812 if mkdir -p . 2>/dev/null; then
5813   as_mkdir_p=:
5814 else
5815   test -d ./-p && rmdir ./-p
5816   as_mkdir_p=false
5817 fi
5818
5819 as_executable_p="test -f"
5820
5821 # Sed expression to map a string onto a valid CPP name.
5822 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5823
5824 # Sed expression to map a string onto a valid variable name.
5825 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5826
5827
5828 # IFS
5829 # We need space, tab and new line, in precisely that order.
5830 as_nl='
5831 '
5832 IFS="   $as_nl"
5833
5834 # CDPATH.
5835 $as_unset CDPATH
5836
5837 exec 6>&1
5838
5839 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5840 # report actual input values of CONFIG_FILES etc. instead of their
5841 # values after options handling.  Logging --version etc. is OK.
5842 exec 5>>config.log
5843 {
5844   echo
5845   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5846 ## Running $as_me. ##
5847 _ASBOX
5848 } >&5
5849 cat >&5 <<_CSEOF
5850
5851 This file was extended by $as_me, which was
5852 generated by GNU Autoconf 2.59.  Invocation command line was
5853
5854   CONFIG_FILES    = $CONFIG_FILES
5855   CONFIG_HEADERS  = $CONFIG_HEADERS
5856   CONFIG_LINKS    = $CONFIG_LINKS
5857   CONFIG_COMMANDS = $CONFIG_COMMANDS
5858   $ $0 $@
5859
5860 _CSEOF
5861 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5862 echo >&5
5863 _ACEOF
5864
5865 # Files that config.status was made for.
5866 if test -n "$ac_config_files"; then
5867   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5868 fi
5869
5870 if test -n "$ac_config_headers"; then
5871   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5872 fi
5873
5874 if test -n "$ac_config_links"; then
5875   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5876 fi
5877
5878 if test -n "$ac_config_commands"; then
5879   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5880 fi
5881
5882 cat >>$CONFIG_STATUS <<\_ACEOF
5883
5884 ac_cs_usage="\
5885 \`$as_me' instantiates files from templates according to the
5886 current configuration.
5887
5888 Usage: $0 [OPTIONS] [FILE]...
5889
5890   -h, --help       print this help, then exit
5891   -V, --version    print version number, then exit
5892   -q, --quiet      do not print progress messages
5893   -d, --debug      don't remove temporary files
5894       --recheck    update $as_me by reconfiguring in the same conditions
5895   --file=FILE[:TEMPLATE]
5896                    instantiate the configuration file FILE
5897
5898 Configuration files:
5899 $config_files
5900
5901 Configuration commands:
5902 $config_commands
5903
5904 Report bugs to <bug-autoconf@gnu.org>."
5905 _ACEOF
5906
5907 cat >>$CONFIG_STATUS <<_ACEOF
5908 ac_cs_version="\\
5909 config.status
5910 configured by $0, generated by GNU Autoconf 2.59,
5911   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5912
5913 Copyright (C) 2003 Free Software Foundation, Inc.
5914 This config.status script is free software; the Free Software Foundation
5915 gives unlimited permission to copy, distribute and modify it."
5916 srcdir=$srcdir
5917 INSTALL="$INSTALL"
5918 _ACEOF
5919
5920 cat >>$CONFIG_STATUS <<\_ACEOF
5921 # If no file are specified by the user, then we need to provide default
5922 # value.  By we need to know if files were specified by the user.
5923 ac_need_defaults=:
5924 while test $# != 0
5925 do
5926   case $1 in
5927   --*=*)
5928     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5929     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5930     ac_shift=:
5931     ;;
5932   -*)
5933     ac_option=$1
5934     ac_optarg=$2
5935     ac_shift=shift
5936     ;;
5937   *) # This is not an option, so the user has probably given explicit
5938      # arguments.
5939      ac_option=$1
5940      ac_need_defaults=false;;
5941   esac
5942
5943   case $ac_option in
5944   # Handling of the options.
5945 _ACEOF
5946 cat >>$CONFIG_STATUS <<\_ACEOF
5947   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5948     ac_cs_recheck=: ;;
5949   --version | --vers* | -V )
5950     echo "$ac_cs_version"; exit 0 ;;
5951   --he | --h)
5952     # Conflict between --help and --header
5953     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5954 Try \`$0 --help' for more information." >&5
5955 echo "$as_me: error: ambiguous option: $1
5956 Try \`$0 --help' for more information." >&2;}
5957    { (exit 1); exit 1; }; };;
5958   --help | --hel | -h )
5959     echo "$ac_cs_usage"; exit 0 ;;
5960   --debug | --d* | -d )
5961     debug=: ;;
5962   --file | --fil | --fi | --f )
5963     $ac_shift
5964     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5965     ac_need_defaults=false;;
5966   --header | --heade | --head | --hea )
5967     $ac_shift
5968     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5969     ac_need_defaults=false;;
5970   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5971   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5972     ac_cs_silent=: ;;
5973
5974   # This is an error.
5975   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5976 Try \`$0 --help' for more information." >&5
5977 echo "$as_me: error: unrecognized option: $1
5978 Try \`$0 --help' for more information." >&2;}
5979    { (exit 1); exit 1; }; } ;;
5980
5981   *) ac_config_targets="$ac_config_targets $1" ;;
5982
5983   esac
5984   shift
5985 done
5986
5987 ac_configure_extra_args=
5988
5989 if $ac_cs_silent; then
5990   exec 6>/dev/null
5991   ac_configure_extra_args="$ac_configure_extra_args --silent"
5992 fi
5993
5994 _ACEOF
5995 cat >>$CONFIG_STATUS <<_ACEOF
5996 if \$ac_cs_recheck; then
5997   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5998   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5999 fi
6000
6001 _ACEOF
6002
6003 cat >>$CONFIG_STATUS <<_ACEOF
6004 #
6005 # INIT-COMMANDS section.
6006 #
6007
6008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6009 srcdir=${srcdir}
6010 host=${host}
6011 target=${target}
6012 with_multisubdir=${with_multisubdir}
6013 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6014 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6015 zlib_basedir=${zlib_basedir}
6016 CC="${CC}"
6017 CXX="${CXX}"
6018 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6019
6020
6021 _ACEOF
6022
6023
6024
6025 cat >>$CONFIG_STATUS <<\_ACEOF
6026 for ac_config_target in $ac_config_targets
6027 do
6028   case "$ac_config_target" in
6029   # Handling of arguments.
6030   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6031   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6032   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6033   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6034 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6035    { (exit 1); exit 1; }; };;
6036   esac
6037 done
6038
6039 # If the user did not use the arguments to specify the items to instantiate,
6040 # then the envvar interface is used.  Set only those that are not.
6041 # We use the long form for the default assignment because of an extremely
6042 # bizarre bug on SunOS 4.1.3.
6043 if $ac_need_defaults; then
6044   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6045   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6046 fi
6047
6048 # Have a temporary directory for convenience.  Make it in the build tree
6049 # simply because there is no reason to put it here, and in addition,
6050 # creating and moving files from /tmp can sometimes cause problems.
6051 # Create a temporary directory, and hook for its removal unless debugging.
6052 $debug ||
6053 {
6054   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6055   trap '{ (exit 1); exit 1; }' 1 2 13 15
6056 }
6057
6058 # Create a (secure) tmp directory for tmp files.
6059
6060 {
6061   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6062   test -n "$tmp" && test -d "$tmp"
6063 }  ||
6064 {
6065   tmp=./confstat$$-$RANDOM
6066   (umask 077 && mkdir $tmp)
6067 } ||
6068 {
6069    echo "$me: cannot create a temporary directory in ." >&2
6070    { (exit 1); exit 1; }
6071 }
6072
6073 _ACEOF
6074
6075 cat >>$CONFIG_STATUS <<_ACEOF
6076
6077 #
6078 # CONFIG_FILES section.
6079 #
6080
6081 # No need to generate the scripts if there are no CONFIG_FILES.
6082 # This happens for instance when ./config.status config.h
6083 if test -n "\$CONFIG_FILES"; then
6084   # Protect against being on the right side of a sed subst in config.status.
6085   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6086    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6087 s,@SHELL@,$SHELL,;t t
6088 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6089 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6090 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6091 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6092 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6093 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6094 s,@exec_prefix@,$exec_prefix,;t t
6095 s,@prefix@,$prefix,;t t
6096 s,@program_transform_name@,$program_transform_name,;t t
6097 s,@bindir@,$bindir,;t t
6098 s,@sbindir@,$sbindir,;t t
6099 s,@libexecdir@,$libexecdir,;t t
6100 s,@datadir@,$datadir,;t t
6101 s,@sysconfdir@,$sysconfdir,;t t
6102 s,@sharedstatedir@,$sharedstatedir,;t t
6103 s,@localstatedir@,$localstatedir,;t t
6104 s,@libdir@,$libdir,;t t
6105 s,@includedir@,$includedir,;t t
6106 s,@oldincludedir@,$oldincludedir,;t t
6107 s,@infodir@,$infodir,;t t
6108 s,@mandir@,$mandir,;t t
6109 s,@build_alias@,$build_alias,;t t
6110 s,@host_alias@,$host_alias,;t t
6111 s,@target_alias@,$target_alias,;t t
6112 s,@DEFS@,$DEFS,;t t
6113 s,@ECHO_C@,$ECHO_C,;t t
6114 s,@ECHO_N@,$ECHO_N,;t t
6115 s,@ECHO_T@,$ECHO_T,;t t
6116 s,@LIBS@,$LIBS,;t t
6117 s,@zlib_basedir@,$zlib_basedir,;t t
6118 s,@build@,$build,;t t
6119 s,@build_cpu@,$build_cpu,;t t
6120 s,@build_vendor@,$build_vendor,;t t
6121 s,@build_os@,$build_os,;t t
6122 s,@host@,$host,;t t
6123 s,@host_cpu@,$host_cpu,;t t
6124 s,@host_vendor@,$host_vendor,;t t
6125 s,@host_os@,$host_os,;t t
6126 s,@target@,$target,;t t
6127 s,@target_cpu@,$target_cpu,;t t
6128 s,@target_vendor@,$target_vendor,;t t
6129 s,@target_os@,$target_os,;t t
6130 s,@mkinstalldirs@,$mkinstalldirs,;t t
6131 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6132 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6133 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6134 s,@CYGPATH_W@,$CYGPATH_W,;t t
6135 s,@PACKAGE@,$PACKAGE,;t t
6136 s,@VERSION@,$VERSION,;t t
6137 s,@ACLOCAL@,$ACLOCAL,;t t
6138 s,@AUTOCONF@,$AUTOCONF,;t t
6139 s,@AUTOMAKE@,$AUTOMAKE,;t t
6140 s,@AUTOHEADER@,$AUTOHEADER,;t t
6141 s,@MAKEINFO@,$MAKEINFO,;t t
6142 s,@AMTAR@,$AMTAR,;t t
6143 s,@install_sh@,$install_sh,;t t
6144 s,@STRIP@,$STRIP,;t t
6145 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6146 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6147 s,@AWK@,$AWK,;t t
6148 s,@SET_MAKE@,$SET_MAKE,;t t
6149 s,@am__leading_dot@,$am__leading_dot,;t t
6150 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6151 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6152 s,@MAINT@,$MAINT,;t t
6153 s,@COMPPATH@,$COMPPATH,;t t
6154 s,@CC@,$CC,;t t
6155 s,@CFLAGS@,$CFLAGS,;t t
6156 s,@LDFLAGS@,$LDFLAGS,;t t
6157 s,@CPPFLAGS@,$CPPFLAGS,;t t
6158 s,@ac_ct_CC@,$ac_ct_CC,;t t
6159 s,@EXEEXT@,$EXEEXT,;t t
6160 s,@OBJEXT@,$OBJEXT,;t t
6161 s,@DEPDIR@,$DEPDIR,;t t
6162 s,@am__include@,$am__include,;t t
6163 s,@am__quote@,$am__quote,;t t
6164 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6165 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6166 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6167 s,@CCDEPMODE@,$CCDEPMODE,;t t
6168 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6169 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6170 s,@LN_S@,$LN_S,;t t
6171 s,@RANLIB@,$RANLIB,;t t
6172 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6173 s,@LIBTOOL@,$LIBTOOL,;t t
6174 s,@CPP@,$CPP,;t t
6175 s,@EGREP@,$EGREP,;t t
6176 s,@target_all@,$target_all,;t t
6177 s,@toolexecdir@,$toolexecdir,;t t
6178 s,@toolexeclibdir@,$toolexeclibdir,;t t
6179 s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
6180 s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
6181 s,@LIBOBJS@,$LIBOBJS,;t t
6182 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6183 CEOF
6184
6185 _ACEOF
6186
6187   cat >>$CONFIG_STATUS <<\_ACEOF
6188   # Split the substitutions into bite-sized pieces for seds with
6189   # small command number limits, like on Digital OSF/1 and HP-UX.
6190   ac_max_sed_lines=48
6191   ac_sed_frag=1 # Number of current file.
6192   ac_beg=1 # First line for current file.
6193   ac_end=$ac_max_sed_lines # Line after last line for current file.
6194   ac_more_lines=:
6195   ac_sed_cmds=
6196   while $ac_more_lines; do
6197     if test $ac_beg -gt 1; then
6198       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6199     else
6200       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6201     fi
6202     if test ! -s $tmp/subs.frag; then
6203       ac_more_lines=false
6204     else
6205       # The purpose of the label and of the branching condition is to
6206       # speed up the sed processing (if there are no `@' at all, there
6207       # is no need to browse any of the substitutions).
6208       # These are the two extra sed commands mentioned above.
6209       (echo ':t
6210   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6211       if test -z "$ac_sed_cmds"; then
6212         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6213       else
6214         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6215       fi
6216       ac_sed_frag=`expr $ac_sed_frag + 1`
6217       ac_beg=$ac_end
6218       ac_end=`expr $ac_end + $ac_max_sed_lines`
6219     fi
6220   done
6221   if test -z "$ac_sed_cmds"; then
6222     ac_sed_cmds=cat
6223   fi
6224 fi # test -n "$CONFIG_FILES"
6225
6226 _ACEOF
6227 cat >>$CONFIG_STATUS <<\_ACEOF
6228 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6229   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6230   case $ac_file in
6231   - | *:- | *:-:* ) # input from stdin
6232         cat >$tmp/stdin
6233         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6234         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6235   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6236         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6237   * )   ac_file_in=$ac_file.in ;;
6238   esac
6239
6240   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6241   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6243          X"$ac_file" : 'X\(//\)[^/]' \| \
6244          X"$ac_file" : 'X\(//\)$' \| \
6245          X"$ac_file" : 'X\(/\)' \| \
6246          .     : '\(.\)' 2>/dev/null ||
6247 echo X"$ac_file" |
6248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6249           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6250           /^X\(\/\/\)$/{ s//\1/; q; }
6251           /^X\(\/\).*/{ s//\1/; q; }
6252           s/.*/./; q'`
6253   { if $as_mkdir_p; then
6254     mkdir -p "$ac_dir"
6255   else
6256     as_dir="$ac_dir"
6257     as_dirs=
6258     while test ! -d "$as_dir"; do
6259       as_dirs="$as_dir $as_dirs"
6260       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6262          X"$as_dir" : 'X\(//\)[^/]' \| \
6263          X"$as_dir" : 'X\(//\)$' \| \
6264          X"$as_dir" : 'X\(/\)' \| \
6265          .     : '\(.\)' 2>/dev/null ||
6266 echo X"$as_dir" |
6267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6269           /^X\(\/\/\)$/{ s//\1/; q; }
6270           /^X\(\/\).*/{ s//\1/; q; }
6271           s/.*/./; q'`
6272     done
6273     test ! -n "$as_dirs" || mkdir $as_dirs
6274   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6276    { (exit 1); exit 1; }; }; }
6277
6278   ac_builddir=.
6279
6280 if test "$ac_dir" != .; then
6281   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6282   # A "../" for each directory in $ac_dir_suffix.
6283   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6284 else
6285   ac_dir_suffix= ac_top_builddir=
6286 fi
6287
6288 case $srcdir in
6289   .)  # No --srcdir option.  We are building in place.
6290     ac_srcdir=.
6291     if test -z "$ac_top_builddir"; then
6292        ac_top_srcdir=.
6293     else
6294        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6295     fi ;;
6296   [\\/]* | ?:[\\/]* )  # Absolute path.
6297     ac_srcdir=$srcdir$ac_dir_suffix;
6298     ac_top_srcdir=$srcdir ;;
6299   *) # Relative path.
6300     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6301     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6302 esac
6303
6304 # Do not use `cd foo && pwd` to compute absolute paths, because
6305 # the directories may not exist.
6306 case `pwd` in
6307 .) ac_abs_builddir="$ac_dir";;
6308 *)
6309   case "$ac_dir" in
6310   .) ac_abs_builddir=`pwd`;;
6311   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6312   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6313   esac;;
6314 esac
6315 case $ac_abs_builddir in
6316 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6317 *)
6318   case ${ac_top_builddir}. in
6319   .) ac_abs_top_builddir=$ac_abs_builddir;;
6320   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6321   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6322   esac;;
6323 esac
6324 case $ac_abs_builddir in
6325 .) ac_abs_srcdir=$ac_srcdir;;
6326 *)
6327   case $ac_srcdir in
6328   .) ac_abs_srcdir=$ac_abs_builddir;;
6329   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6330   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6331   esac;;
6332 esac
6333 case $ac_abs_builddir in
6334 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6335 *)
6336   case $ac_top_srcdir in
6337   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6338   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6339   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6340   esac;;
6341 esac
6342
6343
6344   case $INSTALL in
6345   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6346   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6347   esac
6348
6349   if test x"$ac_file" != x-; then
6350     { echo "$as_me:$LINENO: creating $ac_file" >&5
6351 echo "$as_me: creating $ac_file" >&6;}
6352     rm -f "$ac_file"
6353   fi
6354   # Let's still pretend it is `configure' which instantiates (i.e., don't
6355   # use $as_me), people would be surprised to read:
6356   #    /* config.h.  Generated by config.status.  */
6357   if test x"$ac_file" = x-; then
6358     configure_input=
6359   else
6360     configure_input="$ac_file.  "
6361   fi
6362   configure_input=$configure_input"Generated from `echo $ac_file_in |
6363                                      sed 's,.*/,,'` by configure."
6364
6365   # First look for the input files in the build tree, otherwise in the
6366   # src tree.
6367   ac_file_inputs=`IFS=:
6368     for f in $ac_file_in; do
6369       case $f in
6370       -) echo $tmp/stdin ;;
6371       [\\/$]*)
6372          # Absolute (can't be DOS-style, as IFS=:)
6373          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6374 echo "$as_me: error: cannot find input file: $f" >&2;}
6375    { (exit 1); exit 1; }; }
6376          echo "$f";;
6377       *) # Relative
6378          if test -f "$f"; then
6379            # Build tree
6380            echo "$f"
6381          elif test -f "$srcdir/$f"; then
6382            # Source tree
6383            echo "$srcdir/$f"
6384          else
6385            # /dev/null tree
6386            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6387 echo "$as_me: error: cannot find input file: $f" >&2;}
6388    { (exit 1); exit 1; }; }
6389          fi;;
6390       esac
6391     done` || { (exit 1); exit 1; }
6392 _ACEOF
6393 cat >>$CONFIG_STATUS <<_ACEOF
6394   sed "$ac_vpsub
6395 $extrasub
6396 _ACEOF
6397 cat >>$CONFIG_STATUS <<\_ACEOF
6398 :t
6399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6400 s,@configure_input@,$configure_input,;t t
6401 s,@srcdir@,$ac_srcdir,;t t
6402 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6403 s,@top_srcdir@,$ac_top_srcdir,;t t
6404 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6405 s,@builddir@,$ac_builddir,;t t
6406 s,@abs_builddir@,$ac_abs_builddir,;t t
6407 s,@top_builddir@,$ac_top_builddir,;t t
6408 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6409 s,@INSTALL@,$ac_INSTALL,;t t
6410 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6411   rm -f $tmp/stdin
6412   if test x"$ac_file" != x-; then
6413     mv $tmp/out $ac_file
6414   else
6415     cat $tmp/out
6416     rm -f $tmp/out
6417   fi
6418
6419 done
6420 _ACEOF
6421 cat >>$CONFIG_STATUS <<\_ACEOF
6422
6423 #
6424 # CONFIG_COMMANDS section.
6425 #
6426 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6427   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6428   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6429   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6430 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6431          X"$ac_dest" : 'X\(//\)[^/]' \| \
6432          X"$ac_dest" : 'X\(//\)$' \| \
6433          X"$ac_dest" : 'X\(/\)' \| \
6434          .     : '\(.\)' 2>/dev/null ||
6435 echo X"$ac_dest" |
6436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6438           /^X\(\/\/\)$/{ s//\1/; q; }
6439           /^X\(\/\).*/{ s//\1/; q; }
6440           s/.*/./; q'`
6441   { if $as_mkdir_p; then
6442     mkdir -p "$ac_dir"
6443   else
6444     as_dir="$ac_dir"
6445     as_dirs=
6446     while test ! -d "$as_dir"; do
6447       as_dirs="$as_dir $as_dirs"
6448       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6450          X"$as_dir" : 'X\(//\)[^/]' \| \
6451          X"$as_dir" : 'X\(//\)$' \| \
6452          X"$as_dir" : 'X\(/\)' \| \
6453          .     : '\(.\)' 2>/dev/null ||
6454 echo X"$as_dir" |
6455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6457           /^X\(\/\/\)$/{ s//\1/; q; }
6458           /^X\(\/\).*/{ s//\1/; q; }
6459           s/.*/./; q'`
6460     done
6461     test ! -n "$as_dirs" || mkdir $as_dirs
6462   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6464    { (exit 1); exit 1; }; }; }
6465
6466   ac_builddir=.
6467
6468 if test "$ac_dir" != .; then
6469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6470   # A "../" for each directory in $ac_dir_suffix.
6471   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6472 else
6473   ac_dir_suffix= ac_top_builddir=
6474 fi
6475
6476 case $srcdir in
6477   .)  # No --srcdir option.  We are building in place.
6478     ac_srcdir=.
6479     if test -z "$ac_top_builddir"; then
6480        ac_top_srcdir=.
6481     else
6482        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6483     fi ;;
6484   [\\/]* | ?:[\\/]* )  # Absolute path.
6485     ac_srcdir=$srcdir$ac_dir_suffix;
6486     ac_top_srcdir=$srcdir ;;
6487   *) # Relative path.
6488     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6489     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6490 esac
6491
6492 # Do not use `cd foo && pwd` to compute absolute paths, because
6493 # the directories may not exist.
6494 case `pwd` in
6495 .) ac_abs_builddir="$ac_dir";;
6496 *)
6497   case "$ac_dir" in
6498   .) ac_abs_builddir=`pwd`;;
6499   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6500   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6501   esac;;
6502 esac
6503 case $ac_abs_builddir in
6504 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6505 *)
6506   case ${ac_top_builddir}. in
6507   .) ac_abs_top_builddir=$ac_abs_builddir;;
6508   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6509   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6510   esac;;
6511 esac
6512 case $ac_abs_builddir in
6513 .) ac_abs_srcdir=$ac_srcdir;;
6514 *)
6515   case $ac_srcdir in
6516   .) ac_abs_srcdir=$ac_abs_builddir;;
6517   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6518   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6519   esac;;
6520 esac
6521 case $ac_abs_builddir in
6522 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6523 *)
6524   case $ac_top_srcdir in
6525   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6526   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6527   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6528   esac;;
6529 esac
6530
6531
6532   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6533 echo "$as_me: executing $ac_dest commands" >&6;}
6534   case $ac_dest in
6535     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6536   # Strip MF so we end up with the name of the file.
6537   mf=`echo "$mf" | sed -e 's/:.*$//'`
6538   # Check whether this is an Automake generated Makefile or not.
6539   # We used to match only the files named `Makefile.in', but
6540   # some people rename them; so instead we look at the file content.
6541   # Grep'ing the first line is not enough: some people post-process
6542   # each Makefile.in and add a new line on top of each file to say so.
6543   # So let's grep whole file.
6544   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6545     dirpart=`(dirname "$mf") 2>/dev/null ||
6546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6547          X"$mf" : 'X\(//\)[^/]' \| \
6548          X"$mf" : 'X\(//\)$' \| \
6549          X"$mf" : 'X\(/\)' \| \
6550          .     : '\(.\)' 2>/dev/null ||
6551 echo X"$mf" |
6552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6553           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6554           /^X\(\/\/\)$/{ s//\1/; q; }
6555           /^X\(\/\).*/{ s//\1/; q; }
6556           s/.*/./; q'`
6557   else
6558     continue
6559   fi
6560   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6561   # Extract the definition of DEP_FILES from the Makefile without
6562   # running `make'.
6563   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6564   test -z "$DEPDIR" && continue
6565   # When using ansi2knr, U may be empty or an underscore; expand it
6566   U=`sed -n -e '/^U = / s///p' < "$mf"`
6567   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6568   # We invoke sed twice because it is the simplest approach to
6569   # changing $(DEPDIR) to its actual value in the expansion.
6570   for file in `sed -n -e '
6571     /^DEP_FILES = .*\\\\$/ {
6572       s/^DEP_FILES = //
6573       :loop
6574         s/\\\\$//
6575         p
6576         n
6577         /\\\\$/ b loop
6578       p
6579     }
6580     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6581        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6582     # Make sure the directory exists.
6583     test -f "$dirpart/$file" && continue
6584     fdir=`(dirname "$file") 2>/dev/null ||
6585 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6586          X"$file" : 'X\(//\)[^/]' \| \
6587          X"$file" : 'X\(//\)$' \| \
6588          X"$file" : 'X\(/\)' \| \
6589          .     : '\(.\)' 2>/dev/null ||
6590 echo X"$file" |
6591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6593           /^X\(\/\/\)$/{ s//\1/; q; }
6594           /^X\(\/\).*/{ s//\1/; q; }
6595           s/.*/./; q'`
6596     { if $as_mkdir_p; then
6597     mkdir -p $dirpart/$fdir
6598   else
6599     as_dir=$dirpart/$fdir
6600     as_dirs=
6601     while test ! -d "$as_dir"; do
6602       as_dirs="$as_dir $as_dirs"
6603       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6605          X"$as_dir" : 'X\(//\)[^/]' \| \
6606          X"$as_dir" : 'X\(//\)$' \| \
6607          X"$as_dir" : 'X\(/\)' \| \
6608          .     : '\(.\)' 2>/dev/null ||
6609 echo X"$as_dir" |
6610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6612           /^X\(\/\/\)$/{ s//\1/; q; }
6613           /^X\(\/\).*/{ s//\1/; q; }
6614           s/.*/./; q'`
6615     done
6616     test ! -n "$as_dirs" || mkdir $as_dirs
6617   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6618 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6619    { (exit 1); exit 1; }; }; }
6620
6621     # echo "creating $dirpart/$file"
6622     echo '# dummy' > "$dirpart/$file"
6623   done
6624 done
6625  ;;
6626     default ) if test -n "$CONFIG_FILES"; then
6627   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6628   ac_file=Makefile . ${zlib_basedir}/../config-ml.in
6629 fi ;;
6630   esac
6631 done
6632 _ACEOF
6633
6634 cat >>$CONFIG_STATUS <<\_ACEOF
6635
6636 { (exit 0); exit 0; }
6637 _ACEOF
6638 chmod +x $CONFIG_STATUS
6639 ac_clean_files=$ac_clean_files_save
6640
6641
6642 # configure is writing to config.log, and then calls config.status.
6643 # config.status does its own redirection, appending to config.log.
6644 # Unfortunately, on DOS this fails, as config.log is still kept open
6645 # by configure, so config.status won't be able to write to it; its
6646 # output is simply discarded.  So we exec the FD to /dev/null,
6647 # effectively closing config.log, so it can be properly (re)opened and
6648 # appended to by config.status.  When coming back to configure, we
6649 # need to make the FD available again.
6650 if test "$no_create" != yes; then
6651   ac_cs_success=:
6652   ac_config_status_args=
6653   test "$silent" = yes &&
6654     ac_config_status_args="$ac_config_status_args --quiet"
6655   exec 5>/dev/null
6656   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6657   exec 5>>config.log
6658   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6659   # would make configure fail if this is the last instruction.
6660   $ac_cs_success || { (exit 1); exit 1; }
6661 fi
6662