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