gsstest: fixed compilation errors
[tridge/bind9.git] / contrib / zkt / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if 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
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
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.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
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.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if 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; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for 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
109 do
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
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo 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
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$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   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
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
234 done
235 IFS=$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
242 if 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
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
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
263 if 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
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $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
338 fi
339
340 fi
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+"$@"}
350 fi
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; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$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
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `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';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if 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'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
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   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_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.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 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.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='ZKT'
576 PACKAGE_TARNAME='zkt'
577 PACKAGE_VERSION='1.0'
578 PACKAGE_STRING='ZKT 1.0'
579 PACKAGE_BUGREPORT='Holger Zuleger hznet.de'
580
581 ac_unique_file="zkt-signer.c"
582 # Factoring default headers for most tests.
583 ac_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
618 ac_header_list=
619 ac_func_list=
620 ac_subst_vars='SHELL
621 PATH_SEPARATOR
622 PACKAGE_NAME
623 PACKAGE_TARNAME
624 PACKAGE_VERSION
625 PACKAGE_STRING
626 PACKAGE_BUGREPORT
627 exec_prefix
628 prefix
629 program_transform_name
630 bindir
631 sbindir
632 libexecdir
633 datarootdir
634 datadir
635 sysconfdir
636 sharedstatedir
637 localstatedir
638 includedir
639 oldincludedir
640 docdir
641 infodir
642 htmldir
643 dvidir
644 pdfdir
645 psdir
646 libdir
647 localedir
648 mandir
649 DEFS
650 ECHO_C
651 ECHO_N
652 ECHO_T
653 LIBS
654 build_alias
655 host_alias
656 target_alias
657 CC
658 CFLAGS
659 LDFLAGS
660 CPPFLAGS
661 ac_ct_CC
662 EXEEXT
663 OBJEXT
664 SIGNZONE_PROG
665 CPP
666 GREP
667 EGREP
668 LIBOBJS
669 LTLIBOBJS'
670 ac_subst_files=''
671       ac_precious_vars='build_alias
672 host_alias
673 target_alias
674 CC
675 CFLAGS
676 LDFLAGS
677 LIBS
678 CPPFLAGS
679 CPP'
680
681
682 # Initialize some variables set by options.
683 ac_init_help=
684 ac_init_version=false
685 # The variables have the same names as the options, with
686 # dashes changed to underlines.
687 cache_file=/dev/null
688 exec_prefix=NONE
689 no_create=
690 no_recursion=
691 prefix=NONE
692 program_prefix=NONE
693 program_suffix=NONE
694 program_transform_name=s,x,x,
695 silent=
696 site=
697 srcdir=
698 verbose=
699 x_includes=NONE
700 x_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.)
708 bindir='${exec_prefix}/bin'
709 sbindir='${exec_prefix}/sbin'
710 libexecdir='${exec_prefix}/libexec'
711 datarootdir='${prefix}/share'
712 datadir='${datarootdir}'
713 sysconfdir='${prefix}/etc'
714 sharedstatedir='${prefix}/com'
715 localstatedir='${prefix}/var'
716 includedir='${prefix}/include'
717 oldincludedir='/usr/include'
718 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
719 infodir='${datarootdir}/info'
720 htmldir='${docdir}'
721 dvidir='${docdir}'
722 pdfdir='${docdir}'
723 psdir='${docdir}'
724 libdir='${exec_prefix}/lib'
725 localedir='${datarootdir}/locale'
726 mandir='${datarootdir}/man'
727
728 ac_prev=
729 ac_dashdash=
730 for ac_option
731 do
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
1035 Try \`$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
1057 done
1058
1059 if 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; }; }
1063 fi
1064
1065 # Be sure to have absolute directory names.
1066 for 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
1070 do
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; }; }
1078 done
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.
1083 build=$build_alias
1084 host=$host_alias
1085 target=$target_alias
1086
1087 # FIXME: To remove some day.
1088 if 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
1096 fi
1097
1098 ac_tool_prefix=
1099 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1100
1101 test "$silent" = yes && exec 6>/dev/null
1102
1103
1104 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1105 ac_ls_di=`ls -di .` &&
1106 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1107   { echo "$as_me: error: Working directory cannot be determined" >&2
1108    { (exit 1); exit 1; }; }
1109 test "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.
1115 if 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 ||
1123 echo 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
1145 else
1146   ac_srcdir_defaulted=no
1147 fi
1148 if 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; }; }
1152 fi
1153 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1154 ac_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=.
1159 if test "$ac_abs_confdir" = "$ac_pwd"; then
1160   srcdir=.
1161 fi
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.
1165 case $srcdir in
1166 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1167 esac
1168 for 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}
1173 done
1174
1175 #
1176 # Report the --help message.
1177 #
1178 if 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
1184 Usage: $0 [OPTION]... [VAR=VALUE]...
1185
1186 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1187 VAR=VALUE.  See below for descriptions of some of the useful variables.
1188
1189 Defaults for the options are specified in brackets.
1190
1191 Configuration:
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
1202 Installation 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
1208 By default, \`make install' will install all the files in
1209 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1210 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1211 for instance \`--prefix=\$HOME'.
1212
1213 For better control, use the options below.
1214
1215 Fine 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
1239 fi
1240
1241 if 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
1247 Optional 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
1263 Optional 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
1268 Some 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
1278 Use these variables to override the choices made by `configure' or to help
1279 it to find libraries and programs with nonstandard names/locations.
1280
1281 Report bugs to <Holger Zuleger hznet.de>.
1282 _ACEOF
1283 ac_status=$?
1284 fi
1285
1286 if 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
1292 case "$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 ;;
1302 esac
1303 ac_abs_top_builddir=$ac_pwd
1304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1305 # for backward compatibility:
1306 ac_top_builddir=$ac_top_build_prefix
1307
1308 case $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 ;;
1321 esac
1322 ac_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
1337 fi
1338
1339 test -n "$ac_init_help" && exit $ac_status
1340 if $ac_init_version; then
1341   cat <<\_ACEOF
1342 ZKT configure 1.0
1343 generated by GNU Autoconf 2.61
1344
1345 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1346 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1347 This configure script is free software; the Free Software Foundation
1348 gives unlimited permission to copy, distribute and modify it.
1349 _ACEOF
1350   exit
1351 fi
1352 cat >config.log <<_ACEOF
1353 This file contains any messages produced by compilers while
1354 running configure, to aid debugging if configure makes a mistake.
1355
1356 It was created by ZKT $as_me 1.0, which was
1357 generated by GNU Autoconf 2.61.  Invocation command line was
1358
1359   $ $0 $@
1360
1361 _ACEOF
1362 exec 5>>config.log
1363 {
1364 cat <<_ASUNAME
1365 ## --------- ##
1366 ## Platform. ##
1367 ## --------- ##
1368
1369 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373 uname -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
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391   IFS=$as_save_IFS
1392   test -z "$as_dir" && as_dir=.
1393   echo "PATH: $as_dir"
1394 done
1395 IFS=$as_save_IFS
1396
1397 } >&5
1398
1399 cat >&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.
1414 ac_configure_args=
1415 ac_configure_args0=
1416 ac_configure_args1=
1417 ac_must_keep_next=false
1418 for ac_pass in 1 2
1419 do
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
1453 done
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.
1462 trap '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
1481 echo "$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
1556 for ac_signal in 1 2 13 15; do
1557   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1558 done
1559 ac_signal=0
1560
1561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1562 rm -f -r conftest* confdefs.h
1563
1564 # Predefined preprocessor variables.
1565
1566 cat >>confdefs.h <<_ACEOF
1567 #define PACKAGE_NAME "$PACKAGE_NAME"
1568 _ACEOF
1569
1570
1571 cat >>confdefs.h <<_ACEOF
1572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1573 _ACEOF
1574
1575
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1578 _ACEOF
1579
1580
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_STRING "$PACKAGE_STRING"
1583 _ACEOF
1584
1585
1586 cat >>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.
1593 if test -n "$CONFIG_SITE"; then
1594   set x "$CONFIG_SITE"
1595 elif test "x$prefix" != xNONE; then
1596   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1597 else
1598   set x "$ac_default_prefix/share/config.site" \
1599         "$ac_default_prefix/etc/config.site"
1600 fi
1601 shift
1602 for ac_site_file
1603 do
1604   if test -r "$ac_site_file"; then
1605     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1606 echo "$as_me: loading site script $ac_site_file" >&6;}
1607     sed 's/^/| /' "$ac_site_file" >&5
1608     . "$ac_site_file"
1609   fi
1610 done
1611
1612 if 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
1617 echo "$as_me: loading cache $cache_file" >&6;}
1618     case $cache_file in
1619       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1620       *)                      . "./$cache_file";;
1621     esac
1622   fi
1623 else
1624   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1625 echo "$as_me: creating cache $cache_file" >&6;}
1626   >$cache_file
1627 fi
1628
1629 ac_header_list="$ac_header_list sys/time.h"
1630 ac_header_list="$ac_header_list unistd.h"
1631 ac_func_list="$ac_func_list alarm"
1632 ac_header_list="$ac_header_list utime.h"
1633 # Check that the precious variables saved in the cache have kept the same
1634 # value.
1635 ac_cache_corrupted=false
1636 for 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
1644 echo "$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
1648 echo "$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
1654 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1655         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1656 echo "$as_me:   former value:  $ac_old_val" >&2;}
1657         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1658 echo "$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
1673 done
1674 if $ac_cache_corrupted; then
1675   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1676 echo "$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
1678 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1679    { (exit 1); exit 1; }; }
1680 fi
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
1706 ac_ext=c
1707 ac_cpp='$CPP $CPPFLAGS'
1708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1711
1712
1713
1714 ### Files to test to check if src dir contains the package
1715
1716 ac_config_headers="$ac_config_headers config.h"
1717
1718
1719
1720 ### Checks for programs.
1721 ac_ext=c
1722 ac_cpp='$CPP $CPPFLAGS'
1723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1726 if 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.
1728 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1731 if test "${ac_cv_prog_CC+set}" = set; then
1732   echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734   if test -n "$CC"; then
1735   ac_cv_prog_CC="$CC" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
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
1748 done
1749 done
1750 IFS=$as_save_IFS
1751
1752 fi
1753 fi
1754 CC=$ac_cv_prog_CC
1755 if test -n "$CC"; then
1756   { echo "$as_me:$LINENO: result: $CC" >&5
1757 echo "${ECHO_T}$CC" >&6; }
1758 else
1759   { echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6; }
1761 fi
1762
1763
1764 fi
1765 if 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.
1768 set dummy gcc; ac_word=$2
1769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1772   echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774   if test -n "$ac_ct_CC"; then
1775   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1776 else
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
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
1788 done
1789 done
1790 IFS=$as_save_IFS
1791
1792 fi
1793 fi
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6; }
1798 else
1799   { echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6; }
1801 fi
1802
1803   if test "x$ac_ct_CC" = x; then
1804     CC=""
1805   else
1806     case $cross_compiling:$ac_tool_warned in
1807 yes:)
1808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1809 whose name does not start with the host triplet.  If you think this
1810 configuration is useful to you, please write to autoconf@gnu.org." >&5
1811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1812 whose name does not start with the host triplet.  If you think this
1813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1814 ac_tool_warned=yes ;;
1815 esac
1816     CC=$ac_ct_CC
1817   fi
1818 else
1819   CC="$ac_cv_prog_CC"
1820 fi
1821
1822 if 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.
1825 set dummy ${ac_tool_prefix}cc; ac_word=$2
1826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829   echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831   if test -n "$CC"; then
1832   ac_cv_prog_CC="$CC" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
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
1845 done
1846 done
1847 IFS=$as_save_IFS
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853   { echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6; }
1855 else
1856   { echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6; }
1858 fi
1859
1860
1861   fi
1862 fi
1863 if test -z "$CC"; then
1864   # Extract the first word of "cc", so it can be a program name with args.
1865 set dummy cc; ac_word=$2
1866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$CC"; then
1872   ac_cv_prog_CC="$CC" # Let the user override the test.
1873 else
1874   ac_prog_rejected=no
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878   IFS=$as_save_IFS
1879   test -z "$as_dir" && as_dir=.
1880   for ac_exec_ext in '' $ac_executable_extensions; do
1881   if { 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
1890 done
1891 done
1892 IFS=$as_save_IFS
1893
1894 if 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
1905 fi
1906 fi
1907 fi
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910   { echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6; }
1912 else
1913   { echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6; }
1915 fi
1916
1917
1918 fi
1919 if 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.
1924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1927 if test "${ac_cv_prog_CC+set}" = set; then
1928   echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930   if test -n "$CC"; then
1931   ac_cv_prog_CC="$CC" # Let the user override the test.
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
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
1944 done
1945 done
1946 IFS=$as_save_IFS
1947
1948 fi
1949 fi
1950 CC=$ac_cv_prog_CC
1951 if test -n "$CC"; then
1952   { echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6; }
1954 else
1955   { echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6; }
1957 fi
1958
1959
1960     test -n "$CC" && break
1961   done
1962 fi
1963 if test -z "$CC"; then
1964   ac_ct_CC=$CC
1965   for ac_prog in cl.exe
1966 do
1967   # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$ac_ct_CC"; then
1975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
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
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995 if test -n "$ac_ct_CC"; then
1996   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997 echo "${ECHO_T}$ac_ct_CC" >&6; }
1998 else
1999   { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2001 fi
2002
2003
2004   test -n "$ac_ct_CC" && break
2005 done
2006
2007   if test "x$ac_ct_CC" = x; then
2008     CC=""
2009   else
2010     case $cross_compiling:$ac_tool_warned in
2011 yes:)
2012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2013 whose name does not start with the host triplet.  If you think this
2014 configuration is useful to you, please write to autoconf@gnu.org." >&5
2015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2016 whose name does not start with the host triplet.  If you think this
2017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2018 ac_tool_warned=yes ;;
2019 esac
2020     CC=$ac_ct_CC
2021   fi
2022 fi
2023
2024 fi
2025
2026
2027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2028 See \`config.log' for more details." >&5
2029 echo "$as_me: error: no acceptable C compiler found in \$PATH
2030 See \`config.log' for more details." >&2;}
2031    { (exit 1); exit 1; }; }
2032
2033 # Provide some information about the compiler.
2034 echo "$as_me:$LINENO: checking for C compiler version" >&5
2035 ac_compiler=`set X $ac_compile; echo $2`
2036 { (ac_try="$ac_compiler --version >&5"
2037 case "(($ac_try" in
2038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039   *) ac_try_echo=$ac_try;;
2040 esac
2041 eval "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"
2047 case "(($ac_try" in
2048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049   *) ac_try_echo=$ac_try;;
2050 esac
2051 eval "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"
2057 case "(($ac_try" in
2058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059   *) ac_try_echo=$ac_try;;
2060 esac
2061 eval "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
2067 cat >conftest.$ac_ext <<_ACEOF
2068 /* confdefs.h.  */
2069 _ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h.  */
2073
2074 int
2075 main ()
2076 {
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 ac_clean_files_save=$ac_clean_files
2083 ac_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
2088 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2089 ac_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.
2094 ac_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.
2099 ac_rmfiles=
2100 for ac_file in $ac_files
2101 do
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
2106 done
2107 rm -f $ac_rmfiles
2108
2109 if { (ac_try="$ac_link_default"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "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.
2124 for ac_file in $ac_files ''
2125 do
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
2148 done
2149 test "$ac_cv_exeext" = no && ac_cv_exeext=
2150
2151 else
2152   ac_file=''
2153 fi
2154
2155 { echo "$as_me:$LINENO: result: $ac_file" >&5
2156 echo "${ECHO_T}$ac_file" >&6; }
2157 if test -z "$ac_file"; then
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165    { (exit 77); exit 77; }; }
2166 fi
2167
2168 ac_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
2173 echo $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.
2176 if 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;;
2181 esac
2182 eval "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.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot run C compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&2;}
2198    { (exit 1); exit 1; }; }
2199     fi
2200   fi
2201 fi
2202 { echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6; }
2204
2205 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2206 ac_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
2210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2211 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2212 echo "${ECHO_T}$cross_compiling" >&6; }
2213
2214 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2216 if { (ac_try="$ac_link"
2217 case "(($ac_try" in
2218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219   *) ac_try_echo=$ac_try;;
2220 esac
2221 eval "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'.
2230 for 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
2238 done
2239 else
2240   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }
2245 fi
2246
2247 rm -f conftest$ac_cv_exeext
2248 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2249 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2250
2251 rm -f conftest.$ac_ext
2252 EXEEXT=$ac_cv_exeext
2253 ac_exeext=$EXEEXT
2254 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2255 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2256 if test "${ac_cv_objext+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   cat >conftest.$ac_ext <<_ACEOF
2260 /* confdefs.h.  */
2261 _ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h.  */
2265
2266 int
2267 main ()
2268 {
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 rm -f conftest.o conftest.obj
2275 if { (ac_try="$ac_compile"
2276 case "(($ac_try" in
2277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278   *) ac_try_echo=$ac_try;;
2279 esac
2280 eval "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
2292 done
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2300 See \`config.log' for more details." >&2;}
2301    { (exit 1); exit 1; }; }
2302 fi
2303
2304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2305 fi
2306 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2307 echo "${ECHO_T}$ac_cv_objext" >&6; }
2308 OBJEXT=$ac_cv_objext
2309 ac_objext=$OBJEXT
2310 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2311 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   cat >conftest.$ac_ext <<_ACEOF
2316 /* confdefs.h.  */
2317 _ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h.  */
2321
2322 int
2323 main ()
2324 {
2325 #ifndef __GNUC__
2326        choke me
2327 #endif
2328
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 rm -f conftest.$ac_objext
2334 if { (ac_try="$ac_compile"
2335 case "(($ac_try" in
2336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337   *) ac_try_echo=$ac_try;;
2338 esac
2339 eval "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
2351 else
2352   echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355         ac_compiler_gnu=no
2356 fi
2357
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2360
2361 fi
2362 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2363 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2364 GCC=`test $ac_compiler_gnu = yes && echo yes`
2365 ac_test_CFLAGS=${CFLAGS+set}
2366 ac_save_CFLAGS=$CFLAGS
2367 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2368 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_cc_g+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
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
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382
2383 int
2384 main ()
2385 {
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext
2392 if { (ac_try="$ac_compile"
2393 case "(($ac_try" in
2394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395   *) ac_try_echo=$ac_try;;
2396 esac
2397 eval "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
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413         CFLAGS=""
2414       cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420
2421 int
2422 main ()
2423 {
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (ac_try="$ac_compile"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "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   :
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed '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
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (ac_try="$ac_compile"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "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
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490
2491 fi
2492
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 fi
2495
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 fi
2498
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500    ac_c_werror_flag=$ac_save_c_werror_flag
2501 fi
2502 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2503 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2504 if test "$ac_test_CFLAGS" = set; then
2505   CFLAGS=$ac_save_CFLAGS
2506 elif 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
2512 else
2513   if test "$GCC" = yes; then
2514     CFLAGS="-O2"
2515   else
2516     CFLAGS=
2517   fi
2518 fi
2519 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2520 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_cc_c89+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   ac_cv_prog_cc_c89=no
2525 ac_save_CC=$CC
2526 cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>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.  */
2537 struct buf { int x; };
2538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2539 static char *e (p, i)
2540      char **p;
2541      int i;
2542 {
2543   return p[i];
2544 }
2545 static 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.  */
2562 int 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'
2567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2568
2569 int test (int i, double x);
2570 struct s1 {int (*f) (int a);};
2571 struct s2 {int (*f) (double a);};
2572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2573 int argc;
2574 char **argv;
2575 int
2576 main ()
2577 {
2578 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2584         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2585 do
2586   CC="$ac_save_CC $ac_arg"
2587   rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2589 case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "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
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609
2610 fi
2611
2612 rm -f core conftest.err conftest.$ac_objext
2613   test "x$ac_cv_prog_cc_c89" != "xno" && break
2614 done
2615 rm -f conftest.$ac_ext
2616 CC=$ac_save_CC
2617
2618 fi
2619 # AC_CACHE_VAL
2620 case "x$ac_cv_prog_cc_c89" in
2621   x)
2622     { echo "$as_me:$LINENO: result: none needed" >&5
2623 echo "${ECHO_T}none needed" >&6; } ;;
2624   xno)
2625     { echo "$as_me:$LINENO: result: unsupported" >&5
2626 echo "${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
2630 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2631 esac
2632
2633
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_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.
2643 set dummy dnssec-signzone; ac_word=$2
2644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2646 if test "${ac_cv_path_SIGNZONE_PROG+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
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
2655 for as_dir in $PATH
2656 do
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
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669   ;;
2670 esac
2671 fi
2672 SIGNZONE_PROG=$ac_cv_path_SIGNZONE_PROG
2673 if test -n "$SIGNZONE_PROG"; then
2674   { echo "$as_me:$LINENO: result: $SIGNZONE_PROG" >&5
2675 echo "${ECHO_T}$SIGNZONE_PROG" >&6; }
2676 else
2677   { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2679 fi
2680
2681
2682 if 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
2684 echo "$as_me: WARNING: *** 'BIND dnssec-signzone' missing, use default BIND_UTIL_PATH and BIND_VERSION setting out of config_zkt.h ***" >&2;}
2685 else
2686         bind_util_path=`dirname "$SIGNZONE_PROG"`
2687         # define BIND_UTIL_PATH in config.h.in
2688
2689 cat >>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
2696 cat >>confdefs.h <<_ACEOF
2697 #define BIND_VERSION $bind_version
2698 _ACEOF
2699
2700 fi
2701
2702
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2709 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2710 # On Suns, sometimes $CPP names a directory.
2711 if test -n "$CPP" && test -d "$CPP"; then
2712   CPP=
2713 fi
2714 if test -z "$CPP"; then
2715   if test "${ac_cv_prog_CPP+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
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
2722 for ac_c_preproc_warn_flag in '' yes
2723 do
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
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>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
2743 if { (ac_try="$ac_cpp conftest.$ac_ext"
2744 case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "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   :
2760 else
2761   echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764   # Broken: fails on valid input.
2765 continue
2766 fi
2767
2768 rm -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
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778 #include <ac_nonexistent.h>
2779 _ACEOF
2780 if { (ac_try="$ac_cpp conftest.$ac_ext"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "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.
2797 continue
2798 else
2799   echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802   # Passes both tests.
2803 ac_preproc_ok=:
2804 break
2805 fi
2806
2807 rm -f conftest.err conftest.$ac_ext
2808
2809 done
2810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2811 rm -f conftest.err conftest.$ac_ext
2812 if $ac_preproc_ok; then
2813   break
2814 fi
2815
2816     done
2817     ac_cv_prog_CPP=$CPP
2818
2819 fi
2820   CPP=$ac_cv_prog_CPP
2821 else
2822   ac_cv_prog_CPP=$CPP
2823 fi
2824 { echo "$as_me:$LINENO: result: $CPP" >&5
2825 echo "${ECHO_T}$CPP" >&6; }
2826 ac_preproc_ok=false
2827 for ac_c_preproc_warn_flag in '' yes
2828 do
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
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>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
2848 if { (ac_try="$ac_cpp conftest.$ac_ext"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "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   :
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869   # Broken: fails on valid input.
2870 continue
2871 fi
2872
2873 rm -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
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h.  */
2883 #include <ac_nonexistent.h>
2884 _ACEOF
2885 if { (ac_try="$ac_cpp conftest.$ac_ext"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "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.
2902 continue
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907   # Passes both tests.
2908 ac_preproc_ok=:
2909 break
2910 fi
2911
2912 rm -f conftest.err conftest.$ac_ext
2913
2914 done
2915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2916 rm -f conftest.err conftest.$ac_ext
2917 if $ac_preproc_ok; then
2918   :
2919 else
2920   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2923 See \`config.log' for more details." >&2;}
2924    { (exit 1); exit 1; }; }
2925 fi
2926
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932
2933
2934 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2935 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2936 if test "${ac_cv_path_GREP+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   # Extract the first word of "grep ggrep" to use in msg output
2940 if test -z "$GREP"; then
2941 set dummy grep ggrep; ac_prog_name=$2
2942 if test "${ac_cv_path_GREP+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   ac_path_GREP_found=false
2946 # Loop through the user's path and test for each of PROGNAME-LIST
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2949 do
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
2958 case `"$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;;
2982 esac
2983
2984
2985     $ac_path_GREP_found && break 3
2986   done
2987 done
2988
2989 done
2990 IFS=$as_save_IFS
2991
2992
2993 fi
2994
2995 GREP="$ac_cv_path_GREP"
2996 if 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
2998 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2999    { (exit 1); exit 1; }; }
3000 fi
3001
3002 else
3003   ac_cv_path_GREP=$GREP
3004 fi
3005
3006
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3009 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3010  GREP="$ac_cv_path_GREP"
3011
3012
3013 { echo "$as_me:$LINENO: checking for egrep" >&5
3014 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3015 if test "${ac_cv_path_EGREP+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
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
3022 if test -z "$EGREP"; then
3023 set dummy egrep; ac_prog_name=$2
3024 if test "${ac_cv_path_EGREP+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   ac_path_EGREP_found=false
3028 # Loop through the user's path and test for each of PROGNAME-LIST
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3031 do
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
3040 case `"$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;;
3064 esac
3065
3066
3067     $ac_path_EGREP_found && break 3
3068   done
3069 done
3070
3071 done
3072 IFS=$as_save_IFS
3073
3074
3075 fi
3076
3077 EGREP="$ac_cv_path_EGREP"
3078 if 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
3080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081    { (exit 1); exit 1; }; }
3082 fi
3083
3084 else
3085   ac_cv_path_EGREP=$EGREP
3086 fi
3087
3088
3089    fi
3090 fi
3091 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3092 echo "${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
3097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3098 if test "${ac_cv_header_stdc+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>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
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "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
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142         ac_cv_header_stdc=no
3143 fi
3144
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146
3147 if 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
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155 #include <string.h>
3156
3157 _ACEOF
3158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3159   $EGREP "memchr" >/dev/null 2>&1; then
3160   :
3161 else
3162   ac_cv_header_stdc=no
3163 fi
3164 rm -f conftest*
3165
3166 fi
3167
3168 if 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
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176 #include <stdlib.h>
3177
3178 _ACEOF
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180   $EGREP "free" >/dev/null 2>&1; then
3181   :
3182 else
3183   ac_cv_header_stdc=no
3184 fi
3185 rm -f conftest*
3186
3187 fi
3188
3189 if 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   :
3193 else
3194   cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h.  */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>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)))
3214 int
3215 main ()
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
3225 rm -f conftest$ac_exeext
3226 if { (ac_try="$ac_link"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "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;;
3239 esac
3240 eval "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   :
3246 else
3247   echo "$as_me: program exited with status $ac_status" >&5
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 ( exit $ac_status )
3252 ac_cv_header_stdc=no
3253 fi
3254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3255 fi
3256
3257
3258 fi
3259 fi
3260 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3261 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3262 if test $ac_cv_header_stdc = yes; then
3263
3264 cat >>confdefs.h <<\_ACEOF
3265 #define STDC_HEADERS 1
3266 _ACEOF
3267
3268 fi
3269
3270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3281                   inttypes.h stdint.h unistd.h
3282 do
3283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295 $ac_includes_default
3296
3297 #include <$ac_header>
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "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"
3317 else
3318   echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321         eval "$as_ac_Header=no"
3322 fi
3323
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 fi
3326 ac_res=`eval echo '${'$as_ac_Header'}'`
3327                { echo "$as_me:$LINENO: result: $ac_res" >&5
3328 echo "${ECHO_T}$ac_res" >&6; }
3329 if 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
3334 fi
3335
3336 done
3337
3338
3339 { echo "$as_me:$LINENO: checking for uint" >&5
3340 echo $ECHO_N "checking for uint... $ECHO_C" >&6; }
3341 if test "${ac_cv_type_uint+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350 $ac_includes_default
3351 typedef uint ac__type_new_;
3352 int
3353 main ()
3354 {
3355 if ((ac__type_new_ *) 0)
3356   return 0;
3357 if (sizeof (ac__type_new_))
3358   return 0;
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (ac_try="$ac_compile"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "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
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385         ac_cv_type_uint=no
3386 fi
3387
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390 { echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
3391 echo "${ECHO_T}$ac_cv_type_uint" >&6; }
3392 if test $ac_cv_type_uint = yes; then
3393   :
3394 else
3395
3396 cat >>confdefs.h <<_ACEOF
3397 #define uint unsigned int
3398 _ACEOF
3399
3400 fi
3401
3402 { echo "$as_me:$LINENO: checking for ulong" >&5
3403 echo $ECHO_N "checking for ulong... $ECHO_C" >&6; }
3404 if test "${ac_cv_type_ulong+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 $ac_includes_default
3414 typedef ulong ac__type_new_;
3415 int
3416 main ()
3417 {
3418 if ((ac__type_new_ *) 0)
3419   return 0;
3420 if (sizeof (ac__type_new_))
3421   return 0;
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "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
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448         ac_cv_type_ulong=no
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 fi
3453 { echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
3454 echo "${ECHO_T}$ac_cv_type_ulong" >&6; }
3455 if test $ac_cv_type_ulong = yes; then
3456   :
3457 else
3458
3459 cat >>confdefs.h <<_ACEOF
3460 #define ulong unsigned long
3461 _ACEOF
3462
3463 fi
3464
3465 { echo "$as_me:$LINENO: checking for ushort" >&5
3466 echo $ECHO_N "checking for ushort... $ECHO_C" >&6; }
3467 if test "${ac_cv_type_ushort+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h.  */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h.  */
3476 $ac_includes_default
3477 typedef ushort ac__type_new_;
3478 int
3479 main ()
3480 {
3481 if ((ac__type_new_ *) 0)
3482   return 0;
3483 if (sizeof (ac__type_new_))
3484   return 0;
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "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
3507 else
3508   echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511         ac_cv_type_ushort=no
3512 fi
3513
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 fi
3516 { echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
3517 echo "${ECHO_T}$ac_cv_type_ushort" >&6; }
3518 if test $ac_cv_type_ushort = yes; then
3519   :
3520 else
3521
3522 cat >>confdefs.h <<_ACEOF
3523 #define ushort unsigned short
3524 _ACEOF
3525
3526 fi
3527
3528 { echo "$as_me:$LINENO: checking for uchar" >&5
3529 echo $ECHO_N "checking for uchar... $ECHO_C" >&6; }
3530 if test "${ac_cv_type_uchar+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 $ac_includes_default
3540 typedef uchar ac__type_new_;
3541 int
3542 main ()
3543 {
3544 if ((ac__type_new_ *) 0)
3545   return 0;
3546 if (sizeof (ac__type_new_))
3547   return 0;
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 rm -f conftest.$ac_objext
3553 if { (ac_try="$ac_compile"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "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
3570 else
3571   echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574         ac_cv_type_uchar=no
3575 fi
3576
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 fi
3579 { echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
3580 echo "${ECHO_T}$ac_cv_type_uchar" >&6; }
3581 if test $ac_cv_type_uchar = yes; then
3582   :
3583 else
3584
3585 cat >>confdefs.h <<_ACEOF
3586 #define uchar unsigned char
3587 _ACEOF
3588
3589 fi
3590
3591
3592 ### define configure arguments
3593 # Check whether --enable-color_mode was given.
3594 if test "${enable_color_mode+set}" = set; then
3595   enableval=$enable_color_mode;
3596 fi
3597
3598 color_mode=1
3599 if test "$enable_color_mode" = "no"; then
3600   color_mode=0
3601 fi
3602
3603
3604
3605 # Check whether --with-curses was given.
3606 if test "${with_curses+set}" = set; then
3607   withval=$with_curses;
3608 fi
3609
3610
3611 if test "x$with_curses" != "xno"; then
3612
3613 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
3614 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
3615 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618   ac_check_lib_save_LIBS=$LIBS
3619 LIBS="-lncurses  $LIBS"
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>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
3631 extern "C"
3632 #endif
3633 char tgetent ();
3634 int
3635 main ()
3636 {
3637 return tgetent ();
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 rm -f conftest.$ac_objext conftest$ac_exeext
3643 if { (ac_try="$ac_link"
3644 case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval "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
3661 else
3662   echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3664
3665         ac_cv_lib_ncurses_tgetent=no
3666 fi
3667
3668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3669       conftest$ac_exeext conftest.$ac_ext
3670 LIBS=$ac_check_lib_save_LIBS
3671 fi
3672 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
3673 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
3674 if 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
3681 fi
3682
3683 else
3684   HAVE_LIB_NCURSES=0; color_mode=0
3685 fi
3686
3687
3688
3689 cat >>confdefs.h <<_ACEOF
3690 #define COLOR_MODE $color_mode
3691 _ACEOF
3692
3693
3694
3695 # Check whether --enable-printtimezone was given.
3696 if test "${enable_printtimezone+set}" = set; then
3697   enableval=$enable_printtimezone;
3698 fi
3699
3700 printtimezone=0
3701 if test "$enable_printtimezone" = "yes"; then
3702   printtimezone=1
3703 fi
3704
3705
3706 cat >>confdefs.h <<_ACEOF
3707 #define PRINT_TIMEZONE $printtimezone
3708 _ACEOF
3709
3710
3711 # Check whether --enable-printyear was given.
3712 if test "${enable_printyear+set}" = set; then
3713   enableval=$enable_printyear;
3714 fi
3715
3716 test "$printyear" = yes && printyear=1
3717 printyear=0
3718 if test "$enable_printyear" = "yes"; then
3719   printyear=1
3720 fi
3721
3722
3723 cat >>confdefs.h <<_ACEOF
3724 #define PRINT_AGE_WITH_YEAR $printyear
3725 _ACEOF
3726
3727
3728 # Check whether --enable-logprogname was given.
3729 if test "${enable_logprogname+set}" = set; then
3730   enableval=$enable_logprogname;
3731 fi
3732
3733 logprogname=0
3734 if test "$enable_logprogname" = "yes"; then
3735   logprogname=1
3736 fi
3737
3738
3739 cat >>confdefs.h <<_ACEOF
3740 #define LOG_WITH_PROGNAME $logprogname
3741 _ACEOF
3742
3743
3744 # Check whether --enable-logtimestamp was given.
3745 if test "${enable_logtimestamp+set}" = set; then
3746   enableval=$enable_logtimestamp;
3747 fi
3748
3749 logtimestamp=1
3750 if test "$enable_logtimestamp" = "no"; then
3751   logtimestamp=0
3752 fi
3753
3754
3755 cat >>confdefs.h <<_ACEOF
3756 #define LOG_WITH_TIMESTAMP $logtimestamp
3757 _ACEOF
3758
3759
3760 # Check whether --enable-loglevel was given.
3761 if test "${enable_loglevel+set}" = set; then
3762   enableval=$enable_loglevel;
3763 fi
3764
3765 loglevel=1
3766 if test "$enable_loglevel" = "no"; then
3767   loglevel=0
3768 fi
3769
3770
3771 cat >>confdefs.h <<_ACEOF
3772 #define LOG_WITH_LEVEL $loglevel
3773 _ACEOF
3774
3775
3776 # Check whether --enable-ttl_in_keyfile was given.
3777 if test "${enable_ttl_in_keyfile+set}" = set; then
3778   enableval=$enable_ttl_in_keyfile;
3779 fi
3780
3781 ttl_in_keyfile=1
3782 if test "$enable_ttl_in_keyfile" = "no"; then
3783   ttl_in_keyfile=0
3784 fi
3785
3786
3787 cat >>confdefs.h <<_ACEOF
3788 #define TTL_IN_KEYFILE_ALLOWED $ttl_in_keyfile
3789 _ACEOF
3790
3791
3792 configpath="/var/named"
3793 # Check whether --enable-configpath was given.
3794 if test "${enable_configpath+set}" = set; then
3795   enableval=$enable_configpath; configpath=$enableval
3796 fi
3797
3798 case "$configpath" in
3799 yes)
3800         configpath="/var/named"
3801         ;;
3802 no)
3803         configpath=""
3804         ;;
3805 *)
3806         ;;
3807 esac
3808
3809 cat >>confdefs.h <<_ACEOF
3810 #define CONFIG_PATH "$configpath/"
3811 _ACEOF
3812
3813
3814 usetree=1
3815 t=""
3816 # Check whether --enable-tree was given.
3817 if test "${enable_tree+set}" = set; then
3818   enableval=$enable_tree; usetree=$enableval
3819 fi
3820
3821 if test "$usetree" = no
3822 then
3823         usetree=0
3824         t="S"
3825 fi
3826
3827 cat >>confdefs.h <<_ACEOF
3828 #define USE_TREE $usetree
3829 _ACEOF
3830
3831
3832
3833 cat >>confdefs.h <<_ACEOF
3834 #define ZKT_VERSION "$t$PACKAGE_VERSION"
3835 _ACEOF
3836
3837
3838 cat >>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
3851 ac_header_dirent=no
3852 for 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
3855 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h.  */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h.  */
3865 #include <sys/types.h>
3866 #include <$ac_hdr>
3867
3868 int
3869 main ()
3870 {
3871 if ((DIR *) 0)
3872 return 0;
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3879 case "(($ac_try" in
3880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881   *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "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"
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899         eval "$as_ac_Header=no"
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 fi
3904 ac_res=`eval echo '${'$as_ac_Header'}'`
3905                { echo "$as_me:$LINENO: result: $ac_res" >&5
3906 echo "${ECHO_T}$ac_res" >&6; }
3907 if 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
3912 ac_header_dirent=$ac_hdr; break
3913 fi
3914
3915 done
3916 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3917 if test $ac_header_dirent = dirent.h; then
3918   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3919 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3920 if test "${ac_cv_search_opendir+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   ac_func_search_save_LIBS=$LIBS
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>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
3935 extern "C"
3936 #endif
3937 char opendir ();
3938 int
3939 main ()
3940 {
3941 return opendir ();
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 for 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
3954 if { (ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "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
3972 else
3973   echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976
3977 fi
3978
3979 rm -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
3983 fi
3984 done
3985 if test "${ac_cv_search_opendir+set}" = set; then
3986   :
3987 else
3988   ac_cv_search_opendir=no
3989 fi
3990 rm conftest.$ac_ext
3991 LIBS=$ac_func_search_save_LIBS
3992 fi
3993 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3994 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3995 ac_res=$ac_cv_search_opendir
3996 if test "$ac_res" != no; then
3997   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3998
3999 fi
4000
4001 else
4002   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4004 if test "${ac_cv_search_opendir+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   ac_func_search_save_LIBS=$LIBS
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>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
4019 extern "C"
4020 #endif
4021 char opendir ();
4022 int
4023 main ()
4024 {
4025 return opendir ();
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 for 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
4038 if { (ac_try="$ac_link"
4039 case "(($ac_try" in
4040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041   *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "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
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060
4061 fi
4062
4063 rm -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
4067 fi
4068 done
4069 if test "${ac_cv_search_opendir+set}" = set; then
4070   :
4071 else
4072   ac_cv_search_opendir=no
4073 fi
4074 rm conftest.$ac_ext
4075 LIBS=$ac_func_search_save_LIBS
4076 fi
4077 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4078 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4079 ac_res=$ac_cv_search_opendir
4080 if test "$ac_res" != no; then
4081   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4082
4083 fi
4084
4085 fi
4086
4087 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4088 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4089 if test "${ac_cv_header_stdc+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>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
4103 int
4104 main ()
4105 {
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "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
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_cv_header_stdc=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138 if 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
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <string.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "memchr" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if 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
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "free" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if 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   :
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>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)))
4205 int
4206 main ()
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
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "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;;
4230 esac
4231 eval "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   :
4237 else
4238   echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ( exit $ac_status )
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 fi
4247
4248
4249 fi
4250 fi
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4254
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4257 _ACEOF
4258
4259 fi
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275 for 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
4276 do
4277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4279   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 fi
4284 ac_res=`eval echo '${'$as_ac_Header'}'`
4285                { echo "$as_me:$LINENO: result: $ac_res" >&5
4286 echo "${ECHO_T}$ac_res" >&6; }
4287 else
4288   # Is the header compilable?
4289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 $ac_includes_default
4298 #include <$ac_header>
4299 _ACEOF
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4302 case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "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
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322         ac_header_compiler=no
4323 fi
4324
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4327 echo "${ECHO_T}$ac_header_compiler" >&6; }
4328
4329 # Is the header present?
4330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 #include <$ac_header>
4339 _ACEOF
4340 if { (ac_try="$ac_cpp conftest.$ac_ext"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "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
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361   ac_header_preproc=no
4362 fi
4363
4364 rm -f conftest.err conftest.$ac_ext
4365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4366 echo "${ECHO_T}$ac_header_preproc" >&6; }
4367
4368 # So?  What about this header?
4369 case $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
4372 echo "$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
4374 echo "$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
4379 echo "$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
4381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4383 echo "$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
4385 echo "$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
4387 echo "$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
4389 echo "$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     ;;
4397 esac
4398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   eval "$as_ac_Header=\$ac_header_preproc"
4404 fi
4405 ac_res=`eval echo '${'$as_ac_Header'}'`
4406                { echo "$as_me:$LINENO: result: $ac_res" >&5
4407 echo "${ECHO_T}$ac_res" >&6; }
4408
4409 fi
4410 if 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
4415 fi
4416
4417 done
4418
4419
4420
4421 ### Checks for typedefs, structures, and compiler characteristics.
4422 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4423 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4424 if test "${ac_cv_c_const+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h.  */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h.  */
4433
4434 int
4435 main ()
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
4491 rm -f conftest.$ac_objext
4492 if { (ac_try="$ac_compile"
4493 case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "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
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513         ac_cv_c_const=no
4514 fi
4515
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 fi
4518 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4519 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4520 if test $ac_cv_c_const = no; then
4521
4522 cat >>confdefs.h <<\_ACEOF
4523 #define const
4524 _ACEOF
4525
4526 fi
4527
4528 { echo "$as_me:$LINENO: checking for size_t" >&5
4529 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4530 if test "${ac_cv_type_size_t+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h.  */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h.  */
4539 $ac_includes_default
4540 typedef size_t ac__type_new_;
4541 int
4542 main ()
4543 {
4544 if ((ac__type_new_ *) 0)
4545   return 0;
4546 if (sizeof (ac__type_new_))
4547   return 0;
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4554 case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "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
4570 else
4571   echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574         ac_cv_type_size_t=no
4575 fi
4576
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4580 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4581 if test $ac_cv_type_size_t = yes; then
4582   :
4583 else
4584
4585 cat >>confdefs.h <<_ACEOF
4586 #define size_t unsigned int
4587 _ACEOF
4588
4589 fi
4590
4591 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4592 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4593 if test "${ac_cv_header_time+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 #include <sys/types.h>
4603 #include <sys/time.h>
4604 #include <time.h>
4605
4606 int
4607 main ()
4608 {
4609 if ((struct tm *) 0)
4610 return 0;
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (ac_try="$ac_compile"
4617 case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "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
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637         ac_cv_header_time=no
4638 fi
4639
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 fi
4642 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4643 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4644 if test $ac_cv_header_time = yes; then
4645
4646 cat >>confdefs.h <<\_ACEOF
4647 #define TIME_WITH_SYS_TIME 1
4648 _ACEOF
4649
4650 fi
4651
4652 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4653 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4654 if test "${ac_cv_struct_tm+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 #include <sys/types.h>
4664 #include <time.h>
4665
4666 int
4667 main ()
4668 {
4669 struct tm tm;
4670                                      int *p = &tm.tm_sec;
4671                                      return !p;
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4678 case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "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
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698         ac_cv_struct_tm=sys/time.h
4699 fi
4700
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4704 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4705 if test $ac_cv_struct_tm = sys/time.h; then
4706
4707 cat >>confdefs.h <<\_ACEOF
4708 #define TM_IN_SYS_TIME 1
4709 _ACEOF
4710
4711 fi
4712
4713 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4714 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
4715 if test "${ac_cv_type_uid_t+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 #include <sys/types.h>
4725
4726 _ACEOF
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728   $EGREP "uid_t" >/dev/null 2>&1; then
4729   ac_cv_type_uid_t=yes
4730 else
4731   ac_cv_type_uid_t=no
4732 fi
4733 rm -f conftest*
4734
4735 fi
4736 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4737 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
4738 if test $ac_cv_type_uid_t = no; then
4739
4740 cat >>confdefs.h <<\_ACEOF
4741 #define uid_t int
4742 _ACEOF
4743
4744
4745 cat >>confdefs.h <<\_ACEOF
4746 #define gid_t int
4747 _ACEOF
4748
4749 fi
4750
4751
4752
4753 ### Checks for library functions.
4754 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4755 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
4756 if test "${ac_cv_func_closedir_void+set}" = set; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   if test "$cross_compiling" = yes; then
4760   ac_cv_func_closedir_void=yes
4761 else
4762   cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 $ac_includes_default
4769 #include <$ac_header_dirent>
4770 #ifndef __cplusplus
4771 int closedir ();
4772 #endif
4773
4774 int
4775 main ()
4776 {
4777 return closedir (opendir (".")) != 0;
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest$ac_exeext
4783 if { (ac_try="$ac_link"
4784 case "(($ac_try" in
4785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786   *) ac_try_echo=$ac_try;;
4787 esac
4788 eval "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;;
4796 esac
4797 eval "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
4803 else
4804   echo "$as_me: program exited with status $ac_status" >&5
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ( exit $ac_status )
4809 ac_cv_func_closedir_void=yes
4810 fi
4811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4812 fi
4813
4814
4815 fi
4816 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4817 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
4818 if test $ac_cv_func_closedir_void = yes; then
4819
4820 cat >>confdefs.h <<\_ACEOF
4821 #define CLOSEDIR_VOID 1
4822 _ACEOF
4823
4824 fi
4825
4826 { echo "$as_me:$LINENO: checking for error_at_line" >&5
4827 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
4828 if test "${ac_cv_lib_error_at_line+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #include <error.h>
4838 int
4839 main ()
4840 {
4841 error_at_line (0, 0, "", 0, "an error occurred");
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (ac_try="$ac_link"
4848 case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "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
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869         ac_cv_lib_error_at_line=no
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4873       conftest$ac_exeext conftest.$ac_ext
4874 fi
4875 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4876 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
4877 if test $ac_cv_lib_error_at_line = no; then
4878   case " $LIBOBJS " in
4879   *" error.$ac_objext "* ) ;;
4880   *) LIBOBJS="$LIBOBJS error.$ac_objext"
4881  ;;
4882 esac
4883
4884 fi
4885
4886
4887
4888
4889
4890 for ac_header in $ac_header_list
4891 do
4892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4894   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 fi
4899 ac_res=`eval echo '${'$as_ac_Header'}'`
4900                { echo "$as_me:$LINENO: result: $ac_res" >&5
4901 echo "${ECHO_T}$ac_res" >&6; }
4902 else
4903   # Is the header compilable?
4904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 $ac_includes_default
4913 #include <$ac_header>
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (ac_try="$ac_compile"
4917 case "(($ac_try" in
4918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919   *) ac_try_echo=$ac_try;;
4920 esac
4921 eval "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
4933 else
4934   echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937         ac_header_compiler=no
4938 fi
4939
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4942 echo "${ECHO_T}$ac_header_compiler" >&6; }
4943
4944 # Is the header present?
4945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 #include <$ac_header>
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958   *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "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
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976   ac_header_preproc=no
4977 fi
4978
4979 rm -f conftest.err conftest.$ac_ext
4980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4981 echo "${ECHO_T}$ac_header_preproc" >&6; }
4982
4983 # So?  What about this header?
4984 case $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
4987 echo "$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
4989 echo "$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
4994 echo "$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
4996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4998 echo "$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
5000 echo "$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
5002 echo "$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
5004 echo "$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     ;;
5012 esac
5013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   eval "$as_ac_Header=\$ac_header_preproc"
5019 fi
5020 ac_res=`eval echo '${'$as_ac_Header'}'`
5021                { echo "$as_me:$LINENO: result: $ac_res" >&5
5022 echo "${ECHO_T}$ac_res" >&6; }
5023
5024 fi
5025 if 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
5030 fi
5031
5032 done
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 for ac_func in $ac_func_list
5043 do
5044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>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
5077 extern "C"
5078 #endif
5079 char $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
5084 choke me
5085 #endif
5086
5087 int
5088 main ()
5089 {
5090 return $ac_func ();
5091   ;
5092   return 0;
5093 }
5094 _ACEOF
5095 rm -f conftest.$ac_objext conftest$ac_exeext
5096 if { (ac_try="$ac_link"
5097 case "(($ac_try" in
5098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099   *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "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"
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118         eval "$as_ac_var=no"
5119 fi
5120
5121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5122       conftest$ac_exeext conftest.$ac_ext
5123 fi
5124 ac_res=`eval echo '${'$as_ac_var'}'`
5125                { echo "$as_me:$LINENO: result: $ac_res" >&5
5126 echo "${ECHO_T}$ac_res" >&6; }
5127 if 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
5132 fi
5133 done
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
5152 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
5153 if test "${ac_cv_func_working_mktime+set}" = set; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   if test "$cross_compiling" = yes; then
5157   ac_cv_func_working_mktime=no
5158 else
5159   cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h.  */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>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
5190 static time_t time_t_max;
5191 static time_t time_t_min;
5192
5193 /* Values we'll use to set the TZ environment variable.  */
5194 static 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.  */
5202 static int
5203 spring_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
5224 static int
5225 mktime_test1 (now)
5226      time_t now;
5227 {
5228   struct tm *lt;
5229   return ! (lt = localtime (&now)) || mktime (lt) == now;
5230 }
5231
5232 static int
5233 mktime_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
5241 static int
5242 irix_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
5257 static int
5258 bigtime_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
5284 static int
5285 year_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
5314 int
5315 main ()
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
5354 rm -f conftest$ac_exeext
5355 if { (ac_try="$ac_link"
5356 case "(($ac_try" in
5357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358   *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "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;;
5368 esac
5369 eval "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
5375 else
5376   echo "$as_me: program exited with status $ac_status" >&5
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 ( exit $ac_status )
5381 ac_cv_func_working_mktime=no
5382 fi
5383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5384 fi
5385
5386
5387 fi
5388 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
5389 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
5390 if test $ac_cv_func_working_mktime = no; then
5391   case " $LIBOBJS " in
5392   *" mktime.$ac_objext "* ) ;;
5393   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
5394  ;;
5395 esac
5396
5397 fi
5398
5399 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5400 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
5401 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   rm -f conftest.sym conftest.file
5405 echo >conftest.file
5406 if 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
5409 else
5410   cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416 $ac_includes_default
5417 int
5418 main ()
5419 {
5420 struct 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
5429 rm -f conftest$ac_exeext
5430 if { (ac_try="$ac_link"
5431 case "(($ac_try" in
5432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433   *) ac_try_echo=$ac_try;;
5434 esac
5435 eval "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;;
5443 esac
5444 eval "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
5450 else
5451   echo "$as_me: program exited with status $ac_status" >&5
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 ( exit $ac_status )
5456 ac_cv_func_lstat_dereferences_slashed_symlink=no
5457 fi
5458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5459 fi
5460
5461
5462 else
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
5466 fi
5467 rm -f conftest.sym conftest.file
5468
5469 fi
5470 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5471 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5472
5473 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5474
5475 cat >>confdefs.h <<_ACEOF
5476 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5477 _ACEOF
5478
5479
5480 if 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  ;;
5485 esac
5486
5487 fi
5488
5489 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5490 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
5491 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   if test "$cross_compiling" = yes; then
5495   ac_cv_func_stat_empty_string_bug=yes
5496 else
5497   cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503 $ac_includes_default
5504 int
5505 main ()
5506 {
5507 struct stat sbuf;
5508   return stat ("", &sbuf) == 0;
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest$ac_exeext
5514 if { (ac_try="$ac_link"
5515 case "(($ac_try" in
5516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517   *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "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;;
5527 esac
5528 eval "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
5534 else
5535   echo "$as_me: program exited with status $ac_status" >&5
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 ( exit $ac_status )
5540 ac_cv_func_stat_empty_string_bug=yes
5541 fi
5542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5543 fi
5544
5545
5546 fi
5547 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5548 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
5549 if 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  ;;
5554 esac
5555
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_STAT_EMPTY_STRING_BUG 1
5559 _ACEOF
5560
5561 fi
5562
5563
5564 for ac_func in strftime
5565 do
5566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>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
5599 extern "C"
5600 #endif
5601 char $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
5606 choke me
5607 #endif
5608
5609 int
5610 main ()
5611 {
5612 return $ac_func ();
5613   ;
5614   return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (ac_try="$ac_link"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "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"
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640         eval "$as_ac_var=no"
5641 fi
5642
5643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5644       conftest$ac_exeext conftest.$ac_ext
5645 fi
5646 ac_res=`eval echo '${'$as_ac_var'}'`
5647                { echo "$as_me:$LINENO: result: $ac_res" >&5
5648 echo "${ECHO_T}$ac_res" >&6; }
5649 if 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
5654 else
5655   # strftime is in -lintl on SCO UNIX.
5656 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5657 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
5658 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   ac_check_lib_save_LIBS=$LIBS
5662 LIBS="-lintl  $LIBS"
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h.  */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>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
5674 extern "C"
5675 #endif
5676 char strftime ();
5677 int
5678 main ()
5679 {
5680 return strftime ();
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (ac_try="$ac_link"
5687 case "(($ac_try" in
5688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689   *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "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
5704 else
5705   echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708         ac_cv_lib_intl_strftime=no
5709 fi
5710
5711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5712       conftest$ac_exeext conftest.$ac_ext
5713 LIBS=$ac_check_lib_save_LIBS
5714 fi
5715 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5716 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
5717 if test $ac_cv_lib_intl_strftime = yes; then
5718   cat >>confdefs.h <<\_ACEOF
5719 #define HAVE_STRFTIME 1
5720 _ACEOF
5721
5722 LIBS="-lintl $LIBS"
5723 fi
5724
5725 fi
5726 done
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
5737 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
5738 if test "${ac_cv_func_utime_null+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   rm -f conftest.data; >conftest.data
5742 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
5743 if test "$cross_compiling" = yes; then
5744   ac_cv_func_utime_null=no
5745 else
5746   cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 $ac_includes_default
5753                #ifdef HAVE_UTIME_H
5754                # include <utime.h>
5755                #endif
5756 int
5757 main ()
5758 {
5759 struct 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
5769 rm -f conftest$ac_exeext
5770 if { (ac_try="$ac_link"
5771 case "(($ac_try" in
5772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773   *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "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;;
5783 esac
5784 eval "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
5790 else
5791   echo "$as_me: program exited with status $ac_status" >&5
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795 ( exit $ac_status )
5796 ac_cv_func_utime_null=no
5797 fi
5798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5799 fi
5800
5801
5802 fi
5803 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
5804 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
5805 if test $ac_cv_func_utime_null = yes; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_UTIME_NULL 1
5809 _ACEOF
5810
5811 fi
5812 rm -f conftest.data
5813
5814
5815 for ac_func in vprintf
5816 do
5817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>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
5850 extern "C"
5851 #endif
5852 char $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
5857 choke me
5858 #endif
5859
5860 int
5861 main ()
5862 {
5863 return $ac_func ();
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (ac_try="$ac_link"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "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"
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891         eval "$as_ac_var=no"
5892 fi
5893
5894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5895       conftest$ac_exeext conftest.$ac_ext
5896 fi
5897 ac_res=`eval echo '${'$as_ac_var'}'`
5898                { echo "$as_me:$LINENO: result: $ac_res" >&5
5899 echo "${ECHO_T}$ac_res" >&6; }
5900 if 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
5906 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
5907 if test "${ac_cv_func__doprnt+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>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
5937 extern "C"
5938 #endif
5939 char _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
5944 choke me
5945 #endif
5946
5947 int
5948 main ()
5949 {
5950 return _doprnt ();
5951   ;
5952   return 0;
5953 }
5954 _ACEOF
5955 rm -f conftest.$ac_objext conftest$ac_exeext
5956 if { (ac_try="$ac_link"
5957 case "(($ac_try" in
5958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959   *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "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
5974 else
5975   echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978         ac_cv_func__doprnt=no
5979 fi
5980
5981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5982       conftest$ac_exeext conftest.$ac_ext
5983 fi
5984 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5985 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
5986 if test $ac_cv_func__doprnt = yes; then
5987
5988 cat >>confdefs.h <<\_ACEOF
5989 #define HAVE_DOPRNT 1
5990 _ACEOF
5991
5992 fi
5993
5994 fi
5995 done
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
6015 for ac_func in getopt_long gettimeofday memset putenv socket strcasecmp strchr strdup strerror strncasecmp strrchr tzset utime getuid timegm
6016 do
6017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6021   echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023   cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>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
6050 extern "C"
6051 #endif
6052 char $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
6057 choke me
6058 #endif
6059
6060 int
6061 main ()
6062 {
6063 return $ac_func ();
6064   ;
6065   return 0;
6066 }
6067 _ACEOF
6068 rm -f conftest.$ac_objext conftest$ac_exeext
6069 if { (ac_try="$ac_link"
6070 case "(($ac_try" in
6071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072   *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "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"
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091         eval "$as_ac_var=no"
6092 fi
6093
6094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6095       conftest$ac_exeext conftest.$ac_ext
6096 fi
6097 ac_res=`eval echo '${'$as_ac_var'}'`
6098                { echo "$as_me:$LINENO: result: $ac_res" >&5
6099 echo "${ECHO_T}$ac_res" >&6; }
6100 if 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
6105 fi
6106 done
6107
6108
6109
6110 ac_config_files="$ac_config_files Makefile"
6111
6112 cat >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
6140 echo "$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
6173 if 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
6177 echo "$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
6181 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6182   fi
6183 fi
6184 rm -f confcache
6185
6186 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6187 # Let make expand exec_prefix.
6188 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6189
6190 DEFS=-DHAVE_CONFIG_H
6191
6192 ac_libobjs=
6193 ac_ltlibobjs=
6194 for 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'
6202 done
6203 LIBOBJS=$ac_libobjs
6204
6205 LTLIBOBJS=$ac_ltlibobjs
6206
6207
6208
6209 : ${CONFIG_STATUS=./config.status}
6210 ac_clean_files_save=$ac_clean_files
6211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6212 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6213 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6214 cat >$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
6221 debug=false
6222 ac_cs_recheck=false
6223 ac_cs_silent=false
6224 SHELL=\${CONFIG_SHELL-$SHELL}
6225 _ACEOF
6226
6227 cat >>$CONFIG_STATUS <<\_ACEOF
6228 ## --------------------- ##
6229 ## M4sh Initialization.  ##
6230 ## --------------------- ##
6231
6232 # Be more Bourne compatible
6233 DUALCASE=1; export DUALCASE # for MKS sh
6234 if 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
6241 else
6242   case `(set -o) 2>/dev/null` in
6243   *posix*) set -o posix ;;
6244 esac
6245
6246 fi
6247
6248
6249
6250
6251 # PATH needs CR
6252 # Avoid depending upon Character Ranges.
6253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6256 as_cr_digits='0123456789'
6257 as_cr_alnum=$as_cr_Letters$as_cr_digits
6258
6259 # The user is always right.
6260 if 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
6270 fi
6271
6272 # Support unset when possible.
6273 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6274   as_unset=unset
6275 else
6276   as_unset=false
6277 fi
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.)
6285 as_nl='
6286 '
6287 IFS=" ""        $as_nl"
6288
6289 # Find who we are.  Look in the path if we contain no directory separator.
6290 case $0 in
6291   *[\\/]* ) as_myself=$0 ;;
6292   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6298 done
6299 IFS=$as_save_IFS
6300
6301      ;;
6302 esac
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.
6305 if test "x$as_myself" = x; then
6306   as_myself=$0
6307 fi
6308 if 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; }
6311 fi
6312
6313 # Work around bugs in pre-3.0 UWIN ksh.
6314 for as_var in ENV MAIL MAILPATH
6315 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6316 done
6317 PS1='$ '
6318 PS2='> '
6319 PS4='+ '
6320
6321 # NLS nuisances.
6322 for 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
6326 do
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
6332 done
6333
6334 # Required to use basename.
6335 if expr a : '\(a\)' >/dev/null 2>&1 &&
6336    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6337   as_expr=expr
6338 else
6339   as_expr=false
6340 fi
6341
6342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6343   as_basename=basename
6344 else
6345   as_basename=false
6346 fi
6347
6348
6349 # Name of the executable.
6350 as_me=`$as_basename -- "$0" ||
6351 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6352          X"$0" : 'X\(//\)$' \| \
6353          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6354 echo 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
6417 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6418   as_dirname=dirname
6419 else
6420   as_dirname=false
6421 fi
6422
6423 ECHO_C= ECHO_N= ECHO_T=
6424 case `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';;
6432 esac
6433
6434 if expr a : '\(a\)' >/dev/null 2>&1 &&
6435    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6436   as_expr=expr
6437 else
6438   as_expr=false
6439 fi
6440
6441 rm -f conf$$ conf$$.exe conf$$.file
6442 if test -d conf$$.dir; then
6443   rm -f conf$$.dir/conf$$.file
6444 else
6445   rm -f conf$$.dir
6446   mkdir conf$$.dir
6447 fi
6448 echo >conf$$.file
6449 if 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'
6457 elif ln conf$$.file conf$$ 2>/dev/null; then
6458   as_ln_s=ln
6459 else
6460   as_ln_s='cp -p'
6461 fi
6462 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6463 rmdir conf$$.dir 2>/dev/null
6464
6465 if mkdir -p . 2>/dev/null; then
6466   as_mkdir_p=:
6467 else
6468   test -d ./-p && rmdir ./-p
6469   as_mkdir_p=false
6470 fi
6471
6472 if test -x / >/dev/null 2>&1; then
6473   as_test_x='test -x'
6474 else
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   '
6492 fi
6493 as_executable_p=$as_test_x
6494
6495 # Sed expression to map a string onto a valid CPP name.
6496 as_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.
6499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6500
6501
6502 exec 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.
6507 ac_log="
6508 This file was extended by ZKT $as_me 1.0, which was
6509 generated 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
6517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6518 "
6519
6520 _ACEOF
6521
6522 cat >>$CONFIG_STATUS <<_ACEOF
6523 # Files that config.status was made for.
6524 config_files="$ac_config_files"
6525 config_headers="$ac_config_headers"
6526
6527 _ACEOF
6528
6529 cat >>$CONFIG_STATUS <<\_ACEOF
6530 ac_cs_usage="\
6531 \`$as_me' instantiates files from templates according to the
6532 current configuration.
6533
6534 Usage: $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
6546 Configuration files:
6547 $config_files
6548
6549 Configuration headers:
6550 $config_headers
6551
6552 Report bugs to <bug-autoconf@gnu.org>."
6553
6554 _ACEOF
6555 cat >>$CONFIG_STATUS <<_ACEOF
6556 ac_cs_version="\\
6557 ZKT config.status 1.0
6558 configured by $0, generated by GNU Autoconf 2.61,
6559   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6560
6561 Copyright (C) 2006 Free Software Foundation, Inc.
6562 This config.status script is free software; the Free Software Foundation
6563 gives unlimited permission to copy, distribute and modify it."
6564
6565 ac_pwd='$ac_pwd'
6566 srcdir='$srcdir'
6567 _ACEOF
6568
6569 cat >>$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.
6572 ac_need_defaults=:
6573 while test $# != 0
6574 do
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
6607 Try \`$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
6617 Try \`$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
6625 done
6626
6627 ac_configure_extra_args=
6628
6629 if $ac_cs_silent; then
6630   exec 6>/dev/null
6631   ac_configure_extra_args="$ac_configure_extra_args --silent"
6632 fi
6633
6634 _ACEOF
6635 cat >>$CONFIG_STATUS <<_ACEOF
6636 if \$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
6641 fi
6642
6643 _ACEOF
6644 cat >>$CONFIG_STATUS <<\_ACEOF
6645 exec 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
6655 cat >>$CONFIG_STATUS <<_ACEOF
6656 _ACEOF
6657
6658 cat >>$CONFIG_STATUS <<\_ACEOF
6659
6660 # Handling of arguments.
6661 for ac_config_target in $ac_config_targets
6662 do
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
6668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6669    { (exit 1); exit 1; }; };;
6670   esac
6671 done
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.
6678 if $ac_need_defaults; then
6679   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6680   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6681 fi
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
6718 if test -n "$CONFIG_FILES"; then
6719
6720 _ACEOF
6721
6722
6723
6724 ac_delim='%!_!# '
6725 for ac_last_try in false false false false false :; do
6726   cat >conf$$subs.sed <<_ACEOF
6727 SHELL!$SHELL$ac_delim
6728 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6729 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6730 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6731 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6732 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6733 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6734 exec_prefix!$exec_prefix$ac_delim
6735 prefix!$prefix$ac_delim
6736 program_transform_name!$program_transform_name$ac_delim
6737 bindir!$bindir$ac_delim
6738 sbindir!$sbindir$ac_delim
6739 libexecdir!$libexecdir$ac_delim
6740 datarootdir!$datarootdir$ac_delim
6741 datadir!$datadir$ac_delim
6742 sysconfdir!$sysconfdir$ac_delim
6743 sharedstatedir!$sharedstatedir$ac_delim
6744 localstatedir!$localstatedir$ac_delim
6745 includedir!$includedir$ac_delim
6746 oldincludedir!$oldincludedir$ac_delim
6747 docdir!$docdir$ac_delim
6748 infodir!$infodir$ac_delim
6749 htmldir!$htmldir$ac_delim
6750 dvidir!$dvidir$ac_delim
6751 pdfdir!$pdfdir$ac_delim
6752 psdir!$psdir$ac_delim
6753 libdir!$libdir$ac_delim
6754 localedir!$localedir$ac_delim
6755 mandir!$mandir$ac_delim
6756 DEFS!$DEFS$ac_delim
6757 ECHO_C!$ECHO_C$ac_delim
6758 ECHO_N!$ECHO_N$ac_delim
6759 ECHO_T!$ECHO_T$ac_delim
6760 LIBS!$LIBS$ac_delim
6761 build_alias!$build_alias$ac_delim
6762 host_alias!$host_alias$ac_delim
6763 target_alias!$target_alias$ac_delim
6764 CC!$CC$ac_delim
6765 CFLAGS!$CFLAGS$ac_delim
6766 LDFLAGS!$LDFLAGS$ac_delim
6767 CPPFLAGS!$CPPFLAGS$ac_delim
6768 ac_ct_CC!$ac_ct_CC$ac_delim
6769 EXEEXT!$EXEEXT$ac_delim
6770 OBJEXT!$OBJEXT$ac_delim
6771 SIGNZONE_PROG!$SIGNZONE_PROG$ac_delim
6772 CPP!$CPP$ac_delim
6773 GREP!$GREP$ac_delim
6774 EGREP!$EGREP$ac_delim
6775 LIBOBJS!$LIBOBJS$ac_delim
6776 LTLIBOBJS!$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
6783 echo "$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
6788 done
6789
6790 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6791 if test -n "$ac_eof"; then
6792   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6793   ac_eof=`expr $ac_eof + 1`
6794 fi
6795
6796 cat >>$CONFIG_STATUS <<_ACEOF
6797 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6799 _ACEOF
6800 sed '
6801 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6802 s/^/s,@/; s/!/@,|#_!!_#|/
6803 :n
6804 t n
6805 s/'"$ac_delim"'$/,g/; t
6806 s/$/\\/; p
6807 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6808 ' >>$CONFIG_STATUS <conf$$subs.sed
6809 rm -f conf$$subs.sed
6810 cat >>$CONFIG_STATUS <<_ACEOF
6811 :end
6812 s/|#_!!_#|//g
6813 CEOF$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).
6821 if test "x$srcdir" = x.; then
6822   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6823 s/:*\$(srcdir):*/:/
6824 s/:*\${srcdir}:*/:/
6825 s/:*@srcdir@:*/:/
6826 s/^\([^=]*=[     ]*\):*/\1/
6827 s/:*$//
6828 s/^[^=]*=[       ]*$//
6829 }'
6830 fi
6831
6832 cat >>$CONFIG_STATUS <<\_ACEOF
6833 fi # test -n "$CONFIG_FILES"
6834
6835
6836 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
6837 do
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
6844 echo "$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
6874 echo "$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
6888 echo "$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 ||
6902 echo 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 ||
6937 echo 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
6959 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6960    { (exit 1); exit 1; }; }; }
6961   ac_builddir=.
6962
6963 case "$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 ;;
6973 esac
6974 ac_abs_top_builddir=$ac_pwd
6975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6976 # for backward compatibility:
6977 ac_top_builddir=$ac_top_build_prefix
6978
6979 case $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 ;;
6992 esac
6993 ac_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
7004 cat >>$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.
7007 ac_datarootdir_hack=; ac_datarootdir_seen=
7008
7009 case `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
7022 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7023 _ACEOF
7024 cat >>$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' ;;
7032 esac
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?
7038 cat >>$CONFIG_STATUS <<_ACEOF
7039   sed "$ac_vpsub
7040 $extrasub
7041 _ACEOF
7042 cat >>$CONFIG_STATUS <<\_ACEOF
7043 :t
7044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7045 s&@configure_input@&$configure_input&;t t
7046 s&@top_builddir@&$ac_top_builddir_sub&;t t
7047 s&@srcdir@&$ac_srcdir&;t t
7048 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7049 s&@top_srcdir@&$ac_top_srcdir&;t t
7050 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7051 s&@builddir@&$ac_builddir&;t t
7052 s&@abs_builddir@&$ac_abs_builddir&;t t
7053 s&@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
7057 test -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'
7061 which seems to be undefined.  Please make sure it is defined." >&5
7062 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7063 which 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.
7079 rm -f conftest.defines conftest.tail
7080 # First, append a space to every undef/define line, to ease matching.
7081 echo '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.
7087 ac_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.
7092 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
7093 ac_dB='\\)[      (].*,\\1define\\2'
7094 ac_dC=' '
7095 ac_dD=' ,'
7096
7097 uniq 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.)
7115 echo 's/ $//
7116 s,^[     #]*u.*,/* & */,' >>conftest.defines
7117
7118 # Break up conftest.defines:
7119 ac_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.
7125 ac_in='$ac_file_inputs'
7126 ac_out='"$tmp/out1"'
7127 ac_nxt='"$tmp/out2"'
7128
7129 while :
7130 do
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
7137 b
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
7148 done
7149 rm -f conftest.defines conftest.tail
7150
7151 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7152 cat >>$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
7158 echo "$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
7173 done # for ac_tag
7174
7175
7176 { (exit 0); exit 0; }
7177 _ACEOF
7178 chmod +x $CONFIG_STATUS
7179 ac_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.
7190 if 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; }
7201 fi
7202