1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.57 for libtar 1.2.11.
4@%:@
5@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6@%:@ Free Software Foundation, Inc.
7@%:@ This configure script is free software; the Free Software Foundation
8@%:@ gives unlimited permission to copy, distribute and modify it.
9@%:@
10@%:@
11@%:@ Copyright (c) 1998-2003 University of Illinois Board of Trustees
12@%:@ Copyright (c) 1998-2003 Mark D. Roth
13@%:@ All rights reserved.
14@%:@
15## --------------------- ##
16## M4sh Initialization.  ##
17## --------------------- ##
18
19# Be Bourne compatible
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21  emulate sh
22  NULLCMD=:
23  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27  set -o posix
28fi
29
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
37
38# Work around bugs in pre-3.0 UWIN ksh.
39$as_unset ENV MAIL MAILPATH
40PS1='$ '
41PS2='> '
42PS4='+ '
43
44# NLS nuisances.
45for as_var in \
46  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48  LC_TELEPHONE LC_TIME
49do
50  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
51    eval $as_var=C; export $as_var
52  else
53    $as_unset $as_var
54  fi
55done
56
57# Required to use basename.
58if expr a : '\(a\)' >/dev/null 2>&1; then
59  as_expr=expr
60else
61  as_expr=false
62fi
63
64if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65  as_basename=basename
66else
67  as_basename=false
68fi
69
70
71# Name of the executable.
72as_me=`$as_basename "$0" ||
73$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74	 X"$0" : 'X\(//\)$' \| \
75	 X"$0" : 'X\(/\)$' \| \
76	 .     : '\(.\)' 2>/dev/null ||
77echo X/"$0" |
78    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
80  	  /^X\/\(\/\).*/{ s//\1/; q; }
81  	  s/.*/./; q'`
82
83
84# PATH needs CR, and LINENO needs CR and PATH.
85# Avoid depending upon Character Ranges.
86as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89as_cr_digits='0123456789'
90as_cr_alnum=$as_cr_Letters$as_cr_digits
91
92# The user is always right.
93if test "${PATH_SEPARATOR+set}" != set; then
94  echo "#! /bin/sh" >conf$$.sh
95  echo  "exit 0"   >>conf$$.sh
96  chmod +x conf$$.sh
97  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
98    PATH_SEPARATOR=';'
99  else
100    PATH_SEPARATOR=:
101  fi
102  rm -f conf$$.sh
103fi
104
105
106  as_lineno_1=$LINENO
107  as_lineno_2=$LINENO
108  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109  test "x$as_lineno_1" != "x$as_lineno_2" &&
110  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
111  # Find who we are.  Look in the path if we contain no path at all
112  # relative or not.
113  case $0 in
114    *[\\/]* ) as_myself=$0 ;;
115    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116for as_dir in $PATH
117do
118  IFS=$as_save_IFS
119  test -z "$as_dir" && as_dir=.
120  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121done
122
123       ;;
124  esac
125  # We did not find ourselves, most probably we were run as `sh COMMAND'
126  # in which case we are not to be found in the path.
127  if test "x$as_myself" = x; then
128    as_myself=$0
129  fi
130  if test ! -f "$as_myself"; then
131    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132   { (exit 1); exit 1; }; }
133  fi
134  case $CONFIG_SHELL in
135  '')
136    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138do
139  IFS=$as_save_IFS
140  test -z "$as_dir" && as_dir=.
141  for as_base in sh bash ksh sh5; do
142	 case $as_dir in
143	 /*)
144	   if ("$as_dir/$as_base" -c '
145  as_lineno_1=$LINENO
146  as_lineno_2=$LINENO
147  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148  test "x$as_lineno_1" != "x$as_lineno_2" &&
149  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
150	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152	     CONFIG_SHELL=$as_dir/$as_base
153	     export CONFIG_SHELL
154	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155	   fi;;
156	 esac
157       done
158done
159;;
160  esac
161
162  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163  # uniformly replaced by the line number.  The first 'sed' inserts a
164  # line-number line before each line; the second 'sed' does the real
165  # work.  The second script uses 'N' to pair each line-number line
166  # with the numbered line, and appends trailing '-' during
167  # substitution so that $LINENO is not a special case at line end.
168  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
170  sed '=' <$as_myself |
171    sed '
172      N
173      s,$,-,
174      : loop
175      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176      t loop
177      s,-$,,
178      s,^['$as_cr_digits']*\n,,
179    ' >$as_me.lineno &&
180  chmod +x $as_me.lineno ||
181    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182   { (exit 1); exit 1; }; }
183
184  # Don't try to exec as it changes $[0], causing all sort of problems
185  # (the dirname of $[0] is not the place where we might find the
186  # original and so on.  Autoconf is especially sensible to this).
187  . ./$as_me.lineno
188  # Exit status is that of the last command.
189  exit
190}
191
192
193case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194  *c*,-n*) ECHO_N= ECHO_C='
195' ECHO_T='	' ;;
196  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
198esac
199
200if expr a : '\(a\)' >/dev/null 2>&1; then
201  as_expr=expr
202else
203  as_expr=false
204fi
205
206rm -f conf$$ conf$$.exe conf$$.file
207echo >conf$$.file
208if ln -s conf$$.file conf$$ 2>/dev/null; then
209  # We could just check for DJGPP; but this test a) works b) is more generic
210  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211  if test -f conf$$.exe; then
212    # Don't use ln at all; we don't have any links
213    as_ln_s='cp -p'
214  else
215    as_ln_s='ln -s'
216  fi
217elif ln conf$$.file conf$$ 2>/dev/null; then
218  as_ln_s=ln
219else
220  as_ln_s='cp -p'
221fi
222rm -f conf$$ conf$$.exe conf$$.file
223
224if mkdir -p . 2>/dev/null; then
225  as_mkdir_p=:
226else
227  as_mkdir_p=false
228fi
229
230as_executable_p="test -f"
231
232# Sed expression to map a string onto a valid CPP name.
233as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
234
235# Sed expression to map a string onto a valid variable name.
236as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
237
238
239# IFS
240# We need space, tab and new line, in precisely that order.
241as_nl='
242'
243IFS=" 	$as_nl"
244
245# CDPATH.
246$as_unset CDPATH
247
248
249# Name of the host.
250# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
251# so uname gets run too.
252ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253
254exec 6>&1
255
256#
257# Initializations.
258#
259ac_default_prefix=/usr/local
260ac_config_libobj_dir=.
261cross_compiling=no
262subdirs=
263MFLAGS=
264MAKEFLAGS=
265SHELL=${CONFIG_SHELL-/bin/sh}
266
267# Maximum number of lines to put in a shell here document.
268# This variable seems obsolete.  It should probably be removed, and
269# only ac_max_sed_lines should be used.
270: ${ac_max_here_lines=38}
271
272# Identity of this package.
273PACKAGE_NAME='libtar'
274PACKAGE_TARNAME='libtar'
275PACKAGE_VERSION='1.2.11'
276PACKAGE_STRING='libtar 1.2.11'
277PACKAGE_BUGREPORT=''
278
279ac_unique_file="lib/libtar.h"
280# Factoring default headers for most tests.
281ac_includes_default="\
282#include <stdio.h>
283#if HAVE_SYS_TYPES_H
284# include <sys/types.h>
285#endif
286#if HAVE_SYS_STAT_H
287# include <sys/stat.h>
288#endif
289#if STDC_HEADERS
290# include <stdlib.h>
291# include <stddef.h>
292#else
293# if HAVE_STDLIB_H
294#  include <stdlib.h>
295# endif
296#endif
297#if HAVE_STRING_H
298# if !STDC_HEADERS && HAVE_MEMORY_H
299#  include <memory.h>
300# endif
301# include <string.h>
302#endif
303#if HAVE_STRINGS_H
304# include <strings.h>
305#endif
306#if HAVE_INTTYPES_H
307# include <inttypes.h>
308#else
309# if HAVE_STDINT_H
310#  include <stdint.h>
311# endif
312#endif
313#if HAVE_UNISTD_H
314# include <unistd.h>
315#endif"
316
317ac_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 EPKG MKENCAP ENCAP_DEFS ENCAP_INSTALL_RULES ENCAP_INSTALL_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIB@&t@OBJS LISTHASH_PREFIX LISTHASH_DIR MKDIR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE CPP EGREP LTLIBOBJS'
318ac_subst_files=''
319
320# Initialize some variables set by options.
321ac_init_help=
322ac_init_version=false
323# The variables have the same names as the options, with
324# dashes changed to underlines.
325cache_file=/dev/null
326exec_prefix=NONE
327no_create=
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
336verbose=
337x_includes=NONE
338x_libraries=NONE
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
358ac_prev=
359for ac_option
360do
361  # If the previous option needs an argument, assign it.
362  if test -n "$ac_prev"; then
363    eval "$ac_prev=\$ac_option"
364    ac_prev=
365    continue
366  fi
367
368  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370  # Accept the important Cygnus configure options, so we can diagnose typos.
371
372  case $ac_option in
373
374  -bindir | --bindir | --bindi | --bind | --bin | --bi)
375    ac_prev=bindir ;;
376  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377    bindir=$ac_optarg ;;
378
379  -build | --build | --buil | --bui | --bu)
380    ac_prev=build_alias ;;
381  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382    build_alias=$ac_optarg ;;
383
384  -cache-file | --cache-file | --cache-fil | --cache-fi \
385  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386    ac_prev=cache_file ;;
387  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389    cache_file=$ac_optarg ;;
390
391  --config-cache | -C)
392    cache_file=config.cache ;;
393
394  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395    ac_prev=datadir ;;
396  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397  | --da=*)
398    datadir=$ac_optarg ;;
399
400  -disable-* | --disable-*)
401    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402    # Reject names that are not valid shell variable names.
403    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405   { (exit 1); exit 1; }; }
406    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407    eval "enable_$ac_feature=no" ;;
408
409  -enable-* | --enable-*)
410    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411    # Reject names that are not valid shell variable names.
412    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414   { (exit 1); exit 1; }; }
415    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416    case $ac_option in
417      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418      *) ac_optarg=yes ;;
419    esac
420    eval "enable_$ac_feature='$ac_optarg'" ;;
421
422  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424  | --exec | --exe | --ex)
425    ac_prev=exec_prefix ;;
426  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428  | --exec=* | --exe=* | --ex=*)
429    exec_prefix=$ac_optarg ;;
430
431  -gas | --gas | --ga | --g)
432    # Obsolete; use --with-gas.
433    with_gas=yes ;;
434
435  -help | --help | --hel | --he | -h)
436    ac_init_help=long ;;
437  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438    ac_init_help=recursive ;;
439  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440    ac_init_help=short ;;
441
442  -host | --host | --hos | --ho)
443    ac_prev=host_alias ;;
444  -host=* | --host=* | --hos=* | --ho=*)
445    host_alias=$ac_optarg ;;
446
447  -includedir | --includedir | --includedi | --included | --include \
448  | --includ | --inclu | --incl | --inc)
449    ac_prev=includedir ;;
450  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451  | --includ=* | --inclu=* | --incl=* | --inc=*)
452    includedir=$ac_optarg ;;
453
454  -infodir | --infodir | --infodi | --infod | --info | --inf)
455    ac_prev=infodir ;;
456  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457    infodir=$ac_optarg ;;
458
459  -libdir | --libdir | --libdi | --libd)
460    ac_prev=libdir ;;
461  -libdir=* | --libdir=* | --libdi=* | --libd=*)
462    libdir=$ac_optarg ;;
463
464  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465  | --libexe | --libex | --libe)
466    ac_prev=libexecdir ;;
467  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468  | --libexe=* | --libex=* | --libe=*)
469    libexecdir=$ac_optarg ;;
470
471  -localstatedir | --localstatedir | --localstatedi | --localstated \
472  | --localstate | --localstat | --localsta | --localst \
473  | --locals | --local | --loca | --loc | --lo)
474    ac_prev=localstatedir ;;
475  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478    localstatedir=$ac_optarg ;;
479
480  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481    ac_prev=mandir ;;
482  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483    mandir=$ac_optarg ;;
484
485  -nfp | --nfp | --nf)
486    # Obsolete; use --without-fp.
487    with_fp=no ;;
488
489  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490  | --no-cr | --no-c | -n)
491    no_create=yes ;;
492
493  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495    no_recursion=yes ;;
496
497  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499  | --oldin | --oldi | --old | --ol | --o)
500    ac_prev=oldincludedir ;;
501  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504    oldincludedir=$ac_optarg ;;
505
506  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507    ac_prev=prefix ;;
508  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509    prefix=$ac_optarg ;;
510
511  -program-prefix | --program-prefix | --program-prefi | --program-pref \
512  | --program-pre | --program-pr | --program-p)
513    ac_prev=program_prefix ;;
514  -program-prefix=* | --program-prefix=* | --program-prefi=* \
515  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516    program_prefix=$ac_optarg ;;
517
518  -program-suffix | --program-suffix | --program-suffi | --program-suff \
519  | --program-suf | --program-su | --program-s)
520    ac_prev=program_suffix ;;
521  -program-suffix=* | --program-suffix=* | --program-suffi=* \
522  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523    program_suffix=$ac_optarg ;;
524
525  -program-transform-name | --program-transform-name \
526  | --program-transform-nam | --program-transform-na \
527  | --program-transform-n | --program-transform- \
528  | --program-transform | --program-transfor \
529  | --program-transfo | --program-transf \
530  | --program-trans | --program-tran \
531  | --progr-tra | --program-tr | --program-t)
532    ac_prev=program_transform_name ;;
533  -program-transform-name=* | --program-transform-name=* \
534  | --program-transform-nam=* | --program-transform-na=* \
535  | --program-transform-n=* | --program-transform-=* \
536  | --program-transform=* | --program-transfor=* \
537  | --program-transfo=* | --program-transf=* \
538  | --program-trans=* | --program-tran=* \
539  | --progr-tra=* | --program-tr=* | --program-t=*)
540    program_transform_name=$ac_optarg ;;
541
542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543  | -silent | --silent | --silen | --sile | --sil)
544    silent=yes ;;
545
546  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547    ac_prev=sbindir ;;
548  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549  | --sbi=* | --sb=*)
550    sbindir=$ac_optarg ;;
551
552  -sharedstatedir | --sharedstatedir | --sharedstatedi \
553  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554  | --sharedst | --shareds | --shared | --share | --shar \
555  | --sha | --sh)
556    ac_prev=sharedstatedir ;;
557  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560  | --sha=* | --sh=*)
561    sharedstatedir=$ac_optarg ;;
562
563  -site | --site | --sit)
564    ac_prev=site ;;
565  -site=* | --site=* | --sit=*)
566    site=$ac_optarg ;;
567
568  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569    ac_prev=srcdir ;;
570  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571    srcdir=$ac_optarg ;;
572
573  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574  | --syscon | --sysco | --sysc | --sys | --sy)
575    ac_prev=sysconfdir ;;
576  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578    sysconfdir=$ac_optarg ;;
579
580  -target | --target | --targe | --targ | --tar | --ta | --t)
581    ac_prev=target_alias ;;
582  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583    target_alias=$ac_optarg ;;
584
585  -v | -verbose | --verbose | --verbos | --verbo | --verb)
586    verbose=yes ;;
587
588  -version | --version | --versio | --versi | --vers | -V)
589    ac_init_version=: ;;
590
591  -with-* | --with-*)
592    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593    # Reject names that are not valid shell variable names.
594    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595      { echo "$as_me: error: invalid package name: $ac_package" >&2
596   { (exit 1); exit 1; }; }
597    ac_package=`echo $ac_package| sed 's/-/_/g'`
598    case $ac_option in
599      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600      *) ac_optarg=yes ;;
601    esac
602    eval "with_$ac_package='$ac_optarg'" ;;
603
604  -without-* | --without-*)
605    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606    # Reject names that are not valid shell variable names.
607    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608      { echo "$as_me: error: invalid package name: $ac_package" >&2
609   { (exit 1); exit 1; }; }
610    ac_package=`echo $ac_package | sed 's/-/_/g'`
611    eval "with_$ac_package=no" ;;
612
613  --x)
614    # Obsolete; use --with-x.
615    with_x=yes ;;
616
617  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618  | --x-incl | --x-inc | --x-in | --x-i)
619    ac_prev=x_includes ;;
620  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622    x_includes=$ac_optarg ;;
623
624  -x-libraries | --x-libraries | --x-librarie | --x-librari \
625  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626    ac_prev=x_libraries ;;
627  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629    x_libraries=$ac_optarg ;;
630
631  -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633   { (exit 1); exit 1; }; }
634    ;;
635
636  *=*)
637    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638    # Reject names that are not valid shell variable names.
639    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641   { (exit 1); exit 1; }; }
642    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643    eval "$ac_envvar='$ac_optarg'"
644    export $ac_envvar ;;
645
646  *)
647    # FIXME: should be removed in autoconf 3.0.
648    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652    ;;
653
654  esac
655done
656
657if test -n "$ac_prev"; then
658  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659  { echo "$as_me: error: missing argument to $ac_option" >&2
660   { (exit 1); exit 1; }; }
661fi
662
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666  eval ac_val=$`echo $ac_var`
667  case $ac_val in
668    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670   { (exit 1); exit 1; }; };;
671  esac
672done
673
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676              localstatedir libdir includedir oldincludedir infodir mandir
677do
678  eval ac_val=$`echo $ac_var`
679  case $ac_val in
680    [\\/$]* | ?:[\\/]* ) ;;
681    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682   { (exit 1); exit 1; }; };;
683  esac
684done
685
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695  if test "x$build_alias" = x; then
696    cross_compiling=maybe
697    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698    If a cross compiler is detected then cross compile mode will be used." >&2
699  elif test "x$build_alias" != "x$host_alias"; then
700    cross_compiling=yes
701  fi
702fi
703
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
708
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712  ac_srcdir_defaulted=yes
713  # Try the directory containing this script, then its parent.
714  ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716         X"$0" : 'X\(//\)[^/]' \| \
717         X"$0" : 'X\(//\)$' \| \
718         X"$0" : 'X\(/\)' \| \
719         .     : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723  	  /^X\(\/\/\)$/{ s//\1/; q; }
724  	  /^X\(\/\).*/{ s//\1/; q; }
725  	  s/.*/./; q'`
726  srcdir=$ac_confdir
727  if test ! -r $srcdir/$ac_unique_file; then
728    srcdir=..
729  fi
730else
731  ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734  if test "$ac_srcdir_defaulted" = yes; then
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736   { (exit 1); exit 1; }; }
737  else
738    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739   { (exit 1); exit 1; }; }
740  fi
741fi
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744   { (exit 1); exit 1; }; }
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
778
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783  # Omit some internal or obsolete options to make the list less imposing.
784  # This message is too long to be a string in the A/UX 3.1 sh.
785  cat <<_ACEOF
786\`configure' configures libtar 1.2.11 to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE.  See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796  -h, --help              display this help and exit
797      --help=short        display options specific to this package
798      --help=recursive    display the short help of all the included packages
799  -V, --version           display version information and exit
800  -q, --quiet, --silent   do not print \`checking...' messages
801      --cache-file=FILE   cache test results in FILE [disabled]
802  -C, --config-cache      alias for \`--cache-file=config.cache'
803  -n, --no-create         do not create output files
804      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
805
806_ACEOF
807
808  cat <<_ACEOF
809Installation directories:
810  --prefix=PREFIX         install architecture-independent files in PREFIX
811                          [$ac_default_prefix]
812  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
813                          [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823  --bindir=DIR           user executables [EPREFIX/bin]
824  --sbindir=DIR          system admin executables [EPREFIX/sbin]
825  --libexecdir=DIR       program executables [EPREFIX/libexec]
826  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
827  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
828  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
829  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
830  --libdir=DIR           object code libraries [EPREFIX/lib]
831  --includedir=DIR       C header files [PREFIX/include]
832  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
833  --infodir=DIR          info documentation [PREFIX/info]
834  --mandir=DIR           man documentation [PREFIX/man]
835_ACEOF
836
837  cat <<\_ACEOF
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842  case $ac_init_help in
843     short | recursive ) echo "Configuration of libtar 1.2.11:";;
844   esac
845  cat <<\_ACEOF
846
847Optional Features:
848  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
849  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
850  --disable-encap         Do not configure as an Encap package
851  --disable-epkg-install  Do not run epkg during make install
852
853Optional Packages:
854  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856  --without-zlib          Use external gzip binary instead of zlib
857
858Some influential environment variables:
859  CC          C compiler command
860  CFLAGS      C compiler flags
861  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
862              nonstandard directory <lib dir>
863  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
864              headers in a nonstandard directory <include dir>
865  CPP         C preprocessor
866
867Use these variables to override the choices made by `configure' or to help
868it to find libraries and programs with nonstandard names/locations.
869
870_ACEOF
871fi
872
873if test "$ac_init_help" = "recursive"; then
874  # If there are subdirs, report their specific --help.
875  ac_popdir=`pwd`
876  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877    test -d $ac_dir || continue
878    ac_builddir=.
879
880if test "$ac_dir" != .; then
881  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882  # A "../" for each directory in $ac_dir_suffix.
883  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884else
885  ac_dir_suffix= ac_top_builddir=
886fi
887
888case $srcdir in
889  .)  # No --srcdir option.  We are building in place.
890    ac_srcdir=.
891    if test -z "$ac_top_builddir"; then
892       ac_top_srcdir=.
893    else
894       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895    fi ;;
896  [\\/]* | ?:[\\/]* )  # Absolute path.
897    ac_srcdir=$srcdir$ac_dir_suffix;
898    ac_top_srcdir=$srcdir ;;
899  *) # Relative path.
900    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901    ac_top_srcdir=$ac_top_builddir$srcdir ;;
902esac
903# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904# absolute.
905ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909
910    cd $ac_dir
911    # Check for guested configure; otherwise get Cygnus style configure.
912    if test -f $ac_srcdir/configure.gnu; then
913      echo
914      $SHELL $ac_srcdir/configure.gnu  --help=recursive
915    elif test -f $ac_srcdir/configure; then
916      echo
917      $SHELL $ac_srcdir/configure  --help=recursive
918    elif test -f $ac_srcdir/configure.ac ||
919           test -f $ac_srcdir/configure.in; then
920      echo
921      $ac_configure --help
922    else
923      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924    fi
925    cd $ac_popdir
926  done
927fi
928
929test -n "$ac_init_help" && exit 0
930if $ac_init_version; then
931  cat <<\_ACEOF
932libtar configure 1.2.11
933generated by GNU Autoconf 2.57
934
935Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936Free Software Foundation, Inc.
937This configure script is free software; the Free Software Foundation
938gives unlimited permission to copy, distribute and modify it.
939
940
941Copyright (c) 1998-2003 University of Illinois Board of Trustees
942Copyright (c) 1998-2003 Mark D. Roth
943All rights reserved.
944
945_ACEOF
946  exit 0
947fi
948exec 5>config.log
949cat >&5 <<_ACEOF
950This file contains any messages produced by compilers while
951running configure, to aid debugging if configure makes a mistake.
952
953It was created by libtar $as_me 1.2.11, which was
954generated by GNU Autoconf 2.57.  Invocation command line was
955
956  $ $0 $@
957
958_ACEOF
959{
960cat <<_ASUNAME
961@%:@@%:@ --------- @%:@@%:@
962@%:@@%:@ Platform. @%:@@%:@
963@%:@@%:@ --------- @%:@@%:@
964
965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966uname -m = `(uname -m) 2>/dev/null || echo unknown`
967uname -r = `(uname -r) 2>/dev/null || echo unknown`
968uname -s = `(uname -s) 2>/dev/null || echo unknown`
969uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
973
974/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
975/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
978/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
979/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
980/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
981
982_ASUNAME
983
984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985for as_dir in $PATH
986do
987  IFS=$as_save_IFS
988  test -z "$as_dir" && as_dir=.
989  echo "PATH: $as_dir"
990done
991
992} >&5
993
994cat >&5 <<_ACEOF
995
996
997@%:@@%:@ ----------- @%:@@%:@
998@%:@@%:@ Core tests. @%:@@%:@
999@%:@@%:@ ----------- @%:@@%:@
1000
1001_ACEOF
1002
1003
1004# Keep a trace of the command line.
1005# Strip out --no-create and --no-recursion so they do not pile up.
1006# Strip out --silent because we don't want to record it for future runs.
1007# Also quote any args containing shell meta-characters.
1008# Make two passes to allow for proper duplicate-argument suppression.
1009ac_configure_args=
1010ac_configure_args0=
1011ac_configure_args1=
1012ac_sep=
1013ac_must_keep_next=false
1014for ac_pass in 1 2
1015do
1016  for ac_arg
1017  do
1018    case $ac_arg in
1019    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021    | -silent | --silent | --silen | --sile | --sil)
1022      continue ;;
1023    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025    esac
1026    case $ac_pass in
1027    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028    2)
1029      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030      if test $ac_must_keep_next = true; then
1031        ac_must_keep_next=false # Got value, back to normal.
1032      else
1033        case $ac_arg in
1034          *=* | --config-cache | -C | -disable-* | --disable-* \
1035          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037          | -with-* | --with-* | -without-* | --without-* | --x)
1038            case "$ac_configure_args0 " in
1039              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040            esac
1041            ;;
1042          -* ) ac_must_keep_next=true ;;
1043        esac
1044      fi
1045      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046      # Get rid of the leading space.
1047      ac_sep=" "
1048      ;;
1049    esac
1050  done
1051done
1052$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
1055# When interrupted or exit'd, cleanup temporary files, and complete
1056# config.log.  We remove comments because anyway the quotes in there
1057# would cause problems or look ugly.
1058# WARNING: Be sure not to use single quotes in there, as some shells,
1059# such as our DU 5.0 friend, will then `close' the trap.
1060trap 'exit_status=$?
1061  # Save into config.log some information that might help in debugging.
1062  {
1063    echo
1064
1065    cat <<\_ASBOX
1066@%:@@%:@ ---------------- @%:@@%:@
1067@%:@@%:@ Cache variables. @%:@@%:@
1068@%:@@%:@ ---------------- @%:@@%:@
1069_ASBOX
1070    echo
1071    # The following way of writing the cache mishandles newlines in values,
1072{
1073  (set) 2>&1 |
1074    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075    *ac_space=\ *)
1076      sed -n \
1077        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079      ;;
1080    *)
1081      sed -n \
1082        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083      ;;
1084    esac;
1085}
1086    echo
1087
1088    cat <<\_ASBOX
1089@%:@@%:@ ----------------- @%:@@%:@
1090@%:@@%:@ Output variables. @%:@@%:@
1091@%:@@%:@ ----------------- @%:@@%:@
1092_ASBOX
1093    echo
1094    for ac_var in $ac_subst_vars
1095    do
1096      eval ac_val=$`echo $ac_var`
1097      echo "$ac_var='"'"'$ac_val'"'"'"
1098    done | sort
1099    echo
1100
1101    if test -n "$ac_subst_files"; then
1102      cat <<\_ASBOX
1103@%:@@%:@ ------------- @%:@@%:@
1104@%:@@%:@ Output files. @%:@@%:@
1105@%:@@%:@ ------------- @%:@@%:@
1106_ASBOX
1107      echo
1108      for ac_var in $ac_subst_files
1109      do
1110	eval ac_val=$`echo $ac_var`
1111        echo "$ac_var='"'"'$ac_val'"'"'"
1112      done | sort
1113      echo
1114    fi
1115
1116    if test -s confdefs.h; then
1117      cat <<\_ASBOX
1118@%:@@%:@ ----------- @%:@@%:@
1119@%:@@%:@ confdefs.h. @%:@@%:@
1120@%:@@%:@ ----------- @%:@@%:@
1121_ASBOX
1122      echo
1123      sed "/^$/d" confdefs.h | sort
1124      echo
1125    fi
1126    test "$ac_signal" != 0 &&
1127      echo "$as_me: caught signal $ac_signal"
1128    echo "$as_me: exit $exit_status"
1129  } >&5
1130  rm -f core core.* *.core &&
1131  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132    exit $exit_status
1133     ' 0
1134for ac_signal in 1 2 13 15; do
1135  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136done
1137ac_signal=0
1138
1139# confdefs.h avoids OS command line length limits that DEFS can exceed.
1140rm -rf conftest* confdefs.h
1141# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142echo >confdefs.h
1143
1144# Predefined preprocessor variables.
1145
1146cat >>confdefs.h <<_ACEOF
1147@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1148_ACEOF
1149
1150
1151cat >>confdefs.h <<_ACEOF
1152@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153_ACEOF
1154
1155
1156cat >>confdefs.h <<_ACEOF
1157@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1158_ACEOF
1159
1160
1161cat >>confdefs.h <<_ACEOF
1162@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168_ACEOF
1169
1170
1171# Let the site file select an alternate cache file if it wants to.
1172# Prefer explicitly selected file to automatically selected ones.
1173if test -z "$CONFIG_SITE"; then
1174  if test "x$prefix" != xNONE; then
1175    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176  else
1177    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178  fi
1179fi
1180for ac_site_file in $CONFIG_SITE; do
1181  if test -r "$ac_site_file"; then
1182    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183echo "$as_me: loading site script $ac_site_file" >&6;}
1184    sed 's/^/| /' "$ac_site_file" >&5
1185    . "$ac_site_file"
1186  fi
1187done
1188
1189if test -r "$cache_file"; then
1190  # Some versions of bash will fail to source /dev/null (special
1191  # files actually), so we avoid doing that.
1192  if test -f "$cache_file"; then
1193    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194echo "$as_me: loading cache $cache_file" >&6;}
1195    case $cache_file in
1196      [\\/]* | ?:[\\/]* ) . $cache_file;;
1197      *)                      . ./$cache_file;;
1198    esac
1199  fi
1200else
1201  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202echo "$as_me: creating cache $cache_file" >&6;}
1203  >$cache_file
1204fi
1205
1206# Check that the precious variables saved in the cache have kept the same
1207# value.
1208ac_cache_corrupted=false
1209for ac_var in `(set) 2>&1 |
1210               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212  eval ac_new_set=\$ac_env_${ac_var}_set
1213  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214  eval ac_new_val="\$ac_env_${ac_var}_value"
1215  case $ac_old_set,$ac_new_set in
1216    set,)
1217      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219      ac_cache_corrupted=: ;;
1220    ,set)
1221      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223      ac_cache_corrupted=: ;;
1224    ,);;
1225    *)
1226      if test "x$ac_old_val" != "x$ac_new_val"; then
1227        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1230echo "$as_me:   former value:  $ac_old_val" >&2;}
1231        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1232echo "$as_me:   current value: $ac_new_val" >&2;}
1233        ac_cache_corrupted=:
1234      fi;;
1235  esac
1236  # Pass precious variables to config.status.
1237  if test "$ac_new_set" = set; then
1238    case $ac_new_val in
1239    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241    *) ac_arg=$ac_var=$ac_new_val ;;
1242    esac
1243    case " $ac_configure_args " in
1244      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1245      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246    esac
1247  fi
1248done
1249if $ac_cache_corrupted; then
1250  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254   { (exit 1); exit 1; }; }
1255fi
1256
1257ac_ext=c
1258ac_cpp='$CPP $CPPFLAGS'
1259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290ac_aux_dir=
1291for ac_dir in autoconf $srcdir/autoconf; do
1292  if test -f $ac_dir/install-sh; then
1293    ac_aux_dir=$ac_dir
1294    ac_install_sh="$ac_aux_dir/install-sh -c"
1295    break
1296  elif test -f $ac_dir/install.sh; then
1297    ac_aux_dir=$ac_dir
1298    ac_install_sh="$ac_aux_dir/install.sh -c"
1299    break
1300  elif test -f $ac_dir/shtool; then
1301    ac_aux_dir=$ac_dir
1302    ac_install_sh="$ac_aux_dir/shtool install -c"
1303    break
1304  fi
1305done
1306if test -z "$ac_aux_dir"; then
1307  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1308echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1309   { (exit 1); exit 1; }; }
1310fi
1311ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1312ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1313ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1314
1315          ac_config_headers="$ac_config_headers config.h"
1316
1317
1318
1319
1320  MKENCAP_OPTS=;
1321
1322  # allow user to disable Encap support
1323  # Check whether --enable-encap or --disable-encap was given.
1324if test "${enable_encap+set}" = set; then
1325  enableval="$enable_encap"
1326
1327else
1328  enable_encap=default
1329fi;
1330
1331  if test "$enable_encap" != "no"; then
1332    # look for epkg and mkencap
1333    # Extract the first word of "epkg", so it can be a program name with args.
1334set dummy epkg; ac_word=$2
1335echo "$as_me:$LINENO: checking for $ac_word" >&5
1336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1337if test "${ac_cv_path_EPKG+set}" = set; then
1338  echo $ECHO_N "(cached) $ECHO_C" >&6
1339else
1340  case $EPKG in
1341  [\\/]* | ?:[\\/]*)
1342  ac_cv_path_EPKG="$EPKG" # Let the user override the test with a path.
1343  ;;
1344  *)
1345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346for as_dir in $PATH
1347do
1348  IFS=$as_save_IFS
1349  test -z "$as_dir" && as_dir=.
1350  for ac_exec_ext in '' $ac_executable_extensions; do
1351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352    ac_cv_path_EPKG="$as_dir/$ac_word$ac_exec_ext"
1353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354    break 2
1355  fi
1356done
1357done
1358
1359  ;;
1360esac
1361fi
1362EPKG=$ac_cv_path_EPKG
1363
1364if test -n "$EPKG"; then
1365  echo "$as_me:$LINENO: result: $EPKG" >&5
1366echo "${ECHO_T}$EPKG" >&6
1367else
1368  echo "$as_me:$LINENO: result: no" >&5
1369echo "${ECHO_T}no" >&6
1370fi
1371
1372    # Extract the first word of "mkencap", so it can be a program name with args.
1373set dummy mkencap; ac_word=$2
1374echo "$as_me:$LINENO: checking for $ac_word" >&5
1375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376if test "${ac_cv_path_MKENCAP+set}" = set; then
1377  echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379  case $MKENCAP in
1380  [\\/]* | ?:[\\/]*)
1381  ac_cv_path_MKENCAP="$MKENCAP" # Let the user override the test with a path.
1382  ;;
1383  *)
1384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387  IFS=$as_save_IFS
1388  test -z "$as_dir" && as_dir=.
1389  for ac_exec_ext in '' $ac_executable_extensions; do
1390  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391    ac_cv_path_MKENCAP="$as_dir/$ac_word$ac_exec_ext"
1392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393    break 2
1394  fi
1395done
1396done
1397
1398  ;;
1399esac
1400fi
1401MKENCAP=$ac_cv_path_MKENCAP
1402
1403if test -n "$MKENCAP"; then
1404  echo "$as_me:$LINENO: result: $MKENCAP" >&5
1405echo "${ECHO_T}$MKENCAP" >&6
1406else
1407  echo "$as_me:$LINENO: result: no" >&5
1408echo "${ECHO_T}no" >&6
1409fi
1410
1411
1412    # enable by default if epkg or mkencap are found
1413    if test "${EPKG:+set}" = "set" || test "${MKENCAP:+set}" = "set" && test "$enable_encap" = "default"; then
1414      enable_encap=yes;
1415    fi
1416  fi
1417
1418  if test "$enable_encap" = "yes"; then
1419    # generate fallback values for ${ENCAP_SOURCE} and ${ENCAP_TARGET}
1420    # from the environment or the default prefix
1421    if test -z "${ENCAP_SOURCE}" && test -z "${ENCAP_TARGET}"; then
1422      ENCAP_SOURCE="${ac_default_prefix}/encap";
1423      ENCAP_TARGET="${ac_default_prefix}";
1424    elif test -z "${ENCAP_TARGET}"; then
1425      ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
1426    elif test -z "${ENCAP_SOURCE}"; then
1427      ENCAP_SOURCE="${ENCAP_TARGET}/encap";
1428    fi
1429
1430    # if --prefix is specified:
1431    #   1) if its next-to-last component is "encap", assume that it
1432    #      points to the package directory
1433    #   2) otherwise, assume it points to the target directory
1434    if test "${prefix}" != "NONE"; then
1435      prefixdir="`dirname ${prefix}`";
1436      prefixbase="`basename ${prefix}`";
1437      if test "`basename ${prefixdir}`" = "encap"; then
1438        ENCAP_SOURCE="${prefixdir}";
1439        ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
1440      elif test "${prefixdir}" != "${ENCAP_SOURCE}"; then
1441        ENCAP_SOURCE="${prefix}/encap";
1442        ENCAP_TARGET="${prefix}";
1443      fi
1444      if ( test "`basename ${prefixdir}`" = "encap" || \
1445           test "${prefixdir}" = "${ENCAP_SOURCE}" ) && \
1446         test "${prefixbase}" != "${PACKAGE_NAME}-${PACKAGE_VERSION}"; then
1447        ENCAP_PKGSPEC="${prefixbase}";
1448      fi
1449    fi
1450
1451    # display results
1452    echo "$as_me:$LINENO: checking for Encap source directory" >&5
1453echo $ECHO_N "checking for Encap source directory... $ECHO_C" >&6
1454    echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}" >&5
1455echo "${ECHO_T}${ENCAP_SOURCE}" >&6
1456    echo "$as_me:$LINENO: checking for Encap target directory" >&5
1457echo $ECHO_N "checking for Encap target directory... $ECHO_C" >&6
1458    echo "$as_me:$LINENO: result: ${ENCAP_TARGET}" >&5
1459echo "${ECHO_T}${ENCAP_TARGET}" >&6
1460    echo "$as_me:$LINENO: checking for Encap package directory" >&5
1461echo $ECHO_N "checking for Encap package directory... $ECHO_C" >&6
1462    if test "${ENCAP_PKGSPEC:-unset}" = "unset"; then
1463      ENCAP_PKGSPEC='${PACKAGE_NAME}-${PACKAGE_VERSION}';
1464      echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&5
1465echo "${ECHO_T}${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&6
1466    else
1467      echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&5
1468echo "${ECHO_T}${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&6
1469    fi
1470    prefix='${ENCAP_SOURCE}/${ENCAP_PKGSPEC}';
1471
1472    # override default sysconfdir and localstatedir
1473    if test "$sysconfdir" = '${prefix}/etc'; then
1474      sysconfdir='${ENCAP_TARGET}/etc';
1475    fi
1476    if test "$localstatedir" = '${prefix}/var'; then
1477      localstatedir='/var/lib/${PACKAGE_NAME}';
1478    fi
1479
1480    # check for --disable-epkg-install
1481    # Check whether --enable-epkg-install or --disable-epkg-install was given.
1482if test "${enable_epkg_install+set}" = set; then
1483  enableval="$enable_epkg_install"
1484
1485else
1486  enable_epkg_install=yes
1487fi;
1488    if test "$enable_epkg_install" = "no"; then
1489      EPKG=":";
1490    fi
1491
1492    # generate Makefile variables
1493
1494    ENCAP_DEFS="ENCAP_SOURCE = ${ENCAP_SOURCE}\\
1495ENCAP_TARGET = ${ENCAP_TARGET}\\
1496ENCAP_PKGSPEC = ${ENCAP_PKGSPEC}\\
1497EPKG = ${EPKG:-:}\\
1498MKENCAP = ${MKENCAP:-:}\\
1499MKENCAP_OPTS = ${MKENCAP_OPTS}";
1500
1501
1502        ENCAP_INSTALL_RULES='if test -f ${top_srcdir}/COPYRIGHT; then \\\
1503		${INSTALL_DATA} ${top_srcdir}/COPYRIGHT ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}; \\\
1504	fi\
1505	${MKENCAP} ${MKENCAP_OPTS} -s ${DESTDIR}${ENCAP_SOURCE} -e ${ENCAP_PKGSPEC};\
1506	if test -z \"${DESTDIR}\"; then \\\
1507		${EPKG} -s ${ENCAP_SOURCE} -t ${ENCAP_TARGET} ${ENCAP_PKGSPEC}; \\\
1508	fi';
1509
1510
1511    ENCAP_INSTALL_TARGET=postinstall-encap
1512  else
1513    ENCAP_INSTALL_TARGET=
1514  fi
1515
1516
1517
1518
1519
1520
1521    # COMPAT_VAR___PROGNAME
1522# ---------------------
1523# Check if libc defines the __progname variable.
1524
1525
1526
1527# COMPAT_FUNC_BASENAME
1528# --------------------
1529# Check for working basename() function.
1530
1531
1532
1533# COMPAT_FUNC_DIRNAME
1534# -------------------
1535# Check for working dirname() function.
1536
1537
1538
1539# COMPAT_FUNC_FNMATCH
1540# -------------------
1541# Check for working fnmatch() function.
1542
1543
1544
1545# COMPAT_FUNC_GLOB
1546# ----------------
1547# Check for working glob() function.
1548
1549
1550
1551# COMPAT_FUNC_MAKEDEV
1552# -------------------
1553# Check for number of arguments expected by makedev().
1554
1555
1556
1557# COMPAT_FUNC_SNPRINTF
1558# --------------------
1559# Check for working snprintf() function.
1560
1561
1562
1563# COMPAT_PROTO_MACRO(FUNCTION, HEADER, MACRO-LIST, [BODY])
1564# --------------------------------------------------------
1565# Determine which C preprocessor macro is needed to expose prototype of
1566# FUNCTION in HEADER.  First, we try with nothing special defined; then we
1567# try with each macro from MACRO-LIST.  We stop as soon as it's found
1568# and adjust $CFLAGS appropriately.
1569
1570
1571
1572# COMPAT_FUNC_STRTOK_R
1573# --------------------
1574# Check for working strtok_r().
1575
1576
1577
1578# COMPAT_FUNC_GETPWUID_R
1579# ----------------------
1580# Check for POSIX-compliant getpwuid_r().
1581
1582
1583
1584# COMPAT_FUNC_GETHOSTBYNAME_R
1585# ---------------------------
1586# Check for gethostbyname_r().
1587
1588
1589
1590# COMPAT_FUNC_GETSERVBYNAME_R
1591# ---------------------------
1592# Check for getservbyname_r().
1593
1594
1595
1596# COMPAT_REPLACE_FUNC(function)
1597# -----------------------------
1598# Replacement for AC_REPLACE_FUNCS.
1599
1600
1601
1602# COMPAT_FUNC_GETHOSTNAME
1603# -----------------------
1604# Check for gethostname().
1605
1606
1607
1608# COMPAT_FUNC_INET_ATON
1609# ---------------------
1610# Check for inet_aton().
1611
1612
1613
1614# COMPAT_FUNC_STRDUP
1615# ------------------
1616# Check for strdup().
1617
1618
1619
1620# COMPAT_FUNC_STRLCAT
1621# -------------------
1622# Check for strlcat().
1623
1624
1625
1626# COMPAT_FUNC_STRLCPY
1627# -------------------
1628# Check for strlcpy().
1629
1630
1631
1632# COMPAT_FUNC_STRMODE
1633# -------------------
1634# Check for strmode().
1635
1636
1637
1638# COMPAT_FUNC_STRRSTR
1639# -------------------
1640# Check for strrstr().
1641
1642
1643
1644# COMPAT_FUNC_STRSEP
1645# ------------------
1646# Check for strsep().
1647
1648
1649
1650
1651ac_ext=c
1652ac_cpp='$CPP $CPPFLAGS'
1653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1655ac_compiler_gnu=$ac_cv_c_compiler_gnu
1656if test -n "$ac_tool_prefix"; then
1657  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1658set dummy ${ac_tool_prefix}gcc; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_CC+set}" = set; then
1662  echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664  if test -n "$CC"; then
1665  ac_cv_prog_CC="$CC" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670  IFS=$as_save_IFS
1671  test -z "$as_dir" && as_dir=.
1672  for ac_exec_ext in '' $ac_executable_extensions; do
1673  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676    break 2
1677  fi
1678done
1679done
1680
1681fi
1682fi
1683CC=$ac_cv_prog_CC
1684if test -n "$CC"; then
1685  echo "$as_me:$LINENO: result: $CC" >&5
1686echo "${ECHO_T}$CC" >&6
1687else
1688  echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
1692fi
1693if test -z "$ac_cv_prog_CC"; then
1694  ac_ct_CC=$CC
1695  # Extract the first word of "gcc", so it can be a program name with args.
1696set dummy gcc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700  echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702  if test -n "$ac_ct_CC"; then
1703  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708  IFS=$as_save_IFS
1709  test -z "$as_dir" && as_dir=.
1710  for ac_exec_ext in '' $ac_executable_extensions; do
1711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712    ac_cv_prog_ac_ct_CC="gcc"
1713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714    break 2
1715  fi
1716done
1717done
1718
1719fi
1720fi
1721ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722if test -n "$ac_ct_CC"; then
1723  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724echo "${ECHO_T}$ac_ct_CC" >&6
1725else
1726  echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730  CC=$ac_ct_CC
1731else
1732  CC="$ac_cv_prog_CC"
1733fi
1734
1735if test -z "$CC"; then
1736  if test -n "$ac_tool_prefix"; then
1737  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1738set dummy ${ac_tool_prefix}cc; ac_word=$2
1739echo "$as_me:$LINENO: checking for $ac_word" >&5
1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741if test "${ac_cv_prog_CC+set}" = set; then
1742  echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744  if test -n "$CC"; then
1745  ac_cv_prog_CC="$CC" # Let the user override the test.
1746else
1747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748for as_dir in $PATH
1749do
1750  IFS=$as_save_IFS
1751  test -z "$as_dir" && as_dir=.
1752  for ac_exec_ext in '' $ac_executable_extensions; do
1753  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754    ac_cv_prog_CC="${ac_tool_prefix}cc"
1755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756    break 2
1757  fi
1758done
1759done
1760
1761fi
1762fi
1763CC=$ac_cv_prog_CC
1764if test -n "$CC"; then
1765  echo "$as_me:$LINENO: result: $CC" >&5
1766echo "${ECHO_T}$CC" >&6
1767else
1768  echo "$as_me:$LINENO: result: no" >&5
1769echo "${ECHO_T}no" >&6
1770fi
1771
1772fi
1773if test -z "$ac_cv_prog_CC"; then
1774  ac_ct_CC=$CC
1775  # Extract the first word of "cc", so it can be a program name with args.
1776set dummy cc; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780  echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782  if test -n "$ac_ct_CC"; then
1783  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784else
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788  IFS=$as_save_IFS
1789  test -z "$as_dir" && as_dir=.
1790  for ac_exec_ext in '' $ac_executable_extensions; do
1791  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792    ac_cv_prog_ac_ct_CC="cc"
1793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794    break 2
1795  fi
1796done
1797done
1798
1799fi
1800fi
1801ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802if test -n "$ac_ct_CC"; then
1803  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804echo "${ECHO_T}$ac_ct_CC" >&6
1805else
1806  echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808fi
1809
1810  CC=$ac_ct_CC
1811else
1812  CC="$ac_cv_prog_CC"
1813fi
1814
1815fi
1816if test -z "$CC"; then
1817  # Extract the first word of "cc", so it can be a program name with args.
1818set dummy cc; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_CC+set}" = set; then
1822  echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824  if test -n "$CC"; then
1825  ac_cv_prog_CC="$CC" # Let the user override the test.
1826else
1827  ac_prog_rejected=no
1828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829for as_dir in $PATH
1830do
1831  IFS=$as_save_IFS
1832  test -z "$as_dir" && as_dir=.
1833  for ac_exec_ext in '' $ac_executable_extensions; do
1834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1836       ac_prog_rejected=yes
1837       continue
1838     fi
1839    ac_cv_prog_CC="cc"
1840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841    break 2
1842  fi
1843done
1844done
1845
1846if test $ac_prog_rejected = yes; then
1847  # We found a bogon in the path, so make sure we never use it.
1848  set dummy $ac_cv_prog_CC
1849  shift
1850  if test $@%:@ != 0; then
1851    # We chose a different compiler from the bogus one.
1852    # However, it has the same basename, so the bogon will be chosen
1853    # first if we set CC to just the basename; use the full file name.
1854    shift
1855    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1856  fi
1857fi
1858fi
1859fi
1860CC=$ac_cv_prog_CC
1861if test -n "$CC"; then
1862  echo "$as_me:$LINENO: result: $CC" >&5
1863echo "${ECHO_T}$CC" >&6
1864else
1865  echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869fi
1870if test -z "$CC"; then
1871  if test -n "$ac_tool_prefix"; then
1872  for ac_prog in cl
1873  do
1874    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_CC+set}" = set; then
1879  echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
1881  if test -n "$CC"; then
1882  ac_cv_prog_CC="$CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887  IFS=$as_save_IFS
1888  test -z "$as_dir" && as_dir=.
1889  for ac_exec_ext in '' $ac_executable_extensions; do
1890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893    break 2
1894  fi
1895done
1896done
1897
1898fi
1899fi
1900CC=$ac_cv_prog_CC
1901if test -n "$CC"; then
1902  echo "$as_me:$LINENO: result: $CC" >&5
1903echo "${ECHO_T}$CC" >&6
1904else
1905  echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909    test -n "$CC" && break
1910  done
1911fi
1912if test -z "$CC"; then
1913  ac_ct_CC=$CC
1914  for ac_prog in cl
1915do
1916  # Extract the first word of "$ac_prog", so it can be a program name with args.
1917set dummy $ac_prog; ac_word=$2
1918echo "$as_me:$LINENO: checking for $ac_word" >&5
1919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921  echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923  if test -n "$ac_ct_CC"; then
1924  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925else
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929  IFS=$as_save_IFS
1930  test -z "$as_dir" && as_dir=.
1931  for ac_exec_ext in '' $ac_executable_extensions; do
1932  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933    ac_cv_prog_ac_ct_CC="$ac_prog"
1934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935    break 2
1936  fi
1937done
1938done
1939
1940fi
1941fi
1942ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943if test -n "$ac_ct_CC"; then
1944  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945echo "${ECHO_T}$ac_ct_CC" >&6
1946else
1947  echo "$as_me:$LINENO: result: no" >&5
1948echo "${ECHO_T}no" >&6
1949fi
1950
1951  test -n "$ac_ct_CC" && break
1952done
1953
1954  CC=$ac_ct_CC
1955fi
1956
1957fi
1958
1959
1960test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1961See \`config.log' for more details." >&5
1962echo "$as_me: error: no acceptable C compiler found in \$PATH
1963See \`config.log' for more details." >&2;}
1964   { (exit 1); exit 1; }; }
1965
1966# Provide some information about the compiler.
1967echo "$as_me:$LINENO:" \
1968     "checking for C compiler version" >&5
1969ac_compiler=`set X $ac_compile; echo $2`
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1971  (eval $ac_compiler --version </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1976  (eval $ac_compiler -v </dev/null >&5) 2>&5
1977  ac_status=$?
1978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979  (exit $ac_status); }
1980{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1981  (eval $ac_compiler -V </dev/null >&5) 2>&5
1982  ac_status=$?
1983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984  (exit $ac_status); }
1985
1986cat >conftest.$ac_ext <<_ACEOF
1987#line $LINENO "configure"
1988/* confdefs.h.  */
1989_ACEOF
1990cat confdefs.h >>conftest.$ac_ext
1991cat >>conftest.$ac_ext <<_ACEOF
1992/* end confdefs.h.  */
1993
1994int
1995main ()
1996{
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002ac_clean_files_save=$ac_clean_files
2003ac_clean_files="$ac_clean_files a.out a.exe b.out"
2004# Try to create an executable without -o first, disregard a.out.
2005# It will help us diagnose broken compilers, and finding out an intuition
2006# of exeext.
2007echo "$as_me:$LINENO: checking for C compiler default output" >&5
2008echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2009ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2010if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2011  (eval $ac_link_default) 2>&5
2012  ac_status=$?
2013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014  (exit $ac_status); }; then
2015  # Find the output, starting from the most likely.  This scheme is
2016# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2017# resort.
2018
2019# Be careful to initialize this variable, since it used to be cached.
2020# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2021ac_cv_exeext=
2022# b.out is created by i960 compilers.
2023for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2024do
2025  test -f "$ac_file" || continue
2026  case $ac_file in
2027    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2028        ;;
2029    conftest.$ac_ext )
2030        # This is the source file.
2031        ;;
2032    [ab].out )
2033        # We found the default executable, but exeext='' is most
2034        # certainly right.
2035        break;;
2036    *.* )
2037        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2038        # FIXME: I believe we export ac_cv_exeext for Libtool,
2039        # but it would be cool to find out if it's true.  Does anybody
2040        # maintain Libtool? --akim.
2041        export ac_cv_exeext
2042        break;;
2043    * )
2044        break;;
2045  esac
2046done
2047else
2048  echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2052See \`config.log' for more details." >&5
2053echo "$as_me: error: C compiler cannot create executables
2054See \`config.log' for more details." >&2;}
2055   { (exit 77); exit 77; }; }
2056fi
2057
2058ac_exeext=$ac_cv_exeext
2059echo "$as_me:$LINENO: result: $ac_file" >&5
2060echo "${ECHO_T}$ac_file" >&6
2061
2062# Check the compiler produces executables we can run.  If not, either
2063# the compiler is broken, or we cross compile.
2064echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2065echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2066# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2067# If not cross compiling, check that we can run a simple program.
2068if test "$cross_compiling" != yes; then
2069  if { ac_try='./$ac_file'
2070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071  (eval $ac_try) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; }; then
2075    cross_compiling=no
2076  else
2077    if test "$cross_compiling" = maybe; then
2078	cross_compiling=yes
2079    else
2080	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2081If you meant to cross compile, use \`--host'.
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: cannot run C compiled programs.
2084If you meant to cross compile, use \`--host'.
2085See \`config.log' for more details." >&2;}
2086   { (exit 1); exit 1; }; }
2087    fi
2088  fi
2089fi
2090echo "$as_me:$LINENO: result: yes" >&5
2091echo "${ECHO_T}yes" >&6
2092
2093rm -f a.out a.exe conftest$ac_cv_exeext b.out
2094ac_clean_files=$ac_clean_files_save
2095# Check the compiler produces executables we can run.  If not, either
2096# the compiler is broken, or we cross compile.
2097echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2098echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2099echo "$as_me:$LINENO: result: $cross_compiling" >&5
2100echo "${ECHO_T}$cross_compiling" >&6
2101
2102echo "$as_me:$LINENO: checking for suffix of executables" >&5
2103echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2105  (eval $ac_link) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }; then
2109  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2110# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2111# work properly (i.e., refer to `conftest.exe'), while it won't with
2112# `rm'.
2113for ac_file in conftest.exe conftest conftest.*; do
2114  test -f "$ac_file" || continue
2115  case $ac_file in
2116    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2117    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118          export ac_cv_exeext
2119          break;;
2120    * ) break;;
2121  esac
2122done
2123else
2124  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2125See \`config.log' for more details." >&5
2126echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&2;}
2128   { (exit 1); exit 1; }; }
2129fi
2130
2131rm -f conftest$ac_cv_exeext
2132echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2133echo "${ECHO_T}$ac_cv_exeext" >&6
2134
2135rm -f conftest.$ac_ext
2136EXEEXT=$ac_cv_exeext
2137ac_exeext=$EXEEXT
2138echo "$as_me:$LINENO: checking for suffix of object files" >&5
2139echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2140if test "${ac_cv_objext+set}" = set; then
2141  echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143  cat >conftest.$ac_ext <<_ACEOF
2144#line $LINENO "configure"
2145/* confdefs.h.  */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h.  */
2150
2151int
2152main ()
2153{
2154
2155  ;
2156  return 0;
2157}
2158_ACEOF
2159rm -f conftest.o conftest.obj
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161  (eval $ac_compile) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; then
2165  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2166  case $ac_file in
2167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2168    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2169       break;;
2170  esac
2171done
2172else
2173  echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: cannot compute suffix of object files: cannot compile
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181fi
2182
2183rm -f conftest.$ac_cv_objext conftest.$ac_ext
2184fi
2185echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2186echo "${ECHO_T}$ac_cv_objext" >&6
2187OBJEXT=$ac_cv_objext
2188ac_objext=$OBJEXT
2189echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2190echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2191if test "${ac_cv_c_compiler_gnu+set}" = set; then
2192  echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194  cat >conftest.$ac_ext <<_ACEOF
2195#line $LINENO "configure"
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205#ifndef __GNUC__
2206       choke me
2207#endif
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); } &&
2219         { ac_try='test -s conftest.$ac_objext'
2220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221  (eval $ac_try) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; }; then
2225  ac_compiler_gnu=yes
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230ac_compiler_gnu=no
2231fi
2232rm -f conftest.$ac_objext conftest.$ac_ext
2233ac_cv_c_compiler_gnu=$ac_compiler_gnu
2234
2235fi
2236echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238GCC=`test $ac_compiler_gnu = yes && echo yes`
2239ac_test_CFLAGS=${CFLAGS+set}
2240ac_save_CFLAGS=$CFLAGS
2241CFLAGS="-g"
2242echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244if test "${ac_cv_prog_cc_g+set}" = set; then
2245  echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247  cat >conftest.$ac_ext <<_ACEOF
2248#line $LINENO "configure"
2249/* confdefs.h.  */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h.  */
2254
2255int
2256main ()
2257{
2258
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263rm -f conftest.$ac_objext
2264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265  (eval $ac_compile) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); } &&
2269         { ac_try='test -s conftest.$ac_objext'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; }; then
2275  ac_cv_prog_cc_g=yes
2276else
2277  echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280ac_cv_prog_cc_g=no
2281fi
2282rm -f conftest.$ac_objext conftest.$ac_ext
2283fi
2284echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2285echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2286if test "$ac_test_CFLAGS" = set; then
2287  CFLAGS=$ac_save_CFLAGS
2288elif test $ac_cv_prog_cc_g = yes; then
2289  if test "$GCC" = yes; then
2290    CFLAGS="-g -O2"
2291  else
2292    CFLAGS="-g"
2293  fi
2294else
2295  if test "$GCC" = yes; then
2296    CFLAGS="-O2"
2297  else
2298    CFLAGS=
2299  fi
2300fi
2301echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2302echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2303if test "${ac_cv_prog_cc_stdc+set}" = set; then
2304  echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306  ac_cv_prog_cc_stdc=no
2307ac_save_CC=$CC
2308cat >conftest.$ac_ext <<_ACEOF
2309#line $LINENO "configure"
2310/* confdefs.h.  */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h.  */
2315#include <stdarg.h>
2316#include <stdio.h>
2317#include <sys/types.h>
2318#include <sys/stat.h>
2319/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2320struct buf { int x; };
2321FILE * (*rcsopen) (struct buf *, struct stat *, int);
2322static char *e (p, i)
2323     char **p;
2324     int i;
2325{
2326  return p[i];
2327}
2328static char *f (char * (*g) (char **, int), char **p, ...)
2329{
2330  char *s;
2331  va_list v;
2332  va_start (v,p);
2333  s = g (p, va_arg (v,int));
2334  va_end (v);
2335  return s;
2336}
2337int test (int i, double x);
2338struct s1 {int (*f) (int a);};
2339struct s2 {int (*f) (double a);};
2340int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2341int argc;
2342char **argv;
2343int
2344main ()
2345{
2346return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351# Don't try gcc -ansi; that turns off useful extensions and
2352# breaks some systems' header files.
2353# AIX			-qlanglvl=ansi
2354# Ultrix and OSF/1	-std1
2355# HP-UX 10.20 and later	-Ae
2356# HP-UX older versions	-Aa -D_HPUX_SOURCE
2357# SVR4			-Xc -D__EXTENSIONS__
2358for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2359do
2360  CC="$ac_save_CC $ac_arg"
2361  rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363  (eval $ac_compile) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); } &&
2367         { ac_try='test -s conftest.$ac_objext'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; }; then
2373  ac_cv_prog_cc_stdc=$ac_arg
2374break
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379fi
2380rm -f conftest.$ac_objext
2381done
2382rm -f conftest.$ac_ext conftest.$ac_objext
2383CC=$ac_save_CC
2384
2385fi
2386
2387case "x$ac_cv_prog_cc_stdc" in
2388  x|xno)
2389    echo "$as_me:$LINENO: result: none needed" >&5
2390echo "${ECHO_T}none needed" >&6 ;;
2391  *)
2392    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2393echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2394    CC="$CC $ac_cv_prog_cc_stdc" ;;
2395esac
2396
2397# Some people use a C++ compiler to compile C.  Since we use `exit',
2398# in C++ we need to declare it.  In case someone uses the same compiler
2399# for both compiling C and C++ we need to have the C++ compiler decide
2400# the declaration of exit, since it's the most demanding environment.
2401cat >conftest.$ac_ext <<_ACEOF
2402@%:@ifndef __cplusplus
2403  choke me
2404@%:@endif
2405_ACEOF
2406rm -f conftest.$ac_objext
2407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408  (eval $ac_compile) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); } &&
2412         { ac_try='test -s conftest.$ac_objext'
2413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414  (eval $ac_try) 2>&5
2415  ac_status=$?
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); }; }; then
2418  for ac_declaration in \
2419   ''\
2420   '#include <stdlib.h>' \
2421   'extern "C" void std::exit (int) throw (); using std::exit;' \
2422   'extern "C" void std::exit (int); using std::exit;' \
2423   'extern "C" void exit (int) throw ();' \
2424   'extern "C" void exit (int);' \
2425   'void exit (int);'
2426do
2427  cat >conftest.$ac_ext <<_ACEOF
2428#line $LINENO "configure"
2429/* confdefs.h.  */
2430_ACEOF
2431cat confdefs.h >>conftest.$ac_ext
2432cat >>conftest.$ac_ext <<_ACEOF
2433/* end confdefs.h.  */
2434@%:@include <stdlib.h>
2435$ac_declaration
2436int
2437main ()
2438{
2439exit (42);
2440  ;
2441  return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext
2445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446  (eval $ac_compile) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); } &&
2450         { ac_try='test -s conftest.$ac_objext'
2451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452  (eval $ac_try) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }; }; then
2456  :
2457else
2458  echo "$as_me: failed program was:" >&5
2459sed 's/^/| /' conftest.$ac_ext >&5
2460
2461continue
2462fi
2463rm -f conftest.$ac_objext conftest.$ac_ext
2464  cat >conftest.$ac_ext <<_ACEOF
2465#line $LINENO "configure"
2466/* confdefs.h.  */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h.  */
2471$ac_declaration
2472int
2473main ()
2474{
2475exit (42);
2476  ;
2477  return 0;
2478}
2479_ACEOF
2480rm -f conftest.$ac_objext
2481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482  (eval $ac_compile) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  break
2493else
2494  echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497fi
2498rm -f conftest.$ac_objext conftest.$ac_ext
2499done
2500rm -f conftest*
2501if test -n "$ac_declaration"; then
2502  echo '#ifdef __cplusplus' >>confdefs.h
2503  echo $ac_declaration      >>confdefs.h
2504  echo '#endif'             >>confdefs.h
2505fi
2506
2507else
2508  echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511fi
2512rm -f conftest.$ac_objext conftest.$ac_ext
2513ac_ext=c
2514ac_cpp='$CPP $CPPFLAGS'
2515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520
2521
2522
2523cat >>confdefs.h <<\_ACEOF
2524@%:@define NEED_STRLCPY 1
2525_ACEOF
2526
2527  echo "$as_me:$LINENO: checking for strlcpy" >&5
2528echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
2529if test "${ac_cv_func_strlcpy+set}" = set; then
2530  echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532  cat >conftest.$ac_ext <<_ACEOF
2533#line $LINENO "configure"
2534/* confdefs.h.  */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
2538/* end confdefs.h.  */
2539/* System header to define __stub macros and hopefully few prototypes,
2540    which can conflict with char strlcpy (); below.
2541    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2542    <limits.h> exists even on freestanding compilers.  */
2543#ifdef __STDC__
2544# include <limits.h>
2545#else
2546# include <assert.h>
2547#endif
2548/* Override any gcc2 internal prototype to avoid an error.  */
2549#ifdef __cplusplus
2550extern "C"
2551{
2552#endif
2553/* We use char because int might match the return type of a gcc2
2554   builtin and then its argument prototype would still apply.  */
2555char strlcpy ();
2556/* The GNU C library defines this for functions which it implements
2557    to always fail with ENOSYS.  Some functions are actually named
2558    something starting with __ and the normal name is an alias.  */
2559#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
2560choke me
2561#else
2562char (*f) () = strlcpy;
2563#endif
2564#ifdef __cplusplus
2565}
2566#endif
2567
2568int
2569main ()
2570{
2571return f != strlcpy;
2572  ;
2573  return 0;
2574}
2575_ACEOF
2576rm -f conftest.$ac_objext conftest$ac_exeext
2577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2578  (eval $ac_link) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); } &&
2582         { ac_try='test -s conftest$ac_exeext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_cv_func_strlcpy=yes
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593ac_cv_func_strlcpy=no
2594fi
2595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2596fi
2597echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
2598echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
2599if test $ac_cv_func_strlcpy = yes; then
2600
2601cat >>confdefs.h <<\_ACEOF
2602@%:@define HAVE_STRLCPY 1
2603_ACEOF
2604
2605else
2606  LIB@&t@OBJS="$LIB@&t@OBJS strlcpy.$ac_objext"
2607
2608fi
2609
2610
2611
2612
2613
2614
2615cat >>confdefs.h <<\_ACEOF
2616@%:@define NEED_STRSEP 1
2617_ACEOF
2618
2619  echo "$as_me:$LINENO: checking for strsep" >&5
2620echo $ECHO_N "checking for strsep... $ECHO_C" >&6
2621if test "${ac_cv_func_strsep+set}" = set; then
2622  echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624  cat >conftest.$ac_ext <<_ACEOF
2625#line $LINENO "configure"
2626/* confdefs.h.  */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h.  */
2631/* System header to define __stub macros and hopefully few prototypes,
2632    which can conflict with char strsep (); below.
2633    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2634    <limits.h> exists even on freestanding compilers.  */
2635#ifdef __STDC__
2636# include <limits.h>
2637#else
2638# include <assert.h>
2639#endif
2640/* Override any gcc2 internal prototype to avoid an error.  */
2641#ifdef __cplusplus
2642extern "C"
2643{
2644#endif
2645/* We use char because int might match the return type of a gcc2
2646   builtin and then its argument prototype would still apply.  */
2647char strsep ();
2648/* The GNU C library defines this for functions which it implements
2649    to always fail with ENOSYS.  Some functions are actually named
2650    something starting with __ and the normal name is an alias.  */
2651#if defined (__stub_strsep) || defined (__stub___strsep)
2652choke me
2653#else
2654char (*f) () = strsep;
2655#endif
2656#ifdef __cplusplus
2657}
2658#endif
2659
2660int
2661main ()
2662{
2663return f != strsep;
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670  (eval $ac_link) 2>&5
2671  ac_status=$?
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); } &&
2674         { ac_try='test -s conftest$ac_exeext'
2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676  (eval $ac_try) 2>&5
2677  ac_status=$?
2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679  (exit $ac_status); }; }; then
2680  ac_cv_func_strsep=yes
2681else
2682  echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685ac_cv_func_strsep=no
2686fi
2687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2688fi
2689echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
2690echo "${ECHO_T}$ac_cv_func_strsep" >&6
2691if test $ac_cv_func_strsep = yes; then
2692
2693cat >>confdefs.h <<\_ACEOF
2694@%:@define HAVE_STRSEP 1
2695_ACEOF
2696
2697else
2698  LIB@&t@OBJS="$LIB@&t@OBJS strsep.$ac_objext"
2699
2700fi
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711  if test -z "libtar"; then
2712    LISTHASH_PREFIX="${PACKAGE_NAME}";
2713  else
2714    LISTHASH_PREFIX="libtar";
2715  fi
2716
2717
2718  LISTHASH_DIR="listhash";
2719
2720
2721            ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in"
2722
2723            ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in"
2724
2725            ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in"
2726
2727            ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in"
2728
2729            ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in"
2730
2731
2732
2733
2734if test -z "$CFLAGS"; then
2735  CFLAGS="-O"
2736fi
2737MKDIR="mkdir -p -m 755"
2738
2739
2740
2741ac_ext=c
2742ac_cpp='$CPP $CPPFLAGS'
2743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746if test -n "$ac_tool_prefix"; then
2747  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749echo "$as_me:$LINENO: checking for $ac_word" >&5
2750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751if test "${ac_cv_prog_CC+set}" = set; then
2752  echo $ECHO_N "(cached) $ECHO_C" >&6
2753else
2754  if test -n "$CC"; then
2755  ac_cv_prog_CC="$CC" # Let the user override the test.
2756else
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760  IFS=$as_save_IFS
2761  test -z "$as_dir" && as_dir=.
2762  for ac_exec_ext in '' $ac_executable_extensions; do
2763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766    break 2
2767  fi
2768done
2769done
2770
2771fi
2772fi
2773CC=$ac_cv_prog_CC
2774if test -n "$CC"; then
2775  echo "$as_me:$LINENO: result: $CC" >&5
2776echo "${ECHO_T}$CC" >&6
2777else
2778  echo "$as_me:$LINENO: result: no" >&5
2779echo "${ECHO_T}no" >&6
2780fi
2781
2782fi
2783if test -z "$ac_cv_prog_CC"; then
2784  ac_ct_CC=$CC
2785  # Extract the first word of "gcc", so it can be a program name with args.
2786set dummy gcc; ac_word=$2
2787echo "$as_me:$LINENO: checking for $ac_word" >&5
2788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790  echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792  if test -n "$ac_ct_CC"; then
2793  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800  for ac_exec_ext in '' $ac_executable_extensions; do
2801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_ac_ct_CC="gcc"
2803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807done
2808
2809fi
2810fi
2811ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812if test -n "$ac_ct_CC"; then
2813  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814echo "${ECHO_T}$ac_ct_CC" >&6
2815else
2816  echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6
2818fi
2819
2820  CC=$ac_ct_CC
2821else
2822  CC="$ac_cv_prog_CC"
2823fi
2824
2825if test -z "$CC"; then
2826  if test -n "$ac_tool_prefix"; then
2827  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828set dummy ${ac_tool_prefix}cc; ac_word=$2
2829echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831if test "${ac_cv_prog_CC+set}" = set; then
2832  echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834  if test -n "$CC"; then
2835  ac_cv_prog_CC="$CC" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840  IFS=$as_save_IFS
2841  test -z "$as_dir" && as_dir=.
2842  for ac_exec_ext in '' $ac_executable_extensions; do
2843  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844    ac_cv_prog_CC="${ac_tool_prefix}cc"
2845    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846    break 2
2847  fi
2848done
2849done
2850
2851fi
2852fi
2853CC=$ac_cv_prog_CC
2854if test -n "$CC"; then
2855  echo "$as_me:$LINENO: result: $CC" >&5
2856echo "${ECHO_T}$CC" >&6
2857else
2858  echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860fi
2861
2862fi
2863if test -z "$ac_cv_prog_CC"; then
2864  ac_ct_CC=$CC
2865  # Extract the first word of "cc", so it can be a program name with args.
2866set dummy cc; ac_word=$2
2867echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870  echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872  if test -n "$ac_ct_CC"; then
2873  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  test -z "$as_dir" && as_dir=.
2880  for ac_exec_ext in '' $ac_executable_extensions; do
2881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882    ac_cv_prog_ac_ct_CC="cc"
2883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884    break 2
2885  fi
2886done
2887done
2888
2889fi
2890fi
2891ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892if test -n "$ac_ct_CC"; then
2893  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894echo "${ECHO_T}$ac_ct_CC" >&6
2895else
2896  echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
2898fi
2899
2900  CC=$ac_ct_CC
2901else
2902  CC="$ac_cv_prog_CC"
2903fi
2904
2905fi
2906if test -z "$CC"; then
2907  # Extract the first word of "cc", so it can be a program name with args.
2908set dummy cc; ac_word=$2
2909echo "$as_me:$LINENO: checking for $ac_word" >&5
2910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911if test "${ac_cv_prog_CC+set}" = set; then
2912  echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914  if test -n "$CC"; then
2915  ac_cv_prog_CC="$CC" # Let the user override the test.
2916else
2917  ac_prog_rejected=no
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923  for ac_exec_ext in '' $ac_executable_extensions; do
2924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926       ac_prog_rejected=yes
2927       continue
2928     fi
2929    ac_cv_prog_CC="cc"
2930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934done
2935
2936if test $ac_prog_rejected = yes; then
2937  # We found a bogon in the path, so make sure we never use it.
2938  set dummy $ac_cv_prog_CC
2939  shift
2940  if test $@%:@ != 0; then
2941    # We chose a different compiler from the bogus one.
2942    # However, it has the same basename, so the bogon will be chosen
2943    # first if we set CC to just the basename; use the full file name.
2944    shift
2945    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946  fi
2947fi
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  echo "$as_me:$LINENO: result: $CC" >&5
2953echo "${ECHO_T}$CC" >&6
2954else
2955  echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6
2957fi
2958
2959fi
2960if test -z "$CC"; then
2961  if test -n "$ac_tool_prefix"; then
2962  for ac_prog in cl
2963  do
2964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966echo "$as_me:$LINENO: checking for $ac_word" >&5
2967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968if test "${ac_cv_prog_CC+set}" = set; then
2969  echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971  if test -n "$CC"; then
2972  ac_cv_prog_CC="$CC" # Let the user override the test.
2973else
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977  IFS=$as_save_IFS
2978  test -z "$as_dir" && as_dir=.
2979  for ac_exec_ext in '' $ac_executable_extensions; do
2980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983    break 2
2984  fi
2985done
2986done
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992  echo "$as_me:$LINENO: result: $CC" >&5
2993echo "${ECHO_T}$CC" >&6
2994else
2995  echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997fi
2998
2999    test -n "$CC" && break
3000  done
3001fi
3002if test -z "$CC"; then
3003  ac_ct_CC=$CC
3004  for ac_prog in cl
3005do
3006  # Extract the first word of "$ac_prog", so it can be a program name with args.
3007set dummy $ac_prog; ac_word=$2
3008echo "$as_me:$LINENO: checking for $ac_word" >&5
3009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  if test -n "$ac_ct_CC"; then
3014  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015else
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019  IFS=$as_save_IFS
3020  test -z "$as_dir" && as_dir=.
3021  for ac_exec_ext in '' $ac_executable_extensions; do
3022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023    ac_cv_prog_ac_ct_CC="$ac_prog"
3024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025    break 2
3026  fi
3027done
3028done
3029
3030fi
3031fi
3032ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033if test -n "$ac_ct_CC"; then
3034  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035echo "${ECHO_T}$ac_ct_CC" >&6
3036else
3037  echo "$as_me:$LINENO: result: no" >&5
3038echo "${ECHO_T}no" >&6
3039fi
3040
3041  test -n "$ac_ct_CC" && break
3042done
3043
3044  CC=$ac_ct_CC
3045fi
3046
3047fi
3048
3049
3050test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3051See \`config.log' for more details." >&5
3052echo "$as_me: error: no acceptable C compiler found in \$PATH
3053See \`config.log' for more details." >&2;}
3054   { (exit 1); exit 1; }; }
3055
3056# Provide some information about the compiler.
3057echo "$as_me:$LINENO:" \
3058     "checking for C compiler version" >&5
3059ac_compiler=`set X $ac_compile; echo $2`
3060{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3061  (eval $ac_compiler --version </dev/null >&5) 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }
3065{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3066  (eval $ac_compiler -v </dev/null >&5) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }
3070{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3071  (eval $ac_compiler -V </dev/null >&5) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }
3075
3076echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3078if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079  echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081  cat >conftest.$ac_ext <<_ACEOF
3082#line $LINENO "configure"
3083/* confdefs.h.  */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092#ifndef __GNUC__
3093       choke me
3094#endif
3095
3096  ;
3097  return 0;
3098}
3099_ACEOF
3100rm -f conftest.$ac_objext
3101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102  (eval $ac_compile) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_compiler_gnu=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_compiler_gnu=no
3118fi
3119rm -f conftest.$ac_objext conftest.$ac_ext
3120ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122fi
3123echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3125GCC=`test $ac_compiler_gnu = yes && echo yes`
3126ac_test_CFLAGS=${CFLAGS+set}
3127ac_save_CFLAGS=$CFLAGS
3128CFLAGS="-g"
3129echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3130echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3131if test "${ac_cv_prog_cc_g+set}" = set; then
3132  echo $ECHO_N "(cached) $ECHO_C" >&6
3133else
3134  cat >conftest.$ac_ext <<_ACEOF
3135#line $LINENO "configure"
3136/* confdefs.h.  */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h.  */
3141
3142int
3143main ()
3144{
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152  (eval $ac_compile) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); } &&
3156         { ac_try='test -s conftest.$ac_objext'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162  ac_cv_prog_cc_g=yes
3163else
3164  echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167ac_cv_prog_cc_g=no
3168fi
3169rm -f conftest.$ac_objext conftest.$ac_ext
3170fi
3171echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3173if test "$ac_test_CFLAGS" = set; then
3174  CFLAGS=$ac_save_CFLAGS
3175elif test $ac_cv_prog_cc_g = yes; then
3176  if test "$GCC" = yes; then
3177    CFLAGS="-g -O2"
3178  else
3179    CFLAGS="-g"
3180  fi
3181else
3182  if test "$GCC" = yes; then
3183    CFLAGS="-O2"
3184  else
3185    CFLAGS=
3186  fi
3187fi
3188echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3189echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3190if test "${ac_cv_prog_cc_stdc+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  ac_cv_prog_cc_stdc=no
3194ac_save_CC=$CC
3195cat >conftest.$ac_ext <<_ACEOF
3196#line $LINENO "configure"
3197/* confdefs.h.  */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h.  */
3202#include <stdarg.h>
3203#include <stdio.h>
3204#include <sys/types.h>
3205#include <sys/stat.h>
3206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3207struct buf { int x; };
3208FILE * (*rcsopen) (struct buf *, struct stat *, int);
3209static char *e (p, i)
3210     char **p;
3211     int i;
3212{
3213  return p[i];
3214}
3215static char *f (char * (*g) (char **, int), char **p, ...)
3216{
3217  char *s;
3218  va_list v;
3219  va_start (v,p);
3220  s = g (p, va_arg (v,int));
3221  va_end (v);
3222  return s;
3223}
3224int test (int i, double x);
3225struct s1 {int (*f) (int a);};
3226struct s2 {int (*f) (double a);};
3227int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3228int argc;
3229char **argv;
3230int
3231main ()
3232{
3233return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238# Don't try gcc -ansi; that turns off useful extensions and
3239# breaks some systems' header files.
3240# AIX			-qlanglvl=ansi
3241# Ultrix and OSF/1	-std1
3242# HP-UX 10.20 and later	-Ae
3243# HP-UX older versions	-Aa -D_HPUX_SOURCE
3244# SVR4			-Xc -D__EXTENSIONS__
3245for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3246do
3247  CC="$ac_save_CC $ac_arg"
3248  rm -f conftest.$ac_objext
3249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250  (eval $ac_compile) 2>&5
3251  ac_status=$?
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); } &&
3254         { ac_try='test -s conftest.$ac_objext'
3255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256  (eval $ac_try) 2>&5
3257  ac_status=$?
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }; }; then
3260  ac_cv_prog_cc_stdc=$ac_arg
3261break
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266fi
3267rm -f conftest.$ac_objext
3268done
3269rm -f conftest.$ac_ext conftest.$ac_objext
3270CC=$ac_save_CC
3271
3272fi
3273
3274case "x$ac_cv_prog_cc_stdc" in
3275  x|xno)
3276    echo "$as_me:$LINENO: result: none needed" >&5
3277echo "${ECHO_T}none needed" >&6 ;;
3278  *)
3279    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3280echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3281    CC="$CC $ac_cv_prog_cc_stdc" ;;
3282esac
3283
3284# Some people use a C++ compiler to compile C.  Since we use `exit',
3285# in C++ we need to declare it.  In case someone uses the same compiler
3286# for both compiling C and C++ we need to have the C++ compiler decide
3287# the declaration of exit, since it's the most demanding environment.
3288cat >conftest.$ac_ext <<_ACEOF
3289@%:@ifndef __cplusplus
3290  choke me
3291@%:@endif
3292_ACEOF
3293rm -f conftest.$ac_objext
3294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295  (eval $ac_compile) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } &&
3299         { ac_try='test -s conftest.$ac_objext'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; }; then
3305  for ac_declaration in \
3306   ''\
3307   '#include <stdlib.h>' \
3308   'extern "C" void std::exit (int) throw (); using std::exit;' \
3309   'extern "C" void std::exit (int); using std::exit;' \
3310   'extern "C" void exit (int) throw ();' \
3311   'extern "C" void exit (int);' \
3312   'void exit (int);'
3313do
3314  cat >conftest.$ac_ext <<_ACEOF
3315#line $LINENO "configure"
3316/* confdefs.h.  */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h.  */
3321@%:@include <stdlib.h>
3322$ac_declaration
3323int
3324main ()
3325{
3326exit (42);
3327  ;
3328  return 0;
3329}
3330_ACEOF
3331rm -f conftest.$ac_objext
3332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333  (eval $ac_compile) 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); } &&
3337         { ac_try='test -s conftest.$ac_objext'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; }; then
3343  :
3344else
3345  echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348continue
3349fi
3350rm -f conftest.$ac_objext conftest.$ac_ext
3351  cat >conftest.$ac_ext <<_ACEOF
3352#line $LINENO "configure"
3353/* confdefs.h.  */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h.  */
3358$ac_declaration
3359int
3360main ()
3361{
3362exit (42);
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); } &&
3373         { ac_try='test -s conftest.$ac_objext'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  break
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384fi
3385rm -f conftest.$ac_objext conftest.$ac_ext
3386done
3387rm -f conftest*
3388if test -n "$ac_declaration"; then
3389  echo '#ifdef __cplusplus' >>confdefs.h
3390  echo $ac_declaration      >>confdefs.h
3391  echo '#endif'             >>confdefs.h
3392fi
3393
3394else
3395  echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398fi
3399rm -f conftest.$ac_objext conftest.$ac_ext
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406if test -n "$ac_tool_prefix"; then
3407  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3409echo "$as_me:$LINENO: checking for $ac_word" >&5
3410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411if test "${ac_cv_prog_RANLIB+set}" = set; then
3412  echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414  if test -n "$RANLIB"; then
3415  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3416else
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420  IFS=$as_save_IFS
3421  test -z "$as_dir" && as_dir=.
3422  for ac_exec_ext in '' $ac_executable_extensions; do
3423  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426    break 2
3427  fi
3428done
3429done
3430
3431fi
3432fi
3433RANLIB=$ac_cv_prog_RANLIB
3434if test -n "$RANLIB"; then
3435  echo "$as_me:$LINENO: result: $RANLIB" >&5
3436echo "${ECHO_T}$RANLIB" >&6
3437else
3438  echo "$as_me:$LINENO: result: no" >&5
3439echo "${ECHO_T}no" >&6
3440fi
3441
3442fi
3443if test -z "$ac_cv_prog_RANLIB"; then
3444  ac_ct_RANLIB=$RANLIB
3445  # Extract the first word of "ranlib", so it can be a program name with args.
3446set dummy ranlib; ac_word=$2
3447echo "$as_me:$LINENO: checking for $ac_word" >&5
3448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  if test -n "$ac_ct_RANLIB"; then
3453  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458  IFS=$as_save_IFS
3459  test -z "$as_dir" && as_dir=.
3460  for ac_exec_ext in '' $ac_executable_extensions; do
3461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462    ac_cv_prog_ac_ct_RANLIB="ranlib"
3463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464    break 2
3465  fi
3466done
3467done
3468
3469  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3470fi
3471fi
3472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473if test -n "$ac_ct_RANLIB"; then
3474  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475echo "${ECHO_T}$ac_ct_RANLIB" >&6
3476else
3477  echo "$as_me:$LINENO: result: no" >&5
3478echo "${ECHO_T}no" >&6
3479fi
3480
3481  RANLIB=$ac_ct_RANLIB
3482else
3483  RANLIB="$ac_cv_prog_RANLIB"
3484fi
3485
3486# Find a good install program.  We prefer a C program (faster),
3487# so one script is as good as another.  But avoid the broken or
3488# incompatible versions:
3489# SysV /etc/install, /usr/sbin/install
3490# SunOS /usr/etc/install
3491# IRIX /sbin/install
3492# AIX /bin/install
3493# AmigaOS /C/install, which installs bootblocks on floppy discs
3494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497# ./install, which can be erroneously created by make from ./install.sh.
3498echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3499echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3500if test -z "$INSTALL"; then
3501if test "${ac_cv_path_install+set}" = set; then
3502  echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507  IFS=$as_save_IFS
3508  test -z "$as_dir" && as_dir=.
3509  # Account for people who put trailing slashes in PATH elements.
3510case $as_dir/ in
3511  ./ | .// | /cC/* | \
3512  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3513  /usr/ucb/* ) ;;
3514  *)
3515    # OSF1 and SCO ODT 3.0 have their own names for install.
3516    # Don't use installbsd from OSF since it installs stuff as root
3517    # by default.
3518    for ac_prog in ginstall scoinst install; do
3519      for ac_exec_ext in '' $ac_executable_extensions; do
3520        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3521          if test $ac_prog = install &&
3522            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3523            # AIX install.  It has an incompatible calling convention.
3524            :
3525          elif test $ac_prog = install &&
3526            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527            # program-specific install script used by HP pwplus--don't use.
3528            :
3529          else
3530            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3531            break 3
3532          fi
3533        fi
3534      done
3535    done
3536    ;;
3537esac
3538done
3539
3540
3541fi
3542  if test "${ac_cv_path_install+set}" = set; then
3543    INSTALL=$ac_cv_path_install
3544  else
3545    # As a last resort, use the slow shell script.  We don't cache a
3546    # path for INSTALL within a source directory, because that will
3547    # break other packages using the cache if that directory is
3548    # removed, or if the path is relative.
3549    INSTALL=$ac_install_sh
3550  fi
3551fi
3552echo "$as_me:$LINENO: result: $INSTALL" >&5
3553echo "${ECHO_T}$INSTALL" >&6
3554
3555# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3556# It thinks the first close brace ends the variable substitution.
3557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3558
3559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3560
3561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3562
3563echo "$as_me:$LINENO: checking whether ln -s works" >&5
3564echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3565LN_S=$as_ln_s
3566if test "$LN_S" = "ln -s"; then
3567  echo "$as_me:$LINENO: result: yes" >&5
3568echo "${ECHO_T}yes" >&6
3569else
3570  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3571echo "${ECHO_T}no, using $LN_S" >&6
3572fi
3573
3574echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3575echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3576set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3577if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3578  echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580  cat >conftest.make <<\_ACEOF
3581all:
3582	@echo 'ac_maketemp="$(MAKE)"'
3583_ACEOF
3584# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3585eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3586if test -n "$ac_maketemp"; then
3587  eval ac_cv_prog_make_${ac_make}_set=yes
3588else
3589  eval ac_cv_prog_make_${ac_make}_set=no
3590fi
3591rm -f conftest.make
3592fi
3593if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3594  echo "$as_me:$LINENO: result: yes" >&5
3595echo "${ECHO_T}yes" >&6
3596  SET_MAKE=
3597else
3598  echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
3600  SET_MAKE="MAKE=${MAKE-make}"
3601fi
3602
3603
3604
3605ac_ext=c
3606ac_cpp='$CPP $CPPFLAGS'
3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3611echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3612# On Suns, sometimes $CPP names a directory.
3613if test -n "$CPP" && test -d "$CPP"; then
3614  CPP=
3615fi
3616if test -z "$CPP"; then
3617  if test "${ac_cv_prog_CPP+set}" = set; then
3618  echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620      # Double quotes because CPP needs to be expanded
3621    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3622    do
3623      ac_preproc_ok=false
3624for ac_c_preproc_warn_flag in '' yes
3625do
3626  # Use a header file that comes with gcc, so configuring glibc
3627  # with a fresh cross-compiler works.
3628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629  # <limits.h> exists even on freestanding compilers.
3630  # On the NeXT, cc -E runs the code through the compiler's parser,
3631  # not just through cpp. "Syntax error" is here to catch this case.
3632  cat >conftest.$ac_ext <<_ACEOF
3633#line $LINENO "configure"
3634/* confdefs.h.  */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h.  */
3639@%:@ifdef __STDC__
3640@%:@ include <limits.h>
3641@%:@else
3642@%:@ include <assert.h>
3643@%:@endif
3644                     Syntax error
3645_ACEOF
3646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3647  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3648  ac_status=$?
3649  grep -v '^ *+' conftest.er1 >conftest.err
3650  rm -f conftest.er1
3651  cat conftest.err >&5
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); } >/dev/null; then
3654  if test -s conftest.err; then
3655    ac_cpp_err=$ac_c_preproc_warn_flag
3656  else
3657    ac_cpp_err=
3658  fi
3659else
3660  ac_cpp_err=yes
3661fi
3662if test -z "$ac_cpp_err"; then
3663  :
3664else
3665  echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668  # Broken: fails on valid input.
3669continue
3670fi
3671rm -f conftest.err conftest.$ac_ext
3672
3673  # OK, works on sane cases.  Now check whether non-existent headers
3674  # can be detected and how.
3675  cat >conftest.$ac_ext <<_ACEOF
3676#line $LINENO "configure"
3677/* confdefs.h.  */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h.  */
3682@%:@include <ac_nonexistent.h>
3683_ACEOF
3684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3685  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3686  ac_status=$?
3687  grep -v '^ *+' conftest.er1 >conftest.err
3688  rm -f conftest.er1
3689  cat conftest.err >&5
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); } >/dev/null; then
3692  if test -s conftest.err; then
3693    ac_cpp_err=$ac_c_preproc_warn_flag
3694  else
3695    ac_cpp_err=
3696  fi
3697else
3698  ac_cpp_err=yes
3699fi
3700if test -z "$ac_cpp_err"; then
3701  # Broken: success on invalid input.
3702continue
3703else
3704  echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707  # Passes both tests.
3708ac_preproc_ok=:
3709break
3710fi
3711rm -f conftest.err conftest.$ac_ext
3712
3713done
3714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715rm -f conftest.err conftest.$ac_ext
3716if $ac_preproc_ok; then
3717  break
3718fi
3719
3720    done
3721    ac_cv_prog_CPP=$CPP
3722
3723fi
3724  CPP=$ac_cv_prog_CPP
3725else
3726  ac_cv_prog_CPP=$CPP
3727fi
3728echo "$as_me:$LINENO: result: $CPP" >&5
3729echo "${ECHO_T}$CPP" >&6
3730ac_preproc_ok=false
3731for ac_c_preproc_warn_flag in '' yes
3732do
3733  # Use a header file that comes with gcc, so configuring glibc
3734  # with a fresh cross-compiler works.
3735  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736  # <limits.h> exists even on freestanding compilers.
3737  # On the NeXT, cc -E runs the code through the compiler's parser,
3738  # not just through cpp. "Syntax error" is here to catch this case.
3739  cat >conftest.$ac_ext <<_ACEOF
3740#line $LINENO "configure"
3741/* confdefs.h.  */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h.  */
3746@%:@ifdef __STDC__
3747@%:@ include <limits.h>
3748@%:@else
3749@%:@ include <assert.h>
3750@%:@endif
3751                     Syntax error
3752_ACEOF
3753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3755  ac_status=$?
3756  grep -v '^ *+' conftest.er1 >conftest.err
3757  rm -f conftest.er1
3758  cat conftest.err >&5
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); } >/dev/null; then
3761  if test -s conftest.err; then
3762    ac_cpp_err=$ac_c_preproc_warn_flag
3763  else
3764    ac_cpp_err=
3765  fi
3766else
3767  ac_cpp_err=yes
3768fi
3769if test -z "$ac_cpp_err"; then
3770  :
3771else
3772  echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775  # Broken: fails on valid input.
3776continue
3777fi
3778rm -f conftest.err conftest.$ac_ext
3779
3780  # OK, works on sane cases.  Now check whether non-existent headers
3781  # can be detected and how.
3782  cat >conftest.$ac_ext <<_ACEOF
3783#line $LINENO "configure"
3784/* confdefs.h.  */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h.  */
3789@%:@include <ac_nonexistent.h>
3790_ACEOF
3791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3792  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3793  ac_status=$?
3794  grep -v '^ *+' conftest.er1 >conftest.err
3795  rm -f conftest.er1
3796  cat conftest.err >&5
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); } >/dev/null; then
3799  if test -s conftest.err; then
3800    ac_cpp_err=$ac_c_preproc_warn_flag
3801  else
3802    ac_cpp_err=
3803  fi
3804else
3805  ac_cpp_err=yes
3806fi
3807if test -z "$ac_cpp_err"; then
3808  # Broken: success on invalid input.
3809continue
3810else
3811  echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814  # Passes both tests.
3815ac_preproc_ok=:
3816break
3817fi
3818rm -f conftest.err conftest.$ac_ext
3819
3820done
3821# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3822rm -f conftest.err conftest.$ac_ext
3823if $ac_preproc_ok; then
3824  :
3825else
3826  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3827See \`config.log' for more details." >&5
3828echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3829See \`config.log' for more details." >&2;}
3830   { (exit 1); exit 1; }; }
3831fi
3832
3833ac_ext=c
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839
3840echo "$as_me:$LINENO: checking for egrep" >&5
3841echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3842if test "${ac_cv_prog_egrep+set}" = set; then
3843  echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3846    then ac_cv_prog_egrep='grep -E'
3847    else ac_cv_prog_egrep='egrep'
3848    fi
3849fi
3850echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3851echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3852 EGREP=$ac_cv_prog_egrep
3853
3854
3855
3856echo "$as_me:$LINENO: checking for AIX" >&5
3857echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3858cat >conftest.$ac_ext <<_ACEOF
3859#line $LINENO "configure"
3860/* confdefs.h.  */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h.  */
3865#ifdef _AIX
3866  yes
3867#endif
3868
3869_ACEOF
3870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871  $EGREP "yes" >/dev/null 2>&1; then
3872  echo "$as_me:$LINENO: result: yes" >&5
3873echo "${ECHO_T}yes" >&6
3874cat >>confdefs.h <<\_ACEOF
3875@%:@define _ALL_SOURCE 1
3876_ACEOF
3877
3878else
3879  echo "$as_me:$LINENO: result: no" >&5
3880echo "${ECHO_T}no" >&6
3881fi
3882rm -f conftest*
3883
3884
3885echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3886echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3887if test "${ac_cv_c_const+set}" = set; then
3888  echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890  cat >conftest.$ac_ext <<_ACEOF
3891#line $LINENO "configure"
3892/* confdefs.h.  */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h.  */
3897
3898int
3899main ()
3900{
3901/* FIXME: Include the comments suggested by Paul. */
3902#ifndef __cplusplus
3903  /* Ultrix mips cc rejects this.  */
3904  typedef int charset[2];
3905  const charset x;
3906  /* SunOS 4.1.1 cc rejects this.  */
3907  char const *const *ccp;
3908  char **p;
3909  /* NEC SVR4.0.2 mips cc rejects this.  */
3910  struct point {int x, y;};
3911  static struct point const zero = {0,0};
3912  /* AIX XL C 1.02.0.0 rejects this.
3913     It does not let you subtract one const X* pointer from another in
3914     an arm of an if-expression whose if-part is not a constant
3915     expression */
3916  const char *g = "string";
3917  ccp = &g + (g ? g-g : 0);
3918  /* HPUX 7.0 cc rejects these. */
3919  ++ccp;
3920  p = (char**) ccp;
3921  ccp = (char const *const *) p;
3922  { /* SCO 3.2v4 cc rejects this.  */
3923    char *t;
3924    char const *s = 0 ? (char *) 0 : (char const *) 0;
3925
3926    *t++ = 0;
3927  }
3928  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3929    int x[] = {25, 17};
3930    const int *foo = &x[0];
3931    ++foo;
3932  }
3933  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3934    typedef const int *iptr;
3935    iptr p = 0;
3936    ++p;
3937  }
3938  { /* AIX XL C 1.02.0.0 rejects this saying
3939       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3940    struct s { int j; const int *ap[3]; };
3941    struct s *b; b->j = 5;
3942  }
3943  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3944    const int foo = 10;
3945  }
3946#endif
3947
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952rm -f conftest.$ac_objext
3953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954  (eval $ac_compile) 2>&5
3955  ac_status=$?
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); } &&
3958         { ac_try='test -s conftest.$ac_objext'
3959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960  (eval $ac_try) 2>&5
3961  ac_status=$?
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); }; }; then
3964  ac_cv_c_const=yes
3965else
3966  echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969ac_cv_c_const=no
3970fi
3971rm -f conftest.$ac_objext conftest.$ac_ext
3972fi
3973echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3974echo "${ECHO_T}$ac_cv_c_const" >&6
3975if test $ac_cv_c_const = no; then
3976
3977cat >>confdefs.h <<\_ACEOF
3978@%:@define const
3979_ACEOF
3980
3981fi
3982
3983
3984
3985echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3986echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3987if test "${ac_cv_header_stdc+set}" = set; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  cat >conftest.$ac_ext <<_ACEOF
3991#line $LINENO "configure"
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997#include <stdlib.h>
3998#include <stdarg.h>
3999#include <string.h>
4000#include <float.h>
4001
4002int
4003main ()
4004{
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010rm -f conftest.$ac_objext
4011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012  (eval $ac_compile) 2>&5
4013  ac_status=$?
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); } &&
4016         { ac_try='test -s conftest.$ac_objext'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; }; then
4022  ac_cv_header_stdc=yes
4023else
4024  echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027ac_cv_header_stdc=no
4028fi
4029rm -f conftest.$ac_objext conftest.$ac_ext
4030
4031if test $ac_cv_header_stdc = yes; then
4032  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4033  cat >conftest.$ac_ext <<_ACEOF
4034#line $LINENO "configure"
4035/* confdefs.h.  */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h.  */
4040#include <string.h>
4041
4042_ACEOF
4043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044  $EGREP "memchr" >/dev/null 2>&1; then
4045  :
4046else
4047  ac_cv_header_stdc=no
4048fi
4049rm -f conftest*
4050
4051fi
4052
4053if test $ac_cv_header_stdc = yes; then
4054  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4055  cat >conftest.$ac_ext <<_ACEOF
4056#line $LINENO "configure"
4057/* confdefs.h.  */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h.  */
4062#include <stdlib.h>
4063
4064_ACEOF
4065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066  $EGREP "free" >/dev/null 2>&1; then
4067  :
4068else
4069  ac_cv_header_stdc=no
4070fi
4071rm -f conftest*
4072
4073fi
4074
4075if test $ac_cv_header_stdc = yes; then
4076  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4077  if test "$cross_compiling" = yes; then
4078  :
4079else
4080  cat >conftest.$ac_ext <<_ACEOF
4081#line $LINENO "configure"
4082/* confdefs.h.  */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h.  */
4087#include <ctype.h>
4088#if ((' ' & 0x0FF) == 0x020)
4089# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4090# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4091#else
4092# define ISLOWER(c) \
4093                   (('a' <= (c) && (c) <= 'i') \
4094                     || ('j' <= (c) && (c) <= 'r') \
4095                     || ('s' <= (c) && (c) <= 'z'))
4096# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4097#endif
4098
4099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4100int
4101main ()
4102{
4103  int i;
4104  for (i = 0; i < 256; i++)
4105    if (XOR (islower (i), ISLOWER (i))
4106        || toupper (i) != TOUPPER (i))
4107      exit(2);
4108  exit (0);
4109}
4110_ACEOF
4111rm -f conftest$ac_exeext
4112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113  (eval $ac_link) 2>&5
4114  ac_status=$?
4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; }; then
4122  :
4123else
4124  echo "$as_me: program exited with status $ac_status" >&5
4125echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128( exit $ac_status )
4129ac_cv_header_stdc=no
4130fi
4131rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4132fi
4133fi
4134fi
4135echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4136echo "${ECHO_T}$ac_cv_header_stdc" >&6
4137if test $ac_cv_header_stdc = yes; then
4138
4139cat >>confdefs.h <<\_ACEOF
4140@%:@define STDC_HEADERS 1
4141_ACEOF
4142
4143fi
4144
4145# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4156                  inttypes.h stdint.h unistd.h
4157do
4158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4159echo "$as_me:$LINENO: checking for $ac_header" >&5
4160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4161if eval "test \"\${$as_ac_Header+set}\" = set"; then
4162  echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164  cat >conftest.$ac_ext <<_ACEOF
4165#line $LINENO "configure"
4166/* confdefs.h.  */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h.  */
4171$ac_includes_default
4172
4173@%:@include <$ac_header>
4174_ACEOF
4175rm -f conftest.$ac_objext
4176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177  (eval $ac_compile) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); } &&
4181         { ac_try='test -s conftest.$ac_objext'
4182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183  (eval $ac_try) 2>&5
4184  ac_status=$?
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); }; }; then
4187  eval "$as_ac_Header=yes"
4188else
4189  echo "$as_me: failed program was:" >&5
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
4192eval "$as_ac_Header=no"
4193fi
4194rm -f conftest.$ac_objext conftest.$ac_ext
4195fi
4196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4198if test `eval echo '${'$as_ac_Header'}'` = yes; then
4199  cat >>confdefs.h <<_ACEOF
4200@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4201_ACEOF
4202
4203fi
4204
4205done
4206
4207
4208
4209for ac_header in unistd.h
4210do
4211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213  echo "$as_me:$LINENO: checking for $ac_header" >&5
4214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4215if eval "test \"\${$as_ac_Header+set}\" = set"; then
4216  echo $ECHO_N "(cached) $ECHO_C" >&6
4217fi
4218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4220else
4221  # Is the header compilable?
4222echo "$as_me:$LINENO: checking $ac_header usability" >&5
4223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4224cat >conftest.$ac_ext <<_ACEOF
4225#line $LINENO "configure"
4226/* confdefs.h.  */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h.  */
4231$ac_includes_default
4232@%:@include <$ac_header>
4233_ACEOF
4234rm -f conftest.$ac_objext
4235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236  (eval $ac_compile) 2>&5
4237  ac_status=$?
4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239  (exit $ac_status); } &&
4240         { ac_try='test -s conftest.$ac_objext'
4241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242  (eval $ac_try) 2>&5
4243  ac_status=$?
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); }; }; then
4246  ac_header_compiler=yes
4247else
4248  echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251ac_header_compiler=no
4252fi
4253rm -f conftest.$ac_objext conftest.$ac_ext
4254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255echo "${ECHO_T}$ac_header_compiler" >&6
4256
4257# Is the header present?
4258echo "$as_me:$LINENO: checking $ac_header presence" >&5
4259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260cat >conftest.$ac_ext <<_ACEOF
4261#line $LINENO "configure"
4262/* confdefs.h.  */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h.  */
4267@%:@include <$ac_header>
4268_ACEOF
4269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4271  ac_status=$?
4272  grep -v '^ *+' conftest.er1 >conftest.err
4273  rm -f conftest.er1
4274  cat conftest.err >&5
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); } >/dev/null; then
4277  if test -s conftest.err; then
4278    ac_cpp_err=$ac_c_preproc_warn_flag
4279  else
4280    ac_cpp_err=
4281  fi
4282else
4283  ac_cpp_err=yes
4284fi
4285if test -z "$ac_cpp_err"; then
4286  ac_header_preproc=yes
4287else
4288  echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291  ac_header_preproc=no
4292fi
4293rm -f conftest.err conftest.$ac_ext
4294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4295echo "${ECHO_T}$ac_header_preproc" >&6
4296
4297# So?  What about this header?
4298case $ac_header_compiler:$ac_header_preproc in
4299  yes:no )
4300    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4304    (
4305      cat <<\_ASBOX
4306@%:@@%:@ ------------------------------------ @%:@@%:@
4307@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4308@%:@@%:@ ------------------------------------ @%:@@%:@
4309_ASBOX
4310    ) |
4311      sed "s/^/$as_me: WARNING:     /" >&2
4312    ;;
4313  no:yes )
4314    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4316    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4317echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4318    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4320    (
4321      cat <<\_ASBOX
4322@%:@@%:@ ------------------------------------ @%:@@%:@
4323@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4324@%:@@%:@ ------------------------------------ @%:@@%:@
4325_ASBOX
4326    ) |
4327      sed "s/^/$as_me: WARNING:     /" >&2
4328    ;;
4329esac
4330echo "$as_me:$LINENO: checking for $ac_header" >&5
4331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333  echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335  eval "$as_ac_Header=$ac_header_preproc"
4336fi
4337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4339
4340fi
4341if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342  cat >>confdefs.h <<_ACEOF
4343@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344_ACEOF
4345
4346fi
4347
4348done
4349
4350echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4351echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4352if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4353  echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
4355  cat >conftest.$ac_ext <<_ACEOF
4356#line $LINENO "configure"
4357/* confdefs.h.  */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h.  */
4362@%:@include <sys/types.h>
4363int
4364main ()
4365{
4366return makedev(0, 0);
4367  ;
4368  return 0;
4369}
4370_ACEOF
4371rm -f conftest.$ac_objext conftest$ac_exeext
4372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373  (eval $ac_link) 2>&5
4374  ac_status=$?
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); } &&
4377         { ac_try='test -s conftest$ac_exeext'
4378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379  (eval $ac_try) 2>&5
4380  ac_status=$?
4381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382  (exit $ac_status); }; }; then
4383  ac_cv_header_sys_types_h_makedev=yes
4384else
4385  echo "$as_me: failed program was:" >&5
4386sed 's/^/| /' conftest.$ac_ext >&5
4387
4388ac_cv_header_sys_types_h_makedev=no
4389fi
4390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4391
4392fi
4393echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4394echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4395
4396if test $ac_cv_header_sys_types_h_makedev = no; then
4397if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4398  echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4399echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4400if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402fi
4403echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4404echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4405else
4406  # Is the header compilable?
4407echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4408echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4409cat >conftest.$ac_ext <<_ACEOF
4410#line $LINENO "configure"
4411/* confdefs.h.  */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h.  */
4416$ac_includes_default
4417@%:@include <sys/mkdev.h>
4418_ACEOF
4419rm -f conftest.$ac_objext
4420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421  (eval $ac_compile) 2>&5
4422  ac_status=$?
4423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424  (exit $ac_status); } &&
4425         { ac_try='test -s conftest.$ac_objext'
4426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427  (eval $ac_try) 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); }; }; then
4431  ac_header_compiler=yes
4432else
4433  echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
4436ac_header_compiler=no
4437fi
4438rm -f conftest.$ac_objext conftest.$ac_ext
4439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440echo "${ECHO_T}$ac_header_compiler" >&6
4441
4442# Is the header present?
4443echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4444echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4445cat >conftest.$ac_ext <<_ACEOF
4446#line $LINENO "configure"
4447/* confdefs.h.  */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h.  */
4452@%:@include <sys/mkdev.h>
4453_ACEOF
4454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } >/dev/null; then
4462  if test -s conftest.err; then
4463    ac_cpp_err=$ac_c_preproc_warn_flag
4464  else
4465    ac_cpp_err=
4466  fi
4467else
4468  ac_cpp_err=yes
4469fi
4470if test -z "$ac_cpp_err"; then
4471  ac_header_preproc=yes
4472else
4473  echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476  ac_header_preproc=no
4477fi
4478rm -f conftest.err conftest.$ac_ext
4479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4480echo "${ECHO_T}$ac_header_preproc" >&6
4481
4482# So?  What about this header?
4483case $ac_header_compiler:$ac_header_preproc in
4484  yes:no )
4485    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4486echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4487    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4488echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4489    (
4490      cat <<\_ASBOX
4491@%:@@%:@ ------------------------------------ @%:@@%:@
4492@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4493@%:@@%:@ ------------------------------------ @%:@@%:@
4494_ASBOX
4495    ) |
4496      sed "s/^/$as_me: WARNING:     /" >&2
4497    ;;
4498  no:yes )
4499    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4500echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4501    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4502echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4503    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4504echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4505    (
4506      cat <<\_ASBOX
4507@%:@@%:@ ------------------------------------ @%:@@%:@
4508@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4509@%:@@%:@ ------------------------------------ @%:@@%:@
4510_ASBOX
4511    ) |
4512      sed "s/^/$as_me: WARNING:     /" >&2
4513    ;;
4514esac
4515echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4516echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4517if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  ac_cv_header_sys_mkdev_h=$ac_header_preproc
4521fi
4522echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4523echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4524
4525fi
4526if test $ac_cv_header_sys_mkdev_h = yes; then
4527
4528cat >>confdefs.h <<\_ACEOF
4529@%:@define MAJOR_IN_MKDEV 1
4530_ACEOF
4531
4532fi
4533
4534
4535
4536  if test $ac_cv_header_sys_mkdev_h = no; then
4537    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4538  echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4539echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4540if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4541  echo $ECHO_N "(cached) $ECHO_C" >&6
4542fi
4543echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4544echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4545else
4546  # Is the header compilable?
4547echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4548echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4549cat >conftest.$ac_ext <<_ACEOF
4550#line $LINENO "configure"
4551/* confdefs.h.  */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h.  */
4556$ac_includes_default
4557@%:@include <sys/sysmacros.h>
4558_ACEOF
4559rm -f conftest.$ac_objext
4560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561  (eval $ac_compile) 2>&5
4562  ac_status=$?
4563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); } &&
4565         { ac_try='test -s conftest.$ac_objext'
4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567  (eval $ac_try) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }; }; then
4571  ac_header_compiler=yes
4572else
4573  echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576ac_header_compiler=no
4577fi
4578rm -f conftest.$ac_objext conftest.$ac_ext
4579echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4580echo "${ECHO_T}$ac_header_compiler" >&6
4581
4582# Is the header present?
4583echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4584echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4585cat >conftest.$ac_ext <<_ACEOF
4586#line $LINENO "configure"
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592@%:@include <sys/sysmacros.h>
4593_ACEOF
4594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596  ac_status=$?
4597  grep -v '^ *+' conftest.er1 >conftest.err
4598  rm -f conftest.er1
4599  cat conftest.err >&5
4600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601  (exit $ac_status); } >/dev/null; then
4602  if test -s conftest.err; then
4603    ac_cpp_err=$ac_c_preproc_warn_flag
4604  else
4605    ac_cpp_err=
4606  fi
4607else
4608  ac_cpp_err=yes
4609fi
4610if test -z "$ac_cpp_err"; then
4611  ac_header_preproc=yes
4612else
4613  echo "$as_me: failed program was:" >&5
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616  ac_header_preproc=no
4617fi
4618rm -f conftest.err conftest.$ac_ext
4619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4620echo "${ECHO_T}$ac_header_preproc" >&6
4621
4622# So?  What about this header?
4623case $ac_header_compiler:$ac_header_preproc in
4624  yes:no )
4625    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4626echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4627    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4628echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4629    (
4630      cat <<\_ASBOX
4631@%:@@%:@ ------------------------------------ @%:@@%:@
4632@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4633@%:@@%:@ ------------------------------------ @%:@@%:@
4634_ASBOX
4635    ) |
4636      sed "s/^/$as_me: WARNING:     /" >&2
4637    ;;
4638  no:yes )
4639    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4640echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4641    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4642echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4643    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4644echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4645    (
4646      cat <<\_ASBOX
4647@%:@@%:@ ------------------------------------ @%:@@%:@
4648@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4649@%:@@%:@ ------------------------------------ @%:@@%:@
4650_ASBOX
4651    ) |
4652      sed "s/^/$as_me: WARNING:     /" >&2
4653    ;;
4654esac
4655echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4656echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4657if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4661fi
4662echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4663echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4664
4665fi
4666if test $ac_cv_header_sys_sysmacros_h = yes; then
4667
4668cat >>confdefs.h <<\_ACEOF
4669@%:@define MAJOR_IN_SYSMACROS 1
4670_ACEOF
4671
4672fi
4673
4674
4675  fi
4676fi
4677
4678echo "$as_me:$LINENO: checking for major_t" >&5
4679echo $ECHO_N "checking for major_t... $ECHO_C" >&6
4680if test "${ac_cv_type_major_t+set}" = set; then
4681  echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683  cat >conftest.$ac_ext <<_ACEOF
4684#line $LINENO "configure"
4685/* confdefs.h.  */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h.  */
4690#include <sys/types.h>
4691  #ifdef MAJOR_IN_MKDEV
4692  # include <sys/mkdev.h>
4693  #else
4694  # ifdef MAJOR_IN_SYSMACROS
4695  #  include <sys/sysmacros.h>
4696  # endif
4697  #endif
4698
4699
4700
4701int
4702main ()
4703{
4704if ((major_t *) 0)
4705  return 0;
4706if (sizeof (major_t))
4707  return 0;
4708  ;
4709  return 0;
4710}
4711_ACEOF
4712rm -f conftest.$ac_objext
4713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714  (eval $ac_compile) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } &&
4718         { ac_try='test -s conftest.$ac_objext'
4719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720  (eval $ac_try) 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; }; then
4724  ac_cv_type_major_t=yes
4725else
4726  echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729ac_cv_type_major_t=no
4730fi
4731rm -f conftest.$ac_objext conftest.$ac_ext
4732fi
4733echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
4734echo "${ECHO_T}$ac_cv_type_major_t" >&6
4735if test $ac_cv_type_major_t = yes; then
4736
4737cat >>confdefs.h <<_ACEOF
4738@%:@define HAVE_MAJOR_T 1
4739_ACEOF
4740
4741
4742else
4743
4744cat >>confdefs.h <<\_ACEOF
4745@%:@define major_t unsigned int
4746_ACEOF
4747
4748fi
4749
4750
4751echo "$as_me:$LINENO: checking for minor_t" >&5
4752echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
4753if test "${ac_cv_type_minor_t+set}" = set; then
4754  echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756  cat >conftest.$ac_ext <<_ACEOF
4757#line $LINENO "configure"
4758/* confdefs.h.  */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h.  */
4763#include <sys/types.h>
4764  #ifdef MAJOR_IN_MKDEV
4765  # include <sys/mkdev.h>
4766  #else
4767  # ifdef MAJOR_IN_SYSMACROS
4768  #  include <sys/sysmacros.h>
4769  # endif
4770  #endif
4771
4772
4773
4774int
4775main ()
4776{
4777if ((minor_t *) 0)
4778  return 0;
4779if (sizeof (minor_t))
4780  return 0;
4781  ;
4782  return 0;
4783}
4784_ACEOF
4785rm -f conftest.$ac_objext
4786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787  (eval $ac_compile) 2>&5
4788  ac_status=$?
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); } &&
4791         { ac_try='test -s conftest.$ac_objext'
4792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793  (eval $ac_try) 2>&5
4794  ac_status=$?
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); }; }; then
4797  ac_cv_type_minor_t=yes
4798else
4799  echo "$as_me: failed program was:" >&5
4800sed 's/^/| /' conftest.$ac_ext >&5
4801
4802ac_cv_type_minor_t=no
4803fi
4804rm -f conftest.$ac_objext conftest.$ac_ext
4805fi
4806echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
4807echo "${ECHO_T}$ac_cv_type_minor_t" >&6
4808if test $ac_cv_type_minor_t = yes; then
4809
4810cat >>confdefs.h <<_ACEOF
4811@%:@define HAVE_MINOR_T 1
4812_ACEOF
4813
4814
4815else
4816
4817cat >>confdefs.h <<\_ACEOF
4818@%:@define minor_t unsigned int
4819_ACEOF
4820
4821fi
4822
4823
4824echo "$as_me:$LINENO: checking for dev_t" >&5
4825echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
4826if test "${ac_cv_type_dev_t+set}" = set; then
4827  echo $ECHO_N "(cached) $ECHO_C" >&6
4828else
4829  cat >conftest.$ac_ext <<_ACEOF
4830#line $LINENO "configure"
4831/* confdefs.h.  */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h.  */
4836#include <sys/types.h>
4837  #ifdef MAJOR_IN_MKDEV
4838  # include <sys/mkdev.h>
4839  #else
4840  # ifdef MAJOR_IN_SYSMACROS
4841  #  include <sys/sysmacros.h>
4842  # endif
4843  #endif
4844
4845
4846
4847int
4848main ()
4849{
4850if ((dev_t *) 0)
4851  return 0;
4852if (sizeof (dev_t))
4853  return 0;
4854  ;
4855  return 0;
4856}
4857_ACEOF
4858rm -f conftest.$ac_objext
4859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860  (eval $ac_compile) 2>&5
4861  ac_status=$?
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); } &&
4864         { ac_try='test -s conftest.$ac_objext'
4865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866  (eval $ac_try) 2>&5
4867  ac_status=$?
4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869  (exit $ac_status); }; }; then
4870  ac_cv_type_dev_t=yes
4871else
4872  echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875ac_cv_type_dev_t=no
4876fi
4877rm -f conftest.$ac_objext conftest.$ac_ext
4878fi
4879echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
4880echo "${ECHO_T}$ac_cv_type_dev_t" >&6
4881if test $ac_cv_type_dev_t = yes; then
4882
4883cat >>confdefs.h <<_ACEOF
4884@%:@define HAVE_DEV_T 1
4885_ACEOF
4886
4887
4888else
4889
4890cat >>confdefs.h <<\_ACEOF
4891@%:@define dev_t unsigned long
4892_ACEOF
4893
4894fi
4895
4896
4897echo "$as_me:$LINENO: checking for socklen_t" >&5
4898echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4899if test "${ac_cv_type_socklen_t+set}" = set; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  cat >conftest.$ac_ext <<_ACEOF
4903#line $LINENO "configure"
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <sys/types.h>
4910  #include <sys/socket.h>
4911
4912
4913
4914int
4915main ()
4916{
4917if ((socklen_t *) 0)
4918  return 0;
4919if (sizeof (socklen_t))
4920  return 0;
4921  ;
4922  return 0;
4923}
4924_ACEOF
4925rm -f conftest.$ac_objext
4926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927  (eval $ac_compile) 2>&5
4928  ac_status=$?
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); } &&
4931         { ac_try='test -s conftest.$ac_objext'
4932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933  (eval $ac_try) 2>&5
4934  ac_status=$?
4935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936  (exit $ac_status); }; }; then
4937  ac_cv_type_socklen_t=yes
4938else
4939  echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942ac_cv_type_socklen_t=no
4943fi
4944rm -f conftest.$ac_objext conftest.$ac_ext
4945fi
4946echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4947echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4948if test $ac_cv_type_socklen_t = yes; then
4949
4950cat >>confdefs.h <<_ACEOF
4951@%:@define HAVE_SOCKLEN_T 1
4952_ACEOF
4953
4954
4955else
4956
4957cat >>confdefs.h <<\_ACEOF
4958@%:@define socklen_t unsigned long
4959_ACEOF
4960
4961fi
4962
4963
4964echo "$as_me:$LINENO: checking for uint64_t" >&5
4965echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4966if test "${ac_cv_type_uint64_t+set}" = set; then
4967  echo $ECHO_N "(cached) $ECHO_C" >&6
4968else
4969  cat >conftest.$ac_ext <<_ACEOF
4970#line $LINENO "configure"
4971/* confdefs.h.  */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h.  */
4976$ac_includes_default
4977int
4978main ()
4979{
4980if ((uint64_t *) 0)
4981  return 0;
4982if (sizeof (uint64_t))
4983  return 0;
4984  ;
4985  return 0;
4986}
4987_ACEOF
4988rm -f conftest.$ac_objext
4989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990  (eval $ac_compile) 2>&5
4991  ac_status=$?
4992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); } &&
4994         { ac_try='test -s conftest.$ac_objext'
4995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996  (eval $ac_try) 2>&5
4997  ac_status=$?
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); }; }; then
5000  ac_cv_type_uint64_t=yes
5001else
5002  echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005ac_cv_type_uint64_t=no
5006fi
5007rm -f conftest.$ac_objext conftest.$ac_ext
5008fi
5009echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5010echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5011if test $ac_cv_type_uint64_t = yes; then
5012
5013cat >>confdefs.h <<_ACEOF
5014@%:@define HAVE_UINT64_T 1
5015_ACEOF
5016
5017
5018else
5019
5020cat >>confdefs.h <<\_ACEOF
5021@%:@define uint64_t long long
5022_ACEOF
5023
5024fi
5025
5026
5027echo "$as_me:$LINENO: checking for mode_t" >&5
5028echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5029if test "${ac_cv_type_mode_t+set}" = set; then
5030  echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032  cat >conftest.$ac_ext <<_ACEOF
5033#line $LINENO "configure"
5034/* confdefs.h.  */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h.  */
5039$ac_includes_default
5040int
5041main ()
5042{
5043if ((mode_t *) 0)
5044  return 0;
5045if (sizeof (mode_t))
5046  return 0;
5047  ;
5048  return 0;
5049}
5050_ACEOF
5051rm -f conftest.$ac_objext
5052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053  (eval $ac_compile) 2>&5
5054  ac_status=$?
5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056  (exit $ac_status); } &&
5057         { ac_try='test -s conftest.$ac_objext'
5058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059  (eval $ac_try) 2>&5
5060  ac_status=$?
5061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062  (exit $ac_status); }; }; then
5063  ac_cv_type_mode_t=yes
5064else
5065  echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068ac_cv_type_mode_t=no
5069fi
5070rm -f conftest.$ac_objext conftest.$ac_ext
5071fi
5072echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5073echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5074if test $ac_cv_type_mode_t = yes; then
5075  :
5076else
5077
5078cat >>confdefs.h <<_ACEOF
5079@%:@define mode_t int
5080_ACEOF
5081
5082fi
5083
5084echo "$as_me:$LINENO: checking for off_t" >&5
5085echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5086if test "${ac_cv_type_off_t+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  cat >conftest.$ac_ext <<_ACEOF
5090#line $LINENO "configure"
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096$ac_includes_default
5097int
5098main ()
5099{
5100if ((off_t *) 0)
5101  return 0;
5102if (sizeof (off_t))
5103  return 0;
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext
5109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110  (eval $ac_compile) 2>&5
5111  ac_status=$?
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); } &&
5114         { ac_try='test -s conftest.$ac_objext'
5115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116  (eval $ac_try) 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); }; }; then
5120  ac_cv_type_off_t=yes
5121else
5122  echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
5125ac_cv_type_off_t=no
5126fi
5127rm -f conftest.$ac_objext conftest.$ac_ext
5128fi
5129echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5130echo "${ECHO_T}$ac_cv_type_off_t" >&6
5131if test $ac_cv_type_off_t = yes; then
5132  :
5133else
5134
5135cat >>confdefs.h <<_ACEOF
5136@%:@define off_t long
5137_ACEOF
5138
5139fi
5140
5141echo "$as_me:$LINENO: checking for size_t" >&5
5142echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5143if test "${ac_cv_type_size_t+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  cat >conftest.$ac_ext <<_ACEOF
5147#line $LINENO "configure"
5148/* confdefs.h.  */
5149_ACEOF
5150cat confdefs.h >>conftest.$ac_ext
5151cat >>conftest.$ac_ext <<_ACEOF
5152/* end confdefs.h.  */
5153$ac_includes_default
5154int
5155main ()
5156{
5157if ((size_t *) 0)
5158  return 0;
5159if (sizeof (size_t))
5160  return 0;
5161  ;
5162  return 0;
5163}
5164_ACEOF
5165rm -f conftest.$ac_objext
5166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167  (eval $ac_compile) 2>&5
5168  ac_status=$?
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); } &&
5171         { ac_try='test -s conftest.$ac_objext'
5172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173  (eval $ac_try) 2>&5
5174  ac_status=$?
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); }; }; then
5177  ac_cv_type_size_t=yes
5178else
5179  echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182ac_cv_type_size_t=no
5183fi
5184rm -f conftest.$ac_objext conftest.$ac_ext
5185fi
5186echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5187echo "${ECHO_T}$ac_cv_type_size_t" >&6
5188if test $ac_cv_type_size_t = yes; then
5189  :
5190else
5191
5192cat >>confdefs.h <<_ACEOF
5193@%:@define size_t unsigned
5194_ACEOF
5195
5196fi
5197
5198echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5199echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5200if test "${ac_cv_type_uid_t+set}" = set; then
5201  echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203  cat >conftest.$ac_ext <<_ACEOF
5204#line $LINENO "configure"
5205/* confdefs.h.  */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h.  */
5210#include <sys/types.h>
5211
5212_ACEOF
5213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5214  $EGREP "uid_t" >/dev/null 2>&1; then
5215  ac_cv_type_uid_t=yes
5216else
5217  ac_cv_type_uid_t=no
5218fi
5219rm -f conftest*
5220
5221fi
5222echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5223echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5224if test $ac_cv_type_uid_t = no; then
5225
5226cat >>confdefs.h <<\_ACEOF
5227@%:@define uid_t int
5228_ACEOF
5229
5230
5231cat >>confdefs.h <<\_ACEOF
5232@%:@define gid_t int
5233_ACEOF
5234
5235fi
5236
5237echo "$as_me:$LINENO: checking for nlink_t" >&5
5238echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6
5239if test "${ac_cv_type_nlink_t+set}" = set; then
5240  echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242  cat >conftest.$ac_ext <<_ACEOF
5243#line $LINENO "configure"
5244/* confdefs.h.  */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h.  */
5249$ac_includes_default
5250int
5251main ()
5252{
5253if ((nlink_t *) 0)
5254  return 0;
5255if (sizeof (nlink_t))
5256  return 0;
5257  ;
5258  return 0;
5259}
5260_ACEOF
5261rm -f conftest.$ac_objext
5262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263  (eval $ac_compile) 2>&5
5264  ac_status=$?
5265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266  (exit $ac_status); } &&
5267         { ac_try='test -s conftest.$ac_objext'
5268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269  (eval $ac_try) 2>&5
5270  ac_status=$?
5271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272  (exit $ac_status); }; }; then
5273  ac_cv_type_nlink_t=yes
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278ac_cv_type_nlink_t=no
5279fi
5280rm -f conftest.$ac_objext conftest.$ac_ext
5281fi
5282echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
5283echo "${ECHO_T}$ac_cv_type_nlink_t" >&6
5284if test $ac_cv_type_nlink_t = yes; then
5285
5286cat >>confdefs.h <<_ACEOF
5287@%:@define HAVE_NLINK_T 1
5288_ACEOF
5289
5290
5291else
5292
5293cat >>confdefs.h <<\_ACEOF
5294@%:@define nlink_t unsigned short
5295_ACEOF
5296
5297fi
5298
5299
5300
5301
5302
5303
5304cat >>confdefs.h <<\_ACEOF
5305@%:@define NEED_BASENAME 1
5306_ACEOF
5307
5308
5309for ac_header in libgen.h
5310do
5311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313  echo "$as_me:$LINENO: checking for $ac_header" >&5
5314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5315if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316  echo $ECHO_N "(cached) $ECHO_C" >&6
5317fi
5318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5320else
5321  # Is the header compilable?
5322echo "$as_me:$LINENO: checking $ac_header usability" >&5
5323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5324cat >conftest.$ac_ext <<_ACEOF
5325#line $LINENO "configure"
5326/* confdefs.h.  */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h.  */
5331$ac_includes_default
5332@%:@include <$ac_header>
5333_ACEOF
5334rm -f conftest.$ac_objext
5335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336  (eval $ac_compile) 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); } &&
5340         { ac_try='test -s conftest.$ac_objext'
5341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342  (eval $ac_try) 2>&5
5343  ac_status=$?
5344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345  (exit $ac_status); }; }; then
5346  ac_header_compiler=yes
5347else
5348  echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351ac_header_compiler=no
5352fi
5353rm -f conftest.$ac_objext conftest.$ac_ext
5354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355echo "${ECHO_T}$ac_header_compiler" >&6
5356
5357# Is the header present?
5358echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360cat >conftest.$ac_ext <<_ACEOF
5361#line $LINENO "configure"
5362/* confdefs.h.  */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h.  */
5367@%:@include <$ac_header>
5368_ACEOF
5369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371  ac_status=$?
5372  grep -v '^ *+' conftest.er1 >conftest.err
5373  rm -f conftest.er1
5374  cat conftest.err >&5
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); } >/dev/null; then
5377  if test -s conftest.err; then
5378    ac_cpp_err=$ac_c_preproc_warn_flag
5379  else
5380    ac_cpp_err=
5381  fi
5382else
5383  ac_cpp_err=yes
5384fi
5385if test -z "$ac_cpp_err"; then
5386  ac_header_preproc=yes
5387else
5388  echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
5391  ac_header_preproc=no
5392fi
5393rm -f conftest.err conftest.$ac_ext
5394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395echo "${ECHO_T}$ac_header_preproc" >&6
5396
5397# So?  What about this header?
5398case $ac_header_compiler:$ac_header_preproc in
5399  yes:no )
5400    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5404    (
5405      cat <<\_ASBOX
5406@%:@@%:@ ------------------------------------ @%:@@%:@
5407@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5408@%:@@%:@ ------------------------------------ @%:@@%:@
5409_ASBOX
5410    ) |
5411      sed "s/^/$as_me: WARNING:     /" >&2
5412    ;;
5413  no:yes )
5414    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5415echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5416    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5417echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420    (
5421      cat <<\_ASBOX
5422@%:@@%:@ ------------------------------------ @%:@@%:@
5423@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5424@%:@@%:@ ------------------------------------ @%:@@%:@
5425_ASBOX
5426    ) |
5427      sed "s/^/$as_me: WARNING:     /" >&2
5428    ;;
5429esac
5430echo "$as_me:$LINENO: checking for $ac_header" >&5
5431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433  echo $ECHO_N "(cached) $ECHO_C" >&6
5434else
5435  eval "$as_ac_Header=$ac_header_preproc"
5436fi
5437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5439
5440fi
5441if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442  cat >>confdefs.h <<_ACEOF
5443@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5444_ACEOF
5445
5446fi
5447
5448done
5449
5450  echo "$as_me:$LINENO: checking for working basename" >&5
5451echo $ECHO_N "checking for working basename... $ECHO_C" >&6
5452if test "${compat_cv_func_basename_works+set}" = set; then
5453  echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455  if test "$cross_compiling" = yes; then
5456  compat_cv_func_basename_works=no
5457
5458else
5459  cat >conftest.$ac_ext <<_ACEOF
5460#line $LINENO "configure"
5461/* confdefs.h.  */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h.  */
5466
5467#include <stdio.h>
5468#ifdef HAVE_LIBGEN_H
5469# include <libgen.h>
5470#endif
5471
5472typedef struct {
5473  char *test;
5474  char *result;
5475} test_t;
5476
5477const test_t tests[] = {
5478  { "/usr/local/foo", "foo" },
5479  { "/usr/local/foo/", "foo" },
5480  { NULL, NULL }
5481};
5482
5483int main() {
5484  char test1[1024];
5485  int i;
5486
5487  for (i = 0; tests[i].test; i++) {
5488    strcpy(test1, tests[i].test);
5489    if (strcmp(basename(test1), tests[i].result) ||
5490        strcmp(test1, tests[i].test))
5491      exit(1);
5492  }
5493
5494  exit(0);
5495}
5496
5497_ACEOF
5498rm -f conftest$ac_exeext
5499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500  (eval $ac_link) 2>&5
5501  ac_status=$?
5502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505  (eval $ac_try) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; }; then
5509  compat_cv_func_basename_works=yes
5510else
5511  echo "$as_me: program exited with status $ac_status" >&5
5512echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515( exit $ac_status )
5516compat_cv_func_basename_works=no
5517fi
5518rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5519fi
5520
5521fi
5522echo "$as_me:$LINENO: result: $compat_cv_func_basename_works" >&5
5523echo "${ECHO_T}$compat_cv_func_basename_works" >&6
5524  if test "$compat_cv_func_basename_works" = "yes"; then
5525
5526cat >>confdefs.h <<\_ACEOF
5527@%:@define HAVE_BASENAME 1
5528_ACEOF
5529
5530  else
5531    LIB@&t@OBJS="$LIB@&t@OBJS basename.$ac_objext"
5532  fi
5533
5534
5535
5536cat >>confdefs.h <<\_ACEOF
5537@%:@define NEED_DIRNAME 1
5538_ACEOF
5539
5540
5541for ac_header in libgen.h
5542do
5543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544if eval "test \"\${$as_ac_Header+set}\" = set"; then
5545  echo "$as_me:$LINENO: checking for $ac_header" >&5
5546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5547if eval "test \"\${$as_ac_Header+set}\" = set"; then
5548  echo $ECHO_N "(cached) $ECHO_C" >&6
5549fi
5550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5552else
5553  # Is the header compilable?
5554echo "$as_me:$LINENO: checking $ac_header usability" >&5
5555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5556cat >conftest.$ac_ext <<_ACEOF
5557#line $LINENO "configure"
5558/* confdefs.h.  */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h.  */
5563$ac_includes_default
5564@%:@include <$ac_header>
5565_ACEOF
5566rm -f conftest.$ac_objext
5567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568  (eval $ac_compile) 2>&5
5569  ac_status=$?
5570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); } &&
5572         { ac_try='test -s conftest.$ac_objext'
5573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574  (eval $ac_try) 2>&5
5575  ac_status=$?
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); }; }; then
5578  ac_header_compiler=yes
5579else
5580  echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583ac_header_compiler=no
5584fi
5585rm -f conftest.$ac_objext conftest.$ac_ext
5586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5587echo "${ECHO_T}$ac_header_compiler" >&6
5588
5589# Is the header present?
5590echo "$as_me:$LINENO: checking $ac_header presence" >&5
5591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5592cat >conftest.$ac_ext <<_ACEOF
5593#line $LINENO "configure"
5594/* confdefs.h.  */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h.  */
5599@%:@include <$ac_header>
5600_ACEOF
5601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5602  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5603  ac_status=$?
5604  grep -v '^ *+' conftest.er1 >conftest.err
5605  rm -f conftest.er1
5606  cat conftest.err >&5
5607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608  (exit $ac_status); } >/dev/null; then
5609  if test -s conftest.err; then
5610    ac_cpp_err=$ac_c_preproc_warn_flag
5611  else
5612    ac_cpp_err=
5613  fi
5614else
5615  ac_cpp_err=yes
5616fi
5617if test -z "$ac_cpp_err"; then
5618  ac_header_preproc=yes
5619else
5620  echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623  ac_header_preproc=no
5624fi
5625rm -f conftest.err conftest.$ac_ext
5626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5627echo "${ECHO_T}$ac_header_preproc" >&6
5628
5629# So?  What about this header?
5630case $ac_header_compiler:$ac_header_preproc in
5631  yes:no )
5632    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5634    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5636    (
5637      cat <<\_ASBOX
5638@%:@@%:@ ------------------------------------ @%:@@%:@
5639@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5640@%:@@%:@ ------------------------------------ @%:@@%:@
5641_ASBOX
5642    ) |
5643      sed "s/^/$as_me: WARNING:     /" >&2
5644    ;;
5645  no:yes )
5646    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5648    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5652    (
5653      cat <<\_ASBOX
5654@%:@@%:@ ------------------------------------ @%:@@%:@
5655@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5656@%:@@%:@ ------------------------------------ @%:@@%:@
5657_ASBOX
5658    ) |
5659      sed "s/^/$as_me: WARNING:     /" >&2
5660    ;;
5661esac
5662echo "$as_me:$LINENO: checking for $ac_header" >&5
5663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5664if eval "test \"\${$as_ac_Header+set}\" = set"; then
5665  echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667  eval "$as_ac_Header=$ac_header_preproc"
5668fi
5669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671
5672fi
5673if test `eval echo '${'$as_ac_Header'}'` = yes; then
5674  cat >>confdefs.h <<_ACEOF
5675@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5676_ACEOF
5677
5678fi
5679
5680done
5681
5682  echo "$as_me:$LINENO: checking for working dirname" >&5
5683echo $ECHO_N "checking for working dirname... $ECHO_C" >&6
5684if test "${compat_cv_func_dirname_works+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  if test "$cross_compiling" = yes; then
5688  compat_cv_func_dirname_works=no
5689
5690else
5691  cat >conftest.$ac_ext <<_ACEOF
5692#line $LINENO "configure"
5693/* confdefs.h.  */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h.  */
5698
5699#include <stdio.h>
5700#ifdef HAVE_LIBGEN_H
5701# include <libgen.h>
5702#endif
5703
5704typedef struct {
5705  char *test;
5706  char *result;
5707} test_t;
5708
5709const test_t tests[] = {
5710  { "foobar", "." },
5711  { "/usr/local/foo", "/usr/local" },
5712  { "/usr/local/foo/", "/usr/local" },
5713  { "/", "/" },
5714  { "", "." },
5715  { NULL, NULL }
5716};
5717
5718int main() {
5719  char test1[1024];
5720  int i;
5721
5722  for (i = 0; tests[i].test; i++) {
5723    strcpy(test1, tests[i].test);
5724    if (strcmp(dirname(test1), tests[i].result) ||
5725        strcmp(test1, tests[i].test))
5726      exit(1);
5727  }
5728
5729  exit(0);
5730}
5731
5732_ACEOF
5733rm -f conftest$ac_exeext
5734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735  (eval $ac_link) 2>&5
5736  ac_status=$?
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740  (eval $ac_try) 2>&5
5741  ac_status=$?
5742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743  (exit $ac_status); }; }; then
5744  compat_cv_func_dirname_works=yes
5745else
5746  echo "$as_me: program exited with status $ac_status" >&5
5747echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750( exit $ac_status )
5751compat_cv_func_dirname_works=no
5752fi
5753rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5754fi
5755
5756fi
5757echo "$as_me:$LINENO: result: $compat_cv_func_dirname_works" >&5
5758echo "${ECHO_T}$compat_cv_func_dirname_works" >&6
5759  if test "$compat_cv_func_dirname_works" = "yes"; then
5760
5761cat >>confdefs.h <<\_ACEOF
5762@%:@define HAVE_DIRNAME 1
5763_ACEOF
5764
5765  else
5766    LIB@&t@OBJS="$LIB@&t@OBJS dirname.$ac_objext"
5767  fi
5768
5769
5770
5771cat >>confdefs.h <<\_ACEOF
5772@%:@define NEED_FNMATCH 1
5773_ACEOF
5774
5775
5776for ac_header in fnmatch.h
5777do
5778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780  echo "$as_me:$LINENO: checking for $ac_header" >&5
5781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784fi
5785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5787else
5788  # Is the header compilable?
5789echo "$as_me:$LINENO: checking $ac_header usability" >&5
5790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5791cat >conftest.$ac_ext <<_ACEOF
5792#line $LINENO "configure"
5793/* confdefs.h.  */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h.  */
5798$ac_includes_default
5799@%:@include <$ac_header>
5800_ACEOF
5801rm -f conftest.$ac_objext
5802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803  (eval $ac_compile) 2>&5
5804  ac_status=$?
5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); } &&
5807         { ac_try='test -s conftest.$ac_objext'
5808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809  (eval $ac_try) 2>&5
5810  ac_status=$?
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); }; }; then
5813  ac_header_compiler=yes
5814else
5815  echo "$as_me: failed program was:" >&5
5816sed 's/^/| /' conftest.$ac_ext >&5
5817
5818ac_header_compiler=no
5819fi
5820rm -f conftest.$ac_objext conftest.$ac_ext
5821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5822echo "${ECHO_T}$ac_header_compiler" >&6
5823
5824# Is the header present?
5825echo "$as_me:$LINENO: checking $ac_header presence" >&5
5826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5827cat >conftest.$ac_ext <<_ACEOF
5828#line $LINENO "configure"
5829/* confdefs.h.  */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h.  */
5834@%:@include <$ac_header>
5835_ACEOF
5836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5838  ac_status=$?
5839  grep -v '^ *+' conftest.er1 >conftest.err
5840  rm -f conftest.er1
5841  cat conftest.err >&5
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); } >/dev/null; then
5844  if test -s conftest.err; then
5845    ac_cpp_err=$ac_c_preproc_warn_flag
5846  else
5847    ac_cpp_err=
5848  fi
5849else
5850  ac_cpp_err=yes
5851fi
5852if test -z "$ac_cpp_err"; then
5853  ac_header_preproc=yes
5854else
5855  echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858  ac_header_preproc=no
5859fi
5860rm -f conftest.err conftest.$ac_ext
5861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5862echo "${ECHO_T}$ac_header_preproc" >&6
5863
5864# So?  What about this header?
5865case $ac_header_compiler:$ac_header_preproc in
5866  yes:no )
5867    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5869    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5871    (
5872      cat <<\_ASBOX
5873@%:@@%:@ ------------------------------------ @%:@@%:@
5874@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5875@%:@@%:@ ------------------------------------ @%:@@%:@
5876_ASBOX
5877    ) |
5878      sed "s/^/$as_me: WARNING:     /" >&2
5879    ;;
5880  no:yes )
5881    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5883    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5885    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5887    (
5888      cat <<\_ASBOX
5889@%:@@%:@ ------------------------------------ @%:@@%:@
5890@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5891@%:@@%:@ ------------------------------------ @%:@@%:@
5892_ASBOX
5893    ) |
5894      sed "s/^/$as_me: WARNING:     /" >&2
5895    ;;
5896esac
5897echo "$as_me:$LINENO: checking for $ac_header" >&5
5898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900  echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902  eval "$as_ac_Header=$ac_header_preproc"
5903fi
5904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5906
5907fi
5908if test `eval echo '${'$as_ac_Header'}'` = yes; then
5909  cat >>confdefs.h <<_ACEOF
5910@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911_ACEOF
5912
5913fi
5914
5915done
5916
5917  if test "$ac_cv_header_fnmatch_h" = "yes"; then
5918    echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
5919echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
5920if test "${ac_cv_func_fnmatch_works+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  # Some versions of Solaris, SCO, and the GNU C Library
5924   # have a broken or incompatible fnmatch.
5925   # So we run a test program.  If we are cross-compiling, take no chance.
5926   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
5927   if test "$cross_compiling" = yes; then
5928  ac_cv_func_fnmatch_works=cross
5929else
5930  cat >conftest.$ac_ext <<_ACEOF
5931#line $LINENO "configure"
5932/* confdefs.h.  */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h.  */
5937#include <fnmatch.h>
5938#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
5939#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
5940
5941int
5942main ()
5943{
5944exit
5945	   (!(y ("a*", "abc", 0)
5946	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
5947	      && y ("a\\\\bc", "abc", 0)
5948	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
5949	      && y ("*x", ".x", 0)
5950	      && n ("*x", ".x", FNM_PERIOD)
5951	      && 1));
5952  ;
5953  return 0;
5954}
5955_ACEOF
5956rm -f conftest$ac_exeext
5957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958  (eval $ac_link) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963  (eval $ac_try) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); }; }; then
5967  ac_cv_func_fnmatch_works=yes
5968else
5969  echo "$as_me: program exited with status $ac_status" >&5
5970echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973( exit $ac_status )
5974ac_cv_func_fnmatch_works=no
5975fi
5976rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5977fi
5978fi
5979echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
5980echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
5981if test $ac_cv_func_fnmatch_works = yes; then
5982
5983cat >>confdefs.h <<\_ACEOF
5984@%:@define HAVE_FNMATCH 1
5985_ACEOF
5986
5987fi
5988
5989
5990
5991  fi
5992  if test "$ac_cv_func_fnmatch_works" != "yes"; then
5993
5994for ac_header in ctype.h
5995do
5996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997if eval "test \"\${$as_ac_Header+set}\" = set"; then
5998  echo "$as_me:$LINENO: checking for $ac_header" >&5
5999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6000if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001  echo $ECHO_N "(cached) $ECHO_C" >&6
6002fi
6003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6005else
6006  # Is the header compilable?
6007echo "$as_me:$LINENO: checking $ac_header usability" >&5
6008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6009cat >conftest.$ac_ext <<_ACEOF
6010#line $LINENO "configure"
6011/* confdefs.h.  */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h.  */
6016$ac_includes_default
6017@%:@include <$ac_header>
6018_ACEOF
6019rm -f conftest.$ac_objext
6020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021  (eval $ac_compile) 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); } &&
6025         { ac_try='test -s conftest.$ac_objext'
6026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027  (eval $ac_try) 2>&5
6028  ac_status=$?
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); }; }; then
6031  ac_header_compiler=yes
6032else
6033  echo "$as_me: failed program was:" >&5
6034sed 's/^/| /' conftest.$ac_ext >&5
6035
6036ac_header_compiler=no
6037fi
6038rm -f conftest.$ac_objext conftest.$ac_ext
6039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6040echo "${ECHO_T}$ac_header_compiler" >&6
6041
6042# Is the header present?
6043echo "$as_me:$LINENO: checking $ac_header presence" >&5
6044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6045cat >conftest.$ac_ext <<_ACEOF
6046#line $LINENO "configure"
6047/* confdefs.h.  */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h.  */
6052@%:@include <$ac_header>
6053_ACEOF
6054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6056  ac_status=$?
6057  grep -v '^ *+' conftest.er1 >conftest.err
6058  rm -f conftest.er1
6059  cat conftest.err >&5
6060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061  (exit $ac_status); } >/dev/null; then
6062  if test -s conftest.err; then
6063    ac_cpp_err=$ac_c_preproc_warn_flag
6064  else
6065    ac_cpp_err=
6066  fi
6067else
6068  ac_cpp_err=yes
6069fi
6070if test -z "$ac_cpp_err"; then
6071  ac_header_preproc=yes
6072else
6073  echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
6075
6076  ac_header_preproc=no
6077fi
6078rm -f conftest.err conftest.$ac_ext
6079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6080echo "${ECHO_T}$ac_header_preproc" >&6
6081
6082# So?  What about this header?
6083case $ac_header_compiler:$ac_header_preproc in
6084  yes:no )
6085    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6089    (
6090      cat <<\_ASBOX
6091@%:@@%:@ ------------------------------------ @%:@@%:@
6092@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6093@%:@@%:@ ------------------------------------ @%:@@%:@
6094_ASBOX
6095    ) |
6096      sed "s/^/$as_me: WARNING:     /" >&2
6097    ;;
6098  no:yes )
6099    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6101    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6103    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6105    (
6106      cat <<\_ASBOX
6107@%:@@%:@ ------------------------------------ @%:@@%:@
6108@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6109@%:@@%:@ ------------------------------------ @%:@@%:@
6110_ASBOX
6111    ) |
6112      sed "s/^/$as_me: WARNING:     /" >&2
6113    ;;
6114esac
6115echo "$as_me:$LINENO: checking for $ac_header" >&5
6116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6117if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118  echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120  eval "$as_ac_Header=$ac_header_preproc"
6121fi
6122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6124
6125fi
6126if test `eval echo '${'$as_ac_Header'}'` = yes; then
6127  cat >>confdefs.h <<_ACEOF
6128@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6129_ACEOF
6130
6131fi
6132
6133done
6134
6135    LIB@&t@OBJS="$LIB@&t@OBJS fnmatch.$ac_objext"
6136  fi
6137
6138
6139for ac_func in lchown
6140do
6141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6142echo "$as_me:$LINENO: checking for $ac_func" >&5
6143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6144if eval "test \"\${$as_ac_var+set}\" = set"; then
6145  echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147  cat >conftest.$ac_ext <<_ACEOF
6148#line $LINENO "configure"
6149/* confdefs.h.  */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h.  */
6154/* System header to define __stub macros and hopefully few prototypes,
6155    which can conflict with char $ac_func (); below.
6156    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157    <limits.h> exists even on freestanding compilers.  */
6158#ifdef __STDC__
6159# include <limits.h>
6160#else
6161# include <assert.h>
6162#endif
6163/* Override any gcc2 internal prototype to avoid an error.  */
6164#ifdef __cplusplus
6165extern "C"
6166{
6167#endif
6168/* We use char because int might match the return type of a gcc2
6169   builtin and then its argument prototype would still apply.  */
6170char $ac_func ();
6171/* The GNU C library defines this for functions which it implements
6172    to always fail with ENOSYS.  Some functions are actually named
6173    something starting with __ and the normal name is an alias.  */
6174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6175choke me
6176#else
6177char (*f) () = $ac_func;
6178#endif
6179#ifdef __cplusplus
6180}
6181#endif
6182
6183int
6184main ()
6185{
6186return f != $ac_func;
6187  ;
6188  return 0;
6189}
6190_ACEOF
6191rm -f conftest.$ac_objext conftest$ac_exeext
6192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193  (eval $ac_link) 2>&5
6194  ac_status=$?
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); } &&
6197         { ac_try='test -s conftest$ac_exeext'
6198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199  (eval $ac_try) 2>&5
6200  ac_status=$?
6201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202  (exit $ac_status); }; }; then
6203  eval "$as_ac_var=yes"
6204else
6205  echo "$as_me: failed program was:" >&5
6206sed 's/^/| /' conftest.$ac_ext >&5
6207
6208eval "$as_ac_var=no"
6209fi
6210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6211fi
6212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6214if test `eval echo '${'$as_ac_var'}'` = yes; then
6215  cat >>confdefs.h <<_ACEOF
6216@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6217_ACEOF
6218
6219fi
6220done
6221
6222
6223
6224
6225cat >>confdefs.h <<\_ACEOF
6226@%:@define NEED_MAKEDEV 1
6227_ACEOF
6228
6229  echo "$as_me:$LINENO: checking whether makedev expects three arguments" >&5
6230echo $ECHO_N "checking whether makedev expects three arguments... $ECHO_C" >&6
6231if test "${compat_cv_func_makedev_three_args+set}" = set; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  if test "$cross_compiling" = yes; then
6235  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6236See \`config.log' for more details." >&5
6237echo "$as_me: error: cannot run test program while cross compiling
6238See \`config.log' for more details." >&2;}
6239   { (exit 1); exit 1; }; }
6240else
6241  cat >conftest.$ac_ext <<_ACEOF
6242
6243      #line $LINENO "configure"
6244/* confdefs.h.  */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h.  */
6249
6250#include <sys/types.h>
6251#ifdef MAJOR_IN_MKDEV
6252# include <sys/mkdev.h>
6253#else
6254# ifdef MAJOR_IN_SYSMACROS
6255#  include <sys/sysmacros.h>
6256# endif
6257#endif
6258
6259int
6260main ()
6261{
6262
6263dev_t dev;
6264major_t maj = 5;
6265minor_t min = 7;
6266
6267dev = makedev(0, maj, min);
6268if (major(dev) != maj
6269    || minor(dev) != min)
6270  exit(1);
6271exit(0);
6272
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277rm -f conftest$ac_exeext
6278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279  (eval $ac_link) 2>&5
6280  ac_status=$?
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284  (eval $ac_try) 2>&5
6285  ac_status=$?
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); }; }; then
6288  compat_cv_func_makedev_three_args=yes
6289else
6290  echo "$as_me: program exited with status $ac_status" >&5
6291echo "$as_me: failed program was:" >&5
6292sed 's/^/| /' conftest.$ac_ext >&5
6293
6294( exit $ac_status )
6295compat_cv_func_makedev_three_args=no
6296
6297fi
6298rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6299fi
6300
6301fi
6302echo "$as_me:$LINENO: result: $compat_cv_func_makedev_three_args" >&5
6303echo "${ECHO_T}$compat_cv_func_makedev_three_args" >&6
6304  if test "$compat_cv_func_makedev_three_args" = "yes"; then
6305
6306cat >>confdefs.h <<\_ACEOF
6307@%:@define MAKEDEV_THREE_ARGS 1
6308_ACEOF
6309
6310  fi
6311
6312
6313
6314cat >>confdefs.h <<\_ACEOF
6315@%:@define NEED_SNPRINTF 1
6316_ACEOF
6317
6318  echo "$as_me:$LINENO: checking for working snprintf" >&5
6319echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
6320if test "${compat_cv_func_snprintf_works+set}" = set; then
6321  echo $ECHO_N "(cached) $ECHO_C" >&6
6322else
6323  if test "$cross_compiling" = yes; then
6324  compat_cv_func_snprintf_works=no
6325
6326else
6327  cat >conftest.$ac_ext <<_ACEOF
6328#line $LINENO "configure"
6329/* confdefs.h.  */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h.  */
6334
6335#include <stdio.h>
6336
6337typedef struct {
6338  int length;
6339  char *test;
6340  int retval;
6341  char *result;
6342} test_t;
6343
6344const test_t tests[] = {
6345  { 10, "12345678901234567890", 20, "123456789" },
6346#if 0
6347  { 0, "12345678901234567890", 20, NULL },
6348  { -1, "12345678901234567890", -1, NULL },
6349#endif
6350  { 0, NULL, 0, NULL }
6351};
6352
6353int main() {
6354  char test1[1024];
6355  int i;
6356
6357  for (i = 0; tests[i].test; i++) {
6358    memset(test1, 'X', sizeof(test1));
6359    if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
6360         != tests[i].retval) ||
6361        (tests[i].result && strcmp(tests[i].result, test1)))
6362      exit(1);
6363  }
6364
6365  exit(0);
6366}
6367
6368_ACEOF
6369rm -f conftest$ac_exeext
6370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371  (eval $ac_link) 2>&5
6372  ac_status=$?
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376  (eval $ac_try) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); }; }; then
6380  compat_cv_func_snprintf_works=yes
6381else
6382  echo "$as_me: program exited with status $ac_status" >&5
6383echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386( exit $ac_status )
6387compat_cv_func_snprintf_works=no
6388fi
6389rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6390fi
6391
6392fi
6393echo "$as_me:$LINENO: result: $compat_cv_func_snprintf_works" >&5
6394echo "${ECHO_T}$compat_cv_func_snprintf_works" >&6
6395  if test "$compat_cv_func_snprintf_works" = "yes"; then
6396
6397cat >>confdefs.h <<\_ACEOF
6398@%:@define HAVE_SNPRINTF 1
6399_ACEOF
6400
6401  else
6402    LIB@&t@OBJS="$LIB@&t@OBJS snprintf.$ac_objext"
6403  fi
6404
6405
6406
6407
6408cat >>confdefs.h <<\_ACEOF
6409@%:@define NEED_STRDUP 1
6410_ACEOF
6411
6412  echo "$as_me:$LINENO: checking for strdup" >&5
6413echo $ECHO_N "checking for strdup... $ECHO_C" >&6
6414if test "${ac_cv_func_strdup+set}" = set; then
6415  echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417  cat >conftest.$ac_ext <<_ACEOF
6418#line $LINENO "configure"
6419/* confdefs.h.  */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h.  */
6424/* System header to define __stub macros and hopefully few prototypes,
6425    which can conflict with char strdup (); below.
6426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6427    <limits.h> exists even on freestanding compilers.  */
6428#ifdef __STDC__
6429# include <limits.h>
6430#else
6431# include <assert.h>
6432#endif
6433/* Override any gcc2 internal prototype to avoid an error.  */
6434#ifdef __cplusplus
6435extern "C"
6436{
6437#endif
6438/* We use char because int might match the return type of a gcc2
6439   builtin and then its argument prototype would still apply.  */
6440char strdup ();
6441/* The GNU C library defines this for functions which it implements
6442    to always fail with ENOSYS.  Some functions are actually named
6443    something starting with __ and the normal name is an alias.  */
6444#if defined (__stub_strdup) || defined (__stub___strdup)
6445choke me
6446#else
6447char (*f) () = strdup;
6448#endif
6449#ifdef __cplusplus
6450}
6451#endif
6452
6453int
6454main ()
6455{
6456return f != strdup;
6457  ;
6458  return 0;
6459}
6460_ACEOF
6461rm -f conftest.$ac_objext conftest$ac_exeext
6462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463  (eval $ac_link) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); } &&
6467         { ac_try='test -s conftest$ac_exeext'
6468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469  (eval $ac_try) 2>&5
6470  ac_status=$?
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); }; }; then
6473  ac_cv_func_strdup=yes
6474else
6475  echo "$as_me: failed program was:" >&5
6476sed 's/^/| /' conftest.$ac_ext >&5
6477
6478ac_cv_func_strdup=no
6479fi
6480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6481fi
6482echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
6483echo "${ECHO_T}$ac_cv_func_strdup" >&6
6484if test $ac_cv_func_strdup = yes; then
6485
6486cat >>confdefs.h <<\_ACEOF
6487@%:@define HAVE_STRDUP 1
6488_ACEOF
6489
6490else
6491  LIB@&t@OBJS="$LIB@&t@OBJS strdup.$ac_objext"
6492
6493fi
6494
6495
6496
6497
6498for ac_func in strftime
6499do
6500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6501echo "$as_me:$LINENO: checking for $ac_func" >&5
6502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6503if eval "test \"\${$as_ac_var+set}\" = set"; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  cat >conftest.$ac_ext <<_ACEOF
6507#line $LINENO "configure"
6508/* confdefs.h.  */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h.  */
6513/* System header to define __stub macros and hopefully few prototypes,
6514    which can conflict with char $ac_func (); below.
6515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6516    <limits.h> exists even on freestanding compilers.  */
6517#ifdef __STDC__
6518# include <limits.h>
6519#else
6520# include <assert.h>
6521#endif
6522/* Override any gcc2 internal prototype to avoid an error.  */
6523#ifdef __cplusplus
6524extern "C"
6525{
6526#endif
6527/* We use char because int might match the return type of a gcc2
6528   builtin and then its argument prototype would still apply.  */
6529char $ac_func ();
6530/* The GNU C library defines this for functions which it implements
6531    to always fail with ENOSYS.  Some functions are actually named
6532    something starting with __ and the normal name is an alias.  */
6533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6534choke me
6535#else
6536char (*f) () = $ac_func;
6537#endif
6538#ifdef __cplusplus
6539}
6540#endif
6541
6542int
6543main ()
6544{
6545return f != $ac_func;
6546  ;
6547  return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
6551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552  (eval $ac_link) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); } &&
6556         { ac_try='test -s conftest$ac_exeext'
6557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558  (eval $ac_try) 2>&5
6559  ac_status=$?
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); }; }; then
6562  eval "$as_ac_var=yes"
6563else
6564  echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567eval "$as_ac_var=no"
6568fi
6569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6570fi
6571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6573if test `eval echo '${'$as_ac_var'}'` = yes; then
6574  cat >>confdefs.h <<_ACEOF
6575@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6576_ACEOF
6577
6578else
6579  # strftime is in -lintl on SCO UNIX.
6580echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6581echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6582if test "${ac_cv_lib_intl_strftime+set}" = set; then
6583  echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585  ac_check_lib_save_LIBS=$LIBS
6586LIBS="-lintl  $LIBS"
6587cat >conftest.$ac_ext <<_ACEOF
6588#line $LINENO "configure"
6589/* confdefs.h.  */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h.  */
6594
6595/* Override any gcc2 internal prototype to avoid an error.  */
6596#ifdef __cplusplus
6597extern "C"
6598#endif
6599/* We use char because int might match the return type of a gcc2
6600   builtin and then its argument prototype would still apply.  */
6601char strftime ();
6602int
6603main ()
6604{
6605strftime ();
6606  ;
6607  return 0;
6608}
6609_ACEOF
6610rm -f conftest.$ac_objext conftest$ac_exeext
6611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612  (eval $ac_link) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); } &&
6616         { ac_try='test -s conftest$ac_exeext'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; }; then
6622  ac_cv_lib_intl_strftime=yes
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627ac_cv_lib_intl_strftime=no
6628fi
6629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630LIBS=$ac_check_lib_save_LIBS
6631fi
6632echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6633echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6634if test $ac_cv_lib_intl_strftime = yes; then
6635  cat >>confdefs.h <<\_ACEOF
6636@%:@define HAVE_STRFTIME 1
6637_ACEOF
6638
6639LIBS="-lintl $LIBS"
6640fi
6641
6642fi
6643done
6644
6645
6646
6647
6648cat >>confdefs.h <<\_ACEOF
6649@%:@define NEED_STRLCPY 1
6650_ACEOF
6651
6652  echo "$as_me:$LINENO: checking for strlcpy" >&5
6653echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
6654if test "${ac_cv_func_strlcpy+set}" = set; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657  cat >conftest.$ac_ext <<_ACEOF
6658#line $LINENO "configure"
6659/* confdefs.h.  */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h.  */
6664/* System header to define __stub macros and hopefully few prototypes,
6665    which can conflict with char strlcpy (); below.
6666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667    <limits.h> exists even on freestanding compilers.  */
6668#ifdef __STDC__
6669# include <limits.h>
6670#else
6671# include <assert.h>
6672#endif
6673/* Override any gcc2 internal prototype to avoid an error.  */
6674#ifdef __cplusplus
6675extern "C"
6676{
6677#endif
6678/* We use char because int might match the return type of a gcc2
6679   builtin and then its argument prototype would still apply.  */
6680char strlcpy ();
6681/* The GNU C library defines this for functions which it implements
6682    to always fail with ENOSYS.  Some functions are actually named
6683    something starting with __ and the normal name is an alias.  */
6684#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
6685choke me
6686#else
6687char (*f) () = strlcpy;
6688#endif
6689#ifdef __cplusplus
6690}
6691#endif
6692
6693int
6694main ()
6695{
6696return f != strlcpy;
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703  (eval $ac_link) 2>&5
6704  ac_status=$?
6705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706  (exit $ac_status); } &&
6707         { ac_try='test -s conftest$ac_exeext'
6708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709  (eval $ac_try) 2>&5
6710  ac_status=$?
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); }; }; then
6713  ac_cv_func_strlcpy=yes
6714else
6715  echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718ac_cv_func_strlcpy=no
6719fi
6720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6721fi
6722echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
6723echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
6724if test $ac_cv_func_strlcpy = yes; then
6725
6726cat >>confdefs.h <<\_ACEOF
6727@%:@define HAVE_STRLCPY 1
6728_ACEOF
6729
6730else
6731  LIB@&t@OBJS="$LIB@&t@OBJS strlcpy.$ac_objext"
6732
6733fi
6734
6735
6736
6737
6738
6739
6740cat >>confdefs.h <<\_ACEOF
6741@%:@define NEED_STRMODE 1
6742_ACEOF
6743
6744  echo "$as_me:$LINENO: checking for strmode" >&5
6745echo $ECHO_N "checking for strmode... $ECHO_C" >&6
6746if test "${ac_cv_func_strmode+set}" = set; then
6747  echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749  cat >conftest.$ac_ext <<_ACEOF
6750#line $LINENO "configure"
6751/* confdefs.h.  */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h.  */
6756/* System header to define __stub macros and hopefully few prototypes,
6757    which can conflict with char strmode (); below.
6758    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759    <limits.h> exists even on freestanding compilers.  */
6760#ifdef __STDC__
6761# include <limits.h>
6762#else
6763# include <assert.h>
6764#endif
6765/* Override any gcc2 internal prototype to avoid an error.  */
6766#ifdef __cplusplus
6767extern "C"
6768{
6769#endif
6770/* We use char because int might match the return type of a gcc2
6771   builtin and then its argument prototype would still apply.  */
6772char strmode ();
6773/* The GNU C library defines this for functions which it implements
6774    to always fail with ENOSYS.  Some functions are actually named
6775    something starting with __ and the normal name is an alias.  */
6776#if defined (__stub_strmode) || defined (__stub___strmode)
6777choke me
6778#else
6779char (*f) () = strmode;
6780#endif
6781#ifdef __cplusplus
6782}
6783#endif
6784
6785int
6786main ()
6787{
6788return f != strmode;
6789  ;
6790  return 0;
6791}
6792_ACEOF
6793rm -f conftest.$ac_objext conftest$ac_exeext
6794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795  (eval $ac_link) 2>&5
6796  ac_status=$?
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798  (exit $ac_status); } &&
6799         { ac_try='test -s conftest$ac_exeext'
6800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801  (eval $ac_try) 2>&5
6802  ac_status=$?
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); }; }; then
6805  ac_cv_func_strmode=yes
6806else
6807  echo "$as_me: failed program was:" >&5
6808sed 's/^/| /' conftest.$ac_ext >&5
6809
6810ac_cv_func_strmode=no
6811fi
6812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6813fi
6814echo "$as_me:$LINENO: result: $ac_cv_func_strmode" >&5
6815echo "${ECHO_T}$ac_cv_func_strmode" >&6
6816if test $ac_cv_func_strmode = yes; then
6817
6818cat >>confdefs.h <<\_ACEOF
6819@%:@define HAVE_STRMODE 1
6820_ACEOF
6821
6822else
6823  LIB@&t@OBJS="$LIB@&t@OBJS strmode.$ac_objext"
6824
6825fi
6826
6827
6828
6829
6830
6831
6832cat >>confdefs.h <<\_ACEOF
6833@%:@define NEED_STRSEP 1
6834_ACEOF
6835
6836  echo "$as_me:$LINENO: checking for strsep" >&5
6837echo $ECHO_N "checking for strsep... $ECHO_C" >&6
6838if test "${ac_cv_func_strsep+set}" = set; then
6839  echo $ECHO_N "(cached) $ECHO_C" >&6
6840else
6841  cat >conftest.$ac_ext <<_ACEOF
6842#line $LINENO "configure"
6843/* confdefs.h.  */
6844_ACEOF
6845cat confdefs.h >>conftest.$ac_ext
6846cat >>conftest.$ac_ext <<_ACEOF
6847/* end confdefs.h.  */
6848/* System header to define __stub macros and hopefully few prototypes,
6849    which can conflict with char strsep (); below.
6850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851    <limits.h> exists even on freestanding compilers.  */
6852#ifdef __STDC__
6853# include <limits.h>
6854#else
6855# include <assert.h>
6856#endif
6857/* Override any gcc2 internal prototype to avoid an error.  */
6858#ifdef __cplusplus
6859extern "C"
6860{
6861#endif
6862/* We use char because int might match the return type of a gcc2
6863   builtin and then its argument prototype would still apply.  */
6864char strsep ();
6865/* The GNU C library defines this for functions which it implements
6866    to always fail with ENOSYS.  Some functions are actually named
6867    something starting with __ and the normal name is an alias.  */
6868#if defined (__stub_strsep) || defined (__stub___strsep)
6869choke me
6870#else
6871char (*f) () = strsep;
6872#endif
6873#ifdef __cplusplus
6874}
6875#endif
6876
6877int
6878main ()
6879{
6880return f != strsep;
6881  ;
6882  return 0;
6883}
6884_ACEOF
6885rm -f conftest.$ac_objext conftest$ac_exeext
6886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887  (eval $ac_link) 2>&5
6888  ac_status=$?
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } &&
6891         { ac_try='test -s conftest$ac_exeext'
6892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893  (eval $ac_try) 2>&5
6894  ac_status=$?
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); }; }; then
6897  ac_cv_func_strsep=yes
6898else
6899  echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902ac_cv_func_strsep=no
6903fi
6904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6905fi
6906echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
6907echo "${ECHO_T}$ac_cv_func_strsep" >&6
6908if test $ac_cv_func_strsep = yes; then
6909
6910cat >>confdefs.h <<\_ACEOF
6911@%:@define HAVE_STRSEP 1
6912_ACEOF
6913
6914else
6915  LIB@&t@OBJS="$LIB@&t@OBJS strsep.$ac_objext"
6916
6917fi
6918
6919
6920
6921
6922
6923
6924# Check whether --with-zlib or --without-zlib was given.
6925if test "${with_zlib+set}" = set; then
6926  withval="$with_zlib"
6927
6928else
6929  with_zlib=yes
6930fi;
6931if test "$with_zlib" = "yes"; then
6932
6933echo "$as_me:$LINENO: checking for gzread in -lz" >&5
6934echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
6935if test "${ac_cv_lib_z_gzread+set}" = set; then
6936  echo $ECHO_N "(cached) $ECHO_C" >&6
6937else
6938  ac_check_lib_save_LIBS=$LIBS
6939LIBS="-lz  $LIBS"
6940cat >conftest.$ac_ext <<_ACEOF
6941#line $LINENO "configure"
6942/* confdefs.h.  */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h.  */
6947
6948/* Override any gcc2 internal prototype to avoid an error.  */
6949#ifdef __cplusplus
6950extern "C"
6951#endif
6952/* We use char because int might match the return type of a gcc2
6953   builtin and then its argument prototype would still apply.  */
6954char gzread ();
6955int
6956main ()
6957{
6958gzread ();
6959  ;
6960  return 0;
6961}
6962_ACEOF
6963rm -f conftest.$ac_objext conftest$ac_exeext
6964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965  (eval $ac_link) 2>&5
6966  ac_status=$?
6967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968  (exit $ac_status); } &&
6969         { ac_try='test -s conftest$ac_exeext'
6970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971  (eval $ac_try) 2>&5
6972  ac_status=$?
6973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974  (exit $ac_status); }; }; then
6975  ac_cv_lib_z_gzread=yes
6976else
6977  echo "$as_me: failed program was:" >&5
6978sed 's/^/| /' conftest.$ac_ext >&5
6979
6980ac_cv_lib_z_gzread=no
6981fi
6982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983LIBS=$ac_check_lib_save_LIBS
6984fi
6985echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
6986echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
6987if test $ac_cv_lib_z_gzread = yes; then
6988  cat >>confdefs.h <<_ACEOF
6989@%:@define HAVE_LIBZ 1
6990_ACEOF
6991
6992  LIBS="-lz $LIBS"
6993
6994fi
6995
6996fi
6997
6998
6999                                        ac_config_files="$ac_config_files Makefile lib/Makefile libtar/Makefile doc/Makefile"
7000
7001cat >confcache <<\_ACEOF
7002# This file is a shell script that caches the results of configure
7003# tests run on this system so they can be shared between configure
7004# scripts and configure runs, see configure's option --config-cache.
7005# It is not useful on other systems.  If it contains results you don't
7006# want to keep, you may remove or edit it.
7007#
7008# config.status only pays attention to the cache file if you give it
7009# the --recheck option to rerun configure.
7010#
7011# `ac_cv_env_foo' variables (set or unset) will be overridden when
7012# loading this file, other *unset* `ac_cv_foo' will be assigned the
7013# following values.
7014
7015_ACEOF
7016
7017# The following way of writing the cache mishandles newlines in values,
7018# but we know of no workaround that is simple, portable, and efficient.
7019# So, don't put newlines in cache variables' values.
7020# Ultrix sh set writes to stderr and can't be redirected directly,
7021# and sets the high bit in the cache file unless we assign to the vars.
7022{
7023  (set) 2>&1 |
7024    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7025    *ac_space=\ *)
7026      # `set' does not quote correctly, so add quotes (double-quote
7027      # substitution turns \\\\ into \\, and sed turns \\ into \).
7028      sed -n \
7029        "s/'/'\\\\''/g;
7030    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7031      ;;
7032    *)
7033      # `set' quotes correctly as required by POSIX, so do not add quotes.
7034      sed -n \
7035        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7036      ;;
7037    esac;
7038} |
7039  sed '
7040     t clear
7041     : clear
7042     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7043     t end
7044     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7045     : end' >>confcache
7046if diff $cache_file confcache >/dev/null 2>&1; then :; else
7047  if test -w $cache_file; then
7048    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7049    cat confcache >$cache_file
7050  else
7051    echo "not updating unwritable cache $cache_file"
7052  fi
7053fi
7054rm -f confcache
7055
7056test "x$prefix" = xNONE && prefix=$ac_default_prefix
7057# Let make expand exec_prefix.
7058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7059
7060# VPATH may cause trouble with some makes, so we remove $(srcdir),
7061# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7062# trailing colons and then remove the whole line if VPATH becomes empty
7063# (actually we leave an empty line to preserve line numbers).
7064if test "x$srcdir" = x.; then
7065  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
7066s/:*\$(srcdir):*/:/;
7067s/:*\${srcdir}:*/:/;
7068s/:*@srcdir@:*/:/;
7069s/^\([^=]*=[ 	]*\):*/\1/;
7070s/:*$//;
7071s/^[^=]*=[ 	]*$//;
7072}'
7073fi
7074
7075DEFS=-DHAVE_CONFIG_H
7076
7077ac_libobjs=
7078ac_ltlibobjs=
7079for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
7080  # 1. Remove the extension, and $U if already installed.
7081  ac_i=`echo "$ac_i" |
7082         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7083  # 2. Add them.
7084  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7085  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7086done
7087LIB@&t@OBJS=$ac_libobjs
7088
7089LTLIBOBJS=$ac_ltlibobjs
7090
7091
7092
7093: ${CONFIG_STATUS=./config.status}
7094ac_clean_files_save=$ac_clean_files
7095ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7096{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7097echo "$as_me: creating $CONFIG_STATUS" >&6;}
7098cat >$CONFIG_STATUS <<_ACEOF
7099#! $SHELL
7100# Generated by $as_me.
7101# Run this file to recreate the current configuration.
7102# Compiler output produced by configure, useful for debugging
7103# configure, is in config.log if it exists.
7104
7105debug=false
7106ac_cs_recheck=false
7107ac_cs_silent=false
7108SHELL=\${CONFIG_SHELL-$SHELL}
7109_ACEOF
7110
7111cat >>$CONFIG_STATUS <<\_ACEOF
7112## --------------------- ##
7113## M4sh Initialization.  ##
7114## --------------------- ##
7115
7116# Be Bourne compatible
7117if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7118  emulate sh
7119  NULLCMD=:
7120  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7121  # is contrary to our usage.  Disable this feature.
7122  alias -g '${1+"$@"}'='"$@"'
7123elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7124  set -o posix
7125fi
7126
7127# Support unset when possible.
7128if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7129  as_unset=unset
7130else
7131  as_unset=false
7132fi
7133
7134
7135# Work around bugs in pre-3.0 UWIN ksh.
7136$as_unset ENV MAIL MAILPATH
7137PS1='$ '
7138PS2='> '
7139PS4='+ '
7140
7141# NLS nuisances.
7142for as_var in \
7143  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7144  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7145  LC_TELEPHONE LC_TIME
7146do
7147  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7148    eval $as_var=C; export $as_var
7149  else
7150    $as_unset $as_var
7151  fi
7152done
7153
7154# Required to use basename.
7155if expr a : '\(a\)' >/dev/null 2>&1; then
7156  as_expr=expr
7157else
7158  as_expr=false
7159fi
7160
7161if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7162  as_basename=basename
7163else
7164  as_basename=false
7165fi
7166
7167
7168# Name of the executable.
7169as_me=`$as_basename "$0" ||
7170$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7171	 X"$0" : 'X\(//\)$' \| \
7172	 X"$0" : 'X\(/\)$' \| \
7173	 .     : '\(.\)' 2>/dev/null ||
7174echo X/"$0" |
7175    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7176  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7177  	  /^X\/\(\/\).*/{ s//\1/; q; }
7178  	  s/.*/./; q'`
7179
7180
7181# PATH needs CR, and LINENO needs CR and PATH.
7182# Avoid depending upon Character Ranges.
7183as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7184as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7185as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7186as_cr_digits='0123456789'
7187as_cr_alnum=$as_cr_Letters$as_cr_digits
7188
7189# The user is always right.
7190if test "${PATH_SEPARATOR+set}" != set; then
7191  echo "#! /bin/sh" >conf$$.sh
7192  echo  "exit 0"   >>conf$$.sh
7193  chmod +x conf$$.sh
7194  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7195    PATH_SEPARATOR=';'
7196  else
7197    PATH_SEPARATOR=:
7198  fi
7199  rm -f conf$$.sh
7200fi
7201
7202
7203  as_lineno_1=$LINENO
7204  as_lineno_2=$LINENO
7205  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7206  test "x$as_lineno_1" != "x$as_lineno_2" &&
7207  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7208  # Find who we are.  Look in the path if we contain no path at all
7209  # relative or not.
7210  case $0 in
7211    *[\\/]* ) as_myself=$0 ;;
7212    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215  IFS=$as_save_IFS
7216  test -z "$as_dir" && as_dir=.
7217  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7218done
7219
7220       ;;
7221  esac
7222  # We did not find ourselves, most probably we were run as `sh COMMAND'
7223  # in which case we are not to be found in the path.
7224  if test "x$as_myself" = x; then
7225    as_myself=$0
7226  fi
7227  if test ! -f "$as_myself"; then
7228    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7229echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7230   { (exit 1); exit 1; }; }
7231  fi
7232  case $CONFIG_SHELL in
7233  '')
7234    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239  for as_base in sh bash ksh sh5; do
7240	 case $as_dir in
7241	 /*)
7242	   if ("$as_dir/$as_base" -c '
7243  as_lineno_1=$LINENO
7244  as_lineno_2=$LINENO
7245  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7246  test "x$as_lineno_1" != "x$as_lineno_2" &&
7247  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7248	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7249	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7250	     CONFIG_SHELL=$as_dir/$as_base
7251	     export CONFIG_SHELL
7252	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7253	   fi;;
7254	 esac
7255       done
7256done
7257;;
7258  esac
7259
7260  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7261  # uniformly replaced by the line number.  The first 'sed' inserts a
7262  # line-number line before each line; the second 'sed' does the real
7263  # work.  The second script uses 'N' to pair each line-number line
7264  # with the numbered line, and appends trailing '-' during
7265  # substitution so that $LINENO is not a special case at line end.
7266  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7267  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7268  sed '=' <$as_myself |
7269    sed '
7270      N
7271      s,$,-,
7272      : loop
7273      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7274      t loop
7275      s,-$,,
7276      s,^['$as_cr_digits']*\n,,
7277    ' >$as_me.lineno &&
7278  chmod +x $as_me.lineno ||
7279    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7280echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7281   { (exit 1); exit 1; }; }
7282
7283  # Don't try to exec as it changes $[0], causing all sort of problems
7284  # (the dirname of $[0] is not the place where we might find the
7285  # original and so on.  Autoconf is especially sensible to this).
7286  . ./$as_me.lineno
7287  # Exit status is that of the last command.
7288  exit
7289}
7290
7291
7292case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7293  *c*,-n*) ECHO_N= ECHO_C='
7294' ECHO_T='	' ;;
7295  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7296  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7297esac
7298
7299if expr a : '\(a\)' >/dev/null 2>&1; then
7300  as_expr=expr
7301else
7302  as_expr=false
7303fi
7304
7305rm -f conf$$ conf$$.exe conf$$.file
7306echo >conf$$.file
7307if ln -s conf$$.file conf$$ 2>/dev/null; then
7308  # We could just check for DJGPP; but this test a) works b) is more generic
7309  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7310  if test -f conf$$.exe; then
7311    # Don't use ln at all; we don't have any links
7312    as_ln_s='cp -p'
7313  else
7314    as_ln_s='ln -s'
7315  fi
7316elif ln conf$$.file conf$$ 2>/dev/null; then
7317  as_ln_s=ln
7318else
7319  as_ln_s='cp -p'
7320fi
7321rm -f conf$$ conf$$.exe conf$$.file
7322
7323if mkdir -p . 2>/dev/null; then
7324  as_mkdir_p=:
7325else
7326  as_mkdir_p=false
7327fi
7328
7329as_executable_p="test -f"
7330
7331# Sed expression to map a string onto a valid CPP name.
7332as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7333
7334# Sed expression to map a string onto a valid variable name.
7335as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7336
7337
7338# IFS
7339# We need space, tab and new line, in precisely that order.
7340as_nl='
7341'
7342IFS=" 	$as_nl"
7343
7344# CDPATH.
7345$as_unset CDPATH
7346
7347exec 6>&1
7348
7349# Open the log real soon, to keep \$[0] and so on meaningful, and to
7350# report actual input values of CONFIG_FILES etc. instead of their
7351# values after options handling.  Logging --version etc. is OK.
7352exec 5>>config.log
7353{
7354  echo
7355  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
7356@%:@@%:@ Running $as_me. @%:@@%:@
7357_ASBOX
7358} >&5
7359cat >&5 <<_CSEOF
7360
7361This file was extended by libtar $as_me 1.2.11, which was
7362generated by GNU Autoconf 2.57.  Invocation command line was
7363
7364  CONFIG_FILES    = $CONFIG_FILES
7365  CONFIG_HEADERS  = $CONFIG_HEADERS
7366  CONFIG_LINKS    = $CONFIG_LINKS
7367  CONFIG_COMMANDS = $CONFIG_COMMANDS
7368  $ $0 $@
7369
7370_CSEOF
7371echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7372echo >&5
7373_ACEOF
7374
7375# Files that config.status was made for.
7376if test -n "$ac_config_files"; then
7377  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7378fi
7379
7380if test -n "$ac_config_headers"; then
7381  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7382fi
7383
7384if test -n "$ac_config_links"; then
7385  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7386fi
7387
7388if test -n "$ac_config_commands"; then
7389  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7390fi
7391
7392cat >>$CONFIG_STATUS <<\_ACEOF
7393
7394ac_cs_usage="\
7395\`$as_me' instantiates files from templates according to the
7396current configuration.
7397
7398Usage: $0 [OPTIONS] [FILE]...
7399
7400  -h, --help       print this help, then exit
7401  -V, --version    print version number, then exit
7402  -q, --quiet      do not print progress messages
7403  -d, --debug      don't remove temporary files
7404      --recheck    update $as_me by reconfiguring in the same conditions
7405  --file=FILE[:TEMPLATE]
7406                   instantiate the configuration file FILE
7407  --header=FILE[:TEMPLATE]
7408                   instantiate the configuration header FILE
7409
7410Configuration files:
7411$config_files
7412
7413Configuration headers:
7414$config_headers
7415
7416Report bugs to <bug-autoconf@gnu.org>."
7417_ACEOF
7418
7419cat >>$CONFIG_STATUS <<_ACEOF
7420ac_cs_version="\\
7421libtar config.status 1.2.11
7422configured by $0, generated by GNU Autoconf 2.57,
7423  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7424
7425Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7426Free Software Foundation, Inc.
7427This config.status script is free software; the Free Software Foundation
7428gives unlimited permission to copy, distribute and modify it."
7429srcdir=$srcdir
7430INSTALL="$INSTALL"
7431_ACEOF
7432
7433cat >>$CONFIG_STATUS <<\_ACEOF
7434# If no file are specified by the user, then we need to provide default
7435# value.  By we need to know if files were specified by the user.
7436ac_need_defaults=:
7437while test $# != 0
7438do
7439  case $1 in
7440  --*=*)
7441    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7442    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7443    ac_shift=:
7444    ;;
7445  -*)
7446    ac_option=$1
7447    ac_optarg=$2
7448    ac_shift=shift
7449    ;;
7450  *) # This is not an option, so the user has probably given explicit
7451     # arguments.
7452     ac_option=$1
7453     ac_need_defaults=false;;
7454  esac
7455
7456  case $ac_option in
7457  # Handling of the options.
7458_ACEOF
7459cat >>$CONFIG_STATUS <<\_ACEOF
7460  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7461    ac_cs_recheck=: ;;
7462  --version | --vers* | -V )
7463    echo "$ac_cs_version"; exit 0 ;;
7464  --he | --h)
7465    # Conflict between --help and --header
7466    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7467Try \`$0 --help' for more information." >&5
7468echo "$as_me: error: ambiguous option: $1
7469Try \`$0 --help' for more information." >&2;}
7470   { (exit 1); exit 1; }; };;
7471  --help | --hel | -h )
7472    echo "$ac_cs_usage"; exit 0 ;;
7473  --debug | --d* | -d )
7474    debug=: ;;
7475  --file | --fil | --fi | --f )
7476    $ac_shift
7477    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7478    ac_need_defaults=false;;
7479  --header | --heade | --head | --hea )
7480    $ac_shift
7481    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7482    ac_need_defaults=false;;
7483  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7484  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7485    ac_cs_silent=: ;;
7486
7487  # This is an error.
7488  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7489Try \`$0 --help' for more information." >&5
7490echo "$as_me: error: unrecognized option: $1
7491Try \`$0 --help' for more information." >&2;}
7492   { (exit 1); exit 1; }; } ;;
7493
7494  *) ac_config_targets="$ac_config_targets $1" ;;
7495
7496  esac
7497  shift
7498done
7499
7500ac_configure_extra_args=
7501
7502if $ac_cs_silent; then
7503  exec 6>/dev/null
7504  ac_configure_extra_args="$ac_configure_extra_args --silent"
7505fi
7506
7507_ACEOF
7508cat >>$CONFIG_STATUS <<_ACEOF
7509if \$ac_cs_recheck; then
7510  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7511  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7512fi
7513
7514_ACEOF
7515
7516
7517
7518
7519
7520cat >>$CONFIG_STATUS <<\_ACEOF
7521for ac_config_target in $ac_config_targets
7522do
7523  case "$ac_config_target" in
7524  # Handling of arguments.
7525  "listhash/${LISTHASH_PREFIX}_listhash.h" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in" ;;
7526  "listhash/${LISTHASH_PREFIX}_list.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in" ;;
7527  "listhash/${LISTHASH_PREFIX}_hash.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in" ;;
7528  "listhash/${LISTHASH_PREFIX}_list_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in" ;;
7529  "listhash/${LISTHASH_PREFIX}_hash_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in" ;;
7530  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7531  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7532  "libtar/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtar/Makefile" ;;
7533  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7534  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7535  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7536echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7537   { (exit 1); exit 1; }; };;
7538  esac
7539done
7540
7541# If the user did not use the arguments to specify the items to instantiate,
7542# then the envvar interface is used.  Set only those that are not.
7543# We use the long form for the default assignment because of an extremely
7544# bizarre bug on SunOS 4.1.3.
7545if $ac_need_defaults; then
7546  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7547  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7548fi
7549
7550# Have a temporary directory for convenience.  Make it in the build tree
7551# simply because there is no reason to put it here, and in addition,
7552# creating and moving files from /tmp can sometimes cause problems.
7553# Create a temporary directory, and hook for its removal unless debugging.
7554$debug ||
7555{
7556  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7557  trap '{ (exit 1); exit 1; }' 1 2 13 15
7558}
7559
7560# Create a (secure) tmp directory for tmp files.
7561
7562{
7563  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7564  test -n "$tmp" && test -d "$tmp"
7565}  ||
7566{
7567  tmp=./confstat$$-$RANDOM
7568  (umask 077 && mkdir $tmp)
7569} ||
7570{
7571   echo "$me: cannot create a temporary directory in ." >&2
7572   { (exit 1); exit 1; }
7573}
7574
7575_ACEOF
7576
7577cat >>$CONFIG_STATUS <<_ACEOF
7578
7579#
7580# CONFIG_FILES section.
7581#
7582
7583# No need to generate the scripts if there are no CONFIG_FILES.
7584# This happens for instance when ./config.status config.h
7585if test -n "\$CONFIG_FILES"; then
7586  # Protect against being on the right side of a sed subst in config.status.
7587  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7588   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7589s,@SHELL@,$SHELL,;t t
7590s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7591s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7592s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7593s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7594s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7595s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7596s,@exec_prefix@,$exec_prefix,;t t
7597s,@prefix@,$prefix,;t t
7598s,@program_transform_name@,$program_transform_name,;t t
7599s,@bindir@,$bindir,;t t
7600s,@sbindir@,$sbindir,;t t
7601s,@libexecdir@,$libexecdir,;t t
7602s,@datadir@,$datadir,;t t
7603s,@sysconfdir@,$sysconfdir,;t t
7604s,@sharedstatedir@,$sharedstatedir,;t t
7605s,@localstatedir@,$localstatedir,;t t
7606s,@libdir@,$libdir,;t t
7607s,@includedir@,$includedir,;t t
7608s,@oldincludedir@,$oldincludedir,;t t
7609s,@infodir@,$infodir,;t t
7610s,@mandir@,$mandir,;t t
7611s,@build_alias@,$build_alias,;t t
7612s,@host_alias@,$host_alias,;t t
7613s,@target_alias@,$target_alias,;t t
7614s,@DEFS@,$DEFS,;t t
7615s,@ECHO_C@,$ECHO_C,;t t
7616s,@ECHO_N@,$ECHO_N,;t t
7617s,@ECHO_T@,$ECHO_T,;t t
7618s,@LIBS@,$LIBS,;t t
7619s,@EPKG@,$EPKG,;t t
7620s,@MKENCAP@,$MKENCAP,;t t
7621s,@ENCAP_DEFS@,$ENCAP_DEFS,;t t
7622s,@ENCAP_INSTALL_RULES@,$ENCAP_INSTALL_RULES,;t t
7623s,@ENCAP_INSTALL_TARGET@,$ENCAP_INSTALL_TARGET,;t t
7624s,@CC@,$CC,;t t
7625s,@CFLAGS@,$CFLAGS,;t t
7626s,@LDFLAGS@,$LDFLAGS,;t t
7627s,@CPPFLAGS@,$CPPFLAGS,;t t
7628s,@ac_ct_CC@,$ac_ct_CC,;t t
7629s,@EXEEXT@,$EXEEXT,;t t
7630s,@OBJEXT@,$OBJEXT,;t t
7631s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
7632s,@LISTHASH_PREFIX@,$LISTHASH_PREFIX,;t t
7633s,@LISTHASH_DIR@,$LISTHASH_DIR,;t t
7634s,@MKDIR@,$MKDIR,;t t
7635s,@RANLIB@,$RANLIB,;t t
7636s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7637s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7638s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7639s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7640s,@LN_S@,$LN_S,;t t
7641s,@SET_MAKE@,$SET_MAKE,;t t
7642s,@CPP@,$CPP,;t t
7643s,@EGREP@,$EGREP,;t t
7644s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7645CEOF
7646
7647_ACEOF
7648
7649  cat >>$CONFIG_STATUS <<\_ACEOF
7650  # Split the substitutions into bite-sized pieces for seds with
7651  # small command number limits, like on Digital OSF/1 and HP-UX.
7652  ac_max_sed_lines=48
7653  ac_sed_frag=1 # Number of current file.
7654  ac_beg=1 # First line for current file.
7655  ac_end=$ac_max_sed_lines # Line after last line for current file.
7656  ac_more_lines=:
7657  ac_sed_cmds=
7658  while $ac_more_lines; do
7659    if test $ac_beg -gt 1; then
7660      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7661    else
7662      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7663    fi
7664    if test ! -s $tmp/subs.frag; then
7665      ac_more_lines=false
7666    else
7667      # The purpose of the label and of the branching condition is to
7668      # speed up the sed processing (if there are no `@' at all, there
7669      # is no need to browse any of the substitutions).
7670      # These are the two extra sed commands mentioned above.
7671      (echo ':t
7672  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7673      if test -z "$ac_sed_cmds"; then
7674  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7675      else
7676  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7677      fi
7678      ac_sed_frag=`expr $ac_sed_frag + 1`
7679      ac_beg=$ac_end
7680      ac_end=`expr $ac_end + $ac_max_sed_lines`
7681    fi
7682  done
7683  if test -z "$ac_sed_cmds"; then
7684    ac_sed_cmds=cat
7685  fi
7686fi # test -n "$CONFIG_FILES"
7687
7688_ACEOF
7689cat >>$CONFIG_STATUS <<\_ACEOF
7690for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7691  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7692  case $ac_file in
7693  - | *:- | *:-:* ) # input from stdin
7694        cat >$tmp/stdin
7695        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7696        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7697  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7698        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7699  * )   ac_file_in=$ac_file.in ;;
7700  esac
7701
7702  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7703  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7704$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7705         X"$ac_file" : 'X\(//\)[^/]' \| \
7706         X"$ac_file" : 'X\(//\)$' \| \
7707         X"$ac_file" : 'X\(/\)' \| \
7708         .     : '\(.\)' 2>/dev/null ||
7709echo X"$ac_file" |
7710    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7711  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7712  	  /^X\(\/\/\)$/{ s//\1/; q; }
7713  	  /^X\(\/\).*/{ s//\1/; q; }
7714  	  s/.*/./; q'`
7715  { if $as_mkdir_p; then
7716    mkdir -p "$ac_dir"
7717  else
7718    as_dir="$ac_dir"
7719    as_dirs=
7720    while test ! -d "$as_dir"; do
7721      as_dirs="$as_dir $as_dirs"
7722      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7723$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7724         X"$as_dir" : 'X\(//\)[^/]' \| \
7725         X"$as_dir" : 'X\(//\)$' \| \
7726         X"$as_dir" : 'X\(/\)' \| \
7727         .     : '\(.\)' 2>/dev/null ||
7728echo X"$as_dir" |
7729    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7730  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7731  	  /^X\(\/\/\)$/{ s//\1/; q; }
7732  	  /^X\(\/\).*/{ s//\1/; q; }
7733  	  s/.*/./; q'`
7734    done
7735    test ! -n "$as_dirs" || mkdir $as_dirs
7736  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7737echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7738   { (exit 1); exit 1; }; }; }
7739
7740  ac_builddir=.
7741
7742if test "$ac_dir" != .; then
7743  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7744  # A "../" for each directory in $ac_dir_suffix.
7745  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7746else
7747  ac_dir_suffix= ac_top_builddir=
7748fi
7749
7750case $srcdir in
7751  .)  # No --srcdir option.  We are building in place.
7752    ac_srcdir=.
7753    if test -z "$ac_top_builddir"; then
7754       ac_top_srcdir=.
7755    else
7756       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7757    fi ;;
7758  [\\/]* | ?:[\\/]* )  # Absolute path.
7759    ac_srcdir=$srcdir$ac_dir_suffix;
7760    ac_top_srcdir=$srcdir ;;
7761  *) # Relative path.
7762    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7763    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7764esac
7765# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7766# absolute.
7767ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7768ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7769ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7770ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7771
7772
7773  case $INSTALL in
7774  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7775  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7776  esac
7777
7778  if test x"$ac_file" != x-; then
7779    { echo "$as_me:$LINENO: creating $ac_file" >&5
7780echo "$as_me: creating $ac_file" >&6;}
7781    rm -f "$ac_file"
7782  fi
7783  # Let's still pretend it is `configure' which instantiates (i.e., don't
7784  # use $as_me), people would be surprised to read:
7785  #    /* config.h.  Generated by config.status.  */
7786  if test x"$ac_file" = x-; then
7787    configure_input=
7788  else
7789    configure_input="$ac_file.  "
7790  fi
7791  configure_input=$configure_input"Generated from `echo $ac_file_in |
7792                                     sed 's,.*/,,'` by configure."
7793
7794  # First look for the input files in the build tree, otherwise in the
7795  # src tree.
7796  ac_file_inputs=`IFS=:
7797    for f in $ac_file_in; do
7798      case $f in
7799      -) echo $tmp/stdin ;;
7800      [\\/$]*)
7801         # Absolute (can't be DOS-style, as IFS=:)
7802         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7803echo "$as_me: error: cannot find input file: $f" >&2;}
7804   { (exit 1); exit 1; }; }
7805         echo $f;;
7806      *) # Relative
7807         if test -f "$f"; then
7808           # Build tree
7809           echo $f
7810         elif test -f "$srcdir/$f"; then
7811           # Source tree
7812           echo $srcdir/$f
7813         else
7814           # /dev/null tree
7815           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7816echo "$as_me: error: cannot find input file: $f" >&2;}
7817   { (exit 1); exit 1; }; }
7818         fi;;
7819      esac
7820    done` || { (exit 1); exit 1; }
7821_ACEOF
7822cat >>$CONFIG_STATUS <<_ACEOF
7823  sed "$ac_vpsub
7824$extrasub
7825_ACEOF
7826cat >>$CONFIG_STATUS <<\_ACEOF
7827:t
7828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7829s,@configure_input@,$configure_input,;t t
7830s,@srcdir@,$ac_srcdir,;t t
7831s,@abs_srcdir@,$ac_abs_srcdir,;t t
7832s,@top_srcdir@,$ac_top_srcdir,;t t
7833s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7834s,@builddir@,$ac_builddir,;t t
7835s,@abs_builddir@,$ac_abs_builddir,;t t
7836s,@top_builddir@,$ac_top_builddir,;t t
7837s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7838s,@INSTALL@,$ac_INSTALL,;t t
7839" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7840  rm -f $tmp/stdin
7841  if test x"$ac_file" != x-; then
7842    mv $tmp/out $ac_file
7843  else
7844    cat $tmp/out
7845    rm -f $tmp/out
7846  fi
7847
7848done
7849_ACEOF
7850cat >>$CONFIG_STATUS <<\_ACEOF
7851
7852#
7853# CONFIG_HEADER section.
7854#
7855
7856# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7857# NAME is the cpp macro being defined and VALUE is the value it is being given.
7858#
7859# ac_d sets the value in "#define NAME VALUE" lines.
7860ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
7861ac_dB='[ 	].*$,\1#\2'
7862ac_dC=' '
7863ac_dD=',;t'
7864# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7865ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
7866ac_uB='$,\1#\2define\3'
7867ac_uC=' '
7868ac_uD=',;t'
7869
7870for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7871  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7872  case $ac_file in
7873  - | *:- | *:-:* ) # input from stdin
7874        cat >$tmp/stdin
7875        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7876        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7877  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7878        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7879  * )   ac_file_in=$ac_file.in ;;
7880  esac
7881
7882  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7883echo "$as_me: creating $ac_file" >&6;}
7884
7885  # First look for the input files in the build tree, otherwise in the
7886  # src tree.
7887  ac_file_inputs=`IFS=:
7888    for f in $ac_file_in; do
7889      case $f in
7890      -) echo $tmp/stdin ;;
7891      [\\/$]*)
7892         # Absolute (can't be DOS-style, as IFS=:)
7893         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7894echo "$as_me: error: cannot find input file: $f" >&2;}
7895   { (exit 1); exit 1; }; }
7896         echo $f;;
7897      *) # Relative
7898         if test -f "$f"; then
7899           # Build tree
7900           echo $f
7901         elif test -f "$srcdir/$f"; then
7902           # Source tree
7903           echo $srcdir/$f
7904         else
7905           # /dev/null tree
7906           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7907echo "$as_me: error: cannot find input file: $f" >&2;}
7908   { (exit 1); exit 1; }; }
7909         fi;;
7910      esac
7911    done` || { (exit 1); exit 1; }
7912  # Remove the trailing spaces.
7913  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
7914
7915_ACEOF
7916
7917# Transform confdefs.h into two sed scripts, `conftest.defines' and
7918# `conftest.undefs', that substitutes the proper values into
7919# config.h.in to produce config.h.  The first handles `#define'
7920# templates, and the second `#undef' templates.
7921# And first: Protect against being on the right side of a sed subst in
7922# config.status.  Protect against being in an unquoted here document
7923# in config.status.
7924rm -f conftest.defines conftest.undefs
7925# Using a here document instead of a string reduces the quoting nightmare.
7926# Putting comments in sed scripts is not portable.
7927#
7928# `end' is used to avoid that the second main sed command (meant for
7929# 0-ary CPP macros) applies to n-ary macro definitions.
7930# See the Autoconf documentation for `clear'.
7931cat >confdef2sed.sed <<\_ACEOF
7932s/[\\&,]/\\&/g
7933s,[\\$`],\\&,g
7934t clear
7935: clear
7936s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7937t end
7938s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7939: end
7940_ACEOF
7941# If some macros were called several times there might be several times
7942# the same #defines, which is useless.  Nevertheless, we may not want to
7943# sort them, since we want the *last* AC-DEFINE to be honored.
7944uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7945sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7946rm -f confdef2sed.sed
7947
7948# This sed command replaces #undef with comments.  This is necessary, for
7949# example, in the case of _POSIX_SOURCE, which is predefined and required
7950# on some systems where configure will not decide to define it.
7951cat >>conftest.undefs <<\_ACEOF
7952s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7953_ACEOF
7954
7955# Break up conftest.defines because some shells have a limit on the size
7956# of here documents, and old seds have small limits too (100 cmds).
7957echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7958echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7959echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7960echo '  :' >>$CONFIG_STATUS
7961rm -f conftest.tail
7962while grep . conftest.defines >/dev/null
7963do
7964  # Write a limited-size here document to $tmp/defines.sed.
7965  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7966  # Speed up: don't consider the non `#define' lines.
7967  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
7968  # Work around the forget-to-reset-the-flag bug.
7969  echo 't clr' >>$CONFIG_STATUS
7970  echo ': clr' >>$CONFIG_STATUS
7971  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7972  echo 'CEOF
7973  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7974  rm -f $tmp/in
7975  mv $tmp/out $tmp/in
7976' >>$CONFIG_STATUS
7977  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7978  rm -f conftest.defines
7979  mv conftest.tail conftest.defines
7980done
7981rm -f conftest.defines
7982echo '  fi # grep' >>$CONFIG_STATUS
7983echo >>$CONFIG_STATUS
7984
7985# Break up conftest.undefs because some shells have a limit on the size
7986# of here documents, and old seds have small limits too (100 cmds).
7987echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7988rm -f conftest.tail
7989while grep . conftest.undefs >/dev/null
7990do
7991  # Write a limited-size here document to $tmp/undefs.sed.
7992  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7993  # Speed up: don't consider the non `#undef'
7994  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
7995  # Work around the forget-to-reset-the-flag bug.
7996  echo 't clr' >>$CONFIG_STATUS
7997  echo ': clr' >>$CONFIG_STATUS
7998  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7999  echo 'CEOF
8000  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8001  rm -f $tmp/in
8002  mv $tmp/out $tmp/in
8003' >>$CONFIG_STATUS
8004  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8005  rm -f conftest.undefs
8006  mv conftest.tail conftest.undefs
8007done
8008rm -f conftest.undefs
8009
8010cat >>$CONFIG_STATUS <<\_ACEOF
8011  # Let's still pretend it is `configure' which instantiates (i.e., don't
8012  # use $as_me), people would be surprised to read:
8013  #    /* config.h.  Generated by config.status.  */
8014  if test x"$ac_file" = x-; then
8015    echo "/* Generated by configure.  */" >$tmp/config.h
8016  else
8017    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8018  fi
8019  cat $tmp/in >>$tmp/config.h
8020  rm -f $tmp/in
8021  if test x"$ac_file" != x-; then
8022    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8023      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8024echo "$as_me: $ac_file is unchanged" >&6;}
8025    else
8026      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8027$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8028         X"$ac_file" : 'X\(//\)[^/]' \| \
8029         X"$ac_file" : 'X\(//\)$' \| \
8030         X"$ac_file" : 'X\(/\)' \| \
8031         .     : '\(.\)' 2>/dev/null ||
8032echo X"$ac_file" |
8033    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8034  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8035  	  /^X\(\/\/\)$/{ s//\1/; q; }
8036  	  /^X\(\/\).*/{ s//\1/; q; }
8037  	  s/.*/./; q'`
8038      { if $as_mkdir_p; then
8039    mkdir -p "$ac_dir"
8040  else
8041    as_dir="$ac_dir"
8042    as_dirs=
8043    while test ! -d "$as_dir"; do
8044      as_dirs="$as_dir $as_dirs"
8045      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8046$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8047         X"$as_dir" : 'X\(//\)[^/]' \| \
8048         X"$as_dir" : 'X\(//\)$' \| \
8049         X"$as_dir" : 'X\(/\)' \| \
8050         .     : '\(.\)' 2>/dev/null ||
8051echo X"$as_dir" |
8052    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8053  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8054  	  /^X\(\/\/\)$/{ s//\1/; q; }
8055  	  /^X\(\/\).*/{ s//\1/; q; }
8056  	  s/.*/./; q'`
8057    done
8058    test ! -n "$as_dirs" || mkdir $as_dirs
8059  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8060echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8061   { (exit 1); exit 1; }; }; }
8062
8063      rm -f $ac_file
8064      mv $tmp/config.h $ac_file
8065    fi
8066  else
8067    cat $tmp/config.h
8068    rm -f $tmp/config.h
8069  fi
8070done
8071_ACEOF
8072
8073cat >>$CONFIG_STATUS <<\_ACEOF
8074
8075{ (exit 0); exit 0; }
8076_ACEOF
8077chmod +x $CONFIG_STATUS
8078ac_clean_files=$ac_clean_files_save
8079
8080
8081# configure is writing to config.log, and then calls config.status.
8082# config.status does its own redirection, appending to config.log.
8083# Unfortunately, on DOS this fails, as config.log is still kept open
8084# by configure, so config.status won't be able to write to it; its
8085# output is simply discarded.  So we exec the FD to /dev/null,
8086# effectively closing config.log, so it can be properly (re)opened and
8087# appended to by config.status.  When coming back to configure, we
8088# need to make the FD available again.
8089if test "$no_create" != yes; then
8090  ac_cs_success=:
8091  ac_config_status_args=
8092  test "$silent" = yes &&
8093    ac_config_status_args="$ac_config_status_args --quiet"
8094  exec 5>/dev/null
8095  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8096  exec 5>>config.log
8097  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8098  # would make configure fail if this is the last instruction.
8099  $ac_cs_success || { (exit 1); exit 1; }
8100fi
8101
8102
8103