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