etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / contrib / zkt-1.1.3 / configure
blob07fa85a2a3ebf190a3ba1919ac5e8d8bff20c1ba
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ZKT 1.1.3.
5 # Report bugs to <Holger Zuleger hznet.de>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and Holger Zuleger
270 $0: hznet.de about your system, including any error
271 $0: possibly output before this message. Then install a
272 $0: modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='ZKT'
582 PACKAGE_TARNAME='zkt'
583 PACKAGE_VERSION='1.1.3'
584 PACKAGE_STRING='ZKT 1.1.3'
585 PACKAGE_BUGREPORT='Holger Zuleger hznet.de'
586 PACKAGE_URL=''
588 ac_unique_file="zkt-signer.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_header_list=
626 ac_func_list=
627 ac_subst_vars='LTLIBOBJS
628 LIBOBJS
629 EGREP
630 GREP
632 SIGNZONE_PROG
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
640 target_alias
641 host_alias
642 build_alias
643 LIBS
644 ECHO_T
645 ECHO_N
646 ECHO_C
647 DEFS
648 mandir
649 localedir
650 libdir
651 psdir
652 pdfdir
653 dvidir
654 htmldir
655 infodir
656 docdir
657 oldincludedir
658 includedir
659 localstatedir
660 sharedstatedir
661 sysconfdir
662 datadir
663 datarootdir
664 libexecdir
665 sbindir
666 bindir
667 program_transform_name
668 prefix
669 exec_prefix
670 PACKAGE_URL
671 PACKAGE_BUGREPORT
672 PACKAGE_STRING
673 PACKAGE_VERSION
674 PACKAGE_TARNAME
675 PACKAGE_NAME
676 PATH_SEPARATOR
677 SHELL'
678 ac_subst_files=''
679 ac_user_opts='
680 enable_option_checking
681 enable_bind_util_path
682 enable_color_mode
683 with_curses
684 enable_printtimezone
685 enable_printyear
686 enable_logprogname
687 enable_logtimestamp
688 enable_loglevel
689 enable_ttl_in_keyfile
690 enable_configpath
691 enable_tree
693 ac_precious_vars='build_alias
694 host_alias
695 target_alias
697 CFLAGS
698 LDFLAGS
699 LIBS
700 CPPFLAGS
701 CPP'
704 # Initialize some variables set by options.
705 ac_init_help=
706 ac_init_version=false
707 ac_unrecognized_opts=
708 ac_unrecognized_sep=
709 # The variables have the same names as the options, with
710 # dashes changed to underlines.
711 cache_file=/dev/null
712 exec_prefix=NONE
713 no_create=
714 no_recursion=
715 prefix=NONE
716 program_prefix=NONE
717 program_suffix=NONE
718 program_transform_name=s,x,x,
719 silent=
720 site=
721 srcdir=
722 verbose=
723 x_includes=NONE
724 x_libraries=NONE
726 # Installation directory options.
727 # These are left unexpanded so users can "make install exec_prefix=/foo"
728 # and all the variables that are supposed to be based on exec_prefix
729 # by default will actually change.
730 # Use braces instead of parens because sh, perl, etc. also accept them.
731 # (The list follows the same order as the GNU Coding Standards.)
732 bindir='${exec_prefix}/bin'
733 sbindir='${exec_prefix}/sbin'
734 libexecdir='${exec_prefix}/libexec'
735 datarootdir='${prefix}/share'
736 datadir='${datarootdir}'
737 sysconfdir='${prefix}/etc'
738 sharedstatedir='${prefix}/com'
739 localstatedir='${prefix}/var'
740 includedir='${prefix}/include'
741 oldincludedir='/usr/include'
742 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
743 infodir='${datarootdir}/info'
744 htmldir='${docdir}'
745 dvidir='${docdir}'
746 pdfdir='${docdir}'
747 psdir='${docdir}'
748 libdir='${exec_prefix}/lib'
749 localedir='${datarootdir}/locale'
750 mandir='${datarootdir}/man'
752 ac_prev=
753 ac_dashdash=
754 for ac_option
756 # If the previous option needs an argument, assign it.
757 if test -n "$ac_prev"; then
758 eval $ac_prev=\$ac_option
759 ac_prev=
760 continue
763 case $ac_option in
764 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
765 *=) ac_optarg= ;;
766 *) ac_optarg=yes ;;
767 esac
769 # Accept the important Cygnus configure options, so we can diagnose typos.
771 case $ac_dashdash$ac_option in
773 ac_dashdash=yes ;;
775 -bindir | --bindir | --bindi | --bind | --bin | --bi)
776 ac_prev=bindir ;;
777 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
778 bindir=$ac_optarg ;;
780 -build | --build | --buil | --bui | --bu)
781 ac_prev=build_alias ;;
782 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
783 build_alias=$ac_optarg ;;
785 -cache-file | --cache-file | --cache-fil | --cache-fi \
786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787 ac_prev=cache_file ;;
788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790 cache_file=$ac_optarg ;;
792 --config-cache | -C)
793 cache_file=config.cache ;;
795 -datadir | --datadir | --datadi | --datad)
796 ac_prev=datadir ;;
797 -datadir=* | --datadir=* | --datadi=* | --datad=*)
798 datadir=$ac_optarg ;;
800 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801 | --dataroo | --dataro | --datar)
802 ac_prev=datarootdir ;;
803 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805 datarootdir=$ac_optarg ;;
807 -disable-* | --disable-*)
808 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811 as_fn_error $? "invalid feature name: $ac_useropt"
812 ac_useropt_orig=$ac_useropt
813 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814 case $ac_user_opts in
816 "enable_$ac_useropt"
817 "*) ;;
818 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
819 ac_unrecognized_sep=', ';;
820 esac
821 eval enable_$ac_useropt=no ;;
823 -docdir | --docdir | --docdi | --doc | --do)
824 ac_prev=docdir ;;
825 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 docdir=$ac_optarg ;;
828 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829 ac_prev=dvidir ;;
830 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 dvidir=$ac_optarg ;;
833 -enable-* | --enable-*)
834 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837 as_fn_error $? "invalid feature name: $ac_useropt"
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
842 "enable_$ac_useropt"
843 "*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=\$ac_optarg ;;
849 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
851 | --exec | --exe | --ex)
852 ac_prev=exec_prefix ;;
853 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
854 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
855 | --exec=* | --exe=* | --ex=*)
856 exec_prefix=$ac_optarg ;;
858 -gas | --gas | --ga | --g)
859 # Obsolete; use --with-gas.
860 with_gas=yes ;;
862 -help | --help | --hel | --he | -h)
863 ac_init_help=long ;;
864 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
865 ac_init_help=recursive ;;
866 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
867 ac_init_help=short ;;
869 -host | --host | --hos | --ho)
870 ac_prev=host_alias ;;
871 -host=* | --host=* | --hos=* | --ho=*)
872 host_alias=$ac_optarg ;;
874 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
875 ac_prev=htmldir ;;
876 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
877 | --ht=*)
878 htmldir=$ac_optarg ;;
880 -includedir | --includedir | --includedi | --included | --include \
881 | --includ | --inclu | --incl | --inc)
882 ac_prev=includedir ;;
883 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
884 | --includ=* | --inclu=* | --incl=* | --inc=*)
885 includedir=$ac_optarg ;;
887 -infodir | --infodir | --infodi | --infod | --info | --inf)
888 ac_prev=infodir ;;
889 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
890 infodir=$ac_optarg ;;
892 -libdir | --libdir | --libdi | --libd)
893 ac_prev=libdir ;;
894 -libdir=* | --libdir=* | --libdi=* | --libd=*)
895 libdir=$ac_optarg ;;
897 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
898 | --libexe | --libex | --libe)
899 ac_prev=libexecdir ;;
900 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
901 | --libexe=* | --libex=* | --libe=*)
902 libexecdir=$ac_optarg ;;
904 -localedir | --localedir | --localedi | --localed | --locale)
905 ac_prev=localedir ;;
906 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
907 localedir=$ac_optarg ;;
909 -localstatedir | --localstatedir | --localstatedi | --localstated \
910 | --localstate | --localstat | --localsta | --localst | --locals)
911 ac_prev=localstatedir ;;
912 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
913 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
914 localstatedir=$ac_optarg ;;
916 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
917 ac_prev=mandir ;;
918 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
919 mandir=$ac_optarg ;;
921 -nfp | --nfp | --nf)
922 # Obsolete; use --without-fp.
923 with_fp=no ;;
925 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
926 | --no-cr | --no-c | -n)
927 no_create=yes ;;
929 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931 no_recursion=yes ;;
933 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
934 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
935 | --oldin | --oldi | --old | --ol | --o)
936 ac_prev=oldincludedir ;;
937 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
938 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
939 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
940 oldincludedir=$ac_optarg ;;
942 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
943 ac_prev=prefix ;;
944 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945 prefix=$ac_optarg ;;
947 -program-prefix | --program-prefix | --program-prefi | --program-pref \
948 | --program-pre | --program-pr | --program-p)
949 ac_prev=program_prefix ;;
950 -program-prefix=* | --program-prefix=* | --program-prefi=* \
951 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
952 program_prefix=$ac_optarg ;;
954 -program-suffix | --program-suffix | --program-suffi | --program-suff \
955 | --program-suf | --program-su | --program-s)
956 ac_prev=program_suffix ;;
957 -program-suffix=* | --program-suffix=* | --program-suffi=* \
958 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
959 program_suffix=$ac_optarg ;;
961 -program-transform-name | --program-transform-name \
962 | --program-transform-nam | --program-transform-na \
963 | --program-transform-n | --program-transform- \
964 | --program-transform | --program-transfor \
965 | --program-transfo | --program-transf \
966 | --program-trans | --program-tran \
967 | --progr-tra | --program-tr | --program-t)
968 ac_prev=program_transform_name ;;
969 -program-transform-name=* | --program-transform-name=* \
970 | --program-transform-nam=* | --program-transform-na=* \
971 | --program-transform-n=* | --program-transform-=* \
972 | --program-transform=* | --program-transfor=* \
973 | --program-transfo=* | --program-transf=* \
974 | --program-trans=* | --program-tran=* \
975 | --progr-tra=* | --program-tr=* | --program-t=*)
976 program_transform_name=$ac_optarg ;;
978 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
979 ac_prev=pdfdir ;;
980 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981 pdfdir=$ac_optarg ;;
983 -psdir | --psdir | --psdi | --psd | --ps)
984 ac_prev=psdir ;;
985 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986 psdir=$ac_optarg ;;
988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
989 | -silent | --silent | --silen | --sile | --sil)
990 silent=yes ;;
992 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
993 ac_prev=sbindir ;;
994 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
995 | --sbi=* | --sb=*)
996 sbindir=$ac_optarg ;;
998 -sharedstatedir | --sharedstatedir | --sharedstatedi \
999 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1000 | --sharedst | --shareds | --shared | --share | --shar \
1001 | --sha | --sh)
1002 ac_prev=sharedstatedir ;;
1003 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1004 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1005 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1006 | --sha=* | --sh=*)
1007 sharedstatedir=$ac_optarg ;;
1009 -site | --site | --sit)
1010 ac_prev=site ;;
1011 -site=* | --site=* | --sit=*)
1012 site=$ac_optarg ;;
1014 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1015 ac_prev=srcdir ;;
1016 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1017 srcdir=$ac_optarg ;;
1019 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1020 | --syscon | --sysco | --sysc | --sys | --sy)
1021 ac_prev=sysconfdir ;;
1022 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1023 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1024 sysconfdir=$ac_optarg ;;
1026 -target | --target | --targe | --targ | --tar | --ta | --t)
1027 ac_prev=target_alias ;;
1028 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1029 target_alias=$ac_optarg ;;
1031 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1032 verbose=yes ;;
1034 -version | --version | --versio | --versi | --vers | -V)
1035 ac_init_version=: ;;
1037 -with-* | --with-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid package name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "with_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval with_$ac_useropt=\$ac_optarg ;;
1053 -without-* | --without-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid package name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "with_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval with_$ac_useropt=no ;;
1069 --x)
1070 # Obsolete; use --with-x.
1071 with_x=yes ;;
1073 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074 | --x-incl | --x-inc | --x-in | --x-i)
1075 ac_prev=x_includes ;;
1076 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078 x_includes=$ac_optarg ;;
1080 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082 ac_prev=x_libraries ;;
1083 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085 x_libraries=$ac_optarg ;;
1087 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1088 Try \`$0 --help' for more information"
1091 *=*)
1092 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1093 # Reject names that are not valid shell variable names.
1094 case $ac_envvar in #(
1095 '' | [0-9]* | *[!_$as_cr_alnum]* )
1096 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1097 esac
1098 eval $ac_envvar=\$ac_optarg
1099 export $ac_envvar ;;
1102 # FIXME: should be removed in autoconf 3.0.
1103 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1109 esac
1110 done
1112 if test -n "$ac_prev"; then
1113 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114 as_fn_error $? "missing argument to $ac_option"
1117 if test -n "$ac_unrecognized_opts"; then
1118 case $enable_option_checking in
1119 no) ;;
1120 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1121 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1122 esac
1125 # Check all directory arguments for consistency.
1126 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1127 datadir sysconfdir sharedstatedir localstatedir includedir \
1128 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1129 libdir localedir mandir
1131 eval ac_val=\$$ac_var
1132 # Remove trailing slashes.
1133 case $ac_val in
1134 */ )
1135 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1136 eval $ac_var=\$ac_val;;
1137 esac
1138 # Be sure to have absolute directory names.
1139 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac
1143 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1144 done
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1149 build=$build_alias
1150 host=$host_alias
1151 target=$target_alias
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x; then
1155 if test "x$build_alias" = x; then
1156 cross_compiling=maybe
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1162 ac_tool_prefix=
1163 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1165 test "$silent" = yes && exec 6>/dev/null
1168 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169 ac_ls_di=`ls -di .` &&
1170 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error $? "working directory cannot be determined"
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error $? "pwd does not report name of working directory"
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185 $as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1194 /^X\(\/\/\)$/{
1195 s//\1/
1198 /^X\(\/\).*/{
1199 s//\1/
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1207 else
1208 ac_srcdir_defaulted=no
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1217 pwd)`
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1225 case $srcdir in
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 esac
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233 done
1236 # Report the --help message.
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242 \`configure' configures ZKT 1.1.3 to adapt to many kinds of systems.
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1249 Defaults for the options are specified in brackets.
1251 Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking ...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1273 For better control, use the options below.
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/zkt]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295 _ACEOF
1297 cat <<\_ACEOF
1298 _ACEOF
1301 if test -n "$ac_init_help"; then
1302 case $ac_init_help in
1303 short | recursive ) echo "Configuration of ZKT 1.1.3:";;
1304 esac
1305 cat <<\_ACEOF
1307 Optional Features:
1308 --disable-option-checking ignore unrecognized --enable/--with options
1309 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1310 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1311 --enable-bind_util_path=PATH
1312 Define path to BIND utilities, default is path to
1313 dnssec-signzone
1314 --disable-color-mode zkt without colors
1315 --enable-print-timezone print out timezone
1316 --enable-print-age print age with year
1317 --enable-log-progname log with progname
1318 --disable-log-timestamp do not log with timestamp
1319 --disable-log-level do not log with level
1320 --disable-ttl-in-keyfiles
1321 do not allow TTL values in keyfiles
1322 --enable-configpath=PATH
1323 set path of config file (defaults to /var/named)
1324 --disable-tree use single linked list instead of binary tree data
1325 structure for dnssec-zkt
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-curses Ignore presence of curses and disable color mode
1332 Some influential environment variables:
1333 CC C compiler command
1334 CFLAGS C compiler flags
1335 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1336 nonstandard directory <lib dir>
1337 LIBS libraries to pass to the linker, e.g. -l<library>
1338 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1339 you have headers in a nonstandard directory <include dir>
1340 CPP C preprocessor
1342 Use these variables to override the choices made by `configure' or to help
1343 it to find libraries and programs with nonstandard names/locations.
1345 Report bugs to <Holger Zuleger hznet.de>.
1346 _ACEOF
1347 ac_status=$?
1350 if test "$ac_init_help" = "recursive"; then
1351 # If there are subdirs, report their specific --help.
1352 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1353 test -d "$ac_dir" ||
1354 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1355 continue
1356 ac_builddir=.
1358 case "$ac_dir" in
1359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1362 # A ".." for each directory in $ac_dir_suffix.
1363 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1364 case $ac_top_builddir_sub in
1365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367 esac ;;
1368 esac
1369 ac_abs_top_builddir=$ac_pwd
1370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1371 # for backward compatibility:
1372 ac_top_builddir=$ac_top_build_prefix
1374 case $srcdir in
1375 .) # We are building in place.
1376 ac_srcdir=.
1377 ac_top_srcdir=$ac_top_builddir_sub
1378 ac_abs_top_srcdir=$ac_pwd ;;
1379 [\\/]* | ?:[\\/]* ) # Absolute name.
1380 ac_srcdir=$srcdir$ac_dir_suffix;
1381 ac_top_srcdir=$srcdir
1382 ac_abs_top_srcdir=$srcdir ;;
1383 *) # Relative name.
1384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1385 ac_top_srcdir=$ac_top_build_prefix$srcdir
1386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1387 esac
1388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1390 cd "$ac_dir" || { ac_status=$?; continue; }
1391 # Check for guested configure.
1392 if test -f "$ac_srcdir/configure.gnu"; then
1393 echo &&
1394 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1395 elif test -f "$ac_srcdir/configure"; then
1396 echo &&
1397 $SHELL "$ac_srcdir/configure" --help=recursive
1398 else
1399 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1400 fi || ac_status=$?
1401 cd "$ac_pwd" || { ac_status=$?; break; }
1402 done
1405 test -n "$ac_init_help" && exit $ac_status
1406 if $ac_init_version; then
1407 cat <<\_ACEOF
1408 ZKT configure 1.1.3
1409 generated by GNU Autoconf 2.69
1411 Copyright (C) 2012 Free Software Foundation, Inc.
1412 This configure script is free software; the Free Software Foundation
1413 gives unlimited permission to copy, distribute and modify it.
1414 _ACEOF
1415 exit
1418 ## ------------------------ ##
1419 ## Autoconf initialization. ##
1420 ## ------------------------ ##
1422 # ac_fn_c_try_compile LINENO
1423 # --------------------------
1424 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1425 ac_fn_c_try_compile ()
1427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1428 rm -f conftest.$ac_objext
1429 if { { ac_try="$ac_compile"
1430 case "(($ac_try" in
1431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1432 *) ac_try_echo=$ac_try;;
1433 esac
1434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1435 $as_echo "$ac_try_echo"; } >&5
1436 (eval "$ac_compile") 2>conftest.err
1437 ac_status=$?
1438 if test -s conftest.err; then
1439 grep -v '^ *+' conftest.err >conftest.er1
1440 cat conftest.er1 >&5
1441 mv -f conftest.er1 conftest.err
1443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1444 test $ac_status = 0; } && {
1445 test -z "$ac_c_werror_flag" ||
1446 test ! -s conftest.err
1447 } && test -s conftest.$ac_objext; then :
1448 ac_retval=0
1449 else
1450 $as_echo "$as_me: failed program was:" >&5
1451 sed 's/^/| /' conftest.$ac_ext >&5
1453 ac_retval=1
1455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1456 as_fn_set_status $ac_retval
1458 } # ac_fn_c_try_compile
1460 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1461 # -------------------------------------------
1462 # Tests whether TYPE exists after having included INCLUDES, setting cache
1463 # variable VAR accordingly.
1464 ac_fn_c_check_type ()
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1468 $as_echo_n "checking for $2... " >&6; }
1469 if eval \${$3+:} false; then :
1470 $as_echo_n "(cached) " >&6
1471 else
1472 eval "$3=no"
1473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1474 /* end confdefs.h. */
1477 main ()
1479 if (sizeof ($2))
1480 return 0;
1482 return 0;
1484 _ACEOF
1485 if ac_fn_c_try_compile "$LINENO"; then :
1486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1487 /* end confdefs.h. */
1490 main ()
1492 if (sizeof (($2)))
1493 return 0;
1495 return 0;
1497 _ACEOF
1498 if ac_fn_c_try_compile "$LINENO"; then :
1500 else
1501 eval "$3=yes"
1503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1507 eval ac_res=\$$3
1508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1509 $as_echo "$ac_res" >&6; }
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 } # ac_fn_c_check_type
1514 # ac_fn_c_try_cpp LINENO
1515 # ----------------------
1516 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_cpp ()
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 if { { ac_try="$ac_cpp conftest.$ac_ext"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } > conftest.i && {
1536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 }; then :
1539 ac_retval=0
1540 else
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1544 ac_retval=1
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547 as_fn_set_status $ac_retval
1549 } # ac_fn_c_try_cpp
1551 # ac_fn_c_try_run LINENO
1552 # ----------------------
1553 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1554 # that executables *can* be run.
1555 ac_fn_c_try_run ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_link"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_link") 2>&5
1566 ac_status=$?
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1569 { { case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_try") 2>&5
1576 ac_status=$?
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; }; }; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: program exited with status $ac_status" >&5
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=$ac_status
1587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_run
1593 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1594 # -------------------------------------------------------
1595 # Tests whether HEADER exists and can be compiled using the include files in
1596 # INCLUDES, setting the cache variable VAR accordingly.
1597 ac_fn_c_check_header_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if eval \${$3+:} false; then :
1603 $as_echo_n "(cached) " >&6
1604 else
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 eval "$3=yes"
1612 else
1613 eval "$3=no"
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 } # ac_fn_c_check_header_compile
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 test -x conftest$ac_exeext
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_link
1670 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1673 # the include files in INCLUDES and setting the cache variable VAR
1674 # accordingly.
1675 ac_fn_c_check_header_mongrel ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if eval \${$3+:} false; then :
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 else
1688 # Is the header compilable?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1690 $as_echo_n "checking $2 usability... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 ac_header_compiler=yes
1698 else
1699 ac_header_compiler=no
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1703 $as_echo "$ac_header_compiler" >&6; }
1705 # Is the header present?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1707 $as_echo_n "checking $2 presence... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_cpp "$LINENO"; then :
1713 ac_header_preproc=yes
1714 else
1715 ac_header_preproc=no
1717 rm -f conftest.err conftest.i conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1719 $as_echo "$ac_header_preproc" >&6; }
1721 # So? What about this header?
1722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1723 yes:no: )
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1725 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 no:yes:* )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1731 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1733 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1735 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1737 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 ( $as_echo "## -------------------------------------- ##
1741 ## Report this to Holger Zuleger hznet.de ##
1742 ## -------------------------------------- ##"
1743 ) | sed "s/^/$as_me: WARNING: /" >&2
1745 esac
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 eval "$3=\$ac_header_compiler"
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 } # ac_fn_c_check_header_mongrel
1761 # ac_fn_c_check_func LINENO FUNC VAR
1762 # ----------------------------------
1763 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1764 ac_fn_c_check_func ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1776 #define $2 innocuous_$2
1778 /* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char $2 (); below.
1780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781 <limits.h> exists even on freestanding compilers. */
1783 #ifdef __STDC__
1784 # include <limits.h>
1785 #else
1786 # include <assert.h>
1787 #endif
1789 #undef $2
1791 /* Override any GCC internal prototype to avoid an error.
1792 Use char because int might match the return type of a GCC
1793 builtin and then its argument prototype would still apply. */
1794 #ifdef __cplusplus
1795 extern "C"
1796 #endif
1797 char $2 ();
1798 /* The GNU C library defines this for functions which it implements
1799 to always fail with ENOSYS. Some functions are actually named
1800 something starting with __ and the normal name is an alias. */
1801 #if defined __stub_$2 || defined __stub___$2
1802 choke me
1803 #endif
1806 main ()
1808 return $2 ();
1810 return 0;
1812 _ACEOF
1813 if ac_fn_c_try_link "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1818 rm -f core conftest.err conftest.$ac_objext \
1819 conftest$ac_exeext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_func
1827 cat >config.log <<_ACEOF
1828 This file contains any messages produced by compilers while
1829 running configure, to aid debugging if configure makes a mistake.
1831 It was created by ZKT $as_me 1.1.3, which was
1832 generated by GNU Autoconf 2.69. Invocation command line was
1834 $ $0 $@
1836 _ACEOF
1837 exec 5>>config.log
1839 cat <<_ASUNAME
1840 ## --------- ##
1841 ## Platform. ##
1842 ## --------- ##
1844 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1845 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1846 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1847 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1848 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1850 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1851 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1853 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1854 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1855 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1856 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1857 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1858 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1859 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1861 _ASUNAME
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 $as_echo "PATH: $as_dir"
1869 done
1870 IFS=$as_save_IFS
1872 } >&5
1874 cat >&5 <<_ACEOF
1877 ## ----------- ##
1878 ## Core tests. ##
1879 ## ----------- ##
1881 _ACEOF
1884 # Keep a trace of the command line.
1885 # Strip out --no-create and --no-recursion so they do not pile up.
1886 # Strip out --silent because we don't want to record it for future runs.
1887 # Also quote any args containing shell meta-characters.
1888 # Make two passes to allow for proper duplicate-argument suppression.
1889 ac_configure_args=
1890 ac_configure_args0=
1891 ac_configure_args1=
1892 ac_must_keep_next=false
1893 for ac_pass in 1 2
1895 for ac_arg
1897 case $ac_arg in
1898 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900 | -silent | --silent | --silen | --sile | --sil)
1901 continue ;;
1902 *\'*)
1903 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904 esac
1905 case $ac_pass in
1906 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1908 as_fn_append ac_configure_args1 " '$ac_arg'"
1909 if test $ac_must_keep_next = true; then
1910 ac_must_keep_next=false # Got value, back to normal.
1911 else
1912 case $ac_arg in
1913 *=* | --config-cache | -C | -disable-* | --disable-* \
1914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916 | -with-* | --with-* | -without-* | --without-* | --x)
1917 case "$ac_configure_args0 " in
1918 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919 esac
1921 -* ) ac_must_keep_next=true ;;
1922 esac
1924 as_fn_append ac_configure_args " '$ac_arg'"
1926 esac
1927 done
1928 done
1929 { ac_configure_args0=; unset ac_configure_args0;}
1930 { ac_configure_args1=; unset ac_configure_args1;}
1932 # When interrupted or exit'd, cleanup temporary files, and complete
1933 # config.log. We remove comments because anyway the quotes in there
1934 # would cause problems or look ugly.
1935 # WARNING: Use '\'' to represent an apostrophe within the trap.
1936 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937 trap 'exit_status=$?
1938 # Save into config.log some information that might help in debugging.
1940 echo
1942 $as_echo "## ---------------- ##
1943 ## Cache variables. ##
1944 ## ---------------- ##"
1945 echo
1946 # The following way of writing the cache mishandles newlines in values,
1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1949 eval ac_val=\$$ac_var
1950 case $ac_val in #(
1951 *${as_nl}*)
1952 case $ac_var in #(
1953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1955 esac
1956 case $ac_var in #(
1957 _ | IFS | as_nl) ;; #(
1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1959 *) { eval $ac_var=; unset $ac_var;} ;;
1960 esac ;;
1961 esac
1962 done
1963 (set) 2>&1 |
1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1965 *${as_nl}ac_space=\ *)
1966 sed -n \
1967 "s/'\''/'\''\\\\'\'''\''/g;
1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1969 ;; #(
1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1973 esac |
1974 sort
1976 echo
1978 $as_echo "## ----------------- ##
1979 ## Output variables. ##
1980 ## ----------------- ##"
1981 echo
1982 for ac_var in $ac_subst_vars
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 $as_echo "$ac_var='\''$ac_val'\''"
1989 done | sort
1990 echo
1992 if test -n "$ac_subst_files"; then
1993 $as_echo "## ------------------- ##
1994 ## File substitutions. ##
1995 ## ------------------- ##"
1996 echo
1997 for ac_var in $ac_subst_files
1999 eval ac_val=\$$ac_var
2000 case $ac_val in
2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 esac
2003 $as_echo "$ac_var='\''$ac_val'\''"
2004 done | sort
2005 echo
2008 if test -s confdefs.h; then
2009 $as_echo "## ----------- ##
2010 ## confdefs.h. ##
2011 ## ----------- ##"
2012 echo
2013 cat confdefs.h
2014 echo
2016 test "$ac_signal" != 0 &&
2017 $as_echo "$as_me: caught signal $ac_signal"
2018 $as_echo "$as_me: exit $exit_status"
2019 } >&5
2020 rm -f core *.core core.conftest.* &&
2021 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022 exit $exit_status
2024 for ac_signal in 1 2 13 15; do
2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026 done
2027 ac_signal=0
2029 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2030 rm -f -r conftest* confdefs.h
2032 $as_echo "/* confdefs.h */" > confdefs.h
2034 # Predefined preprocessor variables.
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_NAME "$PACKAGE_NAME"
2038 _ACEOF
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2042 _ACEOF
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2046 _ACEOF
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_STRING "$PACKAGE_STRING"
2050 _ACEOF
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2054 _ACEOF
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_URL "$PACKAGE_URL"
2058 _ACEOF
2061 # Let the site file select an alternate cache file if it wants to.
2062 # Prefer an explicitly selected file to automatically selected ones.
2063 ac_site_file1=NONE
2064 ac_site_file2=NONE
2065 if test -n "$CONFIG_SITE"; then
2066 # We do not want a PATH search for config.site.
2067 case $CONFIG_SITE in #((
2068 -*) ac_site_file1=./$CONFIG_SITE;;
2069 */*) ac_site_file1=$CONFIG_SITE;;
2070 *) ac_site_file1=./$CONFIG_SITE;;
2071 esac
2072 elif test "x$prefix" != xNONE; then
2073 ac_site_file1=$prefix/share/config.site
2074 ac_site_file2=$prefix/etc/config.site
2075 else
2076 ac_site_file1=$ac_default_prefix/share/config.site
2077 ac_site_file2=$ac_default_prefix/etc/config.site
2079 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2081 test "x$ac_site_file" = xNONE && continue
2082 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2084 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085 sed 's/^/| /' "$ac_site_file" >&5
2086 . "$ac_site_file" \
2087 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 as_fn_error $? "failed to load site script $ac_site_file
2090 See \`config.log' for more details" "$LINENO" 5; }
2092 done
2094 if test -r "$cache_file"; then
2095 # Some versions of bash will fail to source /dev/null (special files
2096 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2097 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2099 $as_echo "$as_me: loading cache $cache_file" >&6;}
2100 case $cache_file in
2101 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102 *) . "./$cache_file";;
2103 esac
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2107 $as_echo "$as_me: creating cache $cache_file" >&6;}
2108 >$cache_file
2111 as_fn_append ac_header_list " sys/time.h"
2112 as_fn_append ac_header_list " unistd.h"
2113 as_fn_append ac_func_list " alarm"
2114 as_fn_append ac_header_list " utime.h"
2115 # Check that the precious variables saved in the cache have kept the same
2116 # value.
2117 ac_cache_corrupted=false
2118 for ac_var in $ac_precious_vars; do
2119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120 eval ac_new_set=\$ac_env_${ac_var}_set
2121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122 eval ac_new_val=\$ac_env_${ac_var}_value
2123 case $ac_old_set,$ac_new_set in
2124 set,)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,set)
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2132 ,);;
2134 if test "x$ac_old_val" != "x$ac_new_val"; then
2135 # differences in whitespace do not lead to failure.
2136 ac_old_val_w=`echo x $ac_old_val`
2137 ac_new_val_w=`echo x $ac_new_val`
2138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141 ac_cache_corrupted=:
2142 else
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2145 eval $ac_var=\$ac_old_val
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2151 fi;;
2152 esac
2153 # Pass precious variables to config.status.
2154 if test "$ac_new_set" = set; then
2155 case $ac_new_val in
2156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 *) ac_arg=$ac_var=$ac_new_val ;;
2158 esac
2159 case " $ac_configure_args " in
2160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2162 esac
2164 done
2165 if $ac_cache_corrupted; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2172 ## -------------------- ##
2173 ## Main body of script. ##
2174 ## -------------------- ##
2176 ac_ext=c
2177 ac_cpp='$CPP $CPPFLAGS'
2178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184 ### Files to test to check if src dir contains the package
2186 ac_config_headers="$ac_config_headers config.h"
2190 ### Checks for programs.
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 if test -n "$ac_tool_prefix"; then
2197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2200 $as_echo_n "checking for $ac_word... " >&6; }
2201 if ${ac_cv_prog_CC+:} false; then :
2202 $as_echo_n "(cached) " >&6
2203 else
2204 if test -n "$CC"; then
2205 ac_cv_prog_CC="$CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 break 2
2218 done
2219 done
2220 IFS=$as_save_IFS
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2227 $as_echo "$CC" >&6; }
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2230 $as_echo "no" >&6; }
2235 if test -z "$ac_cv_prog_CC"; then
2236 ac_ct_CC=$CC
2237 # Extract the first word of "gcc", so it can be a program name with args.
2238 set dummy gcc; ac_word=$2
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2240 $as_echo_n "checking for $ac_word... " >&6; }
2241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 if test -n "$ac_ct_CC"; then
2245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_ac_ct_CC="gcc"
2255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2260 IFS=$as_save_IFS
2264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2265 if test -n "$ac_ct_CC"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2267 $as_echo "$ac_ct_CC" >&6; }
2268 else
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2270 $as_echo "no" >&6; }
2273 if test "x$ac_ct_CC" = x; then
2274 CC=""
2275 else
2276 case $cross_compiling:$ac_tool_warned in
2277 yes:)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2280 ac_tool_warned=yes ;;
2281 esac
2282 CC=$ac_ct_CC
2284 else
2285 CC="$ac_cv_prog_CC"
2288 if test -z "$CC"; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}cc; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if ${ac_cv_prog_CC+:} false; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_CC="${ac_tool_prefix}cc"
2308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2313 IFS=$as_save_IFS
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2320 $as_echo "$CC" >&6; }
2321 else
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2329 if test -z "$CC"; then
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2333 $as_echo_n "checking for $ac_word... " >&6; }
2334 if ${ac_cv_prog_CC+:} false; then :
2335 $as_echo_n "(cached) " >&6
2336 else
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 else
2340 ac_prog_rejected=no
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2349 ac_prog_rejected=yes
2350 continue
2352 ac_cv_prog_CC="cc"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2356 done
2357 done
2358 IFS=$as_save_IFS
2360 if test $ac_prog_rejected = yes; then
2361 # We found a bogon in the path, so make sure we never use it.
2362 set dummy $ac_cv_prog_CC
2363 shift
2364 if test $# != 0; then
2365 # We chose a different compiler from the bogus one.
2366 # However, it has the same basename, so the bogon will be chosen
2367 # first if we set CC to just the basename; use the full file name.
2368 shift
2369 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2374 CC=$ac_cv_prog_CC
2375 if test -n "$CC"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2377 $as_echo "$CC" >&6; }
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380 $as_echo "no" >&6; }
2385 if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2387 for ac_prog in cl.exe
2389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if ${ac_cv_prog_CC+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2410 done
2411 done
2412 IFS=$as_save_IFS
2416 CC=$ac_cv_prog_CC
2417 if test -n "$CC"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2419 $as_echo "$CC" >&6; }
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422 $as_echo "no" >&6; }
2426 test -n "$CC" && break
2427 done
2429 if test -z "$CC"; then
2430 ac_ct_CC=$CC
2431 for ac_prog in cl.exe
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434 set dummy $ac_prog; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450 ac_cv_prog_ac_ct_CC="$ac_prog"
2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2454 done
2455 done
2456 IFS=$as_save_IFS
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2463 $as_echo "$ac_ct_CC" >&6; }
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2470 test -n "$ac_ct_CC" && break
2471 done
2473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477 yes:)
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482 CC=$ac_ct_CC
2489 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 as_fn_error $? "no acceptable C compiler found in \$PATH
2492 See \`config.log' for more details" "$LINENO" 5; }
2494 # Provide some information about the compiler.
2495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2496 set X $ac_compile
2497 ac_compiler=$2
2498 for ac_option in --version -v -V -qversion; do
2499 { { ac_try="$ac_compiler $ac_option >&5"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2507 ac_status=$?
2508 if test -s conftest.err; then
2509 sed '10a\
2510 ... rest of stderr output deleted ...
2511 10q' conftest.err >conftest.er1
2512 cat conftest.er1 >&5
2514 rm -f conftest.er1 conftest.err
2515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2516 test $ac_status = 0; }
2517 done
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2523 main ()
2527 return 0;
2529 _ACEOF
2530 ac_clean_files_save=$ac_clean_files
2531 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2532 # Try to create an executable without -o first, disregard a.out.
2533 # It will help us diagnose broken compilers, and finding out an intuition
2534 # of exeext.
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2536 $as_echo_n "checking whether the C compiler works... " >&6; }
2537 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 # The possible output files:
2540 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2542 ac_rmfiles=
2543 for ac_file in $ac_files
2545 case $ac_file in
2546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2547 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2548 esac
2549 done
2550 rm -f $ac_rmfiles
2552 if { { ac_try="$ac_link_default"
2553 case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556 esac
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 $as_echo "$ac_try_echo"; } >&5
2559 (eval "$ac_link_default") 2>&5
2560 ac_status=$?
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; }; then :
2563 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2565 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2566 # so that the user can short-circuit this test for compilers unknown to
2567 # Autoconf.
2568 for ac_file in $ac_files ''
2570 test -f "$ac_file" || continue
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2574 [ab].out )
2575 # We found the default executable, but exeext='' is most
2576 # certainly right.
2577 break;;
2578 *.* )
2579 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2580 then :; else
2581 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2583 # We set ac_cv_exeext here because the later test for it is not
2584 # safe: cross compilers may not add the suffix if given an `-o'
2585 # argument, so we may need to know it at that point already.
2586 # Even if this section looks crufty: it has the advantage of
2587 # actually working.
2588 break;;
2590 break;;
2591 esac
2592 done
2593 test "$ac_cv_exeext" = no && ac_cv_exeext=
2595 else
2596 ac_file=''
2598 if test -z "$ac_file"; then :
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error 77 "C compiler cannot create executables
2607 See \`config.log' for more details" "$LINENO" 5; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610 $as_echo "yes" >&6; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2613 $as_echo_n "checking for C compiler default output file name... " >&6; }
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2615 $as_echo "$ac_file" >&6; }
2616 ac_exeext=$ac_cv_exeext
2618 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2621 $as_echo_n "checking for suffix of executables... " >&6; }
2622 if { { ac_try="$ac_link"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link") 2>&5
2630 ac_status=$?
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }; then :
2633 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2634 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2635 # work properly (i.e., refer to `conftest.exe'), while it won't with
2636 # `rm'.
2637 for ac_file in conftest.exe conftest conftest.*; do
2638 test -f "$ac_file" || continue
2639 case $ac_file in
2640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2641 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642 break;;
2643 * ) break;;
2644 esac
2645 done
2646 else
2647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2650 See \`config.log' for more details" "$LINENO" 5; }
2652 rm -f conftest conftest$ac_cv_exeext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2654 $as_echo "$ac_cv_exeext" >&6; }
2656 rm -f conftest.$ac_ext
2657 EXEEXT=$ac_cv_exeext
2658 ac_exeext=$EXEEXT
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2661 #include <stdio.h>
2663 main ()
2665 FILE *f = fopen ("conftest.out", "w");
2666 return ferror (f) || fclose (f) != 0;
2669 return 0;
2671 _ACEOF
2672 ac_clean_files="$ac_clean_files conftest.out"
2673 # Check that the compiler produces executables we can run. If not, either
2674 # the compiler is broken, or we cross compile.
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2676 $as_echo_n "checking whether we are cross compiling... " >&6; }
2677 if test "$cross_compiling" != yes; then
2678 { { ac_try="$ac_link"
2679 case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682 esac
2683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684 $as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_link") 2>&5
2686 ac_status=$?
2687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2688 test $ac_status = 0; }
2689 if { ac_try='./conftest$ac_cv_exeext'
2690 { { case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_try") 2>&5
2697 ac_status=$?
2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699 test $ac_status = 0; }; }; then
2700 cross_compiling=no
2701 else
2702 if test "$cross_compiling" = maybe; then
2703 cross_compiling=yes
2704 else
2705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 as_fn_error $? "cannot run C compiled programs.
2708 If you meant to cross compile, use \`--host'.
2709 See \`config.log' for more details" "$LINENO" 5; }
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2714 $as_echo "$cross_compiling" >&6; }
2716 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2717 ac_clean_files=$ac_clean_files_save
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2719 $as_echo_n "checking for suffix of object files... " >&6; }
2720 if ${ac_cv_objext+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2727 main ()
2731 return 0;
2733 _ACEOF
2734 rm -f conftest.o conftest.obj
2735 if { { ac_try="$ac_compile"
2736 case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741 $as_echo "$ac_try_echo"; } >&5
2742 (eval "$ac_compile") 2>&5
2743 ac_status=$?
2744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745 test $ac_status = 0; }; then :
2746 for ac_file in conftest.o conftest.obj conftest.*; do
2747 test -f "$ac_file" || continue;
2748 case $ac_file in
2749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2750 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2751 break;;
2752 esac
2753 done
2754 else
2755 $as_echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760 as_fn_error $? "cannot compute suffix of object files: cannot compile
2761 See \`config.log' for more details" "$LINENO" 5; }
2763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2766 $as_echo "$ac_cv_objext" >&6; }
2767 OBJEXT=$ac_cv_objext
2768 ac_objext=$OBJEXT
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2770 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2771 if ${ac_cv_c_compiler_gnu+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2778 main ()
2780 #ifndef __GNUC__
2781 choke me
2782 #endif
2785 return 0;
2787 _ACEOF
2788 if ac_fn_c_try_compile "$LINENO"; then :
2789 ac_compiler_gnu=yes
2790 else
2791 ac_compiler_gnu=no
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2798 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2799 if test $ac_compiler_gnu = yes; then
2800 GCC=yes
2801 else
2802 GCC=
2804 ac_test_CFLAGS=${CFLAGS+set}
2805 ac_save_CFLAGS=$CFLAGS
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2807 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2808 if ${ac_cv_prog_cc_g+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 ac_save_c_werror_flag=$ac_c_werror_flag
2812 ac_c_werror_flag=yes
2813 ac_cv_prog_cc_g=no
2814 CFLAGS="-g"
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2819 main ()
2823 return 0;
2825 _ACEOF
2826 if ac_fn_c_try_compile "$LINENO"; then :
2827 ac_cv_prog_cc_g=yes
2828 else
2829 CFLAGS=""
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2834 main ()
2838 return 0;
2840 _ACEOF
2841 if ac_fn_c_try_compile "$LINENO"; then :
2843 else
2844 ac_c_werror_flag=$ac_save_c_werror_flag
2845 CFLAGS="-g"
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2850 main ()
2854 return 0;
2856 _ACEOF
2857 if ac_fn_c_try_compile "$LINENO"; then :
2858 ac_cv_prog_cc_g=yes
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_c_werror_flag=$ac_save_c_werror_flag
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2868 $as_echo "$ac_cv_prog_cc_g" >&6; }
2869 if test "$ac_test_CFLAGS" = set; then
2870 CFLAGS=$ac_save_CFLAGS
2871 elif test $ac_cv_prog_cc_g = yes; then
2872 if test "$GCC" = yes; then
2873 CFLAGS="-g -O2"
2874 else
2875 CFLAGS="-g"
2877 else
2878 if test "$GCC" = yes; then
2879 CFLAGS="-O2"
2880 else
2881 CFLAGS=
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2885 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2886 if ${ac_cv_prog_cc_c89+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 ac_cv_prog_cc_c89=no
2890 ac_save_CC=$CC
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2893 #include <stdarg.h>
2894 #include <stdio.h>
2895 struct stat;
2896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2897 struct buf { int x; };
2898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2899 static char *e (p, i)
2900 char **p;
2901 int i;
2903 return p[i];
2905 static char *f (char * (*g) (char **, int), char **p, ...)
2907 char *s;
2908 va_list v;
2909 va_start (v,p);
2910 s = g (p, va_arg (v,int));
2911 va_end (v);
2912 return s;
2915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2916 function prototypes and stuff, but not '\xHH' hex character constants.
2917 These don't provoke an error unfortunately, instead are silently treated
2918 as 'x'. The following induces an error, until -std is added to get
2919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2920 array size at least. It's necessary to write '\x00'==0 to get something
2921 that's true only with -std. */
2922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2924 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2925 inside strings and character constants. */
2926 #define FOO(x) 'x'
2927 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2929 int test (int i, double x);
2930 struct s1 {int (*f) (int a);};
2931 struct s2 {int (*f) (double a);};
2932 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2933 int argc;
2934 char **argv;
2936 main ()
2938 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2940 return 0;
2942 _ACEOF
2943 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2944 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2946 CC="$ac_save_CC $ac_arg"
2947 if ac_fn_c_try_compile "$LINENO"; then :
2948 ac_cv_prog_cc_c89=$ac_arg
2950 rm -f core conftest.err conftest.$ac_objext
2951 test "x$ac_cv_prog_cc_c89" != "xno" && break
2952 done
2953 rm -f conftest.$ac_ext
2954 CC=$ac_save_CC
2957 # AC_CACHE_VAL
2958 case "x$ac_cv_prog_cc_c89" in
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2961 $as_echo "none needed" >&6; } ;;
2962 xno)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2964 $as_echo "unsupported" >&6; } ;;
2966 CC="$CC $ac_cv_prog_cc_c89"
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2969 esac
2970 if test "x$ac_cv_prog_cc_c89" != xno; then :
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 ### find out the path to BIND utils and version
2982 # Check whether --enable-bind_util_path was given.
2983 if test "${enable_bind_util_path+set}" = set; then :
2984 enableval=$enable_bind_util_path; bind_util_path=$enableval
2987 if test -n "$bind_util_path"
2988 then
2989 if test -x "$bind_util_path/dnssec-signzone"
2990 then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: BIND utilities path successfully set to $bind_util_path." >&5
2992 $as_echo "$as_me: BIND utilities path successfully set to $bind_util_path." >&6;}
2993 SIGNZONE_PROG=$bind_util_path/dnssec-signzone
2994 else
2995 as_fn_error $? "*** 'BIND utility not found in $bind_util_path, please use --enable-bind_util_path= to set it manually' ***" "$LINENO" 5
2997 else
2998 # Extract the first word of "dnssec-signzone", so it can be a program name with args.
2999 set dummy dnssec-signzone; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_path_SIGNZONE_PROG+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 case $SIGNZONE_PROG in
3006 [\\/]* | ?:[\\/]*)
3007 ac_cv_path_SIGNZONE_PROG="$SIGNZONE_PROG" # Let the user override the test with a path.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_path_SIGNZONE_PROG="$as_dir/$ac_word$ac_exec_ext"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3021 done
3022 done
3023 IFS=$as_save_IFS
3026 esac
3028 SIGNZONE_PROG=$ac_cv_path_SIGNZONE_PROG
3029 if test -n "$SIGNZONE_PROG"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIGNZONE_PROG" >&5
3031 $as_echo "$SIGNZONE_PROG" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: BIND utility $SIGNZONE_PROG found" >&5
3039 $as_echo "$as_me: BIND utility $SIGNZONE_PROG found" >&6;}
3040 if test -n "$SIGNZONE_PROG"
3041 then
3042 bind_util_path=`dirname "$SIGNZONE_PROG"`
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: BIND utilities path automatically set to $bind_util_path." >&5
3044 $as_echo "$as_me: BIND utilities path automatically set to $bind_util_path." >&6;}
3045 else
3046 as_fn_error $? "*** 'could not determine BIND utility path, please use --enable-bind_util_path= ' to set it manually ***" "$LINENO" 5
3049 ### By now, we have a path. We'll use it.
3050 # define BIND_UTIL_PATH in config.h.in
3052 cat >>confdefs.h <<_ACEOF
3053 #define BIND_UTIL_PATH "$bind_util_path/"
3054 _ACEOF
3057 # define BIND_VERSION in config.h.in
3058 bind_version=`$SIGNZONE_PROG 2>&1 | awk -F: '/^Version:/ { split ($2, v, "."); printf ("%2d%02d%02d\n", atoi (v[1]), atoi (v[2]), atoi (v[3])); };'`
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: BIND_VERSION string set to $bind_version." >&5
3060 $as_echo "$as_me: BIND_VERSION string set to $bind_version." >&6;}
3062 cat >>confdefs.h <<_ACEOF
3063 #define BIND_VERSION $bind_version
3064 _ACEOF
3066 if test $bind_version -lt "90800"
3067 then
3068 as_fn_error $? "*** 'This version of ZKT requires a BIND version greater 9.7' ***" "$LINENO" 5
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3079 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3080 # On Suns, sometimes $CPP names a directory.
3081 if test -n "$CPP" && test -d "$CPP"; then
3082 CPP=
3084 if test -z "$CPP"; then
3085 if ${ac_cv_prog_CPP+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 # Double quotes because CPP needs to be expanded
3089 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3091 ac_preproc_ok=false
3092 for ac_c_preproc_warn_flag in '' yes
3094 # Use a header file that comes with gcc, so configuring glibc
3095 # with a fresh cross-compiler works.
3096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3097 # <limits.h> exists even on freestanding compilers.
3098 # On the NeXT, cc -E runs the code through the compiler's parser,
3099 # not just through cpp. "Syntax error" is here to catch this case.
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102 #ifdef __STDC__
3103 # include <limits.h>
3104 #else
3105 # include <assert.h>
3106 #endif
3107 Syntax error
3108 _ACEOF
3109 if ac_fn_c_try_cpp "$LINENO"; then :
3111 else
3112 # Broken: fails on valid input.
3113 continue
3115 rm -f conftest.err conftest.i conftest.$ac_ext
3117 # OK, works on sane cases. Now check whether nonexistent headers
3118 # can be detected and how.
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121 #include <ac_nonexistent.h>
3122 _ACEOF
3123 if ac_fn_c_try_cpp "$LINENO"; then :
3124 # Broken: success on invalid input.
3125 continue
3126 else
3127 # Passes both tests.
3128 ac_preproc_ok=:
3129 break
3131 rm -f conftest.err conftest.i conftest.$ac_ext
3133 done
3134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3135 rm -f conftest.i conftest.err conftest.$ac_ext
3136 if $ac_preproc_ok; then :
3137 break
3140 done
3141 ac_cv_prog_CPP=$CPP
3144 CPP=$ac_cv_prog_CPP
3145 else
3146 ac_cv_prog_CPP=$CPP
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3149 $as_echo "$CPP" >&6; }
3150 ac_preproc_ok=false
3151 for ac_c_preproc_warn_flag in '' yes
3153 # Use a header file that comes with gcc, so configuring glibc
3154 # with a fresh cross-compiler works.
3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156 # <limits.h> exists even on freestanding compilers.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161 #ifdef __STDC__
3162 # include <limits.h>
3163 #else
3164 # include <assert.h>
3165 #endif
3166 Syntax error
3167 _ACEOF
3168 if ac_fn_c_try_cpp "$LINENO"; then :
3170 else
3171 # Broken: fails on valid input.
3172 continue
3174 rm -f conftest.err conftest.i conftest.$ac_ext
3176 # OK, works on sane cases. Now check whether nonexistent headers
3177 # can be detected and how.
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180 #include <ac_nonexistent.h>
3181 _ACEOF
3182 if ac_fn_c_try_cpp "$LINENO"; then :
3183 # Broken: success on invalid input.
3184 continue
3185 else
3186 # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3190 rm -f conftest.err conftest.i conftest.$ac_ext
3192 done
3193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194 rm -f conftest.i conftest.err conftest.$ac_ext
3195 if $ac_preproc_ok; then :
3197 else
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3201 See \`config.log' for more details" "$LINENO" 5; }
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3212 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3213 if ${ac_cv_path_GREP+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -z "$GREP"; then
3217 ac_path_GREP_found=false
3218 # Loop through the user's path and test for each of PROGNAME-LIST
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_prog in grep ggrep; do
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3227 as_fn_executable_p "$ac_path_GREP" || continue
3228 # Check for GNU ac_path_GREP and select it if it is found.
3229 # Check for GNU $ac_path_GREP
3230 case `"$ac_path_GREP" --version 2>&1` in
3231 *GNU*)
3232 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3234 ac_count=0
3235 $as_echo_n 0123456789 >"conftest.in"
3236 while :
3238 cat "conftest.in" "conftest.in" >"conftest.tmp"
3239 mv "conftest.tmp" "conftest.in"
3240 cp "conftest.in" "conftest.nl"
3241 $as_echo 'GREP' >> "conftest.nl"
3242 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3244 as_fn_arith $ac_count + 1 && ac_count=$as_val
3245 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3246 # Best one so far, save it but keep looking for a better one
3247 ac_cv_path_GREP="$ac_path_GREP"
3248 ac_path_GREP_max=$ac_count
3250 # 10*(2^10) chars as input seems more than enough
3251 test $ac_count -gt 10 && break
3252 done
3253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3254 esac
3256 $ac_path_GREP_found && break 3
3257 done
3258 done
3259 done
3260 IFS=$as_save_IFS
3261 if test -z "$ac_cv_path_GREP"; then
3262 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3264 else
3265 ac_cv_path_GREP=$GREP
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3270 $as_echo "$ac_cv_path_GREP" >&6; }
3271 GREP="$ac_cv_path_GREP"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3275 $as_echo_n "checking for egrep... " >&6; }
3276 if ${ac_cv_path_EGREP+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3280 then ac_cv_path_EGREP="$GREP -E"
3281 else
3282 if test -z "$EGREP"; then
3283 ac_path_EGREP_found=false
3284 # Loop through the user's path and test for each of PROGNAME-LIST
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_prog in egrep; do
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3293 as_fn_executable_p "$ac_path_EGREP" || continue
3294 # Check for GNU ac_path_EGREP and select it if it is found.
3295 # Check for GNU $ac_path_EGREP
3296 case `"$ac_path_EGREP" --version 2>&1` in
3297 *GNU*)
3298 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3300 ac_count=0
3301 $as_echo_n 0123456789 >"conftest.in"
3302 while :
3304 cat "conftest.in" "conftest.in" >"conftest.tmp"
3305 mv "conftest.tmp" "conftest.in"
3306 cp "conftest.in" "conftest.nl"
3307 $as_echo 'EGREP' >> "conftest.nl"
3308 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3310 as_fn_arith $ac_count + 1 && ac_count=$as_val
3311 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3312 # Best one so far, save it but keep looking for a better one
3313 ac_cv_path_EGREP="$ac_path_EGREP"
3314 ac_path_EGREP_max=$ac_count
3316 # 10*(2^10) chars as input seems more than enough
3317 test $ac_count -gt 10 && break
3318 done
3319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3320 esac
3322 $ac_path_EGREP_found && break 3
3323 done
3324 done
3325 done
3326 IFS=$as_save_IFS
3327 if test -z "$ac_cv_path_EGREP"; then
3328 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3330 else
3331 ac_cv_path_EGREP=$EGREP
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3337 $as_echo "$ac_cv_path_EGREP" >&6; }
3338 EGREP="$ac_cv_path_EGREP"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3342 $as_echo_n "checking for ANSI C header files... " >&6; }
3343 if ${ac_cv_header_stdc+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348 #include <stdlib.h>
3349 #include <stdarg.h>
3350 #include <string.h>
3351 #include <float.h>
3354 main ()
3358 return 0;
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_cv_header_stdc=yes
3363 else
3364 ac_cv_header_stdc=no
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 if test $ac_cv_header_stdc = yes; then
3369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372 #include <string.h>
3374 _ACEOF
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 $EGREP "memchr" >/dev/null 2>&1; then :
3378 else
3379 ac_cv_header_stdc=no
3381 rm -f conftest*
3385 if test $ac_cv_header_stdc = yes; then
3386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389 #include <stdlib.h>
3391 _ACEOF
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 $EGREP "free" >/dev/null 2>&1; then :
3395 else
3396 ac_cv_header_stdc=no
3398 rm -f conftest*
3402 if test $ac_cv_header_stdc = yes; then
3403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3404 if test "$cross_compiling" = yes; then :
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <ctype.h>
3410 #include <stdlib.h>
3411 #if ((' ' & 0x0FF) == 0x020)
3412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3414 #else
3415 # define ISLOWER(c) \
3416 (('a' <= (c) && (c) <= 'i') \
3417 || ('j' <= (c) && (c) <= 'r') \
3418 || ('s' <= (c) && (c) <= 'z'))
3419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3420 #endif
3422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3424 main ()
3426 int i;
3427 for (i = 0; i < 256; i++)
3428 if (XOR (islower (i), ISLOWER (i))
3429 || toupper (i) != TOUPPER (i))
3430 return 2;
3431 return 0;
3433 _ACEOF
3434 if ac_fn_c_try_run "$LINENO"; then :
3436 else
3437 ac_cv_header_stdc=no
3439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3440 conftest.$ac_objext conftest.beam conftest.$ac_ext
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3446 $as_echo "$ac_cv_header_stdc" >&6; }
3447 if test $ac_cv_header_stdc = yes; then
3449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3454 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3455 inttypes.h stdint.h unistd.h
3456 do :
3457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3461 cat >>confdefs.h <<_ACEOF
3462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3463 _ACEOF
3467 done
3470 ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
3471 if test "x$ac_cv_type_uint" = xyes; then :
3473 else
3475 cat >>confdefs.h <<_ACEOF
3476 #define uint unsigned int
3477 _ACEOF
3481 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
3482 if test "x$ac_cv_type_ulong" = xyes; then :
3484 else
3486 cat >>confdefs.h <<_ACEOF
3487 #define ulong unsigned long
3488 _ACEOF
3492 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
3493 if test "x$ac_cv_type_ushort" = xyes; then :
3495 else
3497 cat >>confdefs.h <<_ACEOF
3498 #define ushort unsigned short
3499 _ACEOF
3503 ac_fn_c_check_type "$LINENO" "uchar" "ac_cv_type_uchar" "$ac_includes_default"
3504 if test "x$ac_cv_type_uchar" = xyes; then :
3506 else
3508 cat >>confdefs.h <<_ACEOF
3509 #define uchar unsigned char
3510 _ACEOF
3515 ### define configure arguments
3516 # Check whether --enable-color_mode was given.
3517 if test "${enable_color_mode+set}" = set; then :
3518 enableval=$enable_color_mode;
3521 color_mode=1
3522 if test "$enable_color_mode" = "no"; then :
3523 color_mode=0
3527 # Check whether --with-curses was given.
3528 if test "${with_curses+set}" = set; then :
3529 withval=$with_curses;
3533 if test "x$with_curses" != "xno"; then :
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
3535 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
3536 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 ac_check_lib_save_LIBS=$LIBS
3540 LIBS="-lncurses $LIBS"
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3544 /* Override any GCC internal prototype to avoid an error.
3545 Use char because int might match the return type of a GCC
3546 builtin and then its argument prototype would still apply. */
3547 #ifdef __cplusplus
3548 extern "C"
3549 #endif
3550 char tgetent ();
3552 main ()
3554 return tgetent ();
3556 return 0;
3558 _ACEOF
3559 if ac_fn_c_try_link "$LINENO"; then :
3560 ac_cv_lib_ncurses_tgetent=yes
3561 else
3562 ac_cv_lib_ncurses_tgetent=no
3564 rm -f core conftest.err conftest.$ac_objext \
3565 conftest$ac_exeext conftest.$ac_ext
3566 LIBS=$ac_check_lib_save_LIBS
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
3569 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
3570 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
3571 cat >>confdefs.h <<_ACEOF
3572 #define HAVE_LIBNCURSES 1
3573 _ACEOF
3575 LIBS="-lncurses $LIBS"
3579 else
3580 HAVE_LIB_NCURSES=0; color_mode=0
3584 cat >>confdefs.h <<_ACEOF
3585 #define COLOR_MODE $color_mode
3586 _ACEOF
3590 # Check whether --enable-printtimezone was given.
3591 if test "${enable_printtimezone+set}" = set; then :
3592 enableval=$enable_printtimezone;
3595 printtimezone=0
3596 if test "$enable_printtimezone" = "yes"; then :
3597 printtimezone=1
3600 cat >>confdefs.h <<_ACEOF
3601 #define PRINT_TIMEZONE $printtimezone
3602 _ACEOF
3605 # Check whether --enable-printyear was given.
3606 if test "${enable_printyear+set}" = set; then :
3607 enableval=$enable_printyear;
3610 printyear=0
3611 if test "$enable_printyear" = "yes"; then :
3612 printyear=1
3615 cat >>confdefs.h <<_ACEOF
3616 #define PRINT_AGE_WITH_YEAR $printyear
3617 _ACEOF
3620 # Check whether --enable-logprogname was given.
3621 if test "${enable_logprogname+set}" = set; then :
3622 enableval=$enable_logprogname;
3625 logprogname=0
3626 if test "$enable_logprogname" = "yes"; then :
3627 logprogname=1
3630 cat >>confdefs.h <<_ACEOF
3631 #define LOG_WITH_PROGNAME $logprogname
3632 _ACEOF
3635 # Check whether --enable-logtimestamp was given.
3636 if test "${enable_logtimestamp+set}" = set; then :
3637 enableval=$enable_logtimestamp;
3640 logtimestamp=1
3641 if test "$enable_logtimestamp" = "no"; then :
3642 logtimestamp=0
3645 cat >>confdefs.h <<_ACEOF
3646 #define LOG_WITH_TIMESTAMP $logtimestamp
3647 _ACEOF
3650 # Check whether --enable-loglevel was given.
3651 if test "${enable_loglevel+set}" = set; then :
3652 enableval=$enable_loglevel;
3655 loglevel=1
3656 if test "$enable_loglevel" = "no"; then :
3657 loglevel=0
3660 cat >>confdefs.h <<_ACEOF
3661 #define LOG_WITH_LEVEL $loglevel
3662 _ACEOF
3665 # Check whether --enable-ttl_in_keyfile was given.
3666 if test "${enable_ttl_in_keyfile+set}" = set; then :
3667 enableval=$enable_ttl_in_keyfile;
3670 ttl_in_keyfile=1
3671 if test "$enable_ttl_in_keyfile" = "no"; then :
3672 ttl_in_keyfile=0
3675 cat >>confdefs.h <<_ACEOF
3676 #define TTL_IN_KEYFILE_ALLOWED $ttl_in_keyfile
3677 _ACEOF
3680 configpath="/var/named"
3681 # Check whether --enable-configpath was given.
3682 if test "${enable_configpath+set}" = set; then :
3683 enableval=$enable_configpath; configpath=$enableval
3686 case "$configpath" in
3687 yes)
3688 configpath="/var/named"
3691 configpath=""
3695 esac
3697 cat >>confdefs.h <<_ACEOF
3698 #define CONFIG_PATH "$configpath/"
3699 _ACEOF
3702 usetree=1
3703 t=""
3704 # Check whether --enable-tree was given.
3705 if test "${enable_tree+set}" = set; then :
3706 enableval=$enable_tree; usetree=$enableval
3709 if test "$usetree" = no
3710 then
3711 usetree=0
3712 t="S"
3715 cat >>confdefs.h <<_ACEOF
3716 #define USE_TREE $usetree
3717 _ACEOF
3721 cat >>confdefs.h <<_ACEOF
3722 #define ZKT_VERSION "$t$PACKAGE_VERSION"
3723 _ACEOF
3726 cat >>confdefs.h <<_ACEOF
3727 #define ZKT_COPYRIGHT "(c) Feb 2005 - Nov 2012 Holger Zuleger hznet.de"
3728 _ACEOF
3731 ### Checks for libraries.
3733 ### Checks for header files.
3734 ac_header_dirent=no
3735 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3736 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3738 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3739 if eval \${$as_ac_Header+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <sys/types.h>
3745 #include <$ac_hdr>
3748 main ()
3750 if ((DIR *) 0)
3751 return 0;
3753 return 0;
3755 _ACEOF
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757 eval "$as_ac_Header=yes"
3758 else
3759 eval "$as_ac_Header=no"
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 eval ac_res=\$$as_ac_Header
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3765 $as_echo "$ac_res" >&6; }
3766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3767 cat >>confdefs.h <<_ACEOF
3768 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3769 _ACEOF
3771 ac_header_dirent=$ac_hdr; break
3774 done
3775 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3776 if test $ac_header_dirent = dirent.h; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3778 $as_echo_n "checking for library containing opendir... " >&6; }
3779 if ${ac_cv_search_opendir+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 ac_func_search_save_LIBS=$LIBS
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3786 /* Override any GCC internal prototype to avoid an error.
3787 Use char because int might match the return type of a GCC
3788 builtin and then its argument prototype would still apply. */
3789 #ifdef __cplusplus
3790 extern "C"
3791 #endif
3792 char opendir ();
3794 main ()
3796 return opendir ();
3798 return 0;
3800 _ACEOF
3801 for ac_lib in '' dir; do
3802 if test -z "$ac_lib"; then
3803 ac_res="none required"
3804 else
3805 ac_res=-l$ac_lib
3806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3808 if ac_fn_c_try_link "$LINENO"; then :
3809 ac_cv_search_opendir=$ac_res
3811 rm -f core conftest.err conftest.$ac_objext \
3812 conftest$ac_exeext
3813 if ${ac_cv_search_opendir+:} false; then :
3814 break
3816 done
3817 if ${ac_cv_search_opendir+:} false; then :
3819 else
3820 ac_cv_search_opendir=no
3822 rm conftest.$ac_ext
3823 LIBS=$ac_func_search_save_LIBS
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3826 $as_echo "$ac_cv_search_opendir" >&6; }
3827 ac_res=$ac_cv_search_opendir
3828 if test "$ac_res" != no; then :
3829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3833 else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3835 $as_echo_n "checking for library containing opendir... " >&6; }
3836 if ${ac_cv_search_opendir+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_func_search_save_LIBS=$LIBS
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3843 /* Override any GCC internal prototype to avoid an error.
3844 Use char because int might match the return type of a GCC
3845 builtin and then its argument prototype would still apply. */
3846 #ifdef __cplusplus
3847 extern "C"
3848 #endif
3849 char opendir ();
3851 main ()
3853 return opendir ();
3855 return 0;
3857 _ACEOF
3858 for ac_lib in '' x; do
3859 if test -z "$ac_lib"; then
3860 ac_res="none required"
3861 else
3862 ac_res=-l$ac_lib
3863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3865 if ac_fn_c_try_link "$LINENO"; then :
3866 ac_cv_search_opendir=$ac_res
3868 rm -f core conftest.err conftest.$ac_objext \
3869 conftest$ac_exeext
3870 if ${ac_cv_search_opendir+:} false; then :
3871 break
3873 done
3874 if ${ac_cv_search_opendir+:} false; then :
3876 else
3877 ac_cv_search_opendir=no
3879 rm conftest.$ac_ext
3880 LIBS=$ac_func_search_save_LIBS
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3883 $as_echo "$ac_cv_search_opendir" >&6; }
3884 ac_res=$ac_cv_search_opendir
3885 if test "$ac_res" != no; then :
3886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3893 $as_echo_n "checking for ANSI C header files... " >&6; }
3894 if ${ac_cv_header_stdc+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #include <stdlib.h>
3900 #include <stdarg.h>
3901 #include <string.h>
3902 #include <float.h>
3905 main ()
3909 return 0;
3911 _ACEOF
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_cv_header_stdc=yes
3914 else
3915 ac_cv_header_stdc=no
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <string.h>
3925 _ACEOF
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "memchr" >/dev/null 2>&1; then :
3929 else
3930 ac_cv_header_stdc=no
3932 rm -f conftest*
3936 if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <stdlib.h>
3942 _ACEOF
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 $EGREP "free" >/dev/null 2>&1; then :
3946 else
3947 ac_cv_header_stdc=no
3949 rm -f conftest*
3953 if test $ac_cv_header_stdc = yes; then
3954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3955 if test "$cross_compiling" = yes; then :
3957 else
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ctype.h>
3961 #include <stdlib.h>
3962 #if ((' ' & 0x0FF) == 0x020)
3963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3965 #else
3966 # define ISLOWER(c) \
3967 (('a' <= (c) && (c) <= 'i') \
3968 || ('j' <= (c) && (c) <= 'r') \
3969 || ('s' <= (c) && (c) <= 'z'))
3970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3971 #endif
3973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3975 main ()
3977 int i;
3978 for (i = 0; i < 256; i++)
3979 if (XOR (islower (i), ISLOWER (i))
3980 || toupper (i) != TOUPPER (i))
3981 return 2;
3982 return 0;
3984 _ACEOF
3985 if ac_fn_c_try_run "$LINENO"; then :
3987 else
3988 ac_cv_header_stdc=no
3990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3991 conftest.$ac_objext conftest.beam conftest.$ac_ext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3997 $as_echo "$ac_cv_header_stdc" >&6; }
3998 if test $ac_cv_header_stdc = yes; then
4000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4004 for ac_header in fcntl.h netdb.h stdlib.h getopt.h string.h strings.h sys/socket.h sys/time.h sys/types.h syslog.h unistd.h utime.h term.h curses.h
4005 do :
4006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4009 cat >>confdefs.h <<_ACEOF
4010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4011 _ACEOF
4015 done
4019 ### Checks for typedefs, structures, and compiler characteristics.
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4021 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4022 if ${ac_cv_c_const+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4029 main ()
4032 #ifndef __cplusplus
4033 /* Ultrix mips cc rejects this sort of thing. */
4034 typedef int charset[2];
4035 const charset cs = { 0, 0 };
4036 /* SunOS 4.1.1 cc rejects this. */
4037 char const *const *pcpcc;
4038 char **ppc;
4039 /* NEC SVR4.0.2 mips cc rejects this. */
4040 struct point {int x, y;};
4041 static struct point const zero = {0,0};
4042 /* AIX XL C 1.02.0.0 rejects this.
4043 It does not let you subtract one const X* pointer from another in
4044 an arm of an if-expression whose if-part is not a constant
4045 expression */
4046 const char *g = "string";
4047 pcpcc = &g + (g ? g-g : 0);
4048 /* HPUX 7.0 cc rejects these. */
4049 ++pcpcc;
4050 ppc = (char**) pcpcc;
4051 pcpcc = (char const *const *) ppc;
4052 { /* SCO 3.2v4 cc rejects this sort of thing. */
4053 char tx;
4054 char *t = &tx;
4055 char const *s = 0 ? (char *) 0 : (char const *) 0;
4057 *t++ = 0;
4058 if (s) return 0;
4060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4061 int x[] = {25, 17};
4062 const int *foo = &x[0];
4063 ++foo;
4065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4066 typedef const int *iptr;
4067 iptr p = 0;
4068 ++p;
4070 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4072 struct s { int j; const int *ap[3]; } bx;
4073 struct s *b = &bx; b->j = 5;
4075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4076 const int foo = 10;
4077 if (!foo) return 0;
4079 return !cs[0] && !zero.x;
4080 #endif
4083 return 0;
4085 _ACEOF
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_c_const=yes
4088 else
4089 ac_cv_c_const=no
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4094 $as_echo "$ac_cv_c_const" >&6; }
4095 if test $ac_cv_c_const = no; then
4097 $as_echo "#define const /**/" >>confdefs.h
4101 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4102 if test "x$ac_cv_type_size_t" = xyes; then :
4104 else
4106 cat >>confdefs.h <<_ACEOF
4107 #define size_t unsigned int
4108 _ACEOF
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4113 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4114 if ${ac_cv_header_time+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #include <sys/types.h>
4120 #include <sys/time.h>
4121 #include <time.h>
4124 main ()
4126 if ((struct tm *) 0)
4127 return 0;
4129 return 0;
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133 ac_cv_header_time=yes
4134 else
4135 ac_cv_header_time=no
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4140 $as_echo "$ac_cv_header_time" >&6; }
4141 if test $ac_cv_header_time = yes; then
4143 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4148 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4149 if ${ac_cv_struct_tm+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <sys/types.h>
4155 #include <time.h>
4158 main ()
4160 struct tm tm;
4161 int *p = &tm.tm_sec;
4162 return !p;
4164 return 0;
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_struct_tm=time.h
4169 else
4170 ac_cv_struct_tm=sys/time.h
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4175 $as_echo "$ac_cv_struct_tm" >&6; }
4176 if test $ac_cv_struct_tm = sys/time.h; then
4178 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4183 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4184 if ${ac_cv_type_uid_t+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <sys/types.h>
4191 _ACEOF
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "uid_t" >/dev/null 2>&1; then :
4194 ac_cv_type_uid_t=yes
4195 else
4196 ac_cv_type_uid_t=no
4198 rm -f conftest*
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4202 $as_echo "$ac_cv_type_uid_t" >&6; }
4203 if test $ac_cv_type_uid_t = no; then
4205 $as_echo "#define uid_t int" >>confdefs.h
4208 $as_echo "#define gid_t int" >>confdefs.h
4214 ### Checks for library functions.
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
4216 $as_echo_n "checking whether closedir returns void... " >&6; }
4217 if ${ac_cv_func_closedir_void+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test "$cross_compiling" = yes; then :
4221 ac_cv_func_closedir_void=yes
4222 else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 $ac_includes_default
4226 #include <$ac_header_dirent>
4227 #ifndef __cplusplus
4228 int closedir ();
4229 #endif
4232 main ()
4234 return closedir (opendir (".")) != 0;
4236 return 0;
4238 _ACEOF
4239 if ac_fn_c_try_run "$LINENO"; then :
4240 ac_cv_func_closedir_void=no
4241 else
4242 ac_cv_func_closedir_void=yes
4244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4245 conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
4250 $as_echo "$ac_cv_func_closedir_void" >&6; }
4251 if test $ac_cv_func_closedir_void = yes; then
4253 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
4258 $as_echo_n "checking for error_at_line... " >&6; }
4259 if ${ac_cv_lib_error_at_line+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <error.h>
4266 main ()
4268 error_at_line (0, 0, "", 0, "an error occurred");
4270 return 0;
4272 _ACEOF
4273 if ac_fn_c_try_link "$LINENO"; then :
4274 ac_cv_lib_error_at_line=yes
4275 else
4276 ac_cv_lib_error_at_line=no
4278 rm -f core conftest.err conftest.$ac_objext \
4279 conftest$ac_exeext conftest.$ac_ext
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
4282 $as_echo "$ac_cv_lib_error_at_line" >&6; }
4283 if test $ac_cv_lib_error_at_line = no; then
4284 case " $LIBOBJS " in
4285 *" error.$ac_objext "* ) ;;
4286 *) LIBOBJS="$LIBOBJS error.$ac_objext"
4288 esac
4295 for ac_header in $ac_header_list
4296 do :
4297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4300 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4301 cat >>confdefs.h <<_ACEOF
4302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4303 _ACEOF
4307 done
4316 for ac_func in $ac_func_list
4317 do :
4318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4320 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4321 cat >>confdefs.h <<_ACEOF
4322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4323 _ACEOF
4326 done
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
4333 $as_echo_n "checking for working mktime... " >&6; }
4334 if ${ac_cv_func_working_mktime+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test "$cross_compiling" = yes; then :
4338 ac_cv_func_working_mktime=no
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 /* Test program from Paul Eggert and Tony Leneis. */
4343 #ifdef TIME_WITH_SYS_TIME
4344 # include <sys/time.h>
4345 # include <time.h>
4346 #else
4347 # ifdef HAVE_SYS_TIME_H
4348 # include <sys/time.h>
4349 # else
4350 # include <time.h>
4351 # endif
4352 #endif
4354 #include <limits.h>
4355 #include <stdlib.h>
4357 #ifdef HAVE_UNISTD_H
4358 # include <unistd.h>
4359 #endif
4361 #ifndef HAVE_ALARM
4362 # define alarm(X) /* empty */
4363 #endif
4365 /* Work around redefinition to rpl_putenv by other config tests. */
4366 #undef putenv
4368 static time_t time_t_max;
4369 static time_t time_t_min;
4371 /* Values we'll use to set the TZ environment variable. */
4372 static const char *tz_strings[] = {
4373 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
4374 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
4376 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
4378 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
4379 Based on a problem report from Andreas Jaeger. */
4380 static int
4381 spring_forward_gap ()
4383 /* glibc (up to about 1998-10-07) failed this test. */
4384 struct tm tm;
4386 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
4387 instead of "TZ=America/Vancouver" in order to detect the bug even
4388 on systems that don't support the Olson extension, or don't have the
4389 full zoneinfo tables installed. */
4390 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
4392 tm.tm_year = 98;
4393 tm.tm_mon = 3;
4394 tm.tm_mday = 5;
4395 tm.tm_hour = 2;
4396 tm.tm_min = 0;
4397 tm.tm_sec = 0;
4398 tm.tm_isdst = -1;
4399 return mktime (&tm) != (time_t) -1;
4402 static int
4403 mktime_test1 (time_t now)
4405 struct tm *lt;
4406 return ! (lt = localtime (&now)) || mktime (lt) == now;
4409 static int
4410 mktime_test (time_t now)
4412 return (mktime_test1 (now)
4413 && mktime_test1 ((time_t) (time_t_max - now))
4414 && mktime_test1 ((time_t) (time_t_min + now)));
4417 static int
4418 irix_6_4_bug ()
4420 /* Based on code from Ariel Faigon. */
4421 struct tm tm;
4422 tm.tm_year = 96;
4423 tm.tm_mon = 3;
4424 tm.tm_mday = 0;
4425 tm.tm_hour = 0;
4426 tm.tm_min = 0;
4427 tm.tm_sec = 0;
4428 tm.tm_isdst = -1;
4429 mktime (&tm);
4430 return tm.tm_mon == 2 && tm.tm_mday == 31;
4433 static int
4434 bigtime_test (int j)
4436 struct tm tm;
4437 time_t now;
4438 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
4439 now = mktime (&tm);
4440 if (now != (time_t) -1)
4442 struct tm *lt = localtime (&now);
4443 if (! (lt
4444 && lt->tm_year == tm.tm_year
4445 && lt->tm_mon == tm.tm_mon
4446 && lt->tm_mday == tm.tm_mday
4447 && lt->tm_hour == tm.tm_hour
4448 && lt->tm_min == tm.tm_min
4449 && lt->tm_sec == tm.tm_sec
4450 && lt->tm_yday == tm.tm_yday
4451 && lt->tm_wday == tm.tm_wday
4452 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
4453 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
4454 return 0;
4456 return 1;
4459 static int
4460 year_2050_test ()
4462 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
4463 ignoring leap seconds. */
4464 unsigned long int answer = 2527315200UL;
4466 struct tm tm;
4467 time_t t;
4468 tm.tm_year = 2050 - 1900;
4469 tm.tm_mon = 2 - 1;
4470 tm.tm_mday = 1;
4471 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
4472 tm.tm_isdst = -1;
4474 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
4475 instead of "TZ=America/Vancouver" in order to detect the bug even
4476 on systems that don't support the Olson extension, or don't have the
4477 full zoneinfo tables installed. */
4478 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
4480 t = mktime (&tm);
4482 /* Check that the result is either a failure, or close enough
4483 to the correct answer that we can assume the discrepancy is
4484 due to leap seconds. */
4485 return (t == (time_t) -1
4486 || (0 < t && answer - 120 <= t && t <= answer + 120));
4490 main ()
4492 time_t t, delta;
4493 int i, j;
4495 /* This test makes some buggy mktime implementations loop.
4496 Give up after 60 seconds; a mktime slower than that
4497 isn't worth using anyway. */
4498 alarm (60);
4500 for (;;)
4502 t = (time_t_max << 1) + 1;
4503 if (t <= time_t_max)
4504 break;
4505 time_t_max = t;
4507 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
4509 delta = time_t_max / 997; /* a suitable prime number */
4510 for (i = 0; i < N_STRINGS; i++)
4512 if (tz_strings[i])
4513 putenv ((char*) tz_strings[i]);
4515 for (t = 0; t <= time_t_max - delta; t += delta)
4516 if (! mktime_test (t))
4517 return 1;
4518 if (! (mktime_test ((time_t) 1)
4519 && mktime_test ((time_t) (60 * 60))
4520 && mktime_test ((time_t) (60 * 60 * 24))))
4521 return 1;
4523 for (j = 1; ; j <<= 1)
4524 if (! bigtime_test (j))
4525 return 1;
4526 else if (INT_MAX / 2 < j)
4527 break;
4528 if (! bigtime_test (INT_MAX))
4529 return 1;
4531 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
4533 _ACEOF
4534 if ac_fn_c_try_run "$LINENO"; then :
4535 ac_cv_func_working_mktime=yes
4536 else
4537 ac_cv_func_working_mktime=no
4539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4540 conftest.$ac_objext conftest.beam conftest.$ac_ext
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
4545 $as_echo "$ac_cv_func_working_mktime" >&6; }
4546 if test $ac_cv_func_working_mktime = no; then
4547 case " $LIBOBJS " in
4548 *" mktime.$ac_objext "* ) ;;
4549 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
4551 esac
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
4556 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
4557 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 rm -f conftest.sym conftest.file
4561 echo >conftest.file
4562 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4563 if test "$cross_compiling" = yes; then :
4564 ac_cv_func_lstat_dereferences_slashed_symlink=no
4565 else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 $ac_includes_default
4570 main ()
4572 struct stat sbuf;
4573 /* Linux will dereference the symlink and fail, as required by POSIX.
4574 That is better in the sense that it means we will not
4575 have to compile and use the lstat wrapper. */
4576 return lstat ("conftest.sym/", &sbuf) == 0;
4578 return 0;
4580 _ACEOF
4581 if ac_fn_c_try_run "$LINENO"; then :
4582 ac_cv_func_lstat_dereferences_slashed_symlink=yes
4583 else
4584 ac_cv_func_lstat_dereferences_slashed_symlink=no
4586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4587 conftest.$ac_objext conftest.beam conftest.$ac_ext
4590 else
4591 # If the `ln -s' command failed, then we probably don't even
4592 # have an lstat function.
4593 ac_cv_func_lstat_dereferences_slashed_symlink=no
4595 rm -f conftest.sym conftest.file
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4599 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
4601 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4603 cat >>confdefs.h <<_ACEOF
4604 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4605 _ACEOF
4608 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
4609 case " $LIBOBJS " in
4610 *" lstat.$ac_objext "* ) ;;
4611 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
4613 esac
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
4618 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
4619 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test "$cross_compiling" = yes; then :
4623 ac_cv_func_stat_empty_string_bug=yes
4624 else
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 $ac_includes_default
4629 main ()
4631 struct stat sbuf;
4632 return stat ("", &sbuf) == 0;
4634 return 0;
4636 _ACEOF
4637 if ac_fn_c_try_run "$LINENO"; then :
4638 ac_cv_func_stat_empty_string_bug=no
4639 else
4640 ac_cv_func_stat_empty_string_bug=yes
4642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4643 conftest.$ac_objext conftest.beam conftest.$ac_ext
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
4648 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
4649 if test $ac_cv_func_stat_empty_string_bug = yes; then
4650 case " $LIBOBJS " in
4651 *" stat.$ac_objext "* ) ;;
4652 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
4654 esac
4657 cat >>confdefs.h <<_ACEOF
4658 #define HAVE_STAT_EMPTY_STRING_BUG 1
4659 _ACEOF
4663 for ac_func in strftime
4664 do :
4665 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
4666 if test "x$ac_cv_func_strftime" = xyes; then :
4667 cat >>confdefs.h <<_ACEOF
4668 #define HAVE_STRFTIME 1
4669 _ACEOF
4671 else
4672 # strftime is in -lintl on SCO UNIX.
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
4674 $as_echo_n "checking for strftime in -lintl... " >&6; }
4675 if ${ac_cv_lib_intl_strftime+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 ac_check_lib_save_LIBS=$LIBS
4679 LIBS="-lintl $LIBS"
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4683 /* Override any GCC internal prototype to avoid an error.
4684 Use char because int might match the return type of a GCC
4685 builtin and then its argument prototype would still apply. */
4686 #ifdef __cplusplus
4687 extern "C"
4688 #endif
4689 char strftime ();
4691 main ()
4693 return strftime ();
4695 return 0;
4697 _ACEOF
4698 if ac_fn_c_try_link "$LINENO"; then :
4699 ac_cv_lib_intl_strftime=yes
4700 else
4701 ac_cv_lib_intl_strftime=no
4703 rm -f core conftest.err conftest.$ac_objext \
4704 conftest$ac_exeext conftest.$ac_ext
4705 LIBS=$ac_check_lib_save_LIBS
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
4708 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
4709 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
4710 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
4712 LIBS="-lintl $LIBS"
4716 done
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
4722 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
4723 if ${ac_cv_func_utime_null+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 rm -f conftest.data; >conftest.data
4727 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
4728 if test "$cross_compiling" = yes; then :
4729 ac_cv_func_utime_null='guessing yes'
4730 else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 $ac_includes_default
4734 #ifdef HAVE_UTIME_H
4735 # include <utime.h>
4736 #endif
4738 main ()
4740 struct stat s, t;
4741 return ! (stat ("conftest.data", &s) == 0
4742 && utime ("conftest.data", 0) == 0
4743 && stat ("conftest.data", &t) == 0
4744 && t.st_mtime >= s.st_mtime
4745 && t.st_mtime - s.st_mtime < 120);
4747 return 0;
4749 _ACEOF
4750 if ac_fn_c_try_run "$LINENO"; then :
4751 ac_cv_func_utime_null=yes
4752 else
4753 ac_cv_func_utime_null=no
4755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4756 conftest.$ac_objext conftest.beam conftest.$ac_ext
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
4761 $as_echo "$ac_cv_func_utime_null" >&6; }
4762 if test "x$ac_cv_func_utime_null" != xno; then
4763 ac_cv_func_utime_null=yes
4765 $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
4768 rm -f conftest.data
4770 for ac_func in vprintf
4771 do :
4772 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4773 if test "x$ac_cv_func_vprintf" = xyes; then :
4774 cat >>confdefs.h <<_ACEOF
4775 #define HAVE_VPRINTF 1
4776 _ACEOF
4778 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4779 if test "x$ac_cv_func__doprnt" = xyes; then :
4781 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4786 done
4789 # 2008-07-04 getopt_long added
4790 # 2009-07-30 timegm added
4791 for ac_func in getopt_long gettimeofday memset putenv socket strcasecmp strchr strdup strerror strncasecmp strrchr tzset utime getuid timegm
4792 do :
4793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4794 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4795 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4796 cat >>confdefs.h <<_ACEOF
4797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4798 _ACEOF
4801 done
4805 ac_config_files="$ac_config_files Makefile"
4807 cat >confcache <<\_ACEOF
4808 # This file is a shell script that caches the results of configure
4809 # tests run on this system so they can be shared between configure
4810 # scripts and configure runs, see configure's option --config-cache.
4811 # It is not useful on other systems. If it contains results you don't
4812 # want to keep, you may remove or edit it.
4814 # config.status only pays attention to the cache file if you give it
4815 # the --recheck option to rerun configure.
4817 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4818 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4819 # following values.
4821 _ACEOF
4823 # The following way of writing the cache mishandles newlines in values,
4824 # but we know of no workaround that is simple, portable, and efficient.
4825 # So, we kill variables containing newlines.
4826 # Ultrix sh set writes to stderr and can't be redirected directly,
4827 # and sets the high bit in the cache file unless we assign to the vars.
4829 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4830 eval ac_val=\$$ac_var
4831 case $ac_val in #(
4832 *${as_nl}*)
4833 case $ac_var in #(
4834 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4835 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4836 esac
4837 case $ac_var in #(
4838 _ | IFS | as_nl) ;; #(
4839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4840 *) { eval $ac_var=; unset $ac_var;} ;;
4841 esac ;;
4842 esac
4843 done
4845 (set) 2>&1 |
4846 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4847 *${as_nl}ac_space=\ *)
4848 # `set' does not quote correctly, so add quotes: double-quote
4849 # substitution turns \\\\ into \\, and sed turns \\ into \.
4850 sed -n \
4851 "s/'/'\\\\''/g;
4852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4853 ;; #(
4855 # `set' quotes correctly as required by POSIX, so do not add quotes.
4856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4858 esac |
4859 sort
4861 sed '
4862 /^ac_cv_env_/b end
4863 t clear
4864 :clear
4865 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4866 t end
4867 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4868 :end' >>confcache
4869 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4870 if test -w "$cache_file"; then
4871 if test "x$cache_file" != "x/dev/null"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4873 $as_echo "$as_me: updating cache $cache_file" >&6;}
4874 if test ! -f "$cache_file" || test -h "$cache_file"; then
4875 cat confcache >"$cache_file"
4876 else
4877 case $cache_file in #(
4878 */* | ?:*)
4879 mv -f confcache "$cache_file"$$ &&
4880 mv -f "$cache_file"$$ "$cache_file" ;; #(
4882 mv -f confcache "$cache_file" ;;
4883 esac
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4888 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4891 rm -f confcache
4893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4894 # Let make expand exec_prefix.
4895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4897 DEFS=-DHAVE_CONFIG_H
4899 ac_libobjs=
4900 ac_ltlibobjs=
4902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4903 # 1. Remove the extension, and $U if already installed.
4904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4907 # will be set to the directory where LIBOBJS objects are built.
4908 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4909 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4910 done
4911 LIBOBJS=$ac_libobjs
4913 LTLIBOBJS=$ac_ltlibobjs
4917 : "${CONFIG_STATUS=./config.status}"
4918 ac_write_fail=0
4919 ac_clean_files_save=$ac_clean_files
4920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4923 as_write_fail=0
4924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4925 #! $SHELL
4926 # Generated by $as_me.
4927 # Run this file to recreate the current configuration.
4928 # Compiler output produced by configure, useful for debugging
4929 # configure, is in config.log if it exists.
4931 debug=false
4932 ac_cs_recheck=false
4933 ac_cs_silent=false
4935 SHELL=\${CONFIG_SHELL-$SHELL}
4936 export SHELL
4937 _ASEOF
4938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4939 ## -------------------- ##
4940 ## M4sh Initialization. ##
4941 ## -------------------- ##
4943 # Be more Bourne compatible
4944 DUALCASE=1; export DUALCASE # for MKS sh
4945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4946 emulate sh
4947 NULLCMD=:
4948 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4949 # is contrary to our usage. Disable this feature.
4950 alias -g '${1+"$@"}'='"$@"'
4951 setopt NO_GLOB_SUBST
4952 else
4953 case `(set -o) 2>/dev/null` in #(
4954 *posix*) :
4955 set -o posix ;; #(
4956 *) :
4958 esac
4962 as_nl='
4964 export as_nl
4965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4969 # Prefer a ksh shell builtin over an external printf program on Solaris,
4970 # but without wasting forks for bash or zsh.
4971 if test -z "$BASH_VERSION$ZSH_VERSION" \
4972 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4973 as_echo='print -r --'
4974 as_echo_n='print -rn --'
4975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4976 as_echo='printf %s\n'
4977 as_echo_n='printf %s'
4978 else
4979 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4980 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4981 as_echo_n='/usr/ucb/echo -n'
4982 else
4983 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4984 as_echo_n_body='eval
4985 arg=$1;
4986 case $arg in #(
4987 *"$as_nl"*)
4988 expr "X$arg" : "X\\(.*\\)$as_nl";
4989 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4990 esac;
4991 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4993 export as_echo_n_body
4994 as_echo_n='sh -c $as_echo_n_body as_echo'
4996 export as_echo_body
4997 as_echo='sh -c $as_echo_body as_echo'
5000 # The user is always right.
5001 if test "${PATH_SEPARATOR+set}" != set; then
5002 PATH_SEPARATOR=:
5003 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5004 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5005 PATH_SEPARATOR=';'
5010 # IFS
5011 # We need space, tab and new line, in precisely that order. Quoting is
5012 # there to prevent editors from complaining about space-tab.
5013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5014 # splitting by setting IFS to empty value.)
5015 IFS=" "" $as_nl"
5017 # Find who we are. Look in the path if we contain no directory separator.
5018 as_myself=
5019 case $0 in #((
5020 *[\\/]* ) as_myself=$0 ;;
5021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5027 done
5028 IFS=$as_save_IFS
5031 esac
5032 # We did not find ourselves, most probably we were run as `sh COMMAND'
5033 # in which case we are not to be found in the path.
5034 if test "x$as_myself" = x; then
5035 as_myself=$0
5037 if test ! -f "$as_myself"; then
5038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5039 exit 1
5042 # Unset variables that we do not need and which cause bugs (e.g. in
5043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5044 # suppresses any "Segmentation fault" message there. '((' could
5045 # trigger a bug in pdksh 5.2.14.
5046 for as_var in BASH_ENV ENV MAIL MAILPATH
5047 do eval test x\${$as_var+set} = xset \
5048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5049 done
5050 PS1='$ '
5051 PS2='> '
5052 PS4='+ '
5054 # NLS nuisances.
5055 LC_ALL=C
5056 export LC_ALL
5057 LANGUAGE=C
5058 export LANGUAGE
5060 # CDPATH.
5061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5064 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5065 # ----------------------------------------
5066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5068 # script with STATUS, using 1 if that was 0.
5069 as_fn_error ()
5071 as_status=$1; test $as_status -eq 0 && as_status=1
5072 if test "$4"; then
5073 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5076 $as_echo "$as_me: error: $2" >&2
5077 as_fn_exit $as_status
5078 } # as_fn_error
5081 # as_fn_set_status STATUS
5082 # -----------------------
5083 # Set $? to STATUS, without forking.
5084 as_fn_set_status ()
5086 return $1
5087 } # as_fn_set_status
5089 # as_fn_exit STATUS
5090 # -----------------
5091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5092 as_fn_exit ()
5094 set +e
5095 as_fn_set_status $1
5096 exit $1
5097 } # as_fn_exit
5099 # as_fn_unset VAR
5100 # ---------------
5101 # Portably unset VAR.
5102 as_fn_unset ()
5104 { eval $1=; unset $1;}
5106 as_unset=as_fn_unset
5107 # as_fn_append VAR VALUE
5108 # ----------------------
5109 # Append the text in VALUE to the end of the definition contained in VAR. Take
5110 # advantage of any shell optimizations that allow amortized linear growth over
5111 # repeated appends, instead of the typical quadratic growth present in naive
5112 # implementations.
5113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5114 eval 'as_fn_append ()
5116 eval $1+=\$2
5118 else
5119 as_fn_append ()
5121 eval $1=\$$1\$2
5123 fi # as_fn_append
5125 # as_fn_arith ARG...
5126 # ------------------
5127 # Perform arithmetic evaluation on the ARGs, and store the result in the
5128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5129 # must be portable across $(()) and expr.
5130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5131 eval 'as_fn_arith ()
5133 as_val=$(( $* ))
5135 else
5136 as_fn_arith ()
5138 as_val=`expr "$@" || test $? -eq 1`
5140 fi # as_fn_arith
5143 if expr a : '\(a\)' >/dev/null 2>&1 &&
5144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5145 as_expr=expr
5146 else
5147 as_expr=false
5150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5151 as_basename=basename
5152 else
5153 as_basename=false
5156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5157 as_dirname=dirname
5158 else
5159 as_dirname=false
5162 as_me=`$as_basename -- "$0" ||
5163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5164 X"$0" : 'X\(//\)$' \| \
5165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5166 $as_echo X/"$0" |
5167 sed '/^.*\/\([^/][^/]*\)\/*$/{
5168 s//\1/
5171 /^X\/\(\/\/\)$/{
5172 s//\1/
5175 /^X\/\(\/\).*/{
5176 s//\1/
5179 s/.*/./; q'`
5181 # Avoid depending upon Character Ranges.
5182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5185 as_cr_digits='0123456789'
5186 as_cr_alnum=$as_cr_Letters$as_cr_digits
5188 ECHO_C= ECHO_N= ECHO_T=
5189 case `echo -n x` in #(((((
5190 -n*)
5191 case `echo 'xy\c'` in
5192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5193 xy) ECHO_C='\c';;
5194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5195 ECHO_T=' ';;
5196 esac;;
5198 ECHO_N='-n';;
5199 esac
5201 rm -f conf$$ conf$$.exe conf$$.file
5202 if test -d conf$$.dir; then
5203 rm -f conf$$.dir/conf$$.file
5204 else
5205 rm -f conf$$.dir
5206 mkdir conf$$.dir 2>/dev/null
5208 if (echo >conf$$.file) 2>/dev/null; then
5209 if ln -s conf$$.file conf$$ 2>/dev/null; then
5210 as_ln_s='ln -s'
5211 # ... but there are two gotchas:
5212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5214 # In both cases, we have to default to `cp -pR'.
5215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5216 as_ln_s='cp -pR'
5217 elif ln conf$$.file conf$$ 2>/dev/null; then
5218 as_ln_s=ln
5219 else
5220 as_ln_s='cp -pR'
5222 else
5223 as_ln_s='cp -pR'
5225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5226 rmdir conf$$.dir 2>/dev/null
5229 # as_fn_mkdir_p
5230 # -------------
5231 # Create "$as_dir" as a directory, including parents if necessary.
5232 as_fn_mkdir_p ()
5235 case $as_dir in #(
5236 -*) as_dir=./$as_dir;;
5237 esac
5238 test -d "$as_dir" || eval $as_mkdir_p || {
5239 as_dirs=
5240 while :; do
5241 case $as_dir in #(
5242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5243 *) as_qdir=$as_dir;;
5244 esac
5245 as_dirs="'$as_qdir' $as_dirs"
5246 as_dir=`$as_dirname -- "$as_dir" ||
5247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5248 X"$as_dir" : 'X\(//\)[^/]' \| \
5249 X"$as_dir" : 'X\(//\)$' \| \
5250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5251 $as_echo X"$as_dir" |
5252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5253 s//\1/
5256 /^X\(\/\/\)[^/].*/{
5257 s//\1/
5260 /^X\(\/\/\)$/{
5261 s//\1/
5264 /^X\(\/\).*/{
5265 s//\1/
5268 s/.*/./; q'`
5269 test -d "$as_dir" && break
5270 done
5271 test -z "$as_dirs" || eval "mkdir $as_dirs"
5272 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5275 } # as_fn_mkdir_p
5276 if mkdir -p . 2>/dev/null; then
5277 as_mkdir_p='mkdir -p "$as_dir"'
5278 else
5279 test -d ./-p && rmdir ./-p
5280 as_mkdir_p=false
5284 # as_fn_executable_p FILE
5285 # -----------------------
5286 # Test if FILE is an executable regular file.
5287 as_fn_executable_p ()
5289 test -f "$1" && test -x "$1"
5290 } # as_fn_executable_p
5291 as_test_x='test -x'
5292 as_executable_p=as_fn_executable_p
5294 # Sed expression to map a string onto a valid CPP name.
5295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5297 # Sed expression to map a string onto a valid variable name.
5298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5301 exec 6>&1
5302 ## ----------------------------------- ##
5303 ## Main body of $CONFIG_STATUS script. ##
5304 ## ----------------------------------- ##
5305 _ASEOF
5306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5309 # Save the log message, to keep $0 and so on meaningful, and to
5310 # report actual input values of CONFIG_FILES etc. instead of their
5311 # values after options handling.
5312 ac_log="
5313 This file was extended by ZKT $as_me 1.1.3, which was
5314 generated by GNU Autoconf 2.69. Invocation command line was
5316 CONFIG_FILES = $CONFIG_FILES
5317 CONFIG_HEADERS = $CONFIG_HEADERS
5318 CONFIG_LINKS = $CONFIG_LINKS
5319 CONFIG_COMMANDS = $CONFIG_COMMANDS
5320 $ $0 $@
5322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5325 _ACEOF
5327 case $ac_config_files in *"
5328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5329 esac
5331 case $ac_config_headers in *"
5332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5333 esac
5336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5337 # Files that config.status was made for.
5338 config_files="$ac_config_files"
5339 config_headers="$ac_config_headers"
5341 _ACEOF
5343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5344 ac_cs_usage="\
5345 \`$as_me' instantiates files and other configuration actions
5346 from templates according to the current configuration. Unless the files
5347 and actions are specified as TAGs, all are instantiated by default.
5349 Usage: $0 [OPTION]... [TAG]...
5351 -h, --help print this help, then exit
5352 -V, --version print version number and configuration settings, then exit
5353 --config print configuration, then exit
5354 -q, --quiet, --silent
5355 do not print progress messages
5356 -d, --debug don't remove temporary files
5357 --recheck update $as_me by reconfiguring in the same conditions
5358 --file=FILE[:TEMPLATE]
5359 instantiate the configuration file FILE
5360 --header=FILE[:TEMPLATE]
5361 instantiate the configuration header FILE
5363 Configuration files:
5364 $config_files
5366 Configuration headers:
5367 $config_headers
5369 Report bugs to <Holger Zuleger hznet.de>."
5371 _ACEOF
5372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5373 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5374 ac_cs_version="\\
5375 ZKT config.status 1.1.3
5376 configured by $0, generated by GNU Autoconf 2.69,
5377 with options \\"\$ac_cs_config\\"
5379 Copyright (C) 2012 Free Software Foundation, Inc.
5380 This config.status script is free software; the Free Software Foundation
5381 gives unlimited permission to copy, distribute and modify it."
5383 ac_pwd='$ac_pwd'
5384 srcdir='$srcdir'
5385 test -n "\$AWK" || AWK=awk
5386 _ACEOF
5388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5389 # The default lists apply if the user does not specify any file.
5390 ac_need_defaults=:
5391 while test $# != 0
5393 case $1 in
5394 --*=?*)
5395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5397 ac_shift=:
5399 --*=)
5400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5401 ac_optarg=
5402 ac_shift=:
5405 ac_option=$1
5406 ac_optarg=$2
5407 ac_shift=shift
5409 esac
5411 case $ac_option in
5412 # Handling of the options.
5413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5414 ac_cs_recheck=: ;;
5415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5416 $as_echo "$ac_cs_version"; exit ;;
5417 --config | --confi | --conf | --con | --co | --c )
5418 $as_echo "$ac_cs_config"; exit ;;
5419 --debug | --debu | --deb | --de | --d | -d )
5420 debug=: ;;
5421 --file | --fil | --fi | --f )
5422 $ac_shift
5423 case $ac_optarg in
5424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5425 '') as_fn_error $? "missing file argument" ;;
5426 esac
5427 as_fn_append CONFIG_FILES " '$ac_optarg'"
5428 ac_need_defaults=false;;
5429 --header | --heade | --head | --hea )
5430 $ac_shift
5431 case $ac_optarg in
5432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5433 esac
5434 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5435 ac_need_defaults=false;;
5436 --he | --h)
5437 # Conflict between --help and --header
5438 as_fn_error $? "ambiguous option: \`$1'
5439 Try \`$0 --help' for more information.";;
5440 --help | --hel | -h )
5441 $as_echo "$ac_cs_usage"; exit ;;
5442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5444 ac_cs_silent=: ;;
5446 # This is an error.
5447 -*) as_fn_error $? "unrecognized option: \`$1'
5448 Try \`$0 --help' for more information." ;;
5450 *) as_fn_append ac_config_targets " $1"
5451 ac_need_defaults=false ;;
5453 esac
5454 shift
5455 done
5457 ac_configure_extra_args=
5459 if $ac_cs_silent; then
5460 exec 6>/dev/null
5461 ac_configure_extra_args="$ac_configure_extra_args --silent"
5464 _ACEOF
5465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5466 if \$ac_cs_recheck; then
5467 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5468 shift
5469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5470 CONFIG_SHELL='$SHELL'
5471 export CONFIG_SHELL
5472 exec "\$@"
5475 _ACEOF
5476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5477 exec 5>>config.log
5479 echo
5480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5481 ## Running $as_me. ##
5482 _ASBOX
5483 $as_echo "$ac_log"
5484 } >&5
5486 _ACEOF
5487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5488 _ACEOF
5490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5492 # Handling of arguments.
5493 for ac_config_target in $ac_config_targets
5495 case $ac_config_target in
5496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5497 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5499 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5500 esac
5501 done
5504 # If the user did not use the arguments to specify the items to instantiate,
5505 # then the envvar interface is used. Set only those that are not.
5506 # We use the long form for the default assignment because of an extremely
5507 # bizarre bug on SunOS 4.1.3.
5508 if $ac_need_defaults; then
5509 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5510 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5513 # Have a temporary directory for convenience. Make it in the build tree
5514 # simply because there is no reason against having it here, and in addition,
5515 # creating and moving files from /tmp can sometimes cause problems.
5516 # Hook for its removal unless debugging.
5517 # Note that there is a small window in which the directory will not be cleaned:
5518 # after its creation but before its name has been assigned to `$tmp'.
5519 $debug ||
5521 tmp= ac_tmp=
5522 trap 'exit_status=$?
5523 : "${ac_tmp:=$tmp}"
5524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5526 trap 'as_fn_exit 1' 1 2 13 15
5528 # Create a (secure) tmp directory for tmp files.
5531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5532 test -d "$tmp"
5533 } ||
5535 tmp=./conf$$-$RANDOM
5536 (umask 077 && mkdir "$tmp")
5537 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5538 ac_tmp=$tmp
5540 # Set up the scripts for CONFIG_FILES section.
5541 # No need to generate them if there are no CONFIG_FILES.
5542 # This happens for instance with `./config.status config.h'.
5543 if test -n "$CONFIG_FILES"; then
5546 ac_cr=`echo X | tr X '\015'`
5547 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5548 # But we know of no other shell where ac_cr would be empty at this
5549 # point, so we can use a bashism as a fallback.
5550 if test "x$ac_cr" = x; then
5551 eval ac_cr=\$\'\\r\'
5553 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5555 ac_cs_awk_cr='\\r'
5556 else
5557 ac_cs_awk_cr=$ac_cr
5560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5561 _ACEOF
5565 echo "cat >conf$$subs.awk <<_ACEOF" &&
5566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5567 echo "_ACEOF"
5568 } >conf$$subs.sh ||
5569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5571 ac_delim='%!_!# '
5572 for ac_last_try in false false false false false :; do
5573 . ./conf$$subs.sh ||
5574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5577 if test $ac_delim_n = $ac_delim_num; then
5578 break
5579 elif $ac_last_try; then
5580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5581 else
5582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5584 done
5585 rm -f conf$$subs.sh
5587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5588 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5589 _ACEOF
5590 sed -n '
5592 s/^/S["/; s/!.*/"]=/
5595 s/^[^!]*!//
5596 :repl
5597 t repl
5598 s/'"$ac_delim"'$//
5599 t delim
5602 s/\(.\{148\}\)..*/\1/
5603 t more1
5604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5607 b repl
5608 :more1
5609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5612 s/.\{148\}//
5613 t nl
5614 :delim
5616 s/\(.\{148\}\)..*/\1/
5617 t more2
5618 s/["\\]/\\&/g; s/^/"/; s/$/"/
5621 :more2
5622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5625 s/.\{148\}//
5626 t delim
5627 ' <conf$$subs.awk | sed '
5628 /^[^""]/{
5630 s/\n//
5632 ' >>$CONFIG_STATUS || ac_write_fail=1
5633 rm -f conf$$subs.awk
5634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5635 _ACAWK
5636 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5637 for (key in S) S_is_set[key] = 1
5638 FS = "\a"
5642 line = $ 0
5643 nfields = split(line, field, "@")
5644 substed = 0
5645 len = length(field[1])
5646 for (i = 2; i < nfields; i++) {
5647 key = field[i]
5648 keylen = length(key)
5649 if (S_is_set[key]) {
5650 value = S[key]
5651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5652 len += length(value) + length(field[++i])
5653 substed = 1
5654 } else
5655 len += 1 + keylen
5658 print line
5661 _ACAWK
5662 _ACEOF
5663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5664 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5666 else
5668 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5670 _ACEOF
5672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5674 # trailing colons and then remove the whole line if VPATH becomes empty
5675 # (actually we leave an empty line to preserve line numbers).
5676 if test "x$srcdir" = x.; then
5677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5679 s///
5680 s/^/:/
5681 s/[ ]*$/:/
5682 s/:\$(srcdir):/:/g
5683 s/:\${srcdir}:/:/g
5684 s/:@srcdir@:/:/g
5685 s/^:*//
5686 s/:*$//
5688 s/\(=[ ]*\).*/\1/
5690 s/\n//
5691 s/^[^=]*=[ ]*$//
5695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5696 fi # test -n "$CONFIG_FILES"
5698 # Set up the scripts for CONFIG_HEADERS section.
5699 # No need to generate them if there are no CONFIG_HEADERS.
5700 # This happens for instance with `./config.status Makefile'.
5701 if test -n "$CONFIG_HEADERS"; then
5702 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5703 BEGIN {
5704 _ACEOF
5706 # Transform confdefs.h into an awk script `defines.awk', embedded as
5707 # here-document in config.status, that substitutes the proper values into
5708 # config.h.in to produce config.h.
5710 # Create a delimiter string that does not exist in confdefs.h, to ease
5711 # handling of long lines.
5712 ac_delim='%!_!# '
5713 for ac_last_try in false false :; do
5714 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5715 if test -z "$ac_tt"; then
5716 break
5717 elif $ac_last_try; then
5718 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5719 else
5720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5722 done
5724 # For the awk script, D is an array of macro values keyed by name,
5725 # likewise P contains macro parameters if any. Preserve backslash
5726 # newline sequences.
5728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5729 sed -n '
5730 s/.\{148\}/&'"$ac_delim"'/g
5731 t rset
5732 :rset
5733 s/^[ ]*#[ ]*define[ ][ ]*/ /
5734 t def
5736 :def
5737 s/\\$//
5738 t bsnl
5739 s/["\\]/\\&/g
5740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5741 D["\1"]=" \3"/p
5742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5744 :bsnl
5745 s/["\\]/\\&/g
5746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5747 D["\1"]=" \3\\\\\\n"\\/p
5748 t cont
5749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5750 t cont
5752 :cont
5754 s/.\{148\}/&'"$ac_delim"'/g
5755 t clear
5756 :clear
5757 s/\\$//
5758 t bsnlc
5759 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5761 :bsnlc
5762 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5763 b cont
5764 ' <confdefs.h | sed '
5765 s/'"$ac_delim"'/"\\\
5766 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5769 for (key in D) D_is_set[key] = 1
5770 FS = "\a"
5772 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5773 line = \$ 0
5774 split(line, arg, " ")
5775 if (arg[1] == "#") {
5776 defundef = arg[2]
5777 mac1 = arg[3]
5778 } else {
5779 defundef = substr(arg[1], 2)
5780 mac1 = arg[2]
5782 split(mac1, mac2, "(") #)
5783 macro = mac2[1]
5784 prefix = substr(line, 1, index(line, defundef) - 1)
5785 if (D_is_set[macro]) {
5786 # Preserve the white space surrounding the "#".
5787 print prefix "define", macro P[macro] D[macro]
5788 next
5789 } else {
5790 # Replace #undef with comments. This is necessary, for example,
5791 # in the case of _POSIX_SOURCE, which is predefined and required
5792 # on some systems where configure will not decide to define it.
5793 if (defundef == "undef") {
5794 print "/*", prefix defundef, macro, "*/"
5795 next
5799 { print }
5800 _ACAWK
5801 _ACEOF
5802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5803 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5804 fi # test -n "$CONFIG_HEADERS"
5807 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5808 shift
5809 for ac_tag
5811 case $ac_tag in
5812 :[FHLC]) ac_mode=$ac_tag; continue;;
5813 esac
5814 case $ac_mode$ac_tag in
5815 :[FHL]*:*);;
5816 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5817 :[FH]-) ac_tag=-:-;;
5818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5819 esac
5820 ac_save_IFS=$IFS
5821 IFS=:
5822 set x $ac_tag
5823 IFS=$ac_save_IFS
5824 shift
5825 ac_file=$1
5826 shift
5828 case $ac_mode in
5829 :L) ac_source=$1;;
5830 :[FH])
5831 ac_file_inputs=
5832 for ac_f
5834 case $ac_f in
5835 -) ac_f="$ac_tmp/stdin";;
5836 *) # Look for the file first in the build tree, then in the source tree
5837 # (if the path is not absolute). The absolute path cannot be DOS-style,
5838 # because $ac_f cannot contain `:'.
5839 test -f "$ac_f" ||
5840 case $ac_f in
5841 [\\/$]*) false;;
5842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5843 esac ||
5844 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5845 esac
5846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5847 as_fn_append ac_file_inputs " '$ac_f'"
5848 done
5850 # Let's still pretend it is `configure' which instantiates (i.e., don't
5851 # use $as_me), people would be surprised to read:
5852 # /* config.h. Generated by config.status. */
5853 configure_input='Generated from '`
5854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5855 `' by configure.'
5856 if test x"$ac_file" != x-; then
5857 configure_input="$ac_file. $configure_input"
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5859 $as_echo "$as_me: creating $ac_file" >&6;}
5861 # Neutralize special characters interpreted by sed in replacement strings.
5862 case $configure_input in #(
5863 *\&* | *\|* | *\\* )
5864 ac_sed_conf_input=`$as_echo "$configure_input" |
5865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5866 *) ac_sed_conf_input=$configure_input;;
5867 esac
5869 case $ac_tag in
5870 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5872 esac
5874 esac
5876 ac_dir=`$as_dirname -- "$ac_file" ||
5877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5878 X"$ac_file" : 'X\(//\)[^/]' \| \
5879 X"$ac_file" : 'X\(//\)$' \| \
5880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5881 $as_echo X"$ac_file" |
5882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5883 s//\1/
5886 /^X\(\/\/\)[^/].*/{
5887 s//\1/
5890 /^X\(\/\/\)$/{
5891 s//\1/
5894 /^X\(\/\).*/{
5895 s//\1/
5898 s/.*/./; q'`
5899 as_dir="$ac_dir"; as_fn_mkdir_p
5900 ac_builddir=.
5902 case "$ac_dir" in
5903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5906 # A ".." for each directory in $ac_dir_suffix.
5907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5908 case $ac_top_builddir_sub in
5909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5911 esac ;;
5912 esac
5913 ac_abs_top_builddir=$ac_pwd
5914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5915 # for backward compatibility:
5916 ac_top_builddir=$ac_top_build_prefix
5918 case $srcdir in
5919 .) # We are building in place.
5920 ac_srcdir=.
5921 ac_top_srcdir=$ac_top_builddir_sub
5922 ac_abs_top_srcdir=$ac_pwd ;;
5923 [\\/]* | ?:[\\/]* ) # Absolute name.
5924 ac_srcdir=$srcdir$ac_dir_suffix;
5925 ac_top_srcdir=$srcdir
5926 ac_abs_top_srcdir=$srcdir ;;
5927 *) # Relative name.
5928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5929 ac_top_srcdir=$ac_top_build_prefix$srcdir
5930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5931 esac
5932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5935 case $ac_mode in
5938 # CONFIG_FILE
5941 _ACEOF
5943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5944 # If the template does not know about datarootdir, expand it.
5945 # FIXME: This hack should be removed a few years after 2.60.
5946 ac_datarootdir_hack=; ac_datarootdir_seen=
5947 ac_sed_dataroot='
5948 /datarootdir/ {
5952 /@datadir@/p
5953 /@docdir@/p
5954 /@infodir@/p
5955 /@localedir@/p
5956 /@mandir@/p'
5957 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5958 *datarootdir*) ac_datarootdir_seen=yes;;
5959 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5961 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5962 _ACEOF
5963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5964 ac_datarootdir_hack='
5965 s&@datadir@&$datadir&g
5966 s&@docdir@&$docdir&g
5967 s&@infodir@&$infodir&g
5968 s&@localedir@&$localedir&g
5969 s&@mandir@&$mandir&g
5970 s&\\\${datarootdir}&$datarootdir&g' ;;
5971 esac
5972 _ACEOF
5974 # Neutralize VPATH when `$srcdir' = `.'.
5975 # Shell code in configure.ac might set extrasub.
5976 # FIXME: do we really want to maintain this feature?
5977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5978 ac_sed_extra="$ac_vpsub
5979 $extrasub
5980 _ACEOF
5981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5984 s|@configure_input@|$ac_sed_conf_input|;t t
5985 s&@top_builddir@&$ac_top_builddir_sub&;t t
5986 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5987 s&@srcdir@&$ac_srcdir&;t t
5988 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5989 s&@top_srcdir@&$ac_top_srcdir&;t t
5990 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5991 s&@builddir@&$ac_builddir&;t t
5992 s&@abs_builddir@&$ac_abs_builddir&;t t
5993 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5994 $ac_datarootdir_hack
5996 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5997 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6000 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6002 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6004 which seems to be undefined. Please make sure it is defined" >&5
6005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6006 which seems to be undefined. Please make sure it is defined" >&2;}
6008 rm -f "$ac_tmp/stdin"
6009 case $ac_file in
6010 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6011 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6012 esac \
6013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6017 # CONFIG_HEADER
6019 if test x"$ac_file" != x-; then
6021 $as_echo "/* $configure_input */" \
6022 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6023 } >"$ac_tmp/config.h" \
6024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6025 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6027 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6028 else
6029 rm -f "$ac_file"
6030 mv "$ac_tmp/config.h" "$ac_file" \
6031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6033 else
6034 $as_echo "/* $configure_input */" \
6035 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6036 || as_fn_error $? "could not create -" "$LINENO" 5
6041 esac
6043 done # for ac_tag
6046 as_fn_exit 0
6047 _ACEOF
6048 ac_clean_files=$ac_clean_files_save
6050 test $ac_write_fail = 0 ||
6051 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6054 # configure is writing to config.log, and then calls config.status.
6055 # config.status does its own redirection, appending to config.log.
6056 # Unfortunately, on DOS this fails, as config.log is still kept open
6057 # by configure, so config.status won't be able to write to it; its
6058 # output is simply discarded. So we exec the FD to /dev/null,
6059 # effectively closing config.log, so it can be properly (re)opened and
6060 # appended to by config.status. When coming back to configure, we
6061 # need to make the FD available again.
6062 if test "$no_create" != yes; then
6063 ac_cs_success=:
6064 ac_config_status_args=
6065 test "$silent" = yes &&
6066 ac_config_status_args="$ac_config_status_args --quiet"
6067 exec 5>/dev/null
6068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6069 exec 5>>config.log
6070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6071 # would make configure fail if this is the last instruction.
6072 $ac_cs_success || as_fn_exit 1
6074 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6076 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}