2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.4.2b1.
5 # Report bugs to <dhcp-users@isc.org>.
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
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 :
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
240 if test "x$CONFIG_SHELL" != x
; then :
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.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and dhcp-users@isc.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
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 :
401 as_val
=`expr "$@" || test $? -eq 1`
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.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
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
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 ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
546 test -d .
/-p && rmdir .
/-p
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
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`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='dhcp'
583 PACKAGE_VERSION
='4.4.2b1'
584 PACKAGE_STRING
='DHCP 4.4.2b1'
585 PACKAGE_BUGREPORT
='dhcp-users@isc.org'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars
='am__EXEEXT_FALSE
633 DISTCHECK_LIBTOOL_CONFIGURE_FLAG
639 DISTCHECK_LIBBIND_CONFIGURE_FLAG
649 DISTCHECK_ATF_CONFIGURE_FLAG
691 MAINTAINER_MODE_FALSE
705 INSTALL_STRIP_PROGRAM
748 program_transform_name
762 enable_option_checking
764 enable_maintainer_mode
765 enable_dependency_tracking
796 with_bind_extra_config
805 ac_precious_vars
='build_alias
816 # Initialize some variables set by options.
818 ac_init_version
=false
819 ac_unrecognized_opts
=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name
=s
,x
,x
,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir
='${exec_prefix}/bin'
845 sbindir
='${exec_prefix}/sbin'
846 libexecdir
='${exec_prefix}/libexec'
847 datarootdir
='${prefix}/share'
848 datadir
='${datarootdir}'
849 sysconfdir
='${prefix}/etc'
850 sharedstatedir
='${prefix}/com'
851 localstatedir
='${prefix}/var'
852 runstatedir
='${localstatedir}/run'
853 includedir
='${prefix}/include'
854 oldincludedir
='/usr/include'
855 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir
='${datarootdir}/info'
861 libdir
='${exec_prefix}/lib'
862 localedir
='${datarootdir}/locale'
863 mandir
='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\
$ac_option
877 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
890 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
893 -build |
--build |
--buil |
--bui |
--bu)
894 ac_prev
=build_alias
;;
895 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
896 build_alias
=$ac_optarg ;;
898 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
899 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
900 ac_prev
=cache_file
;;
901 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
902 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
903 cache_file
=$ac_optarg ;;
906 cache_file
=config.cache
;;
908 -datadir |
--datadir |
--datadi |
--datad)
910 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
911 datadir
=$ac_optarg ;;
913 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
914 |
--dataroo |
--dataro |
--datar)
915 ac_prev
=datarootdir
;;
916 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
917 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
918 datarootdir
=$ac_optarg ;;
920 -disable-* |
--disable-*)
921 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
924 as_fn_error $?
"invalid feature name: $ac_useropt"
925 ac_useropt_orig
=$ac_useropt
926 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
931 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep
=', ';;
934 eval enable_
$ac_useropt=no
;;
936 -docdir |
--docdir |
--docdi |
--doc |
--do)
938 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
941 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
943 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
946 -enable-* |
--enable-*)
947 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
950 as_fn_error $?
"invalid feature name: $ac_useropt"
951 ac_useropt_orig
=$ac_useropt
952 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
957 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep
=', ';;
960 eval enable_
$ac_useropt=\
$ac_optarg ;;
962 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
963 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
964 |
--exec |
--exe |
--ex)
965 ac_prev
=exec_prefix
;;
966 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
967 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
968 |
--exec=* |
--exe=* |
--ex=*)
969 exec_prefix
=$ac_optarg ;;
971 -gas |
--gas |
--ga |
--g)
972 # Obsolete; use --with-gas.
975 -help |
--help |
--hel |
--he |
-h)
977 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
978 ac_init_help
=recursive
;;
979 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
980 ac_init_help
=short
;;
982 -host |
--host |
--hos |
--ho)
983 ac_prev
=host_alias
;;
984 -host=* |
--host=* |
--hos=* |
--ho=*)
985 host_alias
=$ac_optarg ;;
987 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
989 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
991 htmldir
=$ac_optarg ;;
993 -includedir |
--includedir |
--includedi |
--included |
--include \
994 |
--includ |
--inclu |
--incl |
--inc)
995 ac_prev
=includedir
;;
996 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
997 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
998 includedir
=$ac_optarg ;;
1000 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1002 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1003 infodir
=$ac_optarg ;;
1005 -libdir |
--libdir |
--libdi |
--libd)
1007 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1008 libdir
=$ac_optarg ;;
1010 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1011 |
--libexe |
--libex |
--libe)
1012 ac_prev
=libexecdir
;;
1013 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1014 |
--libexe=* |
--libex=* |
--libe=*)
1015 libexecdir
=$ac_optarg ;;
1017 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1018 ac_prev
=localedir
;;
1019 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1020 localedir
=$ac_optarg ;;
1022 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1023 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1024 ac_prev
=localstatedir
;;
1025 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1026 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1027 localstatedir
=$ac_optarg ;;
1029 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1031 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1032 mandir
=$ac_optarg ;;
1034 -nfp |
--nfp |
--nf)
1035 # Obsolete; use --without-fp.
1038 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1039 |
--no-cr |
--no-c |
-n)
1042 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1043 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1046 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1047 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1048 |
--oldin |
--oldi |
--old |
--ol |
--o)
1049 ac_prev
=oldincludedir
;;
1050 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1051 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1052 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1053 oldincludedir
=$ac_optarg ;;
1055 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1057 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1058 prefix
=$ac_optarg ;;
1060 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1061 |
--program-pre |
--program-pr |
--program-p)
1062 ac_prev
=program_prefix
;;
1063 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1064 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1065 program_prefix
=$ac_optarg ;;
1067 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1068 |
--program-suf |
--program-su |
--program-s)
1069 ac_prev
=program_suffix
;;
1070 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1071 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1072 program_suffix
=$ac_optarg ;;
1074 -program-transform-name |
--program-transform-name \
1075 |
--program-transform-nam |
--program-transform-na \
1076 |
--program-transform-n |
--program-transform- \
1077 |
--program-transform |
--program-transfor \
1078 |
--program-transfo |
--program-transf \
1079 |
--program-trans |
--program-tran \
1080 |
--progr-tra |
--program-tr |
--program-t)
1081 ac_prev
=program_transform_name
;;
1082 -program-transform-name=* |
--program-transform-name=* \
1083 |
--program-transform-nam=* |
--program-transform-na=* \
1084 |
--program-transform-n=* |
--program-transform-=* \
1085 |
--program-transform=* |
--program-transfor=* \
1086 |
--program-transfo=* |
--program-transf=* \
1087 |
--program-trans=* |
--program-tran=* \
1088 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1089 program_transform_name
=$ac_optarg ;;
1091 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1093 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1094 pdfdir
=$ac_optarg ;;
1096 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1098 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1101 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1102 |
-silent |
--silent |
--silen |
--sile |
--sil)
1105 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1106 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1107 |
--run |
--ru |
--r)
1108 ac_prev
=runstatedir
;;
1109 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1110 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1111 |
--run=* |
--ru=* |
--r=*)
1112 runstatedir
=$ac_optarg ;;
1114 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1116 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1118 sbindir
=$ac_optarg ;;
1120 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1121 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1122 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1124 ac_prev
=sharedstatedir
;;
1125 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1126 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1127 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1129 sharedstatedir
=$ac_optarg ;;
1131 -site |
--site |
--sit)
1133 -site=* |
--site=* |
--sit=*)
1136 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1138 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1139 srcdir
=$ac_optarg ;;
1141 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1142 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1143 ac_prev
=sysconfdir
;;
1144 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1145 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1146 sysconfdir
=$ac_optarg ;;
1148 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1149 ac_prev
=target_alias
;;
1150 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1151 target_alias
=$ac_optarg ;;
1153 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1156 -version |
--version |
--versio |
--versi |
--vers |
-V)
1157 ac_init_version
=: ;;
1160 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1163 as_fn_error $?
"invalid package name: $ac_useropt"
1164 ac_useropt_orig
=$ac_useropt
1165 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep
=', ';;
1173 eval with_
$ac_useropt=\
$ac_optarg ;;
1175 -without-* |
--without-*)
1176 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 as_fn_error $?
"invalid package name: $ac_useropt"
1180 ac_useropt_orig
=$ac_useropt
1181 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep
=', ';;
1189 eval with_
$ac_useropt=no
;;
1192 # Obsolete; use --with-x.
1195 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1196 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1197 ac_prev
=x_includes
;;
1198 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1199 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1200 x_includes
=$ac_optarg ;;
1202 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1203 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1204 ac_prev
=x_libraries
;;
1205 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1206 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1207 x_libraries
=$ac_optarg ;;
1209 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1210 Try \`$0 --help' for more information"
1214 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1218 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1220 eval $ac_envvar=\
$ac_optarg
1221 export $ac_envvar ;;
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 if test -n "$ac_prev"; then
1235 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error $?
"missing argument to $ac_option"
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1242 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 # Check all directory arguments for consistency.
1248 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir runstatedir
1253 eval ac_val
=\$
$ac_var
1254 # Remove trailing slashes.
1257 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\
$ac_val;;
1260 # Be sure to have absolute directory names.
1262 [\\/$
]* | ?
:[\\/]* ) continue;;
1263 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1265 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1273 target
=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x
; then
1277 if test "x$build_alias" = x
; then
1278 cross_compiling
=maybe
1279 elif test "x$build_alias" != "x$host_alias"; then
1285 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1287 test "$silent" = yes && exec 6>/dev
/null
1290 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di
=`ls -di .` &&
1292 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error $?
"working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error $?
"pwd does not report name of working directory"
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted
=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir
=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 $as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1330 ac_srcdir_defaulted
=no
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1334 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1336 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1348 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 for ac_var
in $ac_precious_vars; do
1351 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1353 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1358 # Report the --help message.
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1364 \`configure' configures DHCP 4.4.2b1 to adapt to many kinds of systems.
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1371 Defaults for the options are specified in brackets.
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking ...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1395 For better control, use the options below.
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1428 --build=BUILD configure
for building on BUILD
[guessed
]
1429 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive
) echo "Configuration of DHCP 4.4.2b1:";;
1440 --disable-option-checking ignore unrecognized
--enable/--with options
1441 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1442 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1443 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1444 --disable-silent-rules verbose build output
(undo
: "make V=0")
1445 --enable-maintainer-mode
1446 enable make rules and dependencies not useful
(and
1447 sometimes confusing
) to the casual installer
1448 --enable-dependency-tracking
1449 do not reject slow dependency extractors
1450 --disable-dependency-tracking
1451 speeds up one-time build
1452 --enable-debug create a debug-only version of the software
(default
1454 --enable-failover enable support
for failover
(default is
yes)
1455 --enable-execute enable support
for execute
() in config
(default is
1457 --enable-tracing enable support
for server activity tracing
(default
1459 --enable-delayed-ack queues multiple DHCPACK replies
(default is
yes)
1460 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1461 --enable-dhcpv4o6 enable support
for DHCPv4-over-DHCPv6
(default is
1463 --enable-relay-port enable support
for relay port
(default is no
)
1464 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1465 --enable-early-chroot enable chrooting prior to configuration
(default is
1467 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1469 --enable-use-sockets use the standard BSD socket API
(default is no
)
1470 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1471 --enable-binary-leases enable support
for binary insertion of leases
1473 --enable-kqueue use BSD kqueue
(default is no
)
1474 --enable-epoll use Linux epoll
(default is no
)
1475 --enable-devpoll use
/dev
/poll
(default is no
)
1476 --enable-libtool use GNU libtool
for dynamic shared libraries
1478 --enable-bind-install install bind includes and libraries
(default is no
).
1481 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1482 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1483 --with-atf=PATH specify location where atf was installed
1484 --with-srv-conf-file=PATH
1485 Default
file containing dhcpd configuration
(default
1486 is typically
/etc
/dhcpd.conf
)
1487 --with-srv-lease-file=PATH
1488 File
for dhcpd leases
(default is
1489 LOCALSTATEDIR
/db
/dhcpd.leases
)
1490 --with-srv6-lease-file=PATH
1491 File
for dhcpd6 leases
(default is
1492 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1493 --with-cli-lease-file=PATH
1494 File
for dhclient leases
(default is
1495 LOCALSTATEDIR
/db
/dhclient.leases
)
1496 --with-cli6-lease-file=PATH
1497 File
for dhclient6 leases
(default is
1498 LOCALSTATEDIR
/db
/dhclient6.leases
)
1499 --with-srv-pid-file=PATH
1500 File
for dhcpd process information
(default is
1501 LOCALSTATEDIR
/run
/dhcpd.pid
)
1502 --with-srv6-pid-file=PATH
1503 File
for dhcpd6 process information
(default is
1504 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1505 --with-cli-pid-file=PATH
1506 File
for dhclient process information
(default is
1507 LOCALSTATEDIR
/run
/dhclient.pid
)
1508 --with-cli6-pid-file=PATH
1509 File
for dhclient6 process information
(default is
1510 LOCALSTATEDIR
/run
/dhclient6.pid
)
1511 --with-relay-pid-file=PATH
1512 File
for dhcrelay process information
(default is
1513 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1514 --with-relay6-pid-file=PATH
1515 File
for dhcrelay6 process information
(default is
1516 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1517 --with-randomdev=PATH Path
for random device
(default is
/dev
/random
)
1518 --with-bind-extra-config
1519 configure
bind librairies with some extra options
1521 --with-libbind=PATH
bind includes and libraries are
in PATH
1522 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1523 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1525 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1526 dhcpd
(default is no
)
1527 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1530 Some influential environment variables
:
1531 CC C compiler
command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1534 nonstandard directory
<lib dir
>
1535 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1536 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1537 you have headers
in a nonstandard directory
<include dir
>
1540 Use these variables to override the choices made by
`configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to <dhcp-users@isc.org>.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1573 .) # We are building in place.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1606 DHCP configure 4.4.2b1
1607 generated by GNU Autoconf 2.69
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1630 *) ac_try_echo
=$ac_try;;
1632 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err
; then
1637 grep -v '^ *+' conftest.err
>conftest.er1
1638 cat conftest.er1
>&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.
$ac_objext; then :
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.
$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status
$ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1664 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } > conftest.i && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698 # the include files in INCLUDES and setting the cache variable VAR
1700 ac_fn_c_check_header_mongrel ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if eval \${$3+:} false; then :
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1713 # Is the header compilable?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715 $as_echo_n "checking $2 usability... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_header_compiler=yes
1724 ac_header_compiler=no
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728 $as_echo "$ac_header_compiler" >&6; }
1730 # Is the header present?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732 $as_echo_n "checking $2 presence... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1737 if ac_fn_c_try_cpp "$LINENO"; then :
1738 ac_header_preproc=yes
1740 ac_header_preproc=no
1742 rm -f conftest.err conftest.i conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744 $as_echo "$ac_header_preproc" >&6; }
1746 # So? What about this header?
1747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1758 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1762 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 ( $as_echo "## --------------------------------- ##
1766 ## Report this to dhcp-users@isc.org ##
1767 ## --------------------------------- ##"
1768 ) | sed "s/^/$as_me: WARNING: /" >&2
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1776 eval "$3=\$ac_header_compiler"
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_header_mongrel
1786 # ac_fn_c_try_run LINENO
1787 # ----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1789 # that executables *can* be run.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1796 *) ac_try_echo
=$ac_try;;
1798 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1804 { { case "(($ac_try" in
1805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_try") 2>&5
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; }; }; then :
1816 $as_echo "$as_me: program exited with status $ac_status" >&5
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=$ac_status
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1828 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists and can be compiled using the include files in
1831 # INCLUDES, setting the cache variable VAR accordingly.
1832 ac_fn_c_check_header_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1845 if ac_fn_c_try_compile "$LINENO"; then :
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_header_compile
1859 # ac_fn_c_find_intX_t LINENO BITS VAR
1860 # -----------------------------------
1861 # Finds a signed integer type with width BITS, setting cache variable VAR
1863 ac_fn_c_find_intX_t ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1867 $as_echo_n "checking for int$2_t... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1872 # Order is important - never check a type that is potentially smaller
1873 # than half of the expected target width.
1874 for ac_type in int$2_t 'int' 'long int' \
1875 'long long int' 'short int' 'signed char'; do
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 $ac_includes_default
1879 enum { N = $2 / 2 - 1 };
1883 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1885 return test_array [0];
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $ac_includes_default
1895 enum { N = $2 / 2 - 1 };
1899 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1900 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1902 return test_array [0];
1908 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=\$ac_type" ;;
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 if eval test \"x\$"$3"\" = x"no"; then :
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_find_intX_t
1935 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1936 # -------------------------------------------
1937 # Tests whether TYPE exists after having included INCLUDES, setting cache
1938 # variable VAR accordingly.
1939 ac_fn_c_check_type ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1973 if ac_fn_c_try_compile "$LINENO"; then :
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 } # ac_fn_c_check_type
1989 # ac_fn_c_find_uintX_t LINENO BITS VAR
1990 # ------------------------------------
1991 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1993 ac_fn_c_find_uintX_t ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1997 $as_echo_n "checking for uint$2_t... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2002 # Order is important - never check a type that is potentially smaller
2003 # than half of the expected target width.
2004 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2005 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $ac_includes_default
2012 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2014 return test_array [0];
2020 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=\$ac_type" ;;
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 if eval test \"x\$"$3"\" = x"no"; then :
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_find_uintX_t
2043 # ac_fn_c_try_link LINENO
2044 # -----------------------
2045 # Try to link conftest.$ac_ext, and return whether this succeeded.
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext conftest$ac_exeext
2050 if { { ac_try="$ac_link"
2052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2053 *) ac_try_echo
=$ac_try;;
2055 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_link") 2>conftest.err
2059 if test -s conftest.err
; then
2060 grep -v '^ *+' conftest.err
>conftest.er1
2061 cat conftest.er1
>&5
2062 mv -f conftest.er1 conftest.err
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_c_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest
$ac_exeext && {
2069 test "$cross_compiling" = yes ||
2070 test -x conftest
$ac_exeext
2074 $as_echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.
$ac_ext >&5
2079 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2080 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2081 # interfere with the next link command; also delete a directory that is
2082 # left behind by Apple's compiler. We do this before executing the actions.
2083 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 as_fn_set_status
$ac_retval
2087 } # ac_fn_c_try_link
2089 # ac_fn_c_check_func LINENO FUNC VAR
2090 # ----------------------------------
2091 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2092 ac_fn_c_check_func
()
2094 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval \
${$3+:} false
; then :
2098 $as_echo_n "(cached) " >&6
2100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2104 #define $2 innocuous_$2
2106 /* System header to define __stub macros and hopefully few prototypes,
2107 which can conflict with char $2 (); below.
2108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2109 <limits.h> exists even on freestanding compilers. */
2112 # include <limits.h>
2114 # include <assert.h>
2119 /* Override any GCC internal prototype to avoid an error.
2120 Use char because int might match the return type of a GCC
2121 builtin and then its argument prototype would still apply. */
2126 /* The GNU C library defines this for functions which it implements
2127 to always fail with ENOSYS. Some functions are actually named
2128 something starting with __ and the normal name is an alias. */
2129 #if defined __stub_$2 || defined __stub___$2
2141 if ac_fn_c_try_link
"$LINENO"; then :
2146 rm -f core conftest.err conftest.
$ac_objext \
2147 conftest
$ac_exeext conftest.
$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 } # ac_fn_c_check_func
2156 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2157 # ----------------------------------------------------
2158 # Tries to find if the field MEMBER exists in type AGGR, after including
2159 # INCLUDES, setting cache variable VAR accordingly.
2160 ac_fn_c_check_member
()
2162 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2164 $as_echo_n "checking for $2.$3... " >&6; }
2165 if eval \
${$4+:} false
; then :
2166 $as_echo_n "(cached) " >&6
2168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2181 if ac_fn_c_try_compile
"$LINENO"; then :
2184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2191 if (sizeof ac_aggr.$3)
2197 if ac_fn_c_try_compile
"$LINENO"; then :
2202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211 } # ac_fn_c_check_member
2213 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2214 # --------------------------------------------
2215 # Tries to find the compile-time value of EXPR in a program that includes
2216 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2218 ac_fn_c_compute_int
()
2220 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2221 if test "$cross_compiling" = yes; then
2222 # Depending upon the size, compute the lo and hi bounds.
2223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) >= 0)];
2231 return test_array [0];
2237 if ac_fn_c_try_compile
"$LINENO"; then :
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 return test_array [0];
2254 if ac_fn_c_try_compile
"$LINENO"; then :
2255 ac_hi
=$ac_mid; break
2257 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2258 if test $ac_lo -le $ac_mid; then
2262 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 static int test_array [1 - 2 * !(($2) < 0)];
2275 return test_array [0];
2281 if ac_fn_c_try_compile
"$LINENO"; then :
2284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2290 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2292 return test_array [0];
2298 if ac_fn_c_try_compile
"$LINENO"; then :
2299 ac_lo
=$ac_mid; break
2301 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2302 if test $ac_mid -le $ac_hi; then
2306 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2316 # Binary search between lo and hi bounds.
2317 while test "x$ac_lo" != "x$ac_hi"; do
2318 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2325 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2327 return test_array [0];
2333 if ac_fn_c_try_compile
"$LINENO"; then :
2336 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2341 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2348 static long int longval () { return $2; }
2349 static unsigned long int ulongval () { return $2; }
2356 FILE *f = fopen ("conftest.val", "w");
2361 long int i = longval ();
2364 fprintf (f, "%ld", i);
2368 unsigned long int i = ulongval ();
2371 fprintf (f, "%lu", i);
2373 /* Do not output a trailing newline, as this causes \r\n confusion
2374 on some platforms. */
2375 return ferror (f) || fclose (f) != 0;
2381 if ac_fn_c_try_run
"$LINENO"; then :
2382 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 as_fn_set_status
$ac_retval
2394 } # ac_fn_c_compute_int
2395 cat >config.log
<<_ACEOF
2396 This file contains any messages produced by compilers while
2397 running configure, to aid debugging if configure makes a mistake.
2399 It was created by DHCP $as_me 4.4.2b1, which was
2400 generated by GNU Autoconf 2.69. Invocation command line was
2412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2419 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2421 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2422 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2424 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2425 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2426 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2427 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir
=.
2436 $as_echo "PATH: $as_dir"
2452 # Keep a trace of the command line.
2453 # Strip out --no-create and --no-recursion so they do not pile up.
2454 # Strip out --silent because we don't want to record it for future runs.
2455 # Also quote any args containing shell meta-characters.
2456 # Make two passes to allow for proper duplicate-argument suppression.
2460 ac_must_keep_next
=false
2466 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2467 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2468 |
-silent |
--silent |
--silen |
--sile |
--sil)
2471 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2474 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2476 as_fn_append ac_configure_args1
" '$ac_arg'"
2477 if test $ac_must_keep_next = true
; then
2478 ac_must_keep_next
=false
# Got value, back to normal.
2481 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2482 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2483 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2484 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2485 case "$ac_configure_args0 " in
2486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2489 -* ) ac_must_keep_next
=true
;;
2492 as_fn_append ac_configure_args
" '$ac_arg'"
2497 { ac_configure_args0
=; unset ac_configure_args0
;}
2498 { ac_configure_args1
=; unset ac_configure_args1
;}
2500 # When interrupted or exit'd, cleanup temporary files, and complete
2501 # config.log. We remove comments because anyway the quotes in there
2502 # would cause problems or look ugly.
2503 # WARNING: Use '\'' to represent an apostrophe within the trap.
2504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2505 trap 'exit_status=$?
2506 # Save into config.log some information that might help in debugging.
2510 $as_echo "## ---------------- ##
2511 ## Cache variables. ##
2512 ## ---------------- ##"
2514 # The following way of writing the cache mishandles newlines in values,
2516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2517 eval ac_val=\$$ac_var
2521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2525 _ | IFS | as_nl) ;; #(
2526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2527 *) { eval $ac_var=; unset $ac_var;} ;;
2532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2533 *${as_nl}ac_space=\ *)
2535 "s/'\''/'\''\\\\'\'''\''/g;
2536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2546 $as_echo "## ----------------- ##
2547 ## Output variables. ##
2548 ## ----------------- ##"
2550 for ac_var in $ac_subst_vars
2552 eval ac_val=\$$ac_var
2554 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 $as_echo "$ac_var='\''$ac_val'\''"
2560 if test -n "$ac_subst_files"; then
2561 $as_echo "## ------------------- ##
2562 ## File substitutions. ##
2563 ## ------------------- ##"
2565 for ac_var
in $ac_subst_files
2567 eval ac_val
=\$
$ac_var
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 $as_echo "$ac_var='\''$ac_val'\''"
2576 if test -s confdefs.h; then
2577 $as_echo "## ----------- ##
2584 test "$ac_signal" != 0 &&
2585 $as_echo "$as_me: caught signal $ac_signal"
2586 $as_echo "$as_me: exit $exit_status"
2588 rm -f core *.core core.conftest.* &&
2589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2592 for ac_signal
in 1 2 13 15; do
2593 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2598 rm -f -r conftest
* confdefs.h
2600 $as_echo "/* confdefs.h */" > confdefs.h
2602 # Predefined preprocessor variables.
2604 cat >>confdefs.h
<<_ACEOF
2605 #define PACKAGE_NAME "$PACKAGE_NAME"
2608 cat >>confdefs.h
<<_ACEOF
2609 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2612 cat >>confdefs.h
<<_ACEOF
2613 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2616 cat >>confdefs.h
<<_ACEOF
2617 #define PACKAGE_STRING "$PACKAGE_STRING"
2620 cat >>confdefs.h
<<_ACEOF
2621 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2624 cat >>confdefs.h
<<_ACEOF
2625 #define PACKAGE_URL "$PACKAGE_URL"
2629 # Let the site file select an alternate cache file if it wants to.
2630 # Prefer an explicitly selected file to automatically selected ones.
2633 if test -n "$CONFIG_SITE"; then
2634 # We do not want a PATH search for config.site.
2635 case $CONFIG_SITE in #((
2636 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2637 */*) ac_site_file1
=$CONFIG_SITE;;
2638 *) ac_site_file1
=.
/$CONFIG_SITE;;
2640 elif test "x$prefix" != xNONE
; then
2641 ac_site_file1
=$prefix/share
/config.site
2642 ac_site_file2
=$prefix/etc
/config.site
2644 ac_site_file1
=$ac_default_prefix/share
/config.site
2645 ac_site_file2
=$ac_default_prefix/etc
/config.site
2647 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2649 test "x$ac_site_file" = xNONE
&& continue
2650 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2652 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2653 sed 's/^/| /' "$ac_site_file" >&5
2655 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 as_fn_error $?
"failed to load site script $ac_site_file
2658 See \`config.log' for more details" "$LINENO" 5; }
2662 if test -r "$cache_file"; then
2663 # Some versions of bash will fail to source /dev/null (special files
2664 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2665 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2667 $as_echo "$as_me: loading cache $cache_file" >&6;}
2669 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2670 *) .
"./$cache_file";;
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2675 $as_echo "$as_me: creating cache $cache_file" >&6;}
2679 # Check that the precious variables saved in the cache have kept the same
2681 ac_cache_corrupted
=false
2682 for ac_var
in $ac_precious_vars; do
2683 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2684 eval ac_new_set
=\
$ac_env_${ac_var}_set
2685 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2686 eval ac_new_val
=\
$ac_env_${ac_var}_value
2687 case $ac_old_set,$ac_new_set in
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2690 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2691 ac_cache_corrupted
=: ;;
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2694 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2695 ac_cache_corrupted
=: ;;
2698 if test "x$ac_old_val" != "x$ac_new_val"; then
2699 # differences in whitespace do not lead to failure.
2700 ac_old_val_w
=`echo x $ac_old_val`
2701 ac_new_val_w
=`echo x $ac_new_val`
2702 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2704 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2705 ac_cache_corrupted
=:
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2708 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2709 eval $ac_var=\
$ac_old_val
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2712 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2714 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2717 # Pass precious variables to config.status.
2718 if test "$ac_new_set" = set; then
2720 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2721 *) ac_arg
=$ac_var=$ac_new_val ;;
2723 case " $ac_configure_args " in
2724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2725 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2729 if $ac_cache_corrupted; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2733 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2734 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2736 ## -------------------- ##
2737 ## Main body of script. ##
2738 ## -------------------- ##
2741 ac_cpp
='$CPP $CPPFLAGS'
2742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2749 # we specify "foreign" to avoid having to have the GNU mandated files,
2750 # like AUTHORS, COPYING, and such
2751 am__api_version
='1.16'
2754 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2755 if test -f "$ac_dir/install-sh"; then
2757 ac_install_sh
="$ac_aux_dir/install-sh -c"
2759 elif test -f "$ac_dir/install.sh"; then
2761 ac_install_sh
="$ac_aux_dir/install.sh -c"
2763 elif test -f "$ac_dir/shtool"; then
2765 ac_install_sh
="$ac_aux_dir/shtool install -c"
2769 if test -z "$ac_aux_dir"; then
2770 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2773 # These three variables are undocumented and unsupported,
2774 # and are intended to be withdrawn in a future Autoconf release.
2775 # They can cause serious problems if a builder's source tree is in a directory
2776 # whose full name contains unusual characters.
2777 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2778 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2779 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2782 # Find a good install program. We prefer a C program (faster),
2783 # so one script is as good as another. But avoid the broken or
2784 # incompatible versions:
2785 # SysV /etc/install, /usr/sbin/install
2786 # SunOS /usr/etc/install
2787 # IRIX /sbin/install
2789 # AmigaOS /C/install, which installs bootblocks on floppy discs
2790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2793 # OS/2's system install, which has a completely different semantic
2794 # ./install, which can be erroneously created by make from ./install.sh.
2795 # Reject install programs that cannot install multiple files.
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2797 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2798 if test -z "$INSTALL"; then
2799 if ${ac_cv_path_install+:} false
; then :
2800 $as_echo_n "(cached) " >&6
2802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir
=.
2807 # Account for people who put trailing slashes in PATH elements.
2808 case $as_dir/ in #((
2809 .
/ | .
// |
/[cC
]/* | \
2810 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2811 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2814 # OSF1 and SCO ODT 3.0 have their own names for install.
2815 # Don't use installbsd from OSF since it installs stuff as root
2817 for ac_prog
in ginstall scoinst
install; do
2818 for ac_exec_ext
in '' $ac_executable_extensions; do
2819 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2820 if test $ac_prog = install &&
2821 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2822 # AIX install. It has an incompatible calling convention.
2824 elif test $ac_prog = install &&
2825 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2826 # program-specific install script used by HP pwplus--don't use.
2829 rm -rf conftest.one conftest.two conftest.dir
2830 echo one
> conftest.one
2831 echo two
> conftest.two
2833 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2834 test -s conftest.one
&& test -s conftest.two
&&
2835 test -s conftest.dir
/conftest.one
&&
2836 test -s conftest.dir
/conftest.two
2838 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2851 rm -rf conftest.one conftest.two conftest.dir
2854 if test "${ac_cv_path_install+set}" = set; then
2855 INSTALL
=$ac_cv_path_install
2857 # As a last resort, use the slow shell script. Don't cache a
2858 # value for INSTALL within a source directory, because that will
2859 # break other packages using the cache if that directory is
2860 # removed, or if the value is a relative name.
2861 INSTALL
=$ac_install_sh
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2865 $as_echo "$INSTALL" >&6; }
2867 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2868 # It thinks the first close brace ends the variable substitution.
2869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2873 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2876 $as_echo_n "checking whether build environment is sane... " >&6; }
2877 # Reject unsafe characters in $srcdir or the absolute working directory
2878 # name. Accept space and tab only in the latter.
2882 *[\\\"\
#\$\&\'\`$am_lf]*)
2883 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2886 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2887 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2890 # Do 'set' in a subshell so we don't clobber the current shell's
2891 # arguments. Must try -L first in case configure is actually a
2892 # symlink; some systems play weird games with the mod time of symlinks
2893 # (eg FreeBSD returns the mod time of the symlink's containing
2897 for am_try
in 1 2; do
2898 echo "timestamp, slept: $am_has_slept" > conftest.
file
2899 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2900 if test "$*" = "X"; then
2902 set X
`ls -t "$srcdir/configure" conftest.file`
2904 if test "$*" != "X $srcdir/configure conftest.file" \
2905 && test "$*" != "X conftest.file $srcdir/configure"; then
2907 # If neither matched, then we have a broken ls. This can happen
2908 # if, for instance, CONFIG_SHELL is bash and it inherits a
2909 # broken ls alias from the environment. This has actually
2910 # happened. Such a system could not be considered "sane".
2911 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2912 alias in your environment" "$LINENO" 5
2914 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2921 test "$2" = conftest.
file
2927 as_fn_error $?
"newly created file is older than distributed files!
2928 Check your system clock" "$LINENO" 5
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931 $as_echo "yes" >&6; }
2932 # If we didn't sleep, we still need to ensure time stamps of config.status and
2933 # generated files are strictly newer.
2935 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2942 test "$program_prefix" != NONE
&&
2943 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2944 # Use a double $ so make ignores it.
2945 test "$program_suffix" != NONE
&&
2946 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2947 # Double any \ or $.
2948 # By default was `s,x,x', remove it if useless.
2949 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2950 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2952 # Expand $ac_aux_dir to an absolute path.
2953 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2955 if test x
"${MISSING+set}" != xset
; then
2958 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2960 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2963 # Use eval to expand $SHELL
2964 if eval "$MISSING --is-lightweight"; then
2965 am_missing_run
="$MISSING "
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2969 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2972 if test x
"${install_sh+set}" != xset
; then
2975 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2977 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2981 # Installed binaries are usually stripped using 'strip' when the user
2982 # run "make install-strip". However 'strip' might not be the right
2983 # tool to use in cross-compilation environments, therefore Automake
2984 # will honor the 'STRIP' environment variable to overrule this program.
2985 if test "$cross_compiling" != no
; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2988 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_STRIP+:} false
; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$STRIP"; then
2995 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 STRIP
=$ac_cv_prog_STRIP
3015 if test -n "$STRIP"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3017 $as_echo "$STRIP" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$ac_cv_prog_STRIP"; then
3027 # Extract the first word of "strip", so it can be a program name with args.
3028 set dummy strip
; ac_word
=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$ac_ct_STRIP"; then
3035 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir
=.
3042 for ac_exec_ext
in '' $ac_executable_extensions; do
3043 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_ac_ct_STRIP
="strip"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3055 if test -n "$ac_ct_STRIP"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3057 $as_echo "$ac_ct_STRIP" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3063 if test "x$ac_ct_STRIP" = x
; then
3066 case $cross_compiling:$ac_tool_warned in
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned
=yes ;;
3075 STRIP
="$ac_cv_prog_STRIP"
3079 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3082 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3083 if test -z "$MKDIR_P"; then
3084 if ${ac_cv_path_mkdir+:} false
; then :
3085 $as_echo_n "(cached) " >&6
3087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3088 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3091 test -z "$as_dir" && as_dir
=.
3092 for ac_prog
in mkdir gmkdir
; do
3093 for ac_exec_ext
in '' $ac_executable_extensions; do
3094 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3096 'mkdir (GNU coreutils) '* | \
3097 'mkdir (coreutils) '* | \
3098 'mkdir (fileutils) '4.1*)
3099 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3109 test -d .
/--version && rmdir .
/--version
3110 if test "${ac_cv_path_mkdir+set}" = set; then
3111 MKDIR_P
="$ac_cv_path_mkdir -p"
3113 # As a last resort, use the slow shell script. Don't cache a
3114 # value for MKDIR_P within a source directory, because that will
3115 # break other packages using the cache if that directory is
3116 # removed, or if the value is a relative name.
3117 MKDIR_P
="$ac_install_sh -d"
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3121 $as_echo "$MKDIR_P" >&6; }
3123 for ac_prog
in gawk mawk nawk
awk
3125 # Extract the first word of "$ac_prog", so it can be a program name with args.
3126 set dummy
$ac_prog; ac_word
=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_AWK+:} false
; then :
3130 $as_echo_n "(cached) " >&6
3132 if test -n "$AWK"; then
3133 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir
=.
3140 for ac_exec_ext
in '' $ac_executable_extensions; do
3141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_AWK
="$ac_prog"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 if test -n "$AWK"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3155 $as_echo "$AWK" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3162 test -n "$AWK" && break
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3168 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3169 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3170 $as_echo_n "(cached) " >&6
3172 cat >conftest.
make <<\_ACEOF
3175 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3178 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3180 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3182 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3186 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3188 $as_echo "yes" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 SET_MAKE
="MAKE=${MAKE-make}"
3196 rm -rf .tst
2>/dev
/null
3197 mkdir .tst
2>/dev
/null
3198 if test -d .tst
; then
3203 rmdir .tst
2>/dev
/null
3205 # Check whether --enable-silent-rules was given.
3206 if test "${enable_silent_rules+set}" = set; then :
3207 enableval
=$enable_silent_rules;
3210 case $enable_silent_rules in # (((
3211 yes) AM_DEFAULT_VERBOSITY
=0;;
3212 no
) AM_DEFAULT_VERBOSITY
=1;;
3213 *) AM_DEFAULT_VERBOSITY
=1;;
3215 am_make
=${MAKE-make}
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3217 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3218 if ${am_cv_make_support_nested_variables+:} false
; then :
3219 $as_echo_n "(cached) " >&6
3221 if $as_echo 'TRUE=$(BAR$(V))
3227 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3228 am_cv_make_support_nested_variables
=yes
3230 am_cv_make_support_nested_variables
=no
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3234 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3235 if test $am_cv_make_support_nested_variables = yes; then
3237 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3239 AM_V
=$AM_DEFAULT_VERBOSITY
3240 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3246 # is not polluted with repeated "-I."
3247 am__isrc
=' -I$(srcdir)'
3248 # test to see if srcdir already configured
3249 if test -f $srcdir/config.status
; then
3250 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3254 # test whether we have cygpath
3255 if test -z "$CYGPATH_W"; then
3256 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3257 CYGPATH_W
='cygpath -w'
3264 # Define the identity of the package.
3269 cat >>confdefs.h
<<_ACEOF
3270 #define PACKAGE "$PACKAGE"
3274 cat >>confdefs.h
<<_ACEOF
3275 #define VERSION "$VERSION"
3278 # Some tools Automake needs.
3280 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3283 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3286 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3289 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3292 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3294 # For better backward compatibility. To be removed once Automake 1.9.x
3295 # dies out for good. For more background, see:
3296 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3297 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3298 mkdir_p
='$(MKDIR_P)'
3300 # We need awk for the "check" target (and possibly the TAP driver). The
3301 # system "awk" is bad on some platforms.
3302 # Always define AMTAR for backward compatibility. Yes, it's still used
3303 # in the wild :-( We should find a proper way to deprecate it ...
3307 # We'll loop over all known methods to create a tar archive until one works.
3308 _am_tools
='gnutar pax cpio none'
3310 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3317 # POSIX will say in a future version that running "rm -f" with no argument
3318 # is OK; and we want to be able to make that assumption in our Makefile
3319 # recipes. So use an aggressive probe to check that the usage we want is
3320 # actually supported "in the wild" to an acceptable degree.
3321 # See automake bug#10828.
3322 # To make any issue more visible, cause the running configure to be aborted
3323 # by default if the 'rm' program in use doesn't match our expectations; the
3324 # user can still override this though.
3325 if rm -f && rm -fr && rm -rf; then : OK
; else
3329 Your 'rm' program seems unable to run without file operands specified
3330 on the command line, even when the '-f' option is present. This is contrary
3331 to the behaviour of most rm programs out there, and not conforming with
3332 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3334 Please tell bug-automake@gnu.org about your system, including the value
3335 of your $PATH and any error possibly output before this message. This
3336 can help us improve future automake versions.
3339 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3340 echo 'Configuration will proceed anyway, since you have set the' >&2
3341 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3345 Aborting the configuration process, to ensure you take notice of the issue.
3347 You can download and install GNU coreutils to get an 'rm' implementation
3348 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3350 If you want to complete the configuration process using your problematic
3351 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3352 to "yes", and re-run configure.
3355 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3360 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3361 # the configure and makefiles. Without it users doing things that
3362 # change the timestamps on the code, like checking it into a cvs
3363 # tree, could trigger a rebuild of the infrastructure files which
3364 # might fail if they don't have the correct tools.
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3367 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3368 # Check whether --enable-maintainer-mode was given.
3369 if test "${enable_maintainer_mode+set}" = set; then :
3370 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3372 USE_MAINTAINER_MODE
=no
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3376 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3377 if test $USE_MAINTAINER_MODE = yes; then
3378 MAINTAINER_MODE_TRUE
=
3379 MAINTAINER_MODE_FALSE
='#'
3381 MAINTAINER_MODE_TRUE
='#'
3382 MAINTAINER_MODE_FALSE
=
3385 MAINT
=$MAINTAINER_MODE_TRUE
3389 # Make sure we can run config.sub.
3390 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3391 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3394 $as_echo_n "checking build system type... " >&6; }
3395 if ${ac_cv_build+:} false
; then :
3396 $as_echo_n "(cached) " >&6
3398 ac_build_alias
=$build_alias
3399 test "x$ac_build_alias" = x
&&
3400 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3401 test "x$ac_build_alias" = x
&&
3402 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3403 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3404 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3408 $as_echo "$ac_cv_build" >&6; }
3409 case $ac_cv_build in
3411 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3414 ac_save_IFS
=$IFS; IFS
='-'
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3424 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3428 $as_echo_n "checking host system type... " >&6; }
3429 if ${ac_cv_host+:} false
; then :
3430 $as_echo_n "(cached) " >&6
3432 if test "x$host_alias" = x
; then
3433 ac_cv_host
=$ac_cv_build
3435 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3436 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3441 $as_echo "$ac_cv_host" >&6; }
3444 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3447 ac_save_IFS
=$IFS; IFS
='-'
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3457 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3461 # We want to turn on warnings if we are using gcc and the user did
3462 # not specify CFLAGS. The autoconf check for the C compiler sets the
3463 # CFLAGS if gcc is used, so we will save it before we run that check.
3464 SAVE_CFLAGS
="$CFLAGS"
3466 # Now find our C compiler.
3468 ac_cpp
='$CPP $CPPFLAGS'
3469 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_CC+:} false
; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC
="$CC" # Let the user override the test.
3483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir
=.
3488 for ac_exec_ext
in '' $ac_executable_extensions; do
3489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3511 if test -z "$ac_cv_prog_CC"; then
3513 # Extract the first word of "gcc", so it can be a program name with args.
3514 set dummy gcc
; ac_word
=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir
=.
3528 for ac_exec_ext
in '' $ac_executable_extensions; do
3529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_ac_ct_CC
="gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3549 if test "x$ac_ct_CC" = x
; then
3552 case $cross_compiling:$ac_tool_warned in
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned
=yes ;;
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3567 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_CC+:} false
; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC
="$CC" # Let the user override the test.
3576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir
=.
3581 for ac_exec_ext
in '' $ac_executable_extensions; do
3582 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3605 if test -z "$CC"; then
3606 # Extract the first word of "cc", so it can be a program name with args.
3607 set dummy cc
; ac_word
=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false
; then :
3611 $as_echo_n "(cached) " >&6
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC
="$CC" # Let the user override the test.
3617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir
=.
3622 for ac_exec_ext
in '' $ac_executable_extensions; do
3623 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3625 ac_prog_rejected
=yes
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 if test $ac_prog_rejected = yes; then
3637 # We found a bogon in the path, so make sure we never use it.
3638 set dummy
$ac_cv_prog_CC
3640 if test $# != 0; then
3641 # We chose a different compiler from the bogus one.
3642 # However, it has the same basename, so the bogon will be chosen
3643 # first if we set CC to just the basename; use the full file name.
3645 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3661 if test -z "$CC"; then
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog
in cl.exe
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_CC+:} false
; then :
3670 $as_echo_n "(cached) " >&6
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC
="$CC" # Let the user override the test.
3675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir
=.
3680 for ac_exec_ext
in '' $ac_executable_extensions; do
3681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3702 test -n "$CC" && break
3705 if test -z "$CC"; then
3707 for ac_prog
in cl.exe
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy
$ac_prog; ac_word
=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3714 $as_echo_n "(cached) " >&6
3716 if test -n "$ac_ct_CC"; then
3717 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir
=.
3724 for ac_exec_ext
in '' $ac_executable_extensions; do
3725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_ac_ct_CC
="$ac_prog"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3737 if test -n "$ac_ct_CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3739 $as_echo "$ac_ct_CC" >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3746 test -n "$ac_ct_CC" && break
3749 if test "x$ac_ct_CC" = x
; then
3752 case $cross_compiling:$ac_tool_warned in
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned
=yes ;;
3765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $?
"no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details" "$LINENO" 5; }
3770 # Provide some information about the compiler.
3771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3774 for ac_option
in --version -v -V -qversion; do
3775 { { ac_try
="$ac_compiler $ac_option >&5"
3777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3784 if test -s conftest.err; then
3786 ... rest of stderr output deleted ...
3787 10q' conftest.err >conftest.er1
3788 cat conftest.er1 >&5
3790 rm -f conftest.er1 conftest.err
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 ac_clean_files_save=$ac_clean_files
3807 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3808 # Try to create an executable without -o first, disregard a.out.
3809 # It will help us diagnose broken compilers, and finding out an intuition
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3812 $as_echo_n "checking whether the C compiler works... " >&6; }
3813 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3815 # The possible output files:
3816 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3819 for ac_file in $ac_files
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3823 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3828 if { { ac_try="$ac_link_default"
3830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3831 *) ac_try_echo
=$ac_try;;
3833 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_link_default") 2>&5
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3841 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3842 # so that the user can short-circuit this test for compilers unknown to
3844 for ac_file
in $ac_files ''
3846 test -f "$ac_file" ||
continue
3848 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3851 # We found the default executable, but exeext='' is most
3855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3857 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859 # We set ac_cv_exeext here because the later test for it is not
3860 # safe: cross compilers may not add the suffix if given an `-o'
3861 # argument, so we may need to know it at that point already.
3862 # Even if this section looks crufty: it has the advantage of
3869 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3874 if test -z "$ac_file"; then :
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.
$ac_ext >&5
3880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error
77 "C compiler cannot create executables
3883 See \`config.log' for more details" "$LINENO" 5; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3889 $as_echo_n "checking for C compiler default output file name... " >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 ac_exeext
=$ac_cv_exeext
3894 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3895 ac_clean_files
=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3897 $as_echo_n "checking for suffix of executables... " >&6; }
3898 if { { ac_try
="$ac_link"
3900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3910 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3913 for ac_file
in conftest.exe conftest conftest.
*; do
3914 test -f "$ac_file" ||
continue
3916 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3917 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details" "$LINENO" 5; }
3928 rm -f conftest conftest
$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 $as_echo "$ac_cv_exeext" >&6; }
3932 rm -f conftest.
$ac_ext
3933 EXEEXT
=$ac_cv_exeext
3935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3941 FILE *f = fopen ("conftest.out", "w");
3942 return ferror (f) || fclose (f) != 0;
3948 ac_clean_files
="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954 { { ac_try
="$ac_link"
3956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if { ac_try='./conftest$ac_cv_exeext'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3968 *) ac_try_echo
=$ac_try;;
3970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3978 if test "$cross_compiling" = maybe
; then
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $?
"cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details" "$LINENO" 5; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3993 ac_clean_files
=$ac_clean_files_save
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if ${ac_cv_objext+:} false
; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try
="$ac_compile"
4013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4037 See \
`config.log' for more details" "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if ${ac_cv_c_compiler_gnu+:} false; then :
4048 $as_echo_n "(cached) " >&6
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if ${ac_cv_prog_cc_g+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4154 if test "$GCC" = yes; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if ${ac_cv_prog_cc_c89+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_cv_prog_cc_c89=no
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4173 struct buf { int x; };
4174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4175 static char *e (p, i)
4181 static char *f (char * (*g) (char **, int), char **p, ...)
4186 s = g (p, va_arg (v,int));
4191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4192 function prototypes and stuff, but not '\xHH' hex character constants.
4193 These don't provoke an error unfortunately, instead are silently treated
4194 as 'x'. The following induces an error, until -std is added to get
4195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4196 array size at least. It's necessary to write '\x00'==0 to get something
4197 that's true only with -std. */
4198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4201 inside strings and character constants. */
4203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4205 int test (int i, double x);
4206 struct s1 {int (*f) (int a);};
4207 struct s2 {int (*f) (double a);};
4208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_prog_cc_c89=$ac_arg
4226 rm -f core conftest.err conftest.$ac_objext
4227 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 rm -f conftest.$ac_ext
4234 case "x$ac_cv_prog_cc_c89" in
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237 $as_echo "none needed" >&6; } ;;
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;;
4242 CC="$CC $ac_cv_prog_cc_c89"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4262 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4263 if ${am_cv_prog_cc_c_o+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 # Make sure it works both with $CC and with simple cc.
4278 # Following AC_PROG_CC_C_O, we do the test twice because some
4279 # compilers refuse to overwrite an existing .o file with -o,
4280 # though they will create one.
4281 am_cv_prog_cc_c_o=yes
4283 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4284 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } \
4288 && test -f conftest2.$ac_objext; then
4291 am_cv_prog_cc_c_o=no
4295 rm -f core conftest*
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4299 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4300 if test "$am_cv_prog_cc_c_o" != yes; then
4301 # Losing compiler, so override with the script.
4302 # FIXME: It is wrong to rewrite CC.
4303 # But if we don't then we get into trouble of one sort or another.
4304 # A longer-term fix would be to have automake use am__CC in this case,
4305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4306 CC="$am_aux_dir/compile $CC"
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 DEPDIR="${am__leading_dot}deps"
4316 ac_config_commands="$ac_config_commands depfiles"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4319 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4320 cat > confinc.mk << 'END'
4322 @echo this is the am__doit target >confinc.out
4327 # BSD make does it like this.
4328 echo '.include "confinc.mk" # ignored' > confmf.BSD
4329 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4330 echo 'include confinc.mk # ignored' > confmf.GNU
4332 for s in GNU BSD; do
4333 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4334 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }
4338 case $?:`cat confinc.out
2>/dev
/null
` in #(
4339 '0:this is the am__doit target') :
4342 am__include='.include' am__quote='"' ;; #(
4344 am__include='include' am__quote='' ;;
4349 if test "$am__include" != "#"; then
4350 _am_result="yes ($s style)"
4354 rm -f confinc.* confmf.*
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4356 $as_echo "${_am_result}" >&6; }
4358 # Check whether --enable-dependency-tracking was given.
4359 if test "${enable_dependency_tracking+set}" = set; then :
4360 enableval=$enable_dependency_tracking;
4363 if test "x$enable_dependency_tracking" != xno; then
4364 am_depcomp="$ac_aux_dir/depcomp"
4368 if test "x$enable_dependency_tracking" != xno; then
4378 depcc="$CC" am_compiler_list=
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4381 $as_echo_n "checking dependency style of $depcc... " >&6; }
4382 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4386 # We make a subdir and do the tests there. Otherwise we can end up
4387 # making bogus files that we don't know about and never remove. For
4388 # instance it was reported that on HP-UX the gcc test will end up
4389 # making a dummy file named 'D' -- because '-MD' means "put the output
4393 # Copy depcomp to subdir because otherwise we won't find it if we're
4394 # using a relative directory.
4395 cp "$am_depcomp" conftest.dir
4397 # We will build objects and dependencies in a subdirectory because
4398 # it helps to detect inapplicable dependency modes. For instance
4399 # both Tru64's cc and ICC support -MD to output dependencies as a
4400 # side effect of compilation, but ICC will put the dependencies in
4401 # the current directory while Tru64 will put them in the object
4405 am_cv_CC_dependencies_compiler_type=none
4406 if test "$am_compiler_list" = ""; then
4407 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4410 case " $depcc " in #(
4411 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4414 for depmode in $am_compiler_list; do
4415 # Setup a source with many dependencies, because some compilers
4416 # like to wrap large dependency lists on column 80 (with \), and
4417 # we should not choose a depcomp mode which is confused by this.
4419 # We need to recreate these files for each test, as the compiler may
4420 # overwrite some of them when testing with obscure command lines.
4421 # This happens at least with the AIX C compiler.
4423 for i in 1 2 3 4 5 6; do
4424 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4425 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4426 # Solaris 10 /bin/sh.
4427 echo '/* dummy */' > sub/conftst$i.h
4429 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4431 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4432 # mode. It turns out that the SunPro C++ compiler does not properly
4433 # handle '-M -o', and we need to detect this. Also, some Intel
4434 # versions had trouble with output in subdirs.
4435 am__obj=sub/conftest.${OBJEXT-o}
4436 am__minus_obj="-o $am__obj"
4439 # This depmode causes a compiler race in universal mode.
4440 test "$am__universal" = false || continue
4443 # After this tag, mechanisms are not by side-effect, so they'll
4444 # only be used when explicitly requested.
4445 if test "x$enable_dependency_tracking" = xyes; then
4451 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4452 # This compiler won't grok '-c -o', but also, the minuso test has
4453 # not run yet. These depmodes are late enough in the game, and
4454 # so weak that their functioning should not be impacted.
4455 am__obj=conftest.${OBJEXT-o}
4460 if depmode=$depmode \
4461 source=sub/conftest.c object=$am__obj \
4462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4463 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4464 >/dev/null 2>conftest.err &&
4465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4467 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4469 # icc doesn't choke on unknown options, it will just issue warnings
4470 # or remarks (even with -Werror). So we grep stderr for any message
4471 # that says an option was ignored or not supported.
4472 # When given -MP, icc 7.0 and 7.1 complain thusly:
4473 # icc: Command line warning: ignoring option '-M'; no argument required
4474 # The diagnosis changed in icc 8.0:
4475 # icc: Command line remark: option '-MP' not supported
4476 if (grep 'ignoring option' conftest.err ||
4477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4478 am_cv_CC_dependencies_compiler_type=$depmode
4487 am_cv_CC_dependencies_compiler_type=none
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4492 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4493 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4496 test "x$enable_dependency_tracking" != xno \
4497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4499 am__fastdepCC_FALSE='#'
4501 am__fastdepCC_TRUE='#'
4502 am__fastdepCC_FALSE=
4507 # Suppress warnings about --datarootdir
4510 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4511 # user did not specify any flags. Add warnings in this case.
4512 if test "$GCC" = "yes"; then
4513 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4514 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4518 # We can have some flags to pass to bind configure
4520 if test "$cross_compiling" = "yes"; then
4521 BINDCONFIG="--host=$host"
4523 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4524 # and as there can be a space inside an argument some magic is required.
4525 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4526 eval "set my_configure_args $ac_configure_args"
4527 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4529 # iterate on arguments and copying 'arg' when it begins by an upper case
4533 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4538 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4539 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4540 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4541 # Socket API were designed to be used but we have to live with it.
4542 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4550 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4551 # On Suns, sometimes $CPP names a directory.
4552 if test -n "$CPP" && test -d "$CPP"; then
4555 if test -z "$CPP"; then
4556 if ${ac_cv_prog_CPP+:} false; then :
4557 $as_echo_n "(cached) " >&6
4559 # Double quotes because CPP needs to be expanded
4560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4563 for ac_c_preproc_warn_flag in '' yes
4565 # Use a header file that comes with gcc, so configuring glibc
4566 # with a fresh cross-compiler works.
4567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4568 # <limits.h> exists even on freestanding compilers.
4569 # On the NeXT, cc -E runs the code through the compiler's parser,
4570 # not just through cpp. "Syntax error" is here to catch this case.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4574 # include <limits.h>
4576 # include <assert.h>
4580 if ac_fn_c_try_cpp "$LINENO"; then :
4583 # Broken: fails on valid input.
4586 rm -f conftest.err conftest.i conftest.$ac_ext
4588 # OK, works on sane cases. Now check whether nonexistent headers
4589 # can be detected and how.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <ac_nonexistent.h>
4594 if ac_fn_c_try_cpp "$LINENO"; then :
4595 # Broken: success on invalid input.
4598 # Passes both tests.
4602 rm -f conftest.err conftest.i conftest.$ac_ext
4605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4606 rm -f conftest.i conftest.err conftest.
$ac_ext
4607 if $ac_preproc_ok; then :
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4620 $as_echo "$CPP" >&6; }
4622 for ac_c_preproc_warn_flag
in '' yes
4624 # Use a header file that comes with gcc, so configuring glibc
4625 # with a fresh cross-compiler works.
4626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627 # <limits.h> exists even on freestanding compilers.
4628 # On the NeXT, cc -E runs the code through the compiler's parser,
4629 # not just through cpp. "Syntax error" is here to catch this case.
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4633 # include <limits.h>
4635 # include <assert.h>
4639 if ac_fn_c_try_cpp
"$LINENO"; then :
4642 # Broken: fails on valid input.
4645 rm -f conftest.err conftest.i conftest.
$ac_ext
4647 # OK, works on sane cases. Now check whether nonexistent headers
4648 # can be detected and how.
4649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651 #include <ac_nonexistent.h>
4653 if ac_fn_c_try_cpp
"$LINENO"; then :
4654 # Broken: success on invalid input.
4657 # Passes both tests.
4661 rm -f conftest.err conftest.i conftest.
$ac_ext
4664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4665 rm -f conftest.i conftest.err conftest.
$ac_ext
4666 if $ac_preproc_ok; then :
4669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4671 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4672 See \`config.log' for more details" "$LINENO" 5; }
4676 ac_cpp
='$CPP $CPPFLAGS'
4677 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4683 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4684 if ${ac_cv_path_GREP+:} false
; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -z "$GREP"; then
4688 ac_path_GREP_found
=false
4689 # Loop through the user's path and test for each of PROGNAME-LIST
4690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4691 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4694 test -z "$as_dir" && as_dir
=.
4695 for ac_prog
in grep ggrep
; do
4696 for ac_exec_ext
in '' $ac_executable_extensions; do
4697 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4698 as_fn_executable_p
"$ac_path_GREP" ||
continue
4699 # Check for GNU ac_path_GREP and select it if it is found.
4700 # Check for GNU $ac_path_GREP
4701 case `"$ac_path_GREP" --version 2>&1` in
4703 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4706 $as_echo_n 0123456789 >"conftest.in"
4709 cat "conftest.in" "conftest.in" >"conftest.tmp"
4710 mv "conftest.tmp" "conftest.in"
4711 cp "conftest.in" "conftest.nl"
4712 $as_echo 'GREP' >> "conftest.nl"
4713 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4714 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4715 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4716 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4717 # Best one so far, save it but keep looking for a better one
4718 ac_cv_path_GREP
="$ac_path_GREP"
4719 ac_path_GREP_max
=$ac_count
4721 # 10*(2^10) chars as input seems more than enough
4722 test $ac_count -gt 10 && break
4724 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4727 $ac_path_GREP_found && break 3
4732 if test -z "$ac_cv_path_GREP"; then
4733 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 ac_cv_path_GREP
=$GREP
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4741 $as_echo "$ac_cv_path_GREP" >&6; }
4742 GREP
="$ac_cv_path_GREP"
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4746 $as_echo_n "checking for egrep... " >&6; }
4747 if ${ac_cv_path_EGREP+:} false
; then :
4748 $as_echo_n "(cached) " >&6
4750 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4751 then ac_cv_path_EGREP
="$GREP -E"
4753 if test -z "$EGREP"; then
4754 ac_path_EGREP_found
=false
4755 # Loop through the user's path and test for each of PROGNAME-LIST
4756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4760 test -z "$as_dir" && as_dir
=.
4761 for ac_prog
in egrep; do
4762 for ac_exec_ext
in '' $ac_executable_extensions; do
4763 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4764 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4765 # Check for GNU ac_path_EGREP and select it if it is found.
4766 # Check for GNU $ac_path_EGREP
4767 case `"$ac_path_EGREP" --version 2>&1` in
4769 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4772 $as_echo_n 0123456789 >"conftest.in"
4775 cat "conftest.in" "conftest.in" >"conftest.tmp"
4776 mv "conftest.tmp" "conftest.in"
4777 cp "conftest.in" "conftest.nl"
4778 $as_echo 'EGREP' >> "conftest.nl"
4779 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4780 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4781 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4782 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4783 # Best one so far, save it but keep looking for a better one
4784 ac_cv_path_EGREP
="$ac_path_EGREP"
4785 ac_path_EGREP_max
=$ac_count
4787 # 10*(2^10) chars as input seems more than enough
4788 test $ac_count -gt 10 && break
4790 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4793 $ac_path_EGREP_found && break 3
4798 if test -z "$ac_cv_path_EGREP"; then
4799 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802 ac_cv_path_EGREP
=$EGREP
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4808 $as_echo "$ac_cv_path_EGREP" >&6; }
4809 EGREP
="$ac_cv_path_EGREP"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4813 $as_echo_n "checking for ANSI C header files... " >&6; }
4814 if ${ac_cv_header_stdc+:} false
; then :
4815 $as_echo_n "(cached) " >&6
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4832 if ac_fn_c_try_compile
"$LINENO"; then :
4833 ac_cv_header_stdc
=yes
4835 ac_cv_header_stdc
=no
4837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4839 if test $ac_cv_header_stdc = yes; then
4840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847 $EGREP "memchr" >/dev
/null
2>&1; then :
4850 ac_cv_header_stdc
=no
4856 if test $ac_cv_header_stdc = yes; then
4857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4864 $EGREP "free" >/dev
/null
2>&1; then :
4867 ac_cv_header_stdc
=no
4873 if test $ac_cv_header_stdc = yes; then
4874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4875 if test "$cross_compiling" = yes; then :
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4882 #if ((' ' & 0x0FF) == 0x020)
4883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4886 # define ISLOWER(c) \
4887 (('a' <= (c) && (c) <= 'i') \
4888 || ('j' <= (c) && (c) <= 'r') \
4889 || ('s' <= (c) && (c) <= 'z'))
4890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4898 for (i = 0; i < 256; i++)
4899 if (XOR (islower (i), ISLOWER (i))
4900 || toupper (i) != TOUPPER (i))
4905 if ac_fn_c_try_run
"$LINENO"; then :
4908 ac_cv_header_stdc
=no
4910 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4911 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4917 $as_echo "$ac_cv_header_stdc" >&6; }
4918 if test $ac_cv_header_stdc = yes; then
4920 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4925 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4926 inttypes.h stdint.h unistd.h
4928 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4929 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4931 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4932 cat >>confdefs.h
<<_ACEOF
4933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4943 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4950 if test "$MINIX" = yes; then
4952 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4955 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4958 $as_echo "#define _MINIX 1" >>confdefs.h
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4964 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4965 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4966 $as_echo_n "(cached) " >&6
4968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4971 # define __EXTENSIONS__ 1
4972 $ac_includes_default
4981 if ac_fn_c_try_compile
"$LINENO"; then :
4982 ac_cv_safe_to_define___extensions__
=yes
4984 ac_cv_safe_to_define___extensions__
=no
4986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4989 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4990 test $ac_cv_safe_to_define___extensions__ = yes &&
4991 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4993 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4995 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4997 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4999 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5003 if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_RANLIB+:} false
; then :
5009 $as_echo_n "(cached) " >&6
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir
=.
5019 for ac_exec_ext
in '' $ac_executable_extensions; do
5020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 RANLIB
=$ac_cv_prog_RANLIB
5032 if test -n "$RANLIB"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5034 $as_echo "$RANLIB" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB
=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib
; ac_word
=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5049 $as_echo_n "(cached) " >&6
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir
=.
5059 for ac_exec_ext
in '' $ac_executable_extensions; do
5060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5074 $as_echo "$ac_ct_RANLIB" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5080 if test "x$ac_ct_RANLIB" = x
; then
5083 case $cross_compiling:$ac_tool_warned in
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned
=yes ;;
5089 RANLIB
=$ac_ct_RANLIB
5092 RANLIB
="$ac_cv_prog_RANLIB"
5096 # Extract the first word of "ar", so it can be a program name with args.
5097 set dummy
ar; ac_word
=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_AR+:} false
; then :
5101 $as_echo_n "(cached) " >&6
5105 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 if test -n "$AR"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5129 $as_echo "$AR" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5138 if test "X$AR" = "X"; then
5140 ar program not found. Please fix your PATH to include the directory in
5141 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5144 ac_config_headers
="$ac_config_headers includes/config.h"
5147 # we sometimes need to know byte order for building packets
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5149 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5150 if ${ac_cv_c_bigendian+:} false
; then :
5151 $as_echo_n "(cached) " >&6
5153 ac_cv_c_bigendian
=unknown
5154 # See if we're dealing with a universal compiler.
5155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #ifndef __APPLE_CC__
5158 not a universal capable compiler
5163 if ac_fn_c_try_compile
"$LINENO"; then :
5165 # Check for potential -arch flags. It is not universal unless
5166 # there are at least two -arch flags with different values.
5169 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5170 if test -n "$ac_prev"; then
5172 i?
86 | x86_64 | ppc | ppc64
)
5173 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5176 ac_cv_c_bigendian
=universal
5182 elif test "x$ac_word" = "x-arch"; then
5187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5188 if test $ac_cv_c_bigendian = unknown
; then
5189 # See if sys/param.h defines the BYTE_ORDER macro.
5190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <sys/types.h>
5193 #include <sys/param.h>
5198 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5199 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5208 if ac_fn_c_try_compile
"$LINENO"; then :
5209 # It does; now see whether it defined to BIG_ENDIAN or not.
5210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <sys/types.h>
5213 #include <sys/param.h>
5218 #if BYTE_ORDER != BIG_ENDIAN
5226 if ac_fn_c_try_compile
"$LINENO"; then :
5227 ac_cv_c_bigendian
=yes
5229 ac_cv_c_bigendian
=no
5231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5235 if test $ac_cv_c_bigendian = unknown
; then
5236 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5244 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5252 if ac_fn_c_try_compile
"$LINENO"; then :
5253 # It does; now see whether it defined to _BIG_ENDIAN or not.
5254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5269 if ac_fn_c_try_compile
"$LINENO"; then :
5270 ac_cv_c_bigendian
=yes
5272 ac_cv_c_bigendian
=no
5274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5278 if test $ac_cv_c_bigendian = unknown
; then
5279 # Compile a test program.
5280 if test "$cross_compiling" = yes; then :
5281 # Try to guess by grepping values from an object file.
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 short int ascii_mm[] =
5285 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5286 short int ascii_ii[] =
5287 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5288 int use_ascii (int i) {
5289 return ascii_mm[i] + ascii_ii[i];
5291 short int ebcdic_ii[] =
5292 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5293 short int ebcdic_mm[] =
5294 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5295 int use_ebcdic (int i) {
5296 return ebcdic_mm[i] + ebcdic_ii[i];
5303 return use_ascii (foo) == use_ebcdic (foo);
5308 if ac_fn_c_try_compile
"$LINENO"; then :
5309 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5310 ac_cv_c_bigendian
=yes
5312 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5313 if test "$ac_cv_c_bigendian" = unknown
; then
5314 ac_cv_c_bigendian
=no
5316 # finding both strings is unlikely to happen, but who knows?
5317 ac_cv_c_bigendian
=unknown
5321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 $ac_includes_default
5330 /* Are we little or big endian? From Harbison&Steele. */
5334 char c[sizeof (long int)];
5337 return u.c[sizeof (long int) - 1] == 1;
5343 if ac_fn_c_try_run
"$LINENO"; then :
5344 ac_cv_c_bigendian
=no
5346 ac_cv_c_bigendian
=yes
5348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5355 $as_echo "$ac_cv_c_bigendian" >&6; }
5356 case $ac_cv_c_bigendian in #(
5358 byte_order
=BIG_ENDIAN
5361 byte_order
=LITTLE_ENDIAN
5365 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5369 as_fn_error $?
"unknown endianness
5370 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5374 cat >>confdefs.h
<<_ACEOF
5375 #define DHCP_BYTE_ORDER $byte_order
5379 # Optional compile-time DEBUGging.
5380 # Check whether --enable-debug was given.
5381 if test "${enable_debug+set}" = set; then :
5382 enableval
=$enable_debug; case "${enableval}" in
5383 yes) enable_debug
=yes
5385 $as_echo "#define DEBUG 1" >>confdefs.h
5387 # Just override CFLAGS totally to remove optimization.
5389 no
) enable_debug
=no
;;
5390 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5397 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5398 # but I don't want to pollute the --help space.
5400 #/* #define DEBUG_TOKENS */
5401 #/* #define DEBUG_PACKET */
5402 #/* #define DEBUG_EXPRESSIONS */
5403 #/* #define DEBUG_FIND_LEASE */
5404 #/* #define DEBUG_EXPRESSION_PARSE */
5405 #/* #define DEBUG_CLASS_MATCHING */
5406 #/* #define DEBUG_MEMORY_LEAKAGE */
5407 #/* #define DEBUG_MALLOC_POOL */
5408 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5409 #/* #define DEBUG_RC_HISTORY */
5410 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5411 #/* #define RC_HISTORY_MAX 10240 */
5412 #/* #define POINTER_DEBUG */
5413 #/* #define DEBUG_FAILOVER_MESSAGES */
5414 #/* #define DEBUG_FAILOVER_TIMING */
5415 #/* #define DEBUG_DUMP_ALL_LEASES */
5417 # Failover optional compile-time feature.
5418 # Check whether --enable-failover was given.
5419 if test "${enable_failover+set}" = set; then :
5420 enableval
=$enable_failover;
5423 # Failover is on by default, so define if it is not explicitly disabled.
5424 if test "$enable_failover" != "no"; then
5425 enable_failover
="yes"
5427 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5431 # execute() support.
5432 # Check whether --enable-execute was given.
5433 if test "${enable_execute+set}" = set; then :
5434 enableval
=$enable_execute;
5437 # execute() is on by default, so define if it is not explicitly disabled.
5438 if test "$enable_execute" != "no" ; then
5439 enable_execute
="yes"
5441 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5445 # Server tracing support.
5446 # Check whether --enable-tracing was given.
5447 if test "${enable_tracing+set}" = set; then :
5448 enableval
=$enable_tracing;
5451 # tracing is on by default, so define if it is not explicitly disabled.
5452 if test "$enable_tracing" != "no" ; then
5454 $as_echo "#define TRACING 1" >>confdefs.h
5458 # Delayed-ack feature support.
5459 # Check whether --enable-delayed_ack was given.
5460 if test "${enable_delayed_ack+set}" = set; then :
5461 enableval
=$enable_delayed_ack;
5464 if test "$enable_delayed_ack" != "no"; then
5465 enable_delayed_ack
="yes"
5467 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5471 # DHCPv6 optional compile-time feature.
5472 # Check whether --enable-dhcpv6 was given.
5473 if test "${enable_dhcpv6+set}" = set; then :
5474 enableval
=$enable_dhcpv6;
5477 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5478 if test "$enable_dhcpv6" != "no"; then
5481 $as_echo "#define DHCPv6 1" >>confdefs.h
5485 # DHCPv4o6 optional compile-time feature.
5486 # Check whether --enable-dhcpv4o6 was given.
5487 if test "${enable_dhcpv4o6+set}" = set; then :
5488 enableval
=$enable_dhcpv4o6;
5491 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5492 if test "$enable_dhcpv4o6" = "yes"; then
5493 # DHCPv4o6 requires DHCPv6
5494 if test "$enable_dhcpv6" = "no"; then
5495 as_fn_error $?
"dhcpv4o6 requires dhcpv6" "$LINENO" 5
5498 $as_echo "#define DHCP4o6 1" >>confdefs.h
5501 # so we can report below
5502 enable_dhcpv4o6
="no"
5505 # Relay port (draft-ietf-dhc-relay-port-10.txt) optional compile-time feature.
5506 # Check whether --enable-relay-port was given.
5507 if test "${enable_relay_port+set}" = set; then :
5508 enableval
=$enable_relay_port;
5511 # Relay port is off by default (for now)
5512 if test "$enable_relay_port" = "yes"; then
5514 $as_echo "#define RELAY_PORT 1" >>confdefs.h
5517 # so we can report below
5518 enable_relay_port
="no"
5521 # PARANOIA is off by default (until we can test it with all features)
5522 # Check whether --enable-paranoia was given.
5523 if test "${enable_paranoia+set}" = set; then :
5524 enableval
=$enable_paranoia;
5527 # Check whether --enable-early_chroot was given.
5528 if test "${enable_early_chroot+set}" = set; then :
5529 enableval
=$enable_early_chroot;
5532 # If someone enables early chroot, but does not enable paranoia, do so for
5534 if test "$enable_paranoia" != "yes" && \
5535 test "$enable_early_chroot" = "yes" ; then
5536 enable_paranoia
="yes"
5539 if test "$enable_paranoia" = "yes" ; then
5541 $as_echo "#define PARANOIA 1" >>confdefs.h
5544 if test "$enable_early_chroot" = "yes" ; then
5546 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5550 # Check whether --enable-ipv4_pktinfo was given.
5551 if test "${enable_ipv4_pktinfo+set}" = set; then :
5552 enableval
=$enable_ipv4_pktinfo;
5556 if test "$enable_ipv4_pktinfo" = "yes"; then
5558 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5562 # Check whether --enable-use_sockets was given.
5563 if test "${enable_use_sockets+set}" = set; then :
5564 enableval
=$enable_use_sockets;
5568 if test "$enable_use_sockets" = "yes"; then
5570 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5574 # Include the PID in the log messages. This is useful when there may
5575 # be multiple instances of a program.
5576 # This is off by default
5577 # Check whether --enable-log_pid was given.
5578 if test "${enable_log_pid+set}" = set; then :
5579 enableval
=$enable_log_pid;
5582 if test "$enable_log_pid" = "yes" ; then
5584 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5588 # Allow for binary search when inserting v4 leases into queues
5589 # Check whether --enable-binary_leases was given.
5590 if test "${enable_binary_leases+set}" = set; then :
5591 enableval
=$enable_binary_leases;
5594 # binary_leases is off by default.
5595 if test "$enable_binary_leases" = "yes"; then
5597 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5600 enable_binary_leases
="no"
5605 # Bind Makefile needs to know ATF is not included.
5615 DISTCHECK_ATF_CONFIGURE_FLAG
=
5618 # Check whether --with-atf was given.
5619 if test "${with_atf+set}" = set; then :
5620 withval
=$with_atf; atf_path
="$withval"
5623 if test "$atf_path" != "no" ; then
5624 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=$atf_path"
5625 # Config path for pkg-config
5627 if test "$atf_path" != "yes" ; then
5628 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5629 atf_pcp
=$atf_path/lib
/pkgconfig
5630 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5631 atf_pcp
=$atf_path/lib64
/pkgconfig
5634 # Not specified, try some common paths
5635 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5638 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5639 atf_pcp
=$d/lib
/pkgconfig
5641 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5642 atf_pcp
=$d/lib64
/pkgconfig
5648 if test "$atf_pcp" = "" ; then
5649 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5651 # Extract the first word of "pkg-config", so it can be a program name with args.
5652 set dummy pkg-config
; ac_word
=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_pkgcfg_found+:} false
; then :
5656 $as_echo_n "(cached) " >&6
5658 if test -n "$pkgcfg_found"; then
5659 ac_cv_prog_pkgcfg_found
="$pkgcfg_found" # Let the user override the test.
5661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir
=.
5666 for ac_exec_ext
in '' $ac_executable_extensions; do
5667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_pkgcfg_found
="pkg-config"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 pkgcfg_found
=$ac_cv_prog_pkgcfg_found
5679 if test -n "$pkgcfg_found"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5681 $as_echo "$pkgcfg_found" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5688 if test "$pkgcfg_found" = ""; then
5689 as_fn_error $?
"Could not locate ATF, pkg-config not installed" "$LINENO" 5
5691 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5692 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5693 if test -f $atf_pcp/atf-sh.pc
; then
5694 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5696 # older versions don't have atf-sh, try usual place
5697 ATF_BIN
=$atf_path/bin
5709 if test "$atf_pcp" != ""; then
5717 if test -z "$HAVE_ATF_TRUE"; then :
5719 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5725 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5726 ### need to look there and potentially overwrite by default (but not if
5727 ### the user configures an alternate value). LOCALSTATEDIR is totally
5728 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5729 ### they would be insane for suggesting it. We need to look in /var/for
5730 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5733 if test "x$prefix" = xNONE
; then
5734 $as_echo_n "checking for prefix by " >&6
5735 # Extract the first word of "dhcpd", so it can be a program name with args.
5736 set dummy dhcpd
; ac_word
=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5740 $as_echo_n "(cached) " >&6
5742 case $ac_prefix_program in
5744 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir
=.
5752 for ac_exec_ext
in '' $ac_executable_extensions; do
5753 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5766 if test -n "$ac_prefix_program"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5768 $as_echo "$ac_prefix_program" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5775 if test -n "$ac_prefix_program"; then
5776 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5777 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5778 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5779 X"$ac_prefix_program" : 'X\(//\)$' \| \
5780 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5781 $as_echo X"$ac_prefix_program" |
5782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5799 prefix
=`$as_dirname -- "$prefix" ||
5800 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5801 X"$prefix" : 'X\(//\)[^/]' \| \
5802 X"$prefix" : 'X\(//\)$' \| \
5803 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5804 $as_echo X"$prefix" |
5805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5826 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5827 # /usr/local/var/no/one/has/this/please/stop/trying?
5828 case "$localstatedir" in
5834 # Default server configuration file.
5836 # Check whether --with-srv-conf-file was given.
5837 if test "${with_srv_conf_file+set}" = set; then :
5838 withval
=$with_srv_conf_file;
5839 cat >>confdefs.h
<<_ACEOF
5840 #define _PATH_DHCPD_CONF "$withval"
5846 # Allow specification of alternate state files
5848 # Check whether --with-srv-lease-file was given.
5849 if test "${with_srv_lease_file+set}" = set; then :
5850 withval
=$with_srv_lease_file;
5851 cat >>confdefs.h
<<_ACEOF
5852 #define _PATH_DHCPD_DB "$withval"
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5859 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5860 if [ "x$with_srv_lease_file" = "x" ] ; then
5861 if [ -d "${localstatedir}/db" ] ; then
5862 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5863 elif [ -d "${localstatedir}/state" ] ; then
5864 if [ -d "${localstatedir}/state/dhcp" ] ; then
5865 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5867 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5869 elif [ -d "${localstatedir}/lib" ] ; then
5870 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5871 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5873 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5875 elif [ -d "${localstatedir}/etc" ] ; then
5876 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5878 with_srv_lease_file
="/etc/dhcpd.leases"
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5882 $as_echo "$with_srv_lease_file" >&6; }
5885 # Check whether --with-srv6-lease-file was given.
5886 if test "${with_srv6_lease_file+set}" = set; then :
5887 withval
=$with_srv6_lease_file;
5888 cat >>confdefs.h
<<_ACEOF
5889 #define _PATH_DHCPD6_DB "$withval"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5896 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5897 if [ "x$with_srv6_lease_file" = "x" ] ; then
5898 if [ -d "${localstatedir}/db" ] ; then
5899 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5900 elif [ -d "${localstatedir}/state" ] ; then
5901 if [ -d "${localstatedir}/state/dhcp" ] ; then
5902 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5904 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5906 elif [ -d "${localstatedir}/lib" ] ; then
5907 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5908 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5910 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5912 elif [ -d "${localstatedir}/etc" ] ; then
5913 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5915 with_srv6_lease_file
="/etc/dhcpd6.leases"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5919 $as_echo "$with_srv6_lease_file" >&6; }
5922 # Check whether --with-cli-lease-file was given.
5923 if test "${with_cli_lease_file+set}" = set; then :
5924 withval
=$with_cli_lease_file;
5925 cat >>confdefs.h
<<_ACEOF
5926 #define _PATH_DHCLIENT_DB "$withval"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5933 $as_echo_n "checking for dhclient.leases location... " >&6; }
5934 if [ "x$with_cli_lease_file" = "x" ] ; then
5935 if [ -d "${localstatedir}/db" ] ; then
5936 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5937 elif [ -d "${localstatedir}/state" ] ; then
5938 if [ -d "${localstatedir}/state/dhcp" ] ; then
5939 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5941 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5943 elif [ -d "${localstatedir}/lib" ] ; then
5944 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5945 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5947 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5949 elif [ -d "${localstatedir}/etc" ] ; then
5950 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5952 with_cli_lease_file
="/etc/dhclient.leases"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5956 $as_echo "$with_cli_lease_file" >&6; }
5959 # Check whether --with-cli6-lease-file was given.
5960 if test "${with_cli6_lease_file+set}" = set; then :
5961 withval
=$with_cli6_lease_file;
5962 cat >>confdefs.h
<<_ACEOF
5963 #define _PATH_DHCLIENT6_DB "$withval"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5970 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5971 if [ "x$with_cli6_lease_file" = "x" ] ; then
5972 if [ -d "${localstatedir}/db" ] ; then
5973 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5974 elif [ -d "${localstatedir}/state" ] ; then
5975 if [ -d "${localstatedir}/state/dhcp" ] ; then
5976 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5978 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5980 elif [ -d "${localstatedir}/lib" ] ; then
5981 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5982 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5984 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5986 elif [ -d "${localstatedir}/etc" ] ; then
5987 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5989 with_cli6_lease_file
="/etc/dhclient6.leases"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5993 $as_echo "$with_cli6_lease_file" >&6; }
5996 # Check whether --with-srv-pid-file was given.
5997 if test "${with_srv_pid_file+set}" = set; then :
5998 withval
=$with_srv_pid_file;
5999 cat >>confdefs.h
<<_ACEOF
6000 #define _PATH_DHCPD_PID "$withval"
6006 # Check whether --with-srv6-pid-file was given.
6007 if test "${with_srv6_pid_file+set}" = set; then :
6008 withval
=$with_srv6_pid_file;
6009 cat >>confdefs.h
<<_ACEOF
6010 #define _PATH_DHCPD6_PID "$withval"
6016 # Check whether --with-cli-pid-file was given.
6017 if test "${with_cli_pid_file+set}" = set; then :
6018 withval
=$with_cli_pid_file;
6019 cat >>confdefs.h
<<_ACEOF
6020 #define _PATH_DHCLIENT_PID "$withval"
6026 # Check whether --with-cli6-pid-file was given.
6027 if test "${with_cli6_pid_file+set}" = set; then :
6028 withval
=$with_cli6_pid_file;
6029 cat >>confdefs.h
<<_ACEOF
6030 #define _PATH_DHCLIENT6_PID "$withval"
6036 # Check whether --with-relay-pid-file was given.
6037 if test "${with_relay_pid_file+set}" = set; then :
6038 withval
=$with_relay_pid_file;
6039 cat >>confdefs.h
<<_ACEOF
6040 #define _PATH_DHCRELAY_PID "$withval"
6046 # Check whether --with-relay6-pid-file was given.
6047 if test "${with_relay6_pid_file+set}" = set; then :
6048 withval
=$with_relay6_pid_file;
6049 cat >>confdefs.h
<<_ACEOF
6050 #define _PATH_DHCRELAY6_PID "$withval"
6056 # Check basic types.
6057 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6058 case $ac_cv_c_int8_t in #(
6062 cat >>confdefs.h
<<_ACEOF
6063 #define int8_t $ac_cv_c_int8_t
6068 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6069 case $ac_cv_c_int16_t in #(
6073 cat >>confdefs.h
<<_ACEOF
6074 #define int16_t $ac_cv_c_int16_t
6079 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6080 case $ac_cv_c_int32_t in #(
6084 cat >>confdefs.h
<<_ACEOF
6085 #define int32_t $ac_cv_c_int32_t
6090 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6091 case $ac_cv_c_int64_t in #(
6095 cat >>confdefs.h
<<_ACEOF
6096 #define int64_t $ac_cv_c_int64_t
6102 # Some systems need the u_intX_t types defined across.
6103 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6104 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6108 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6109 case $ac_cv_c_uint8_t in #(
6113 $as_echo "#define _UINT8_T 1" >>confdefs.h
6116 cat >>confdefs.h
<<_ACEOF
6117 #define uint8_t $ac_cv_c_uint8_t
6123 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6128 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6129 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6133 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6134 case $ac_cv_c_uint16_t in #(
6139 cat >>confdefs.h
<<_ACEOF
6140 #define uint16_t $ac_cv_c_uint16_t
6146 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6151 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6152 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6156 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6157 case $ac_cv_c_uint32_t in #(
6161 $as_echo "#define _UINT32_T 1" >>confdefs.h
6164 cat >>confdefs.h
<<_ACEOF
6165 #define uint32_t $ac_cv_c_uint32_t
6171 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6176 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6177 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6181 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6182 case $ac_cv_c_uint64_t in #(
6186 $as_echo "#define _UINT64_T 1" >>confdefs.h
6189 cat >>confdefs.h
<<_ACEOF
6190 #define uint64_t $ac_cv_c_uint64_t
6196 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6202 # see if ifaddrs.h is available
6203 for ac_header
in ifaddrs.h
6205 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6206 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6207 cat >>confdefs.h
<<_ACEOF
6208 #define HAVE_IFADDRS_H 1
6216 # figure out what IPv4 interface code to use
6217 for ac_header
in linux
/types.h
6219 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6220 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6221 cat >>confdefs.h
<<_ACEOF
6222 #define HAVE_LINUX_TYPES_H 1
6228 # needed for linux/filter.h on old systems
6230 relay_port_supported
="no"
6231 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6232 #ifdef HAVE_LINUX_TYPES_H
6233 #include <linux/types.h>
6237 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6242 if test -n "$DO_LPF"
6245 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6247 relay_port_supported
="yes"
6249 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6250 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6255 if test -n "$DO_DLPI"
6258 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6261 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6262 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6267 if test -n "$DO_BPF"
6270 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6272 relay_port_supported
="yes"
6277 if test "$enable_relay_port" = "yes"; then
6278 if test "$relay_port_supported" != "yes"; then
6279 as_fn_error $?
"--enable-relay-port requires BPF or LPF" "$LINENO" 5
6283 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6284 # use the same structures. We like to use 'struct lifconf' and 'struct
6285 # lifreq', but we'll use these other structures if they're present. HPUX
6286 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6290 $as_echo_n "checking for struct lifnum... " >&6; }
6291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #include <sys/types.h>
6294 #include <sys/socket.h>
6306 if ac_fn_c_try_compile
"$LINENO"; then :
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6308 $as_echo "yes" >&6; }
6310 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6319 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322 #include <sys/types.h>
6323 #include <net/if6.h>
6328 struct if_laddrconf a;
6334 if ac_fn_c_try_compile
"$LINENO"; then :
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6338 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6347 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 #include <sys/types.h>
6351 #include <net/if6.h>
6356 struct if_laddrreq a;
6362 if ac_fn_c_try_link
"$LINENO"; then :
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6364 $as_echo "yes" >&6; }
6366 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6372 rm -f core conftest.err conftest.
$ac_objext \
6373 conftest
$ac_exeext conftest.
$ac_ext
6376 # check for GCC noreturn attribute
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6379 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6386 void foo() __attribute__((noreturn));
6391 if ac_fn_c_try_compile
"$LINENO"; then :
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6393 $as_echo "yes" >&6; }
6395 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6401 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6406 # Look for optional headers.
6407 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6411 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6412 cat >>confdefs.h
<<_ACEOF
6413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6421 # Solaris needs some libraries for functions
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6423 $as_echo_n "checking for library containing socket... " >&6; }
6424 if ${ac_cv_search_socket+:} false
; then :
6425 $as_echo_n "(cached) " >&6
6427 ac_func_search_save_LIBS
=$LIBS
6428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6431 /* Override any GCC internal prototype to avoid an error.
6432 Use char because int might match the return type of a GCC
6433 builtin and then its argument prototype would still apply. */
6446 for ac_lib
in '' socket
; do
6447 if test -z "$ac_lib"; then
6448 ac_res
="none required"
6451 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6453 if ac_fn_c_try_link
"$LINENO"; then :
6454 ac_cv_search_socket
=$ac_res
6456 rm -f core conftest.err conftest.
$ac_objext \
6458 if ${ac_cv_search_socket+:} false
; then :
6462 if ${ac_cv_search_socket+:} false
; then :
6465 ac_cv_search_socket
=no
6468 LIBS
=$ac_func_search_save_LIBS
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6471 $as_echo "$ac_cv_search_socket" >&6; }
6472 ac_res
=$ac_cv_search_socket
6473 if test "$ac_res" != no
; then :
6474 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6479 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6480 if ${ac_cv_search_inet_ntoa+:} false
; then :
6481 $as_echo_n "(cached) " >&6
6483 ac_func_search_save_LIBS
=$LIBS
6484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6487 /* Override any GCC internal prototype to avoid an error.
6488 Use char because int might match the return type of a GCC
6489 builtin and then its argument prototype would still apply. */
6497 return inet_ntoa ();
6502 for ac_lib
in '' nsl
; do
6503 if test -z "$ac_lib"; then
6504 ac_res
="none required"
6507 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6509 if ac_fn_c_try_link
"$LINENO"; then :
6510 ac_cv_search_inet_ntoa
=$ac_res
6512 rm -f core conftest.err conftest.
$ac_objext \
6514 if ${ac_cv_search_inet_ntoa+:} false
; then :
6518 if ${ac_cv_search_inet_ntoa+:} false
; then :
6521 ac_cv_search_inet_ntoa
=no
6524 LIBS
=$ac_func_search_save_LIBS
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6527 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6528 ac_res
=$ac_cv_search_inet_ntoa
6529 if test "$ac_res" != no
; then :
6530 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6536 $as_echo_n "checking for library containing inet_aton... " >&6; }
6537 if ${ac_cv_search_inet_aton+:} false
; then :
6538 $as_echo_n "(cached) " >&6
6540 ac_func_search_save_LIBS
=$LIBS
6541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6544 /* Override any GCC internal prototype to avoid an error.
6545 Use char because int might match the return type of a GCC
6546 builtin and then its argument prototype would still apply. */
6554 return inet_aton ();
6559 for ac_lib
in '' socket nsl
; do
6560 if test -z "$ac_lib"; then
6561 ac_res
="none required"
6564 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6566 if ac_fn_c_try_link
"$LINENO"; then :
6567 ac_cv_search_inet_aton
=$ac_res
6569 rm -f core conftest.err conftest.
$ac_objext \
6571 if ${ac_cv_search_inet_aton+:} false
; then :
6575 if ${ac_cv_search_inet_aton+:} false
; then :
6578 ac_cv_search_inet_aton
=no
6581 LIBS
=$ac_func_search_save_LIBS
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6584 $as_echo "$ac_cv_search_inet_aton" >&6; }
6585 ac_res
=$ac_cv_search_inet_aton
6586 if test "$ac_res" != no
; then :
6587 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6591 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6596 # Check for a standalone regex library.
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6598 $as_echo_n "checking for library containing regcomp... " >&6; }
6599 if ${ac_cv_search_regcomp+:} false
; then :
6600 $as_echo_n "(cached) " >&6
6602 ac_func_search_save_LIBS
=$LIBS
6603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6606 /* Override any GCC internal prototype to avoid an error.
6607 Use char because int might match the return type of a GCC
6608 builtin and then its argument prototype would still apply. */
6621 for ac_lib
in '' regex
; do
6622 if test -z "$ac_lib"; then
6623 ac_res
="none required"
6626 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6628 if ac_fn_c_try_link
"$LINENO"; then :
6629 ac_cv_search_regcomp
=$ac_res
6631 rm -f core conftest.err conftest.
$ac_objext \
6633 if ${ac_cv_search_regcomp+:} false
; then :
6637 if ${ac_cv_search_regcomp+:} false
; then :
6640 ac_cv_search_regcomp
=no
6643 LIBS
=$ac_func_search_save_LIBS
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6646 $as_echo "$ac_cv_search_regcomp" >&6; }
6647 ac_res
=$ac_cv_search_regcomp
6648 if test "$ac_res" != no
; then :
6649 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6654 for ac_func
in strlcat
6656 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6657 if test "x$ac_cv_func_strlcat" = xyes
; then :
6658 cat >>confdefs.h
<<_ACEOF
6659 #define HAVE_STRLCAT 1
6666 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6668 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6669 if ${ac_cv_search_if_nametoindex+:} false
; then :
6670 $as_echo_n "(cached) " >&6
6672 ac_func_search_save_LIBS
=$LIBS
6673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6676 /* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
6682 char if_nametoindex ();
6686 return if_nametoindex ();
6691 for ac_lib
in '' ipv6
; do
6692 if test -z "$ac_lib"; then
6693 ac_res
="none required"
6696 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6698 if ac_fn_c_try_link
"$LINENO"; then :
6699 ac_cv_search_if_nametoindex
=$ac_res
6701 rm -f core conftest.err conftest.
$ac_objext \
6703 if ${ac_cv_search_if_nametoindex+:} false
; then :
6707 if ${ac_cv_search_if_nametoindex+:} false
; then :
6710 ac_cv_search_if_nametoindex
=no
6713 LIBS
=$ac_func_search_save_LIBS
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6716 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6717 ac_res
=$ac_cv_search_if_nametoindex
6718 if test "$ac_res" != no
; then :
6719 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6724 # For some Solaris nanosleep is found by BIND in librt
6726 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6727 if test "x$ac_cv_func_nanosleep" = xyes
; then :
6728 have_nanosleep
="yes"
6731 if test "$have_nanosleep" = "no"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6733 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6734 if ${ac_cv_lib_rt_nanosleep+:} false
; then :
6735 $as_echo_n "(cached) " >&6
6737 ac_check_lib_save_LIBS
=$LIBS
6739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6742 /* Override any GCC internal prototype to avoid an error.
6743 Use char because int might match the return type of a GCC
6744 builtin and then its argument prototype would still apply. */
6752 return nanosleep ();
6757 if ac_fn_c_try_link
"$LINENO"; then :
6758 ac_cv_lib_rt_nanosleep
=yes
6760 ac_cv_lib_rt_nanosleep
=no
6762 rm -f core conftest.err conftest.
$ac_objext \
6763 conftest
$ac_exeext conftest.
$ac_ext
6764 LIBS
=$ac_check_lib_save_LIBS
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6767 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6768 if test "x$ac_cv_lib_rt_nanosleep" = xyes
; then :
6773 if test "$have_nanosleep" = "rt"; then
6777 # check for /dev/random (declares HAVE_DEV_RANDOM)
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6779 $as_echo_n "checking for random device... " >&6; }
6781 # Check whether --with-randomdev was given.
6782 if test "${with_randomdev+set}" = set; then :
6783 withval
=$with_randomdev; use_randomdev
="$withval"
6785 use_randomdev
="unspec"
6788 if test "$use_randomdev" = "unspec"; then
6789 if test "$cross_compiling" = "yes"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6791 $as_echo "unspecified" >&6; }
6792 as_fn_error $?
" need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6794 use_randomdev
="/dev/random"
6795 elif test "$use_randomdev" = "yes"; then
6796 use_randomdev
="/dev/random"
6798 if test "$use_randomdev" = "no"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6800 $as_echo "disabled" >&6; }
6801 BINDCONFIG
="$BINDCONFIG --with-randomdev=no"
6803 if test "$cross_compiling" = "yes"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6805 $as_echo "$use_randomdev (unchecked)" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6808 $as_echo "$use_randomdev" >&6; }
6809 as_ac_File
=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6811 $as_echo_n "checking for $use_randomdev... " >&6; }
6812 if eval \
${$as_ac_File+:} false
; then :
6813 $as_echo_n "(cached) " >&6
6815 test "$cross_compiling" = yes &&
6816 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6817 if test -r "$use_randomdev"; then
6818 eval "$as_ac_File=yes"
6820 eval "$as_ac_File=no"
6823 eval ac_res
=\$
$as_ac_File
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6825 $as_echo "$ac_res" >&6; }
6826 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
6828 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6831 as_fn_error $?
"cannot find $use_randomdev" "$LINENO" 5
6835 BINDCONFIG
="$BINDCONFIG --with-randomdev=$use_randomdev"
6838 BINDIOMUX
="--disable-kqueue --disable-epoll --disable-devpoll"
6839 # check kqueue/epoll/devpoll alternative to select
6840 # Check whether --enable-kqueue was given.
6841 if test "${enable_kqueue+set}" = set; then :
6842 enableval
=$enable_kqueue; want_kqueue
="$enableval"
6847 if test "$want_kqueue" = "yes"; then
6848 BINDIOMUX
="--enable-kqueue"
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6850 $as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6852 # Check whether --enable-epoll was given.
6853 if test "${enable_epoll+set}" = set; then :
6854 enableval
=$enable_epoll; want_epoll
="$enableval"
6859 if test "$want_epoll" = "yes"; then
6860 BINDIOMUX
="--enable-epoll"
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6862 $as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6864 # Check whether --enable-devpoll was given.
6865 if test "${enable_devpoll+set}" = set; then :
6866 enableval
=$enable_devpoll; want_devpoll
="$enableval"
6871 if test "$want_devpoll" = "yes"; then
6872 BINDIOMUX
="--enable-devpoll"
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6874 $as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6878 # general extra bind configure arguments
6880 # Check whether --with-bind-extra-config was given.
6881 if test "${with_bind_extra_config+set}" = set; then :
6882 withval
=$with_bind_extra_config; use_xbindconfig
="$withval"
6887 case "$use_xbindconfig" in
6891 BINDCONFIG
="$BINDCONFIG $use_xbindconfig"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6893 $as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6897 # see if there is a "sa_len" field in our interface information structure
6898 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6900 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6902 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6907 # figure out pointer size
6908 SAVE_CFLAGS
="$CFLAGS"
6909 CFLAGS
="$CFLAGS -I$srcdir"
6910 # The cast to long int works around a bug in the HP C Compiler
6911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6913 # This bug is HP SR number 8606223364.
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6915 $as_echo_n "checking size of struct iaddr *... " >&6; }
6916 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6917 $as_echo_n "(cached) " >&6
6919 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6920 #include \"includes/inet.h\"
6926 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6929 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6930 See \`config.log' for more details" "$LINENO" 5; }
6932 ac_cv_sizeof_struct_iaddr_p
=0
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6938 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6942 cat >>confdefs.h
<<_ACEOF
6943 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6947 CFLAGS
="$SAVE_CFLAGS"
6949 # Solaris does not have the msg_control or msg_controlen members
6950 # in the msghdr structure unless you define:
6952 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6954 # See the "standards" man page for details.
6956 # We check for the msg_control member, and if it is not found, we check
6957 # again with the appropriate defines added to the CFLAGS. (In order to
6958 # do this we have to remove the check from the cache, which is what the
6960 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6961 #include <sys/types.h>
6962 #include <sys/socket.h>
6965 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6968 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6969 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6970 unset ac_cv_member_struct_msghdr_msg_control
6971 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6972 #include <sys/types.h>
6973 #include <sys/socket.h>
6976 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6979 as_fn_error $?
"Missing msg_control member in
6980 msg_control structure." "$LINENO" 5
6987 ac_fn_c_check_member
"$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "#include <linux/if_packet.h>
6989 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6991 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6997 # bind/Makefile.in is not from automake so we need 2 variables for bind dir
7005 DISTCHECK_LIBBIND_CONFIGURE_FLAG
=
7007 # Check whether --with-libbind was given.
7008 if test "${with_libbind+set}" = set; then :
7009 withval
=$with_libbind; use_libbind
="$withval"
7014 case "$use_libbind" in
7016 as_fn_error $?
"PATH is required in --with-libbind=PATH" "$LINENO" 5
7019 BINDSUBDIR
="\${top_srcdir}/bind"
7020 my_abs_srcdir
=`cd $srcdir && pwd`
7021 BINDDIR
="${my_abs_srcdir}/bind"
7022 if test ! -d "$srcdir/bind"; then
7023 as_fn_error $?
"Where to find or build bind includes and libraries must be specified" "$LINENO" 5
7025 if test -d "$srcdir/bind/bind9"; then
7026 BINDSRCDIR
="${my_abs_srcdir}/bind/bind9"
7028 if test ! -f "$srcdir/bind/version.tmp"; then
7029 as_fn_error $?
"Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
7031 .
"$srcdir/bind/version.tmp"
7032 bindversion
=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
7033 BINDSRCDIR
="${my_abs_srcdir}/bind/bind-$bindversion"
7035 ac_config_files
="$ac_config_files $srcdir/bind/Makefile"
7038 BINDLIBIRSDIR
="$BINDSRCDIR/lib/irs"
7039 BINDLIBDNSDIR
="$BINDSRCDIR/lib/dns"
7040 BINDLIBISCCFGDIR
="$BINDSRCDIR/lib/isccfg"
7041 BINDLIBISCDIR
="$BINDSRCDIR/lib/isc"
7044 if test ! -d "$use_libbind"; then
7045 as_fn_error $?
"Cannot find bind directory at $use_libbind" "$LINENO" 5
7047 if test ! -d "$use_libbind/include" -o \
7048 ! -f "$use_libbind/include/isc/buffer.h"
7050 as_fn_error $?
"Cannot find bind includes at $use_libbind/include" "$LINENO" 5
7052 if test ! -d "$use_libbind/lib" -o \
7053 \
( ! -f "$use_libbind/lib/libisc.a" -a \
7054 ! -f "$use_libbind/lib/libisc.la" \
)
7056 as_fn_error $?
"Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
7058 BINDDIR
="$use_libbind"
7059 BINDLIBIRSDIR
="$BINDDIR/lib"
7060 BINDLIBDNSDIR
="$BINDDIR/lib"
7061 BINDLIBISCCFGDIR
="$BINDDIR/lib"
7062 BINDLIBISCDIR
="$BINDDIR/lib"
7063 DISTCHECK_LIBBIND_CONFIGURE_FLAG
="--with-libbind=$use_libbind"
7074 if test "$use_libbind" = "no"; then
7076 HAVE_BINDDIR_FALSE
='#'
7078 HAVE_BINDDIR_TRUE
='#'
7084 # GNU libtool support
7088 # Just set the maximum command line length for sunos
7089 # as it otherwise takes a exceptionally long time to
7090 # work it out. Required for libtool.
7092 lt_cv_sys_max_cmd_len
=4096
7099 DISTCHECK_LIBTOOL_CONFIGURE_FLAG
=
7100 # Check whether --enable-libtool was given.
7101 if test "${enable_libtool+set}" = set; then :
7102 enableval
=$enable_libtool; want_libtool
="$enableval"
7106 if test "$use_libbind" != "no"; then
7107 if test "$want_libtool" = "yes" -a \
7108 ! -f "$use_libbind/lib/libisc.la"
7110 as_fn_error $?
"Cannot find dynamic libraries at $use_libbind/lib" "$LINENO" 5
7112 if test "$want_libtool" = "no" -a \
7113 ! -f "$use_libbind/lib/libisc.a"
7115 as_fn_error $?
"Cannot find static libraries at $use_libbind/lib" "$LINENO" 5
7120 if test "$want_libtool" = "yes"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
7122 $as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
7123 # expand $ac_configure_args
7124 eval "set my_configure_args $ac_configure_args"
7126 cd $srcdir; exec .
/config
+lt
"$@"
7127 as_fn_error $?
"Recovering failed" "$LINENO" 5
7138 # quoting in Makefile.am.in
7142 # install bind includes and libraries
7144 want_install_bind
="no"
7145 if test "$want_libtool" = "yes"; then
7146 want_install_bind
="yes"
7148 if test "$use_libbind" != "no"; then
7149 want_install_bind
="no"
7151 # Check whether --enable-bind_install was given.
7152 if test "${enable_bind_install+set}" = set; then :
7153 enableval
=$enable_bind_install; want_install_bind
="$enableval"
7156 if test "$want_install_bind" = "yes"; then
7157 if test "$use_libbind" != "no"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&5
7159 $as_echo "$as_me: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&2;}
7161 elif test "$want_libtool" = "yes" -a "$use_libbind" = "no"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: embedded dynamic bind libraries must be installed" >&5
7163 $as_echo "$as_me: WARNING: embedded dynamic bind libraries must be installed" >&2;}
7165 if test "$want_install_bind" = "yes"; then
7167 INSTALL_BIND_FALSE
='#'
7169 INSTALL_BIND_TRUE
='#'
7176 # Check whether --with-ldap was given.
7177 if test "${with_ldap+set}" = set; then :
7178 withval
=$with_ldap; ldap
=$withval
7184 # OpenLDAP with SSL support.
7186 # Check whether --with-ldapcrypto was given.
7187 if test "${with_ldapcrypto+set}" = set; then :
7188 withval
=$with_ldapcrypto; ldapcrypto
=$withval
7194 # Gssapi to allow LDAP to authenticate with a keytab
7196 # Check whether --with-ldap-gssapi was given.
7197 if test "${with_ldap_gssapi+set}" = set; then :
7198 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
7205 # LDAP CASA auth support.
7207 # Check whether --with-ldapcasa was given.
7208 if test "${with_ldapcasa+set}" = set; then :
7209 withval
=$with_ldapcasa; ldapcasa
=$withval
7215 # OpenLDAP support is disabled by default, if enabled then SSL support is an
7216 # extra optional that is also disabled by default. Enabling LDAP SSL support
7217 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7218 # but doesn't include SSL. The two are not dependant.
7219 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7223 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
7224 if ${ac_cv_search_ldap_initialize+:} false
; then :
7225 $as_echo_n "(cached) " >&6
7227 ac_func_search_save_LIBS
=$LIBS
7228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7231 /* Override any GCC internal prototype to avoid an error.
7232 Use char because int might match the return type of a GCC
7233 builtin and then its argument prototype would still apply. */
7237 char ldap_initialize ();
7241 return ldap_initialize ();
7246 for ac_lib
in '' ldap
; do
7247 if test -z "$ac_lib"; then
7248 ac_res
="none required"
7251 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7253 if ac_fn_c_try_link
"$LINENO"; then :
7254 ac_cv_search_ldap_initialize
=$ac_res
7256 rm -f core conftest.err conftest.
$ac_objext \
7258 if ${ac_cv_search_ldap_initialize+:} false
; then :
7262 if ${ac_cv_search_ldap_initialize+:} false
; then :
7265 ac_cv_search_ldap_initialize
=no
7268 LIBS
=$ac_func_search_save_LIBS
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7271 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
7272 ac_res
=$ac_cv_search_ldap_initialize
7273 if test "$ac_res" != no
; then :
7274 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7279 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7280 See \`config.log' for more details" "$LINENO" 5; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7284 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7285 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7286 $as_echo_n "(cached) " >&6
7288 ac_func_search_save_LIBS
=$LIBS
7289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7292 /* Override any GCC internal prototype to avoid an error.
7293 Use char because int might match the return type of a GCC
7294 builtin and then its argument prototype would still apply. */
7298 char ber_pvt_opt_on ();
7302 return ber_pvt_opt_on ();
7307 for ac_lib
in '' lber
; do
7308 if test -z "$ac_lib"; then
7309 ac_res
="none required"
7312 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7314 if ac_fn_c_try_link
"$LINENO"; then :
7315 ac_cv_search_ber_pvt_opt_on
=$ac_res
7317 rm -f core conftest.err conftest.
$ac_objext \
7319 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7323 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7326 ac_cv_search_ber_pvt_opt_on
=no
7329 LIBS
=$ac_func_search_save_LIBS
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7332 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7333 ac_res
=$ac_cv_search_ber_pvt_opt_on
7334 if test "$ac_res" != no
; then :
7335 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7340 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7341 See \`config.log' for more details" "$LINENO" 5; }
7344 if test x
$ldap_gssapi = xyes
; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7346 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7347 if ${ac_cv_search_krb5_init_context+:} false
; then :
7348 $as_echo_n "(cached) " >&6
7350 ac_func_search_save_LIBS
=$LIBS
7351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7354 /* Override any GCC internal prototype to avoid an error.
7355 Use char because int might match the return type of a GCC
7356 builtin and then its argument prototype would still apply. */
7360 char krb5_init_context ();
7364 return krb5_init_context ();
7369 for ac_lib
in '' krb5
; do
7370 if test -z "$ac_lib"; then
7371 ac_res
="none required"
7374 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7376 if ac_fn_c_try_link
"$LINENO"; then :
7377 ac_cv_search_krb5_init_context
=$ac_res
7379 rm -f core conftest.err conftest.
$ac_objext \
7381 if ${ac_cv_search_krb5_init_context+:} false
; then :
7385 if ${ac_cv_search_krb5_init_context+:} false
; then :
7388 ac_cv_search_krb5_init_context
=no
7391 LIBS
=$ac_func_search_save_LIBS
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7394 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7395 ac_res
=$ac_cv_search_krb5_init_context
7396 if test "$ac_res" != no
; then :
7397 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7402 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7403 See \`config.log' for more details" "$LINENO" 5; }
7408 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7414 for ac_header
in ldap.h
7416 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7417 if test "x$ac_cv_header_ldap_h" = xyes
; then :
7418 cat >>confdefs.h
<<_ACEOF
7419 #define HAVE_LDAP_H 1
7426 for ac_func
in inet_pton inet_ntop
7428 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7429 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7430 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7431 cat >>confdefs.h
<<_ACEOF
7432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7440 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
7442 if test x
$ldapcasa = xyes
; then
7443 for ac_header
in micasa_mgmd.h
7445 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7446 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
7447 cat >>confdefs.h
<<_ACEOF
7448 #define HAVE_MICASA_MGMD_H 1
7451 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7456 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
7457 See \`config.log' for more details" "$LINENO" 5; }
7464 if test x
$ldapcrypto = xyes
; then
7465 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
7468 if test x
$ldap_gssapi = xyes
; then
7469 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7472 LDAP_CFLAGS
=$LDAP_CFLAGS
7476 # Append selected warning levels to CFLAGS before substitution (but after
7477 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7478 CFLAGS
="$CFLAGS $STD_CWARNINGS"
7480 # Try to add the bind and dhcp include directories
7481 CFLAGS
="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7485 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542";;
7487 # As of Solaris 11, ethernet dev files are in /dev/net
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7489 $as_echo_n "checking for /dev/net... " >&6; }
7490 if ${ac_cv_file__dev_net+:} false
; then :
7491 $as_echo_n "(cached) " >&6
7493 test "$cross_compiling" = yes &&
7494 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
7495 if test -r "/dev/net"; then
7496 ac_cv_file__dev_net
=yes
7498 ac_cv_file__dev_net
=no
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7502 $as_echo "$ac_cv_file__dev_net" >&6; }
7503 if test "x$ac_cv_file__dev_net" = xyes
; then :
7505 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7514 $as_echo_n "checking for flexible array members... " >&6; }
7515 if ${ac_cv_c_flexmember+:} false
; then :
7516 $as_echo_n "(cached) " >&6
7518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7523 struct s { int n; double d[]; };
7528 struct s *p = malloc (offsetof (struct s, d)
7529 + m * sizeof (double));
7531 return p->d != (double *) NULL;
7536 if ac_fn_c_try_compile
"$LINENO"; then :
7537 ac_cv_c_flexmember
=yes
7539 ac_cv_c_flexmember
=no
7541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7544 $as_echo "$ac_cv_c_flexmember" >&6; }
7545 if test $ac_cv_c_flexmember = yes; then
7547 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7550 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7555 ac_config_files
="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile.am common/Makefile common/tests/Makefile dhcpctl/Makefile.am dhcpctl/Makefile includes/Makefile keama/Makefile omapip/Makefile.am omapip/Makefile relay/Makefile server/Makefile tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7557 cat >confcache
<<\_ACEOF
7558 # This file is a shell script that caches the results of configure
7559 # tests run on this system so they can be shared between configure
7560 # scripts and configure runs, see configure's option --config-cache.
7561 # It is not useful on other systems. If it contains results you don't
7562 # want to keep, you may remove or edit it.
7564 # config.status only pays attention to the cache file if you give it
7565 # the --recheck option to rerun configure.
7567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7573 # The following way of writing the cache mishandles newlines in values,
7574 # but we know of no workaround that is simple, portable, and efficient.
7575 # So, we kill variables containing newlines.
7576 # Ultrix sh set writes to stderr and can't be redirected directly,
7577 # and sets the high bit in the cache file unless we assign to the vars.
7579 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7580 eval ac_val
=\$
$ac_var
7584 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7588 _ | IFS | as_nl
) ;; #(
7589 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7590 *) { eval $ac_var=; unset $ac_var;} ;;
7596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7597 *${as_nl}ac_space
=\
*)
7598 # `set' does not quote correctly, so add quotes: double-quote
7599 # substitution turns \\\\ into \\, and sed turns \\ into \.
7602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7605 # `set' quotes correctly as required by POSIX, so do not add quotes.
7606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7619 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7620 if test -w "$cache_file"; then
7621 if test "x$cache_file" != "x/dev/null"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7623 $as_echo "$as_me: updating cache $cache_file" >&6;}
7624 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7625 cat confcache
>"$cache_file"
7627 case $cache_file in #(
7629 mv -f confcache
"$cache_file"$$
&&
7630 mv -f "$cache_file"$$
"$cache_file" ;; #(
7632 mv -f confcache
"$cache_file" ;;
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7643 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7644 # Let make expand exec_prefix.
7645 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7647 DEFS
=-DHAVE_CONFIG_H
7652 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7653 # 1. Remove the extension, and $U if already installed.
7654 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7655 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7657 # will be set to the directory where LIBOBJS objects are built.
7658 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7659 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7663 LTLIBOBJS
=$ac_ltlibobjs
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7667 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7668 if test -n "$am_sleep_pid"; then
7669 # Hide warnings about reused PIDs.
7670 wait $am_sleep_pid 2>/dev
/null
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7673 $as_echo "done" >&6; }
7674 if test -n "$EXEEXT"; then
7676 am__EXEEXT_FALSE
='#'
7682 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7683 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7686 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7687 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7690 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7691 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7695 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7696 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7699 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7700 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7703 if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then
7704 as_fn_error $?
"conditional \"HAVE_BINDDIR\" was never defined.
7705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7707 if test -z "${INSTALL_BIND_TRUE}" && test -z "${INSTALL_BIND_FALSE}"; then
7708 as_fn_error $?
"conditional \"INSTALL_BIND\" was never defined.
7709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7712 : "${CONFIG_STATUS=./config.status}"
7714 ac_clean_files_save
=$ac_clean_files
7715 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7717 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7721 # Generated by $as_me.
7722 # Run this file to recreate the current configuration.
7723 # Compiler output produced by configure, useful for debugging
7724 # configure, is in config.log if it exists.
7730 SHELL=\${CONFIG_SHELL-$SHELL}
7733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7734 ## -------------------- ##
7735 ## M4sh Initialization. ##
7736 ## -------------------- ##
7738 # Be more Bourne compatible
7739 DUALCASE
=1; export DUALCASE
# for MKS sh
7740 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7744 # is contrary to our usage. Disable this feature.
7745 alias -g '${1+"$@"}'='"$@"'
7746 setopt NO_GLOB_SUBST
7748 case `(set -o) 2>/dev/null` in #(
7760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7761 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7764 # Prefer a ksh shell builtin over an external printf program on Solaris,
7765 # but without wasting forks for bash or zsh.
7766 if test -z "$BASH_VERSION$ZSH_VERSION" \
7767 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7768 as_echo='print
-r --'
7769 as_echo_n='print
-rn --'
7770 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7771 as_echo='printf %s
\n'
7772 as_echo_n='printf %s
'
7774 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7775 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7776 as_echo_n='/usr
/ucb
/echo -n'
7778 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7779 as_echo_n_body='eval
7783 expr "X$arg" : "X\\(.*\\)$as_nl";
7784 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7786 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7788 export as_echo_n_body
7789 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7792 as_echo='sh
-c $as_echo_body as_echo
'
7795 # The user is always right.
7796 if test "${PATH_SEPARATOR+set}" != set; then
7798 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7799 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7806 # We need space, tab and new line, in precisely that order. Quoting is
7807 # there to prevent editors from complaining about space-tab.
7808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7809 # splitting by setting IFS to empty value.)
7812 # Find who we are. Look in the path if we contain no directory separator.
7815 *[\\/]* ) as_myself=$0 ;;
7816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir=.
7821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7827 # We did not find ourselves, most probably we were run as `sh COMMAND'
7828 # in which case we are not to be found in the path.
7829 if test "x$as_myself" = x
; then
7832 if test ! -f "$as_myself"; then
7833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7837 # Unset variables that we do not need and which cause bugs (e.g. in
7838 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7839 # suppresses any "Segmentation fault" message there. '((' could
7840 # trigger a bug in pdksh 5.2.14.
7841 for as_var
in BASH_ENV ENV MAIL MAILPATH
7842 do eval test x\
${$as_var+set} = xset \
7843 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7856 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7859 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7860 # ----------------------------------------
7861 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7862 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7863 # script with STATUS, using 1 if that was 0.
7866 as_status
=$1; test $as_status -eq 0 && as_status
=1
7868 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7869 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7871 $as_echo "$as_me: error: $2" >&2
7872 as_fn_exit
$as_status
7876 # as_fn_set_status STATUS
7877 # -----------------------
7878 # Set $? to STATUS, without forking.
7882 } # as_fn_set_status
7886 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7896 # Portably unset VAR.
7899 { eval $1=; unset $1;}
7901 as_unset
=as_fn_unset
7902 # as_fn_append VAR VALUE
7903 # ----------------------
7904 # Append the text in VALUE to the end of the definition contained in VAR. Take
7905 # advantage of any shell optimizations that allow amortized linear growth over
7906 # repeated appends, instead of the typical quadratic growth present in naive
7908 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7909 eval 'as_fn_append ()
7920 # as_fn_arith ARG...
7921 # ------------------
7922 # Perform arithmetic evaluation on the ARGs, and store the result in the
7923 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7924 # must be portable across $(()) and expr.
7925 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7926 eval 'as_fn_arith ()
7933 as_val
=`expr "$@" || test $? -eq 1`
7938 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7939 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7945 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7946 as_basename
=basename
7951 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7957 as_me
=`$as_basename -- "$0" ||
7958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7959 X"$0" : 'X\(//\)$' \| \
7960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7962 sed '/^.*\/\([^/][^/]*\)\/*$/{
7976 # Avoid depending upon Character Ranges.
7977 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7978 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7979 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7980 as_cr_digits
='0123456789'
7981 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7983 ECHO_C
= ECHO_N
= ECHO_T
=
7984 case `echo -n x` in #(((((
7986 case `echo 'xy\c'` in
7987 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7989 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7996 rm -f conf$$ conf$$.exe conf$$.
file
7997 if test -d conf$$.dir
; then
7998 rm -f conf$$.dir
/conf$$.
file
8001 mkdir conf$$.dir
2>/dev
/null
8003 if (echo >conf$$.
file) 2>/dev
/null
; then
8004 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8006 # ... but there are two gotchas:
8007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8009 # In both cases, we have to default to `cp -pR'.
8010 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8012 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8020 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8021 rmdir conf$$.dir
2>/dev
/null
8026 # Create "$as_dir" as a directory, including parents if necessary.
8031 -*) as_dir
=.
/$as_dir;;
8033 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8037 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8038 *) as_qdir
=$as_dir;;
8040 as_dirs
="'$as_qdir' $as_dirs"
8041 as_dir
=`$as_dirname -- "$as_dir" ||
8042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8043 X"$as_dir" : 'X\(//\)[^/]' \| \
8044 X"$as_dir" : 'X\(//\)$' \| \
8045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8046 $as_echo X"$as_dir" |
8047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8064 test -d "$as_dir" && break
8066 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8067 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8071 if mkdir
-p .
2>/dev
/null
; then
8072 as_mkdir_p
='mkdir -p "$as_dir"'
8074 test -d .
/-p && rmdir .
/-p
8079 # as_fn_executable_p FILE
8080 # -----------------------
8081 # Test if FILE is an executable regular file.
8082 as_fn_executable_p
()
8084 test -f "$1" && test -x "$1"
8085 } # as_fn_executable_p
8087 as_executable_p
=as_fn_executable_p
8089 # Sed expression to map a string onto a valid CPP name.
8090 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8092 # Sed expression to map a string onto a valid variable name.
8093 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8097 ## ----------------------------------- ##
8098 ## Main body of $CONFIG_STATUS script. ##
8099 ## ----------------------------------- ##
8101 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8104 # Save the log message, to keep $0 and so on meaningful, and to
8105 # report actual input values of CONFIG_FILES etc. instead of their
8106 # values after options handling.
8108 This file was extended by DHCP $as_me 4.4.2b1, which was
8109 generated by GNU Autoconf 2.69. Invocation command line was
8111 CONFIG_FILES = $CONFIG_FILES
8112 CONFIG_HEADERS = $CONFIG_HEADERS
8113 CONFIG_LINKS = $CONFIG_LINKS
8114 CONFIG_COMMANDS = $CONFIG_COMMANDS
8117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8122 case $ac_config_files in *"
8123 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8126 case $ac_config_headers in *"
8127 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8132 # Files that config.status was made for.
8133 config_files="$ac_config_files"
8134 config_headers="$ac_config_headers"
8135 config_commands="$ac_config_commands"
8139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8141 \`$as_me' instantiates files and other configuration actions
8142 from templates according to the current configuration. Unless the files
8143 and actions are specified as TAGs, all are instantiated by default.
8145 Usage: $0 [OPTION]... [TAG]...
8147 -h, --help print this help, then exit
8148 -V, --version print version number and configuration settings, then exit
8149 --config print configuration, then exit
8150 -q, --quiet, --silent
8151 do not print progress messages
8152 -d, --debug don't remove temporary files
8153 --recheck update $as_me by reconfiguring in the same conditions
8154 --file=FILE[:TEMPLATE]
8155 instantiate the configuration file FILE
8156 --header=FILE[:TEMPLATE]
8157 instantiate the configuration header FILE
8159 Configuration files:
8162 Configuration headers:
8165 Configuration commands:
8168 Report bugs to <dhcp-users@isc.org>."
8171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8172 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8174 DHCP config.status 4.4.2b1
8175 configured by $0, generated by GNU Autoconf 2.69,
8176 with options \\"\$ac_cs_config\\"
8178 Copyright (C) 2012 Free Software Foundation, Inc.
8179 This config.status script is free software; the Free Software Foundation
8180 gives unlimited permission to copy, distribute and modify it."
8187 test -n "\$AWK" || AWK=awk
8190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8191 # The default lists apply if the user does not specify any file.
8197 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8198 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8202 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8214 # Handling of the options.
8215 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8217 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8218 $as_echo "$ac_cs_version"; exit ;;
8219 --config |
--confi |
--conf |
--con |
--co |
--c )
8220 $as_echo "$ac_cs_config"; exit ;;
8221 --debug |
--debu |
--deb |
--de |
--d |
-d )
8223 --file |
--fil |
--fi |
--f )
8226 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8227 '') as_fn_error $?
"missing file argument" ;;
8229 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8230 ac_need_defaults
=false
;;
8231 --header |
--heade |
--head |
--hea )
8234 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8236 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8237 ac_need_defaults
=false
;;
8239 # Conflict between --help and --header
8240 as_fn_error $?
"ambiguous option: \`$1'
8241 Try \`$0 --help' for more information.";;
8242 --help |
--hel |
-h )
8243 $as_echo "$ac_cs_usage"; exit ;;
8244 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8245 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8249 -*) as_fn_error $?
"unrecognized option: \`$1'
8250 Try \`$0 --help' for more information." ;;
8252 *) as_fn_append ac_config_targets
" $1"
8253 ac_need_defaults
=false
;;
8259 ac_configure_extra_args
=
8261 if $ac_cs_silent; then
8263 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8268 if \$ac_cs_recheck; then
8269 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8272 CONFIG_SHELL='$SHELL'
8278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8283 ## Running $as_me. ##
8289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8293 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8299 # Handling of arguments.
8300 for ac_config_target
in $ac_config_targets
8302 case $ac_config_target in
8303 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8304 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
8305 "$srcdir/bind/Makefile") CONFIG_FILES
="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8306 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8307 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
8308 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
8309 "common/Makefile.am") CONFIG_FILES
="$CONFIG_FILES common/Makefile.am" ;;
8310 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8311 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
8312 "dhcpctl/Makefile.am") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile.am" ;;
8313 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
8314 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
8315 "keama/Makefile") CONFIG_FILES
="$CONFIG_FILES keama/Makefile" ;;
8316 "omapip/Makefile.am") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile.am" ;;
8317 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
8318 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
8319 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
8320 "tests/Makefile.am") CONFIG_FILES
="$CONFIG_FILES tests/Makefile.am" ;;
8321 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8322 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
8323 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
8324 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
8326 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8331 # If the user did not use the arguments to specify the items to instantiate,
8332 # then the envvar interface is used. Set only those that are not.
8333 # We use the long form for the default assignment because of an extremely
8334 # bizarre bug on SunOS 4.1.3.
8335 if $ac_need_defaults; then
8336 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8337 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8338 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8341 # Have a temporary directory for convenience. Make it in the build tree
8342 # simply because there is no reason against having it here, and in addition,
8343 # creating and moving files from /tmp can sometimes cause problems.
8344 # Hook for its removal unless debugging.
8345 # Note that there is a small window in which the directory will not be cleaned:
8346 # after its creation but before its name has been assigned to `$tmp'.
8350 trap 'exit_status=$?
8352 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8354 trap 'as_fn_exit 1' 1 2 13 15
8356 # Create a (secure) tmp directory for tmp files.
8359 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8363 tmp
=.
/conf$$
-$RANDOM
8364 (umask 077 && mkdir
"$tmp")
8365 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8368 # Set up the scripts for CONFIG_FILES section.
8369 # No need to generate them if there are no CONFIG_FILES.
8370 # This happens for instance with `./config.status config.h'.
8371 if test -n "$CONFIG_FILES"; then
8374 ac_cr
=`echo X | tr X '\015'`
8375 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8376 # But we know of no other shell where ac_cr would be empty at this
8377 # point, so we can use a bashism as a fallback.
8378 if test "x$ac_cr" = x
; then
8379 eval ac_cr
=\$
\'\\r
\'
8381 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8382 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8388 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8393 echo "cat >conf$$subs.awk <<_ACEOF" &&
8394 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8397 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8398 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8400 for ac_last_try in false false false false false :; do
8401 . ./conf$$subs.sh ||
8402 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8404 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8405 if test $ac_delim_n = $ac_delim_num; then
8407 elif $ac_last_try; then
8408 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8410 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8416 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8420 s/^/S["/; s
/!.
*/"]=/
8430 s/\(.\{148\}\)..*/\1/
8432 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8437 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8444 s/\(.\{148\}\)..*/\1/
8446 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8450 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8455 ' <conf$$subs.awk | sed '
8460 ' >>$CONFIG_STATUS || ac_write_fail=1
8461 rm -f conf$$subs.awk
8462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8464 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8465 for (key in S) S_is_set[key] = 1
8471 nfields = split(line, field, "@
")
8473 len = length(field[1])
8474 for (i = 2; i < nfields; i++) {
8476 keylen = length(key)
8477 if (S_is_set[key]) {
8479 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8480 len += length(value) + length(field[++i])
8491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8492 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8493 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8496 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8497 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8500 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8501 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8502 # trailing colons and then remove the whole line if VPATH becomes empty
8503 # (actually we leave an empty line to preserve line numbers).
8504 if test "x
$srcdir" = x.; then
8505 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8524 fi # test -n "$CONFIG_FILES"
8526 # Set up the scripts for CONFIG_HEADERS section.
8527 # No need to generate them if there are no CONFIG_HEADERS.
8528 # This happens for instance with `./config.status Makefile'.
8529 if test -n "$CONFIG_HEADERS"; then
8530 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8534 # Transform confdefs.h into an awk script `defines.awk', embedded as
8535 # here-document in config.status, that substitutes the proper values into
8536 # config.h.in to produce config.h.
8538 # Create a delimiter string that does not exist in confdefs.h, to ease
8539 # handling of long lines.
8541 for ac_last_try in false false :; do
8542 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8543 if test -z "$ac_tt"; then
8545 elif $ac_last_try; then
8546 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8548 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8552 # For the awk script, D is an array of macro values keyed by name,
8553 # likewise P contains macro parameters if any. Preserve backslash
8554 # newline sequences.
8556 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8558 s/.\{148\}/&'"$ac_delim"'/g
8561 s/^[ ]*#[ ]*define[ ][ ]*/ /
8568 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8570 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8574 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8575 D["\
1"]=" \
3\\\\\\n
"\\/p
8577 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8582 s/.\{148\}/&'"$ac_delim"'/g
8587 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8590 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8592 ' <confdefs.h | sed '
8593 s/'"$ac_delim"'/"\\\
8594 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8597 for (key in D) D_is_set[key] = 1
8600 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8602 split(line, arg, " ")
8603 if (arg[1] == "#") {
8607 defundef
= substr
(arg
[1], 2)
8610 split(mac1
, mac2
, "(") #)
8612 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8613 if (D_is_set
[macro
]) {
8614 # Preserve the white space surrounding the "#".
8615 print prefix
"define", macro P
[macro
] D
[macro
]
8618 # Replace #undef with comments. This is necessary, for example,
8619 # in the case of _POSIX_SOURCE, which is predefined and required
8620 # on some systems where configure will not decide to define it.
8621 if (defundef
== "undef") {
8622 print
"/*", prefix defundef
, macro
, "*/"
8630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8631 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8632 fi # test -n "$CONFIG_HEADERS"
8635 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8640 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8642 case $ac_mode$ac_tag in
8644 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8645 :[FH
]-) ac_tag
=-:-;;
8646 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8663 -) ac_f
="$ac_tmp/stdin";;
8664 *) # Look for the file first in the build tree, then in the source tree
8665 # (if the path is not absolute). The absolute path cannot be DOS-style,
8666 # because $ac_f cannot contain `:'.
8670 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8672 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8674 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8675 as_fn_append ac_file_inputs
" '$ac_f'"
8678 # Let's still pretend it is `configure' which instantiates (i.e., don't
8679 # use $as_me), people would be surprised to read:
8680 # /* config.h. Generated by config.status. */
8681 configure_input
='Generated from '`
8682 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8684 if test x
"$ac_file" != x-
; then
8685 configure_input
="$ac_file. $configure_input"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8687 $as_echo "$as_me: creating $ac_file" >&6;}
8689 # Neutralize special characters interpreted by sed in replacement strings.
8690 case $configure_input in #(
8691 *\
&* |
*\|
* |
*\\* )
8692 ac_sed_conf_input
=`$as_echo "$configure_input" |
8693 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8694 *) ac_sed_conf_input
=$configure_input;;
8698 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8699 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8704 ac_dir
=`$as_dirname -- "$ac_file" ||
8705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8706 X"$ac_file" : 'X\(//\)[^/]' \| \
8707 X"$ac_file" : 'X\(//\)$' \| \
8708 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8709 $as_echo X"$ac_file" |
8710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8727 as_dir
="$ac_dir"; as_fn_mkdir_p
8731 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8733 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8734 # A ".." for each directory in $ac_dir_suffix.
8735 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8736 case $ac_top_builddir_sub in
8737 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8738 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8741 ac_abs_top_builddir
=$ac_pwd
8742 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8743 # for backward compatibility:
8744 ac_top_builddir
=$ac_top_build_prefix
8747 .
) # We are building in place.
8749 ac_top_srcdir
=$ac_top_builddir_sub
8750 ac_abs_top_srcdir
=$ac_pwd ;;
8751 [\\/]* | ?
:[\\/]* ) # Absolute name.
8752 ac_srcdir
=$srcdir$ac_dir_suffix;
8753 ac_top_srcdir
=$srcdir
8754 ac_abs_top_srcdir
=$srcdir ;;
8756 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8757 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8758 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8760 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8770 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8771 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8775 [\\/$
]* | ?
:[\\/]* ) ;;
8776 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8781 # Neutralize VPATH when `$srcdir' = `.'.
8782 # Shell code in configure.ac might set extrasub.
8783 # FIXME: do we really want to maintain this feature?
8784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8785 ac_sed_extra="$ac_vpsub
8788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8790 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8791 s|@configure_input@|
$ac_sed_conf_input|
;t t
8792 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8793 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8794 s
&@srcdir@
&$ac_srcdir&;t t
8795 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8796 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8797 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8798 s
&@builddir@
&$ac_builddir&;t t
8799 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8800 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8801 s
&@INSTALL@
&$ac_INSTALL&;t t
8802 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8804 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8805 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8808 rm -f "$ac_tmp/stdin
"
8810 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8811 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8813 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8819 if test x"$ac_file" != x-; then
8821 $as_echo "/* $configure_input */" \
8822 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8823 } >"$ac_tmp/config.h
" \
8824 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8825 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8827 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8830 mv "$ac_tmp/config.h
" "$ac_file" \
8831 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8834 $as_echo "/* $configure_input */" \
8835 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8836 || as_fn_error $? "could not create
-" "$LINENO" 5
8838 # Compute "$ac_file"'s index in $config_headers.
8841 for _am_header in $config_headers :; do
8843 $_am_arg | $_am_arg:* )
8846 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8849 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8850 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8851 X"$_am_arg" : 'X\(//\)[^/]' \| \
8852 X"$_am_arg" : 'X\(//\)$' \| \
8853 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8854 $as_echo X"$_am_arg" |
8855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8871 s/.*/./; q'`/stamp-h$_am_stamp_count
8874 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8875 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8880 case $ac_file$ac_mode in
8881 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8882 # Older Autoconf quotes --file arguments for eval, but not when files
8883 # are listed without --file. Let's play safe and only enable the eval
8884 # if we detect the quoting.
8885 # TODO: see whether this extra hack can be removed once we start
8886 # requiring Autoconf 2.70 or later.
8887 case $CONFIG_FILES in #(
8889 eval set x "$CONFIG_FILES" ;; #(
8891 set x $CONFIG_FILES ;; #(
8896 # Used to flag and report bootstrapping failures.
8900 # Strip MF so we end up with the name of the file.
8901 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
8902 # Check whether this is an Automake generated Makefile which includes
8903 # dependency-tracking related rules and includes.
8904 # Grep'ing the whole file directly is not great: AIX grep has a line
8905 # limit of 2048, but all sed's we know have understand at least 4000.
8906 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8908 am_dirpart=`$as_dirname -- "$am_mf" ||
8909 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8910 X"$am_mf" : 'X\(//\)[^/]' \| \
8911 X"$am_mf" : 'X\(//\)$' \| \
8912 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8913 $as_echo X"$am_mf" |
8914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8931 am_filepart=`$as_basename -- "$am_mf" ||
8932 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8933 X"$am_mf" : 'X\(//\)$' \| \
8934 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8935 $as_echo X/"$am_mf" |
8936 sed '/^.*\/\([^/][^/]*\)\/*$/{
8949 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8950 && sed -e '/# am--include-marker/d' "$am_filepart" \
8951 |
$MAKE -f - am--depfiles
" >&5
8953 && sed -e '/# am--include-marker/d' "$am_filepart" \
8954 | $MAKE -f - am--depfiles) >&5 2>&5
8956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8957 (exit $ac_status); } || am_rc=$?
8959 if test $am_rc -ne 0; then
8960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
8961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8962 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8963 for automatic dependency tracking. Try re-running configure with the
8964 '--disable-dependency-tracking' option to at least be able to build
8965 the package (albeit without support for automatic dependency tracking).
8966 See \`config.log' for more details
" "$LINENO" 5; }
8968 { am_dirpart=; unset am_dirpart;}
8969 { am_filepart=; unset am_filepart;}
8970 { am_mf=; unset am_mf;}
8971 { am_rc=; unset am_rc;}
8972 rm -f conftest-deps.mk
8982 ac_clean_files=$ac_clean_files_save
8984 test $ac_write_fail = 0 ||
8985 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8988 # configure is writing to config.log, and then calls config.status.
8989 # config.status does its own redirection, appending to config.log.
8990 # Unfortunately, on DOS this fails, as config.log is still kept open
8991 # by configure, so config.status won't be able to write to it; its
8992 # output is simply discarded. So we exec the FD to /dev/null,
8993 # effectively closing config.log, so it can be properly (re)opened and
8994 # appended to by config.status. When coming back to configure, we
8995 # need to make the FD available again.
8996 if test "$no_create" != yes; then
8998 ac_config_status_args=
8999 test "$silent" = yes &&
9000 ac_config_status_args="$ac_config_status_args --quiet"
9002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9005 # would make configure fail if this is the last instruction.
9006 $ac_cs_success || as_fn_exit 1
9008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
9010 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
9015 if test "$enable_dhcpv4o6" = "yes"; then
9016 DHCP_VERSIONS="DHCPv4
, DHCPv6 and DHCPv4-over-DHCPv6
"
9017 elif test "$enable_dhcpv6" != "no
"; then
9018 DHCP_VERSIONS="DHCPv4 and DHCPv6
"
9020 DHCP_VERSIONS="DHCPv4
"
9023 cat > config.report << END
9025 ISC DHCP source configure results:
9026 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
9030 Version: $PACKAGE_VERSION
9038 DHCP versions: $DHCP_VERSIONS
9041 debug: $enable_debug
9042 failover: $enable_failover
9043 execute: $enable_execute
9044 binary-leases: $enable_binary_leases
9045 dhcpv6: $enable_dhcpv6
9046 delayed-ack: $enable_delayed_ack
9047 dhcpv4o6: $enable_dhcpv4o6
9048 relay-port: $enable_relay_port
9051 ATF unittests : $atf_path
9054 # TODO: Add Perl system tests
9056 if test "$atf_path" != "no
"
9058 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
9059 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
9060 echo "ATF_BIN
: $ATF_BIN" >> config.report
9067 echo Now you can type "make" to build ISC DHCP