Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / zkt / configure
blob8d4d49639d5a7cd9fa4a89eac0bd9b63132e4200
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ZKT 0.99c.
5 # Report bugs to <Holger Zuleger hznet.de>.
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 ## --------------------- ##
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
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
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=:
52 rm -f conf$$.sh
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
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='
70 IFS=" "" $as_nl"
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
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
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
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; }
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='+ '
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
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
115 done
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
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
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/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
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
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
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
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
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
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
335 _ASEOF
336 }; then
337 break
342 done
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+"$@"}
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; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
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
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" || {
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 '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
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; }; }
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
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
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;;
482 ECHO_N='-n';;
483 esac
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
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
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'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
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
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=
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
544 as_executable_p=$as_test_x
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'"
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'"
554 exec 7<&0 </dev/null 6>&1
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`
562 # Initializations.
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}
574 # Identity of this package.
575 PACKAGE_NAME='ZKT'
576 PACKAGE_TARNAME='zkt'
577 PACKAGE_VERSION='0.99c'
578 PACKAGE_STRING='ZKT 0.99c'
579 PACKAGE_BUGREPORT='Holger Zuleger hznet.de'
581 ac_unique_file="dnssec-zkt.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"
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
658 CFLAGS
659 LDFLAGS
660 CPPFLAGS
661 ac_ct_CC
662 EXEEXT
663 OBJEXT
664 SIGNZONE_PROG
666 GREP
667 EGREP
668 LIBOBJS
669 LTLIBOBJS'
670 ac_subst_files=''
671 ac_precious_vars='build_alias
672 host_alias
673 target_alias
675 CFLAGS
676 LDFLAGS
677 LIBS
678 CPPFLAGS
679 CPP'
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
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'
728 ac_prev=
729 ac_dashdash=
730 for ac_option
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
739 case $ac_option in
740 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
741 *) ac_optarg=yes ;;
742 esac
744 # Accept the important Cygnus configure options, so we can diagnose typos.
746 case $ac_dashdash$ac_option in
748 ac_dashdash=yes ;;
750 -bindir | --bindir | --bindi | --bind | --bin | --bi)
751 ac_prev=bindir ;;
752 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
753 bindir=$ac_optarg ;;
755 -build | --build | --buil | --bui | --bu)
756 ac_prev=build_alias ;;
757 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
758 build_alias=$ac_optarg ;;
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 ;;
767 --config-cache | -C)
768 cache_file=config.cache ;;
770 -datadir | --datadir | --datadi | --datad)
771 ac_prev=datadir ;;
772 -datadir=* | --datadir=* | --datadi=* | --datad=*)
773 datadir=$ac_optarg ;;
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 ;;
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 ;;
791 -docdir | --docdir | --docdi | --doc | --do)
792 ac_prev=docdir ;;
793 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
794 docdir=$ac_optarg ;;
796 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
797 ac_prev=dvidir ;;
798 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
799 dvidir=$ac_optarg ;;
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 ;;
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 ;;
819 -gas | --gas | --ga | --g)
820 # Obsolete; use --with-gas.
821 with_gas=yes ;;
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 ;;
830 -host | --host | --hos | --ho)
831 ac_prev=host_alias ;;
832 -host=* | --host=* | --hos=* | --ho=*)
833 host_alias=$ac_optarg ;;
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 ;;
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 ;;
848 -infodir | --infodir | --infodi | --infod | --info | --inf)
849 ac_prev=infodir ;;
850 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
851 infodir=$ac_optarg ;;
853 -libdir | --libdir | --libdi | --libd)
854 ac_prev=libdir ;;
855 -libdir=* | --libdir=* | --libdi=* | --libd=*)
856 libdir=$ac_optarg ;;
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 ;;
865 -localedir | --localedir | --localedi | --localed | --locale)
866 ac_prev=localedir ;;
867 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
868 localedir=$ac_optarg ;;
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 ;;
877 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
878 ac_prev=mandir ;;
879 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
880 mandir=$ac_optarg ;;
882 -nfp | --nfp | --nf)
883 # Obsolete; use --without-fp.
884 with_fp=no ;;
886 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
887 | --no-cr | --no-c | -n)
888 no_create=yes ;;
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 ;;
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 ;;
903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
904 ac_prev=prefix ;;
905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
906 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
939 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
940 ac_prev=pdfdir ;;
941 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
942 pdfdir=$ac_optarg ;;
944 -psdir | --psdir | --psdi | --psd | --ps)
945 ac_prev=psdir ;;
946 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
947 psdir=$ac_optarg ;;
949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
950 | -silent | --silent | --silen | --sile | --sil)
951 silent=yes ;;
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 ;;
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 ;;
970 -site | --site | --sit)
971 ac_prev=site ;;
972 -site=* | --site=* | --sit=*)
973 site=$ac_optarg ;;
975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 ac_prev=srcdir ;;
977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
978 srcdir=$ac_optarg ;;
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 ;;
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 ;;
992 -v | -verbose | --verbose | --verbos | --verbo | --verb)
993 verbose=yes ;;
995 -version | --version | --versio | --versi | --vers | -V)
996 ac_init_version=: ;;
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 ;;
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 ;;
1016 --x)
1017 # Obsolete; use --with-x.
1018 with_x=yes ;;
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 ;;
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 ;;
1034 -*) { echo "$as_me: error: unrecognized option: $ac_option
1035 Try \`$0 --help' for more information." >&2
1036 { (exit 1); exit 1; }; }
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 ;;
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}
1056 esac
1057 done
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; }; }
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
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
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
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
1098 ac_tool_prefix=
1099 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1101 test "$silent" = yes && exec 6>/dev/null
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; }; }
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/
1128 /^X\(\/\/\)[^/].*/{
1129 s//\1/
1132 /^X\(\/\/\)$/{
1133 s//\1/
1136 /^X\(\/\).*/{
1137 s//\1/
1140 s/.*/./; q'`
1141 srcdir=$ac_confdir
1142 if test ! -r "$srcdir/$ac_unique_file"; then
1143 srcdir=..
1145 else
1146 ac_srcdir_defaulted=no
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; }; }
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=.
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
1176 # Report the --help message.
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 0.99c to adapt to many kinds of systems.
1184 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1189 Defaults for the options are specified in brackets.
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 \`..']
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]
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'.
1213 For better control, use the options below.
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
1237 cat <<\_ACEOF
1238 _ACEOF
1241 if test -n "$ac_init_help"; then
1242 case $ac_init_help in
1243 short | recursive ) echo "Configuration of ZKT 0.99c:";;
1244 esac
1245 cat <<\_ACEOF
1247 Optional Features:
1248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1250 --enable-print-timezone print out timezone
1251 --enable-print-age print age of year
1252 --enable-log-progname log with progname
1253 --disable-log-timestamp do not log with timestamp
1254 --disable-log-level do not log with level
1255 --disable-ttl-in-keyfiles
1256 do not allow TTL values in keyfiles
1257 --enable-configpath=PATH
1258 set path of config file (defaults to /var/named)
1259 --disable-tree use single linked list instead of binary tree data
1260 structure for dnssec-zkt
1262 Some influential environment variables:
1263 CC C compiler command
1264 CFLAGS C compiler flags
1265 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1266 nonstandard directory <lib dir>
1267 LIBS libraries to pass to the linker, e.g. -l<library>
1268 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1269 you have headers in a nonstandard directory <include dir>
1270 CPP C preprocessor
1272 Use these variables to override the choices made by `configure' or to help
1273 it to find libraries and programs with nonstandard names/locations.
1275 Report bugs to <Holger Zuleger hznet.de>.
1276 _ACEOF
1277 ac_status=$?
1280 if test "$ac_init_help" = "recursive"; then
1281 # If there are subdirs, report their specific --help.
1282 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1283 test -d "$ac_dir" || continue
1284 ac_builddir=.
1286 case "$ac_dir" in
1287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1289 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1290 # A ".." for each directory in $ac_dir_suffix.
1291 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1292 case $ac_top_builddir_sub in
1293 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1294 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1295 esac ;;
1296 esac
1297 ac_abs_top_builddir=$ac_pwd
1298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1299 # for backward compatibility:
1300 ac_top_builddir=$ac_top_build_prefix
1302 case $srcdir in
1303 .) # We are building in place.
1304 ac_srcdir=.
1305 ac_top_srcdir=$ac_top_builddir_sub
1306 ac_abs_top_srcdir=$ac_pwd ;;
1307 [\\/]* | ?:[\\/]* ) # Absolute name.
1308 ac_srcdir=$srcdir$ac_dir_suffix;
1309 ac_top_srcdir=$srcdir
1310 ac_abs_top_srcdir=$srcdir ;;
1311 *) # Relative name.
1312 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1313 ac_top_srcdir=$ac_top_build_prefix$srcdir
1314 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1315 esac
1316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1318 cd "$ac_dir" || { ac_status=$?; continue; }
1319 # Check for guested configure.
1320 if test -f "$ac_srcdir/configure.gnu"; then
1321 echo &&
1322 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1323 elif test -f "$ac_srcdir/configure"; then
1324 echo &&
1325 $SHELL "$ac_srcdir/configure" --help=recursive
1326 else
1327 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1328 fi || ac_status=$?
1329 cd "$ac_pwd" || { ac_status=$?; break; }
1330 done
1333 test -n "$ac_init_help" && exit $ac_status
1334 if $ac_init_version; then
1335 cat <<\_ACEOF
1336 ZKT configure 0.99c
1337 generated by GNU Autoconf 2.61
1339 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1340 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1341 This configure script is free software; the Free Software Foundation
1342 gives unlimited permission to copy, distribute and modify it.
1343 _ACEOF
1344 exit
1346 cat >config.log <<_ACEOF
1347 This file contains any messages produced by compilers while
1348 running configure, to aid debugging if configure makes a mistake.
1350 It was created by ZKT $as_me 0.99c, which was
1351 generated by GNU Autoconf 2.61. Invocation command line was
1353 $ $0 $@
1355 _ACEOF
1356 exec 5>>config.log
1358 cat <<_ASUNAME
1359 ## --------- ##
1360 ## Platform. ##
1361 ## --------- ##
1363 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1364 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1365 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1366 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1367 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1369 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1370 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1372 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1373 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1374 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1375 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1376 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1377 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1378 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1380 _ASUNAME
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 echo "PATH: $as_dir"
1388 done
1389 IFS=$as_save_IFS
1391 } >&5
1393 cat >&5 <<_ACEOF
1396 ## ----------- ##
1397 ## Core tests. ##
1398 ## ----------- ##
1400 _ACEOF
1403 # Keep a trace of the command line.
1404 # Strip out --no-create and --no-recursion so they do not pile up.
1405 # Strip out --silent because we don't want to record it for future runs.
1406 # Also quote any args containing shell meta-characters.
1407 # Make two passes to allow for proper duplicate-argument suppression.
1408 ac_configure_args=
1409 ac_configure_args0=
1410 ac_configure_args1=
1411 ac_must_keep_next=false
1412 for ac_pass in 1 2
1414 for ac_arg
1416 case $ac_arg in
1417 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1419 | -silent | --silent | --silen | --sile | --sil)
1420 continue ;;
1421 *\'*)
1422 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1423 esac
1424 case $ac_pass in
1425 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1427 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1428 if test $ac_must_keep_next = true; then
1429 ac_must_keep_next=false # Got value, back to normal.
1430 else
1431 case $ac_arg in
1432 *=* | --config-cache | -C | -disable-* | --disable-* \
1433 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1434 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1435 | -with-* | --with-* | -without-* | --without-* | --x)
1436 case "$ac_configure_args0 " in
1437 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1438 esac
1440 -* ) ac_must_keep_next=true ;;
1441 esac
1443 ac_configure_args="$ac_configure_args '$ac_arg'"
1445 esac
1446 done
1447 done
1448 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1449 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1451 # When interrupted or exit'd, cleanup temporary files, and complete
1452 # config.log. We remove comments because anyway the quotes in there
1453 # would cause problems or look ugly.
1454 # WARNING: Use '\'' to represent an apostrophe within the trap.
1455 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1456 trap 'exit_status=$?
1457 # Save into config.log some information that might help in debugging.
1459 echo
1461 cat <<\_ASBOX
1462 ## ---------------- ##
1463 ## Cache variables. ##
1464 ## ---------------- ##
1465 _ASBOX
1466 echo
1467 # The following way of writing the cache mishandles newlines in values,
1469 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1470 eval ac_val=\$$ac_var
1471 case $ac_val in #(
1472 *${as_nl}*)
1473 case $ac_var in #(
1474 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1475 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1476 esac
1477 case $ac_var in #(
1478 _ | IFS | as_nl) ;; #(
1479 *) $as_unset $ac_var ;;
1480 esac ;;
1481 esac
1482 done
1483 (set) 2>&1 |
1484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1485 *${as_nl}ac_space=\ *)
1486 sed -n \
1487 "s/'\''/'\''\\\\'\'''\''/g;
1488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1489 ;; #(
1491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1493 esac |
1494 sort
1496 echo
1498 cat <<\_ASBOX
1499 ## ----------------- ##
1500 ## Output variables. ##
1501 ## ----------------- ##
1502 _ASBOX
1503 echo
1504 for ac_var in $ac_subst_vars
1506 eval ac_val=\$$ac_var
1507 case $ac_val in
1508 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1509 esac
1510 echo "$ac_var='\''$ac_val'\''"
1511 done | sort
1512 echo
1514 if test -n "$ac_subst_files"; then
1515 cat <<\_ASBOX
1516 ## ------------------- ##
1517 ## File substitutions. ##
1518 ## ------------------- ##
1519 _ASBOX
1520 echo
1521 for ac_var in $ac_subst_files
1523 eval ac_val=\$$ac_var
1524 case $ac_val in
1525 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1526 esac
1527 echo "$ac_var='\''$ac_val'\''"
1528 done | sort
1529 echo
1532 if test -s confdefs.h; then
1533 cat <<\_ASBOX
1534 ## ----------- ##
1535 ## confdefs.h. ##
1536 ## ----------- ##
1537 _ASBOX
1538 echo
1539 cat confdefs.h
1540 echo
1542 test "$ac_signal" != 0 &&
1543 echo "$as_me: caught signal $ac_signal"
1544 echo "$as_me: exit $exit_status"
1545 } >&5
1546 rm -f core *.core core.conftest.* &&
1547 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1548 exit $exit_status
1550 for ac_signal in 1 2 13 15; do
1551 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1552 done
1553 ac_signal=0
1555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1556 rm -f -r conftest* confdefs.h
1558 # Predefined preprocessor variables.
1560 cat >>confdefs.h <<_ACEOF
1561 #define PACKAGE_NAME "$PACKAGE_NAME"
1562 _ACEOF
1565 cat >>confdefs.h <<_ACEOF
1566 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1567 _ACEOF
1570 cat >>confdefs.h <<_ACEOF
1571 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1572 _ACEOF
1575 cat >>confdefs.h <<_ACEOF
1576 #define PACKAGE_STRING "$PACKAGE_STRING"
1577 _ACEOF
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1582 _ACEOF
1585 # Let the site file select an alternate cache file if it wants to.
1586 # Prefer explicitly selected file to automatically selected ones.
1587 if test -n "$CONFIG_SITE"; then
1588 set x "$CONFIG_SITE"
1589 elif test "x$prefix" != xNONE; then
1590 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1591 else
1592 set x "$ac_default_prefix/share/config.site" \
1593 "$ac_default_prefix/etc/config.site"
1595 shift
1596 for ac_site_file
1598 if test -r "$ac_site_file"; then
1599 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1600 echo "$as_me: loading site script $ac_site_file" >&6;}
1601 sed 's/^/| /' "$ac_site_file" >&5
1602 . "$ac_site_file"
1604 done
1606 if test -r "$cache_file"; then
1607 # Some versions of bash will fail to source /dev/null (special
1608 # files actually), so we avoid doing that.
1609 if test -f "$cache_file"; then
1610 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1611 echo "$as_me: loading cache $cache_file" >&6;}
1612 case $cache_file in
1613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1614 *) . "./$cache_file";;
1615 esac
1617 else
1618 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1619 echo "$as_me: creating cache $cache_file" >&6;}
1620 >$cache_file
1623 ac_header_list="$ac_header_list sys/time.h"
1624 ac_header_list="$ac_header_list unistd.h"
1625 ac_func_list="$ac_func_list alarm"
1626 ac_header_list="$ac_header_list utime.h"
1627 # Check that the precious variables saved in the cache have kept the same
1628 # value.
1629 ac_cache_corrupted=false
1630 for ac_var in $ac_precious_vars; do
1631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1632 eval ac_new_set=\$ac_env_${ac_var}_set
1633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1634 eval ac_new_val=\$ac_env_${ac_var}_value
1635 case $ac_old_set,$ac_new_set in
1636 set,)
1637 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1638 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1639 ac_cache_corrupted=: ;;
1640 ,set)
1641 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1642 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1643 ac_cache_corrupted=: ;;
1644 ,);;
1646 if test "x$ac_old_val" != "x$ac_new_val"; then
1647 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1648 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1649 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1650 echo "$as_me: former value: $ac_old_val" >&2;}
1651 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1652 echo "$as_me: current value: $ac_new_val" >&2;}
1653 ac_cache_corrupted=:
1654 fi;;
1655 esac
1656 # Pass precious variables to config.status.
1657 if test "$ac_new_set" = set; then
1658 case $ac_new_val in
1659 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 *) ac_arg=$ac_var=$ac_new_val ;;
1661 esac
1662 case " $ac_configure_args " in
1663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1664 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1665 esac
1667 done
1668 if $ac_cache_corrupted; then
1669 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1670 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1671 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1672 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1673 { (exit 1); exit 1; }; }
1700 ac_ext=c
1701 ac_cpp='$CPP $CPPFLAGS'
1702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1708 ### Files to test to check if src dir contains the package
1710 ac_config_headers="$ac_config_headers config.h"
1714 ### Checks for programs.
1715 ac_ext=c
1716 ac_cpp='$CPP $CPPFLAGS'
1717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1720 if test -n "$ac_tool_prefix"; then
1721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1725 if test "${ac_cv_prog_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC="$CC" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1742 done
1743 done
1744 IFS=$as_save_IFS
1748 CC=$ac_cv_prog_CC
1749 if test -n "$CC"; then
1750 { echo "$as_me:$LINENO: result: $CC" >&5
1751 echo "${ECHO_T}$CC" >&6; }
1752 else
1753 { echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6; }
1759 if test -z "$ac_cv_prog_CC"; then
1760 ac_ct_CC=$CC
1761 # Extract the first word of "gcc", so it can be a program name with args.
1762 set dummy gcc; ac_word=$2
1763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 if test -n "$ac_ct_CC"; then
1769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1770 else
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1778 ac_cv_prog_ac_ct_CC="gcc"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 break 2
1782 done
1783 done
1784 IFS=$as_save_IFS
1788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1789 if test -n "$ac_ct_CC"; then
1790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1791 echo "${ECHO_T}$ac_ct_CC" >&6; }
1792 else
1793 { echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6; }
1797 if test "x$ac_ct_CC" = x; then
1798 CC=""
1799 else
1800 case $cross_compiling:$ac_tool_warned in
1801 yes:)
1802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1803 whose name does not start with the host triplet. If you think this
1804 configuration is useful to you, please write to autoconf@gnu.org." >&5
1805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1806 whose name does not start with the host triplet. If you think this
1807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1808 ac_tool_warned=yes ;;
1809 esac
1810 CC=$ac_ct_CC
1812 else
1813 CC="$ac_cv_prog_CC"
1816 if test -z "$CC"; then
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}cc; ac_word=$2
1820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1835 ac_cv_prog_CC="${ac_tool_prefix}cc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 break 2
1839 done
1840 done
1841 IFS=$as_save_IFS
1845 CC=$ac_cv_prog_CC
1846 if test -n "$CC"; then
1847 { echo "$as_me:$LINENO: result: $CC" >&5
1848 echo "${ECHO_T}$CC" >&6; }
1849 else
1850 { echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6; }
1857 if test -z "$CC"; then
1858 # Extract the first word of "cc", so it can be a program name with args.
1859 set dummy cc; ac_word=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$CC"; then
1866 ac_cv_prog_CC="$CC" # Let the user override the test.
1867 else
1868 ac_prog_rejected=no
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1877 ac_prog_rejected=yes
1878 continue
1880 ac_cv_prog_CC="cc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1884 done
1885 done
1886 IFS=$as_save_IFS
1888 if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_CC
1891 shift
1892 if test $# != 0; then
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set CC to just the basename; use the full file name.
1896 shift
1897 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1902 CC=$ac_cv_prog_CC
1903 if test -n "$CC"; then
1904 { echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6; }
1906 else
1907 { echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6; }
1913 if test -z "$CC"; then
1914 if test -n "$ac_tool_prefix"; then
1915 for ac_prog in cl.exe
1917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1921 if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1938 done
1939 done
1940 IFS=$as_save_IFS
1944 CC=$ac_cv_prog_CC
1945 if test -n "$CC"; then
1946 { echo "$as_me:$LINENO: result: $CC" >&5
1947 echo "${ECHO_T}$CC" >&6; }
1948 else
1949 { echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6; }
1954 test -n "$CC" && break
1955 done
1957 if test -z "$CC"; then
1958 ac_ct_CC=$CC
1959 for ac_prog in cl.exe
1961 # Extract the first word of "$ac_prog", so it can be a program name with args.
1962 set dummy $ac_prog; ac_word=$2
1963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 if test -n "$ac_ct_CC"; then
1969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1974 IFS=$as_save_IFS
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1978 ac_cv_prog_ac_ct_CC="$ac_prog"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 break 2
1982 done
1983 done
1984 IFS=$as_save_IFS
1988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989 if test -n "$ac_ct_CC"; then
1990 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991 echo "${ECHO_T}$ac_ct_CC" >&6; }
1992 else
1993 { echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6; }
1998 test -n "$ac_ct_CC" && break
1999 done
2001 if test "x$ac_ct_CC" = x; then
2002 CC=""
2003 else
2004 case $cross_compiling:$ac_tool_warned in
2005 yes:)
2006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2007 whose name does not start with the host triplet. If you think this
2008 configuration is useful to you, please write to autoconf@gnu.org." >&5
2009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2010 whose name does not start with the host triplet. If you think this
2011 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2012 ac_tool_warned=yes ;;
2013 esac
2014 CC=$ac_ct_CC
2021 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2022 See \`config.log' for more details." >&5
2023 echo "$as_me: error: no acceptable C compiler found in \$PATH
2024 See \`config.log' for more details." >&2;}
2025 { (exit 1); exit 1; }; }
2027 # Provide some information about the compiler.
2028 echo "$as_me:$LINENO: checking for C compiler version" >&5
2029 ac_compiler=`set X $ac_compile; echo $2`
2030 { (ac_try="$ac_compiler --version >&5"
2031 case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034 esac
2035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2036 (eval "$ac_compiler --version >&5") 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }
2040 { (ac_try="$ac_compiler -v >&5"
2041 case "(($ac_try" in
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2044 esac
2045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2046 (eval "$ac_compiler -v >&5") 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }
2050 { (ac_try="$ac_compiler -V >&5"
2051 case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2056 (eval "$ac_compiler -V >&5") 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2061 cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h. */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2069 main ()
2073 return 0;
2075 _ACEOF
2076 ac_clean_files_save=$ac_clean_files
2077 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2078 # Try to create an executable without -o first, disregard a.out.
2079 # It will help us diagnose broken compilers, and finding out an intuition
2080 # of exeext.
2081 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2082 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2083 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2085 # List of possible output files, starting from the most likely.
2086 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2087 # only as a last resort. b.out is created by i960 compilers.
2088 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2090 # The IRIX 6 linker writes into existing files which may not be
2091 # executable, retaining their permissions. Remove them first so a
2092 # subsequent execution test works.
2093 ac_rmfiles=
2094 for ac_file in $ac_files
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2099 esac
2100 done
2101 rm -f $ac_rmfiles
2103 if { (ac_try="$ac_link_default"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_link_default") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; then
2113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2116 # so that the user can short-circuit this test for compilers unknown to
2117 # Autoconf.
2118 for ac_file in $ac_files ''
2120 test -f "$ac_file" || continue
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2124 [ab].out )
2125 # We found the default executable, but exeext='' is most
2126 # certainly right.
2127 break;;
2128 *.* )
2129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2130 then :; else
2131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2133 # We set ac_cv_exeext here because the later test for it is not
2134 # safe: cross compilers may not add the suffix if given an `-o'
2135 # argument, so we may need to know it at that point already.
2136 # Even if this section looks crufty: it has the advantage of
2137 # actually working.
2138 break;;
2140 break;;
2141 esac
2142 done
2143 test "$ac_cv_exeext" = no && ac_cv_exeext=
2145 else
2146 ac_file=''
2149 { echo "$as_me:$LINENO: result: $ac_file" >&5
2150 echo "${ECHO_T}$ac_file" >&6; }
2151 if test -z "$ac_file"; then
2152 echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&2;}
2159 { (exit 77); exit 77; }; }
2162 ac_exeext=$ac_cv_exeext
2164 # Check that the compiler produces executables we can run. If not, either
2165 # the compiler is broken, or we cross compile.
2166 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2167 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2168 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2169 # If not cross compiling, check that we can run a simple program.
2170 if test "$cross_compiling" != yes; then
2171 if { ac_try='./$ac_file'
2172 { (case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175 esac
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 cross_compiling=no
2182 else
2183 if test "$cross_compiling" = maybe; then
2184 cross_compiling=yes
2185 else
2186 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'.
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2196 { echo "$as_me:$LINENO: result: yes" >&5
2197 echo "${ECHO_T}yes" >&6; }
2199 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2200 ac_clean_files=$ac_clean_files_save
2201 # Check that the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2205 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2206 echo "${ECHO_T}$cross_compiling" >&6; }
2208 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2210 if { (ac_try="$ac_link"
2211 case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2214 esac
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_link") 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 # `rm'.
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2226 case $ac_file in
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229 break;;
2230 * ) break;;
2231 esac
2232 done
2233 else
2234 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2241 rm -f conftest$ac_cv_exeext
2242 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2247 ac_exeext=$EXEEXT
2248 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2250 if test "${ac_cv_objext+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2261 main ()
2265 return 0;
2267 _ACEOF
2268 rm -f conftest.o conftest.obj
2269 if { (ac_try="$ac_compile"
2270 case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273 esac
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_compile") 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 for ac_file in conftest.o conftest.obj conftest.*; do
2280 test -f "$ac_file" || continue;
2281 case $ac_file in
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2284 break;;
2285 esac
2286 done
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2300 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2301 echo "${ECHO_T}$ac_cv_objext" >&6; }
2302 OBJEXT=$ac_cv_objext
2303 ac_objext=$OBJEXT
2304 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2305 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2306 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 cat >conftest.$ac_ext <<_ACEOF
2310 /* confdefs.h. */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2317 main ()
2319 #ifndef __GNUC__
2320 choke me
2321 #endif
2324 return 0;
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (ac_try="$ac_compile"
2329 case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332 esac
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>conftest.er1
2335 ac_status=$?
2336 grep -v '^ *+' conftest.er1 >conftest.err
2337 rm -f conftest.er1
2338 cat conftest.err >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } && {
2341 test -z "$ac_c_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then
2344 ac_compiler_gnu=yes
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 ac_compiler_gnu=no
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2356 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2358 GCC=`test $ac_compiler_gnu = yes && echo yes`
2359 ac_test_CFLAGS=${CFLAGS+set}
2360 ac_save_CFLAGS=$CFLAGS
2361 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 ac_save_c_werror_flag=$ac_c_werror_flag
2367 ac_c_werror_flag=yes
2368 ac_cv_prog_cc_g=no
2369 CFLAGS="-g"
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 main ()
2382 return 0;
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (ac_try="$ac_compile"
2387 case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compile") 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } && {
2399 test -z "$ac_c_werror_flag" ||
2400 test ! -s conftest.err
2401 } && test -s conftest.$ac_objext; then
2402 ac_cv_prog_cc_g=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 CFLAGS=""
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2416 main ()
2420 return 0;
2422 _ACEOF
2423 rm -f conftest.$ac_objext
2424 if { (ac_try="$ac_compile"
2425 case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compile") 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } && {
2437 test -z "$ac_c_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest.$ac_objext; then
2441 else
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2445 ac_c_werror_flag=$ac_save_c_werror_flag
2446 CFLAGS="-g"
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2455 main ()
2459 return 0;
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (ac_try="$ac_compile"
2464 case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_compile") 2>conftest.er1
2470 ac_status=$?
2471 grep -v '^ *+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } && {
2476 test -z "$ac_c_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest.$ac_objext; then
2479 ac_cv_prog_cc_g=yes
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 ac_c_werror_flag=$ac_save_c_werror_flag
2496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2498 if test "$ac_test_CFLAGS" = set; then
2499 CFLAGS=$ac_save_CFLAGS
2500 elif test $ac_cv_prog_cc_g = yes; then
2501 if test "$GCC" = yes; then
2502 CFLAGS="-g -O2"
2503 else
2504 CFLAGS="-g"
2506 else
2507 if test "$GCC" = yes; then
2508 CFLAGS="-O2"
2509 else
2510 CFLAGS=
2513 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2514 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_cc_c89+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 ac_cv_prog_cc_c89=no
2519 ac_save_CC=$CC
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526 #include <stdarg.h>
2527 #include <stdio.h>
2528 #include <sys/types.h>
2529 #include <sys/stat.h>
2530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2531 struct buf { int x; };
2532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2533 static char *e (p, i)
2534 char **p;
2535 int i;
2537 return p[i];
2539 static char *f (char * (*g) (char **, int), char **p, ...)
2541 char *s;
2542 va_list v;
2543 va_start (v,p);
2544 s = g (p, va_arg (v,int));
2545 va_end (v);
2546 return s;
2549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2550 function prototypes and stuff, but not '\xHH' hex character constants.
2551 These don't provoke an error unfortunately, instead are silently treated
2552 as 'x'. The following induces an error, until -std is added to get
2553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2554 array size at least. It's necessary to write '\x00'==0 to get something
2555 that's true only with -std. */
2556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2559 inside strings and character constants. */
2560 #define FOO(x) 'x'
2561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2563 int test (int i, double x);
2564 struct s1 {int (*f) (int a);};
2565 struct s2 {int (*f) (double a);};
2566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2567 int argc;
2568 char **argv;
2570 main ()
2572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2574 return 0;
2576 _ACEOF
2577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2580 CC="$ac_save_CC $ac_arg"
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2583 case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>conftest.er1
2589 ac_status=$?
2590 grep -v '^ *+' conftest.er1 >conftest.err
2591 rm -f conftest.er1
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } && {
2595 test -z "$ac_c_werror_flag" ||
2596 test ! -s conftest.err
2597 } && test -s conftest.$ac_objext; then
2598 ac_cv_prog_cc_c89=$ac_arg
2599 else
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f core conftest.err conftest.$ac_objext
2607 test "x$ac_cv_prog_cc_c89" != "xno" && break
2608 done
2609 rm -f conftest.$ac_ext
2610 CC=$ac_save_CC
2613 # AC_CACHE_VAL
2614 case "x$ac_cv_prog_cc_c89" in
2616 { echo "$as_me:$LINENO: result: none needed" >&5
2617 echo "${ECHO_T}none needed" >&6; } ;;
2618 xno)
2619 { echo "$as_me:$LINENO: result: unsupported" >&5
2620 echo "${ECHO_T}unsupported" >&6; } ;;
2622 CC="$CC $ac_cv_prog_cc_c89"
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2625 esac
2628 ac_ext=c
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 ### find out the path to BIND utils and version
2636 # Extract the first word of "dnssec-signzone", so it can be a program name with args.
2637 set dummy dnssec-signzone; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_path_SIGNZONE_PROG+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 case $SIGNZONE_PROG in
2644 [\\/]* | ?:[\\/]*)
2645 ac_cv_path_SIGNZONE_PROG="$SIGNZONE_PROG" # Let the user override the test with a path.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_path_SIGNZONE_PROG="$as_dir/$ac_word$ac_exec_ext"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2664 esac
2666 SIGNZONE_PROG=$ac_cv_path_SIGNZONE_PROG
2667 if test -n "$SIGNZONE_PROG"; then
2668 { echo "$as_me:$LINENO: result: $SIGNZONE_PROG" >&5
2669 echo "${ECHO_T}$SIGNZONE_PROG" >&6; }
2670 else
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2676 if test -z "$SIGNZONE_PROG" ; then
2677 # AC_MSG_ERROR([*** 'BIND dnssec-signzone dnssec-keygen' missing, please install or fix your \$PATH ***])
2678 { echo "$as_me:$LINENO: WARNING: *** 'BIND dnssec-signzone' missing, use default BIND_UTIL_PATH and BIND_VERSION setting out of config_zkt.h ***" >&5
2679 echo "$as_me: WARNING: *** 'BIND dnssec-signzone' missing, use default BIND_UTIL_PATH and BIND_VERSION setting out of config_zkt.h ***" >&2;}
2680 else
2681 bind_util_path=`dirname "$SIGNZONE_PROG"`
2682 # define BIND_UTIL_PATH in config.h.in
2684 cat >>confdefs.h <<_ACEOF
2685 #define BIND_UTIL_PATH "$bind_util_path/"
2686 _ACEOF
2688 # define BIND_VERSION in config.h.in
2689 bind_version=`$SIGNZONE_PROG 2>&1 | grep "Version:" | tr -cd "0-9" | sed "s/^\(...\).*/\1/"`
2691 cat >>confdefs.h <<_ACEOF
2692 #define BIND_VERSION $bind_version
2693 _ACEOF
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2704 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2705 # On Suns, sometimes $CPP names a directory.
2706 if test -n "$CPP" && test -d "$CPP"; then
2707 CPP=
2709 if test -z "$CPP"; then
2710 if test "${ac_cv_prog_CPP+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713 # Double quotes because CPP needs to be expanded
2714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2716 ac_preproc_ok=false
2717 for ac_c_preproc_warn_flag in '' yes
2719 # Use a header file that comes with gcc, so configuring glibc
2720 # with a fresh cross-compiler works.
2721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2722 # <limits.h> exists even on freestanding compilers.
2723 # On the NeXT, cc -E runs the code through the compiler's parser,
2724 # not just through cpp. "Syntax error" is here to catch this case.
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2731 #ifdef __STDC__
2732 # include <limits.h>
2733 #else
2734 # include <assert.h>
2735 #endif
2736 Syntax error
2737 _ACEOF
2738 if { (ac_try="$ac_cpp conftest.$ac_ext"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } >/dev/null && {
2751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 }; then
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 # Broken: fails on valid input.
2760 continue
2763 rm -f conftest.err conftest.$ac_ext
2765 # OK, works on sane cases. Now check whether nonexistent headers
2766 # can be detected and how.
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <ac_nonexistent.h>
2774 _ACEOF
2775 if { (ac_try="$ac_cpp conftest.$ac_ext"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } >/dev/null && {
2788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 }; then
2791 # Broken: success on invalid input.
2792 continue
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 # Passes both tests.
2798 ac_preproc_ok=:
2799 break
2802 rm -f conftest.err conftest.$ac_ext
2804 done
2805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2806 rm -f conftest.err conftest.$ac_ext
2807 if $ac_preproc_ok; then
2808 break
2811 done
2812 ac_cv_prog_CPP=$CPP
2815 CPP=$ac_cv_prog_CPP
2816 else
2817 ac_cv_prog_CPP=$CPP
2819 { echo "$as_me:$LINENO: result: $CPP" >&5
2820 echo "${ECHO_T}$CPP" >&6; }
2821 ac_preproc_ok=false
2822 for ac_c_preproc_warn_flag in '' yes
2824 # Use a header file that comes with gcc, so configuring glibc
2825 # with a fresh cross-compiler works.
2826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2827 # <limits.h> exists even on freestanding compilers.
2828 # On the NeXT, cc -E runs the code through the compiler's parser,
2829 # not just through cpp. "Syntax error" is here to catch this case.
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2836 #ifdef __STDC__
2837 # include <limits.h>
2838 #else
2839 # include <assert.h>
2840 #endif
2841 Syntax error
2842 _ACEOF
2843 if { (ac_try="$ac_cpp conftest.$ac_ext"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev/null && {
2856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 }; then
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 # Broken: fails on valid input.
2865 continue
2868 rm -f conftest.err conftest.$ac_ext
2870 # OK, works on sane cases. Now check whether nonexistent headers
2871 # can be detected and how.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2879 _ACEOF
2880 if { (ac_try="$ac_cpp conftest.$ac_ext"
2881 case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null && {
2893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 }; then
2896 # Broken: success on invalid input.
2897 continue
2898 else
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2902 # Passes both tests.
2903 ac_preproc_ok=:
2904 break
2907 rm -f conftest.err conftest.$ac_ext
2909 done
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2914 else
2915 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2930 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2931 if test "${ac_cv_path_GREP+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 # Extract the first word of "grep ggrep" to use in msg output
2935 if test -z "$GREP"; then
2936 set dummy grep ggrep; ac_prog_name=$2
2937 if test "${ac_cv_path_GREP+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 ac_path_GREP_found=false
2941 # Loop through the user's path and test for each of PROGNAME-LIST
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_prog in grep ggrep; do
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2950 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2951 # Check for GNU ac_path_GREP and select it if it is found.
2952 # Check for GNU $ac_path_GREP
2953 case `"$ac_path_GREP" --version 2>&1` in
2954 *GNU*)
2955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2957 ac_count=0
2958 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2959 while :
2961 cat "conftest.in" "conftest.in" >"conftest.tmp"
2962 mv "conftest.tmp" "conftest.in"
2963 cp "conftest.in" "conftest.nl"
2964 echo 'GREP' >> "conftest.nl"
2965 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2967 ac_count=`expr $ac_count + 1`
2968 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2969 # Best one so far, save it but keep looking for a better one
2970 ac_cv_path_GREP="$ac_path_GREP"
2971 ac_path_GREP_max=$ac_count
2973 # 10*(2^10) chars as input seems more than enough
2974 test $ac_count -gt 10 && break
2975 done
2976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2977 esac
2980 $ac_path_GREP_found && break 3
2981 done
2982 done
2984 done
2985 IFS=$as_save_IFS
2990 GREP="$ac_cv_path_GREP"
2991 if test -z "$GREP"; then
2992 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2993 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2994 { (exit 1); exit 1; }; }
2997 else
2998 ac_cv_path_GREP=$GREP
3003 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3004 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3005 GREP="$ac_cv_path_GREP"
3008 { echo "$as_me:$LINENO: checking for egrep" >&5
3009 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3010 if test "${ac_cv_path_EGREP+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3014 then ac_cv_path_EGREP="$GREP -E"
3015 else
3016 # Extract the first word of "egrep" to use in msg output
3017 if test -z "$EGREP"; then
3018 set dummy egrep; ac_prog_name=$2
3019 if test "${ac_cv_path_EGREP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022 ac_path_EGREP_found=false
3023 # Loop through the user's path and test for each of PROGNAME-LIST
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_prog in egrep; do
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3032 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3033 # Check for GNU ac_path_EGREP and select it if it is found.
3034 # Check for GNU $ac_path_EGREP
3035 case `"$ac_path_EGREP" --version 2>&1` in
3036 *GNU*)
3037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3039 ac_count=0
3040 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3041 while :
3043 cat "conftest.in" "conftest.in" >"conftest.tmp"
3044 mv "conftest.tmp" "conftest.in"
3045 cp "conftest.in" "conftest.nl"
3046 echo 'EGREP' >> "conftest.nl"
3047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3049 ac_count=`expr $ac_count + 1`
3050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3051 # Best one so far, save it but keep looking for a better one
3052 ac_cv_path_EGREP="$ac_path_EGREP"
3053 ac_path_EGREP_max=$ac_count
3055 # 10*(2^10) chars as input seems more than enough
3056 test $ac_count -gt 10 && break
3057 done
3058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3059 esac
3062 $ac_path_EGREP_found && break 3
3063 done
3064 done
3066 done
3067 IFS=$as_save_IFS
3072 EGREP="$ac_cv_path_EGREP"
3073 if test -z "$EGREP"; then
3074 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3075 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3076 { (exit 1); exit 1; }; }
3079 else
3080 ac_cv_path_EGREP=$EGREP
3086 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3087 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3088 EGREP="$ac_cv_path_EGREP"
3091 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3093 if test "${ac_cv_header_stdc+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <stdlib.h>
3103 #include <stdarg.h>
3104 #include <string.h>
3105 #include <float.h>
3108 main ()
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (ac_try="$ac_compile"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } && {
3129 test -z "$ac_c_werror_flag" ||
3130 test ! -s conftest.err
3131 } && test -s conftest.$ac_objext; then
3132 ac_cv_header_stdc=yes
3133 else
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 ac_cv_header_stdc=no
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 if test $ac_cv_header_stdc = yes; then
3143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <string.h>
3152 _ACEOF
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 $EGREP "memchr" >/dev/null 2>&1; then
3156 else
3157 ac_cv_header_stdc=no
3159 rm -f conftest*
3163 if test $ac_cv_header_stdc = yes; then
3164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171 #include <stdlib.h>
3173 _ACEOF
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 $EGREP "free" >/dev/null 2>&1; then
3177 else
3178 ac_cv_header_stdc=no
3180 rm -f conftest*
3184 if test $ac_cv_header_stdc = yes; then
3185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3186 if test "$cross_compiling" = yes; then
3188 else
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 #include <ctype.h>
3196 #include <stdlib.h>
3197 #if ((' ' & 0x0FF) == 0x020)
3198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3200 #else
3201 # define ISLOWER(c) \
3202 (('a' <= (c) && (c) <= 'i') \
3203 || ('j' <= (c) && (c) <= 'r') \
3204 || ('s' <= (c) && (c) <= 'z'))
3205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3206 #endif
3208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3210 main ()
3212 int i;
3213 for (i = 0; i < 256; i++)
3214 if (XOR (islower (i), ISLOWER (i))
3215 || toupper (i) != TOUPPER (i))
3216 return 2;
3217 return 0;
3219 _ACEOF
3220 rm -f conftest$ac_exeext
3221 if { (ac_try="$ac_link"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_link") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3241 else
3242 echo "$as_me: program exited with status $ac_status" >&5
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ( exit $ac_status )
3247 ac_cv_header_stdc=no
3249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3255 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3256 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3257 if test $ac_cv_header_stdc = yes; then
3259 cat >>confdefs.h <<\_ACEOF
3260 #define STDC_HEADERS 1
3261 _ACEOF
3265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3276 inttypes.h stdint.h unistd.h
3278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h. */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 $ac_includes_default
3292 #include <$ac_header>
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
3311 eval "$as_ac_Header=yes"
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 eval "$as_ac_Header=no"
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 ac_res=`eval echo '${'$as_ac_Header'}'`
3322 { echo "$as_me:$LINENO: result: $ac_res" >&5
3323 echo "${ECHO_T}$ac_res" >&6; }
3324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3325 cat >>confdefs.h <<_ACEOF
3326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3327 _ACEOF
3331 done
3334 { echo "$as_me:$LINENO: checking for uint" >&5
3335 echo $ECHO_N "checking for uint... $ECHO_C" >&6; }
3336 if test "${ac_cv_type_uint+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 $ac_includes_default
3346 typedef uint ac__type_new_;
3348 main ()
3350 if ((ac__type_new_ *) 0)
3351 return 0;
3352 if (sizeof (ac__type_new_))
3353 return 0;
3355 return 0;
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest.$ac_objext; then
3375 ac_cv_type_uint=yes
3376 else
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 ac_cv_type_uint=no
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 { echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
3386 echo "${ECHO_T}$ac_cv_type_uint" >&6; }
3387 if test $ac_cv_type_uint = yes; then
3389 else
3391 cat >>confdefs.h <<_ACEOF
3392 #define uint unsigned int
3393 _ACEOF
3397 { echo "$as_me:$LINENO: checking for ulong" >&5
3398 echo $ECHO_N "checking for ulong... $ECHO_C" >&6; }
3399 if test "${ac_cv_type_ulong+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 $ac_includes_default
3409 typedef ulong ac__type_new_;
3411 main ()
3413 if ((ac__type_new_ *) 0)
3414 return 0;
3415 if (sizeof (ac__type_new_))
3416 return 0;
3418 return 0;
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3438 ac_cv_type_ulong=yes
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 ac_cv_type_ulong=no
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 { echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
3449 echo "${ECHO_T}$ac_cv_type_ulong" >&6; }
3450 if test $ac_cv_type_ulong = yes; then
3452 else
3454 cat >>confdefs.h <<_ACEOF
3455 #define ulong unsigned long
3456 _ACEOF
3460 { echo "$as_me:$LINENO: checking for ushort" >&5
3461 echo $ECHO_N "checking for ushort... $ECHO_C" >&6; }
3462 if test "${ac_cv_type_ushort+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 $ac_includes_default
3472 typedef ushort ac__type_new_;
3474 main ()
3476 if ((ac__type_new_ *) 0)
3477 return 0;
3478 if (sizeof (ac__type_new_))
3479 return 0;
3481 return 0;
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest.$ac_objext; then
3501 ac_cv_type_ushort=yes
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 ac_cv_type_ushort=no
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 { echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
3512 echo "${ECHO_T}$ac_cv_type_ushort" >&6; }
3513 if test $ac_cv_type_ushort = yes; then
3515 else
3517 cat >>confdefs.h <<_ACEOF
3518 #define ushort unsigned short
3519 _ACEOF
3523 { echo "$as_me:$LINENO: checking for uchar" >&5
3524 echo $ECHO_N "checking for uchar... $ECHO_C" >&6; }
3525 if test "${ac_cv_type_uchar+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 $ac_includes_default
3535 typedef uchar ac__type_new_;
3537 main ()
3539 if ((ac__type_new_ *) 0)
3540 return 0;
3541 if (sizeof (ac__type_new_))
3542 return 0;
3544 return 0;
3546 _ACEOF
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_compile") 2>conftest.er1
3555 ac_status=$?
3556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } && {
3561 test -z "$ac_c_werror_flag" ||
3562 test ! -s conftest.err
3563 } && test -s conftest.$ac_objext; then
3564 ac_cv_type_uchar=yes
3565 else
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 ac_cv_type_uchar=no
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 { echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
3575 echo "${ECHO_T}$ac_cv_type_uchar" >&6; }
3576 if test $ac_cv_type_uchar = yes; then
3578 else
3580 cat >>confdefs.h <<_ACEOF
3581 #define uchar unsigned char
3582 _ACEOF
3587 ### define configure arguments
3588 # Check whether --enable-printtimezone was given.
3589 if test "${enable_printtimezone+set}" = set; then
3590 enableval=$enable_printtimezone; printtimezone=$enableval
3593 printtimezone=0
3594 test "$printtimezone" = yes && printtimezone=1
3596 cat >>confdefs.h <<_ACEOF
3597 #define PRINT_TIMEZONE $printtimezone
3598 _ACEOF
3601 # Check whether --enable-printyear was given.
3602 if test "${enable_printyear+set}" = set; then
3603 enableval=$enable_printyear; printyear=$enableval
3606 printyear=0
3607 test "$printyear" = yes && printyear=1
3609 cat >>confdefs.h <<_ACEOF
3610 #define PRINT_AGE_OF_YEAR $printyear
3611 _ACEOF
3614 # Check whether --enable-logprogname was given.
3615 if test "${enable_logprogname+set}" = set; then
3616 enableval=$enable_logprogname; logprogname=$enableval
3619 logprogname=0
3620 test "$logprogname" = yes && logprogname=1
3622 cat >>confdefs.h <<_ACEOF
3623 #define LOG_WITH_PROGNAME $logprogname
3624 _ACEOF
3627 # Check whether --enable-logtimestamp was given.
3628 if test "${enable_logtimestamp+set}" = set; then
3629 enableval=$enable_logtimestamp; logtimestamp=$enableval
3632 logtimestamp=1
3633 test "$logtimestamp" = no && logtimestamp=0
3635 cat >>confdefs.h <<_ACEOF
3636 #define LOG_WITH_TIMESTAMP $logtimestamp
3637 _ACEOF
3640 # Check whether --enable-loglevel was given.
3641 if test "${enable_loglevel+set}" = set; then
3642 enableval=$enable_loglevel; loglevel=$enableval
3645 loglevel=1
3646 test "$loglevel" = no && loglevel=0
3648 cat >>confdefs.h <<_ACEOF
3649 #define LOG_WITH_LEVEL $loglevel
3650 _ACEOF
3653 # Check whether --enable-ttl_in_keyfile was given.
3654 if test "${enable_ttl_in_keyfile+set}" = set; then
3655 enableval=$enable_ttl_in_keyfile; ttl_in_keyfile=$enableval
3658 ttl_in_keyfile=1
3659 test "$ttl_in_keyfile" = no && ttl_in_keyfile=0
3661 cat >>confdefs.h <<_ACEOF
3662 #define TTL_IN_KEYFILE_ALLOWED $ttl_in_keyfile
3663 _ACEOF
3666 configpath="/var/named"
3667 # Check whether --enable-configpath was given.
3668 if test "${enable_configpath+set}" = set; then
3669 enableval=$enable_configpath; configpath=$enableval
3672 case "$configpath" in
3673 yes)
3674 configpath="/var/named"
3677 configpath=""
3681 esac
3683 cat >>confdefs.h <<_ACEOF
3684 #define CONFIG_PATH "$configpath/"
3685 _ACEOF
3688 usetree=1
3689 t="T"
3690 # Check whether --enable-tree was given.
3691 if test "${enable_tree+set}" = set; then
3692 enableval=$enable_tree; usetree=$enableval
3695 if test "$usetree" = no
3696 then
3697 usetree=0
3698 t=""
3701 cat >>confdefs.h <<_ACEOF
3702 #define USE_TREE $usetree
3703 _ACEOF
3707 cat >>confdefs.h <<_ACEOF
3708 #define ZKT_VERSION "v$t$PACKAGE_VERSION (c) Feb 2005 - Aug 2009 Holger Zuleger hznet.de"
3709 _ACEOF
3712 ### Checks for libraries.
3715 ### Checks for header files.
3721 ac_header_dirent=no
3722 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3723 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3724 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3725 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 cat >conftest.$ac_ext <<_ACEOF
3730 /* confdefs.h. */
3731 _ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735 #include <sys/types.h>
3736 #include <$ac_hdr>
3739 main ()
3741 if ((DIR *) 0)
3742 return 0;
3744 return 0;
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (ac_try="$ac_compile"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754 (eval "$ac_compile") 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest.$ac_objext; then
3764 eval "$as_ac_Header=yes"
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 eval "$as_ac_Header=no"
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 ac_res=`eval echo '${'$as_ac_Header'}'`
3775 { echo "$as_me:$LINENO: result: $ac_res" >&5
3776 echo "${ECHO_T}$ac_res" >&6; }
3777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3778 cat >>confdefs.h <<_ACEOF
3779 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3780 _ACEOF
3782 ac_header_dirent=$ac_hdr; break
3785 done
3786 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3787 if test $ac_header_dirent = dirent.h; then
3788 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3789 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3790 if test "${ac_cv_search_opendir+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 ac_func_search_save_LIBS=$LIBS
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3801 /* Override any GCC internal prototype to avoid an error.
3802 Use char because int might match the return type of a GCC
3803 builtin and then its argument prototype would still apply. */
3804 #ifdef __cplusplus
3805 extern "C"
3806 #endif
3807 char opendir ();
3809 main ()
3811 return opendir ();
3813 return 0;
3815 _ACEOF
3816 for ac_lib in '' dir; do
3817 if test -z "$ac_lib"; then
3818 ac_res="none required"
3819 else
3820 ac_res=-l$ac_lib
3821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3823 rm -f conftest.$ac_objext conftest$ac_exeext
3824 if { (ac_try="$ac_link"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_link") 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && {
3837 test -z "$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 } && test -s conftest$ac_exeext &&
3840 $as_test_x conftest$ac_exeext; then
3841 ac_cv_search_opendir=$ac_res
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3850 conftest$ac_exeext
3851 if test "${ac_cv_search_opendir+set}" = set; then
3852 break
3854 done
3855 if test "${ac_cv_search_opendir+set}" = set; then
3857 else
3858 ac_cv_search_opendir=no
3860 rm conftest.$ac_ext
3861 LIBS=$ac_func_search_save_LIBS
3863 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3864 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3865 ac_res=$ac_cv_search_opendir
3866 if test "$ac_res" != no; then
3867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3871 else
3872 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3874 if test "${ac_cv_search_opendir+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 ac_func_search_save_LIBS=$LIBS
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 /* Override any GCC internal prototype to avoid an error.
3886 Use char because int might match the return type of a GCC
3887 builtin and then its argument prototype would still apply. */
3888 #ifdef __cplusplus
3889 extern "C"
3890 #endif
3891 char opendir ();
3893 main ()
3895 return opendir ();
3897 return 0;
3899 _ACEOF
3900 for ac_lib in '' x; do
3901 if test -z "$ac_lib"; then
3902 ac_res="none required"
3903 else
3904 ac_res=-l$ac_lib
3905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (ac_try="$ac_link"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_link") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest$ac_exeext &&
3924 $as_test_x conftest$ac_exeext; then
3925 ac_cv_search_opendir=$ac_res
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3934 conftest$ac_exeext
3935 if test "${ac_cv_search_opendir+set}" = set; then
3936 break
3938 done
3939 if test "${ac_cv_search_opendir+set}" = set; then
3941 else
3942 ac_cv_search_opendir=no
3944 rm conftest.$ac_ext
3945 LIBS=$ac_func_search_save_LIBS
3947 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3948 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3949 ac_res=$ac_cv_search_opendir
3950 if test "$ac_res" != no; then
3951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3957 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3958 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3959 if test "${ac_cv_header_stdc+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 #include <stdlib.h>
3969 #include <stdarg.h>
3970 #include <string.h>
3971 #include <float.h>
3974 main ()
3978 return 0;
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 ac_cv_header_stdc=yes
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 ac_cv_header_stdc=no
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 if test $ac_cv_header_stdc = yes; then
4009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h. */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 #include <string.h>
4018 _ACEOF
4019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4020 $EGREP "memchr" >/dev/null 2>&1; then
4022 else
4023 ac_cv_header_stdc=no
4025 rm -f conftest*
4029 if test $ac_cv_header_stdc = yes; then
4030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4031 cat >conftest.$ac_ext <<_ACEOF
4032 /* confdefs.h. */
4033 _ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 #include <stdlib.h>
4039 _ACEOF
4040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041 $EGREP "free" >/dev/null 2>&1; then
4043 else
4044 ac_cv_header_stdc=no
4046 rm -f conftest*
4050 if test $ac_cv_header_stdc = yes; then
4051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4052 if test "$cross_compiling" = yes; then
4054 else
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <ctype.h>
4062 #include <stdlib.h>
4063 #if ((' ' & 0x0FF) == 0x020)
4064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4066 #else
4067 # define ISLOWER(c) \
4068 (('a' <= (c) && (c) <= 'i') \
4069 || ('j' <= (c) && (c) <= 'r') \
4070 || ('s' <= (c) && (c) <= 'z'))
4071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4072 #endif
4074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4076 main ()
4078 int i;
4079 for (i = 0; i < 256; i++)
4080 if (XOR (islower (i), ISLOWER (i))
4081 || toupper (i) != TOUPPER (i))
4082 return 2;
4083 return 0;
4085 _ACEOF
4086 rm -f conftest$ac_exeext
4087 if { (ac_try="$ac_link"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_link") 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4107 else
4108 echo "$as_me: program exited with status $ac_status" >&5
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 ( exit $ac_status )
4113 ac_cv_header_stdc=no
4115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4121 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4122 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4123 if test $ac_cv_header_stdc = yes; then
4125 cat >>confdefs.h <<\_ACEOF
4126 #define STDC_HEADERS 1
4127 _ACEOF
4143 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
4145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 ac_res=`eval echo '${'$as_ac_Header'}'`
4153 { echo "$as_me:$LINENO: result: $ac_res" >&5
4154 echo "${ECHO_T}$ac_res" >&6; }
4155 else
4156 # Is the header compilable?
4157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4159 cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 $ac_includes_default
4166 #include <$ac_header>
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_compile") 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && {
4182 test -z "$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 } && test -s conftest.$ac_objext; then
4185 ac_header_compiler=yes
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 ac_header_compiler=no
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4195 echo "${ECHO_T}$ac_header_compiler" >&6; }
4197 # Is the header present?
4198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <$ac_header>
4207 _ACEOF
4208 if { (ac_try="$ac_cpp conftest.$ac_ext"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null && {
4221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4222 test ! -s conftest.err
4223 }; then
4224 ac_header_preproc=yes
4225 else
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_header_preproc=no
4232 rm -f conftest.err conftest.$ac_ext
4233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4234 echo "${ECHO_T}$ac_header_preproc" >&6; }
4236 # So? What about this header?
4237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4238 yes:no: )
4239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4243 ac_header_preproc=yes
4245 no:yes:* )
4246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4258 ( cat <<\_ASBOX
4259 ## -------------------------------------- ##
4260 ## Report this to Holger Zuleger hznet.de ##
4261 ## -------------------------------------- ##
4262 _ASBOX
4263 ) | sed "s/^/$as_me: WARNING: /" >&2
4265 esac
4266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 eval "$as_ac_Header=\$ac_header_preproc"
4273 ac_res=`eval echo '${'$as_ac_Header'}'`
4274 { echo "$as_me:$LINENO: result: $ac_res" >&5
4275 echo "${ECHO_T}$ac_res" >&6; }
4278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4279 cat >>confdefs.h <<_ACEOF
4280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281 _ACEOF
4285 done
4289 ### Checks for typedefs, structures, and compiler characteristics.
4290 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4291 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4292 if test "${ac_cv_c_const+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4303 main ()
4305 /* FIXME: Include the comments suggested by Paul. */
4306 #ifndef __cplusplus
4307 /* Ultrix mips cc rejects this. */
4308 typedef int charset[2];
4309 const charset cs;
4310 /* SunOS 4.1.1 cc rejects this. */
4311 char const *const *pcpcc;
4312 char **ppc;
4313 /* NEC SVR4.0.2 mips cc rejects this. */
4314 struct point {int x, y;};
4315 static struct point const zero = {0,0};
4316 /* AIX XL C 1.02.0.0 rejects this.
4317 It does not let you subtract one const X* pointer from another in
4318 an arm of an if-expression whose if-part is not a constant
4319 expression */
4320 const char *g = "string";
4321 pcpcc = &g + (g ? g-g : 0);
4322 /* HPUX 7.0 cc rejects these. */
4323 ++pcpcc;
4324 ppc = (char**) pcpcc;
4325 pcpcc = (char const *const *) ppc;
4326 { /* SCO 3.2v4 cc rejects this. */
4327 char *t;
4328 char const *s = 0 ? (char *) 0 : (char const *) 0;
4330 *t++ = 0;
4331 if (s) return 0;
4333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4334 int x[] = {25, 17};
4335 const int *foo = &x[0];
4336 ++foo;
4338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4339 typedef const int *iptr;
4340 iptr p = 0;
4341 ++p;
4343 { /* AIX XL C 1.02.0.0 rejects this saying
4344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4345 struct s { int j; const int *ap[3]; };
4346 struct s *b; b->j = 5;
4348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4349 const int foo = 10;
4350 if (!foo) return 0;
4352 return !cs[0] && !zero.x;
4353 #endif
4356 return 0;
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_compile") 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && {
4373 test -z "$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest.$ac_objext; then
4376 ac_cv_c_const=yes
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_cv_c_const=no
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4387 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4388 if test $ac_cv_c_const = no; then
4390 cat >>confdefs.h <<\_ACEOF
4391 #define const
4392 _ACEOF
4396 { echo "$as_me:$LINENO: checking for size_t" >&5
4397 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4398 if test "${ac_cv_type_size_t+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 $ac_includes_default
4408 typedef size_t ac__type_new_;
4410 main ()
4412 if ((ac__type_new_ *) 0)
4413 return 0;
4414 if (sizeof (ac__type_new_))
4415 return 0;
4417 return 0;
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (ac_try="$ac_compile"
4422 case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_compile") 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } && {
4434 test -z "$ac_c_werror_flag" ||
4435 test ! -s conftest.err
4436 } && test -s conftest.$ac_objext; then
4437 ac_cv_type_size_t=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 ac_cv_type_size_t=no
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4448 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4449 if test $ac_cv_type_size_t = yes; then
4451 else
4453 cat >>confdefs.h <<_ACEOF
4454 #define size_t unsigned int
4455 _ACEOF
4459 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4460 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4461 if test "${ac_cv_header_time+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <sys/types.h>
4471 #include <sys/time.h>
4472 #include <time.h>
4475 main ()
4477 if ((struct tm *) 0)
4478 return 0;
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (ac_try="$ac_compile"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_compile") 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } && {
4497 test -z "$ac_c_werror_flag" ||
4498 test ! -s conftest.err
4499 } && test -s conftest.$ac_objext; then
4500 ac_cv_header_time=yes
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 ac_cv_header_time=no
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4511 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4512 if test $ac_cv_header_time = yes; then
4514 cat >>confdefs.h <<\_ACEOF
4515 #define TIME_WITH_SYS_TIME 1
4516 _ACEOF
4520 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4521 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4522 if test "${ac_cv_struct_tm+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <sys/types.h>
4532 #include <time.h>
4535 main ()
4537 struct tm tm;
4538 int *p = &tm.tm_sec;
4539 return !p;
4541 return 0;
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (ac_try="$ac_compile"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_compile") 2>conftest.er1
4552 ac_status=$?
4553 grep -v '^ *+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } && {
4558 test -z "$ac_c_werror_flag" ||
4559 test ! -s conftest.err
4560 } && test -s conftest.$ac_objext; then
4561 ac_cv_struct_tm=time.h
4562 else
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4566 ac_cv_struct_tm=sys/time.h
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4572 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4573 if test $ac_cv_struct_tm = sys/time.h; then
4575 cat >>confdefs.h <<\_ACEOF
4576 #define TM_IN_SYS_TIME 1
4577 _ACEOF
4581 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4582 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
4583 if test "${ac_cv_type_uid_t+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4594 _ACEOF
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "uid_t" >/dev/null 2>&1; then
4597 ac_cv_type_uid_t=yes
4598 else
4599 ac_cv_type_uid_t=no
4601 rm -f conftest*
4604 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4605 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
4606 if test $ac_cv_type_uid_t = no; then
4608 cat >>confdefs.h <<\_ACEOF
4609 #define uid_t int
4610 _ACEOF
4613 cat >>confdefs.h <<\_ACEOF
4614 #define gid_t int
4615 _ACEOF
4621 ### Checks for library functions.
4622 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4623 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
4624 if test "${ac_cv_func_closedir_void+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 if test "$cross_compiling" = yes; then
4628 ac_cv_func_closedir_void=yes
4629 else
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4637 #include <$ac_header_dirent>
4638 #ifndef __cplusplus
4639 int closedir ();
4640 #endif
4643 main ()
4645 return closedir (opendir (".")) != 0;
4647 return 0;
4649 _ACEOF
4650 rm -f conftest$ac_exeext
4651 if { (ac_try="$ac_link"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_link") 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4661 { (case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_try") 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_func_closedir_void=no
4671 else
4672 echo "$as_me: program exited with status $ac_status" >&5
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ( exit $ac_status )
4677 ac_cv_func_closedir_void=yes
4679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4684 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4685 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
4686 if test $ac_cv_func_closedir_void = yes; then
4688 cat >>confdefs.h <<\_ACEOF
4689 #define CLOSEDIR_VOID 1
4690 _ACEOF
4694 { echo "$as_me:$LINENO: checking for error_at_line" >&5
4695 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
4696 if test "${ac_cv_lib_error_at_line+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 #include <error.h>
4707 main ()
4709 error_at_line (0, 0, "", 0, "an error occurred");
4711 return 0;
4713 _ACEOF
4714 rm -f conftest.$ac_objext conftest$ac_exeext
4715 if { (ac_try="$ac_link"
4716 case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719 esac
4720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4721 (eval "$ac_link") 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && {
4728 test -z "$ac_c_werror_flag" ||
4729 test ! -s conftest.err
4730 } && test -s conftest$ac_exeext &&
4731 $as_test_x conftest$ac_exeext; then
4732 ac_cv_lib_error_at_line=yes
4733 else
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4737 ac_cv_lib_error_at_line=no
4740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4741 conftest$ac_exeext conftest.$ac_ext
4743 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4744 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
4745 if test $ac_cv_lib_error_at_line = no; then
4746 case " $LIBOBJS " in
4747 *" error.$ac_objext "* ) ;;
4748 *) LIBOBJS="$LIBOBJS error.$ac_objext"
4750 esac
4755 for ac_header in stdlib.h
4757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_res=`eval echo '${'$as_ac_Header'}'`
4765 { echo "$as_me:$LINENO: result: $ac_res" >&5
4766 echo "${ECHO_T}$ac_res" >&6; }
4767 else
4768 # Is the header compilable?
4769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 $ac_includes_default
4778 #include <$ac_header>
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4782 case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785 esac
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_compile") 2>conftest.er1
4788 ac_status=$?
4789 grep -v '^ *+' conftest.er1 >conftest.err
4790 rm -f conftest.er1
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } && {
4794 test -z "$ac_c_werror_flag" ||
4795 test ! -s conftest.err
4796 } && test -s conftest.$ac_objext; then
4797 ac_header_compiler=yes
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 ac_header_compiler=no
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4807 echo "${ECHO_T}$ac_header_compiler" >&6; }
4809 # Is the header present?
4810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <$ac_header>
4819 _ACEOF
4820 if { (ac_try="$ac_cpp conftest.$ac_ext"
4821 case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } >/dev/null && {
4833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4834 test ! -s conftest.err
4835 }; then
4836 ac_header_preproc=yes
4837 else
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 ac_header_preproc=no
4844 rm -f conftest.err conftest.$ac_ext
4845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4846 echo "${ECHO_T}$ac_header_preproc" >&6; }
4848 # So? What about this header?
4849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4850 yes:no: )
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4855 ac_header_preproc=yes
4857 no:yes:* )
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4870 ( cat <<\_ASBOX
4871 ## -------------------------------------- ##
4872 ## Report this to Holger Zuleger hznet.de ##
4873 ## -------------------------------------- ##
4874 _ASBOX
4875 ) | sed "s/^/$as_me: WARNING: /" >&2
4877 esac
4878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 eval "$as_ac_Header=\$ac_header_preproc"
4885 ac_res=`eval echo '${'$as_ac_Header'}'`
4886 { echo "$as_me:$LINENO: result: $ac_res" >&5
4887 echo "${ECHO_T}$ac_res" >&6; }
4890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4891 cat >>confdefs.h <<_ACEOF
4892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4893 _ACEOF
4897 done
4899 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4900 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
4901 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 if test "$cross_compiling" = yes; then
4905 ac_cv_func_malloc_0_nonnull=no
4906 else
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4914 # include <stdlib.h>
4915 #else
4916 char *malloc ();
4917 #endif
4920 main ()
4922 return ! malloc (0);
4924 return 0;
4926 _ACEOF
4927 rm -f conftest$ac_exeext
4928 if { (ac_try="$ac_link"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_link") 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_cv_func_malloc_0_nonnull=yes
4948 else
4949 echo "$as_me: program exited with status $ac_status" >&5
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 ( exit $ac_status )
4954 ac_cv_func_malloc_0_nonnull=no
4956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4961 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4962 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
4963 if test $ac_cv_func_malloc_0_nonnull = yes; then
4965 cat >>confdefs.h <<\_ACEOF
4966 #define HAVE_MALLOC 1
4967 _ACEOF
4969 else
4970 cat >>confdefs.h <<\_ACEOF
4971 #define HAVE_MALLOC 0
4972 _ACEOF
4974 case " $LIBOBJS " in
4975 *" malloc.$ac_objext "* ) ;;
4976 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4978 esac
4981 cat >>confdefs.h <<\_ACEOF
4982 #define malloc rpl_malloc
4983 _ACEOF
4993 for ac_header in $ac_header_list
4995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 ac_res=`eval echo '${'$as_ac_Header'}'`
5003 { echo "$as_me:$LINENO: result: $ac_res" >&5
5004 echo "${ECHO_T}$ac_res" >&6; }
5005 else
5006 # Is the header compilable?
5007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 $ac_includes_default
5016 #include <$ac_header>
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (ac_try="$ac_compile"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_compile") 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && {
5032 test -z "$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5034 } && test -s conftest.$ac_objext; then
5035 ac_header_compiler=yes
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_header_compiler=no
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5045 echo "${ECHO_T}$ac_header_compiler" >&6; }
5047 # Is the header present?
5048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
5057 _ACEOF
5058 if { (ac_try="$ac_cpp conftest.$ac_ext"
5059 case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062 esac
5063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null && {
5071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5072 test ! -s conftest.err
5073 }; then
5074 ac_header_preproc=yes
5075 else
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_header_preproc=no
5082 rm -f conftest.err conftest.$ac_ext
5083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5084 echo "${ECHO_T}$ac_header_preproc" >&6; }
5086 # So? What about this header?
5087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5088 yes:no: )
5089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5093 ac_header_preproc=yes
5095 no:yes:* )
5096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5108 ( cat <<\_ASBOX
5109 ## -------------------------------------- ##
5110 ## Report this to Holger Zuleger hznet.de ##
5111 ## -------------------------------------- ##
5112 _ASBOX
5113 ) | sed "s/^/$as_me: WARNING: /" >&2
5115 esac
5116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 eval "$as_ac_Header=\$ac_header_preproc"
5123 ac_res=`eval echo '${'$as_ac_Header'}'`
5124 { echo "$as_me:$LINENO: result: $ac_res" >&5
5125 echo "${ECHO_T}$ac_res" >&6; }
5128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5129 cat >>confdefs.h <<_ACEOF
5130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5131 _ACEOF
5135 done
5145 for ac_func in $ac_func_list
5147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5161 #define $ac_func innocuous_$ac_func
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char $ac_func (); below.
5165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 <limits.h> exists even on freestanding compilers. */
5168 #ifdef __STDC__
5169 # include <limits.h>
5170 #else
5171 # include <assert.h>
5172 #endif
5174 #undef $ac_func
5176 /* Override any GCC internal prototype to avoid an error.
5177 Use char because int might match the return type of a GCC
5178 builtin and then its argument prototype would still apply. */
5179 #ifdef __cplusplus
5180 extern "C"
5181 #endif
5182 char $ac_func ();
5183 /* The GNU C library defines this for functions which it implements
5184 to always fail with ENOSYS. Some functions are actually named
5185 something starting with __ and the normal name is an alias. */
5186 #if defined __stub_$ac_func || defined __stub___$ac_func
5187 choke me
5188 #endif
5191 main ()
5193 return $ac_func ();
5195 return 0;
5197 _ACEOF
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (ac_try="$ac_link"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_link") 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && {
5212 test -z "$ac_c_werror_flag" ||
5213 test ! -s conftest.err
5214 } && test -s conftest$ac_exeext &&
5215 $as_test_x conftest$ac_exeext; then
5216 eval "$as_ac_var=yes"
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 eval "$as_ac_var=no"
5224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5225 conftest$ac_exeext conftest.$ac_ext
5227 ac_res=`eval echo '${'$as_ac_var'}'`
5228 { echo "$as_me:$LINENO: result: $ac_res" >&5
5229 echo "${ECHO_T}$ac_res" >&6; }
5230 if test `eval echo '${'$as_ac_var'}'` = yes; then
5231 cat >>confdefs.h <<_ACEOF
5232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5233 _ACEOF
5236 done
5254 { echo "$as_me:$LINENO: checking for working mktime" >&5
5255 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
5256 if test "${ac_cv_func_working_mktime+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259 if test "$cross_compiling" = yes; then
5260 ac_cv_func_working_mktime=no
5261 else
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 /* Test program from Paul Eggert and Tony Leneis. */
5269 #ifdef TIME_WITH_SYS_TIME
5270 # include <sys/time.h>
5271 # include <time.h>
5272 #else
5273 # ifdef HAVE_SYS_TIME_H
5274 # include <sys/time.h>
5275 # else
5276 # include <time.h>
5277 # endif
5278 #endif
5280 #include <stdlib.h>
5282 #ifdef HAVE_UNISTD_H
5283 # include <unistd.h>
5284 #endif
5286 #ifndef HAVE_ALARM
5287 # define alarm(X) /* empty */
5288 #endif
5290 /* Work around redefinition to rpl_putenv by other config tests. */
5291 #undef putenv
5293 static time_t time_t_max;
5294 static time_t time_t_min;
5296 /* Values we'll use to set the TZ environment variable. */
5297 static char *tz_strings[] = {
5298 (char *) 0, "TZ=GMT0", "TZ=JST-9",
5299 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5301 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5303 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
5304 Based on a problem report from Andreas Jaeger. */
5305 static int
5306 spring_forward_gap ()
5308 /* glibc (up to about 1998-10-07) failed this test. */
5309 struct tm tm;
5311 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5312 instead of "TZ=America/Vancouver" in order to detect the bug even
5313 on systems that don't support the Olson extension, or don't have the
5314 full zoneinfo tables installed. */
5315 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5317 tm.tm_year = 98;
5318 tm.tm_mon = 3;
5319 tm.tm_mday = 5;
5320 tm.tm_hour = 2;
5321 tm.tm_min = 0;
5322 tm.tm_sec = 0;
5323 tm.tm_isdst = -1;
5324 return mktime (&tm) != (time_t) -1;
5327 static int
5328 mktime_test1 (now)
5329 time_t now;
5331 struct tm *lt;
5332 return ! (lt = localtime (&now)) || mktime (lt) == now;
5335 static int
5336 mktime_test (now)
5337 time_t now;
5339 return (mktime_test1 (now)
5340 && mktime_test1 ((time_t) (time_t_max - now))
5341 && mktime_test1 ((time_t) (time_t_min + now)));
5344 static int
5345 irix_6_4_bug ()
5347 /* Based on code from Ariel Faigon. */
5348 struct tm tm;
5349 tm.tm_year = 96;
5350 tm.tm_mon = 3;
5351 tm.tm_mday = 0;
5352 tm.tm_hour = 0;
5353 tm.tm_min = 0;
5354 tm.tm_sec = 0;
5355 tm.tm_isdst = -1;
5356 mktime (&tm);
5357 return tm.tm_mon == 2 && tm.tm_mday == 31;
5360 static int
5361 bigtime_test (j)
5362 int j;
5364 struct tm tm;
5365 time_t now;
5366 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5367 now = mktime (&tm);
5368 if (now != (time_t) -1)
5370 struct tm *lt = localtime (&now);
5371 if (! (lt
5372 && lt->tm_year == tm.tm_year
5373 && lt->tm_mon == tm.tm_mon
5374 && lt->tm_mday == tm.tm_mday
5375 && lt->tm_hour == tm.tm_hour
5376 && lt->tm_min == tm.tm_min
5377 && lt->tm_sec == tm.tm_sec
5378 && lt->tm_yday == tm.tm_yday
5379 && lt->tm_wday == tm.tm_wday
5380 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5381 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5382 return 0;
5384 return 1;
5387 static int
5388 year_2050_test ()
5390 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
5391 ignoring leap seconds. */
5392 unsigned long int answer = 2527315200UL;
5394 struct tm tm;
5395 time_t t;
5396 tm.tm_year = 2050 - 1900;
5397 tm.tm_mon = 2 - 1;
5398 tm.tm_mday = 1;
5399 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
5400 tm.tm_isdst = -1;
5402 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5403 instead of "TZ=America/Vancouver" in order to detect the bug even
5404 on systems that don't support the Olson extension, or don't have the
5405 full zoneinfo tables installed. */
5406 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5408 t = mktime (&tm);
5410 /* Check that the result is either a failure, or close enough
5411 to the correct answer that we can assume the discrepancy is
5412 due to leap seconds. */
5413 return (t == (time_t) -1
5414 || (0 < t && answer - 120 <= t && t <= answer + 120));
5418 main ()
5420 time_t t, delta;
5421 int i, j;
5423 /* This test makes some buggy mktime implementations loop.
5424 Give up after 60 seconds; a mktime slower than that
5425 isn't worth using anyway. */
5426 alarm (60);
5428 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5429 continue;
5430 time_t_max--;
5431 if ((time_t) -1 < 0)
5432 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
5433 continue;
5434 delta = time_t_max / 997; /* a suitable prime number */
5435 for (i = 0; i < N_STRINGS; i++)
5437 if (tz_strings[i])
5438 putenv (tz_strings[i]);
5440 for (t = 0; t <= time_t_max - delta; t += delta)
5441 if (! mktime_test (t))
5442 return 1;
5443 if (! (mktime_test ((time_t) 1)
5444 && mktime_test ((time_t) (60 * 60))
5445 && mktime_test ((time_t) (60 * 60 * 24))))
5446 return 1;
5448 for (j = 1; 0 < j; j *= 2)
5449 if (! bigtime_test (j))
5450 return 1;
5451 if (! bigtime_test (j - 1))
5452 return 1;
5454 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
5456 _ACEOF
5457 rm -f conftest$ac_exeext
5458 if { (ac_try="$ac_link"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_link") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5468 { (case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_try") 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_func_working_mktime=yes
5478 else
5479 echo "$as_me: program exited with status $ac_status" >&5
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ( exit $ac_status )
5484 ac_cv_func_working_mktime=no
5486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5491 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
5492 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
5493 if test $ac_cv_func_working_mktime = no; then
5494 case " $LIBOBJS " in
5495 *" mktime.$ac_objext "* ) ;;
5496 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
5498 esac
5502 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5503 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
5504 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 rm -f conftest.sym conftest.file
5508 echo >conftest.file
5509 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5510 if test "$cross_compiling" = yes; then
5511 ac_cv_func_lstat_dereferences_slashed_symlink=no
5512 else
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5521 main ()
5523 struct stat sbuf;
5524 /* Linux will dereference the symlink and fail.
5525 That is better in the sense that it means we will not
5526 have to compile and use the lstat wrapper. */
5527 return lstat ("conftest.sym/", &sbuf) == 0;
5529 return 0;
5531 _ACEOF
5532 rm -f conftest$ac_exeext
5533 if { (ac_try="$ac_link"
5534 case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537 esac
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_link") 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5543 { (case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_try") 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5553 else
5554 echo "$as_me: program exited with status $ac_status" >&5
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 ( exit $ac_status )
5559 ac_cv_func_lstat_dereferences_slashed_symlink=no
5561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5565 else
5566 # If the `ln -s' command failed, then we probably don't even
5567 # have an lstat function.
5568 ac_cv_func_lstat_dereferences_slashed_symlink=no
5570 rm -f conftest.sym conftest.file
5573 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5574 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5576 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5578 cat >>confdefs.h <<_ACEOF
5579 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5580 _ACEOF
5583 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5584 case " $LIBOBJS " in
5585 *" lstat.$ac_objext "* ) ;;
5586 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5588 esac
5592 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5593 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
5594 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 if test "$cross_compiling" = yes; then
5598 ac_cv_func_stat_empty_string_bug=yes
5599 else
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5608 main ()
5610 struct stat sbuf;
5611 return stat ("", &sbuf) == 0;
5613 return 0;
5615 _ACEOF
5616 rm -f conftest$ac_exeext
5617 if { (ac_try="$ac_link"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_link") 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627 { (case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_try") 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_cv_func_stat_empty_string_bug=no
5637 else
5638 echo "$as_me: program exited with status $ac_status" >&5
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ( exit $ac_status )
5643 ac_cv_func_stat_empty_string_bug=yes
5645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5650 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5651 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
5652 if test $ac_cv_func_stat_empty_string_bug = yes; then
5653 case " $LIBOBJS " in
5654 *" stat.$ac_objext "* ) ;;
5655 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
5657 esac
5660 cat >>confdefs.h <<_ACEOF
5661 #define HAVE_STAT_EMPTY_STRING_BUG 1
5662 _ACEOF
5667 for ac_func in strftime
5669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5683 #define $ac_func innocuous_$ac_func
5685 /* System header to define __stub macros and hopefully few prototypes,
5686 which can conflict with char $ac_func (); below.
5687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5688 <limits.h> exists even on freestanding compilers. */
5690 #ifdef __STDC__
5691 # include <limits.h>
5692 #else
5693 # include <assert.h>
5694 #endif
5696 #undef $ac_func
5698 /* Override any GCC internal prototype to avoid an error.
5699 Use char because int might match the return type of a GCC
5700 builtin and then its argument prototype would still apply. */
5701 #ifdef __cplusplus
5702 extern "C"
5703 #endif
5704 char $ac_func ();
5705 /* The GNU C library defines this for functions which it implements
5706 to always fail with ENOSYS. Some functions are actually named
5707 something starting with __ and the normal name is an alias. */
5708 #if defined __stub_$ac_func || defined __stub___$ac_func
5709 choke me
5710 #endif
5713 main ()
5715 return $ac_func ();
5717 return 0;
5719 _ACEOF
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (ac_try="$ac_link"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_link") 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest$ac_exeext &&
5737 $as_test_x conftest$ac_exeext; then
5738 eval "$as_ac_var=yes"
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 eval "$as_ac_var=no"
5746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5747 conftest$ac_exeext conftest.$ac_ext
5749 ac_res=`eval echo '${'$as_ac_var'}'`
5750 { echo "$as_me:$LINENO: result: $ac_res" >&5
5751 echo "${ECHO_T}$ac_res" >&6; }
5752 if test `eval echo '${'$as_ac_var'}'` = yes; then
5753 cat >>confdefs.h <<_ACEOF
5754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5755 _ACEOF
5757 else
5758 # strftime is in -lintl on SCO UNIX.
5759 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5760 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
5761 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 ac_check_lib_save_LIBS=$LIBS
5765 LIBS="-lintl $LIBS"
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5776 #ifdef __cplusplus
5777 extern "C"
5778 #endif
5779 char strftime ();
5781 main ()
5783 return strftime ();
5785 return 0;
5787 _ACEOF
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (ac_try="$ac_link"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_link") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest$ac_exeext &&
5805 $as_test_x conftest$ac_exeext; then
5806 ac_cv_lib_intl_strftime=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_cv_lib_intl_strftime=no
5814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5815 conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5818 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5819 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
5820 if test $ac_cv_lib_intl_strftime = yes; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_STRFTIME 1
5823 _ACEOF
5825 LIBS="-lintl $LIBS"
5829 done
5839 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
5840 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
5841 if test "${ac_cv_func_utime_null+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 rm -f conftest.data; >conftest.data
5845 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
5846 if test "$cross_compiling" = yes; then
5847 ac_cv_func_utime_null=no
5848 else
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5856 #ifdef HAVE_UTIME_H
5857 # include <utime.h>
5858 #endif
5860 main ()
5862 struct stat s, t;
5863 return ! (stat ("conftest.data", &s) == 0
5864 && utime ("conftest.data", 0) == 0
5865 && stat ("conftest.data", &t) == 0
5866 && t.st_mtime >= s.st_mtime
5867 && t.st_mtime - s.st_mtime < 120);
5869 return 0;
5871 _ACEOF
5872 rm -f conftest$ac_exeext
5873 if { (ac_try="$ac_link"
5874 case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_link") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_func_utime_null=yes
5893 else
5894 echo "$as_me: program exited with status $ac_status" >&5
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ( exit $ac_status )
5899 ac_cv_func_utime_null=no
5901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5906 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
5907 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
5908 if test $ac_cv_func_utime_null = yes; then
5910 cat >>confdefs.h <<\_ACEOF
5911 #define HAVE_UTIME_NULL 1
5912 _ACEOF
5915 rm -f conftest.data
5918 for ac_func in vprintf
5920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5934 #define $ac_func innocuous_$ac_func
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char $ac_func (); below.
5938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 <limits.h> exists even on freestanding compilers. */
5941 #ifdef __STDC__
5942 # include <limits.h>
5943 #else
5944 # include <assert.h>
5945 #endif
5947 #undef $ac_func
5949 /* Override any GCC internal prototype to avoid an error.
5950 Use char because int might match the return type of a GCC
5951 builtin and then its argument prototype would still apply. */
5952 #ifdef __cplusplus
5953 extern "C"
5954 #endif
5955 char $ac_func ();
5956 /* The GNU C library defines this for functions which it implements
5957 to always fail with ENOSYS. Some functions are actually named
5958 something starting with __ and the normal name is an alias. */
5959 #if defined __stub_$ac_func || defined __stub___$ac_func
5960 choke me
5961 #endif
5964 main ()
5966 return $ac_func ();
5968 return 0;
5970 _ACEOF
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (ac_try="$ac_link"
5973 case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_link") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest$ac_exeext &&
5988 $as_test_x conftest$ac_exeext; then
5989 eval "$as_ac_var=yes"
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 eval "$as_ac_var=no"
5997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5998 conftest$ac_exeext conftest.$ac_ext
6000 ac_res=`eval echo '${'$as_ac_var'}'`
6001 { echo "$as_me:$LINENO: result: $ac_res" >&5
6002 echo "${ECHO_T}$ac_res" >&6; }
6003 if test `eval echo '${'$as_ac_var'}'` = yes; then
6004 cat >>confdefs.h <<_ACEOF
6005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6006 _ACEOF
6008 { echo "$as_me:$LINENO: checking for _doprnt" >&5
6009 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
6010 if test "${ac_cv_func__doprnt+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6021 #define _doprnt innocuous__doprnt
6023 /* System header to define __stub macros and hopefully few prototypes,
6024 which can conflict with char _doprnt (); below.
6025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6026 <limits.h> exists even on freestanding compilers. */
6028 #ifdef __STDC__
6029 # include <limits.h>
6030 #else
6031 # include <assert.h>
6032 #endif
6034 #undef _doprnt
6036 /* Override any GCC internal prototype to avoid an error.
6037 Use char because int might match the return type of a GCC
6038 builtin and then its argument prototype would still apply. */
6039 #ifdef __cplusplus
6040 extern "C"
6041 #endif
6042 char _doprnt ();
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined __stub__doprnt || defined __stub____doprnt
6047 choke me
6048 #endif
6051 main ()
6053 return _doprnt ();
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext conftest$ac_exeext
6059 if { (ac_try="$ac_link"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_link") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest$ac_exeext &&
6075 $as_test_x conftest$ac_exeext; then
6076 ac_cv_func__doprnt=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_cv_func__doprnt=no
6084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6085 conftest$ac_exeext conftest.$ac_ext
6087 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6088 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
6089 if test $ac_cv_func__doprnt = yes; then
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_DOPRNT 1
6093 _ACEOF
6098 done
6101 # 2008-07-04 getopt_long added
6102 # 2009-07-30 timegm added
6118 for ac_func in getopt_long gettimeofday memset putenv socket strcasecmp strchr strdup strerror strncasecmp strrchr tzset utime getuid timegm
6120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6134 #define $ac_func innocuous_$ac_func
6136 /* System header to define __stub macros and hopefully few prototypes,
6137 which can conflict with char $ac_func (); below.
6138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6139 <limits.h> exists even on freestanding compilers. */
6141 #ifdef __STDC__
6142 # include <limits.h>
6143 #else
6144 # include <assert.h>
6145 #endif
6147 #undef $ac_func
6149 /* Override any GCC internal prototype to avoid an error.
6150 Use char because int might match the return type of a GCC
6151 builtin and then its argument prototype would still apply. */
6152 #ifdef __cplusplus
6153 extern "C"
6154 #endif
6155 char $ac_func ();
6156 /* The GNU C library defines this for functions which it implements
6157 to always fail with ENOSYS. Some functions are actually named
6158 something starting with __ and the normal name is an alias. */
6159 #if defined __stub_$ac_func || defined __stub___$ac_func
6160 choke me
6161 #endif
6164 main ()
6166 return $ac_func ();
6168 return 0;
6170 _ACEOF
6171 rm -f conftest.$ac_objext conftest$ac_exeext
6172 if { (ac_try="$ac_link"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_link") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest$ac_exeext &&
6188 $as_test_x conftest$ac_exeext; then
6189 eval "$as_ac_var=yes"
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 eval "$as_ac_var=no"
6197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6198 conftest$ac_exeext conftest.$ac_ext
6200 ac_res=`eval echo '${'$as_ac_var'}'`
6201 { echo "$as_me:$LINENO: result: $ac_res" >&5
6202 echo "${ECHO_T}$ac_res" >&6; }
6203 if test `eval echo '${'$as_ac_var'}'` = yes; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6206 _ACEOF
6209 done
6213 ac_config_files="$ac_config_files Makefile"
6215 cat >confcache <<\_ACEOF
6216 # This file is a shell script that caches the results of configure
6217 # tests run on this system so they can be shared between configure
6218 # scripts and configure runs, see configure's option --config-cache.
6219 # It is not useful on other systems. If it contains results you don't
6220 # want to keep, you may remove or edit it.
6222 # config.status only pays attention to the cache file if you give it
6223 # the --recheck option to rerun configure.
6225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6227 # following values.
6229 _ACEOF
6231 # The following way of writing the cache mishandles newlines in values,
6232 # but we know of no workaround that is simple, portable, and efficient.
6233 # So, we kill variables containing newlines.
6234 # Ultrix sh set writes to stderr and can't be redirected directly,
6235 # and sets the high bit in the cache file unless we assign to the vars.
6237 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6238 eval ac_val=\$$ac_var
6239 case $ac_val in #(
6240 *${as_nl}*)
6241 case $ac_var in #(
6242 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6243 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6244 esac
6245 case $ac_var in #(
6246 _ | IFS | as_nl) ;; #(
6247 *) $as_unset $ac_var ;;
6248 esac ;;
6249 esac
6250 done
6252 (set) 2>&1 |
6253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6254 *${as_nl}ac_space=\ *)
6255 # `set' does not quote correctly, so add quotes (double-quote
6256 # substitution turns \\\\ into \\, and sed turns \\ into \).
6257 sed -n \
6258 "s/'/'\\\\''/g;
6259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6260 ;; #(
6262 # `set' quotes correctly as required by POSIX, so do not add quotes.
6263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6265 esac |
6266 sort
6268 sed '
6269 /^ac_cv_env_/b end
6270 t clear
6271 :clear
6272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6273 t end
6274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6275 :end' >>confcache
6276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6277 if test -w "$cache_file"; then
6278 test "x$cache_file" != "x/dev/null" &&
6279 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6280 echo "$as_me: updating cache $cache_file" >&6;}
6281 cat confcache >$cache_file
6282 else
6283 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6284 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6287 rm -f confcache
6289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6290 # Let make expand exec_prefix.
6291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6293 DEFS=-DHAVE_CONFIG_H
6295 ac_libobjs=
6296 ac_ltlibobjs=
6297 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6298 # 1. Remove the extension, and $U if already installed.
6299 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6300 ac_i=`echo "$ac_i" | sed "$ac_script"`
6301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6302 # will be set to the directory where LIBOBJS objects are built.
6303 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6304 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6305 done
6306 LIBOBJS=$ac_libobjs
6308 LTLIBOBJS=$ac_ltlibobjs
6312 : ${CONFIG_STATUS=./config.status}
6313 ac_clean_files_save=$ac_clean_files
6314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6317 cat >$CONFIG_STATUS <<_ACEOF
6318 #! $SHELL
6319 # Generated by $as_me.
6320 # Run this file to recreate the current configuration.
6321 # Compiler output produced by configure, useful for debugging
6322 # configure, is in config.log if it exists.
6324 debug=false
6325 ac_cs_recheck=false
6326 ac_cs_silent=false
6327 SHELL=\${CONFIG_SHELL-$SHELL}
6328 _ACEOF
6330 cat >>$CONFIG_STATUS <<\_ACEOF
6331 ## --------------------- ##
6332 ## M4sh Initialization. ##
6333 ## --------------------- ##
6335 # Be more Bourne compatible
6336 DUALCASE=1; export DUALCASE # for MKS sh
6337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6338 emulate sh
6339 NULLCMD=:
6340 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6341 # is contrary to our usage. Disable this feature.
6342 alias -g '${1+"$@"}'='"$@"'
6343 setopt NO_GLOB_SUBST
6344 else
6345 case `(set -o) 2>/dev/null` in
6346 *posix*) set -o posix ;;
6347 esac
6354 # PATH needs CR
6355 # Avoid depending upon Character Ranges.
6356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6359 as_cr_digits='0123456789'
6360 as_cr_alnum=$as_cr_Letters$as_cr_digits
6362 # The user is always right.
6363 if test "${PATH_SEPARATOR+set}" != set; then
6364 echo "#! /bin/sh" >conf$$.sh
6365 echo "exit 0" >>conf$$.sh
6366 chmod +x conf$$.sh
6367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6368 PATH_SEPARATOR=';'
6369 else
6370 PATH_SEPARATOR=:
6372 rm -f conf$$.sh
6375 # Support unset when possible.
6376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6377 as_unset=unset
6378 else
6379 as_unset=false
6383 # IFS
6384 # We need space, tab and new line, in precisely that order. Quoting is
6385 # there to prevent editors from complaining about space-tab.
6386 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6387 # splitting by setting IFS to empty value.)
6388 as_nl='
6390 IFS=" "" $as_nl"
6392 # Find who we are. Look in the path if we contain no directory separator.
6393 case $0 in
6394 *[\\/]* ) as_myself=$0 ;;
6395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6401 done
6402 IFS=$as_save_IFS
6405 esac
6406 # We did not find ourselves, most probably we were run as `sh COMMAND'
6407 # in which case we are not to be found in the path.
6408 if test "x$as_myself" = x; then
6409 as_myself=$0
6411 if test ! -f "$as_myself"; then
6412 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6413 { (exit 1); exit 1; }
6416 # Work around bugs in pre-3.0 UWIN ksh.
6417 for as_var in ENV MAIL MAILPATH
6418 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6419 done
6420 PS1='$ '
6421 PS2='> '
6422 PS4='+ '
6424 # NLS nuisances.
6425 for as_var in \
6426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6428 LC_TELEPHONE LC_TIME
6430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6431 eval $as_var=C; export $as_var
6432 else
6433 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6435 done
6437 # Required to use basename.
6438 if expr a : '\(a\)' >/dev/null 2>&1 &&
6439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6440 as_expr=expr
6441 else
6442 as_expr=false
6445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6446 as_basename=basename
6447 else
6448 as_basename=false
6452 # Name of the executable.
6453 as_me=`$as_basename -- "$0" ||
6454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6455 X"$0" : 'X\(//\)$' \| \
6456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6457 echo X/"$0" |
6458 sed '/^.*\/\([^/][^/]*\)\/*$/{
6459 s//\1/
6462 /^X\/\(\/\/\)$/{
6463 s//\1/
6466 /^X\/\(\/\).*/{
6467 s//\1/
6470 s/.*/./; q'`
6472 # CDPATH.
6473 $as_unset CDPATH
6477 as_lineno_1=$LINENO
6478 as_lineno_2=$LINENO
6479 test "x$as_lineno_1" != "x$as_lineno_2" &&
6480 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6482 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6483 # uniformly replaced by the line number. The first 'sed' inserts a
6484 # line-number line after each line using $LINENO; the second 'sed'
6485 # does the real work. The second script uses 'N' to pair each
6486 # line-number line with the line containing $LINENO, and appends
6487 # trailing '-' during substitution so that $LINENO is not a special
6488 # case at line end.
6489 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6490 # scripts with optimization help from Paolo Bonzini. Blame Lee
6491 # E. McMahon (1931-1989) for sed's syntax. :-)
6492 sed -n '
6494 /[$]LINENO/=
6495 ' <$as_myself |
6496 sed '
6497 s/[$]LINENO.*/&-/
6498 t lineno
6500 :lineno
6502 :loop
6503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6504 t loop
6505 s/-\n.*//
6506 ' >$as_me.lineno &&
6507 chmod +x "$as_me.lineno" ||
6508 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6509 { (exit 1); exit 1; }; }
6511 # Don't try to exec as it changes $[0], causing all sort of problems
6512 # (the dirname of $[0] is not the place where we might find the
6513 # original and so on. Autoconf is especially sensitive to this).
6514 . "./$as_me.lineno"
6515 # Exit status is that of the last command.
6516 exit
6520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6521 as_dirname=dirname
6522 else
6523 as_dirname=false
6526 ECHO_C= ECHO_N= ECHO_T=
6527 case `echo -n x` in
6528 -n*)
6529 case `echo 'x\c'` in
6530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6531 *) ECHO_C='\c';;
6532 esac;;
6534 ECHO_N='-n';;
6535 esac
6537 if expr a : '\(a\)' >/dev/null 2>&1 &&
6538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6539 as_expr=expr
6540 else
6541 as_expr=false
6544 rm -f conf$$ conf$$.exe conf$$.file
6545 if test -d conf$$.dir; then
6546 rm -f conf$$.dir/conf$$.file
6547 else
6548 rm -f conf$$.dir
6549 mkdir conf$$.dir
6551 echo >conf$$.file
6552 if ln -s conf$$.file conf$$ 2>/dev/null; then
6553 as_ln_s='ln -s'
6554 # ... but there are two gotchas:
6555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6557 # In both cases, we have to default to `cp -p'.
6558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6559 as_ln_s='cp -p'
6560 elif ln conf$$.file conf$$ 2>/dev/null; then
6561 as_ln_s=ln
6562 else
6563 as_ln_s='cp -p'
6565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6566 rmdir conf$$.dir 2>/dev/null
6568 if mkdir -p . 2>/dev/null; then
6569 as_mkdir_p=:
6570 else
6571 test -d ./-p && rmdir ./-p
6572 as_mkdir_p=false
6575 if test -x / >/dev/null 2>&1; then
6576 as_test_x='test -x'
6577 else
6578 if ls -dL / >/dev/null 2>&1; then
6579 as_ls_L_option=L
6580 else
6581 as_ls_L_option=
6583 as_test_x='
6584 eval sh -c '\''
6585 if test -d "$1"; then
6586 test -d "$1/.";
6587 else
6588 case $1 in
6589 -*)set "./$1";;
6590 esac;
6591 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6592 ???[sx]*):;;*)false;;esac;fi
6593 '\'' sh
6596 as_executable_p=$as_test_x
6598 # Sed expression to map a string onto a valid CPP name.
6599 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6601 # Sed expression to map a string onto a valid variable name.
6602 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6605 exec 6>&1
6607 # Save the log message, to keep $[0] and so on meaningful, and to
6608 # report actual input values of CONFIG_FILES etc. instead of their
6609 # values after options handling.
6610 ac_log="
6611 This file was extended by ZKT $as_me 0.99c, which was
6612 generated by GNU Autoconf 2.61. Invocation command line was
6614 CONFIG_FILES = $CONFIG_FILES
6615 CONFIG_HEADERS = $CONFIG_HEADERS
6616 CONFIG_LINKS = $CONFIG_LINKS
6617 CONFIG_COMMANDS = $CONFIG_COMMANDS
6618 $ $0 $@
6620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6623 _ACEOF
6625 cat >>$CONFIG_STATUS <<_ACEOF
6626 # Files that config.status was made for.
6627 config_files="$ac_config_files"
6628 config_headers="$ac_config_headers"
6630 _ACEOF
6632 cat >>$CONFIG_STATUS <<\_ACEOF
6633 ac_cs_usage="\
6634 \`$as_me' instantiates files from templates according to the
6635 current configuration.
6637 Usage: $0 [OPTIONS] [FILE]...
6639 -h, --help print this help, then exit
6640 -V, --version print version number and configuration settings, then exit
6641 -q, --quiet do not print progress messages
6642 -d, --debug don't remove temporary files
6643 --recheck update $as_me by reconfiguring in the same conditions
6644 --file=FILE[:TEMPLATE]
6645 instantiate the configuration file FILE
6646 --header=FILE[:TEMPLATE]
6647 instantiate the configuration header FILE
6649 Configuration files:
6650 $config_files
6652 Configuration headers:
6653 $config_headers
6655 Report bugs to <bug-autoconf@gnu.org>."
6657 _ACEOF
6658 cat >>$CONFIG_STATUS <<_ACEOF
6659 ac_cs_version="\\
6660 ZKT config.status 0.99c
6661 configured by $0, generated by GNU Autoconf 2.61,
6662 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6664 Copyright (C) 2006 Free Software Foundation, Inc.
6665 This config.status script is free software; the Free Software Foundation
6666 gives unlimited permission to copy, distribute and modify it."
6668 ac_pwd='$ac_pwd'
6669 srcdir='$srcdir'
6670 _ACEOF
6672 cat >>$CONFIG_STATUS <<\_ACEOF
6673 # If no file are specified by the user, then we need to provide default
6674 # value. By we need to know if files were specified by the user.
6675 ac_need_defaults=:
6676 while test $# != 0
6678 case $1 in
6679 --*=*)
6680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6682 ac_shift=:
6685 ac_option=$1
6686 ac_optarg=$2
6687 ac_shift=shift
6689 esac
6691 case $ac_option in
6692 # Handling of the options.
6693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6694 ac_cs_recheck=: ;;
6695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6696 echo "$ac_cs_version"; exit ;;
6697 --debug | --debu | --deb | --de | --d | -d )
6698 debug=: ;;
6699 --file | --fil | --fi | --f )
6700 $ac_shift
6701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6702 ac_need_defaults=false;;
6703 --header | --heade | --head | --hea )
6704 $ac_shift
6705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6706 ac_need_defaults=false;;
6707 --he | --h)
6708 # Conflict between --help and --header
6709 { echo "$as_me: error: ambiguous option: $1
6710 Try \`$0 --help' for more information." >&2
6711 { (exit 1); exit 1; }; };;
6712 --help | --hel | -h )
6713 echo "$ac_cs_usage"; exit ;;
6714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6716 ac_cs_silent=: ;;
6718 # This is an error.
6719 -*) { echo "$as_me: error: unrecognized option: $1
6720 Try \`$0 --help' for more information." >&2
6721 { (exit 1); exit 1; }; } ;;
6723 *) ac_config_targets="$ac_config_targets $1"
6724 ac_need_defaults=false ;;
6726 esac
6727 shift
6728 done
6730 ac_configure_extra_args=
6732 if $ac_cs_silent; then
6733 exec 6>/dev/null
6734 ac_configure_extra_args="$ac_configure_extra_args --silent"
6737 _ACEOF
6738 cat >>$CONFIG_STATUS <<_ACEOF
6739 if \$ac_cs_recheck; then
6740 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6741 CONFIG_SHELL=$SHELL
6742 export CONFIG_SHELL
6743 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6746 _ACEOF
6747 cat >>$CONFIG_STATUS <<\_ACEOF
6748 exec 5>>config.log
6750 echo
6751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6752 ## Running $as_me. ##
6753 _ASBOX
6754 echo "$ac_log"
6755 } >&5
6757 _ACEOF
6758 cat >>$CONFIG_STATUS <<_ACEOF
6759 _ACEOF
6761 cat >>$CONFIG_STATUS <<\_ACEOF
6763 # Handling of arguments.
6764 for ac_config_target in $ac_config_targets
6766 case $ac_config_target in
6767 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6770 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6771 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6772 { (exit 1); exit 1; }; };;
6773 esac
6774 done
6777 # If the user did not use the arguments to specify the items to instantiate,
6778 # then the envvar interface is used. Set only those that are not.
6779 # We use the long form for the default assignment because of an extremely
6780 # bizarre bug on SunOS 4.1.3.
6781 if $ac_need_defaults; then
6782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6786 # Have a temporary directory for convenience. Make it in the build tree
6787 # simply because there is no reason against having it here, and in addition,
6788 # creating and moving files from /tmp can sometimes cause problems.
6789 # Hook for its removal unless debugging.
6790 # Note that there is a small window in which the directory will not be cleaned:
6791 # after its creation but before its name has been assigned to `$tmp'.
6792 $debug ||
6794 tmp=
6795 trap 'exit_status=$?
6796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6798 trap '{ (exit 1); exit 1; }' 1 2 13 15
6800 # Create a (secure) tmp directory for tmp files.
6803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6804 test -n "$tmp" && test -d "$tmp"
6805 } ||
6807 tmp=./conf$$-$RANDOM
6808 (umask 077 && mkdir "$tmp")
6809 } ||
6811 echo "$me: cannot create a temporary directory in ." >&2
6812 { (exit 1); exit 1; }
6816 # Set up the sed scripts for CONFIG_FILES section.
6819 # No need to generate the scripts if there are no CONFIG_FILES.
6820 # This happens for instance when ./config.status config.h
6821 if test -n "$CONFIG_FILES"; then
6823 _ACEOF
6827 ac_delim='%!_!# '
6828 for ac_last_try in false false false false false :; do
6829 cat >conf$$subs.sed <<_ACEOF
6830 SHELL!$SHELL$ac_delim
6831 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6832 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6833 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6834 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6835 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6836 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6837 exec_prefix!$exec_prefix$ac_delim
6838 prefix!$prefix$ac_delim
6839 program_transform_name!$program_transform_name$ac_delim
6840 bindir!$bindir$ac_delim
6841 sbindir!$sbindir$ac_delim
6842 libexecdir!$libexecdir$ac_delim
6843 datarootdir!$datarootdir$ac_delim
6844 datadir!$datadir$ac_delim
6845 sysconfdir!$sysconfdir$ac_delim
6846 sharedstatedir!$sharedstatedir$ac_delim
6847 localstatedir!$localstatedir$ac_delim
6848 includedir!$includedir$ac_delim
6849 oldincludedir!$oldincludedir$ac_delim
6850 docdir!$docdir$ac_delim
6851 infodir!$infodir$ac_delim
6852 htmldir!$htmldir$ac_delim
6853 dvidir!$dvidir$ac_delim
6854 pdfdir!$pdfdir$ac_delim
6855 psdir!$psdir$ac_delim
6856 libdir!$libdir$ac_delim
6857 localedir!$localedir$ac_delim
6858 mandir!$mandir$ac_delim
6859 DEFS!$DEFS$ac_delim
6860 ECHO_C!$ECHO_C$ac_delim
6861 ECHO_N!$ECHO_N$ac_delim
6862 ECHO_T!$ECHO_T$ac_delim
6863 LIBS!$LIBS$ac_delim
6864 build_alias!$build_alias$ac_delim
6865 host_alias!$host_alias$ac_delim
6866 target_alias!$target_alias$ac_delim
6867 CC!$CC$ac_delim
6868 CFLAGS!$CFLAGS$ac_delim
6869 LDFLAGS!$LDFLAGS$ac_delim
6870 CPPFLAGS!$CPPFLAGS$ac_delim
6871 ac_ct_CC!$ac_ct_CC$ac_delim
6872 EXEEXT!$EXEEXT$ac_delim
6873 OBJEXT!$OBJEXT$ac_delim
6874 SIGNZONE_PROG!$SIGNZONE_PROG$ac_delim
6875 CPP!$CPP$ac_delim
6876 GREP!$GREP$ac_delim
6877 EGREP!$EGREP$ac_delim
6878 LIBOBJS!$LIBOBJS$ac_delim
6879 LTLIBOBJS!$LTLIBOBJS$ac_delim
6880 _ACEOF
6882 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
6883 break
6884 elif $ac_last_try; then
6885 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6886 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6887 { (exit 1); exit 1; }; }
6888 else
6889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6891 done
6893 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6894 if test -n "$ac_eof"; then
6895 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6896 ac_eof=`expr $ac_eof + 1`
6899 cat >>$CONFIG_STATUS <<_ACEOF
6900 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6901 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6902 _ACEOF
6903 sed '
6904 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6905 s/^/s,@/; s/!/@,|#_!!_#|/
6908 s/'"$ac_delim"'$/,g/; t
6909 s/$/\\/; p
6910 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6911 ' >>$CONFIG_STATUS <conf$$subs.sed
6912 rm -f conf$$subs.sed
6913 cat >>$CONFIG_STATUS <<_ACEOF
6914 :end
6915 s/|#_!!_#|//g
6916 CEOF$ac_eof
6917 _ACEOF
6920 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6921 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6922 # trailing colons and then remove the whole line if VPATH becomes empty
6923 # (actually we leave an empty line to preserve line numbers).
6924 if test "x$srcdir" = x.; then
6925 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6926 s/:*\$(srcdir):*/:/
6927 s/:*\${srcdir}:*/:/
6928 s/:*@srcdir@:*/:/
6929 s/^\([^=]*=[ ]*\):*/\1/
6930 s/:*$//
6931 s/^[^=]*=[ ]*$//
6935 cat >>$CONFIG_STATUS <<\_ACEOF
6936 fi # test -n "$CONFIG_FILES"
6939 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6941 case $ac_tag in
6942 :[FHLC]) ac_mode=$ac_tag; continue;;
6943 esac
6944 case $ac_mode$ac_tag in
6945 :[FHL]*:*);;
6946 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6947 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6948 { (exit 1); exit 1; }; };;
6949 :[FH]-) ac_tag=-:-;;
6950 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6951 esac
6952 ac_save_IFS=$IFS
6953 IFS=:
6954 set x $ac_tag
6955 IFS=$ac_save_IFS
6956 shift
6957 ac_file=$1
6958 shift
6960 case $ac_mode in
6961 :L) ac_source=$1;;
6962 :[FH])
6963 ac_file_inputs=
6964 for ac_f
6966 case $ac_f in
6967 -) ac_f="$tmp/stdin";;
6968 *) # Look for the file first in the build tree, then in the source tree
6969 # (if the path is not absolute). The absolute path cannot be DOS-style,
6970 # because $ac_f cannot contain `:'.
6971 test -f "$ac_f" ||
6972 case $ac_f in
6973 [\\/$]*) false;;
6974 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6975 esac ||
6976 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6977 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6978 { (exit 1); exit 1; }; };;
6979 esac
6980 ac_file_inputs="$ac_file_inputs $ac_f"
6981 done
6983 # Let's still pretend it is `configure' which instantiates (i.e., don't
6984 # use $as_me), people would be surprised to read:
6985 # /* config.h. Generated by config.status. */
6986 configure_input="Generated from "`IFS=:
6987 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6988 if test x"$ac_file" != x-; then
6989 configure_input="$ac_file. $configure_input"
6990 { echo "$as_me:$LINENO: creating $ac_file" >&5
6991 echo "$as_me: creating $ac_file" >&6;}
6994 case $ac_tag in
6995 *:-:* | *:-) cat >"$tmp/stdin";;
6996 esac
6998 esac
7000 ac_dir=`$as_dirname -- "$ac_file" ||
7001 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7002 X"$ac_file" : 'X\(//\)[^/]' \| \
7003 X"$ac_file" : 'X\(//\)$' \| \
7004 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7005 echo X"$ac_file" |
7006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7007 s//\1/
7010 /^X\(\/\/\)[^/].*/{
7011 s//\1/
7014 /^X\(\/\/\)$/{
7015 s//\1/
7018 /^X\(\/\).*/{
7019 s//\1/
7022 s/.*/./; q'`
7023 { as_dir="$ac_dir"
7024 case $as_dir in #(
7025 -*) as_dir=./$as_dir;;
7026 esac
7027 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7028 as_dirs=
7029 while :; do
7030 case $as_dir in #(
7031 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7032 *) as_qdir=$as_dir;;
7033 esac
7034 as_dirs="'$as_qdir' $as_dirs"
7035 as_dir=`$as_dirname -- "$as_dir" ||
7036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7037 X"$as_dir" : 'X\(//\)[^/]' \| \
7038 X"$as_dir" : 'X\(//\)$' \| \
7039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7040 echo X"$as_dir" |
7041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7042 s//\1/
7045 /^X\(\/\/\)[^/].*/{
7046 s//\1/
7049 /^X\(\/\/\)$/{
7050 s//\1/
7053 /^X\(\/\).*/{
7054 s//\1/
7057 s/.*/./; q'`
7058 test -d "$as_dir" && break
7059 done
7060 test -z "$as_dirs" || eval "mkdir $as_dirs"
7061 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7062 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7063 { (exit 1); exit 1; }; }; }
7064 ac_builddir=.
7066 case "$ac_dir" in
7067 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7070 # A ".." for each directory in $ac_dir_suffix.
7071 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7072 case $ac_top_builddir_sub in
7073 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7074 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7075 esac ;;
7076 esac
7077 ac_abs_top_builddir=$ac_pwd
7078 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7079 # for backward compatibility:
7080 ac_top_builddir=$ac_top_build_prefix
7082 case $srcdir in
7083 .) # We are building in place.
7084 ac_srcdir=.
7085 ac_top_srcdir=$ac_top_builddir_sub
7086 ac_abs_top_srcdir=$ac_pwd ;;
7087 [\\/]* | ?:[\\/]* ) # Absolute name.
7088 ac_srcdir=$srcdir$ac_dir_suffix;
7089 ac_top_srcdir=$srcdir
7090 ac_abs_top_srcdir=$srcdir ;;
7091 *) # Relative name.
7092 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7093 ac_top_srcdir=$ac_top_build_prefix$srcdir
7094 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7095 esac
7096 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7099 case $ac_mode in
7102 # CONFIG_FILE
7105 _ACEOF
7107 cat >>$CONFIG_STATUS <<\_ACEOF
7108 # If the template does not know about datarootdir, expand it.
7109 # FIXME: This hack should be removed a few years after 2.60.
7110 ac_datarootdir_hack=; ac_datarootdir_seen=
7112 case `sed -n '/datarootdir/ {
7116 /@datadir@/p
7117 /@docdir@/p
7118 /@infodir@/p
7119 /@localedir@/p
7120 /@mandir@/p
7121 ' $ac_file_inputs` in
7122 *datarootdir*) ac_datarootdir_seen=yes;;
7123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7124 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7125 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7126 _ACEOF
7127 cat >>$CONFIG_STATUS <<_ACEOF
7128 ac_datarootdir_hack='
7129 s&@datadir@&$datadir&g
7130 s&@docdir@&$docdir&g
7131 s&@infodir@&$infodir&g
7132 s&@localedir@&$localedir&g
7133 s&@mandir@&$mandir&g
7134 s&\\\${datarootdir}&$datarootdir&g' ;;
7135 esac
7136 _ACEOF
7138 # Neutralize VPATH when `$srcdir' = `.'.
7139 # Shell code in configure.ac might set extrasub.
7140 # FIXME: do we really want to maintain this feature?
7141 cat >>$CONFIG_STATUS <<_ACEOF
7142 sed "$ac_vpsub
7143 $extrasub
7144 _ACEOF
7145 cat >>$CONFIG_STATUS <<\_ACEOF
7147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7148 s&@configure_input@&$configure_input&;t t
7149 s&@top_builddir@&$ac_top_builddir_sub&;t t
7150 s&@srcdir@&$ac_srcdir&;t t
7151 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7152 s&@top_srcdir@&$ac_top_srcdir&;t t
7153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7154 s&@builddir@&$ac_builddir&;t t
7155 s&@abs_builddir@&$ac_abs_builddir&;t t
7156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7157 $ac_datarootdir_hack
7158 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7161 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7163 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7164 which seems to be undefined. Please make sure it is defined." >&5
7165 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7166 which seems to be undefined. Please make sure it is defined." >&2;}
7168 rm -f "$tmp/stdin"
7169 case $ac_file in
7170 -) cat "$tmp/out"; rm -f "$tmp/out";;
7171 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7172 esac
7176 # CONFIG_HEADER
7178 _ACEOF
7180 # Transform confdefs.h into a sed script `conftest.defines', that
7181 # substitutes the proper values into config.h.in to produce config.h.
7182 rm -f conftest.defines conftest.tail
7183 # First, append a space to every undef/define line, to ease matching.
7184 echo 's/$/ /' >conftest.defines
7185 # Then, protect against being on the right side of a sed subst, or in
7186 # an unquoted here document, in config.status. If some macros were
7187 # called several times there might be several #defines for the same
7188 # symbol, which is useless. But do not sort them, since the last
7189 # AC_DEFINE must be honored.
7190 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7191 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7192 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7193 # PARAMS is the parameter list in the macro definition--in most cases, it's
7194 # just an empty string.
7195 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7196 ac_dB='\\)[ (].*,\\1define\\2'
7197 ac_dC=' '
7198 ac_dD=' ,'
7200 uniq confdefs.h |
7201 sed -n '
7202 t rset
7203 :rset
7204 s/^[ ]*#[ ]*define[ ][ ]*//
7205 t ok
7208 s/[\\&,]/\\&/g
7209 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7210 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7211 ' >>conftest.defines
7213 # Remove the space that was appended to ease matching.
7214 # Then replace #undef with comments. This is necessary, for
7215 # example, in the case of _POSIX_SOURCE, which is predefined and required
7216 # on some systems where configure will not decide to define it.
7217 # (The regexp can be short, since the line contains either #define or #undef.)
7218 echo 's/ $//
7219 s,^[ #]*u.*,/* & */,' >>conftest.defines
7221 # Break up conftest.defines:
7222 ac_max_sed_lines=50
7224 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7225 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7226 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7227 # et cetera.
7228 ac_in='$ac_file_inputs'
7229 ac_out='"$tmp/out1"'
7230 ac_nxt='"$tmp/out2"'
7232 while :
7234 # Write a here document:
7235 cat >>$CONFIG_STATUS <<_ACEOF
7236 # First, check the format of the line:
7237 cat >"\$tmp/defines.sed" <<\\CEOF
7238 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7239 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7241 :def
7242 _ACEOF
7243 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7244 echo 'CEOF
7245 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7246 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7247 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7248 grep . conftest.tail >/dev/null || break
7249 rm -f conftest.defines
7250 mv conftest.tail conftest.defines
7251 done
7252 rm -f conftest.defines conftest.tail
7254 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7255 cat >>$CONFIG_STATUS <<\_ACEOF
7256 if test x"$ac_file" != x-; then
7257 echo "/* $configure_input */" >"$tmp/config.h"
7258 cat "$ac_result" >>"$tmp/config.h"
7259 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7260 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7261 echo "$as_me: $ac_file is unchanged" >&6;}
7262 else
7263 rm -f $ac_file
7264 mv "$tmp/config.h" $ac_file
7266 else
7267 echo "/* $configure_input */"
7268 cat "$ac_result"
7270 rm -f "$tmp/out12"
7274 esac
7276 done # for ac_tag
7279 { (exit 0); exit 0; }
7280 _ACEOF
7281 chmod +x $CONFIG_STATUS
7282 ac_clean_files=$ac_clean_files_save
7285 # configure is writing to config.log, and then calls config.status.
7286 # config.status does its own redirection, appending to config.log.
7287 # Unfortunately, on DOS this fails, as config.log is still kept open
7288 # by configure, so config.status won't be able to write to it; its
7289 # output is simply discarded. So we exec the FD to /dev/null,
7290 # effectively closing config.log, so it can be properly (re)opened and
7291 # appended to by config.status. When coming back to configure, we
7292 # need to make the FD available again.
7293 if test "$no_create" != yes; then
7294 ac_cs_success=:
7295 ac_config_status_args=
7296 test "$silent" = yes &&
7297 ac_config_status_args="$ac_config_status_args --quiet"
7298 exec 5>/dev/null
7299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7300 exec 5>>config.log
7301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7302 # would make configure fail if this is the last instruction.
7303 $ac_cs_success || { (exit 1); exit 1; }