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