1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for tarsnap 1.0.39.
4#
5# Report bugs to <cperciva@tarsnap.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: cperciva@tarsnap.com about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='tarsnap'
582PACKAGE_TARNAME='tarsnap'
583PACKAGE_VERSION='1.0.39'
584PACKAGE_STRING='tarsnap 1.0.39'
585PACKAGE_BUGREPORT='cperciva@tarsnap.com'
586PACKAGE_URL=''
587
588ac_unique_file="libarchive"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628INSTALL_BASH_COMPLETION_FALSE
629INSTALL_BASH_COMPLETION_TRUE
630BASH_COMPLETION_DIR
631BASH_COMPLETION_LIBS
632BASH_COMPLETION_CFLAGS
633PKG_CONFIG_LIBDIR
634PKG_CONFIG_PATH
635PKG_CONFIG
636HAS_PKG_CONFIG
637INSTALL_CONF_NO_SAMPLE_FALSE
638INSTALL_CONF_NO_SAMPLE_TRUE
639LIBOBJS
640FREEBSD_PORTRANGE_BUG
641BROKEN_TCP_NOPUSH
642HAVE_EXT2FS_EXT2_FS_H
643MANVER
644PROG_LDADD_EXTRA
645MAINT
646MAINTAINER_MODE_FALSE
647MAINTAINER_MODE_TRUE
648EGREP
649GREP
650CPP
651RANLIB
652am__fastdepCC_FALSE
653am__fastdepCC_TRUE
654CCDEPMODE
655am__nodep
656AMDEPBACKSLASH
657AMDEP_FALSE
658AMDEP_TRUE
659am__quote
660am__include
661DEPDIR
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669INC_CYGWIN_FILES_FALSE
670INC_CYGWIN_FILES_TRUE
671INC_WINDOWS_FILES_FALSE
672INC_WINDOWS_FILES_TRUE
673LIBARCHIVE_VERSION_NUMBER
674LIBARCHIVE_VERSION_STRING
675AM_BACKSLASH
676AM_DEFAULT_VERBOSITY
677AM_DEFAULT_V
678AM_V
679am__untar
680am__tar
681AMTAR
682am__leading_dot
683SET_MAKE
684AWK
685mkdir_p
686MKDIR_P
687INSTALL_STRIP_PROGRAM
688STRIP
689install_sh
690MAKEINFO
691AUTOHEADER
692AUTOMAKE
693AUTOCONF
694ACLOCAL
695VERSION
696PACKAGE
697CYGPATH_W
698am__isrc
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702target_os
703target_vendor
704target_cpu
705target
706host_os
707host_vendor
708host_cpu
709host
710build_os
711build_vendor
712build_cpu
713build
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_silent_rules
756enable_dependency_tracking
757enable_maintainer_mode
758with_bz2lib
759with_lzmadec
760with_lzma
761enable_xattr
762enable_acl
763enable_largefile
764with_conf_no_sample
765with_bash_completion_dir
766enable_compiler_warnings
767'
768      ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
776CPP
777PKG_CONFIG
778PKG_CONFIG_PATH
779PKG_CONFIG_LIBDIR
780BASH_COMPLETION_CFLAGS
781BASH_COMPLETION_LIBS'
782
783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
787ac_unrecognized_opts=
788ac_unrecognized_sep=
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
811# (The list follows the same order as the GNU Coding Standards.)
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836  # If the previous option needs an argument, assign it.
837  if test -n "$ac_prev"; then
838    eval $ac_prev=\$ac_option
839    ac_prev=
840    continue
841  fi
842
843  case $ac_option in
844  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845  *=)   ac_optarg= ;;
846  *)    ac_optarg=yes ;;
847  esac
848
849  # Accept the important Cygnus configure options, so we can diagnose typos.
850
851  case $ac_dashdash$ac_option in
852  --)
853    ac_dashdash=yes ;;
854
855  -bindir | --bindir | --bindi | --bind | --bin | --bi)
856    ac_prev=bindir ;;
857  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858    bindir=$ac_optarg ;;
859
860  -build | --build | --buil | --bui | --bu)
861    ac_prev=build_alias ;;
862  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863    build_alias=$ac_optarg ;;
864
865  -cache-file | --cache-file | --cache-fil | --cache-fi \
866  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867    ac_prev=cache_file ;;
868  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870    cache_file=$ac_optarg ;;
871
872  --config-cache | -C)
873    cache_file=config.cache ;;
874
875  -datadir | --datadir | --datadi | --datad)
876    ac_prev=datadir ;;
877  -datadir=* | --datadir=* | --datadi=* | --datad=*)
878    datadir=$ac_optarg ;;
879
880  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881  | --dataroo | --dataro | --datar)
882    ac_prev=datarootdir ;;
883  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885    datarootdir=$ac_optarg ;;
886
887  -disable-* | --disable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=no ;;
902
903  -docdir | --docdir | --docdi | --doc | --do)
904    ac_prev=docdir ;;
905  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906    docdir=$ac_optarg ;;
907
908  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909    ac_prev=dvidir ;;
910  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911    dvidir=$ac_optarg ;;
912
913  -enable-* | --enable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=\$ac_optarg ;;
928
929  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931  | --exec | --exe | --ex)
932    ac_prev=exec_prefix ;;
933  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935  | --exec=* | --exe=* | --ex=*)
936    exec_prefix=$ac_optarg ;;
937
938  -gas | --gas | --ga | --g)
939    # Obsolete; use --with-gas.
940    with_gas=yes ;;
941
942  -help | --help | --hel | --he | -h)
943    ac_init_help=long ;;
944  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945    ac_init_help=recursive ;;
946  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947    ac_init_help=short ;;
948
949  -host | --host | --hos | --ho)
950    ac_prev=host_alias ;;
951  -host=* | --host=* | --hos=* | --ho=*)
952    host_alias=$ac_optarg ;;
953
954  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955    ac_prev=htmldir ;;
956  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957  | --ht=*)
958    htmldir=$ac_optarg ;;
959
960  -includedir | --includedir | --includedi | --included | --include \
961  | --includ | --inclu | --incl | --inc)
962    ac_prev=includedir ;;
963  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964  | --includ=* | --inclu=* | --incl=* | --inc=*)
965    includedir=$ac_optarg ;;
966
967  -infodir | --infodir | --infodi | --infod | --info | --inf)
968    ac_prev=infodir ;;
969  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970    infodir=$ac_optarg ;;
971
972  -libdir | --libdir | --libdi | --libd)
973    ac_prev=libdir ;;
974  -libdir=* | --libdir=* | --libdi=* | --libd=*)
975    libdir=$ac_optarg ;;
976
977  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978  | --libexe | --libex | --libe)
979    ac_prev=libexecdir ;;
980  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981  | --libexe=* | --libex=* | --libe=*)
982    libexecdir=$ac_optarg ;;
983
984  -localedir | --localedir | --localedi | --localed | --locale)
985    ac_prev=localedir ;;
986  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987    localedir=$ac_optarg ;;
988
989  -localstatedir | --localstatedir | --localstatedi | --localstated \
990  | --localstate | --localstat | --localsta | --localst | --locals)
991    ac_prev=localstatedir ;;
992  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994    localstatedir=$ac_optarg ;;
995
996  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997    ac_prev=mandir ;;
998  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999    mandir=$ac_optarg ;;
1000
1001  -nfp | --nfp | --nf)
1002    # Obsolete; use --without-fp.
1003    with_fp=no ;;
1004
1005  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006  | --no-cr | --no-c | -n)
1007    no_create=yes ;;
1008
1009  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011    no_recursion=yes ;;
1012
1013  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015  | --oldin | --oldi | --old | --ol | --o)
1016    ac_prev=oldincludedir ;;
1017  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020    oldincludedir=$ac_optarg ;;
1021
1022  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023    ac_prev=prefix ;;
1024  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025    prefix=$ac_optarg ;;
1026
1027  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028  | --program-pre | --program-pr | --program-p)
1029    ac_prev=program_prefix ;;
1030  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032    program_prefix=$ac_optarg ;;
1033
1034  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035  | --program-suf | --program-su | --program-s)
1036    ac_prev=program_suffix ;;
1037  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039    program_suffix=$ac_optarg ;;
1040
1041  -program-transform-name | --program-transform-name \
1042  | --program-transform-nam | --program-transform-na \
1043  | --program-transform-n | --program-transform- \
1044  | --program-transform | --program-transfor \
1045  | --program-transfo | --program-transf \
1046  | --program-trans | --program-tran \
1047  | --progr-tra | --program-tr | --program-t)
1048    ac_prev=program_transform_name ;;
1049  -program-transform-name=* | --program-transform-name=* \
1050  | --program-transform-nam=* | --program-transform-na=* \
1051  | --program-transform-n=* | --program-transform-=* \
1052  | --program-transform=* | --program-transfor=* \
1053  | --program-transfo=* | --program-transf=* \
1054  | --program-trans=* | --program-tran=* \
1055  | --progr-tra=* | --program-tr=* | --program-t=*)
1056    program_transform_name=$ac_optarg ;;
1057
1058  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059    ac_prev=pdfdir ;;
1060  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061    pdfdir=$ac_optarg ;;
1062
1063  -psdir | --psdir | --psdi | --psd | --ps)
1064    ac_prev=psdir ;;
1065  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066    psdir=$ac_optarg ;;
1067
1068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069  | -silent | --silent | --silen | --sile | --sil)
1070    silent=yes ;;
1071
1072  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073    ac_prev=sbindir ;;
1074  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075  | --sbi=* | --sb=*)
1076    sbindir=$ac_optarg ;;
1077
1078  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080  | --sharedst | --shareds | --shared | --share | --shar \
1081  | --sha | --sh)
1082    ac_prev=sharedstatedir ;;
1083  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086  | --sha=* | --sh=*)
1087    sharedstatedir=$ac_optarg ;;
1088
1089  -site | --site | --sit)
1090    ac_prev=site ;;
1091  -site=* | --site=* | --sit=*)
1092    site=$ac_optarg ;;
1093
1094  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095    ac_prev=srcdir ;;
1096  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097    srcdir=$ac_optarg ;;
1098
1099  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100  | --syscon | --sysco | --sysc | --sys | --sy)
1101    ac_prev=sysconfdir ;;
1102  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104    sysconfdir=$ac_optarg ;;
1105
1106  -target | --target | --targe | --targ | --tar | --ta | --t)
1107    ac_prev=target_alias ;;
1108  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109    target_alias=$ac_optarg ;;
1110
1111  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112    verbose=yes ;;
1113
1114  -version | --version | --versio | --versi | --vers | -V)
1115    ac_init_version=: ;;
1116
1117  -with-* | --with-*)
1118    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119    # Reject names that are not valid shell variable names.
1120    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121      as_fn_error $? "invalid package name: $ac_useropt"
1122    ac_useropt_orig=$ac_useropt
1123    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124    case $ac_user_opts in
1125      *"
1126"with_$ac_useropt"
1127"*) ;;
1128      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129	 ac_unrecognized_sep=', ';;
1130    esac
1131    eval with_$ac_useropt=\$ac_optarg ;;
1132
1133  -without-* | --without-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=no ;;
1148
1149  --x)
1150    # Obsolete; use --with-x.
1151    with_x=yes ;;
1152
1153  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154  | --x-incl | --x-inc | --x-in | --x-i)
1155    ac_prev=x_includes ;;
1156  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158    x_includes=$ac_optarg ;;
1159
1160  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162    ac_prev=x_libraries ;;
1163  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165    x_libraries=$ac_optarg ;;
1166
1167  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information"
1169    ;;
1170
1171  *=*)
1172    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173    # Reject names that are not valid shell variable names.
1174    case $ac_envvar in #(
1175      '' | [0-9]* | *[!_$as_cr_alnum]* )
1176      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177    esac
1178    eval $ac_envvar=\$ac_optarg
1179    export $ac_envvar ;;
1180
1181  *)
1182    # FIXME: should be removed in autoconf 3.0.
1183    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187    ;;
1188
1189  esac
1190done
1191
1192if test -n "$ac_prev"; then
1193  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194  as_fn_error $? "missing argument to $ac_option"
1195fi
1196
1197if test -n "$ac_unrecognized_opts"; then
1198  case $enable_option_checking in
1199    no) ;;
1200    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202  esac
1203fi
1204
1205# Check all directory arguments for consistency.
1206for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207		datadir sysconfdir sharedstatedir localstatedir includedir \
1208		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209		libdir localedir mandir
1210do
1211  eval ac_val=\$$ac_var
1212  # Remove trailing slashes.
1213  case $ac_val in
1214    */ )
1215      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216      eval $ac_var=\$ac_val;;
1217  esac
1218  # Be sure to have absolute directory names.
1219  case $ac_val in
1220    [\\/$]* | ?:[\\/]* )  continue;;
1221    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222  esac
1223  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235  if test "x$build_alias" = x; then
1236    cross_compiling=maybe
1237  elif test "x$build_alias" != "x$host_alias"; then
1238    cross_compiling=yes
1239  fi
1240fi
1241
1242ac_tool_prefix=
1243test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245test "$silent" = yes && exec 6>/dev/null
1246
1247
1248ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249ac_ls_di=`ls -di .` &&
1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251  as_fn_error $? "working directory cannot be determined"
1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253  as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258  ac_srcdir_defaulted=yes
1259  # Try the directory containing this script, then the parent directory.
1260  ac_confdir=`$as_dirname -- "$as_myself" ||
1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262	 X"$as_myself" : 'X\(//\)[^/]' \| \
1263	 X"$as_myself" : 'X\(//\)$' \| \
1264	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265$as_echo X"$as_myself" |
1266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\/\)[^/].*/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\).*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  s/.*/./; q'`
1283  srcdir=$ac_confdir
1284  if test ! -r "$srcdir/$ac_unique_file"; then
1285    srcdir=..
1286  fi
1287else
1288  ac_srcdir_defaulted=no
1289fi
1290if test ! -r "$srcdir/$ac_unique_file"; then
1291  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293fi
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
1296	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297	pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300  srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_env_${ac_var}_value=\$${ac_var}
1311  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
1314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319  # Omit some internal or obsolete options to make the list less imposing.
1320  # This message is too long to be a string in the A/UX 3.1 sh.
1321  cat <<_ACEOF
1322\`configure' configures tarsnap 1.0.39 to adapt to many kinds of systems.
1323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332  -h, --help              display this help and exit
1333      --help=short        display options specific to this package
1334      --help=recursive    display the short help of all the included packages
1335  -V, --version           display version information and exit
1336  -q, --quiet, --silent   do not print \`checking ...' messages
1337      --cache-file=FILE   cache test results in FILE [disabled]
1338  -C, --config-cache      alias for \`--cache-file=config.cache'
1339  -n, --no-create         do not create output files
1340      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342Installation directories:
1343  --prefix=PREFIX         install architecture-independent files in PREFIX
1344                          [$ac_default_prefix]
1345  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                          [PREFIX]
1347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
1356  --bindir=DIR            user executables [EPREFIX/bin]
1357  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1358  --libexecdir=DIR        program executables [EPREFIX/libexec]
1359  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1360  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1361  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1362  --libdir=DIR            object code libraries [EPREFIX/lib]
1363  --includedir=DIR        C header files [PREFIX/include]
1364  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1365  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1366  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1367  --infodir=DIR           info documentation [DATAROOTDIR/info]
1368  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1369  --mandir=DIR            man documentation [DATAROOTDIR/man]
1370  --docdir=DIR            documentation root [DATAROOTDIR/doc/tarsnap]
1371  --htmldir=DIR           html documentation [DOCDIR]
1372  --dvidir=DIR            dvi documentation [DOCDIR]
1373  --pdfdir=DIR            pdf documentation [DOCDIR]
1374  --psdir=DIR             ps documentation [DOCDIR]
1375_ACEOF
1376
1377  cat <<\_ACEOF
1378
1379Program names:
1380  --program-prefix=PREFIX            prepend PREFIX to installed program names
1381  --program-suffix=SUFFIX            append SUFFIX to installed program names
1382  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384System types:
1385  --build=BUILD     configure for building on BUILD [guessed]
1386  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387  --target=TARGET   configure for building compilers for TARGET [HOST]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392  case $ac_init_help in
1393     short | recursive ) echo "Configuration of tarsnap 1.0.39:";;
1394   esac
1395  cat <<\_ACEOF
1396
1397Optional Features:
1398  --disable-option-checking  ignore unrecognized --enable/--with options
1399  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401  --enable-silent-rules   less verbose build output (undo: "make V=1")
1402  --disable-silent-rules  verbose build output (undo: "make V=0")
1403  --enable-dependency-tracking
1404                          do not reject slow dependency extractors
1405  --disable-dependency-tracking
1406                          speeds up one-time build
1407  --enable-maintainer-mode
1408                          enable make rules and dependencies not useful (and
1409                          sometimes confusing) to the casual installer
1410  --disable-xattr         Disable Extended Attributes support (default: check)
1411  --disable-acl           Disable ACL support (default: check)
1412  --disable-largefile     omit support for large files
1413  --disable-compiler-warnings
1414                          Do not request compiler warnings. [default=enabled]
1415
1416Optional Packages:
1417  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419  --without-bz2lib        Don't build support for bzip2 through bz2lib
1420  --without-lzmadec       Don't build support for lzma through lzmadec
1421  --without-lzma          Don't build support for xz through lzma
1422  --with-conf-no-sample   Install tarsnap.conf without the .sample suffix.
1423  --with-bash-completion-dir[=DIRNAME]
1424                          Install bash completion script. [default=no]
1425
1426Some influential environment variables:
1427  CC          C compiler command
1428  CFLAGS      C compiler flags
1429  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1430              nonstandard directory <lib dir>
1431  LIBS        libraries to pass to the linker, e.g. -l<library>
1432  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433              you have headers in a nonstandard directory <include dir>
1434  CPP         C preprocessor
1435  PKG_CONFIG  path to pkg-config utility
1436  PKG_CONFIG_PATH
1437              directories to add to pkg-config's search path
1438  PKG_CONFIG_LIBDIR
1439              path overriding pkg-config's built-in search path
1440  BASH_COMPLETION_CFLAGS
1441              C compiler flags for BASH_COMPLETION, overriding pkg-config
1442  BASH_COMPLETION_LIBS
1443              linker flags for BASH_COMPLETION, overriding pkg-config
1444
1445Use these variables to override the choices made by `configure' or to help
1446it to find libraries and programs with nonstandard names/locations.
1447
1448Report bugs to <cperciva@tarsnap.com>.
1449_ACEOF
1450ac_status=$?
1451fi
1452
1453if test "$ac_init_help" = "recursive"; then
1454  # If there are subdirs, report their specific --help.
1455  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456    test -d "$ac_dir" ||
1457      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458      continue
1459    ac_builddir=.
1460
1461case "$ac_dir" in
1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463*)
1464  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465  # A ".." for each directory in $ac_dir_suffix.
1466  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467  case $ac_top_builddir_sub in
1468  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470  esac ;;
1471esac
1472ac_abs_top_builddir=$ac_pwd
1473ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474# for backward compatibility:
1475ac_top_builddir=$ac_top_build_prefix
1476
1477case $srcdir in
1478  .)  # We are building in place.
1479    ac_srcdir=.
1480    ac_top_srcdir=$ac_top_builddir_sub
1481    ac_abs_top_srcdir=$ac_pwd ;;
1482  [\\/]* | ?:[\\/]* )  # Absolute name.
1483    ac_srcdir=$srcdir$ac_dir_suffix;
1484    ac_top_srcdir=$srcdir
1485    ac_abs_top_srcdir=$srcdir ;;
1486  *) # Relative name.
1487    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488    ac_top_srcdir=$ac_top_build_prefix$srcdir
1489    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490esac
1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493    cd "$ac_dir" || { ac_status=$?; continue; }
1494    # Check for guested configure.
1495    if test -f "$ac_srcdir/configure.gnu"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498    elif test -f "$ac_srcdir/configure"; then
1499      echo &&
1500      $SHELL "$ac_srcdir/configure" --help=recursive
1501    else
1502      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503    fi || ac_status=$?
1504    cd "$ac_pwd" || { ac_status=$?; break; }
1505  done
1506fi
1507
1508test -n "$ac_init_help" && exit $ac_status
1509if $ac_init_version; then
1510  cat <<\_ACEOF
1511tarsnap configure 1.0.39
1512generated by GNU Autoconf 2.69
1513
1514Copyright (C) 2012 Free Software Foundation, Inc.
1515This configure script is free software; the Free Software Foundation
1516gives unlimited permission to copy, distribute and modify it.
1517_ACEOF
1518  exit
1519fi
1520
1521## ------------------------ ##
1522## Autoconf initialization. ##
1523## ------------------------ ##
1524
1525# ac_fn_c_try_compile LINENO
1526# --------------------------
1527# Try to compile conftest.$ac_ext, and return whether this succeeded.
1528ac_fn_c_try_compile ()
1529{
1530  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531  rm -f conftest.$ac_objext
1532  if { { ac_try="$ac_compile"
1533case "(($ac_try" in
1534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535  *) ac_try_echo=$ac_try;;
1536esac
1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538$as_echo "$ac_try_echo"; } >&5
1539  (eval "$ac_compile") 2>conftest.err
1540  ac_status=$?
1541  if test -s conftest.err; then
1542    grep -v '^ *+' conftest.err >conftest.er1
1543    cat conftest.er1 >&5
1544    mv -f conftest.er1 conftest.err
1545  fi
1546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547  test $ac_status = 0; } && {
1548	 test -z "$ac_c_werror_flag" ||
1549	 test ! -s conftest.err
1550       } && test -s conftest.$ac_objext; then :
1551  ac_retval=0
1552else
1553  $as_echo "$as_me: failed program was:" >&5
1554sed 's/^/| /' conftest.$ac_ext >&5
1555
1556	ac_retval=1
1557fi
1558  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559  as_fn_set_status $ac_retval
1560
1561} # ac_fn_c_try_compile
1562
1563# ac_fn_c_try_cpp LINENO
1564# ----------------------
1565# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_cpp ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  if { { ac_try="$ac_cpp conftest.$ac_ext"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } > conftest.i && {
1585	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       }; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593    ac_retval=1
1594fi
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596  as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_cpp
1599
1600# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1601# -------------------------------------------------------
1602# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1603# the include files in INCLUDES and setting the cache variable VAR
1604# accordingly.
1605ac_fn_c_check_header_mongrel ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  if eval \${$3+:} false; then :
1609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610$as_echo_n "checking for $2... " >&6; }
1611if eval \${$3+:} false; then :
1612  $as_echo_n "(cached) " >&6
1613fi
1614eval ac_res=\$$3
1615	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616$as_echo "$ac_res" >&6; }
1617else
1618  # Is the header compilable?
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1620$as_echo_n "checking $2 usability... " >&6; }
1621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"; then :
1627  ac_header_compiler=yes
1628else
1629  ac_header_compiler=no
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1633$as_echo "$ac_header_compiler" >&6; }
1634
1635# Is the header present?
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1637$as_echo_n "checking $2 presence... " >&6; }
1638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_cpp "$LINENO"; then :
1643  ac_header_preproc=yes
1644else
1645  ac_header_preproc=no
1646fi
1647rm -f conftest.err conftest.i conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1649$as_echo "$ac_header_preproc" >&6; }
1650
1651# So?  What about this header?
1652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653  yes:no: )
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1655$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658    ;;
1659  no:yes:* )
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1661$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1663$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1665$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1667$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670( $as_echo "## ----------------------------------- ##
1671## Report this to cperciva@tarsnap.com ##
1672## ----------------------------------- ##"
1673     ) | sed "s/^/$as_me: WARNING:     /" >&2
1674    ;;
1675esac
1676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677$as_echo_n "checking for $2... " >&6; }
1678if eval \${$3+:} false; then :
1679  $as_echo_n "(cached) " >&6
1680else
1681  eval "$3=\$ac_header_compiler"
1682fi
1683eval ac_res=\$$3
1684	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685$as_echo "$ac_res" >&6; }
1686fi
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689} # ac_fn_c_check_header_mongrel
1690
1691# ac_fn_c_try_run LINENO
1692# ----------------------
1693# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694# that executables *can* be run.
1695ac_fn_c_try_run ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  if { { ac_try="$ac_link"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_link") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709  { { case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_try") 2>&5
1716  ac_status=$?
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; }; }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: program exited with status $ac_status" >&5
1722       $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725       ac_retval=$ac_status
1726fi
1727  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729  as_fn_set_status $ac_retval
1730
1731} # ac_fn_c_try_run
1732
1733# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734# -------------------------------------------------------
1735# Tests whether HEADER exists and can be compiled using the include files in
1736# INCLUDES, setting the cache variable VAR accordingly.
1737ac_fn_c_check_header_compile ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if eval \${$3+:} false; then :
1743  $as_echo_n "(cached) " >&6
1744else
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747$4
1748#include <$2>
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751  eval "$3=yes"
1752else
1753  eval "$3=no"
1754fi
1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756fi
1757eval ac_res=\$$3
1758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762} # ac_fn_c_check_header_compile
1763
1764# ac_fn_c_try_link LINENO
1765# -----------------------
1766# Try to link conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_c_try_link ()
1768{
1769  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770  rm -f conftest.$ac_objext conftest$ac_exeext
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } && {
1787	 test -z "$ac_c_werror_flag" ||
1788	 test ! -s conftest.err
1789       } && test -s conftest$ac_exeext && {
1790	 test "$cross_compiling" = yes ||
1791	 test -x conftest$ac_exeext
1792       }; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802  # interfere with the next link command; also delete a directory that is
1803  # left behind by Apple's compiler.  We do this before executing the actions.
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806  as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_link
1809
1810# ac_fn_c_check_func LINENO FUNC VAR
1811# ----------------------------------
1812# Tests whether FUNC exists, setting the cache variable VAR accordingly
1813ac_fn_c_check_func ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if eval \${$3+:} false; then :
1819  $as_echo_n "(cached) " >&6
1820else
1821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1825#define $2 innocuous_$2
1826
1827/* System header to define __stub macros and hopefully few prototypes,
1828    which can conflict with char $2 (); below.
1829    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830    <limits.h> exists even on freestanding compilers.  */
1831
1832#ifdef __STDC__
1833# include <limits.h>
1834#else
1835# include <assert.h>
1836#endif
1837
1838#undef $2
1839
1840/* Override any GCC internal prototype to avoid an error.
1841   Use char because int might match the return type of a GCC
1842   builtin and then its argument prototype would still apply.  */
1843#ifdef __cplusplus
1844extern "C"
1845#endif
1846char $2 ();
1847/* The GNU C library defines this for functions which it implements
1848    to always fail with ENOSYS.  Some functions are actually named
1849    something starting with __ and the normal name is an alias.  */
1850#if defined __stub_$2 || defined __stub___$2
1851choke me
1852#endif
1853
1854int
1855main ()
1856{
1857return $2 ();
1858  ;
1859  return 0;
1860}
1861_ACEOF
1862if ac_fn_c_try_link "$LINENO"; then :
1863  eval "$3=yes"
1864else
1865  eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext \
1868    conftest$ac_exeext conftest.$ac_ext
1869fi
1870eval ac_res=\$$3
1871	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875} # ac_fn_c_check_func
1876
1877# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1878# -------------------------------------------
1879# Tests whether TYPE exists after having included INCLUDES, setting cache
1880# variable VAR accordingly.
1881ac_fn_c_check_type ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887  $as_echo_n "(cached) " >&6
1888else
1889  eval "$3=no"
1890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h.  */
1892$4
1893int
1894main ()
1895{
1896if (sizeof ($2))
1897	 return 0;
1898  ;
1899  return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$4
1906int
1907main ()
1908{
1909if (sizeof (($2)))
1910	    return 0;
1911  ;
1912  return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916
1917else
1918  eval "$3=yes"
1919fi
1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923fi
1924eval ac_res=\$$3
1925	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926$as_echo "$ac_res" >&6; }
1927  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929} # ac_fn_c_check_type
1930
1931# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1932# ----------------------------------------------------
1933# Tries to find if the field MEMBER exists in type AGGR, after including
1934# INCLUDES, setting cache variable VAR accordingly.
1935ac_fn_c_check_member ()
1936{
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1939$as_echo_n "checking for $2.$3... " >&6; }
1940if eval \${$4+:} false; then :
1941  $as_echo_n "(cached) " >&6
1942else
1943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945$5
1946int
1947main ()
1948{
1949static $2 ac_aggr;
1950if (ac_aggr.$3)
1951return 0;
1952  ;
1953  return 0;
1954}
1955_ACEOF
1956if ac_fn_c_try_compile "$LINENO"; then :
1957  eval "$4=yes"
1958else
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$5
1962int
1963main ()
1964{
1965static $2 ac_aggr;
1966if (sizeof ac_aggr.$3)
1967return 0;
1968  ;
1969  return 0;
1970}
1971_ACEOF
1972if ac_fn_c_try_compile "$LINENO"; then :
1973  eval "$4=yes"
1974else
1975  eval "$4=no"
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978fi
1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980fi
1981eval ac_res=\$$4
1982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986} # ac_fn_c_check_member
1987
1988# ac_fn_c_find_intX_t LINENO BITS VAR
1989# -----------------------------------
1990# Finds a signed integer type with width BITS, setting cache variable VAR
1991# accordingly.
1992ac_fn_c_find_intX_t ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1996$as_echo_n "checking for int$2_t... " >&6; }
1997if eval \${$3+:} false; then :
1998  $as_echo_n "(cached) " >&6
1999else
2000  eval "$3=no"
2001     # Order is important - never check a type that is potentially smaller
2002     # than half of the expected target width.
2003     for ac_type in int$2_t 'int' 'long int' \
2004	 'long long int' 'short int' 'signed char'; do
2005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$ac_includes_default
2008	     enum { N = $2 / 2 - 1 };
2009int
2010main ()
2011{
2012static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2013test_array [0] = 0;
2014return test_array [0];
2015
2016  ;
2017  return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$ac_includes_default
2024	        enum { N = $2 / 2 - 1 };
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2029		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2030test_array [0] = 0;
2031return test_array [0];
2032
2033  ;
2034  return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038
2039else
2040  case $ac_type in #(
2041  int$2_t) :
2042    eval "$3=yes" ;; #(
2043  *) :
2044    eval "$3=\$ac_type" ;;
2045esac
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050       if eval test \"x\$"$3"\" = x"no"; then :
2051
2052else
2053  break
2054fi
2055     done
2056fi
2057eval ac_res=\$$3
2058	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062} # ac_fn_c_find_intX_t
2063
2064# ac_fn_c_find_uintX_t LINENO BITS VAR
2065# ------------------------------------
2066# Finds an unsigned integer type with width BITS, setting cache variable VAR
2067# accordingly.
2068ac_fn_c_find_uintX_t ()
2069{
2070  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2072$as_echo_n "checking for uint$2_t... " >&6; }
2073if eval \${$3+:} false; then :
2074  $as_echo_n "(cached) " >&6
2075else
2076  eval "$3=no"
2077     # Order is important - never check a type that is potentially smaller
2078     # than half of the expected target width.
2079     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2080	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$ac_includes_default
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2088test_array [0] = 0;
2089return test_array [0];
2090
2091  ;
2092  return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096  case $ac_type in #(
2097  uint$2_t) :
2098    eval "$3=yes" ;; #(
2099  *) :
2100    eval "$3=\$ac_type" ;;
2101esac
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104       if eval test \"x\$"$3"\" = x"no"; then :
2105
2106else
2107  break
2108fi
2109     done
2110fi
2111eval ac_res=\$$3
2112	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113$as_echo "$ac_res" >&6; }
2114  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116} # ac_fn_c_find_uintX_t
2117
2118# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2119# ---------------------------------------------
2120# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2121# accordingly.
2122ac_fn_c_check_decl ()
2123{
2124  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125  as_decl_name=`echo $2|sed 's/ *(.*//'`
2126  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2129if eval \${$3+:} false; then :
2130  $as_echo_n "(cached) " >&6
2131else
2132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138#ifndef $as_decl_name
2139#ifdef __cplusplus
2140  (void) $as_decl_use;
2141#else
2142  (void) $as_decl_name;
2143#endif
2144#endif
2145
2146  ;
2147  return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151  eval "$3=yes"
2152else
2153  eval "$3=no"
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156fi
2157eval ac_res=\$$3
2158	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159$as_echo "$ac_res" >&6; }
2160  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161
2162} # ac_fn_c_check_decl
2163
2164# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165# --------------------------------------------
2166# Tries to find the compile-time value of EXPR in a program that includes
2167# INCLUDES, setting VAR accordingly. Returns whether the value could be
2168# computed
2169ac_fn_c_compute_int ()
2170{
2171  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172  if test "$cross_compiling" = yes; then
2173    # Depending upon the size, compute the lo and hi bounds.
2174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) >= 0)];
2181test_array [0] = 0;
2182return test_array [0];
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189  ac_lo=0 ac_mid=0
2190  while :; do
2191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h.  */
2193$4
2194int
2195main ()
2196{
2197static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198test_array [0] = 0;
2199return test_array [0];
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206  ac_hi=$ac_mid; break
2207else
2208  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209			if test $ac_lo -le $ac_mid; then
2210			  ac_lo= ac_hi=
2211			  break
2212			fi
2213			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216  done
2217else
2218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h.  */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) < 0)];
2225test_array [0] = 0;
2226return test_array [0];
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  ac_hi=-1 ac_mid=-1
2234  while :; do
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242test_array [0] = 0;
2243return test_array [0];
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250  ac_lo=$ac_mid; break
2251else
2252  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253			if test $ac_mid -le $ac_hi; then
2254			  ac_lo= ac_hi=
2255			  break
2256			fi
2257			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258fi
2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260  done
2261else
2262  ac_lo= ac_hi=
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265fi
2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267# Binary search between lo and hi bounds.
2268while test "x$ac_lo" != "x$ac_hi"; do
2269  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h.  */
2272$4
2273int
2274main ()
2275{
2276static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277test_array [0] = 0;
2278return test_array [0];
2279
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285  ac_hi=$ac_mid
2286else
2287  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290done
2291case $ac_lo in #((
2292?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293'') ac_retval=1 ;;
2294esac
2295  else
2296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h.  */
2298$4
2299static long int longval () { return $2; }
2300static unsigned long int ulongval () { return $2; }
2301#include <stdio.h>
2302#include <stdlib.h>
2303int
2304main ()
2305{
2306
2307  FILE *f = fopen ("conftest.val", "w");
2308  if (! f)
2309    return 1;
2310  if (($2) < 0)
2311    {
2312      long int i = longval ();
2313      if (i != ($2))
2314	return 1;
2315      fprintf (f, "%ld", i);
2316    }
2317  else
2318    {
2319      unsigned long int i = ulongval ();
2320      if (i != ($2))
2321	return 1;
2322      fprintf (f, "%lu", i);
2323    }
2324  /* Do not output a trailing newline, as this causes \r\n confusion
2325     on some platforms.  */
2326  return ferror (f) || fclose (f) != 0;
2327
2328  ;
2329  return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_run "$LINENO"; then :
2333  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334else
2335  ac_retval=1
2336fi
2337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338  conftest.$ac_objext conftest.beam conftest.$ac_ext
2339rm -f conftest.val
2340
2341  fi
2342  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343  as_fn_set_status $ac_retval
2344
2345} # ac_fn_c_compute_int
2346cat >config.log <<_ACEOF
2347This file contains any messages produced by compilers while
2348running configure, to aid debugging if configure makes a mistake.
2349
2350It was created by tarsnap $as_me 1.0.39, which was
2351generated by GNU Autoconf 2.69.  Invocation command line was
2352
2353  $ $0 $@
2354
2355_ACEOF
2356exec 5>>config.log
2357{
2358cat <<_ASUNAME
2359## --------- ##
2360## Platform. ##
2361## --------- ##
2362
2363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2364uname -m = `(uname -m) 2>/dev/null || echo unknown`
2365uname -r = `(uname -r) 2>/dev/null || echo unknown`
2366uname -s = `(uname -s) 2>/dev/null || echo unknown`
2367uname -v = `(uname -v) 2>/dev/null || echo unknown`
2368
2369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2370/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2371
2372/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2373/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2375/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2376/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2377/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2378/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2379
2380_ASUNAME
2381
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387    $as_echo "PATH: $as_dir"
2388  done
2389IFS=$as_save_IFS
2390
2391} >&5
2392
2393cat >&5 <<_ACEOF
2394
2395
2396## ----------- ##
2397## Core tests. ##
2398## ----------- ##
2399
2400_ACEOF
2401
2402
2403# Keep a trace of the command line.
2404# Strip out --no-create and --no-recursion so they do not pile up.
2405# Strip out --silent because we don't want to record it for future runs.
2406# Also quote any args containing shell meta-characters.
2407# Make two passes to allow for proper duplicate-argument suppression.
2408ac_configure_args=
2409ac_configure_args0=
2410ac_configure_args1=
2411ac_must_keep_next=false
2412for ac_pass in 1 2
2413do
2414  for ac_arg
2415  do
2416    case $ac_arg in
2417    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2418    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2419    | -silent | --silent | --silen | --sile | --sil)
2420      continue ;;
2421    *\'*)
2422      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2423    esac
2424    case $ac_pass in
2425    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2426    2)
2427      as_fn_append ac_configure_args1 " '$ac_arg'"
2428      if test $ac_must_keep_next = true; then
2429	ac_must_keep_next=false # Got value, back to normal.
2430      else
2431	case $ac_arg in
2432	  *=* | --config-cache | -C | -disable-* | --disable-* \
2433	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2434	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2435	  | -with-* | --with-* | -without-* | --without-* | --x)
2436	    case "$ac_configure_args0 " in
2437	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2438	    esac
2439	    ;;
2440	  -* ) ac_must_keep_next=true ;;
2441	esac
2442      fi
2443      as_fn_append ac_configure_args " '$ac_arg'"
2444      ;;
2445    esac
2446  done
2447done
2448{ ac_configure_args0=; unset ac_configure_args0;}
2449{ ac_configure_args1=; unset ac_configure_args1;}
2450
2451# When interrupted or exit'd, cleanup temporary files, and complete
2452# config.log.  We remove comments because anyway the quotes in there
2453# would cause problems or look ugly.
2454# WARNING: Use '\'' to represent an apostrophe within the trap.
2455# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2456trap 'exit_status=$?
2457  # Save into config.log some information that might help in debugging.
2458  {
2459    echo
2460
2461    $as_echo "## ---------------- ##
2462## Cache variables. ##
2463## ---------------- ##"
2464    echo
2465    # The following way of writing the cache mishandles newlines in values,
2466(
2467  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2468    eval ac_val=\$$ac_var
2469    case $ac_val in #(
2470    *${as_nl}*)
2471      case $ac_var in #(
2472      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2473$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474      esac
2475      case $ac_var in #(
2476      _ | IFS | as_nl) ;; #(
2477      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2478      *) { eval $ac_var=; unset $ac_var;} ;;
2479      esac ;;
2480    esac
2481  done
2482  (set) 2>&1 |
2483    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2484    *${as_nl}ac_space=\ *)
2485      sed -n \
2486	"s/'\''/'\''\\\\'\'''\''/g;
2487	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488      ;; #(
2489    *)
2490      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491      ;;
2492    esac |
2493    sort
2494)
2495    echo
2496
2497    $as_echo "## ----------------- ##
2498## Output variables. ##
2499## ----------------- ##"
2500    echo
2501    for ac_var in $ac_subst_vars
2502    do
2503      eval ac_val=\$$ac_var
2504      case $ac_val in
2505      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2506      esac
2507      $as_echo "$ac_var='\''$ac_val'\''"
2508    done | sort
2509    echo
2510
2511    if test -n "$ac_subst_files"; then
2512      $as_echo "## ------------------- ##
2513## File substitutions. ##
2514## ------------------- ##"
2515      echo
2516      for ac_var in $ac_subst_files
2517      do
2518	eval ac_val=\$$ac_var
2519	case $ac_val in
2520	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521	esac
2522	$as_echo "$ac_var='\''$ac_val'\''"
2523      done | sort
2524      echo
2525    fi
2526
2527    if test -s confdefs.h; then
2528      $as_echo "## ----------- ##
2529## confdefs.h. ##
2530## ----------- ##"
2531      echo
2532      cat confdefs.h
2533      echo
2534    fi
2535    test "$ac_signal" != 0 &&
2536      $as_echo "$as_me: caught signal $ac_signal"
2537    $as_echo "$as_me: exit $exit_status"
2538  } >&5
2539  rm -f core *.core core.conftest.* &&
2540    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2541    exit $exit_status
2542' 0
2543for ac_signal in 1 2 13 15; do
2544  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545done
2546ac_signal=0
2547
2548# confdefs.h avoids OS command line length limits that DEFS can exceed.
2549rm -f -r conftest* confdefs.h
2550
2551$as_echo "/* confdefs.h */" > confdefs.h
2552
2553# Predefined preprocessor variables.
2554
2555cat >>confdefs.h <<_ACEOF
2556#define PACKAGE_NAME "$PACKAGE_NAME"
2557_ACEOF
2558
2559cat >>confdefs.h <<_ACEOF
2560#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2561_ACEOF
2562
2563cat >>confdefs.h <<_ACEOF
2564#define PACKAGE_VERSION "$PACKAGE_VERSION"
2565_ACEOF
2566
2567cat >>confdefs.h <<_ACEOF
2568#define PACKAGE_STRING "$PACKAGE_STRING"
2569_ACEOF
2570
2571cat >>confdefs.h <<_ACEOF
2572#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2573_ACEOF
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_URL "$PACKAGE_URL"
2577_ACEOF
2578
2579
2580# Let the site file select an alternate cache file if it wants to.
2581# Prefer an explicitly selected file to automatically selected ones.
2582ac_site_file1=NONE
2583ac_site_file2=NONE
2584if test -n "$CONFIG_SITE"; then
2585  # We do not want a PATH search for config.site.
2586  case $CONFIG_SITE in #((
2587    -*)  ac_site_file1=./$CONFIG_SITE;;
2588    */*) ac_site_file1=$CONFIG_SITE;;
2589    *)   ac_site_file1=./$CONFIG_SITE;;
2590  esac
2591elif test "x$prefix" != xNONE; then
2592  ac_site_file1=$prefix/share/config.site
2593  ac_site_file2=$prefix/etc/config.site
2594else
2595  ac_site_file1=$ac_default_prefix/share/config.site
2596  ac_site_file2=$ac_default_prefix/etc/config.site
2597fi
2598for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2599do
2600  test "x$ac_site_file" = xNONE && continue
2601  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2602    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2603$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2604    sed 's/^/| /' "$ac_site_file" >&5
2605    . "$ac_site_file" \
2606      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608as_fn_error $? "failed to load site script $ac_site_file
2609See \`config.log' for more details" "$LINENO" 5; }
2610  fi
2611done
2612
2613if test -r "$cache_file"; then
2614  # Some versions of bash will fail to source /dev/null (special files
2615  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2616  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2617    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2618$as_echo "$as_me: loading cache $cache_file" >&6;}
2619    case $cache_file in
2620      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2621      *)                      . "./$cache_file";;
2622    esac
2623  fi
2624else
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2626$as_echo "$as_me: creating cache $cache_file" >&6;}
2627  >$cache_file
2628fi
2629
2630# Check that the precious variables saved in the cache have kept the same
2631# value.
2632ac_cache_corrupted=false
2633for ac_var in $ac_precious_vars; do
2634  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2635  eval ac_new_set=\$ac_env_${ac_var}_set
2636  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2637  eval ac_new_val=\$ac_env_${ac_var}_value
2638  case $ac_old_set,$ac_new_set in
2639    set,)
2640      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2641$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2642      ac_cache_corrupted=: ;;
2643    ,set)
2644      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2645$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2646      ac_cache_corrupted=: ;;
2647    ,);;
2648    *)
2649      if test "x$ac_old_val" != "x$ac_new_val"; then
2650	# differences in whitespace do not lead to failure.
2651	ac_old_val_w=`echo x $ac_old_val`
2652	ac_new_val_w=`echo x $ac_new_val`
2653	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2654	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2655$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2656	  ac_cache_corrupted=:
2657	else
2658	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2659$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2660	  eval $ac_var=\$ac_old_val
2661	fi
2662	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2663$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2664	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2665$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2666      fi;;
2667  esac
2668  # Pass precious variables to config.status.
2669  if test "$ac_new_set" = set; then
2670    case $ac_new_val in
2671    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2672    *) ac_arg=$ac_var=$ac_new_val ;;
2673    esac
2674    case " $ac_configure_args " in
2675      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2676      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677    esac
2678  fi
2679done
2680if $ac_cache_corrupted; then
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2684$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2685  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2686fi
2687## -------------------- ##
2688## Main body of script. ##
2689## -------------------- ##
2690
2691ac_ext=c
2692ac_cpp='$CPP $CPPFLAGS'
2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696
2697
2698# Make sure the srcdir contains "libarchive" directory
2699
2700# Use auxiliary subscripts from this subdirectory (cleans up root)
2701ac_aux_dir=
2702for ac_dir in config.aux "$srcdir"/config.aux; do
2703  if test -f "$ac_dir/install-sh"; then
2704    ac_aux_dir=$ac_dir
2705    ac_install_sh="$ac_aux_dir/install-sh -c"
2706    break
2707  elif test -f "$ac_dir/install.sh"; then
2708    ac_aux_dir=$ac_dir
2709    ac_install_sh="$ac_aux_dir/install.sh -c"
2710    break
2711  elif test -f "$ac_dir/shtool"; then
2712    ac_aux_dir=$ac_dir
2713    ac_install_sh="$ac_aux_dir/shtool install -c"
2714    break
2715  fi
2716done
2717if test -z "$ac_aux_dir"; then
2718  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config.aux \"$srcdir\"/config.aux" "$LINENO" 5
2719fi
2720
2721# These three variables are undocumented and unsupported,
2722# and are intended to be withdrawn in a future Autoconf release.
2723# They can cause serious problems if a builder's source tree is in a directory
2724# whose full name contains unusual characters.
2725ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2726ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2727ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2728
2729
2730# Check for host and target type
2731# Make sure we can run config.sub.
2732$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2733  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2734
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2736$as_echo_n "checking build system type... " >&6; }
2737if ${ac_cv_build+:} false; then :
2738  $as_echo_n "(cached) " >&6
2739else
2740  ac_build_alias=$build_alias
2741test "x$ac_build_alias" = x &&
2742  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2743test "x$ac_build_alias" = x &&
2744  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2745ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2746  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2747
2748fi
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2750$as_echo "$ac_cv_build" >&6; }
2751case $ac_cv_build in
2752*-*-*) ;;
2753*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2754esac
2755build=$ac_cv_build
2756ac_save_IFS=$IFS; IFS='-'
2757set x $ac_cv_build
2758shift
2759build_cpu=$1
2760build_vendor=$2
2761shift; shift
2762# Remember, the first character of IFS is used to create $*,
2763# except with old shells:
2764build_os=$*
2765IFS=$ac_save_IFS
2766case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2767
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2770$as_echo_n "checking host system type... " >&6; }
2771if ${ac_cv_host+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test "x$host_alias" = x; then
2775  ac_cv_host=$ac_cv_build
2776else
2777  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2778    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779fi
2780
2781fi
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2783$as_echo "$ac_cv_host" >&6; }
2784case $ac_cv_host in
2785*-*-*) ;;
2786*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2787esac
2788host=$ac_cv_host
2789ac_save_IFS=$IFS; IFS='-'
2790set x $ac_cv_host
2791shift
2792host_cpu=$1
2793host_vendor=$2
2794shift; shift
2795# Remember, the first character of IFS is used to create $*,
2796# except with old shells:
2797host_os=$*
2798IFS=$ac_save_IFS
2799case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2800
2801
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2803$as_echo_n "checking target system type... " >&6; }
2804if ${ac_cv_target+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  if test "x$target_alias" = x; then
2808  ac_cv_target=$ac_cv_host
2809else
2810  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2811    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2812fi
2813
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2816$as_echo "$ac_cv_target" >&6; }
2817case $ac_cv_target in
2818*-*-*) ;;
2819*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2820esac
2821target=$ac_cv_target
2822ac_save_IFS=$IFS; IFS='-'
2823set x $ac_cv_target
2824shift
2825target_cpu=$1
2826target_vendor=$2
2827shift; shift
2828# Remember, the first character of IFS is used to create $*,
2829# except with old shells:
2830target_os=$*
2831IFS=$ac_save_IFS
2832case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2833
2834
2835# The aliases save the names the user supplied, while $host etc.
2836# will get canonicalized.
2837test -n "$target_alias" &&
2838  test "$program_prefix$program_suffix$program_transform_name" = \
2839    NONENONEs,x,x, &&
2840  program_prefix=${target_alias}-
2841
2842# Must follow AC_CONFIG macros above...
2843am__api_version='1.15'
2844
2845# Find a good install program.  We prefer a C program (faster),
2846# so one script is as good as another.  But avoid the broken or
2847# incompatible versions:
2848# SysV /etc/install, /usr/sbin/install
2849# SunOS /usr/etc/install
2850# IRIX /sbin/install
2851# AIX /bin/install
2852# AmigaOS /C/install, which installs bootblocks on floppy discs
2853# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2854# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2855# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2856# OS/2's system install, which has a completely different semantic
2857# ./install, which can be erroneously created by make from ./install.sh.
2858# Reject install programs that cannot install multiple files.
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2860$as_echo_n "checking for a BSD-compatible install... " >&6; }
2861if test -z "$INSTALL"; then
2862if ${ac_cv_path_install+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    # Account for people who put trailing slashes in PATH elements.
2871case $as_dir/ in #((
2872  ./ | .// | /[cC]/* | \
2873  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2874  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2875  /usr/ucb/* ) ;;
2876  *)
2877    # OSF1 and SCO ODT 3.0 have their own names for install.
2878    # Don't use installbsd from OSF since it installs stuff as root
2879    # by default.
2880    for ac_prog in ginstall scoinst install; do
2881      for ac_exec_ext in '' $ac_executable_extensions; do
2882	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2883	  if test $ac_prog = install &&
2884	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2885	    # AIX install.  It has an incompatible calling convention.
2886	    :
2887	  elif test $ac_prog = install &&
2888	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2889	    # program-specific install script used by HP pwplus--don't use.
2890	    :
2891	  else
2892	    rm -rf conftest.one conftest.two conftest.dir
2893	    echo one > conftest.one
2894	    echo two > conftest.two
2895	    mkdir conftest.dir
2896	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2897	      test -s conftest.one && test -s conftest.two &&
2898	      test -s conftest.dir/conftest.one &&
2899	      test -s conftest.dir/conftest.two
2900	    then
2901	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2902	      break 3
2903	    fi
2904	  fi
2905	fi
2906      done
2907    done
2908    ;;
2909esac
2910
2911  done
2912IFS=$as_save_IFS
2913
2914rm -rf conftest.one conftest.two conftest.dir
2915
2916fi
2917  if test "${ac_cv_path_install+set}" = set; then
2918    INSTALL=$ac_cv_path_install
2919  else
2920    # As a last resort, use the slow shell script.  Don't cache a
2921    # value for INSTALL within a source directory, because that will
2922    # break other packages using the cache if that directory is
2923    # removed, or if the value is a relative name.
2924    INSTALL=$ac_install_sh
2925  fi
2926fi
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2928$as_echo "$INSTALL" >&6; }
2929
2930# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2931# It thinks the first close brace ends the variable substitution.
2932test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2933
2934test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2935
2936test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2937
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2939$as_echo_n "checking whether build environment is sane... " >&6; }
2940# Reject unsafe characters in $srcdir or the absolute working directory
2941# name.  Accept space and tab only in the latter.
2942am_lf='
2943'
2944case `pwd` in
2945  *[\\\"\#\$\&\'\`$am_lf]*)
2946    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2947esac
2948case $srcdir in
2949  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2950    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2951esac
2952
2953# Do 'set' in a subshell so we don't clobber the current shell's
2954# arguments.  Must try -L first in case configure is actually a
2955# symlink; some systems play weird games with the mod time of symlinks
2956# (eg FreeBSD returns the mod time of the symlink's containing
2957# directory).
2958if (
2959   am_has_slept=no
2960   for am_try in 1 2; do
2961     echo "timestamp, slept: $am_has_slept" > conftest.file
2962     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2963     if test "$*" = "X"; then
2964	# -L didn't work.
2965	set X `ls -t "$srcdir/configure" conftest.file`
2966     fi
2967     if test "$*" != "X $srcdir/configure conftest.file" \
2968	&& test "$*" != "X conftest.file $srcdir/configure"; then
2969
2970	# If neither matched, then we have a broken ls.  This can happen
2971	# if, for instance, CONFIG_SHELL is bash and it inherits a
2972	# broken ls alias from the environment.  This has actually
2973	# happened.  Such a system could not be considered "sane".
2974	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2975  alias in your environment" "$LINENO" 5
2976     fi
2977     if test "$2" = conftest.file || test $am_try -eq 2; then
2978       break
2979     fi
2980     # Just in case.
2981     sleep 1
2982     am_has_slept=yes
2983   done
2984   test "$2" = conftest.file
2985   )
2986then
2987   # Ok.
2988   :
2989else
2990   as_fn_error $? "newly created file is older than distributed files!
2991Check your system clock" "$LINENO" 5
2992fi
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994$as_echo "yes" >&6; }
2995# If we didn't sleep, we still need to ensure time stamps of config.status and
2996# generated files are strictly newer.
2997am_sleep_pid=
2998if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2999  ( sleep 1 ) &
3000  am_sleep_pid=$!
3001fi
3002
3003rm -f conftest.file
3004
3005test "$program_prefix" != NONE &&
3006  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3007# Use a double $ so make ignores it.
3008test "$program_suffix" != NONE &&
3009  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3010# Double any \ or $.
3011# By default was `s,x,x', remove it if useless.
3012ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3013program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3014
3015# Expand $ac_aux_dir to an absolute path.
3016am_aux_dir=`cd "$ac_aux_dir" && pwd`
3017
3018if test x"${MISSING+set}" != xset; then
3019  case $am_aux_dir in
3020  *\ * | *\	*)
3021    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3022  *)
3023    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3024  esac
3025fi
3026# Use eval to expand $SHELL
3027if eval "$MISSING --is-lightweight"; then
3028  am_missing_run="$MISSING "
3029else
3030  am_missing_run=
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3032$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3033fi
3034
3035if test x"${install_sh+set}" != xset; then
3036  case $am_aux_dir in
3037  *\ * | *\	*)
3038    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3039  *)
3040    install_sh="\${SHELL} $am_aux_dir/install-sh"
3041  esac
3042fi
3043
3044# Installed binaries are usually stripped using 'strip' when the user
3045# run "make install-strip".  However 'strip' might not be the right
3046# tool to use in cross-compilation environments, therefore Automake
3047# will honor the 'STRIP' environment variable to overrule this program.
3048if test "$cross_compiling" != no; then
3049  if test -n "$ac_tool_prefix"; then
3050  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3051set dummy ${ac_tool_prefix}strip; ac_word=$2
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053$as_echo_n "checking for $ac_word... " >&6; }
3054if ${ac_cv_prog_STRIP+:} false; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  if test -n "$STRIP"; then
3058  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069    break 2
3070  fi
3071done
3072  done
3073IFS=$as_save_IFS
3074
3075fi
3076fi
3077STRIP=$ac_cv_prog_STRIP
3078if test -n "$STRIP"; then
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3080$as_echo "$STRIP" >&6; }
3081else
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084fi
3085
3086
3087fi
3088if test -z "$ac_cv_prog_STRIP"; then
3089  ac_ct_STRIP=$STRIP
3090  # Extract the first word of "strip", so it can be a program name with args.
3091set dummy strip; ac_word=$2
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093$as_echo_n "checking for $ac_word... " >&6; }
3094if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3095  $as_echo_n "(cached) " >&6
3096else
3097  if test -n "$ac_ct_STRIP"; then
3098  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3099else
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103  IFS=$as_save_IFS
3104  test -z "$as_dir" && as_dir=.
3105    for ac_exec_ext in '' $ac_executable_extensions; do
3106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107    ac_cv_prog_ac_ct_STRIP="strip"
3108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109    break 2
3110  fi
3111done
3112  done
3113IFS=$as_save_IFS
3114
3115fi
3116fi
3117ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3118if test -n "$ac_ct_STRIP"; then
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3120$as_echo "$ac_ct_STRIP" >&6; }
3121else
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123$as_echo "no" >&6; }
3124fi
3125
3126  if test "x$ac_ct_STRIP" = x; then
3127    STRIP=":"
3128  else
3129    case $cross_compiling:$ac_tool_warned in
3130yes:)
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133ac_tool_warned=yes ;;
3134esac
3135    STRIP=$ac_ct_STRIP
3136  fi
3137else
3138  STRIP="$ac_cv_prog_STRIP"
3139fi
3140
3141fi
3142INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3143
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3145$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3146if test -z "$MKDIR_P"; then
3147  if ${ac_cv_path_mkdir+:} false; then :
3148  $as_echo_n "(cached) " >&6
3149else
3150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3152do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155    for ac_prog in mkdir gmkdir; do
3156	 for ac_exec_ext in '' $ac_executable_extensions; do
3157	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3158	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3159	     'mkdir (GNU coreutils) '* | \
3160	     'mkdir (coreutils) '* | \
3161	     'mkdir (fileutils) '4.1*)
3162	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3163	       break 3;;
3164	   esac
3165	 done
3166       done
3167  done
3168IFS=$as_save_IFS
3169
3170fi
3171
3172  test -d ./--version && rmdir ./--version
3173  if test "${ac_cv_path_mkdir+set}" = set; then
3174    MKDIR_P="$ac_cv_path_mkdir -p"
3175  else
3176    # As a last resort, use the slow shell script.  Don't cache a
3177    # value for MKDIR_P within a source directory, because that will
3178    # break other packages using the cache if that directory is
3179    # removed, or if the value is a relative name.
3180    MKDIR_P="$ac_install_sh -d"
3181  fi
3182fi
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3184$as_echo "$MKDIR_P" >&6; }
3185
3186for ac_prog in gawk mawk nawk awk
3187do
3188  # Extract the first word of "$ac_prog", so it can be a program name with args.
3189set dummy $ac_prog; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
3192if ${ac_cv_prog_AWK+:} false; then :
3193  $as_echo_n "(cached) " >&6
3194else
3195  if test -n "$AWK"; then
3196  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_exec_ext in '' $ac_executable_extensions; do
3204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205    ac_cv_prog_AWK="$ac_prog"
3206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207    break 2
3208  fi
3209done
3210  done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215AWK=$ac_cv_prog_AWK
3216if test -n "$AWK"; then
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3218$as_echo "$AWK" >&6; }
3219else
3220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224
3225  test -n "$AWK" && break
3226done
3227
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3230set x ${MAKE-make}
3231ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3232if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  cat >conftest.make <<\_ACEOF
3236SHELL = /bin/sh
3237all:
3238	@echo '@@@%%%=$(MAKE)=@@@%%%'
3239_ACEOF
3240# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3241case `${MAKE-make} -f conftest.make 2>/dev/null` in
3242  *@@@%%%=?*=@@@%%%*)
3243    eval ac_cv_prog_make_${ac_make}_set=yes;;
3244  *)
3245    eval ac_cv_prog_make_${ac_make}_set=no;;
3246esac
3247rm -f conftest.make
3248fi
3249if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251$as_echo "yes" >&6; }
3252  SET_MAKE=
3253else
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256  SET_MAKE="MAKE=${MAKE-make}"
3257fi
3258
3259rm -rf .tst 2>/dev/null
3260mkdir .tst 2>/dev/null
3261if test -d .tst; then
3262  am__leading_dot=.
3263else
3264  am__leading_dot=_
3265fi
3266rmdir .tst 2>/dev/null
3267
3268# Check whether --enable-silent-rules was given.
3269if test "${enable_silent_rules+set}" = set; then :
3270  enableval=$enable_silent_rules;
3271fi
3272
3273case $enable_silent_rules in # (((
3274  yes) AM_DEFAULT_VERBOSITY=0;;
3275   no) AM_DEFAULT_VERBOSITY=1;;
3276    *) AM_DEFAULT_VERBOSITY=1;;
3277esac
3278am_make=${MAKE-make}
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3280$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3281if ${am_cv_make_support_nested_variables+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  if $as_echo 'TRUE=$(BAR$(V))
3285BAR0=false
3286BAR1=true
3287V=1
3288am__doit:
3289	@$(TRUE)
3290.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3291  am_cv_make_support_nested_variables=yes
3292else
3293  am_cv_make_support_nested_variables=no
3294fi
3295fi
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3297$as_echo "$am_cv_make_support_nested_variables" >&6; }
3298if test $am_cv_make_support_nested_variables = yes; then
3299    AM_V='$(V)'
3300  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3301else
3302  AM_V=$AM_DEFAULT_VERBOSITY
3303  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3304fi
3305AM_BACKSLASH='\'
3306
3307if test "`cd $srcdir && pwd`" != "`pwd`"; then
3308  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3309  # is not polluted with repeated "-I."
3310  am__isrc=' -I$(srcdir)'
3311  # test to see if srcdir already configured
3312  if test -f $srcdir/config.status; then
3313    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3314  fi
3315fi
3316
3317# test whether we have cygpath
3318if test -z "$CYGPATH_W"; then
3319  if (cygpath --version) >/dev/null 2>/dev/null; then
3320    CYGPATH_W='cygpath -w'
3321  else
3322    CYGPATH_W=echo
3323  fi
3324fi
3325
3326
3327# Define the identity of the package.
3328 PACKAGE='tarsnap'
3329 VERSION='1.0.39'
3330
3331
3332cat >>confdefs.h <<_ACEOF
3333#define PACKAGE "$PACKAGE"
3334_ACEOF
3335
3336
3337cat >>confdefs.h <<_ACEOF
3338#define VERSION "$VERSION"
3339_ACEOF
3340
3341# Some tools Automake needs.
3342
3343ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3344
3345
3346AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3347
3348
3349AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3350
3351
3352AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3353
3354
3355MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3356
3357# For better backward compatibility.  To be removed once Automake 1.9.x
3358# dies out for good.  For more background, see:
3359# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3360# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3361mkdir_p='$(MKDIR_P)'
3362
3363# We need awk for the "check" target (and possibly the TAP driver).  The
3364# system "awk" is bad on some platforms.
3365# Always define AMTAR for backward compatibility.  Yes, it's still used
3366# in the wild :-(  We should find a proper way to deprecate it ...
3367AMTAR='$${TAR-tar}'
3368
3369
3370# We'll loop over all known methods to create a tar archive until one works.
3371_am_tools='gnutar  pax cpio none'
3372
3373am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3374
3375
3376
3377
3378
3379
3380# POSIX will say in a future version that running "rm -f" with no argument
3381# is OK; and we want to be able to make that assumption in our Makefile
3382# recipes.  So use an aggressive probe to check that the usage we want is
3383# actually supported "in the wild" to an acceptable degree.
3384# See automake bug#10828.
3385# To make any issue more visible, cause the running configure to be aborted
3386# by default if the 'rm' program in use doesn't match our expectations; the
3387# user can still override this though.
3388if rm -f && rm -fr && rm -rf; then : OK; else
3389  cat >&2 <<'END'
3390Oops!
3391
3392Your 'rm' program seems unable to run without file operands specified
3393on the command line, even when the '-f' option is present.  This is contrary
3394to the behaviour of most rm programs out there, and not conforming with
3395the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3396
3397Please tell bug-automake@gnu.org about your system, including the value
3398of your $PATH and any error possibly output before this message.  This
3399can help us improve future automake versions.
3400
3401END
3402  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3403    echo 'Configuration will proceed anyway, since you have set the' >&2
3404    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3405    echo >&2
3406  else
3407    cat >&2 <<'END'
3408Aborting the configuration process, to ensure you take notice of the issue.
3409
3410You can download and install GNU coreutils to get an 'rm' implementation
3411that behaves properly: <http://www.gnu.org/software/coreutils/>.
3412
3413If you want to complete the configuration process using your problematic
3414'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3415to "yes", and re-run configure.
3416
3417END
3418    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3419  fi
3420fi
3421
3422
3423# Stick the version numbers into config.h
3424
3425$as_echo "#define LIBARCHIVE_VERSION_STRING \"2.7.0\"" >>confdefs.h
3426
3427
3428cat >>confdefs.h <<_ACEOF
3429#define LIBARCHIVE_VERSION_NUMBER "2007000"
3430_ACEOF
3431
3432
3433$as_echo "#define TARVERSION \"1.0.39\"" >>confdefs.h
3434
3435
3436$as_echo "#define TSSERVER \"v1-0-0\"" >>confdefs.h
3437
3438
3439# The shell variables here must be the same as the AC_SUBST() variables
3440# below, but the shell variable names apparently cannot be the same as
3441# the m4 macro names above.  Why?  Ask autoconf.
3442LIBARCHIVE_VERSION_STRING=2.7.0
3443LIBARCHIVE_VERSION_NUMBER=2007000
3444
3445# Substitute the above version numbers into the various files below.
3446# Yes, I believe this is the fourth time we define what are essentially
3447# the same symbols.  Why? Ask autoconf.
3448
3449
3450
3451ac_config_headers="$ac_config_headers config.h"
3452
3453ac_config_files="$ac_config_files Makefile"
3454
3455
3456inc_windows_files=no
3457inc_cygwin_files=no
3458case "$host_os" in
3459  *mingw* ) inc_windows_files=yes ;;
3460  *cygwin*) inc_cygwin_files=yes ;;
3461esac
3462 if test $inc_windows_files = yes; then
3463  INC_WINDOWS_FILES_TRUE=
3464  INC_WINDOWS_FILES_FALSE='#'
3465else
3466  INC_WINDOWS_FILES_TRUE='#'
3467  INC_WINDOWS_FILES_FALSE=
3468fi
3469
3470 if test $inc_cygwin_files = yes; then
3471  INC_CYGWIN_FILES_TRUE=
3472  INC_CYGWIN_FILES_FALSE='#'
3473else
3474  INC_CYGWIN_FILES_TRUE='#'
3475  INC_CYGWIN_FILES_FALSE=
3476fi
3477
3478
3479# Checks for programs.
3480DEPDIR="${am__leading_dot}deps"
3481
3482ac_config_commands="$ac_config_commands depfiles"
3483
3484
3485am_make=${MAKE-make}
3486cat > confinc << 'END'
3487am__doit:
3488	@echo this is the am__doit target
3489.PHONY: am__doit
3490END
3491# If we don't find an include directive, just comment out the code.
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3493$as_echo_n "checking for style of include used by $am_make... " >&6; }
3494am__include="#"
3495am__quote=
3496_am_result=none
3497# First try GNU make style include.
3498echo "include confinc" > confmf
3499# Ignore all kinds of additional output from 'make'.
3500case `$am_make -s -f confmf 2> /dev/null` in #(
3501*the\ am__doit\ target*)
3502  am__include=include
3503  am__quote=
3504  _am_result=GNU
3505  ;;
3506esac
3507# Now try BSD make style include.
3508if test "$am__include" = "#"; then
3509   echo '.include "confinc"' > confmf
3510   case `$am_make -s -f confmf 2> /dev/null` in #(
3511   *the\ am__doit\ target*)
3512     am__include=.include
3513     am__quote="\""
3514     _am_result=BSD
3515     ;;
3516   esac
3517fi
3518
3519
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3521$as_echo "$_am_result" >&6; }
3522rm -f confinc confmf
3523
3524# Check whether --enable-dependency-tracking was given.
3525if test "${enable_dependency_tracking+set}" = set; then :
3526  enableval=$enable_dependency_tracking;
3527fi
3528
3529if test "x$enable_dependency_tracking" != xno; then
3530  am_depcomp="$ac_aux_dir/depcomp"
3531  AMDEPBACKSLASH='\'
3532  am__nodep='_no'
3533fi
3534 if test "x$enable_dependency_tracking" != xno; then
3535  AMDEP_TRUE=
3536  AMDEP_FALSE='#'
3537else
3538  AMDEP_TRUE='#'
3539  AMDEP_FALSE=
3540fi
3541
3542
3543ac_ext=c
3544ac_cpp='$CPP $CPPFLAGS'
3545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548if test -n "$ac_tool_prefix"; then
3549  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3550set dummy ${ac_tool_prefix}gcc; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
3553if ${ac_cv_prog_CC+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  if test -n "$CC"; then
3557  ac_cv_prog_CC="$CC" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562  IFS=$as_save_IFS
3563  test -z "$as_dir" && as_dir=.
3564    for ac_exec_ext in '' $ac_executable_extensions; do
3565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568    break 2
3569  fi
3570done
3571  done
3572IFS=$as_save_IFS
3573
3574fi
3575fi
3576CC=$ac_cv_prog_CC
3577if test -n "$CC"; then
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579$as_echo "$CC" >&6; }
3580else
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583fi
3584
3585
3586fi
3587if test -z "$ac_cv_prog_CC"; then
3588  ac_ct_CC=$CC
3589  # Extract the first word of "gcc", so it can be a program name with args.
3590set dummy gcc; ac_word=$2
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592$as_echo_n "checking for $ac_word... " >&6; }
3593if ${ac_cv_prog_ac_ct_CC+:} false; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  if test -n "$ac_ct_CC"; then
3597  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602  IFS=$as_save_IFS
3603  test -z "$as_dir" && as_dir=.
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606    ac_cv_prog_ac_ct_CC="gcc"
3607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608    break 2
3609  fi
3610done
3611  done
3612IFS=$as_save_IFS
3613
3614fi
3615fi
3616ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617if test -n "$ac_ct_CC"; then
3618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3619$as_echo "$ac_ct_CC" >&6; }
3620else
3621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
3623fi
3624
3625  if test "x$ac_ct_CC" = x; then
3626    CC=""
3627  else
3628    case $cross_compiling:$ac_tool_warned in
3629yes:)
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632ac_tool_warned=yes ;;
3633esac
3634    CC=$ac_ct_CC
3635  fi
3636else
3637  CC="$ac_cv_prog_CC"
3638fi
3639
3640if test -z "$CC"; then
3641          if test -n "$ac_tool_prefix"; then
3642    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3643set dummy ${ac_tool_prefix}cc; ac_word=$2
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645$as_echo_n "checking for $ac_word... " >&6; }
3646if ${ac_cv_prog_CC+:} false; then :
3647  $as_echo_n "(cached) " >&6
3648else
3649  if test -n "$CC"; then
3650  ac_cv_prog_CC="$CC" # Let the user override the test.
3651else
3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653for as_dir in $PATH
3654do
3655  IFS=$as_save_IFS
3656  test -z "$as_dir" && as_dir=.
3657    for ac_exec_ext in '' $ac_executable_extensions; do
3658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659    ac_cv_prog_CC="${ac_tool_prefix}cc"
3660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661    break 2
3662  fi
3663done
3664  done
3665IFS=$as_save_IFS
3666
3667fi
3668fi
3669CC=$ac_cv_prog_CC
3670if test -n "$CC"; then
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672$as_echo "$CC" >&6; }
3673else
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675$as_echo "no" >&6; }
3676fi
3677
3678
3679  fi
3680fi
3681if test -z "$CC"; then
3682  # Extract the first word of "cc", so it can be a program name with args.
3683set dummy cc; ac_word=$2
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685$as_echo_n "checking for $ac_word... " >&6; }
3686if ${ac_cv_prog_CC+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  if test -n "$CC"; then
3690  ac_cv_prog_CC="$CC" # Let the user override the test.
3691else
3692  ac_prog_rejected=no
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  test -z "$as_dir" && as_dir=.
3698    for ac_exec_ext in '' $ac_executable_extensions; do
3699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3701       ac_prog_rejected=yes
3702       continue
3703     fi
3704    ac_cv_prog_CC="cc"
3705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706    break 2
3707  fi
3708done
3709  done
3710IFS=$as_save_IFS
3711
3712if test $ac_prog_rejected = yes; then
3713  # We found a bogon in the path, so make sure we never use it.
3714  set dummy $ac_cv_prog_CC
3715  shift
3716  if test $# != 0; then
3717    # We chose a different compiler from the bogus one.
3718    # However, it has the same basename, so the bogon will be chosen
3719    # first if we set CC to just the basename; use the full file name.
3720    shift
3721    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3722  fi
3723fi
3724fi
3725fi
3726CC=$ac_cv_prog_CC
3727if test -n "$CC"; then
3728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729$as_echo "$CC" >&6; }
3730else
3731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732$as_echo "no" >&6; }
3733fi
3734
3735
3736fi
3737if test -z "$CC"; then
3738  if test -n "$ac_tool_prefix"; then
3739  for ac_prog in cl.exe
3740  do
3741    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
3745if ${ac_cv_prog_CC+:} false; then :
3746  $as_echo_n "(cached) " >&6
3747else
3748  if test -n "$CC"; then
3749  ac_cv_prog_CC="$CC" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754  IFS=$as_save_IFS
3755  test -z "$as_dir" && as_dir=.
3756    for ac_exec_ext in '' $ac_executable_extensions; do
3757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760    break 2
3761  fi
3762done
3763  done
3764IFS=$as_save_IFS
3765
3766fi
3767fi
3768CC=$ac_cv_prog_CC
3769if test -n "$CC"; then
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771$as_echo "$CC" >&6; }
3772else
3773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
3775fi
3776
3777
3778    test -n "$CC" && break
3779  done
3780fi
3781if test -z "$CC"; then
3782  ac_ct_CC=$CC
3783  for ac_prog in cl.exe
3784do
3785  # Extract the first word of "$ac_prog", so it can be a program name with args.
3786set dummy $ac_prog; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
3789if ${ac_cv_prog_ac_ct_CC+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if test -n "$ac_ct_CC"; then
3793  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_exec_ext in '' $ac_executable_extensions; do
3801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802    ac_cv_prog_ac_ct_CC="$ac_prog"
3803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807  done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813if test -n "$ac_ct_CC"; then
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815$as_echo "$ac_ct_CC" >&6; }
3816else
3817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822  test -n "$ac_ct_CC" && break
3823done
3824
3825  if test "x$ac_ct_CC" = x; then
3826    CC=""
3827  else
3828    case $cross_compiling:$ac_tool_warned in
3829yes:)
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
3833esac
3834    CC=$ac_ct_CC
3835  fi
3836fi
3837
3838fi
3839
3840
3841test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error $? "no acceptable C compiler found in \$PATH
3844See \`config.log' for more details" "$LINENO" 5; }
3845
3846# Provide some information about the compiler.
3847$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3848set X $ac_compile
3849ac_compiler=$2
3850for ac_option in --version -v -V -qversion; do
3851  { { ac_try="$ac_compiler $ac_option >&5"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
3858  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859  ac_status=$?
3860  if test -s conftest.err; then
3861    sed '10a\
3862... rest of stderr output deleted ...
3863         10q' conftest.err >conftest.er1
3864    cat conftest.er1 >&5
3865  fi
3866  rm -f conftest.er1 conftest.err
3867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868  test $ac_status = 0; }
3869done
3870
3871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873
3874int
3875main ()
3876{
3877
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882ac_clean_files_save=$ac_clean_files
3883ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3884# Try to create an executable without -o first, disregard a.out.
3885# It will help us diagnose broken compilers, and finding out an intuition
3886# of exeext.
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3888$as_echo_n "checking whether the C compiler works... " >&6; }
3889ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3890
3891# The possible output files:
3892ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3893
3894ac_rmfiles=
3895for ac_file in $ac_files
3896do
3897  case $ac_file in
3898    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3900  esac
3901done
3902rm -f $ac_rmfiles
3903
3904if { { ac_try="$ac_link_default"
3905case "(($ac_try" in
3906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907  *) ac_try_echo=$ac_try;;
3908esac
3909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910$as_echo "$ac_try_echo"; } >&5
3911  (eval "$ac_link_default") 2>&5
3912  ac_status=$?
3913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914  test $ac_status = 0; }; then :
3915  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3916# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3917# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3918# so that the user can short-circuit this test for compilers unknown to
3919# Autoconf.
3920for ac_file in $ac_files ''
3921do
3922  test -f "$ac_file" || continue
3923  case $ac_file in
3924    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3925	;;
3926    [ab].out )
3927	# We found the default executable, but exeext='' is most
3928	# certainly right.
3929	break;;
3930    *.* )
3931	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3932	then :; else
3933	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934	fi
3935	# We set ac_cv_exeext here because the later test for it is not
3936	# safe: cross compilers may not add the suffix if given an `-o'
3937	# argument, so we may need to know it at that point already.
3938	# Even if this section looks crufty: it has the advantage of
3939	# actually working.
3940	break;;
3941    * )
3942	break;;
3943  esac
3944done
3945test "$ac_cv_exeext" = no && ac_cv_exeext=
3946
3947else
3948  ac_file=''
3949fi
3950if test -z "$ac_file"; then :
3951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952$as_echo "no" >&6; }
3953$as_echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958as_fn_error 77 "C compiler cannot create executables
3959See \`config.log' for more details" "$LINENO" 5; }
3960else
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962$as_echo "yes" >&6; }
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3965$as_echo_n "checking for C compiler default output file name... " >&6; }
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3967$as_echo "$ac_file" >&6; }
3968ac_exeext=$ac_cv_exeext
3969
3970rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3971ac_clean_files=$ac_clean_files_save
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973$as_echo_n "checking for suffix of executables... " >&6; }
3974if { { ac_try="$ac_link"
3975case "(($ac_try" in
3976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977  *) ac_try_echo=$ac_try;;
3978esac
3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980$as_echo "$ac_try_echo"; } >&5
3981  (eval "$ac_link") 2>&5
3982  ac_status=$?
3983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984  test $ac_status = 0; }; then :
3985  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3986# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3987# work properly (i.e., refer to `conftest.exe'), while it won't with
3988# `rm'.
3989for ac_file in conftest.exe conftest conftest.*; do
3990  test -f "$ac_file" || continue
3991  case $ac_file in
3992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3993    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994	  break;;
3995    * ) break;;
3996  esac
3997done
3998else
3999  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4002See \`config.log' for more details" "$LINENO" 5; }
4003fi
4004rm -f conftest conftest$ac_cv_exeext
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006$as_echo "$ac_cv_exeext" >&6; }
4007
4008rm -f conftest.$ac_ext
4009EXEEXT=$ac_cv_exeext
4010ac_exeext=$EXEEXT
4011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013#include <stdio.h>
4014int
4015main ()
4016{
4017FILE *f = fopen ("conftest.out", "w");
4018 return ferror (f) || fclose (f) != 0;
4019
4020  ;
4021  return 0;
4022}
4023_ACEOF
4024ac_clean_files="$ac_clean_files conftest.out"
4025# Check that the compiler produces executables we can run.  If not, either
4026# the compiler is broken, or we cross compile.
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4028$as_echo_n "checking whether we are cross compiling... " >&6; }
4029if test "$cross_compiling" != yes; then
4030  { { ac_try="$ac_link"
4031case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037  (eval "$ac_link") 2>&5
4038  ac_status=$?
4039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040  test $ac_status = 0; }
4041  if { ac_try='./conftest$ac_cv_exeext'
4042  { { case "(($ac_try" in
4043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044  *) ac_try_echo=$ac_try;;
4045esac
4046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047$as_echo "$ac_try_echo"; } >&5
4048  (eval "$ac_try") 2>&5
4049  ac_status=$?
4050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051  test $ac_status = 0; }; }; then
4052    cross_compiling=no
4053  else
4054    if test "$cross_compiling" = maybe; then
4055	cross_compiling=yes
4056    else
4057	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059as_fn_error $? "cannot run C compiled programs.
4060If you meant to cross compile, use \`--host'.
4061See \`config.log' for more details" "$LINENO" 5; }
4062    fi
4063  fi
4064fi
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4066$as_echo "$cross_compiling" >&6; }
4067
4068rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4069ac_clean_files=$ac_clean_files_save
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4071$as_echo_n "checking for suffix of object files... " >&6; }
4072if ${ac_cv_objext+:} false; then :
4073  $as_echo_n "(cached) " >&6
4074else
4075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077
4078int
4079main ()
4080{
4081
4082  ;
4083  return 0;
4084}
4085_ACEOF
4086rm -f conftest.o conftest.obj
4087if { { ac_try="$ac_compile"
4088case "(($ac_try" in
4089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090  *) ac_try_echo=$ac_try;;
4091esac
4092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093$as_echo "$ac_try_echo"; } >&5
4094  (eval "$ac_compile") 2>&5
4095  ac_status=$?
4096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097  test $ac_status = 0; }; then :
4098  for ac_file in conftest.o conftest.obj conftest.*; do
4099  test -f "$ac_file" || continue;
4100  case $ac_file in
4101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4102    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4103       break;;
4104  esac
4105done
4106else
4107  $as_echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112as_fn_error $? "cannot compute suffix of object files: cannot compile
4113See \`config.log' for more details" "$LINENO" 5; }
4114fi
4115rm -f conftest.$ac_cv_objext conftest.$ac_ext
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4118$as_echo "$ac_cv_objext" >&6; }
4119OBJEXT=$ac_cv_objext
4120ac_objext=$OBJEXT
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4122$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4123if ${ac_cv_c_compiler_gnu+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h.  */
4128
4129int
4130main ()
4131{
4132#ifndef __GNUC__
4133       choke me
4134#endif
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_compiler_gnu=yes
4142else
4143  ac_compiler_gnu=no
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146ac_cv_c_compiler_gnu=$ac_compiler_gnu
4147
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4150$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4151if test $ac_compiler_gnu = yes; then
4152  GCC=yes
4153else
4154  GCC=
4155fi
4156ac_test_CFLAGS=${CFLAGS+set}
4157ac_save_CFLAGS=$CFLAGS
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4159$as_echo_n "checking whether $CC accepts -g... " >&6; }
4160if ${ac_cv_prog_cc_g+:} false; then :
4161  $as_echo_n "(cached) " >&6
4162else
4163  ac_save_c_werror_flag=$ac_c_werror_flag
4164   ac_c_werror_flag=yes
4165   ac_cv_prog_cc_g=no
4166   CFLAGS="-g"
4167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h.  */
4169
4170int
4171main ()
4172{
4173
4174  ;
4175  return 0;
4176}
4177_ACEOF
4178if ac_fn_c_try_compile "$LINENO"; then :
4179  ac_cv_prog_cc_g=yes
4180else
4181  CFLAGS=""
4182      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183/* end confdefs.h.  */
4184
4185int
4186main ()
4187{
4188
4189  ;
4190  return 0;
4191}
4192_ACEOF
4193if ac_fn_c_try_compile "$LINENO"; then :
4194
4195else
4196  ac_c_werror_flag=$ac_save_c_werror_flag
4197	 CFLAGS="-g"
4198	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200
4201int
4202main ()
4203{
4204
4205  ;
4206  return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_compile "$LINENO"; then :
4210  ac_cv_prog_cc_g=yes
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215fi
4216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217   ac_c_werror_flag=$ac_save_c_werror_flag
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4220$as_echo "$ac_cv_prog_cc_g" >&6; }
4221if test "$ac_test_CFLAGS" = set; then
4222  CFLAGS=$ac_save_CFLAGS
4223elif test $ac_cv_prog_cc_g = yes; then
4224  if test "$GCC" = yes; then
4225    CFLAGS="-g -O2"
4226  else
4227    CFLAGS="-g"
4228  fi
4229else
4230  if test "$GCC" = yes; then
4231    CFLAGS="-O2"
4232  else
4233    CFLAGS=
4234  fi
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4237$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4238if ${ac_cv_prog_cc_c89+:} false; then :
4239  $as_echo_n "(cached) " >&6
4240else
4241  ac_cv_prog_cc_c89=no
4242ac_save_CC=$CC
4243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245#include <stdarg.h>
4246#include <stdio.h>
4247struct stat;
4248/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4249struct buf { int x; };
4250FILE * (*rcsopen) (struct buf *, struct stat *, int);
4251static char *e (p, i)
4252     char **p;
4253     int i;
4254{
4255  return p[i];
4256}
4257static char *f (char * (*g) (char **, int), char **p, ...)
4258{
4259  char *s;
4260  va_list v;
4261  va_start (v,p);
4262  s = g (p, va_arg (v,int));
4263  va_end (v);
4264  return s;
4265}
4266
4267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4268   function prototypes and stuff, but not '\xHH' hex character constants.
4269   These don't provoke an error unfortunately, instead are silently treated
4270   as 'x'.  The following induces an error, until -std is added to get
4271   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4272   array size at least.  It's necessary to write '\x00'==0 to get something
4273   that's true only with -std.  */
4274int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4275
4276/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4277   inside strings and character constants.  */
4278#define FOO(x) 'x'
4279int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4280
4281int test (int i, double x);
4282struct s1 {int (*f) (int a);};
4283struct s2 {int (*f) (double a);};
4284int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4285int argc;
4286char **argv;
4287int
4288main ()
4289{
4290return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4291  ;
4292  return 0;
4293}
4294_ACEOF
4295for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4296	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297do
4298  CC="$ac_save_CC $ac_arg"
4299  if ac_fn_c_try_compile "$LINENO"; then :
4300  ac_cv_prog_cc_c89=$ac_arg
4301fi
4302rm -f core conftest.err conftest.$ac_objext
4303  test "x$ac_cv_prog_cc_c89" != "xno" && break
4304done
4305rm -f conftest.$ac_ext
4306CC=$ac_save_CC
4307
4308fi
4309# AC_CACHE_VAL
4310case "x$ac_cv_prog_cc_c89" in
4311  x)
4312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4313$as_echo "none needed" >&6; } ;;
4314  xno)
4315    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316$as_echo "unsupported" >&6; } ;;
4317  *)
4318    CC="$CC $ac_cv_prog_cc_c89"
4319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4320$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4321esac
4322if test "x$ac_cv_prog_cc_c89" != xno; then :
4323
4324fi
4325
4326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4338$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4339if ${am_cv_prog_cc_c_o+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344
4345int
4346main ()
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353  # Make sure it works both with $CC and with simple cc.
4354  # Following AC_PROG_CC_C_O, we do the test twice because some
4355  # compilers refuse to overwrite an existing .o file with -o,
4356  # though they will create one.
4357  am_cv_prog_cc_c_o=yes
4358  for am_i in 1 2; do
4359    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4360   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } \
4364         && test -f conftest2.$ac_objext; then
4365      : OK
4366    else
4367      am_cv_prog_cc_c_o=no
4368      break
4369    fi
4370  done
4371  rm -f core conftest*
4372  unset am_i
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4375$as_echo "$am_cv_prog_cc_c_o" >&6; }
4376if test "$am_cv_prog_cc_c_o" != yes; then
4377   # Losing compiler, so override with the script.
4378   # FIXME: It is wrong to rewrite CC.
4379   # But if we don't then we get into trouble of one sort or another.
4380   # A longer-term fix would be to have automake use am__CC in this case,
4381   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382   CC="$am_aux_dir/compile $CC"
4383fi
4384ac_ext=c
4385ac_cpp='$CPP $CPPFLAGS'
4386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390
4391depcc="$CC"   am_compiler_list=
4392
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4394$as_echo_n "checking dependency style of $depcc... " >&6; }
4395if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4399  # We make a subdir and do the tests there.  Otherwise we can end up
4400  # making bogus files that we don't know about and never remove.  For
4401  # instance it was reported that on HP-UX the gcc test will end up
4402  # making a dummy file named 'D' -- because '-MD' means "put the output
4403  # in D".
4404  rm -rf conftest.dir
4405  mkdir conftest.dir
4406  # Copy depcomp to subdir because otherwise we won't find it if we're
4407  # using a relative directory.
4408  cp "$am_depcomp" conftest.dir
4409  cd conftest.dir
4410  # We will build objects and dependencies in a subdirectory because
4411  # it helps to detect inapplicable dependency modes.  For instance
4412  # both Tru64's cc and ICC support -MD to output dependencies as a
4413  # side effect of compilation, but ICC will put the dependencies in
4414  # the current directory while Tru64 will put them in the object
4415  # directory.
4416  mkdir sub
4417
4418  am_cv_CC_dependencies_compiler_type=none
4419  if test "$am_compiler_list" = ""; then
4420     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4421  fi
4422  am__universal=false
4423  case " $depcc " in #(
4424     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4425     esac
4426
4427  for depmode in $am_compiler_list; do
4428    # Setup a source with many dependencies, because some compilers
4429    # like to wrap large dependency lists on column 80 (with \), and
4430    # we should not choose a depcomp mode which is confused by this.
4431    #
4432    # We need to recreate these files for each test, as the compiler may
4433    # overwrite some of them when testing with obscure command lines.
4434    # This happens at least with the AIX C compiler.
4435    : > sub/conftest.c
4436    for i in 1 2 3 4 5 6; do
4437      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4438      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4439      # Solaris 10 /bin/sh.
4440      echo '/* dummy */' > sub/conftst$i.h
4441    done
4442    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4443
4444    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4445    # mode.  It turns out that the SunPro C++ compiler does not properly
4446    # handle '-M -o', and we need to detect this.  Also, some Intel
4447    # versions had trouble with output in subdirs.
4448    am__obj=sub/conftest.${OBJEXT-o}
4449    am__minus_obj="-o $am__obj"
4450    case $depmode in
4451    gcc)
4452      # This depmode causes a compiler race in universal mode.
4453      test "$am__universal" = false || continue
4454      ;;
4455    nosideeffect)
4456      # After this tag, mechanisms are not by side-effect, so they'll
4457      # only be used when explicitly requested.
4458      if test "x$enable_dependency_tracking" = xyes; then
4459	continue
4460      else
4461	break
4462      fi
4463      ;;
4464    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4465      # This compiler won't grok '-c -o', but also, the minuso test has
4466      # not run yet.  These depmodes are late enough in the game, and
4467      # so weak that their functioning should not be impacted.
4468      am__obj=conftest.${OBJEXT-o}
4469      am__minus_obj=
4470      ;;
4471    none) break ;;
4472    esac
4473    if depmode=$depmode \
4474       source=sub/conftest.c object=$am__obj \
4475       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4476       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4477         >/dev/null 2>conftest.err &&
4478       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4479       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4480       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4481       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4482      # icc doesn't choke on unknown options, it will just issue warnings
4483      # or remarks (even with -Werror).  So we grep stderr for any message
4484      # that says an option was ignored or not supported.
4485      # When given -MP, icc 7.0 and 7.1 complain thusly:
4486      #   icc: Command line warning: ignoring option '-M'; no argument required
4487      # The diagnosis changed in icc 8.0:
4488      #   icc: Command line remark: option '-MP' not supported
4489      if (grep 'ignoring option' conftest.err ||
4490          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4491        am_cv_CC_dependencies_compiler_type=$depmode
4492        break
4493      fi
4494    fi
4495  done
4496
4497  cd ..
4498  rm -rf conftest.dir
4499else
4500  am_cv_CC_dependencies_compiler_type=none
4501fi
4502
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4505$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4506CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4507
4508 if
4509  test "x$enable_dependency_tracking" != xno \
4510  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4511  am__fastdepCC_TRUE=
4512  am__fastdepCC_FALSE='#'
4513else
4514  am__fastdepCC_TRUE='#'
4515  am__fastdepCC_FALSE=
4516fi
4517
4518
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4520$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4521if ${ac_cv_prog_cc_c99+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524  ac_cv_prog_cc_c99=no
4525ac_save_CC=$CC
4526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h.  */
4528#include <stdarg.h>
4529#include <stdbool.h>
4530#include <stdlib.h>
4531#include <wchar.h>
4532#include <stdio.h>
4533
4534// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4535#define debug(...) fprintf (stderr, __VA_ARGS__)
4536#define showlist(...) puts (#__VA_ARGS__)
4537#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4538static void
4539test_varargs_macros (void)
4540{
4541  int x = 1234;
4542  int y = 5678;
4543  debug ("Flag");
4544  debug ("X = %d\n", x);
4545  showlist (The first, second, and third items.);
4546  report (x>y, "x is %d but y is %d", x, y);
4547}
4548
4549// Check long long types.
4550#define BIG64 18446744073709551615ull
4551#define BIG32 4294967295ul
4552#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4553#if !BIG_OK
4554  your preprocessor is broken;
4555#endif
4556#if BIG_OK
4557#else
4558  your preprocessor is broken;
4559#endif
4560static long long int bignum = -9223372036854775807LL;
4561static unsigned long long int ubignum = BIG64;
4562
4563struct incomplete_array
4564{
4565  int datasize;
4566  double data[];
4567};
4568
4569struct named_init {
4570  int number;
4571  const wchar_t *name;
4572  double average;
4573};
4574
4575typedef const char *ccp;
4576
4577static inline int
4578test_restrict (ccp restrict text)
4579{
4580  // See if C++-style comments work.
4581  // Iterate through items via the restricted pointer.
4582  // Also check for declarations in for loops.
4583  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4584    continue;
4585  return 0;
4586}
4587
4588// Check varargs and va_copy.
4589static void
4590test_varargs (const char *format, ...)
4591{
4592  va_list args;
4593  va_start (args, format);
4594  va_list args_copy;
4595  va_copy (args_copy, args);
4596
4597  const char *str;
4598  int number;
4599  float fnumber;
4600
4601  while (*format)
4602    {
4603      switch (*format++)
4604	{
4605	case 's': // string
4606	  str = va_arg (args_copy, const char *);
4607	  break;
4608	case 'd': // int
4609	  number = va_arg (args_copy, int);
4610	  break;
4611	case 'f': // float
4612	  fnumber = va_arg (args_copy, double);
4613	  break;
4614	default:
4615	  break;
4616	}
4617    }
4618  va_end (args_copy);
4619  va_end (args);
4620}
4621
4622int
4623main ()
4624{
4625
4626  // Check bool.
4627  _Bool success = false;
4628
4629  // Check restrict.
4630  if (test_restrict ("String literal") == 0)
4631    success = true;
4632  char *restrict newvar = "Another string";
4633
4634  // Check varargs.
4635  test_varargs ("s, d' f .", "string", 65, 34.234);
4636  test_varargs_macros ();
4637
4638  // Check flexible array members.
4639  struct incomplete_array *ia =
4640    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4641  ia->datasize = 10;
4642  for (int i = 0; i < ia->datasize; ++i)
4643    ia->data[i] = i * 1.234;
4644
4645  // Check named initializers.
4646  struct named_init ni = {
4647    .number = 34,
4648    .name = L"Test wide string",
4649    .average = 543.34343,
4650  };
4651
4652  ni.number = 58;
4653
4654  int dynamic_array[ni.number];
4655  dynamic_array[ni.number - 1] = 543;
4656
4657  // work around unused variable warnings
4658  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4659	  || dynamic_array[ni.number - 1] != 543);
4660
4661  ;
4662  return 0;
4663}
4664_ACEOF
4665for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4666do
4667  CC="$ac_save_CC $ac_arg"
4668  if ac_fn_c_try_compile "$LINENO"; then :
4669  ac_cv_prog_cc_c99=$ac_arg
4670fi
4671rm -f core conftest.err conftest.$ac_objext
4672  test "x$ac_cv_prog_cc_c99" != "xno" && break
4673done
4674rm -f conftest.$ac_ext
4675CC=$ac_save_CC
4676
4677fi
4678# AC_CACHE_VAL
4679case "x$ac_cv_prog_cc_c99" in
4680  x)
4681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4682$as_echo "none needed" >&6; } ;;
4683  xno)
4684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4685$as_echo "unsupported" >&6; } ;;
4686  *)
4687    CC="$CC $ac_cv_prog_cc_c99"
4688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4689$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4690esac
4691if test "x$ac_cv_prog_cc_c99" != xno; then :
4692
4693fi
4694
4695
4696
4697if test -n "$ac_tool_prefix"; then
4698  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4699set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701$as_echo_n "checking for $ac_word... " >&6; }
4702if ${ac_cv_prog_RANLIB+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test -n "$RANLIB"; then
4706  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713    for ac_exec_ext in '' $ac_executable_extensions; do
4714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720  done
4721IFS=$as_save_IFS
4722
4723fi
4724fi
4725RANLIB=$ac_cv_prog_RANLIB
4726if test -n "$RANLIB"; then
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4728$as_echo "$RANLIB" >&6; }
4729else
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731$as_echo "no" >&6; }
4732fi
4733
4734
4735fi
4736if test -z "$ac_cv_prog_RANLIB"; then
4737  ac_ct_RANLIB=$RANLIB
4738  # Extract the first word of "ranlib", so it can be a program name with args.
4739set dummy ranlib; ac_word=$2
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741$as_echo_n "checking for $ac_word... " >&6; }
4742if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  if test -n "$ac_ct_RANLIB"; then
4746  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751  IFS=$as_save_IFS
4752  test -z "$as_dir" && as_dir=.
4753    for ac_exec_ext in '' $ac_executable_extensions; do
4754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755    ac_cv_prog_ac_ct_RANLIB="ranlib"
4756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757    break 2
4758  fi
4759done
4760  done
4761IFS=$as_save_IFS
4762
4763fi
4764fi
4765ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4766if test -n "$ac_ct_RANLIB"; then
4767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4768$as_echo "$ac_ct_RANLIB" >&6; }
4769else
4770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771$as_echo "no" >&6; }
4772fi
4773
4774  if test "x$ac_ct_RANLIB" = x; then
4775    RANLIB=":"
4776  else
4777    case $cross_compiling:$ac_tool_warned in
4778yes:)
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781ac_tool_warned=yes ;;
4782esac
4783    RANLIB=$ac_ct_RANLIB
4784  fi
4785else
4786  RANLIB="$ac_cv_prog_RANLIB"
4787fi
4788
4789if test -n "$ac_tool_prefix"; then
4790  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4791set dummy ${ac_tool_prefix}strip; ac_word=$2
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793$as_echo_n "checking for $ac_word... " >&6; }
4794if ${ac_cv_prog_STRIP+:} false; then :
4795  $as_echo_n "(cached) " >&6
4796else
4797  if test -n "$STRIP"; then
4798  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4799else
4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803  IFS=$as_save_IFS
4804  test -z "$as_dir" && as_dir=.
4805    for ac_exec_ext in '' $ac_executable_extensions; do
4806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809    break 2
4810  fi
4811done
4812  done
4813IFS=$as_save_IFS
4814
4815fi
4816fi
4817STRIP=$ac_cv_prog_STRIP
4818if test -n "$STRIP"; then
4819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4820$as_echo "$STRIP" >&6; }
4821else
4822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823$as_echo "no" >&6; }
4824fi
4825
4826
4827fi
4828if test -z "$ac_cv_prog_STRIP"; then
4829  ac_ct_STRIP=$STRIP
4830  # Extract the first word of "strip", so it can be a program name with args.
4831set dummy strip; ac_word=$2
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833$as_echo_n "checking for $ac_word... " >&6; }
4834if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  if test -n "$ac_ct_STRIP"; then
4838  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4839else
4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843  IFS=$as_save_IFS
4844  test -z "$as_dir" && as_dir=.
4845    for ac_exec_ext in '' $ac_executable_extensions; do
4846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847    ac_cv_prog_ac_ct_STRIP="strip"
4848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849    break 2
4850  fi
4851done
4852  done
4853IFS=$as_save_IFS
4854
4855fi
4856fi
4857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4858if test -n "$ac_ct_STRIP"; then
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4860$as_echo "$ac_ct_STRIP" >&6; }
4861else
4862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863$as_echo "no" >&6; }
4864fi
4865
4866  if test "x$ac_ct_STRIP" = x; then
4867    STRIP=""
4868  else
4869    case $cross_compiling:$ac_tool_warned in
4870yes:)
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873ac_tool_warned=yes ;;
4874esac
4875    STRIP=$ac_ct_STRIP
4876  fi
4877else
4878  STRIP="$ac_cv_prog_STRIP"
4879fi
4880
4881
4882# We use some _GNU_SOURCE bits
4883
4884ac_ext=c
4885ac_cpp='$CPP $CPPFLAGS'
4886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4890$as_echo_n "checking how to run the C preprocessor... " >&6; }
4891# On Suns, sometimes $CPP names a directory.
4892if test -n "$CPP" && test -d "$CPP"; then
4893  CPP=
4894fi
4895if test -z "$CPP"; then
4896  if ${ac_cv_prog_CPP+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899      # Double quotes because CPP needs to be expanded
4900    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4901    do
4902      ac_preproc_ok=false
4903for ac_c_preproc_warn_flag in '' yes
4904do
4905  # Use a header file that comes with gcc, so configuring glibc
4906  # with a fresh cross-compiler works.
4907  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908  # <limits.h> exists even on freestanding compilers.
4909  # On the NeXT, cc -E runs the code through the compiler's parser,
4910  # not just through cpp. "Syntax error" is here to catch this case.
4911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913#ifdef __STDC__
4914# include <limits.h>
4915#else
4916# include <assert.h>
4917#endif
4918		     Syntax error
4919_ACEOF
4920if ac_fn_c_try_cpp "$LINENO"; then :
4921
4922else
4923  # Broken: fails on valid input.
4924continue
4925fi
4926rm -f conftest.err conftest.i conftest.$ac_ext
4927
4928  # OK, works on sane cases.  Now check whether nonexistent headers
4929  # can be detected and how.
4930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h.  */
4932#include <ac_nonexistent.h>
4933_ACEOF
4934if ac_fn_c_try_cpp "$LINENO"; then :
4935  # Broken: success on invalid input.
4936continue
4937else
4938  # Passes both tests.
4939ac_preproc_ok=:
4940break
4941fi
4942rm -f conftest.err conftest.i conftest.$ac_ext
4943
4944done
4945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4946rm -f conftest.i conftest.err conftest.$ac_ext
4947if $ac_preproc_ok; then :
4948  break
4949fi
4950
4951    done
4952    ac_cv_prog_CPP=$CPP
4953
4954fi
4955  CPP=$ac_cv_prog_CPP
4956else
4957  ac_cv_prog_CPP=$CPP
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4960$as_echo "$CPP" >&6; }
4961ac_preproc_ok=false
4962for ac_c_preproc_warn_flag in '' yes
4963do
4964  # Use a header file that comes with gcc, so configuring glibc
4965  # with a fresh cross-compiler works.
4966  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967  # <limits.h> exists even on freestanding compilers.
4968  # On the NeXT, cc -E runs the code through the compiler's parser,
4969  # not just through cpp. "Syntax error" is here to catch this case.
4970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h.  */
4972#ifdef __STDC__
4973# include <limits.h>
4974#else
4975# include <assert.h>
4976#endif
4977		     Syntax error
4978_ACEOF
4979if ac_fn_c_try_cpp "$LINENO"; then :
4980
4981else
4982  # Broken: fails on valid input.
4983continue
4984fi
4985rm -f conftest.err conftest.i conftest.$ac_ext
4986
4987  # OK, works on sane cases.  Now check whether nonexistent headers
4988  # can be detected and how.
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991#include <ac_nonexistent.h>
4992_ACEOF
4993if ac_fn_c_try_cpp "$LINENO"; then :
4994  # Broken: success on invalid input.
4995continue
4996else
4997  # Passes both tests.
4998ac_preproc_ok=:
4999break
5000fi
5001rm -f conftest.err conftest.i conftest.$ac_ext
5002
5003done
5004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005rm -f conftest.i conftest.err conftest.$ac_ext
5006if $ac_preproc_ok; then :
5007
5008else
5009  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5011as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5012See \`config.log' for more details" "$LINENO" 5; }
5013fi
5014
5015ac_ext=c
5016ac_cpp='$CPP $CPPFLAGS'
5017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
5021
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5023$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5024if ${ac_cv_path_GREP+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  if test -z "$GREP"; then
5028  ac_path_GREP_found=false
5029  # Loop through the user's path and test for each of PROGNAME-LIST
5030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5032do
5033  IFS=$as_save_IFS
5034  test -z "$as_dir" && as_dir=.
5035    for ac_prog in grep ggrep; do
5036    for ac_exec_ext in '' $ac_executable_extensions; do
5037      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5038      as_fn_executable_p "$ac_path_GREP" || continue
5039# Check for GNU ac_path_GREP and select it if it is found.
5040  # Check for GNU $ac_path_GREP
5041case `"$ac_path_GREP" --version 2>&1` in
5042*GNU*)
5043  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5044*)
5045  ac_count=0
5046  $as_echo_n 0123456789 >"conftest.in"
5047  while :
5048  do
5049    cat "conftest.in" "conftest.in" >"conftest.tmp"
5050    mv "conftest.tmp" "conftest.in"
5051    cp "conftest.in" "conftest.nl"
5052    $as_echo 'GREP' >> "conftest.nl"
5053    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5054    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5055    as_fn_arith $ac_count + 1 && ac_count=$as_val
5056    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5057      # Best one so far, save it but keep looking for a better one
5058      ac_cv_path_GREP="$ac_path_GREP"
5059      ac_path_GREP_max=$ac_count
5060    fi
5061    # 10*(2^10) chars as input seems more than enough
5062    test $ac_count -gt 10 && break
5063  done
5064  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065esac
5066
5067      $ac_path_GREP_found && break 3
5068    done
5069  done
5070  done
5071IFS=$as_save_IFS
5072  if test -z "$ac_cv_path_GREP"; then
5073    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5074  fi
5075else
5076  ac_cv_path_GREP=$GREP
5077fi
5078
5079fi
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5081$as_echo "$ac_cv_path_GREP" >&6; }
5082 GREP="$ac_cv_path_GREP"
5083
5084
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5086$as_echo_n "checking for egrep... " >&6; }
5087if ${ac_cv_path_EGREP+:} false; then :
5088  $as_echo_n "(cached) " >&6
5089else
5090  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5091   then ac_cv_path_EGREP="$GREP -E"
5092   else
5093     if test -z "$EGREP"; then
5094  ac_path_EGREP_found=false
5095  # Loop through the user's path and test for each of PROGNAME-LIST
5096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101    for ac_prog in egrep; do
5102    for ac_exec_ext in '' $ac_executable_extensions; do
5103      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5104      as_fn_executable_p "$ac_path_EGREP" || continue
5105# Check for GNU ac_path_EGREP and select it if it is found.
5106  # Check for GNU $ac_path_EGREP
5107case `"$ac_path_EGREP" --version 2>&1` in
5108*GNU*)
5109  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5110*)
5111  ac_count=0
5112  $as_echo_n 0123456789 >"conftest.in"
5113  while :
5114  do
5115    cat "conftest.in" "conftest.in" >"conftest.tmp"
5116    mv "conftest.tmp" "conftest.in"
5117    cp "conftest.in" "conftest.nl"
5118    $as_echo 'EGREP' >> "conftest.nl"
5119    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121    as_fn_arith $ac_count + 1 && ac_count=$as_val
5122    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5123      # Best one so far, save it but keep looking for a better one
5124      ac_cv_path_EGREP="$ac_path_EGREP"
5125      ac_path_EGREP_max=$ac_count
5126    fi
5127    # 10*(2^10) chars as input seems more than enough
5128    test $ac_count -gt 10 && break
5129  done
5130  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131esac
5132
5133      $ac_path_EGREP_found && break 3
5134    done
5135  done
5136  done
5137IFS=$as_save_IFS
5138  if test -z "$ac_cv_path_EGREP"; then
5139    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5140  fi
5141else
5142  ac_cv_path_EGREP=$EGREP
5143fi
5144
5145   fi
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5148$as_echo "$ac_cv_path_EGREP" >&6; }
5149 EGREP="$ac_cv_path_EGREP"
5150
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5153$as_echo_n "checking for ANSI C header files... " >&6; }
5154if ${ac_cv_header_stdc+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159#include <stdlib.h>
5160#include <stdarg.h>
5161#include <string.h>
5162#include <float.h>
5163
5164int
5165main ()
5166{
5167
5168  ;
5169  return 0;
5170}
5171_ACEOF
5172if ac_fn_c_try_compile "$LINENO"; then :
5173  ac_cv_header_stdc=yes
5174else
5175  ac_cv_header_stdc=no
5176fi
5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178
5179if test $ac_cv_header_stdc = yes; then
5180  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183#include <string.h>
5184
5185_ACEOF
5186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187  $EGREP "memchr" >/dev/null 2>&1; then :
5188
5189else
5190  ac_cv_header_stdc=no
5191fi
5192rm -f conftest*
5193
5194fi
5195
5196if test $ac_cv_header_stdc = yes; then
5197  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200#include <stdlib.h>
5201
5202_ACEOF
5203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5204  $EGREP "free" >/dev/null 2>&1; then :
5205
5206else
5207  ac_cv_header_stdc=no
5208fi
5209rm -f conftest*
5210
5211fi
5212
5213if test $ac_cv_header_stdc = yes; then
5214  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5215  if test "$cross_compiling" = yes; then :
5216  :
5217else
5218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h.  */
5220#include <ctype.h>
5221#include <stdlib.h>
5222#if ((' ' & 0x0FF) == 0x020)
5223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5225#else
5226# define ISLOWER(c) \
5227		   (('a' <= (c) && (c) <= 'i') \
5228		     || ('j' <= (c) && (c) <= 'r') \
5229		     || ('s' <= (c) && (c) <= 'z'))
5230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5231#endif
5232
5233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5234int
5235main ()
5236{
5237  int i;
5238  for (i = 0; i < 256; i++)
5239    if (XOR (islower (i), ISLOWER (i))
5240	|| toupper (i) != TOUPPER (i))
5241      return 2;
5242  return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_run "$LINENO"; then :
5246
5247else
5248  ac_cv_header_stdc=no
5249fi
5250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5251  conftest.$ac_objext conftest.beam conftest.$ac_ext
5252fi
5253
5254fi
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5257$as_echo "$ac_cv_header_stdc" >&6; }
5258if test $ac_cv_header_stdc = yes; then
5259
5260$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5261
5262fi
5263
5264# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5265for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5266		  inttypes.h stdint.h unistd.h
5267do :
5268  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5269ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5270"
5271if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5272  cat >>confdefs.h <<_ACEOF
5273#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5274_ACEOF
5275
5276fi
5277
5278done
5279
5280
5281
5282  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5283if test "x$ac_cv_header_minix_config_h" = xyes; then :
5284  MINIX=yes
5285else
5286  MINIX=
5287fi
5288
5289
5290  if test "$MINIX" = yes; then
5291
5292$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5293
5294
5295$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5296
5297
5298$as_echo "#define _MINIX 1" >>confdefs.h
5299
5300  fi
5301
5302
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5304$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5305if ${ac_cv_safe_to_define___extensions__+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h.  */
5310
5311#         define __EXTENSIONS__ 1
5312          $ac_includes_default
5313int
5314main ()
5315{
5316
5317  ;
5318  return 0;
5319}
5320_ACEOF
5321if ac_fn_c_try_compile "$LINENO"; then :
5322  ac_cv_safe_to_define___extensions__=yes
5323else
5324  ac_cv_safe_to_define___extensions__=no
5325fi
5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327fi
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5329$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5330  test $ac_cv_safe_to_define___extensions__ = yes &&
5331    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5332
5333  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5334
5335  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5336
5337  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5338
5339  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5340
5341
5342
5343
5344# Don't rebuild the configure script.  I'm distributing a perfectly good one.
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5347$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5348    # Check whether --enable-maintainer-mode was given.
5349if test "${enable_maintainer_mode+set}" = set; then :
5350  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5351else
5352  USE_MAINTAINER_MODE=no
5353fi
5354
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5356$as_echo "$USE_MAINTAINER_MODE" >&6; }
5357   if test $USE_MAINTAINER_MODE = yes; then
5358  MAINTAINER_MODE_TRUE=
5359  MAINTAINER_MODE_FALSE='#'
5360else
5361  MAINTAINER_MODE_TRUE='#'
5362  MAINTAINER_MODE_FALSE=
5363fi
5364
5365  MAINT=$MAINTAINER_MODE_TRUE
5366
5367
5368
5369# Tarsnap has some of its own configure functions
5370# CHECK_BROKEN_TCP_NOPUSH
5371# -----------------------
5372# CHECK_BROKEN_TCP_NOPUSH
5373
5374# CHECK_FREEBSD_PORTRANGE_BUG
5375# ---------------------------
5376# CHECK_FREEBSD_PORTRANGE_BUG
5377
5378# CHECK_LINUX_EXT2FS
5379# ---------------------------
5380# CHECK_LINUX_EXT2FS
5381
5382# CHECK_SOLARIS_PATHS
5383# -------------------
5384# CHECK_SOLARIS_PATHS
5385
5386# CHECK_MDOC_OR_MAN
5387# -----------------
5388# If 'nroff -mdoc' returns with an exit status of 0, we will install man
5389# pages which use mdoc macros; otherwise, we will install man pages which
5390# have had mdoc macros stripped out.  On systems which support them, the
5391# mdoc versions are preferable; but we err on the side of caution -- there
5392# may be systems where man(1) does not use nroff(1) but still have mdoc
5393# macros available, yet we will use the mdoc-less man pages on them.
5394# CHECK_MDOC_OR_MAN
5395
5396
5397#
5398# Locate some specific link objects for cygwin
5399#
5400prog_ldadd_extra=
5401case "$host_os" in
5402*cygwin*)
5403  binmode_path=`$CC -print-file-name=binmode.o`
5404  if test -n "$binmode_path" && test -f "$binmode_path" ; then
5405    prog_ldadd_extra="$binmode_path"
5406  fi
5407  ;;
5408esac
5409PROG_LDADD_EXTRA=$prog_ldadd_extra
5410
5411
5412# Checks for header files.
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5414$as_echo_n "checking for ANSI C header files... " >&6; }
5415if ${ac_cv_header_stdc+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420#include <stdlib.h>
5421#include <stdarg.h>
5422#include <string.h>
5423#include <float.h>
5424
5425int
5426main ()
5427{
5428
5429  ;
5430  return 0;
5431}
5432_ACEOF
5433if ac_fn_c_try_compile "$LINENO"; then :
5434  ac_cv_header_stdc=yes
5435else
5436  ac_cv_header_stdc=no
5437fi
5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439
5440if test $ac_cv_header_stdc = yes; then
5441  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444#include <string.h>
5445
5446_ACEOF
5447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448  $EGREP "memchr" >/dev/null 2>&1; then :
5449
5450else
5451  ac_cv_header_stdc=no
5452fi
5453rm -f conftest*
5454
5455fi
5456
5457if test $ac_cv_header_stdc = yes; then
5458  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461#include <stdlib.h>
5462
5463_ACEOF
5464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5465  $EGREP "free" >/dev/null 2>&1; then :
5466
5467else
5468  ac_cv_header_stdc=no
5469fi
5470rm -f conftest*
5471
5472fi
5473
5474if test $ac_cv_header_stdc = yes; then
5475  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5476  if test "$cross_compiling" = yes; then :
5477  :
5478else
5479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h.  */
5481#include <ctype.h>
5482#include <stdlib.h>
5483#if ((' ' & 0x0FF) == 0x020)
5484# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5485# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5486#else
5487# define ISLOWER(c) \
5488		   (('a' <= (c) && (c) <= 'i') \
5489		     || ('j' <= (c) && (c) <= 'r') \
5490		     || ('s' <= (c) && (c) <= 'z'))
5491# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5492#endif
5493
5494#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5495int
5496main ()
5497{
5498  int i;
5499  for (i = 0; i < 256; i++)
5500    if (XOR (islower (i), ISLOWER (i))
5501	|| toupper (i) != TOUPPER (i))
5502      return 2;
5503  return 0;
5504}
5505_ACEOF
5506if ac_fn_c_try_run "$LINENO"; then :
5507
5508else
5509  ac_cv_header_stdc=no
5510fi
5511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5512  conftest.$ac_objext conftest.beam conftest.$ac_ext
5513fi
5514
5515fi
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5518$as_echo "$ac_cv_header_stdc" >&6; }
5519if test $ac_cv_header_stdc = yes; then
5520
5521$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5522
5523fi
5524
5525ac_header_dirent=no
5526for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5527  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5529$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5530if eval \${$as_ac_Header+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535#include <sys/types.h>
5536#include <$ac_hdr>
5537
5538int
5539main ()
5540{
5541if ((DIR *) 0)
5542return 0;
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547if ac_fn_c_try_compile "$LINENO"; then :
5548  eval "$as_ac_Header=yes"
5549else
5550  eval "$as_ac_Header=no"
5551fi
5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553fi
5554eval ac_res=\$$as_ac_Header
5555	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5556$as_echo "$ac_res" >&6; }
5557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5558  cat >>confdefs.h <<_ACEOF
5559#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5560_ACEOF
5561
5562ac_header_dirent=$ac_hdr; break
5563fi
5564
5565done
5566# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5567if test $ac_header_dirent = dirent.h; then
5568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5569$as_echo_n "checking for library containing opendir... " >&6; }
5570if ${ac_cv_search_opendir+:} false; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  ac_func_search_save_LIBS=$LIBS
5574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h.  */
5576
5577/* Override any GCC internal prototype to avoid an error.
5578   Use char because int might match the return type of a GCC
5579   builtin and then its argument prototype would still apply.  */
5580#ifdef __cplusplus
5581extern "C"
5582#endif
5583char opendir ();
5584int
5585main ()
5586{
5587return opendir ();
5588  ;
5589  return 0;
5590}
5591_ACEOF
5592for ac_lib in '' dir; do
5593  if test -z "$ac_lib"; then
5594    ac_res="none required"
5595  else
5596    ac_res=-l$ac_lib
5597    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5598  fi
5599  if ac_fn_c_try_link "$LINENO"; then :
5600  ac_cv_search_opendir=$ac_res
5601fi
5602rm -f core conftest.err conftest.$ac_objext \
5603    conftest$ac_exeext
5604  if ${ac_cv_search_opendir+:} false; then :
5605  break
5606fi
5607done
5608if ${ac_cv_search_opendir+:} false; then :
5609
5610else
5611  ac_cv_search_opendir=no
5612fi
5613rm conftest.$ac_ext
5614LIBS=$ac_func_search_save_LIBS
5615fi
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5617$as_echo "$ac_cv_search_opendir" >&6; }
5618ac_res=$ac_cv_search_opendir
5619if test "$ac_res" != no; then :
5620  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5621
5622fi
5623
5624else
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5626$as_echo_n "checking for library containing opendir... " >&6; }
5627if ${ac_cv_search_opendir+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  ac_func_search_save_LIBS=$LIBS
5631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h.  */
5633
5634/* Override any GCC internal prototype to avoid an error.
5635   Use char because int might match the return type of a GCC
5636   builtin and then its argument prototype would still apply.  */
5637#ifdef __cplusplus
5638extern "C"
5639#endif
5640char opendir ();
5641int
5642main ()
5643{
5644return opendir ();
5645  ;
5646  return 0;
5647}
5648_ACEOF
5649for ac_lib in '' x; do
5650  if test -z "$ac_lib"; then
5651    ac_res="none required"
5652  else
5653    ac_res=-l$ac_lib
5654    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5655  fi
5656  if ac_fn_c_try_link "$LINENO"; then :
5657  ac_cv_search_opendir=$ac_res
5658fi
5659rm -f core conftest.err conftest.$ac_objext \
5660    conftest$ac_exeext
5661  if ${ac_cv_search_opendir+:} false; then :
5662  break
5663fi
5664done
5665if ${ac_cv_search_opendir+:} false; then :
5666
5667else
5668  ac_cv_search_opendir=no
5669fi
5670rm conftest.$ac_ext
5671LIBS=$ac_func_search_save_LIBS
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5674$as_echo "$ac_cv_search_opendir" >&6; }
5675ac_res=$ac_cv_search_opendir
5676if test "$ac_res" != no; then :
5677  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5678
5679fi
5680
5681fi
5682
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5684$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5685if ${ac_cv_header_sys_wait_h+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h.  */
5690#include <sys/types.h>
5691#include <sys/wait.h>
5692#ifndef WEXITSTATUS
5693# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5694#endif
5695#ifndef WIFEXITED
5696# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5697#endif
5698
5699int
5700main ()
5701{
5702  int s;
5703  wait (&s);
5704  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5705  ;
5706  return 0;
5707}
5708_ACEOF
5709if ac_fn_c_try_compile "$LINENO"; then :
5710  ac_cv_header_sys_wait_h=yes
5711else
5712  ac_cv_header_sys_wait_h=no
5713fi
5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5717$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5718if test $ac_cv_header_sys_wait_h = yes; then
5719
5720$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5721
5722fi
5723
5724for ac_header in acl/libacl.h attr/xattr.h ctype.h err.h errno.h
5725do :
5726  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5727ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5728if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5729  cat >>confdefs.h <<_ACEOF
5730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5731_ACEOF
5732
5733fi
5734
5735done
5736
5737for ac_header in fcntl.h grp.h
5738do :
5739  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5740ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5742  cat >>confdefs.h <<_ACEOF
5743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5744_ACEOF
5745
5746fi
5747
5748done
5749
5750for ac_header in inttypes.h langinfo.h limits.h linux/fs.h
5751do :
5752  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5753ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5755  cat >>confdefs.h <<_ACEOF
5756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5757_ACEOF
5758
5759fi
5760
5761done
5762
5763for ac_header in locale.h paths.h poll.h pwd.h regex.h signal.h stdarg.h
5764do :
5765  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5766ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5767if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5768  cat >>confdefs.h <<_ACEOF
5769#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5770_ACEOF
5771
5772fi
5773
5774done
5775
5776for ac_header in stdint.h stdlib.h string.h
5777do :
5778  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5781  cat >>confdefs.h <<_ACEOF
5782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5783_ACEOF
5784
5785fi
5786
5787done
5788
5789for ac_header in sys/acl.h sys/extattr.h sys/ioctl.h sys/mkdev.h
5790do :
5791  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5794  cat >>confdefs.h <<_ACEOF
5795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796_ACEOF
5797
5798fi
5799
5800done
5801
5802for ac_header in sys/param.h sys/poll.h sys/select.h sys/time.h sys/utime.h
5803do :
5804  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5805ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5807  cat >>confdefs.h <<_ACEOF
5808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809_ACEOF
5810
5811fi
5812
5813done
5814
5815for ac_header in time.h unistd.h utime.h wchar.h wctype.h windows.h
5816do :
5817  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5820  cat >>confdefs.h <<_ACEOF
5821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5822_ACEOF
5823
5824fi
5825
5826done
5827
5828
5829# Check for clock_gettime.  On some systems, this is provided via librt.
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5831$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5832if ${ac_cv_lib_rt_clock_gettime+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  ac_check_lib_save_LIBS=$LIBS
5836LIBS="-lrt  $LIBS"
5837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h.  */
5839
5840/* Override any GCC internal prototype to avoid an error.
5841   Use char because int might match the return type of a GCC
5842   builtin and then its argument prototype would still apply.  */
5843#ifdef __cplusplus
5844extern "C"
5845#endif
5846char clock_gettime ();
5847int
5848main ()
5849{
5850return clock_gettime ();
5851  ;
5852  return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_link "$LINENO"; then :
5856  ac_cv_lib_rt_clock_gettime=yes
5857else
5858  ac_cv_lib_rt_clock_gettime=no
5859fi
5860rm -f core conftest.err conftest.$ac_objext \
5861    conftest$ac_exeext conftest.$ac_ext
5862LIBS=$ac_check_lib_save_LIBS
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5865$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5866if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
5867  cat >>confdefs.h <<_ACEOF
5868#define HAVE_LIBRT 1
5869_ACEOF
5870
5871  LIBS="-lrt $LIBS"
5872
5873fi
5874
5875for ac_func in clock_gettime
5876do :
5877  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5878if test "x$ac_cv_func_clock_gettime" = xyes; then :
5879  cat >>confdefs.h <<_ACEOF
5880#define HAVE_CLOCK_GETTIME 1
5881_ACEOF
5882
5883fi
5884done
5885
5886
5887# Check for a linuxy sysinfo syscall; and while we're doing that, check if
5888# struct sysinfo is the old version (total RAM == totalmem) or the new
5889# version (total RAM == totalmem * mem_unit).
5890for ac_header in sys/sysinfo.h
5891do :
5892  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
5893if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
5894  cat >>confdefs.h <<_ACEOF
5895#define HAVE_SYS_SYSINFO_H 1
5896_ACEOF
5897
5898fi
5899
5900done
5901
5902for ac_func in sysinfo
5903do :
5904  ac_fn_c_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
5905if test "x$ac_cv_func_sysinfo" = xyes; then :
5906  cat >>confdefs.h <<_ACEOF
5907#define HAVE_SYSINFO 1
5908_ACEOF
5909
5910fi
5911done
5912
5913ac_fn_c_check_type "$LINENO" "struct sysinfo" "ac_cv_type_struct_sysinfo" "#include <sys/sysinfo.h>
5914"
5915if test "x$ac_cv_type_struct_sysinfo" = xyes; then :
5916
5917cat >>confdefs.h <<_ACEOF
5918#define HAVE_STRUCT_SYSINFO 1
5919_ACEOF
5920
5921
5922fi
5923
5924ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h>
5925"
5926if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then :
5927
5928cat >>confdefs.h <<_ACEOF
5929#define HAVE_STRUCT_SYSINFO_TOTALRAM 1
5930_ACEOF
5931
5932
5933fi
5934ac_fn_c_check_member "$LINENO" "struct sysinfo" "mem_unit" "ac_cv_member_struct_sysinfo_mem_unit" "#include <sys/sysinfo.h>
5935"
5936if test "x$ac_cv_member_struct_sysinfo_mem_unit" = xyes; then :
5937
5938cat >>confdefs.h <<_ACEOF
5939#define HAVE_STRUCT_SYSINFO_MEM_UNIT 1
5940_ACEOF
5941
5942
5943fi
5944
5945
5946# Check for <sys/mount.h>, <sys/statvfs.h>, <sys/vfs.h>, and <sys/statfs.h>,
5947# which are used on various OSes to provide statfs(2) and statvfs(2).
5948for ac_header in sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h
5949do :
5950  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_PARAM_H
5952#include <sys/param.h>
5953#endif
5954"
5955if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5956  cat >>confdefs.h <<_ACEOF
5957#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958_ACEOF
5959
5960fi
5961
5962done
5963
5964
5965# Check for <sys/sysctl.h>.  If it exists and it defines HW_USERMEM
5966# and/or HW_MEMSIZE, we'll try using those as memory limits.
5967for ac_header in sys/sysctl.h
5968do :
5969  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
5970if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
5971  cat >>confdefs.h <<_ACEOF
5972#define HAVE_SYS_SYSCTL_H 1
5973_ACEOF
5974
5975fi
5976
5977done
5978
5979
5980# Check for members of struct statfs and struct statvfs.
5981ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#ifdef HAVE_SYS_PARAM_H
5982#include <sys/param.h>
5983#endif
5984#ifdef HAVE_SYS_MOUNT_H
5985#include <sys/mount.h>
5986#endif
5987#ifdef HAVE_SYS_STATFS_H
5988#include <sys/statfs.h>
5989#endif
5990#ifdef HAVE_SYS_STATVFS_H
5991#include <sys/statvfs.h>
5992#endif
5993#ifdef HAVE_SYS_VFS_H
5994#include <sys/vfs.h>
5995#endif
5996"
5997if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
5998
5999cat >>confdefs.h <<_ACEOF
6000#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
6001_ACEOF
6002
6003
6004fi
6005ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" "#ifdef HAVE_SYS_PARAM_H
6006#include <sys/param.h>
6007#endif
6008#ifdef HAVE_SYS_MOUNT_H
6009#include <sys/mount.h>
6010#endif
6011#ifdef HAVE_SYS_STATFS_H
6012#include <sys/statfs.h>
6013#endif
6014#ifdef HAVE_SYS_STATVFS_H
6015#include <sys/statvfs.h>
6016#endif
6017#ifdef HAVE_SYS_VFS_H
6018#include <sys/vfs.h>
6019#endif
6020"
6021if test "x$ac_cv_member_struct_statfs_f_type" = xyes; then :
6022
6023cat >>confdefs.h <<_ACEOF
6024#define HAVE_STRUCT_STATFS_F_TYPE 1
6025_ACEOF
6026
6027
6028fi
6029ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#ifdef HAVE_SYS_PARAM_H
6030#include <sys/param.h>
6031#endif
6032#ifdef HAVE_SYS_MOUNT_H
6033#include <sys/mount.h>
6034#endif
6035#ifdef HAVE_SYS_STATFS_H
6036#include <sys/statfs.h>
6037#endif
6038#ifdef HAVE_SYS_STATVFS_H
6039#include <sys/statvfs.h>
6040#endif
6041#ifdef HAVE_SYS_VFS_H
6042#include <sys/vfs.h>
6043#endif
6044"
6045if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
6046
6047cat >>confdefs.h <<_ACEOF
6048#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
6049_ACEOF
6050
6051
6052fi
6053ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#ifdef HAVE_SYS_PARAM_H
6054#include <sys/param.h>
6055#endif
6056#ifdef HAVE_SYS_MOUNT_H
6057#include <sys/mount.h>
6058#endif
6059#ifdef HAVE_SYS_STATFS_H
6060#include <sys/statfs.h>
6061#endif
6062#ifdef HAVE_SYS_STATVFS_H
6063#include <sys/statvfs.h>
6064#endif
6065#ifdef HAVE_SYS_VFS_H
6066#include <sys/vfs.h>
6067#endif
6068"
6069if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
6070
6071cat >>confdefs.h <<_ACEOF
6072#define HAVE_STRUCT_STATVFS_F_BASETYPE 1
6073_ACEOF
6074
6075
6076fi
6077
6078
6079# Check for <linux/magic.h>, which contains magic numbers for statfs on
6080# Linux 2.6.  (We hard-code values for Linux 2.4.)
6081for ac_header in linux/magic.h
6082do :
6083  ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
6084if test "x$ac_cv_header_linux_magic_h" = xyes; then :
6085  cat >>confdefs.h <<_ACEOF
6086#define HAVE_LINUX_MAGIC_H 1
6087_ACEOF
6088
6089fi
6090
6091done
6092
6093
6094# If we're on Solaris, we need to add some extra paths to the Makefile.
6095# This needs to be done *before* we look for OpenSSL; otherwise we won't
6096# be able to find it...
6097
6098
6099case $target_os in
6100*solaris* | *sunos*)
6101	CPPFLAGS="${CPPFLAGS} -I/usr/sfw/include"
6102	LDFLAGS="${LDFLAGS} -L/usr/sfw/lib -R/usr/sfw/lib"
6103	LIBS="${LIBS} -lsocket -lnsl"
6104	;;
6105esac
6106
6107
6108# Check if we should use mdoc versions of the man pages or versions which
6109# are uglier but more portable.
6110if nroff -mdoc </dev/null >/dev/null 2>/dev/null; then
6111	MANVER=mdoc;
6112else
6113	MANVER=man;
6114fi
6115
6116
6117
6118# On Linux, we need ext2fs/ext2_fs.h
6119
6120
6121case $target_os in
6122linux*)
6123	ac_fn_c_check_header_mongrel "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h" "$ac_includes_default"
6124if test "x$ac_cv_header_ext2fs_ext2_fs_h" = xyes; then :
6125
6126$as_echo "#define HAVE_EXT2FS_EXT2_FS_H 1" >>confdefs.h
6127
6128else
6129  as_fn_error $? "*** ext2fs/ext2_fs.h missing ***" "$LINENO" 5
6130fi
6131
6132
6133	;;
6134esac
6135
6136
6137
6138
6139# Check if we're on an operating system with a broken TCP_NOPUSH
6140
6141
6142case $target_os in
6143darwin*)
6144
6145$as_echo "#define BROKEN_TCP_NOPUSH 1" >>confdefs.h
6146
6147	;;
6148cygwin*)
6149
6150$as_echo "#define BROKEN_TCP_NOPUSH 1" >>confdefs.h
6151
6152	;;
6153esac
6154
6155
6156
6157
6158# Check if we have FreeBSD's randomized TCP source port bug
6159
6160
6161case $target_os in
6162freebsd*)
6163
6164$as_echo "#define FREEBSD_PORTRANGE_BUG 1" >>confdefs.h
6165
6166	;;
6167esac
6168
6169
6170
6171
6172# Checks for required libraries.
6173ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6174if test "x$ac_cv_header_zlib_h" = xyes; then :
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
6176$as_echo_n "checking for inflate in -lz... " >&6; }
6177if ${ac_cv_lib_z_inflate+:} false; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  ac_check_lib_save_LIBS=$LIBS
6181LIBS="-lz  $LIBS"
6182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184
6185/* Override any GCC internal prototype to avoid an error.
6186   Use char because int might match the return type of a GCC
6187   builtin and then its argument prototype would still apply.  */
6188#ifdef __cplusplus
6189extern "C"
6190#endif
6191char inflate ();
6192int
6193main ()
6194{
6195return inflate ();
6196  ;
6197  return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_link "$LINENO"; then :
6201  ac_cv_lib_z_inflate=yes
6202else
6203  ac_cv_lib_z_inflate=no
6204fi
6205rm -f core conftest.err conftest.$ac_objext \
6206    conftest$ac_exeext conftest.$ac_ext
6207LIBS=$ac_check_lib_save_LIBS
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
6210$as_echo "$ac_cv_lib_z_inflate" >&6; }
6211if test "x$ac_cv_lib_z_inflate" = xyes; then :
6212  cat >>confdefs.h <<_ACEOF
6213#define HAVE_LIBZ 1
6214_ACEOF
6215
6216  LIBS="-lz $LIBS"
6217
6218else
6219  as_fn_error $? "*** zlib missing ***" "$LINENO" 5
6220fi
6221
6222else
6223  as_fn_error $? "*** zlib header file missing ***" "$LINENO" 5
6224fi
6225
6226
6227ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
6228if test "x$ac_cv_header_openssl_rsa_h" = xyes; then :
6229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_private_encrypt in -lcrypto" >&5
6230$as_echo_n "checking for RSA_private_encrypt in -lcrypto... " >&6; }
6231if ${ac_cv_lib_crypto_RSA_private_encrypt+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  ac_check_lib_save_LIBS=$LIBS
6235LIBS="-lcrypto  $LIBS"
6236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238
6239/* Override any GCC internal prototype to avoid an error.
6240   Use char because int might match the return type of a GCC
6241   builtin and then its argument prototype would still apply.  */
6242#ifdef __cplusplus
6243extern "C"
6244#endif
6245char RSA_private_encrypt ();
6246int
6247main ()
6248{
6249return RSA_private_encrypt ();
6250  ;
6251  return 0;
6252}
6253_ACEOF
6254if ac_fn_c_try_link "$LINENO"; then :
6255  ac_cv_lib_crypto_RSA_private_encrypt=yes
6256else
6257  ac_cv_lib_crypto_RSA_private_encrypt=no
6258fi
6259rm -f core conftest.err conftest.$ac_objext \
6260    conftest$ac_exeext conftest.$ac_ext
6261LIBS=$ac_check_lib_save_LIBS
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_private_encrypt" >&5
6264$as_echo "$ac_cv_lib_crypto_RSA_private_encrypt" >&6; }
6265if test "x$ac_cv_lib_crypto_RSA_private_encrypt" = xyes; then :
6266  cat >>confdefs.h <<_ACEOF
6267#define HAVE_LIBCRYPTO 1
6268_ACEOF
6269
6270  LIBS="-lcrypto $LIBS"
6271
6272else
6273  as_fn_error $? "*** OpenSSL missing ***" "$LINENO" 5
6274fi
6275
6276else
6277  as_fn_error $? "*** OpenSSL header files missing ***" "$LINENO" 5
6278fi
6279
6280
6281
6282# Checks for optional libraries.
6283
6284# Check whether --with-bz2lib was given.
6285if test "${with_bz2lib+set}" = set; then :
6286  withval=$with_bz2lib;
6287fi
6288
6289
6290if test "x$with_bz2lib" != "xno"; then
6291  for ac_header in bzlib.h
6292do :
6293  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
6294if test "x$ac_cv_header_bzlib_h" = xyes; then :
6295  cat >>confdefs.h <<_ACEOF
6296#define HAVE_BZLIB_H 1
6297_ACEOF
6298
6299fi
6300
6301done
6302
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
6304$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
6305if ${ac_cv_lib_bz2_BZ2_bzDecompressInit+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  ac_check_lib_save_LIBS=$LIBS
6309LIBS="-lbz2  $LIBS"
6310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312
6313/* Override any GCC internal prototype to avoid an error.
6314   Use char because int might match the return type of a GCC
6315   builtin and then its argument prototype would still apply.  */
6316#ifdef __cplusplus
6317extern "C"
6318#endif
6319char BZ2_bzDecompressInit ();
6320int
6321main ()
6322{
6323return BZ2_bzDecompressInit ();
6324  ;
6325  return 0;
6326}
6327_ACEOF
6328if ac_fn_c_try_link "$LINENO"; then :
6329  ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
6330else
6331  ac_cv_lib_bz2_BZ2_bzDecompressInit=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext \
6334    conftest$ac_exeext conftest.$ac_ext
6335LIBS=$ac_check_lib_save_LIBS
6336fi
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
6338$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
6339if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then :
6340  cat >>confdefs.h <<_ACEOF
6341#define HAVE_LIBBZ2 1
6342_ACEOF
6343
6344  LIBS="-lbz2 $LIBS"
6345
6346fi
6347
6348fi
6349
6350
6351# Check whether --with-lzmadec was given.
6352if test "${with_lzmadec+set}" = set; then :
6353  withval=$with_lzmadec;
6354fi
6355
6356
6357if test "x$with_lzmadec" != "xno"; then
6358  for ac_header in lzmadec.h
6359do :
6360  ac_fn_c_check_header_mongrel "$LINENO" "lzmadec.h" "ac_cv_header_lzmadec_h" "$ac_includes_default"
6361if test "x$ac_cv_header_lzmadec_h" = xyes; then :
6362  cat >>confdefs.h <<_ACEOF
6363#define HAVE_LZMADEC_H 1
6364_ACEOF
6365
6366fi
6367
6368done
6369
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzmadec_decode in -llzmadec" >&5
6371$as_echo_n "checking for lzmadec_decode in -llzmadec... " >&6; }
6372if ${ac_cv_lib_lzmadec_lzmadec_decode+:} false; then :
6373  $as_echo_n "(cached) " >&6
6374else
6375  ac_check_lib_save_LIBS=$LIBS
6376LIBS="-llzmadec  $LIBS"
6377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379
6380/* Override any GCC internal prototype to avoid an error.
6381   Use char because int might match the return type of a GCC
6382   builtin and then its argument prototype would still apply.  */
6383#ifdef __cplusplus
6384extern "C"
6385#endif
6386char lzmadec_decode ();
6387int
6388main ()
6389{
6390return lzmadec_decode ();
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395if ac_fn_c_try_link "$LINENO"; then :
6396  ac_cv_lib_lzmadec_lzmadec_decode=yes
6397else
6398  ac_cv_lib_lzmadec_lzmadec_decode=no
6399fi
6400rm -f core conftest.err conftest.$ac_objext \
6401    conftest$ac_exeext conftest.$ac_ext
6402LIBS=$ac_check_lib_save_LIBS
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzmadec_lzmadec_decode" >&5
6405$as_echo "$ac_cv_lib_lzmadec_lzmadec_decode" >&6; }
6406if test "x$ac_cv_lib_lzmadec_lzmadec_decode" = xyes; then :
6407  cat >>confdefs.h <<_ACEOF
6408#define HAVE_LIBLZMADEC 1
6409_ACEOF
6410
6411  LIBS="-llzmadec $LIBS"
6412
6413fi
6414
6415fi
6416
6417
6418# Check whether --with-lzma was given.
6419if test "${with_lzma+set}" = set; then :
6420  withval=$with_lzma;
6421fi
6422
6423
6424if test "x$with_lzma" != "xno"; then
6425  for ac_header in lzma.h
6426do :
6427  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
6428if test "x$ac_cv_header_lzma_h" = xyes; then :
6429  cat >>confdefs.h <<_ACEOF
6430#define HAVE_LZMA_H 1
6431_ACEOF
6432
6433fi
6434
6435done
6436
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
6438$as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
6439if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  ac_check_lib_save_LIBS=$LIBS
6443LIBS="-llzma  $LIBS"
6444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446
6447/* Override any GCC internal prototype to avoid an error.
6448   Use char because int might match the return type of a GCC
6449   builtin and then its argument prototype would still apply.  */
6450#ifdef __cplusplus
6451extern "C"
6452#endif
6453char lzma_stream_decoder ();
6454int
6455main ()
6456{
6457return lzma_stream_decoder ();
6458  ;
6459  return 0;
6460}
6461_ACEOF
6462if ac_fn_c_try_link "$LINENO"; then :
6463  ac_cv_lib_lzma_lzma_stream_decoder=yes
6464else
6465  ac_cv_lib_lzma_lzma_stream_decoder=no
6466fi
6467rm -f core conftest.err conftest.$ac_objext \
6468    conftest$ac_exeext conftest.$ac_ext
6469LIBS=$ac_check_lib_save_LIBS
6470fi
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
6472$as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
6473if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
6474  cat >>confdefs.h <<_ACEOF
6475#define HAVE_LIBLZMA 1
6476_ACEOF
6477
6478  LIBS="-llzma $LIBS"
6479
6480fi
6481
6482fi
6483
6484for ac_header in openssl/md5.h openssl/ripemd.h openssl/sha.h
6485do :
6486  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6489  cat >>confdefs.h <<_ACEOF
6490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6491_ACEOF
6492
6493fi
6494
6495done
6496
6497for ac_header in md5.h
6498do :
6499  ac_fn_c_check_header_mongrel "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
6500if test "x$ac_cv_header_md5_h" = xyes; then :
6501  cat >>confdefs.h <<_ACEOF
6502#define HAVE_MD5_H 1
6503_ACEOF
6504
6505fi
6506
6507done
6508
6509for ac_header in ripemd.h rmd160.h
6510do :
6511  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6514  cat >>confdefs.h <<_ACEOF
6515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6516_ACEOF
6517
6518fi
6519
6520done
6521
6522for ac_header in sha.h sha1.h sha2.h sha256.h
6523do :
6524  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6525ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6527  cat >>confdefs.h <<_ACEOF
6528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6529_ACEOF
6530
6531fi
6532
6533done
6534
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SHA1_Init" >&5
6536$as_echo_n "checking for library containing SHA1_Init... " >&6; }
6537if ${ac_cv_search_SHA1_Init+:} false; then :
6538  $as_echo_n "(cached) " >&6
6539else
6540  ac_func_search_save_LIBS=$LIBS
6541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542/* end confdefs.h.  */
6543
6544/* Override any GCC internal prototype to avoid an error.
6545   Use char because int might match the return type of a GCC
6546   builtin and then its argument prototype would still apply.  */
6547#ifdef __cplusplus
6548extern "C"
6549#endif
6550char SHA1_Init ();
6551int
6552main ()
6553{
6554return SHA1_Init ();
6555  ;
6556  return 0;
6557}
6558_ACEOF
6559for ac_lib in '' crypto ssl md; do
6560  if test -z "$ac_lib"; then
6561    ac_res="none required"
6562  else
6563    ac_res=-l$ac_lib
6564    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6565  fi
6566  if ac_fn_c_try_link "$LINENO"; then :
6567  ac_cv_search_SHA1_Init=$ac_res
6568fi
6569rm -f core conftest.err conftest.$ac_objext \
6570    conftest$ac_exeext
6571  if ${ac_cv_search_SHA1_Init+:} false; then :
6572  break
6573fi
6574done
6575if ${ac_cv_search_SHA1_Init+:} false; then :
6576
6577else
6578  ac_cv_search_SHA1_Init=no
6579fi
6580rm conftest.$ac_ext
6581LIBS=$ac_func_search_save_LIBS
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SHA1_Init" >&5
6584$as_echo "$ac_cv_search_SHA1_Init" >&6; }
6585ac_res=$ac_cv_search_SHA1_Init
6586if test "$ac_res" != no; then :
6587  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6588
6589fi
6590
6591ac_fn_c_check_func "$LINENO" "MD5_Init" "ac_cv_func_MD5_Init"
6592if test "x$ac_cv_func_MD5_Init" = xyes; then :
6593
6594fi
6595
6596if test "x$ac_cv_func_MD5_Init" != "xyes"; then
6597  ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
6598if test "x$ac_cv_func_MD5Init" = xyes; then :
6599
6600$as_echo "#define MD5_Init MD5Init" >>confdefs.h
6601
6602
6603$as_echo "#define MD5_Update MD5Update" >>confdefs.h
6604
6605
6606$as_echo "#define MD5_Final MD5Final" >>confdefs.h
6607
6608
6609fi
6610
6611fi
6612if test "x$ac_cv_func_MD5_Init" = "xyes" -o "x$ac_cv_func_MD5Init" = "xyes" ; then
6613
6614$as_echo "#define HAVE_MD5 1" >>confdefs.h
6615
6616fi
6617ac_fn_c_check_func "$LINENO" "RIPEMD160_Init" "ac_cv_func_RIPEMD160_Init"
6618if test "x$ac_cv_func_RIPEMD160_Init" = xyes; then :
6619
6620fi
6621
6622if test "x$ac_cv_func_RIPEMD160_Init" != "xyes"; then
6623  ac_fn_c_check_func "$LINENO" "RMD160Init" "ac_cv_func_RMD160Init"
6624if test "x$ac_cv_func_RMD160Init" = xyes; then :
6625
6626$as_echo "#define RIPEMD160_Init RMD160Init" >>confdefs.h
6627
6628
6629$as_echo "#define RIPEMD160_Update RMD160Update" >>confdefs.h
6630
6631
6632$as_echo "#define RIPEMD160_Final RMD160Final" >>confdefs.h
6633
6634
6635fi
6636
6637fi
6638if test "x$ac_cv_func_RIPEMD160_Init" = "xyes" -o "x$ac_cv_func_RMD160Init" = "xyes" ; then
6639
6640$as_echo "#define HAVE_RMD160 1" >>confdefs.h
6641
6642fi
6643ac_fn_c_check_func "$LINENO" "SHA1_Init" "ac_cv_func_SHA1_Init"
6644if test "x$ac_cv_func_SHA1_Init" = xyes; then :
6645
6646fi
6647
6648if test "x$ac_cv_func_SHA1_Init" != "xyes"; then
6649  ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
6650if test "x$ac_cv_func_SHA1Init" = xyes; then :
6651
6652$as_echo "#define SHA1_Init SHA1Init" >>confdefs.h
6653
6654
6655$as_echo "#define SHA1_Update SHA1Update" >>confdefs.h
6656
6657
6658$as_echo "#define SHA1_Final SHA1Final" >>confdefs.h
6659
6660
6661fi
6662
6663fi
6664if test "x$ac_cv_func_SHA1_Init" = "xyes" -o "x$ac_cv_func_SHA1Init" = "xyes" ; then
6665
6666$as_echo "#define HAVE_SHA1 1" >>confdefs.h
6667
6668fi
6669ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
6670if test "x$ac_cv_func_SHA256_Init" = xyes; then :
6671
6672fi
6673
6674if test "x$ac_cv_func_SHA256_Init" = "xyes" ; then
6675
6676$as_echo "#define HAVE_SHA256 1" >>confdefs.h
6677
6678fi
6679ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
6680if test "x$ac_cv_func_SHA384_Init" = xyes; then :
6681
6682fi
6683
6684if test "x$ac_cv_func_SHA384_Init" = "xyes" ; then
6685
6686$as_echo "#define HAVE_SHA384 1" >>confdefs.h
6687
6688fi
6689ac_fn_c_check_func "$LINENO" "SHA512_Init" "ac_cv_func_SHA512_Init"
6690if test "x$ac_cv_func_SHA512_Init" = xyes; then :
6691
6692fi
6693
6694if test "x$ac_cv_func_SHA512_Init" = "xyes" ; then
6695
6696$as_echo "#define HAVE_SHA512 1" >>confdefs.h
6697
6698fi
6699
6700# Checks for typedefs, structures, and compiler characteristics.
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6702$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6703if ${ac_cv_c_const+:} false; then :
6704  $as_echo_n "(cached) " >&6
6705else
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708
6709int
6710main ()
6711{
6712
6713#ifndef __cplusplus
6714  /* Ultrix mips cc rejects this sort of thing.  */
6715  typedef int charset[2];
6716  const charset cs = { 0, 0 };
6717  /* SunOS 4.1.1 cc rejects this.  */
6718  char const *const *pcpcc;
6719  char **ppc;
6720  /* NEC SVR4.0.2 mips cc rejects this.  */
6721  struct point {int x, y;};
6722  static struct point const zero = {0,0};
6723  /* AIX XL C 1.02.0.0 rejects this.
6724     It does not let you subtract one const X* pointer from another in
6725     an arm of an if-expression whose if-part is not a constant
6726     expression */
6727  const char *g = "string";
6728  pcpcc = &g + (g ? g-g : 0);
6729  /* HPUX 7.0 cc rejects these. */
6730  ++pcpcc;
6731  ppc = (char**) pcpcc;
6732  pcpcc = (char const *const *) ppc;
6733  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6734    char tx;
6735    char *t = &tx;
6736    char const *s = 0 ? (char *) 0 : (char const *) 0;
6737
6738    *t++ = 0;
6739    if (s) return 0;
6740  }
6741  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6742    int x[] = {25, 17};
6743    const int *foo = &x[0];
6744    ++foo;
6745  }
6746  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6747    typedef const int *iptr;
6748    iptr p = 0;
6749    ++p;
6750  }
6751  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6752       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6753    struct s { int j; const int *ap[3]; } bx;
6754    struct s *b = &bx; b->j = 5;
6755  }
6756  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6757    const int foo = 10;
6758    if (!foo) return 0;
6759  }
6760  return !cs[0] && !zero.x;
6761#endif
6762
6763  ;
6764  return 0;
6765}
6766_ACEOF
6767if ac_fn_c_try_compile "$LINENO"; then :
6768  ac_cv_c_const=yes
6769else
6770  ac_cv_c_const=no
6771fi
6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773fi
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6775$as_echo "$ac_cv_c_const" >&6; }
6776if test $ac_cv_c_const = no; then
6777
6778$as_echo "#define const /**/" >>confdefs.h
6779
6780fi
6781
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6783$as_echo_n "checking for inline... " >&6; }
6784if ${ac_cv_c_inline+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  ac_cv_c_inline=no
6788for ac_kw in inline __inline__ __inline; do
6789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h.  */
6791#ifndef __cplusplus
6792typedef int foo_t;
6793static $ac_kw foo_t static_foo () {return 0; }
6794$ac_kw foo_t foo () {return 0; }
6795#endif
6796
6797_ACEOF
6798if ac_fn_c_try_compile "$LINENO"; then :
6799  ac_cv_c_inline=$ac_kw
6800fi
6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802  test "$ac_cv_c_inline" != no && break
6803done
6804
6805fi
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6807$as_echo "$ac_cv_c_inline" >&6; }
6808
6809case $ac_cv_c_inline in
6810  inline | yes) ;;
6811  *)
6812    case $ac_cv_c_inline in
6813      no) ac_val=;;
6814      *) ac_val=$ac_cv_c_inline;;
6815    esac
6816    cat >>confdefs.h <<_ACEOF
6817#ifndef __cplusplus
6818#define inline $ac_val
6819#endif
6820_ACEOF
6821    ;;
6822esac
6823
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6825$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6826if ${ac_cv_type_uid_t+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831#include <sys/types.h>
6832
6833_ACEOF
6834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835  $EGREP "uid_t" >/dev/null 2>&1; then :
6836  ac_cv_type_uid_t=yes
6837else
6838  ac_cv_type_uid_t=no
6839fi
6840rm -f conftest*
6841
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6844$as_echo "$ac_cv_type_uid_t" >&6; }
6845if test $ac_cv_type_uid_t = no; then
6846
6847$as_echo "#define uid_t int" >>confdefs.h
6848
6849
6850$as_echo "#define gid_t int" >>confdefs.h
6851
6852fi
6853
6854ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6855if test "x$ac_cv_type_mode_t" = xyes; then :
6856
6857else
6858
6859cat >>confdefs.h <<_ACEOF
6860#define mode_t int
6861_ACEOF
6862
6863fi
6864
6865# AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
6866# most systems... default to "long long" instead.
6867ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6868if test "x$ac_cv_type_off_t" = xyes; then :
6869
6870else
6871
6872cat >>confdefs.h <<_ACEOF
6873#define off_t long long
6874_ACEOF
6875
6876fi
6877
6878ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6879if test "x$ac_cv_type_size_t" = xyes; then :
6880
6881else
6882
6883cat >>confdefs.h <<_ACEOF
6884#define size_t unsigned int
6885_ACEOF
6886
6887fi
6888
6889ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
6890if test "x$ac_cv_type_id_t" = xyes; then :
6891
6892else
6893
6894cat >>confdefs.h <<_ACEOF
6895#define id_t unsigned long
6896_ACEOF
6897
6898fi
6899
6900ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6901if test "x$ac_cv_type_uintptr_t" = xyes; then :
6902
6903else
6904
6905cat >>confdefs.h <<_ACEOF
6906#define uintptr_t unsigned int
6907_ACEOF
6908
6909fi
6910
6911
6912# Check for birthtime in struct stat
6913ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
6914if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
6915
6916cat >>confdefs.h <<_ACEOF
6917#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
6918_ACEOF
6919
6920
6921fi
6922
6923
6924# Check for high-resolution timestamps in struct stat
6925ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"
6926if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
6927
6928cat >>confdefs.h <<_ACEOF
6929#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
6930_ACEOF
6931
6932
6933fi
6934
6935ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
6936if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
6937
6938cat >>confdefs.h <<_ACEOF
6939#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
6940_ACEOF
6941
6942
6943fi
6944
6945ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
6946if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
6947
6948cat >>confdefs.h <<_ACEOF
6949#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
6950_ACEOF
6951
6952
6953fi
6954
6955ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"
6956if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
6957
6958cat >>confdefs.h <<_ACEOF
6959#define HAVE_STRUCT_STAT_ST_MTIME_N 1
6960_ACEOF
6961
6962
6963fi
6964 # AIX
6965ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"
6966if test "x$ac_cv_member_struct_stat_st_umtime" = xyes; then :
6967
6968cat >>confdefs.h <<_ACEOF
6969#define HAVE_STRUCT_STAT_ST_UMTIME 1
6970_ACEOF
6971
6972
6973fi
6974 # Tru64
6975ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"
6976if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes; then :
6977
6978cat >>confdefs.h <<_ACEOF
6979#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1
6980_ACEOF
6981
6982
6983fi
6984 # Hurd
6985# Check for block size support in struct stat
6986ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6987if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6988
6989cat >>confdefs.h <<_ACEOF
6990#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6991_ACEOF
6992
6993
6994fi
6995
6996# Check for st_flags in struct stat (BSD fflags)
6997ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
6998if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
6999
7000cat >>confdefs.h <<_ACEOF
7001#define HAVE_STRUCT_STAT_ST_FLAGS 1
7002_ACEOF
7003
7004
7005fi
7006
7007
7008# If you have uintmax_t, we assume printf supports %ju
7009# If you have unsigned long long, we assume printf supports %llu
7010# TODO: Check for %ju and %llu support directly.
7011ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7012if test "x$ac_cv_type_uintmax_t" = xyes; then :
7013
7014cat >>confdefs.h <<_ACEOF
7015#define HAVE_UINTMAX_T 1
7016_ACEOF
7017
7018
7019fi
7020ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
7021if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
7022
7023cat >>confdefs.h <<_ACEOF
7024#define HAVE_UNSIGNED_LONG_LONG 1
7025_ACEOF
7026
7027
7028fi
7029
7030
7031# We need int64_t, uint64_t, intmax_t, and uintmax_t
7032
7033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7034$as_echo_n "checking for unsigned long long int... " >&6; }
7035if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  ac_cv_type_unsigned_long_long_int=yes
7039     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7040       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041/* end confdefs.h.  */
7042
7043  /* For now, do not test the preprocessor; as of 2007 there are too many
7044	 implementations with broken preprocessors.  Perhaps this can
7045	 be revisited in 2012.  In the meantime, code should not expect
7046	 #if to work with literals wider than 32 bits.  */
7047      /* Test literals.  */
7048      long long int ll = 9223372036854775807ll;
7049      long long int nll = -9223372036854775807LL;
7050      unsigned long long int ull = 18446744073709551615ULL;
7051      /* Test constant expressions.   */
7052      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7053		     ? 1 : -1)];
7054      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7055		     ? 1 : -1)];
7056      int i = 63;
7057int
7058main ()
7059{
7060/* Test availability of runtime routines for shift and division.  */
7061      long long int llmax = 9223372036854775807ll;
7062      unsigned long long int ullmax = 18446744073709551615ull;
7063      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7064	      | (llmax / ll) | (llmax % ll)
7065	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7066	      | (ullmax / ull) | (ullmax % ull));
7067  ;
7068  return 0;
7069}
7070
7071_ACEOF
7072if ac_fn_c_try_link "$LINENO"; then :
7073
7074else
7075  ac_cv_type_unsigned_long_long_int=no
7076fi
7077rm -f core conftest.err conftest.$ac_objext \
7078    conftest$ac_exeext conftest.$ac_ext
7079     fi
7080fi
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7082$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7083  if test $ac_cv_type_unsigned_long_long_int = yes; then
7084
7085$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7086
7087  fi
7088
7089
7090
7091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7092$as_echo_n "checking for long long int... " >&6; }
7093if ${ac_cv_type_long_long_int+:} false; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  ac_cv_type_long_long_int=yes
7097      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7098	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7099	if test $ac_cv_type_long_long_int = yes; then
7100	  	  	  	  if test "$cross_compiling" = yes; then :
7101  :
7102else
7103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104/* end confdefs.h.  */
7105#include <limits.h>
7106		 #ifndef LLONG_MAX
7107		 # define HALF \
7108			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7109		 # define LLONG_MAX (HALF - 1 + HALF)
7110		 #endif
7111int
7112main ()
7113{
7114long long int n = 1;
7115		 int i;
7116		 for (i = 0; ; i++)
7117		   {
7118		     long long int m = n << i;
7119		     if (m >> i != n)
7120		       return 1;
7121		     if (LLONG_MAX / 2 < m)
7122		       break;
7123		   }
7124		 return 0;
7125  ;
7126  return 0;
7127}
7128_ACEOF
7129if ac_fn_c_try_run "$LINENO"; then :
7130
7131else
7132  ac_cv_type_long_long_int=no
7133fi
7134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7135  conftest.$ac_objext conftest.beam conftest.$ac_ext
7136fi
7137
7138	fi
7139      fi
7140fi
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7142$as_echo "$ac_cv_type_long_long_int" >&6; }
7143  if test $ac_cv_type_long_long_int = yes; then
7144
7145$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7146
7147  fi
7148
7149
7150
7151  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7152if test "x$ac_cv_type_intmax_t" = xyes; then :
7153
7154$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7155
7156else
7157  test $ac_cv_type_long_long_int = yes \
7158       && ac_type='long long int' \
7159       || ac_type='long int'
7160
7161cat >>confdefs.h <<_ACEOF
7162#define intmax_t $ac_type
7163_ACEOF
7164
7165fi
7166
7167
7168ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7169case $ac_cv_c_int64_t in #(
7170  no|yes) ;; #(
7171  *)
7172
7173cat >>confdefs.h <<_ACEOF
7174#define int64_t $ac_cv_c_int64_t
7175_ACEOF
7176;;
7177esac
7178
7179
7180
7181  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7182if test "x$ac_cv_type_uintmax_t" = xyes; then :
7183
7184$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7185
7186else
7187  test $ac_cv_type_unsigned_long_long_int = yes \
7188       && ac_type='unsigned long long int' \
7189       || ac_type='unsigned long int'
7190
7191cat >>confdefs.h <<_ACEOF
7192#define uintmax_t $ac_type
7193_ACEOF
7194
7195fi
7196
7197
7198ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7199case $ac_cv_c_uint64_t in #(
7200  no|yes) ;; #(
7201  *)
7202
7203$as_echo "#define _UINT64_T 1" >>confdefs.h
7204
7205
7206cat >>confdefs.h <<_ACEOF
7207#define uint64_t $ac_cv_c_uint64_t
7208_ACEOF
7209;;
7210  esac
7211
7212
7213# TODO: If any of these are missing, define them right here.
7214ac_fn_c_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default"
7215if test "x$ac_cv_have_decl_SIZE_MAX" = xyes; then :
7216  ac_have_decl=1
7217else
7218  ac_have_decl=0
7219fi
7220
7221cat >>confdefs.h <<_ACEOF
7222#define HAVE_DECL_SIZE_MAX $ac_have_decl
7223_ACEOF
7224ac_fn_c_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "$ac_includes_default"
7225if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes; then :
7226  ac_have_decl=1
7227else
7228  ac_have_decl=0
7229fi
7230
7231cat >>confdefs.h <<_ACEOF
7232#define HAVE_DECL_SSIZE_MAX $ac_have_decl
7233_ACEOF
7234ac_fn_c_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default"
7235if test "x$ac_cv_have_decl_INT64_MAX" = xyes; then :
7236  ac_have_decl=1
7237else
7238  ac_have_decl=0
7239fi
7240
7241cat >>confdefs.h <<_ACEOF
7242#define HAVE_DECL_INT64_MAX $ac_have_decl
7243_ACEOF
7244ac_fn_c_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default"
7245if test "x$ac_cv_have_decl_INT64_MIN" = xyes; then :
7246  ac_have_decl=1
7247else
7248  ac_have_decl=0
7249fi
7250
7251cat >>confdefs.h <<_ACEOF
7252#define HAVE_DECL_INT64_MIN $ac_have_decl
7253_ACEOF
7254ac_fn_c_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default"
7255if test "x$ac_cv_have_decl_UINT64_MAX" = xyes; then :
7256  ac_have_decl=1
7257else
7258  ac_have_decl=0
7259fi
7260
7261cat >>confdefs.h <<_ACEOF
7262#define HAVE_DECL_UINT64_MAX $ac_have_decl
7263_ACEOF
7264ac_fn_c_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default"
7265if test "x$ac_cv_have_decl_UINT32_MAX" = xyes; then :
7266  ac_have_decl=1
7267else
7268  ac_have_decl=0
7269fi
7270
7271cat >>confdefs.h <<_ACEOF
7272#define HAVE_DECL_UINT32_MAX $ac_have_decl
7273_ACEOF
7274
7275
7276ac_fn_c_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>
7277"
7278if test "x$ac_cv_have_decl_EFTYPE" = xyes; then :
7279
7280$as_echo "#define HAVE_EFTYPE 1" >>confdefs.h
7281
7282fi
7283
7284ac_fn_c_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>
7285"
7286if test "x$ac_cv_have_decl_EILSEQ" = xyes; then :
7287
7288$as_echo "#define HAVE_EILSEQ 1" >>confdefs.h
7289
7290fi
7291
7292ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7293if test "x$ac_cv_type_wchar_t" = xyes; then :
7294
7295cat >>confdefs.h <<_ACEOF
7296#define HAVE_WCHAR_T 1
7297_ACEOF
7298		# The cast to long int works around a bug in the HP C Compiler
7299# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7300# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7301# This bug is HP SR number 8606223364.
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
7303$as_echo_n "checking size of wchar_t... " >&6; }
7304if ${ac_cv_sizeof_wchar_t+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
7308
7309else
7310  if test "$ac_cv_type_wchar_t" = yes; then
7311     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7313as_fn_error 77 "cannot compute sizeof (wchar_t)
7314See \`config.log' for more details" "$LINENO" 5; }
7315   else
7316     ac_cv_sizeof_wchar_t=0
7317   fi
7318fi
7319
7320fi
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
7322$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
7323
7324
7325
7326cat >>confdefs.h <<_ACEOF
7327#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7328_ACEOF
7329
7330
7331fi
7332
7333
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7335$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7336if ${ac_cv_header_time+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h.  */
7341#include <sys/types.h>
7342#include <sys/time.h>
7343#include <time.h>
7344
7345int
7346main ()
7347{
7348if ((struct tm *) 0)
7349return 0;
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354if ac_fn_c_try_compile "$LINENO"; then :
7355  ac_cv_header_time=yes
7356else
7357  ac_cv_header_time=no
7358fi
7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360fi
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7362$as_echo "$ac_cv_header_time" >&6; }
7363if test $ac_cv_header_time = yes; then
7364
7365$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7366
7367fi
7368
7369
7370# Checks for library functions.
7371if test $ac_cv_c_compiler_gnu = yes; then
7372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7373$as_echo_n "checking whether $CC needs -traditional... " >&6; }
7374if ${ac_cv_prog_gcc_traditional+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377    ac_pattern="Autoconf.*'x'"
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380#include <sgtty.h>
7381Autoconf TIOCGETP
7382_ACEOF
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7385  ac_cv_prog_gcc_traditional=yes
7386else
7387  ac_cv_prog_gcc_traditional=no
7388fi
7389rm -f conftest*
7390
7391
7392  if test $ac_cv_prog_gcc_traditional = no; then
7393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h.  */
7395#include <termio.h>
7396Autoconf TCGETA
7397_ACEOF
7398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7399  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7400  ac_cv_prog_gcc_traditional=yes
7401fi
7402rm -f conftest*
7403
7404  fi
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7407$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7408  if test $ac_cv_prog_gcc_traditional = yes; then
7409    CC="$CC -traditional"
7410  fi
7411fi
7412
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7414$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7415if ${ac_cv_header_sys_types_h_makedev+:} false; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h.  */
7420#include <sys/types.h>
7421int
7422main ()
7423{
7424return makedev(0, 0);
7425  ;
7426  return 0;
7427}
7428_ACEOF
7429if ac_fn_c_try_link "$LINENO"; then :
7430  ac_cv_header_sys_types_h_makedev=yes
7431else
7432  ac_cv_header_sys_types_h_makedev=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext \
7435    conftest$ac_exeext conftest.$ac_ext
7436
7437fi
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7439$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7440
7441if test $ac_cv_header_sys_types_h_makedev = no; then
7442ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7443if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
7444
7445$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
7446
7447fi
7448
7449
7450
7451  if test $ac_cv_header_sys_mkdev_h = no; then
7452    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7453if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
7454
7455$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7456
7457fi
7458
7459
7460  fi
7461fi
7462
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7464$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7465if ${ac_cv_sys_largefile_source+:} false; then :
7466  $as_echo_n "(cached) " >&6
7467else
7468  while :; do
7469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h.  */
7471#include <sys/types.h> /* for off_t */
7472     #include <stdio.h>
7473int
7474main ()
7475{
7476int (*fp) (FILE *, off_t, int) = fseeko;
7477     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7478  ;
7479  return 0;
7480}
7481_ACEOF
7482if ac_fn_c_try_link "$LINENO"; then :
7483  ac_cv_sys_largefile_source=no; break
7484fi
7485rm -f core conftest.err conftest.$ac_objext \
7486    conftest$ac_exeext conftest.$ac_ext
7487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h.  */
7489#define _LARGEFILE_SOURCE 1
7490#include <sys/types.h> /* for off_t */
7491     #include <stdio.h>
7492int
7493main ()
7494{
7495int (*fp) (FILE *, off_t, int) = fseeko;
7496     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7497  ;
7498  return 0;
7499}
7500_ACEOF
7501if ac_fn_c_try_link "$LINENO"; then :
7502  ac_cv_sys_largefile_source=1; break
7503fi
7504rm -f core conftest.err conftest.$ac_objext \
7505    conftest$ac_exeext conftest.$ac_ext
7506  ac_cv_sys_largefile_source=unknown
7507  break
7508done
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7511$as_echo "$ac_cv_sys_largefile_source" >&6; }
7512case $ac_cv_sys_largefile_source in #(
7513  no | unknown) ;;
7514  *)
7515cat >>confdefs.h <<_ACEOF
7516#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7517_ACEOF
7518;;
7519esac
7520rm -rf conftest*
7521
7522# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7523# in glibc 2.1.3, but that breaks too many other things.
7524# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7525if test $ac_cv_sys_largefile_source != unknown; then
7526
7527$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7528
7529fi
7530
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7532$as_echo_n "checking for working memcmp... " >&6; }
7533if ${ac_cv_func_memcmp_working+:} false; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536  if test "$cross_compiling" = yes; then :
7537  ac_cv_func_memcmp_working=no
7538else
7539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540/* end confdefs.h.  */
7541$ac_includes_default
7542int
7543main ()
7544{
7545
7546  /* Some versions of memcmp are not 8-bit clean.  */
7547  char c0 = '\100', c1 = '\200', c2 = '\201';
7548  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7549    return 1;
7550
7551  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7552     or more and with at least one buffer not starting on a 4-byte boundary.
7553     William Lewis provided this test program.   */
7554  {
7555    char foo[21];
7556    char bar[21];
7557    int i;
7558    for (i = 0; i < 4; i++)
7559      {
7560	char *a = foo + i;
7561	char *b = bar + i;
7562	strcpy (a, "--------01111111");
7563	strcpy (b, "--------10000000");
7564	if (memcmp (a, b, 16) >= 0)
7565	  return 1;
7566      }
7567    return 0;
7568  }
7569
7570  ;
7571  return 0;
7572}
7573_ACEOF
7574if ac_fn_c_try_run "$LINENO"; then :
7575  ac_cv_func_memcmp_working=yes
7576else
7577  ac_cv_func_memcmp_working=no
7578fi
7579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7580  conftest.$ac_objext conftest.beam conftest.$ac_ext
7581fi
7582
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7585$as_echo "$ac_cv_func_memcmp_working" >&6; }
7586test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7587  *" memcmp.$ac_objext "* ) ;;
7588  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7589 ;;
7590esac
7591
7592
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
7594$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
7595if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  rm -f conftest.sym conftest.file
7599echo >conftest.file
7600if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7601  if test "$cross_compiling" = yes; then :
7602  ac_cv_func_lstat_dereferences_slashed_symlink=no
7603else
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606$ac_includes_default
7607int
7608main ()
7609{
7610struct stat sbuf;
7611     /* Linux will dereference the symlink and fail, as required by POSIX.
7612	That is better in the sense that it means we will not
7613	have to compile and use the lstat wrapper.  */
7614     return lstat ("conftest.sym/", &sbuf) == 0;
7615  ;
7616  return 0;
7617}
7618_ACEOF
7619if ac_fn_c_try_run "$LINENO"; then :
7620  ac_cv_func_lstat_dereferences_slashed_symlink=yes
7621else
7622  ac_cv_func_lstat_dereferences_slashed_symlink=no
7623fi
7624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7625  conftest.$ac_objext conftest.beam conftest.$ac_ext
7626fi
7627
7628else
7629  # If the `ln -s' command failed, then we probably don't even
7630  # have an lstat function.
7631  ac_cv_func_lstat_dereferences_slashed_symlink=no
7632fi
7633rm -f conftest.sym conftest.file
7634
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7637$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7638
7639test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7640
7641cat >>confdefs.h <<_ACEOF
7642#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7643_ACEOF
7644
7645
7646if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
7647  case " $LIBOBJS " in
7648  *" lstat.$ac_objext "* ) ;;
7649  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7650 ;;
7651esac
7652
7653fi
7654
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
7656$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7657if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  if test "$cross_compiling" = yes; then :
7661  ac_cv_func_lstat_empty_string_bug=yes
7662else
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665$ac_includes_default
7666int
7667main ()
7668{
7669struct stat sbuf;
7670  return lstat ("", &sbuf) == 0;
7671  ;
7672  return 0;
7673}
7674_ACEOF
7675if ac_fn_c_try_run "$LINENO"; then :
7676  ac_cv_func_lstat_empty_string_bug=no
7677else
7678  ac_cv_func_lstat_empty_string_bug=yes
7679fi
7680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7681  conftest.$ac_objext conftest.beam conftest.$ac_ext
7682fi
7683
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
7686$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7687if test $ac_cv_func_lstat_empty_string_bug = yes; then
7688  case " $LIBOBJS " in
7689  *" lstat.$ac_objext "* ) ;;
7690  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7691 ;;
7692esac
7693
7694
7695cat >>confdefs.h <<_ACEOF
7696#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7697_ACEOF
7698
7699fi
7700
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
7702$as_echo_n "checking whether stat accepts an empty string... " >&6; }
7703if ${ac_cv_func_stat_empty_string_bug+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  if test "$cross_compiling" = yes; then :
7707  ac_cv_func_stat_empty_string_bug=yes
7708else
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711$ac_includes_default
7712int
7713main ()
7714{
7715struct stat sbuf;
7716  return stat ("", &sbuf) == 0;
7717  ;
7718  return 0;
7719}
7720_ACEOF
7721if ac_fn_c_try_run "$LINENO"; then :
7722  ac_cv_func_stat_empty_string_bug=no
7723else
7724  ac_cv_func_stat_empty_string_bug=yes
7725fi
7726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7727  conftest.$ac_objext conftest.beam conftest.$ac_ext
7728fi
7729
7730fi
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
7732$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
7733if test $ac_cv_func_stat_empty_string_bug = yes; then
7734  case " $LIBOBJS " in
7735  *" stat.$ac_objext "* ) ;;
7736  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7737 ;;
7738esac
7739
7740
7741cat >>confdefs.h <<_ACEOF
7742#define HAVE_STAT_EMPTY_STRING_BUG 1
7743_ACEOF
7744
7745fi
7746
7747ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7748if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
7749  ac_have_decl=1
7750else
7751  ac_have_decl=0
7752fi
7753
7754cat >>confdefs.h <<_ACEOF
7755#define HAVE_DECL_STRERROR_R $ac_have_decl
7756_ACEOF
7757
7758for ac_func in strerror_r
7759do :
7760  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7761if test "x$ac_cv_func_strerror_r" = xyes; then :
7762  cat >>confdefs.h <<_ACEOF
7763#define HAVE_STRERROR_R 1
7764_ACEOF
7765
7766fi
7767done
7768
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7770$as_echo_n "checking whether strerror_r returns char *... " >&6; }
7771if ${ac_cv_func_strerror_r_char_p+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774
7775    ac_cv_func_strerror_r_char_p=no
7776    if test $ac_cv_have_decl_strerror_r = yes; then
7777      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778/* end confdefs.h.  */
7779$ac_includes_default
7780int
7781main ()
7782{
7783
7784	  char buf[100];
7785	  char x = *strerror_r (0, buf, sizeof buf);
7786	  char *p = strerror_r (0, buf, sizeof buf);
7787	  return !p || x;
7788
7789  ;
7790  return 0;
7791}
7792_ACEOF
7793if ac_fn_c_try_compile "$LINENO"; then :
7794  ac_cv_func_strerror_r_char_p=yes
7795fi
7796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797    else
7798      # strerror_r is not declared.  Choose between
7799      # systems that have relatively inaccessible declarations for the
7800      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
7801      # former has a strerror_r that returns char*, while the latter
7802      # has a strerror_r that returns `int'.
7803      # This test should segfault on the DEC system.
7804      if test "$cross_compiling" = yes; then :
7805  :
7806else
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809$ac_includes_default
7810	extern char *strerror_r ();
7811int
7812main ()
7813{
7814char buf[100];
7815	  char x = *strerror_r (0, buf, sizeof buf);
7816	  return ! isalpha (x);
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_run "$LINENO"; then :
7822  ac_cv_func_strerror_r_char_p=yes
7823fi
7824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7825  conftest.$ac_objext conftest.beam conftest.$ac_ext
7826fi
7827
7828    fi
7829
7830fi
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7832$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7833if test $ac_cv_func_strerror_r_char_p = yes; then
7834
7835$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7836
7837fi
7838
7839for ac_func in strftime
7840do :
7841  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
7842if test "x$ac_cv_func_strftime" = xyes; then :
7843  cat >>confdefs.h <<_ACEOF
7844#define HAVE_STRFTIME 1
7845_ACEOF
7846
7847else
7848  # strftime is in -lintl on SCO UNIX.
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
7850$as_echo_n "checking for strftime in -lintl... " >&6; }
7851if ${ac_cv_lib_intl_strftime+:} false; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  ac_check_lib_save_LIBS=$LIBS
7855LIBS="-lintl  $LIBS"
7856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857/* end confdefs.h.  */
7858
7859/* Override any GCC internal prototype to avoid an error.
7860   Use char because int might match the return type of a GCC
7861   builtin and then its argument prototype would still apply.  */
7862#ifdef __cplusplus
7863extern "C"
7864#endif
7865char strftime ();
7866int
7867main ()
7868{
7869return strftime ();
7870  ;
7871  return 0;
7872}
7873_ACEOF
7874if ac_fn_c_try_link "$LINENO"; then :
7875  ac_cv_lib_intl_strftime=yes
7876else
7877  ac_cv_lib_intl_strftime=no
7878fi
7879rm -f core conftest.err conftest.$ac_objext \
7880    conftest$ac_exeext conftest.$ac_ext
7881LIBS=$ac_check_lib_save_LIBS
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
7884$as_echo "$ac_cv_lib_intl_strftime" >&6; }
7885if test "x$ac_cv_lib_intl_strftime" = xyes; then :
7886  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
7887
7888LIBS="-lintl $LIBS"
7889fi
7890
7891fi
7892done
7893
7894for ac_func in vprintf
7895do :
7896  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7897if test "x$ac_cv_func_vprintf" = xyes; then :
7898  cat >>confdefs.h <<_ACEOF
7899#define HAVE_VPRINTF 1
7900_ACEOF
7901
7902ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7903if test "x$ac_cv_func__doprnt" = xyes; then :
7904
7905$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7906
7907fi
7908
7909fi
7910done
7911
7912
7913for ac_func in chflags chown chroot
7914do :
7915  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7916ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7917if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7918  cat >>confdefs.h <<_ACEOF
7919#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7920_ACEOF
7921
7922fi
7923done
7924
7925for ac_func in fchdir fchflags fchmod fchown fcntl fork
7926do :
7927  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7928ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7929if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7930  cat >>confdefs.h <<_ACEOF
7931#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7932_ACEOF
7933
7934fi
7935done
7936
7937for ac_func in fstat ftruncate futimes geteuid getpid
7938do :
7939  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7940ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7941if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7942  cat >>confdefs.h <<_ACEOF
7943#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7944_ACEOF
7945
7946fi
7947done
7948
7949for ac_func in lchflags lchmod lchown
7950do :
7951  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7952ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7953if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7954  cat >>confdefs.h <<_ACEOF
7955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7956_ACEOF
7957
7958fi
7959done
7960
7961for ac_func in lutimes memmove memset mkdir mkfifo mknod
7962do :
7963  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7964ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7965if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7966  cat >>confdefs.h <<_ACEOF
7967#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7968_ACEOF
7969
7970fi
7971done
7972
7973for ac_func in nl_langinfo pipe poll readlink select setenv setlocale
7974do :
7975  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7976ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7977if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7978  cat >>confdefs.h <<_ACEOF
7979#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7980_ACEOF
7981
7982fi
7983done
7984
7985for ac_func in strchr strdup strerror strrchr timegm
7986do :
7987  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7990  cat >>confdefs.h <<_ACEOF
7991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7992_ACEOF
7993
7994fi
7995done
7996
7997for ac_func in tzset unsetenv utime utimes vfork
7998do :
7999  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8001if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8002  cat >>confdefs.h <<_ACEOF
8003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8004_ACEOF
8005
8006fi
8007done
8008
8009for ac_func in wcrtomb wcscpy wcslen wctomb wmemcmp wmemcpy
8010do :
8011  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8013if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8014  cat >>confdefs.h <<_ACEOF
8015#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8016_ACEOF
8017
8018fi
8019done
8020
8021for ac_func in lockf posix_memalign qsort_r
8022do :
8023  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8024ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8025if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8026  cat >>confdefs.h <<_ACEOF
8027#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8028_ACEOF
8029
8030fi
8031done
8032
8033
8034# Check for mmap so we can work around its absence on Minix
8035for ac_func in mmap
8036do :
8037  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8038if test "x$ac_cv_func_mmap" = xyes; then :
8039  cat >>confdefs.h <<_ACEOF
8040#define HAVE_MMAP 1
8041_ACEOF
8042
8043fi
8044done
8045
8046
8047# FreeBSD's nl_langinfo supports an option to specify whether the
8048# current locale uses month/day or day/month ordering.  It makes the
8049# output a little prettier...
8050ac_fn_c_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H
8051#include <langinfo.h>
8052#endif
8053
8054"
8055if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes; then :
8056
8057$as_echo "#define HAVE_D_MD_ORDER 1" >>confdefs.h
8058
8059fi
8060
8061
8062# If fnmatch() exists and supports FNM_LEADING_DIR, then bsdtar uses that,
8063# otherwise it uses some usable (but less featureful) built-in code for
8064# filename pattern matching.
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
8066$as_echo_n "checking for working POSIX fnmatch... " >&6; }
8067if ${ac_cv_func_fnmatch_works+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  # Some versions of Solaris, SCO, and the GNU C Library
8071   # have a broken or incompatible fnmatch.
8072   # So we run a test program.  If we are cross-compiling, take no chance.
8073   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
8074   if test "$cross_compiling" = yes; then :
8075  ac_cv_func_fnmatch_works=cross
8076else
8077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079#include <fnmatch.h>
8080#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
8081#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
8082
8083int
8084main ()
8085{
8086return
8087	   (!(y ("a*", "abc", 0)
8088	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
8089	      && y ("a\\\\bc", "abc", 0)
8090	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
8091	      && y ("*x", ".x", 0)
8092	      && n ("*x", ".x", FNM_PERIOD)
8093	      && 1));
8094  ;
8095  return 0;
8096}
8097_ACEOF
8098if ac_fn_c_try_run "$LINENO"; then :
8099  ac_cv_func_fnmatch_works=yes
8100else
8101  ac_cv_func_fnmatch_works=no
8102fi
8103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8104  conftest.$ac_objext conftest.beam conftest.$ac_ext
8105fi
8106
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
8109$as_echo "$ac_cv_func_fnmatch_works" >&6; }
8110if test $ac_cv_func_fnmatch_works = yes; then :
8111
8112$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
8113
8114fi
8115
8116
8117ac_fn_c_check_decl "$LINENO" "FNM_LEADING_DIR" "ac_cv_have_decl_FNM_LEADING_DIR" "#if HAVE_FNMATCH
8118#define _GNU_SOURCE /* Required on Linux to get GNU extensions */
8119#include <fnmatch.h>
8120#endif
8121
8122"
8123if test "x$ac_cv_have_decl_FNM_LEADING_DIR" = xyes; then :
8124
8125$as_echo "#define HAVE_FNM_LEADING_DIR 1" >>confdefs.h
8126
8127fi
8128
8129
8130# Check for dirent.d_namlen field explicitly
8131# (This is a bit more straightforward than, if not quite as portable as,
8132# the recipe given by the autoconf maintainers.)
8133ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
8134#include <dirent.h>
8135#endif
8136
8137"
8138if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
8139
8140fi
8141
8142
8143# Check for Extended Attributes support
8144# Check whether --enable-xattr was given.
8145if test "${enable_xattr+set}" = set; then :
8146  enableval=$enable_xattr;
8147fi
8148
8149
8150if test "x$enable_xattr" != "xno"; then
8151	for ac_header in attr/xattr.h
8152do :
8153  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
8154if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
8155  cat >>confdefs.h <<_ACEOF
8156#define HAVE_ATTR_XATTR_H 1
8157_ACEOF
8158
8159fi
8160
8161done
8162
8163	for ac_header in sys/xattr.h
8164do :
8165  ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
8166if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
8167  cat >>confdefs.h <<_ACEOF
8168#define HAVE_SYS_XATTR_H 1
8169_ACEOF
8170
8171fi
8172
8173done
8174
8175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
8176$as_echo_n "checking for setxattr in -lattr... " >&6; }
8177if ${ac_cv_lib_attr_setxattr+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  ac_check_lib_save_LIBS=$LIBS
8181LIBS="-lattr  $LIBS"
8182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h.  */
8184
8185/* Override any GCC internal prototype to avoid an error.
8186   Use char because int might match the return type of a GCC
8187   builtin and then its argument prototype would still apply.  */
8188#ifdef __cplusplus
8189extern "C"
8190#endif
8191char setxattr ();
8192int
8193main ()
8194{
8195return setxattr ();
8196  ;
8197  return 0;
8198}
8199_ACEOF
8200if ac_fn_c_try_link "$LINENO"; then :
8201  ac_cv_lib_attr_setxattr=yes
8202else
8203  ac_cv_lib_attr_setxattr=no
8204fi
8205rm -f core conftest.err conftest.$ac_objext \
8206    conftest$ac_exeext conftest.$ac_ext
8207LIBS=$ac_check_lib_save_LIBS
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
8210$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
8211if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
8212  cat >>confdefs.h <<_ACEOF
8213#define HAVE_LIBATTR 1
8214_ACEOF
8215
8216  LIBS="-lattr $LIBS"
8217
8218fi
8219
8220	for ac_func in extattr_get_file extattr_list_file
8221do :
8222  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8223ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8224if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8225  cat >>confdefs.h <<_ACEOF
8226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8227_ACEOF
8228
8229fi
8230done
8231
8232	for ac_func in extattr_set_fd extattr_set_file
8233do :
8234  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8235ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8236if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8237  cat >>confdefs.h <<_ACEOF
8238#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8239_ACEOF
8240
8241fi
8242done
8243
8244	for ac_func in fsetxattr getxattr
8245do :
8246  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8248if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8249  cat >>confdefs.h <<_ACEOF
8250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8251_ACEOF
8252
8253fi
8254done
8255
8256	for ac_func in lgetxattr listxattr llistxattr lsetxattr
8257do :
8258  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8259ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8260if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8261  cat >>confdefs.h <<_ACEOF
8262#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8263_ACEOF
8264
8265fi
8266done
8267
8268fi
8269
8270# Check for ACL support
8271#
8272# The ACL support in libarchive is written against the POSIX1e draft,
8273# which was never officially approved and varies quite a bit across
8274# platforms.  Worse, some systems have completely non-POSIX acl functions,
8275# which makes the following checks rather more complex than I would like.
8276#
8277# Check whether --enable-acl was given.
8278if test "${enable_acl+set}" = set; then :
8279  enableval=$enable_acl;
8280fi
8281
8282
8283if test "x$enable_acl" != "xno"; then
8284   for ac_header in sys/acl.h
8285do :
8286  ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
8287if test "x$ac_cv_header_sys_acl_h" = xyes; then :
8288  cat >>confdefs.h <<_ACEOF
8289#define HAVE_SYS_ACL_H 1
8290_ACEOF
8291
8292fi
8293
8294done
8295
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
8297$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
8298if ${ac_cv_lib_acl_acl_get_file+:} false; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  ac_check_lib_save_LIBS=$LIBS
8302LIBS="-lacl  $LIBS"
8303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304/* end confdefs.h.  */
8305
8306/* Override any GCC internal prototype to avoid an error.
8307   Use char because int might match the return type of a GCC
8308   builtin and then its argument prototype would still apply.  */
8309#ifdef __cplusplus
8310extern "C"
8311#endif
8312char acl_get_file ();
8313int
8314main ()
8315{
8316return acl_get_file ();
8317  ;
8318  return 0;
8319}
8320_ACEOF
8321if ac_fn_c_try_link "$LINENO"; then :
8322  ac_cv_lib_acl_acl_get_file=yes
8323else
8324  ac_cv_lib_acl_acl_get_file=no
8325fi
8326rm -f core conftest.err conftest.$ac_objext \
8327    conftest$ac_exeext conftest.$ac_ext
8328LIBS=$ac_check_lib_save_LIBS
8329fi
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
8331$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
8332if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
8333  cat >>confdefs.h <<_ACEOF
8334#define HAVE_LIBACL 1
8335_ACEOF
8336
8337  LIBS="-lacl $LIBS"
8338
8339fi
8340
8341   for ac_func in acl_create_entry acl_init acl_set_fd acl_set_fd_np acl_set_file
8342do :
8343  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8344ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8345if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8346  cat >>confdefs.h <<_ACEOF
8347#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8348_ACEOF
8349
8350fi
8351done
8352
8353
8354   ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "#if HAVE_SYS_TYPES_H
8355	#include <sys/types.h>
8356	#endif
8357	#if HAVE_SYS_ACL_H
8358	#include <sys/acl.h>
8359	#endif
8360
8361"
8362if test "x$ac_cv_type_acl_permset_t" = xyes; then :
8363
8364cat >>confdefs.h <<_ACEOF
8365#define HAVE_ACL_PERMSET_T 1
8366_ACEOF
8367
8368
8369fi
8370
8371
8372    # The "acl_get_perm()" function was omitted from the POSIX draft.
8373    # (It's a pretty obvious oversight; otherwise, there's no way to
8374    # test for specific permissions in a permset.)  Linux uses the obvious
8375    # name, FreeBSD adds _np to mark it as "non-Posix extension."
8376    # Test for both as a double-check that we really have POSIX-style ACL support.
8377    for ac_func in acl_get_perm_np acl_get_perm
8378do :
8379  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8380ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8381if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8382  cat >>confdefs.h <<_ACEOF
8383#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8384_ACEOF
8385
8386fi
8387done
8388
8389
8390    # MacOS has an acl.h that isn't POSIX.  It can be detected by
8391    # checking for ACL_USER
8392    ac_fn_c_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/acl.h>
8393"
8394if test "x$ac_cv_have_decl_ACL_USER" = xyes; then :
8395
8396$as_echo "#define HAVE_ACL_USER 1" >>confdefs.h
8397
8398fi
8399
8400fi
8401
8402# Additional requirements
8403# Check whether --enable-largefile was given.
8404if test "${enable_largefile+set}" = set; then :
8405  enableval=$enable_largefile;
8406fi
8407
8408if test "$enable_largefile" != no; then
8409
8410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8411$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8412if ${ac_cv_sys_largefile_CC+:} false; then :
8413  $as_echo_n "(cached) " >&6
8414else
8415  ac_cv_sys_largefile_CC=no
8416     if test "$GCC" != yes; then
8417       ac_save_CC=$CC
8418       while :; do
8419	 # IRIX 6.2 and later do not support large files by default,
8420	 # so use the C compiler's -n32 option if that helps.
8421	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422/* end confdefs.h.  */
8423#include <sys/types.h>
8424 /* Check that off_t can represent 2**63 - 1 correctly.
8425    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8426    since some C++ compilers masquerading as C compilers
8427    incorrectly reject 9223372036854775807.  */
8428#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8429  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8430		       && LARGE_OFF_T % 2147483647 == 1)
8431		      ? 1 : -1];
8432int
8433main ()
8434{
8435
8436  ;
8437  return 0;
8438}
8439_ACEOF
8440	 if ac_fn_c_try_compile "$LINENO"; then :
8441  break
8442fi
8443rm -f core conftest.err conftest.$ac_objext
8444	 CC="$CC -n32"
8445	 if ac_fn_c_try_compile "$LINENO"; then :
8446  ac_cv_sys_largefile_CC=' -n32'; break
8447fi
8448rm -f core conftest.err conftest.$ac_objext
8449	 break
8450       done
8451       CC=$ac_save_CC
8452       rm -f conftest.$ac_ext
8453    fi
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8456$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8457  if test "$ac_cv_sys_largefile_CC" != no; then
8458    CC=$CC$ac_cv_sys_largefile_CC
8459  fi
8460
8461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8462$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8463if ${ac_cv_sys_file_offset_bits+:} false; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466  while :; do
8467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468/* end confdefs.h.  */
8469#include <sys/types.h>
8470 /* Check that off_t can represent 2**63 - 1 correctly.
8471    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8472    since some C++ compilers masquerading as C compilers
8473    incorrectly reject 9223372036854775807.  */
8474#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8475  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8476		       && LARGE_OFF_T % 2147483647 == 1)
8477		      ? 1 : -1];
8478int
8479main ()
8480{
8481
8482  ;
8483  return 0;
8484}
8485_ACEOF
8486if ac_fn_c_try_compile "$LINENO"; then :
8487  ac_cv_sys_file_offset_bits=no; break
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h.  */
8492#define _FILE_OFFSET_BITS 64
8493#include <sys/types.h>
8494 /* Check that off_t can represent 2**63 - 1 correctly.
8495    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8496    since some C++ compilers masquerading as C compilers
8497    incorrectly reject 9223372036854775807.  */
8498#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8499  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8500		       && LARGE_OFF_T % 2147483647 == 1)
8501		      ? 1 : -1];
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"; then :
8511  ac_cv_sys_file_offset_bits=64; break
8512fi
8513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514  ac_cv_sys_file_offset_bits=unknown
8515  break
8516done
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8519$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8520case $ac_cv_sys_file_offset_bits in #(
8521  no | unknown) ;;
8522  *)
8523cat >>confdefs.h <<_ACEOF
8524#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8525_ACEOF
8526;;
8527esac
8528rm -rf conftest*
8529  if test $ac_cv_sys_file_offset_bits = unknown; then
8530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8531$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8532if ${ac_cv_sys_large_files+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  while :; do
8536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h.  */
8538#include <sys/types.h>
8539 /* Check that off_t can represent 2**63 - 1 correctly.
8540    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8541    since some C++ compilers masquerading as C compilers
8542    incorrectly reject 9223372036854775807.  */
8543#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8544  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8545		       && LARGE_OFF_T % 2147483647 == 1)
8546		      ? 1 : -1];
8547int
8548main ()
8549{
8550
8551  ;
8552  return 0;
8553}
8554_ACEOF
8555if ac_fn_c_try_compile "$LINENO"; then :
8556  ac_cv_sys_large_files=no; break
8557fi
8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h.  */
8561#define _LARGE_FILES 1
8562#include <sys/types.h>
8563 /* Check that off_t can represent 2**63 - 1 correctly.
8564    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8565    since some C++ compilers masquerading as C compilers
8566    incorrectly reject 9223372036854775807.  */
8567#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8568  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8569		       && LARGE_OFF_T % 2147483647 == 1)
8570		      ? 1 : -1];
8571int
8572main ()
8573{
8574
8575  ;
8576  return 0;
8577}
8578_ACEOF
8579if ac_fn_c_try_compile "$LINENO"; then :
8580  ac_cv_sys_large_files=1; break
8581fi
8582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583  ac_cv_sys_large_files=unknown
8584  break
8585done
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8588$as_echo "$ac_cv_sys_large_files" >&6; }
8589case $ac_cv_sys_large_files in #(
8590  no | unknown) ;;
8591  *)
8592cat >>confdefs.h <<_ACEOF
8593#define _LARGE_FILES $ac_cv_sys_large_files
8594_ACEOF
8595;;
8596esac
8597rm -rf conftest*
8598  fi
8599
8600
8601fi
8602
8603
8604# Interix doesn't provide optarg and optind
8605ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
8606if test "x$ac_cv_have_decl_optarg" = xyes; then :
8607  ac_have_decl=1
8608else
8609  ac_have_decl=0
8610fi
8611
8612cat >>confdefs.h <<_ACEOF
8613#define HAVE_DECL_OPTARG $ac_have_decl
8614_ACEOF
8615
8616ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "$ac_includes_default"
8617if test "x$ac_cv_have_decl_optind" = xyes; then :
8618  ac_have_decl=1
8619else
8620  ac_have_decl=0
8621fi
8622
8623cat >>confdefs.h <<_ACEOF
8624#define HAVE_DECL_OPTIND $ac_have_decl
8625_ACEOF
8626
8627
8628# Strip the .sample from tarsnap.conf.sample (if requested by the user).
8629
8630# Check whether --with-conf-no-sample was given.
8631if test "${with_conf_no_sample+set}" = set; then :
8632  withval=$with_conf_no_sample;
8633else
8634  with_conf_no_sample=no
8635fi
8636
8637 if test "x$with_conf_no_sample" != "xno"; then
8638  INSTALL_CONF_NO_SAMPLE_TRUE=
8639  INSTALL_CONF_NO_SAMPLE_FALSE='#'
8640else
8641  INSTALL_CONF_NO_SAMPLE_TRUE='#'
8642  INSTALL_CONF_NO_SAMPLE_FALSE=
8643fi
8644
8645
8646# install bash completion
8647
8648# Check whether --with-bash-completion-dir was given.
8649if test "${with_bash_completion_dir+set}" = set; then :
8650  withval=$with_bash_completion_dir;
8651else
8652  with_bash_completion_dir=no
8653fi
8654
8655# by default, use what the user told us
8656BASH_COMPLETION_DIR="$with_bash_completion_dir"
8657
8658# print results
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install bash completion" >&5
8660$as_echo_n "checking whether to install bash completion... " >&6; }
8661if test "x$with_bash_completion_dir" != "xno"; then :
8662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8663$as_echo "yes" >&6; }
8664else
8665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666$as_echo "no" >&6; }
8667fi
8668
8669# Check whether the user has requested to disable compiler warnings
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler_warnings" >&5
8671$as_echo_n "checking compiler_warnings... " >&6; }
8672# Check whether --enable-compiler_warnings was given.
8673if test "${enable_compiler_warnings+set}" = set; then :
8674  enableval=$enable_compiler_warnings; ac_compiler_warnings=$enableval
8675else
8676  ac_compiler_warnings=yes
8677fi
8678
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_compiler_warnings}" >&5
8680$as_echo "${ac_compiler_warnings}" >&6; }
8681if test x${ac_compiler_warnings} = xyes; then :
8682  ac_ext=c
8683ac_cpp='$CPP $CPPFLAGS'
8684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8689$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8690if ${ac_cv_cflags_warn_all+:} false; then :
8691  $as_echo_n "(cached) " >&6
8692else
8693  ac_cv_cflags_warn_all="no, unknown"
8694ac_save_CFLAGS="$CFLAGS"
8695for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
8696do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699
8700int
8701main ()
8702{
8703
8704  ;
8705  return 0;
8706}
8707_ACEOF
8708if ac_fn_c_try_compile "$LINENO"; then :
8709  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8710fi
8711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712done
8713CFLAGS="$ac_save_CFLAGS"
8714
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8717$as_echo "$ac_cv_cflags_warn_all" >&6; }
8718
8719
8720case ".$ac_cv_cflags_warn_all" in
8721     .ok|.ok,*)  ;;
8722   .|.no|.no,*)  ;;
8723   *)
8724if ${CFLAGS+:} false; then :
8725
8726  case " $CFLAGS " in #(
8727  *" $ac_cv_cflags_warn_all "*) :
8728    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8729  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8730  ac_status=$?
8731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8732  test $ac_status = 0; } ;; #(
8733  *) :
8734
8735     as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8736     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8737  (: CFLAGS="$CFLAGS") 2>&5
8738  ac_status=$?
8739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8740  test $ac_status = 0; }
8741     ;;
8742esac
8743
8744else
8745
8746  CFLAGS=$ac_cv_cflags_warn_all
8747  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8748  (: CFLAGS="$CFLAGS") 2>&5
8749  ac_status=$?
8750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751  test $ac_status = 0; }
8752
8753fi
8754 ;;
8755esac
8756
8757ac_ext=c
8758ac_cpp='$CPP $CPPFLAGS'
8759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8761ac_compiler_gnu=$ac_cv_c_compiler_gnu
8762
8763
8764fi
8765
8766# should we set the value automatically?
8767if test "x$with_bash_completion_dir" = "xyes"; then
8768    # try to use pkg-config
8769    # Extract the first word of "pkg-config", so it can be a program name with args.
8770set dummy pkg-config; ac_word=$2
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772$as_echo_n "checking for $ac_word... " >&6; }
8773if ${ac_cv_prog_HAS_PKG_CONFIG+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  if test -n "$HAS_PKG_CONFIG"; then
8777  ac_cv_prog_HAS_PKG_CONFIG="$HAS_PKG_CONFIG" # Let the user override the test.
8778else
8779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780for as_dir in $PATH
8781do
8782  IFS=$as_save_IFS
8783  test -z "$as_dir" && as_dir=.
8784    for ac_exec_ext in '' $ac_executable_extensions; do
8785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786    ac_cv_prog_HAS_PKG_CONFIG="yes"
8787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788    break 2
8789  fi
8790done
8791  done
8792IFS=$as_save_IFS
8793
8794fi
8795fi
8796HAS_PKG_CONFIG=$ac_cv_prog_HAS_PKG_CONFIG
8797if test -n "$HAS_PKG_CONFIG"; then
8798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PKG_CONFIG" >&5
8799$as_echo "$HAS_PKG_CONFIG" >&6; }
8800else
8801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803fi
8804
8805
8806    if test "x$HAS_PKG_CONFIG" != "xyes"; then
8807        as_fn_error $? "Automatic detection of bash-completion directory requires pkg-config." "$LINENO" 5
8808    else
8809        # find the actual value from the system
8810
8811
8812
8813
8814
8815
8816
8817if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8818	if test -n "$ac_tool_prefix"; then
8819  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8820set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if ${ac_cv_path_PKG_CONFIG+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826  case $PKG_CONFIG in
8827  [\\/]* | ?:[\\/]*)
8828  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8829  ;;
8830  *)
8831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $PATH
8833do
8834  IFS=$as_save_IFS
8835  test -z "$as_dir" && as_dir=.
8836    for ac_exec_ext in '' $ac_executable_extensions; do
8837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840    break 2
8841  fi
8842done
8843  done
8844IFS=$as_save_IFS
8845
8846  ;;
8847esac
8848fi
8849PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8850if test -n "$PKG_CONFIG"; then
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8852$as_echo "$PKG_CONFIG" >&6; }
8853else
8854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855$as_echo "no" >&6; }
8856fi
8857
8858
8859fi
8860if test -z "$ac_cv_path_PKG_CONFIG"; then
8861  ac_pt_PKG_CONFIG=$PKG_CONFIG
8862  # Extract the first word of "pkg-config", so it can be a program name with args.
8863set dummy pkg-config; ac_word=$2
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  case $ac_pt_PKG_CONFIG in
8870  [\\/]* | ?:[\\/]*)
8871  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8872  ;;
8873  *)
8874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877  IFS=$as_save_IFS
8878  test -z "$as_dir" && as_dir=.
8879    for ac_exec_ext in '' $ac_executable_extensions; do
8880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883    break 2
8884  fi
8885done
8886  done
8887IFS=$as_save_IFS
8888
8889  ;;
8890esac
8891fi
8892ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8893if test -n "$ac_pt_PKG_CONFIG"; then
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8895$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8896else
8897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898$as_echo "no" >&6; }
8899fi
8900
8901  if test "x$ac_pt_PKG_CONFIG" = x; then
8902    PKG_CONFIG=""
8903  else
8904    case $cross_compiling:$ac_tool_warned in
8905yes:)
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8908ac_tool_warned=yes ;;
8909esac
8910    PKG_CONFIG=$ac_pt_PKG_CONFIG
8911  fi
8912else
8913  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8914fi
8915
8916fi
8917if test -n "$PKG_CONFIG"; then
8918	_pkg_min_version=0.9.0
8919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8920$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8921	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8923$as_echo "yes" >&6; }
8924	else
8925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926$as_echo "no" >&6; }
8927		PKG_CONFIG=""
8928	fi
8929fi
8930
8931pkg_failed=no
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH_COMPLETION" >&5
8933$as_echo_n "checking for BASH_COMPLETION... " >&6; }
8934
8935if test -n "$BASH_COMPLETION_CFLAGS"; then
8936    pkg_cv_BASH_COMPLETION_CFLAGS="$BASH_COMPLETION_CFLAGS"
8937 elif test -n "$PKG_CONFIG"; then
8938    if test -n "$PKG_CONFIG" && \
8939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
8940  ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
8941  ac_status=$?
8942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943  test $ac_status = 0; }; then
8944  pkg_cv_BASH_COMPLETION_CFLAGS=`$PKG_CONFIG --cflags "bash-completion >= 2.0" 2>/dev/null`
8945		      test "x$?" != "x0" && pkg_failed=yes
8946else
8947  pkg_failed=yes
8948fi
8949 else
8950    pkg_failed=untried
8951fi
8952if test -n "$BASH_COMPLETION_LIBS"; then
8953    pkg_cv_BASH_COMPLETION_LIBS="$BASH_COMPLETION_LIBS"
8954 elif test -n "$PKG_CONFIG"; then
8955    if test -n "$PKG_CONFIG" && \
8956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
8957  ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
8958  ac_status=$?
8959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960  test $ac_status = 0; }; then
8961  pkg_cv_BASH_COMPLETION_LIBS=`$PKG_CONFIG --libs "bash-completion >= 2.0" 2>/dev/null`
8962		      test "x$?" != "x0" && pkg_failed=yes
8963else
8964  pkg_failed=yes
8965fi
8966 else
8967    pkg_failed=untried
8968fi
8969
8970
8971
8972if test $pkg_failed = yes; then
8973   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974$as_echo "no" >&6; }
8975
8976if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8977        _pkg_short_errors_supported=yes
8978else
8979        _pkg_short_errors_supported=no
8980fi
8981        if test $_pkg_short_errors_supported = yes; then
8982	        BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1`
8983        else
8984	        BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1`
8985        fi
8986	# Put the nasty error message in config.log where it belongs
8987	echo "$BASH_COMPLETION_PKG_ERRORS" >&5
8988
8989	BASH_COMPLETION_DIR="/etc/bash_completion.d/";
8990	     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Automatic detection of bash-completion directory requires bash-completion >= 2.0; guessing a directory." >&5
8991$as_echo "$as_me: WARNING: Automatic detection of bash-completion directory requires bash-completion >= 2.0; guessing a directory." >&2;}
8992elif test $pkg_failed = untried; then
8993     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
8995	BASH_COMPLETION_DIR="/etc/bash_completion.d/";
8996	     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Automatic detection of bash-completion directory requires bash-completion >= 2.0; guessing a directory." >&5
8997$as_echo "$as_me: WARNING: Automatic detection of bash-completion directory requires bash-completion >= 2.0; guessing a directory." >&2;}
8998else
8999	BASH_COMPLETION_CFLAGS=$pkg_cv_BASH_COMPLETION_CFLAGS
9000	BASH_COMPLETION_LIBS=$pkg_cv_BASH_COMPLETION_LIBS
9001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9002$as_echo "yes" >&6; }
9003	BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"
9004fi
9005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bash completions directory" >&5
9006$as_echo_n "checking bash completions directory... " >&6; }
9007	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_COMPLETION_DIR" >&5
9008$as_echo "$BASH_COMPLETION_DIR" >&6; }
9009    fi
9010fi
9011
9012# pass values to Makefile.am
9013
9014 if test "x$with_bash_completion_dir" != "xno"; then
9015  INSTALL_BASH_COMPLETION_TRUE=
9016  INSTALL_BASH_COMPLETION_FALSE='#'
9017else
9018  INSTALL_BASH_COMPLETION_TRUE='#'
9019  INSTALL_BASH_COMPLETION_FALSE=
9020fi
9021
9022
9023
9024cat >confcache <<\_ACEOF
9025# This file is a shell script that caches the results of configure
9026# tests run on this system so they can be shared between configure
9027# scripts and configure runs, see configure's option --config-cache.
9028# It is not useful on other systems.  If it contains results you don't
9029# want to keep, you may remove or edit it.
9030#
9031# config.status only pays attention to the cache file if you give it
9032# the --recheck option to rerun configure.
9033#
9034# `ac_cv_env_foo' variables (set or unset) will be overridden when
9035# loading this file, other *unset* `ac_cv_foo' will be assigned the
9036# following values.
9037
9038_ACEOF
9039
9040# The following way of writing the cache mishandles newlines in values,
9041# but we know of no workaround that is simple, portable, and efficient.
9042# So, we kill variables containing newlines.
9043# Ultrix sh set writes to stderr and can't be redirected directly,
9044# and sets the high bit in the cache file unless we assign to the vars.
9045(
9046  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9047    eval ac_val=\$$ac_var
9048    case $ac_val in #(
9049    *${as_nl}*)
9050      case $ac_var in #(
9051      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9052$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9053      esac
9054      case $ac_var in #(
9055      _ | IFS | as_nl) ;; #(
9056      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9057      *) { eval $ac_var=; unset $ac_var;} ;;
9058      esac ;;
9059    esac
9060  done
9061
9062  (set) 2>&1 |
9063    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9064    *${as_nl}ac_space=\ *)
9065      # `set' does not quote correctly, so add quotes: double-quote
9066      # substitution turns \\\\ into \\, and sed turns \\ into \.
9067      sed -n \
9068	"s/'/'\\\\''/g;
9069	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9070      ;; #(
9071    *)
9072      # `set' quotes correctly as required by POSIX, so do not add quotes.
9073      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9074      ;;
9075    esac |
9076    sort
9077) |
9078  sed '
9079     /^ac_cv_env_/b end
9080     t clear
9081     :clear
9082     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9083     t end
9084     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9085     :end' >>confcache
9086if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9087  if test -w "$cache_file"; then
9088    if test "x$cache_file" != "x/dev/null"; then
9089      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9090$as_echo "$as_me: updating cache $cache_file" >&6;}
9091      if test ! -f "$cache_file" || test -h "$cache_file"; then
9092	cat confcache >"$cache_file"
9093      else
9094        case $cache_file in #(
9095        */* | ?:*)
9096	  mv -f confcache "$cache_file"$$ &&
9097	  mv -f "$cache_file"$$ "$cache_file" ;; #(
9098        *)
9099	  mv -f confcache "$cache_file" ;;
9100	esac
9101      fi
9102    fi
9103  else
9104    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9105$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9106  fi
9107fi
9108rm -f confcache
9109
9110test "x$prefix" = xNONE && prefix=$ac_default_prefix
9111# Let make expand exec_prefix.
9112test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9113
9114DEFS=-DHAVE_CONFIG_H
9115
9116ac_libobjs=
9117ac_ltlibobjs=
9118U=
9119for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9120  # 1. Remove the extension, and $U if already installed.
9121  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9122  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9123  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9124  #    will be set to the directory where LIBOBJS objects are built.
9125  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9126  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9127done
9128LIBOBJS=$ac_libobjs
9129
9130LTLIBOBJS=$ac_ltlibobjs
9131
9132
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9134$as_echo_n "checking that generated files are newer than configure... " >&6; }
9135   if test -n "$am_sleep_pid"; then
9136     # Hide warnings about reused PIDs.
9137     wait $am_sleep_pid 2>/dev/null
9138   fi
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9140$as_echo "done" >&6; }
9141 if test -n "$EXEEXT"; then
9142  am__EXEEXT_TRUE=
9143  am__EXEEXT_FALSE='#'
9144else
9145  am__EXEEXT_TRUE='#'
9146  am__EXEEXT_FALSE=
9147fi
9148
9149if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then
9150  as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.
9151Usually this means the macro was only invoked conditionally." "$LINENO" 5
9152fi
9153if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then
9154  as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.
9155Usually this means the macro was only invoked conditionally." "$LINENO" 5
9156fi
9157if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9158  as_fn_error $? "conditional \"AMDEP\" was never defined.
9159Usually this means the macro was only invoked conditionally." "$LINENO" 5
9160fi
9161if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9162  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9163Usually this means the macro was only invoked conditionally." "$LINENO" 5
9164fi
9165if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9166  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9167Usually this means the macro was only invoked conditionally." "$LINENO" 5
9168fi
9169if test -z "${INSTALL_CONF_NO_SAMPLE_TRUE}" && test -z "${INSTALL_CONF_NO_SAMPLE_FALSE}"; then
9170  as_fn_error $? "conditional \"INSTALL_CONF_NO_SAMPLE\" was never defined.
9171Usually this means the macro was only invoked conditionally." "$LINENO" 5
9172fi
9173if test -z "${INSTALL_BASH_COMPLETION_TRUE}" && test -z "${INSTALL_BASH_COMPLETION_FALSE}"; then
9174  as_fn_error $? "conditional \"INSTALL_BASH_COMPLETION\" was never defined.
9175Usually this means the macro was only invoked conditionally." "$LINENO" 5
9176fi
9177
9178: "${CONFIG_STATUS=./config.status}"
9179ac_write_fail=0
9180ac_clean_files_save=$ac_clean_files
9181ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9183$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9184as_write_fail=0
9185cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9186#! $SHELL
9187# Generated by $as_me.
9188# Run this file to recreate the current configuration.
9189# Compiler output produced by configure, useful for debugging
9190# configure, is in config.log if it exists.
9191
9192debug=false
9193ac_cs_recheck=false
9194ac_cs_silent=false
9195
9196SHELL=\${CONFIG_SHELL-$SHELL}
9197export SHELL
9198_ASEOF
9199cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9200## -------------------- ##
9201## M4sh Initialization. ##
9202## -------------------- ##
9203
9204# Be more Bourne compatible
9205DUALCASE=1; export DUALCASE # for MKS sh
9206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9207  emulate sh
9208  NULLCMD=:
9209  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9210  # is contrary to our usage.  Disable this feature.
9211  alias -g '${1+"$@"}'='"$@"'
9212  setopt NO_GLOB_SUBST
9213else
9214  case `(set -o) 2>/dev/null` in #(
9215  *posix*) :
9216    set -o posix ;; #(
9217  *) :
9218     ;;
9219esac
9220fi
9221
9222
9223as_nl='
9224'
9225export as_nl
9226# Printing a long string crashes Solaris 7 /usr/bin/printf.
9227as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9228as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9230# Prefer a ksh shell builtin over an external printf program on Solaris,
9231# but without wasting forks for bash or zsh.
9232if test -z "$BASH_VERSION$ZSH_VERSION" \
9233    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9234  as_echo='print -r --'
9235  as_echo_n='print -rn --'
9236elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9237  as_echo='printf %s\n'
9238  as_echo_n='printf %s'
9239else
9240  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9241    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9242    as_echo_n='/usr/ucb/echo -n'
9243  else
9244    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9245    as_echo_n_body='eval
9246      arg=$1;
9247      case $arg in #(
9248      *"$as_nl"*)
9249	expr "X$arg" : "X\\(.*\\)$as_nl";
9250	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9251      esac;
9252      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9253    '
9254    export as_echo_n_body
9255    as_echo_n='sh -c $as_echo_n_body as_echo'
9256  fi
9257  export as_echo_body
9258  as_echo='sh -c $as_echo_body as_echo'
9259fi
9260
9261# The user is always right.
9262if test "${PATH_SEPARATOR+set}" != set; then
9263  PATH_SEPARATOR=:
9264  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9265    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9266      PATH_SEPARATOR=';'
9267  }
9268fi
9269
9270
9271# IFS
9272# We need space, tab and new line, in precisely that order.  Quoting is
9273# there to prevent editors from complaining about space-tab.
9274# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9275# splitting by setting IFS to empty value.)
9276IFS=" ""	$as_nl"
9277
9278# Find who we are.  Look in the path if we contain no directory separator.
9279as_myself=
9280case $0 in #((
9281  *[\\/]* ) as_myself=$0 ;;
9282  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283for as_dir in $PATH
9284do
9285  IFS=$as_save_IFS
9286  test -z "$as_dir" && as_dir=.
9287    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9288  done
9289IFS=$as_save_IFS
9290
9291     ;;
9292esac
9293# We did not find ourselves, most probably we were run as `sh COMMAND'
9294# in which case we are not to be found in the path.
9295if test "x$as_myself" = x; then
9296  as_myself=$0
9297fi
9298if test ! -f "$as_myself"; then
9299  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9300  exit 1
9301fi
9302
9303# Unset variables that we do not need and which cause bugs (e.g. in
9304# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9305# suppresses any "Segmentation fault" message there.  '((' could
9306# trigger a bug in pdksh 5.2.14.
9307for as_var in BASH_ENV ENV MAIL MAILPATH
9308do eval test x\${$as_var+set} = xset \
9309  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9310done
9311PS1='$ '
9312PS2='> '
9313PS4='+ '
9314
9315# NLS nuisances.
9316LC_ALL=C
9317export LC_ALL
9318LANGUAGE=C
9319export LANGUAGE
9320
9321# CDPATH.
9322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9323
9324
9325# as_fn_error STATUS ERROR [LINENO LOG_FD]
9326# ----------------------------------------
9327# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9328# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9329# script with STATUS, using 1 if that was 0.
9330as_fn_error ()
9331{
9332  as_status=$1; test $as_status -eq 0 && as_status=1
9333  if test "$4"; then
9334    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9335    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9336  fi
9337  $as_echo "$as_me: error: $2" >&2
9338  as_fn_exit $as_status
9339} # as_fn_error
9340
9341
9342# as_fn_set_status STATUS
9343# -----------------------
9344# Set $? to STATUS, without forking.
9345as_fn_set_status ()
9346{
9347  return $1
9348} # as_fn_set_status
9349
9350# as_fn_exit STATUS
9351# -----------------
9352# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9353as_fn_exit ()
9354{
9355  set +e
9356  as_fn_set_status $1
9357  exit $1
9358} # as_fn_exit
9359
9360# as_fn_unset VAR
9361# ---------------
9362# Portably unset VAR.
9363as_fn_unset ()
9364{
9365  { eval $1=; unset $1;}
9366}
9367as_unset=as_fn_unset
9368# as_fn_append VAR VALUE
9369# ----------------------
9370# Append the text in VALUE to the end of the definition contained in VAR. Take
9371# advantage of any shell optimizations that allow amortized linear growth over
9372# repeated appends, instead of the typical quadratic growth present in naive
9373# implementations.
9374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9375  eval 'as_fn_append ()
9376  {
9377    eval $1+=\$2
9378  }'
9379else
9380  as_fn_append ()
9381  {
9382    eval $1=\$$1\$2
9383  }
9384fi # as_fn_append
9385
9386# as_fn_arith ARG...
9387# ------------------
9388# Perform arithmetic evaluation on the ARGs, and store the result in the
9389# global $as_val. Take advantage of shells that can avoid forks. The arguments
9390# must be portable across $(()) and expr.
9391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9392  eval 'as_fn_arith ()
9393  {
9394    as_val=$(( $* ))
9395  }'
9396else
9397  as_fn_arith ()
9398  {
9399    as_val=`expr "$@" || test $? -eq 1`
9400  }
9401fi # as_fn_arith
9402
9403
9404if expr a : '\(a\)' >/dev/null 2>&1 &&
9405   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9406  as_expr=expr
9407else
9408  as_expr=false
9409fi
9410
9411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9412  as_basename=basename
9413else
9414  as_basename=false
9415fi
9416
9417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9418  as_dirname=dirname
9419else
9420  as_dirname=false
9421fi
9422
9423as_me=`$as_basename -- "$0" ||
9424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9425	 X"$0" : 'X\(//\)$' \| \
9426	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9427$as_echo X/"$0" |
9428    sed '/^.*\/\([^/][^/]*\)\/*$/{
9429	    s//\1/
9430	    q
9431	  }
9432	  /^X\/\(\/\/\)$/{
9433	    s//\1/
9434	    q
9435	  }
9436	  /^X\/\(\/\).*/{
9437	    s//\1/
9438	    q
9439	  }
9440	  s/.*/./; q'`
9441
9442# Avoid depending upon Character Ranges.
9443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9446as_cr_digits='0123456789'
9447as_cr_alnum=$as_cr_Letters$as_cr_digits
9448
9449ECHO_C= ECHO_N= ECHO_T=
9450case `echo -n x` in #(((((
9451-n*)
9452  case `echo 'xy\c'` in
9453  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9454  xy)  ECHO_C='\c';;
9455  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9456       ECHO_T='	';;
9457  esac;;
9458*)
9459  ECHO_N='-n';;
9460esac
9461
9462rm -f conf$$ conf$$.exe conf$$.file
9463if test -d conf$$.dir; then
9464  rm -f conf$$.dir/conf$$.file
9465else
9466  rm -f conf$$.dir
9467  mkdir conf$$.dir 2>/dev/null
9468fi
9469if (echo >conf$$.file) 2>/dev/null; then
9470  if ln -s conf$$.file conf$$ 2>/dev/null; then
9471    as_ln_s='ln -s'
9472    # ... but there are two gotchas:
9473    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9474    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9475    # In both cases, we have to default to `cp -pR'.
9476    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9477      as_ln_s='cp -pR'
9478  elif ln conf$$.file conf$$ 2>/dev/null; then
9479    as_ln_s=ln
9480  else
9481    as_ln_s='cp -pR'
9482  fi
9483else
9484  as_ln_s='cp -pR'
9485fi
9486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9487rmdir conf$$.dir 2>/dev/null
9488
9489
9490# as_fn_mkdir_p
9491# -------------
9492# Create "$as_dir" as a directory, including parents if necessary.
9493as_fn_mkdir_p ()
9494{
9495
9496  case $as_dir in #(
9497  -*) as_dir=./$as_dir;;
9498  esac
9499  test -d "$as_dir" || eval $as_mkdir_p || {
9500    as_dirs=
9501    while :; do
9502      case $as_dir in #(
9503      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9504      *) as_qdir=$as_dir;;
9505      esac
9506      as_dirs="'$as_qdir' $as_dirs"
9507      as_dir=`$as_dirname -- "$as_dir" ||
9508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9509	 X"$as_dir" : 'X\(//\)[^/]' \| \
9510	 X"$as_dir" : 'X\(//\)$' \| \
9511	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9512$as_echo X"$as_dir" |
9513    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9514	    s//\1/
9515	    q
9516	  }
9517	  /^X\(\/\/\)[^/].*/{
9518	    s//\1/
9519	    q
9520	  }
9521	  /^X\(\/\/\)$/{
9522	    s//\1/
9523	    q
9524	  }
9525	  /^X\(\/\).*/{
9526	    s//\1/
9527	    q
9528	  }
9529	  s/.*/./; q'`
9530      test -d "$as_dir" && break
9531    done
9532    test -z "$as_dirs" || eval "mkdir $as_dirs"
9533  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9534
9535
9536} # as_fn_mkdir_p
9537if mkdir -p . 2>/dev/null; then
9538  as_mkdir_p='mkdir -p "$as_dir"'
9539else
9540  test -d ./-p && rmdir ./-p
9541  as_mkdir_p=false
9542fi
9543
9544
9545# as_fn_executable_p FILE
9546# -----------------------
9547# Test if FILE is an executable regular file.
9548as_fn_executable_p ()
9549{
9550  test -f "$1" && test -x "$1"
9551} # as_fn_executable_p
9552as_test_x='test -x'
9553as_executable_p=as_fn_executable_p
9554
9555# Sed expression to map a string onto a valid CPP name.
9556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9557
9558# Sed expression to map a string onto a valid variable name.
9559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9560
9561
9562exec 6>&1
9563## ----------------------------------- ##
9564## Main body of $CONFIG_STATUS script. ##
9565## ----------------------------------- ##
9566_ASEOF
9567test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9568
9569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9570# Save the log message, to keep $0 and so on meaningful, and to
9571# report actual input values of CONFIG_FILES etc. instead of their
9572# values after options handling.
9573ac_log="
9574This file was extended by tarsnap $as_me 1.0.39, which was
9575generated by GNU Autoconf 2.69.  Invocation command line was
9576
9577  CONFIG_FILES    = $CONFIG_FILES
9578  CONFIG_HEADERS  = $CONFIG_HEADERS
9579  CONFIG_LINKS    = $CONFIG_LINKS
9580  CONFIG_COMMANDS = $CONFIG_COMMANDS
9581  $ $0 $@
9582
9583on `(hostname || uname -n) 2>/dev/null | sed 1q`
9584"
9585
9586_ACEOF
9587
9588case $ac_config_files in *"
9589"*) set x $ac_config_files; shift; ac_config_files=$*;;
9590esac
9591
9592case $ac_config_headers in *"
9593"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9594esac
9595
9596
9597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9598# Files that config.status was made for.
9599config_files="$ac_config_files"
9600config_headers="$ac_config_headers"
9601config_commands="$ac_config_commands"
9602
9603_ACEOF
9604
9605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9606ac_cs_usage="\
9607\`$as_me' instantiates files and other configuration actions
9608from templates according to the current configuration.  Unless the files
9609and actions are specified as TAGs, all are instantiated by default.
9610
9611Usage: $0 [OPTION]... [TAG]...
9612
9613  -h, --help       print this help, then exit
9614  -V, --version    print version number and configuration settings, then exit
9615      --config     print configuration, then exit
9616  -q, --quiet, --silent
9617                   do not print progress messages
9618  -d, --debug      don't remove temporary files
9619      --recheck    update $as_me by reconfiguring in the same conditions
9620      --file=FILE[:TEMPLATE]
9621                   instantiate the configuration file FILE
9622      --header=FILE[:TEMPLATE]
9623                   instantiate the configuration header FILE
9624
9625Configuration files:
9626$config_files
9627
9628Configuration headers:
9629$config_headers
9630
9631Configuration commands:
9632$config_commands
9633
9634Report bugs to <cperciva@tarsnap.com>."
9635
9636_ACEOF
9637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9638ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9639ac_cs_version="\\
9640tarsnap config.status 1.0.39
9641configured by $0, generated by GNU Autoconf 2.69,
9642  with options \\"\$ac_cs_config\\"
9643
9644Copyright (C) 2012 Free Software Foundation, Inc.
9645This config.status script is free software; the Free Software Foundation
9646gives unlimited permission to copy, distribute and modify it."
9647
9648ac_pwd='$ac_pwd'
9649srcdir='$srcdir'
9650INSTALL='$INSTALL'
9651MKDIR_P='$MKDIR_P'
9652AWK='$AWK'
9653test -n "\$AWK" || AWK=awk
9654_ACEOF
9655
9656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9657# The default lists apply if the user does not specify any file.
9658ac_need_defaults=:
9659while test $# != 0
9660do
9661  case $1 in
9662  --*=?*)
9663    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9664    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9665    ac_shift=:
9666    ;;
9667  --*=)
9668    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9669    ac_optarg=
9670    ac_shift=:
9671    ;;
9672  *)
9673    ac_option=$1
9674    ac_optarg=$2
9675    ac_shift=shift
9676    ;;
9677  esac
9678
9679  case $ac_option in
9680  # Handling of the options.
9681  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9682    ac_cs_recheck=: ;;
9683  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9684    $as_echo "$ac_cs_version"; exit ;;
9685  --config | --confi | --conf | --con | --co | --c )
9686    $as_echo "$ac_cs_config"; exit ;;
9687  --debug | --debu | --deb | --de | --d | -d )
9688    debug=: ;;
9689  --file | --fil | --fi | --f )
9690    $ac_shift
9691    case $ac_optarg in
9692    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9693    '') as_fn_error $? "missing file argument" ;;
9694    esac
9695    as_fn_append CONFIG_FILES " '$ac_optarg'"
9696    ac_need_defaults=false;;
9697  --header | --heade | --head | --hea )
9698    $ac_shift
9699    case $ac_optarg in
9700    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9701    esac
9702    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9703    ac_need_defaults=false;;
9704  --he | --h)
9705    # Conflict between --help and --header
9706    as_fn_error $? "ambiguous option: \`$1'
9707Try \`$0 --help' for more information.";;
9708  --help | --hel | -h )
9709    $as_echo "$ac_cs_usage"; exit ;;
9710  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9711  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9712    ac_cs_silent=: ;;
9713
9714  # This is an error.
9715  -*) as_fn_error $? "unrecognized option: \`$1'
9716Try \`$0 --help' for more information." ;;
9717
9718  *) as_fn_append ac_config_targets " $1"
9719     ac_need_defaults=false ;;
9720
9721  esac
9722  shift
9723done
9724
9725ac_configure_extra_args=
9726
9727if $ac_cs_silent; then
9728  exec 6>/dev/null
9729  ac_configure_extra_args="$ac_configure_extra_args --silent"
9730fi
9731
9732_ACEOF
9733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9734if \$ac_cs_recheck; then
9735  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9736  shift
9737  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9738  CONFIG_SHELL='$SHELL'
9739  export CONFIG_SHELL
9740  exec "\$@"
9741fi
9742
9743_ACEOF
9744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9745exec 5>>config.log
9746{
9747  echo
9748  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9749## Running $as_me. ##
9750_ASBOX
9751  $as_echo "$ac_log"
9752} >&5
9753
9754_ACEOF
9755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9756#
9757# INIT-COMMANDS
9758#
9759AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9760
9761_ACEOF
9762
9763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9764
9765# Handling of arguments.
9766for ac_config_target in $ac_config_targets
9767do
9768  case $ac_config_target in
9769    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9770    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9771    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9772
9773  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9774  esac
9775done
9776
9777
9778# If the user did not use the arguments to specify the items to instantiate,
9779# then the envvar interface is used.  Set only those that are not.
9780# We use the long form for the default assignment because of an extremely
9781# bizarre bug on SunOS 4.1.3.
9782if $ac_need_defaults; then
9783  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9784  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9785  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9786fi
9787
9788# Have a temporary directory for convenience.  Make it in the build tree
9789# simply because there is no reason against having it here, and in addition,
9790# creating and moving files from /tmp can sometimes cause problems.
9791# Hook for its removal unless debugging.
9792# Note that there is a small window in which the directory will not be cleaned:
9793# after its creation but before its name has been assigned to `$tmp'.
9794$debug ||
9795{
9796  tmp= ac_tmp=
9797  trap 'exit_status=$?
9798  : "${ac_tmp:=$tmp}"
9799  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9800' 0
9801  trap 'as_fn_exit 1' 1 2 13 15
9802}
9803# Create a (secure) tmp directory for tmp files.
9804
9805{
9806  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9807  test -d "$tmp"
9808}  ||
9809{
9810  tmp=./conf$$-$RANDOM
9811  (umask 077 && mkdir "$tmp")
9812} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9813ac_tmp=$tmp
9814
9815# Set up the scripts for CONFIG_FILES section.
9816# No need to generate them if there are no CONFIG_FILES.
9817# This happens for instance with `./config.status config.h'.
9818if test -n "$CONFIG_FILES"; then
9819
9820
9821ac_cr=`echo X | tr X '\015'`
9822# On cygwin, bash can eat \r inside `` if the user requested igncr.
9823# But we know of no other shell where ac_cr would be empty at this
9824# point, so we can use a bashism as a fallback.
9825if test "x$ac_cr" = x; then
9826  eval ac_cr=\$\'\\r\'
9827fi
9828ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9829if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9830  ac_cs_awk_cr='\\r'
9831else
9832  ac_cs_awk_cr=$ac_cr
9833fi
9834
9835echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9836_ACEOF
9837
9838
9839{
9840  echo "cat >conf$$subs.awk <<_ACEOF" &&
9841  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9842  echo "_ACEOF"
9843} >conf$$subs.sh ||
9844  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9845ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9846ac_delim='%!_!# '
9847for ac_last_try in false false false false false :; do
9848  . ./conf$$subs.sh ||
9849    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9850
9851  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9852  if test $ac_delim_n = $ac_delim_num; then
9853    break
9854  elif $ac_last_try; then
9855    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9856  else
9857    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9858  fi
9859done
9860rm -f conf$$subs.sh
9861
9862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9863cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9864_ACEOF
9865sed -n '
9866h
9867s/^/S["/; s/!.*/"]=/
9868p
9869g
9870s/^[^!]*!//
9871:repl
9872t repl
9873s/'"$ac_delim"'$//
9874t delim
9875:nl
9876h
9877s/\(.\{148\}\)..*/\1/
9878t more1
9879s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9880p
9881n
9882b repl
9883:more1
9884s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9885p
9886g
9887s/.\{148\}//
9888t nl
9889:delim
9890h
9891s/\(.\{148\}\)..*/\1/
9892t more2
9893s/["\\]/\\&/g; s/^/"/; s/$/"/
9894p
9895b
9896:more2
9897s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9898p
9899g
9900s/.\{148\}//
9901t delim
9902' <conf$$subs.awk | sed '
9903/^[^""]/{
9904  N
9905  s/\n//
9906}
9907' >>$CONFIG_STATUS || ac_write_fail=1
9908rm -f conf$$subs.awk
9909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9910_ACAWK
9911cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9912  for (key in S) S_is_set[key] = 1
9913  FS = ""
9914
9915}
9916{
9917  line = $ 0
9918  nfields = split(line, field, "@")
9919  substed = 0
9920  len = length(field[1])
9921  for (i = 2; i < nfields; i++) {
9922    key = field[i]
9923    keylen = length(key)
9924    if (S_is_set[key]) {
9925      value = S[key]
9926      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9927      len += length(value) + length(field[++i])
9928      substed = 1
9929    } else
9930      len += 1 + keylen
9931  }
9932
9933  print line
9934}
9935
9936_ACAWK
9937_ACEOF
9938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9939if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9940  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9941else
9942  cat
9943fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9944  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9945_ACEOF
9946
9947# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9948# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9949# trailing colons and then remove the whole line if VPATH becomes empty
9950# (actually we leave an empty line to preserve line numbers).
9951if test "x$srcdir" = x.; then
9952  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9953h
9954s///
9955s/^/:/
9956s/[	 ]*$/:/
9957s/:\$(srcdir):/:/g
9958s/:\${srcdir}:/:/g
9959s/:@srcdir@:/:/g
9960s/^:*//
9961s/:*$//
9962x
9963s/\(=[	 ]*\).*/\1/
9964G
9965s/\n//
9966s/^[^=]*=[	 ]*$//
9967}'
9968fi
9969
9970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9971fi # test -n "$CONFIG_FILES"
9972
9973# Set up the scripts for CONFIG_HEADERS section.
9974# No need to generate them if there are no CONFIG_HEADERS.
9975# This happens for instance with `./config.status Makefile'.
9976if test -n "$CONFIG_HEADERS"; then
9977cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9978BEGIN {
9979_ACEOF
9980
9981# Transform confdefs.h into an awk script `defines.awk', embedded as
9982# here-document in config.status, that substitutes the proper values into
9983# config.h.in to produce config.h.
9984
9985# Create a delimiter string that does not exist in confdefs.h, to ease
9986# handling of long lines.
9987ac_delim='%!_!# '
9988for ac_last_try in false false :; do
9989  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9990  if test -z "$ac_tt"; then
9991    break
9992  elif $ac_last_try; then
9993    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9994  else
9995    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9996  fi
9997done
9998
9999# For the awk script, D is an array of macro values keyed by name,
10000# likewise P contains macro parameters if any.  Preserve backslash
10001# newline sequences.
10002
10003ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10004sed -n '
10005s/.\{148\}/&'"$ac_delim"'/g
10006t rset
10007:rset
10008s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10009t def
10010d
10011:def
10012s/\\$//
10013t bsnl
10014s/["\\]/\\&/g
10015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10016D["\1"]=" \3"/p
10017s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10018d
10019:bsnl
10020s/["\\]/\\&/g
10021s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10022D["\1"]=" \3\\\\\\n"\\/p
10023t cont
10024s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10025t cont
10026d
10027:cont
10028n
10029s/.\{148\}/&'"$ac_delim"'/g
10030t clear
10031:clear
10032s/\\$//
10033t bsnlc
10034s/["\\]/\\&/g; s/^/"/; s/$/"/p
10035d
10036:bsnlc
10037s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10038b cont
10039' <confdefs.h | sed '
10040s/'"$ac_delim"'/"\\\
10041"/g' >>$CONFIG_STATUS || ac_write_fail=1
10042
10043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10044  for (key in D) D_is_set[key] = 1
10045  FS = ""
10046}
10047/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10048  line = \$ 0
10049  split(line, arg, " ")
10050  if (arg[1] == "#") {
10051    defundef = arg[2]
10052    mac1 = arg[3]
10053  } else {
10054    defundef = substr(arg[1], 2)
10055    mac1 = arg[2]
10056  }
10057  split(mac1, mac2, "(") #)
10058  macro = mac2[1]
10059  prefix = substr(line, 1, index(line, defundef) - 1)
10060  if (D_is_set[macro]) {
10061    # Preserve the white space surrounding the "#".
10062    print prefix "define", macro P[macro] D[macro]
10063    next
10064  } else {
10065    # Replace #undef with comments.  This is necessary, for example,
10066    # in the case of _POSIX_SOURCE, which is predefined and required
10067    # on some systems where configure will not decide to define it.
10068    if (defundef == "undef") {
10069      print "/*", prefix defundef, macro, "*/"
10070      next
10071    }
10072  }
10073}
10074{ print }
10075_ACAWK
10076_ACEOF
10077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10078  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10079fi # test -n "$CONFIG_HEADERS"
10080
10081
10082eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10083shift
10084for ac_tag
10085do
10086  case $ac_tag in
10087  :[FHLC]) ac_mode=$ac_tag; continue;;
10088  esac
10089  case $ac_mode$ac_tag in
10090  :[FHL]*:*);;
10091  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10092  :[FH]-) ac_tag=-:-;;
10093  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10094  esac
10095  ac_save_IFS=$IFS
10096  IFS=:
10097  set x $ac_tag
10098  IFS=$ac_save_IFS
10099  shift
10100  ac_file=$1
10101  shift
10102
10103  case $ac_mode in
10104  :L) ac_source=$1;;
10105  :[FH])
10106    ac_file_inputs=
10107    for ac_f
10108    do
10109      case $ac_f in
10110      -) ac_f="$ac_tmp/stdin";;
10111      *) # Look for the file first in the build tree, then in the source tree
10112	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10113	 # because $ac_f cannot contain `:'.
10114	 test -f "$ac_f" ||
10115	   case $ac_f in
10116	   [\\/$]*) false;;
10117	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10118	   esac ||
10119	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10120      esac
10121      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10122      as_fn_append ac_file_inputs " '$ac_f'"
10123    done
10124
10125    # Let's still pretend it is `configure' which instantiates (i.e., don't
10126    # use $as_me), people would be surprised to read:
10127    #    /* config.h.  Generated by config.status.  */
10128    configure_input='Generated from '`
10129	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10130	`' by configure.'
10131    if test x"$ac_file" != x-; then
10132      configure_input="$ac_file.  $configure_input"
10133      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10134$as_echo "$as_me: creating $ac_file" >&6;}
10135    fi
10136    # Neutralize special characters interpreted by sed in replacement strings.
10137    case $configure_input in #(
10138    *\&* | *\|* | *\\* )
10139       ac_sed_conf_input=`$as_echo "$configure_input" |
10140       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10141    *) ac_sed_conf_input=$configure_input;;
10142    esac
10143
10144    case $ac_tag in
10145    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10146      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10147    esac
10148    ;;
10149  esac
10150
10151  ac_dir=`$as_dirname -- "$ac_file" ||
10152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10153	 X"$ac_file" : 'X\(//\)[^/]' \| \
10154	 X"$ac_file" : 'X\(//\)$' \| \
10155	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10156$as_echo X"$ac_file" |
10157    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10158	    s//\1/
10159	    q
10160	  }
10161	  /^X\(\/\/\)[^/].*/{
10162	    s//\1/
10163	    q
10164	  }
10165	  /^X\(\/\/\)$/{
10166	    s//\1/
10167	    q
10168	  }
10169	  /^X\(\/\).*/{
10170	    s//\1/
10171	    q
10172	  }
10173	  s/.*/./; q'`
10174  as_dir="$ac_dir"; as_fn_mkdir_p
10175  ac_builddir=.
10176
10177case "$ac_dir" in
10178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10179*)
10180  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10181  # A ".." for each directory in $ac_dir_suffix.
10182  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10183  case $ac_top_builddir_sub in
10184  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10185  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10186  esac ;;
10187esac
10188ac_abs_top_builddir=$ac_pwd
10189ac_abs_builddir=$ac_pwd$ac_dir_suffix
10190# for backward compatibility:
10191ac_top_builddir=$ac_top_build_prefix
10192
10193case $srcdir in
10194  .)  # We are building in place.
10195    ac_srcdir=.
10196    ac_top_srcdir=$ac_top_builddir_sub
10197    ac_abs_top_srcdir=$ac_pwd ;;
10198  [\\/]* | ?:[\\/]* )  # Absolute name.
10199    ac_srcdir=$srcdir$ac_dir_suffix;
10200    ac_top_srcdir=$srcdir
10201    ac_abs_top_srcdir=$srcdir ;;
10202  *) # Relative name.
10203    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10204    ac_top_srcdir=$ac_top_build_prefix$srcdir
10205    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10206esac
10207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10208
10209
10210  case $ac_mode in
10211  :F)
10212  #
10213  # CONFIG_FILE
10214  #
10215
10216  case $INSTALL in
10217  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10218  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10219  esac
10220  ac_MKDIR_P=$MKDIR_P
10221  case $MKDIR_P in
10222  [\\/$]* | ?:[\\/]* ) ;;
10223  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10224  esac
10225_ACEOF
10226
10227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10228# If the template does not know about datarootdir, expand it.
10229# FIXME: This hack should be removed a few years after 2.60.
10230ac_datarootdir_hack=; ac_datarootdir_seen=
10231ac_sed_dataroot='
10232/datarootdir/ {
10233  p
10234  q
10235}
10236/@datadir@/p
10237/@docdir@/p
10238/@infodir@/p
10239/@localedir@/p
10240/@mandir@/p'
10241case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10242*datarootdir*) ac_datarootdir_seen=yes;;
10243*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10244  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10245$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10246_ACEOF
10247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10248  ac_datarootdir_hack='
10249  s&@datadir@&$datadir&g
10250  s&@docdir@&$docdir&g
10251  s&@infodir@&$infodir&g
10252  s&@localedir@&$localedir&g
10253  s&@mandir@&$mandir&g
10254  s&\\\${datarootdir}&$datarootdir&g' ;;
10255esac
10256_ACEOF
10257
10258# Neutralize VPATH when `$srcdir' = `.'.
10259# Shell code in configure.ac might set extrasub.
10260# FIXME: do we really want to maintain this feature?
10261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10262ac_sed_extra="$ac_vpsub
10263$extrasub
10264_ACEOF
10265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10266:t
10267/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10268s|@configure_input@|$ac_sed_conf_input|;t t
10269s&@top_builddir@&$ac_top_builddir_sub&;t t
10270s&@top_build_prefix@&$ac_top_build_prefix&;t t
10271s&@srcdir@&$ac_srcdir&;t t
10272s&@abs_srcdir@&$ac_abs_srcdir&;t t
10273s&@top_srcdir@&$ac_top_srcdir&;t t
10274s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10275s&@builddir@&$ac_builddir&;t t
10276s&@abs_builddir@&$ac_abs_builddir&;t t
10277s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10278s&@INSTALL@&$ac_INSTALL&;t t
10279s&@MKDIR_P@&$ac_MKDIR_P&;t t
10280$ac_datarootdir_hack
10281"
10282eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10283  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10284
10285test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10286  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10287  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
10288      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10290which seems to be undefined.  Please make sure it is defined" >&5
10291$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10292which seems to be undefined.  Please make sure it is defined" >&2;}
10293
10294  rm -f "$ac_tmp/stdin"
10295  case $ac_file in
10296  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10297  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10298  esac \
10299  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10300 ;;
10301  :H)
10302  #
10303  # CONFIG_HEADER
10304  #
10305  if test x"$ac_file" != x-; then
10306    {
10307      $as_echo "/* $configure_input  */" \
10308      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10309    } >"$ac_tmp/config.h" \
10310      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10311    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10312      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10313$as_echo "$as_me: $ac_file is unchanged" >&6;}
10314    else
10315      rm -f "$ac_file"
10316      mv "$ac_tmp/config.h" "$ac_file" \
10317	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10318    fi
10319  else
10320    $as_echo "/* $configure_input  */" \
10321      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10322      || as_fn_error $? "could not create -" "$LINENO" 5
10323  fi
10324# Compute "$ac_file"'s index in $config_headers.
10325_am_arg="$ac_file"
10326_am_stamp_count=1
10327for _am_header in $config_headers :; do
10328  case $_am_header in
10329    $_am_arg | $_am_arg:* )
10330      break ;;
10331    * )
10332      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10333  esac
10334done
10335echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10336$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10337	 X"$_am_arg" : 'X\(//\)[^/]' \| \
10338	 X"$_am_arg" : 'X\(//\)$' \| \
10339	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10340$as_echo X"$_am_arg" |
10341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10342	    s//\1/
10343	    q
10344	  }
10345	  /^X\(\/\/\)[^/].*/{
10346	    s//\1/
10347	    q
10348	  }
10349	  /^X\(\/\/\)$/{
10350	    s//\1/
10351	    q
10352	  }
10353	  /^X\(\/\).*/{
10354	    s//\1/
10355	    q
10356	  }
10357	  s/.*/./; q'`/stamp-h$_am_stamp_count
10358 ;;
10359
10360  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10361$as_echo "$as_me: executing $ac_file commands" >&6;}
10362 ;;
10363  esac
10364
10365
10366  case $ac_file$ac_mode in
10367    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10368  # Older Autoconf quotes --file arguments for eval, but not when files
10369  # are listed without --file.  Let's play safe and only enable the eval
10370  # if we detect the quoting.
10371  case $CONFIG_FILES in
10372  *\'*) eval set x "$CONFIG_FILES" ;;
10373  *)   set x $CONFIG_FILES ;;
10374  esac
10375  shift
10376  for mf
10377  do
10378    # Strip MF so we end up with the name of the file.
10379    mf=`echo "$mf" | sed -e 's/:.*$//'`
10380    # Check whether this is an Automake generated Makefile or not.
10381    # We used to match only the files named 'Makefile.in', but
10382    # some people rename them; so instead we look at the file content.
10383    # Grep'ing the first line is not enough: some people post-process
10384    # each Makefile.in and add a new line on top of each file to say so.
10385    # Grep'ing the whole file is not good either: AIX grep has a line
10386    # limit of 2048, but all sed's we know have understand at least 4000.
10387    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10388      dirpart=`$as_dirname -- "$mf" ||
10389$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10390	 X"$mf" : 'X\(//\)[^/]' \| \
10391	 X"$mf" : 'X\(//\)$' \| \
10392	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10393$as_echo X"$mf" |
10394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10395	    s//\1/
10396	    q
10397	  }
10398	  /^X\(\/\/\)[^/].*/{
10399	    s//\1/
10400	    q
10401	  }
10402	  /^X\(\/\/\)$/{
10403	    s//\1/
10404	    q
10405	  }
10406	  /^X\(\/\).*/{
10407	    s//\1/
10408	    q
10409	  }
10410	  s/.*/./; q'`
10411    else
10412      continue
10413    fi
10414    # Extract the definition of DEPDIR, am__include, and am__quote
10415    # from the Makefile without running 'make'.
10416    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10417    test -z "$DEPDIR" && continue
10418    am__include=`sed -n 's/^am__include = //p' < "$mf"`
10419    test -z "$am__include" && continue
10420    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10421    # Find all dependency output files, they are included files with
10422    # $(DEPDIR) in their names.  We invoke sed twice because it is the
10423    # simplest approach to changing $(DEPDIR) to its actual value in the
10424    # expansion.
10425    for file in `sed -n "
10426      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10427	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10428      # Make sure the directory exists.
10429      test -f "$dirpart/$file" && continue
10430      fdir=`$as_dirname -- "$file" ||
10431$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10432	 X"$file" : 'X\(//\)[^/]' \| \
10433	 X"$file" : 'X\(//\)$' \| \
10434	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10435$as_echo X"$file" |
10436    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10437	    s//\1/
10438	    q
10439	  }
10440	  /^X\(\/\/\)[^/].*/{
10441	    s//\1/
10442	    q
10443	  }
10444	  /^X\(\/\/\)$/{
10445	    s//\1/
10446	    q
10447	  }
10448	  /^X\(\/\).*/{
10449	    s//\1/
10450	    q
10451	  }
10452	  s/.*/./; q'`
10453      as_dir=$dirpart/$fdir; as_fn_mkdir_p
10454      # echo "creating $dirpart/$file"
10455      echo '# dummy' > "$dirpart/$file"
10456    done
10457  done
10458}
10459 ;;
10460
10461  esac
10462done # for ac_tag
10463
10464
10465as_fn_exit 0
10466_ACEOF
10467ac_clean_files=$ac_clean_files_save
10468
10469test $ac_write_fail = 0 ||
10470  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10471
10472
10473# configure is writing to config.log, and then calls config.status.
10474# config.status does its own redirection, appending to config.log.
10475# Unfortunately, on DOS this fails, as config.log is still kept open
10476# by configure, so config.status won't be able to write to it; its
10477# output is simply discarded.  So we exec the FD to /dev/null,
10478# effectively closing config.log, so it can be properly (re)opened and
10479# appended to by config.status.  When coming back to configure, we
10480# need to make the FD available again.
10481if test "$no_create" != yes; then
10482  ac_cs_success=:
10483  ac_config_status_args=
10484  test "$silent" = yes &&
10485    ac_config_status_args="$ac_config_status_args --quiet"
10486  exec 5>/dev/null
10487  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10488  exec 5>>config.log
10489  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10490  # would make configure fail if this is the last instruction.
10491  $ac_cs_success || as_fn_exit 1
10492fi
10493if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10495$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10496fi
10497
10498