2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.4.0-dev.
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.0-dev'
584 PACKAGE_STRING
='DHCP 4.4.0-dev'
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
747 program_transform_name
760 enable_option_checking
762 enable_maintainer_mode
763 enable_dependency_tracking
775 enable_secs_byteorder
794 with_bind_extra_config
803 ac_precious_vars
='build_alias
814 # Initialize some variables set by options.
816 ac_init_version
=false
817 ac_unrecognized_opts
=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name
=s
,x
,x
,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir
='${exec_prefix}/bin'
843 sbindir
='${exec_prefix}/sbin'
844 libexecdir
='${exec_prefix}/libexec'
845 datarootdir
='${prefix}/share'
846 datadir
='${datarootdir}'
847 sysconfdir
='${prefix}/etc'
848 sharedstatedir
='${prefix}/com'
849 localstatedir
='${prefix}/var'
850 includedir
='${prefix}/include'
851 oldincludedir
='/usr/include'
852 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir
='${datarootdir}/info'
858 libdir
='${exec_prefix}/lib'
859 localedir
='${datarootdir}/locale'
860 mandir
='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\
$ac_option
874 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
887 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
890 -build |
--build |
--buil |
--bui |
--bu)
891 ac_prev
=build_alias
;;
892 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
893 build_alias
=$ac_optarg ;;
895 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
896 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
897 ac_prev
=cache_file
;;
898 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
899 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
900 cache_file
=$ac_optarg ;;
903 cache_file
=config.cache
;;
905 -datadir |
--datadir |
--datadi |
--datad)
907 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
908 datadir
=$ac_optarg ;;
910 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
911 |
--dataroo |
--dataro |
--datar)
912 ac_prev
=datarootdir
;;
913 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
914 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
915 datarootdir
=$ac_optarg ;;
917 -disable-* |
--disable-*)
918 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
921 as_fn_error $?
"invalid feature name: $ac_useropt"
922 ac_useropt_orig
=$ac_useropt
923 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep
=', ';;
931 eval enable_
$ac_useropt=no
;;
933 -docdir |
--docdir |
--docdi |
--doc |
--do)
935 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
938 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
940 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
943 -enable-* |
--enable-*)
944 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
947 as_fn_error $?
"invalid feature name: $ac_useropt"
948 ac_useropt_orig
=$ac_useropt
949 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep
=', ';;
957 eval enable_
$ac_useropt=\
$ac_optarg ;;
959 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
960 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
961 |
--exec |
--exe |
--ex)
962 ac_prev
=exec_prefix
;;
963 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
964 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
965 |
--exec=* |
--exe=* |
--ex=*)
966 exec_prefix
=$ac_optarg ;;
968 -gas |
--gas |
--ga |
--g)
969 # Obsolete; use --with-gas.
972 -help |
--help |
--hel |
--he |
-h)
974 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
975 ac_init_help
=recursive
;;
976 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
977 ac_init_help
=short
;;
979 -host |
--host |
--hos |
--ho)
980 ac_prev
=host_alias
;;
981 -host=* |
--host=* |
--hos=* |
--ho=*)
982 host_alias
=$ac_optarg ;;
984 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
986 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
988 htmldir
=$ac_optarg ;;
990 -includedir |
--includedir |
--includedi |
--included |
--include \
991 |
--includ |
--inclu |
--incl |
--inc)
992 ac_prev
=includedir
;;
993 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
994 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
995 includedir
=$ac_optarg ;;
997 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
999 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1000 infodir
=$ac_optarg ;;
1002 -libdir |
--libdir |
--libdi |
--libd)
1004 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1005 libdir
=$ac_optarg ;;
1007 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1008 |
--libexe |
--libex |
--libe)
1009 ac_prev
=libexecdir
;;
1010 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1011 |
--libexe=* |
--libex=* |
--libe=*)
1012 libexecdir
=$ac_optarg ;;
1014 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1015 ac_prev
=localedir
;;
1016 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1017 localedir
=$ac_optarg ;;
1019 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1020 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1021 ac_prev
=localstatedir
;;
1022 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1023 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1024 localstatedir
=$ac_optarg ;;
1026 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1028 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1029 mandir
=$ac_optarg ;;
1031 -nfp |
--nfp |
--nf)
1032 # Obsolete; use --without-fp.
1035 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1036 |
--no-cr |
--no-c |
-n)
1039 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1040 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1043 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1044 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1045 |
--oldin |
--oldi |
--old |
--ol |
--o)
1046 ac_prev
=oldincludedir
;;
1047 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1048 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1049 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1050 oldincludedir
=$ac_optarg ;;
1052 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1054 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1055 prefix
=$ac_optarg ;;
1057 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1058 |
--program-pre |
--program-pr |
--program-p)
1059 ac_prev
=program_prefix
;;
1060 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1061 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1062 program_prefix
=$ac_optarg ;;
1064 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1065 |
--program-suf |
--program-su |
--program-s)
1066 ac_prev
=program_suffix
;;
1067 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1068 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1069 program_suffix
=$ac_optarg ;;
1071 -program-transform-name |
--program-transform-name \
1072 |
--program-transform-nam |
--program-transform-na \
1073 |
--program-transform-n |
--program-transform- \
1074 |
--program-transform |
--program-transfor \
1075 |
--program-transfo |
--program-transf \
1076 |
--program-trans |
--program-tran \
1077 |
--progr-tra |
--program-tr |
--program-t)
1078 ac_prev
=program_transform_name
;;
1079 -program-transform-name=* |
--program-transform-name=* \
1080 |
--program-transform-nam=* |
--program-transform-na=* \
1081 |
--program-transform-n=* |
--program-transform-=* \
1082 |
--program-transform=* |
--program-transfor=* \
1083 |
--program-transfo=* |
--program-transf=* \
1084 |
--program-trans=* |
--program-tran=* \
1085 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1086 program_transform_name
=$ac_optarg ;;
1088 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1090 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1091 pdfdir
=$ac_optarg ;;
1093 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1095 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1099 |
-silent |
--silent |
--silen |
--sile |
--sil)
1102 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1104 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1106 sbindir
=$ac_optarg ;;
1108 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1109 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1110 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1112 ac_prev
=sharedstatedir
;;
1113 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1114 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1115 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1117 sharedstatedir
=$ac_optarg ;;
1119 -site |
--site |
--sit)
1121 -site=* |
--site=* |
--sit=*)
1124 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1126 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1127 srcdir
=$ac_optarg ;;
1129 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1130 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1131 ac_prev
=sysconfdir
;;
1132 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1133 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1134 sysconfdir
=$ac_optarg ;;
1136 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1137 ac_prev
=target_alias
;;
1138 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1139 target_alias
=$ac_optarg ;;
1141 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1144 -version |
--version |
--versio |
--versi |
--vers |
-V)
1145 ac_init_version
=: ;;
1148 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1151 as_fn_error $?
"invalid package name: $ac_useropt"
1152 ac_useropt_orig
=$ac_useropt
1153 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep
=', ';;
1161 eval with_
$ac_useropt=\
$ac_optarg ;;
1163 -without-* |
--without-*)
1164 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1167 as_fn_error $?
"invalid package name: $ac_useropt"
1168 ac_useropt_orig
=$ac_useropt
1169 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep
=', ';;
1177 eval with_
$ac_useropt=no
;;
1180 # Obsolete; use --with-x.
1183 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1184 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1185 ac_prev
=x_includes
;;
1186 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1187 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1188 x_includes
=$ac_optarg ;;
1190 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1191 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1192 ac_prev
=x_libraries
;;
1193 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1194 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1195 x_libraries
=$ac_optarg ;;
1197 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1202 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1206 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1208 eval $ac_envvar=\
$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 if test -n "$ac_prev"; then
1223 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $?
"missing argument to $ac_option"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1230 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 # Check all directory arguments for consistency.
1236 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1241 eval ac_val
=\$
$ac_var
1242 # Remove trailing slashes.
1245 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\
$ac_val;;
1248 # Be sure to have absolute directory names.
1250 [\\/$
]* | ?
:[\\/]* ) continue;;
1251 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1253 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1261 target
=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x
; then
1265 if test "x$build_alias" = x
; then
1266 cross_compiling
=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1273 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1275 test "$silent" = yes && exec 6>/dev
/null
1278 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di
=`ls -di .` &&
1280 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $?
"working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $?
"pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted
=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir
=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted
=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1322 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1336 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 for ac_var
in $ac_precious_vars; do
1339 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1341 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1352 \`configure' configures DHCP 4.4.0-dev to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1415 --build=BUILD configure
for building on BUILD
[guessed
]
1416 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive
) echo "Configuration of DHCP 4.4.0-dev:";;
1427 --disable-option-checking ignore unrecognized
--enable/--with options
1428 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1429 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1430 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1431 --disable-silent-rules verbose build output
(undo
: "make V=0")
1432 --enable-maintainer-mode
1433 enable make rules and dependencies not useful
(and
1434 sometimes confusing
) to the casual installer
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-debug create a debug-only version of the software
(default
1441 --enable-failover enable support
for failover
(default is
yes)
1442 --enable-execute enable support
for execute
() in config
(default is
1444 --enable-tracing enable support
for server activity tracing
(default
1446 --enable-delayed-ack queues multiple DHCPACK replies
(default is no
)
1447 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1448 --enable-dhcpv4o6 enable support
for DHCPv4-over-DHCPv6
(default is
1450 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1451 --enable-early-chroot enable chrooting prior to configuration
(default is
1453 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1455 --enable-use-sockets use the standard BSD socket API
(default is no
)
1456 --enable-secs-byteorder Correct bad byteorders
in the secs field
(default is
1458 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1459 --enable-binary-leases enable support
for binary insertion of leases
1461 --enable-kqueue use BSD kqueue
(default is no
)
1462 --enable-epoll use Linux epoll
(default is no
)
1463 --enable-devpoll use
/dev
/poll
(default is no
)
1464 --enable-libtool use GNU libtool
for dynamic shared libraries
1466 --enable-bind-install install bind includes and libraries
(default is no
).
1469 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1470 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1471 --with-atf=PATH specify location where atf was installed
(or
"bind")
1472 --with-srv-conf-file=PATH
1473 Default
file containing dhcpd configuration
(default
1474 is typically
/etc
/dhcpd.conf
)
1475 --with-srv-lease-file=PATH
1476 File
for dhcpd leases
(default is
1477 LOCALSTATEDIR
/db
/dhcpd.leases
)
1478 --with-srv6-lease-file=PATH
1479 File
for dhcpd6 leases
(default is
1480 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1481 --with-cli-lease-file=PATH
1482 File
for dhclient leases
(default is
1483 LOCALSTATEDIR
/db
/dhclient.leases
)
1484 --with-cli6-lease-file=PATH
1485 File
for dhclient6 leases
(default is
1486 LOCALSTATEDIR
/db
/dhclient6.leases
)
1487 --with-srv-pid-file=PATH
1488 File
for dhcpd process information
(default is
1489 LOCALSTATEDIR
/run
/dhcpd.pid
)
1490 --with-srv6-pid-file=PATH
1491 File
for dhcpd6 process information
(default is
1492 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1493 --with-cli-pid-file=PATH
1494 File
for dhclient process information
(default is
1495 LOCALSTATEDIR
/run
/dhclient.pid
)
1496 --with-cli6-pid-file=PATH
1497 File
for dhclient6 process information
(default is
1498 LOCALSTATEDIR
/run
/dhclient6.pid
)
1499 --with-relay-pid-file=PATH
1500 File
for dhcrelay process information
(default is
1501 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1502 --with-relay6-pid-file=PATH
1503 File
for dhcrelay6 process information
(default is
1504 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1505 --with-randomdev=PATH Path
for random device
(default is
/dev
/random
)
1506 --with-bind-extra-config
1507 configure
bind librairies with some extra options
1509 --with-libbind=PATH
bind includes and libraries are
in PATH
1510 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1511 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1513 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1514 dhcpd
(default is no
)
1515 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1518 Some influential environment variables
:
1519 CC C compiler
command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1522 nonstandard directory
<lib dir
>
1523 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1524 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1525 you have headers
in a nonstandard directory
<include dir
>
1528 Use these variables to override the choices made by
`configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1531 Report bugs to <dhcp-users@isc.org>.
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1561 .) # We are building in place.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1594 DHCP configure 4.4.0-dev
1595 generated by GNU Autoconf 2.69
1597 Copyright (C) 2012 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1618 *) ac_try_echo
=$ac_try;;
1620 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1624 if test -s conftest.err
; then
1625 grep -v '^ *+' conftest.err
>conftest.er1
1626 cat conftest.er1
>&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.
$ac_objext; then :
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.
$ac_ext >&5
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status
$ac_retval
1644 } # ac_fn_c_try_compile
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1652 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1683 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1686 # the include files in INCLUDES and setting the cache variable VAR
1688 ac_fn_c_check_header_mongrel ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if eval \${$3+:} false; then :
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 # Is the header compilable?
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1703 $as_echo_n "checking $2 usability... " >&6; }
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1709 if ac_fn_c_try_compile "$LINENO"; then :
1710 ac_header_compiler=yes
1712 ac_header_compiler=no
1714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1716 $as_echo "$ac_header_compiler" >&6; }
1718 # Is the header present?
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1720 $as_echo_n "checking $2 presence... " >&6; }
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1725 if ac_fn_c_try_cpp "$LINENO"; then :
1726 ac_header_preproc=yes
1728 ac_header_preproc=no
1730 rm -f conftest.err conftest.i conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1732 $as_echo "$ac_header_preproc" >&6; }
1734 # So? What about this header?
1735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1738 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1744 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1746 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1748 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1750 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
1753 ( $as_echo "## --------------------------------- ##
1754 ## Report this to dhcp-users@isc.org ##
1755 ## --------------------------------- ##"
1756 ) | sed "s/^/$as_me: WARNING: /" >&2
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1764 eval "$3=\$ac_header_compiler"
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_header_mongrel
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1833 if ac_fn_c_try_compile "$LINENO"; then :
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_compile
1847 # ac_fn_c_find_intX_t LINENO BITS VAR
1848 # -----------------------------------
1849 # Finds a signed integer type with width BITS, setting cache variable VAR
1851 ac_fn_c_find_intX_t ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1855 $as_echo_n "checking for int$2_t... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1860 # Order is important - never check a type that is potentially smaller
1861 # than half of the expected target width.
1862 for ac_type in int$2_t 'int' 'long int' \
1863 'long long int' 'short int' 'signed char'; do
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $ac_includes_default
1867 enum { N = $2 / 2 - 1 };
1871 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1873 return test_array [0];
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $ac_includes_default
1883 enum { N = $2 / 2 - 1 };
1887 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1888 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1890 return test_array [0];
1896 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=\$ac_type" ;;
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 if eval test \"x\$"$3"\" = x"no"; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 } # ac_fn_c_find_intX_t
1923 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924 # -------------------------------------------
1925 # Tests whether TYPE exists after having included INCLUDES, setting cache
1926 # variable VAR accordingly.
1927 ac_fn_c_check_type ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1961 if ac_fn_c_try_compile "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_type
1977 # ac_fn_c_find_uintX_t LINENO BITS VAR
1978 # ------------------------------------
1979 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1981 ac_fn_c_find_uintX_t ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1985 $as_echo_n "checking for uint$2_t... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1990 # Order is important - never check a type that is potentially smaller
1991 # than half of the expected target width.
1992 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1993 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 $ac_includes_default
2000 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2002 return test_array [0];
2008 if ac_fn_c_try_compile "$LINENO"; then :
2013 eval "$3=\$ac_type" ;;
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 if eval test \"x\$"$3"\" = x"no"; then :
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 } # ac_fn_c_find_uintX_t
2031 # ac_fn_c_try_link LINENO
2032 # -----------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded.
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext conftest$ac_exeext
2038 if { { ac_try="$ac_link"
2040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2041 *) ac_try_echo
=$ac_try;;
2043 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_link") 2>conftest.err
2047 if test -s conftest.err
; then
2048 grep -v '^ *+' conftest.err
>conftest.er1
2049 cat conftest.er1
>&5
2050 mv -f conftest.er1 conftest.err
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_c_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest
$ac_exeext && {
2057 test "$cross_compiling" = yes ||
2058 test -x conftest
$ac_exeext
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.
$ac_ext >&5
2067 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2068 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2069 # interfere with the next link command; also delete a directory that is
2070 # left behind by Apple's compiler. We do this before executing the actions.
2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status
$ac_retval
2075 } # ac_fn_c_try_link
2077 # ac_fn_c_check_func LINENO FUNC VAR
2078 # ----------------------------------
2079 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2080 ac_fn_c_check_func
()
2082 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \
${$3+:} false
; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2092 #define $2 innocuous_$2
2094 /* System header to define __stub macros and hopefully few prototypes,
2095 which can conflict with char $2 (); below.
2096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097 <limits.h> exists even on freestanding compilers. */
2100 # include <limits.h>
2102 # include <assert.h>
2107 /* Override any GCC internal prototype to avoid an error.
2108 Use char because int might match the return type of a GCC
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined __stub_$2 || defined __stub___$2
2129 if ac_fn_c_try_link
"$LINENO"; then :
2134 rm -f core conftest.err conftest.
$ac_objext \
2135 conftest
$ac_exeext conftest.
$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 } # ac_fn_c_check_func
2144 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2145 # ----------------------------------------------------
2146 # Tries to find if the field MEMBER exists in type AGGR, after including
2147 # INCLUDES, setting cache variable VAR accordingly.
2148 ac_fn_c_check_member
()
2150 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2152 $as_echo_n "checking for $2.$3... " >&6; }
2153 if eval \
${$4+:} false
; then :
2154 $as_echo_n "(cached) " >&6
2156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2169 if ac_fn_c_try_compile
"$LINENO"; then :
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2179 if (sizeof ac_aggr.$3)
2185 if ac_fn_c_try_compile
"$LINENO"; then :
2190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_c_check_member
2201 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2202 # --------------------------------------------
2203 # Tries to find the compile-time value of EXPR in a program that includes
2204 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2206 ac_fn_c_compute_int
()
2208 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2209 if test "$cross_compiling" = yes; then
2210 # Depending upon the size, compute the lo and hi bounds.
2211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2217 static int test_array [1 - 2 * !(($2) >= 0)];
2219 return test_array [0];
2225 if ac_fn_c_try_compile
"$LINENO"; then :
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2236 return test_array [0];
2242 if ac_fn_c_try_compile
"$LINENO"; then :
2243 ac_hi
=$ac_mid; break
2245 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2246 if test $ac_lo -le $ac_mid; then
2250 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2261 static int test_array [1 - 2 * !(($2) < 0)];
2263 return test_array [0];
2269 if ac_fn_c_try_compile
"$LINENO"; then :
2272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2278 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2280 return test_array [0];
2286 if ac_fn_c_try_compile
"$LINENO"; then :
2287 ac_lo
=$ac_mid; break
2289 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2290 if test $ac_mid -le $ac_hi; then
2294 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2304 # Binary search between lo and hi bounds.
2305 while test "x$ac_lo" != "x$ac_hi"; do
2306 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2313 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2315 return test_array [0];
2321 if ac_fn_c_try_compile
"$LINENO"; then :
2324 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2329 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2336 static long int longval () { return $2; }
2337 static unsigned long int ulongval () { return $2; }
2344 FILE *f = fopen ("conftest.val", "w");
2349 long int i = longval ();
2352 fprintf (f, "%ld", i);
2356 unsigned long int i = ulongval ();
2359 fprintf (f, "%lu", i);
2361 /* Do not output a trailing newline, as this causes \r\n confusion
2362 on some platforms. */
2363 return ferror (f) || fclose (f) != 0;
2369 if ac_fn_c_try_run
"$LINENO"; then :
2370 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380 as_fn_set_status
$ac_retval
2382 } # ac_fn_c_compute_int
2383 cat >config.log
<<_ACEOF
2384 This file contains any messages produced by compilers while
2385 running configure, to aid debugging if configure makes a mistake.
2387 It was created by DHCP $as_me 4.4.0-dev, which was
2388 generated by GNU Autoconf 2.69. Invocation command line was
2400 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2401 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2402 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2403 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2404 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2406 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2407 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2409 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2410 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2411 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2412 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2413 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2414 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2415 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir
=.
2424 $as_echo "PATH: $as_dir"
2440 # Keep a trace of the command line.
2441 # Strip out --no-create and --no-recursion so they do not pile up.
2442 # Strip out --silent because we don't want to record it for future runs.
2443 # Also quote any args containing shell meta-characters.
2444 # Make two passes to allow for proper duplicate-argument suppression.
2448 ac_must_keep_next
=false
2454 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2455 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2456 |
-silent |
--silent |
--silen |
--sile |
--sil)
2459 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2462 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2464 as_fn_append ac_configure_args1
" '$ac_arg'"
2465 if test $ac_must_keep_next = true
; then
2466 ac_must_keep_next
=false
# Got value, back to normal.
2469 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2470 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2471 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2472 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2473 case "$ac_configure_args0 " in
2474 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477 -* ) ac_must_keep_next
=true
;;
2480 as_fn_append ac_configure_args
" '$ac_arg'"
2485 { ac_configure_args0
=; unset ac_configure_args0
;}
2486 { ac_configure_args1
=; unset ac_configure_args1
;}
2488 # When interrupted or exit'd, cleanup temporary files, and complete
2489 # config.log. We remove comments because anyway the quotes in there
2490 # would cause problems or look ugly.
2491 # WARNING: Use '\'' to represent an apostrophe within the trap.
2492 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2493 trap 'exit_status=$?
2494 # Save into config.log some information that might help in debugging.
2498 $as_echo "## ---------------- ##
2499 ## Cache variables. ##
2500 ## ---------------- ##"
2502 # The following way of writing the cache mishandles newlines in values,
2504 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2505 eval ac_val=\$$ac_var
2509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2513 _ | IFS | as_nl) ;; #(
2514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2515 *) { eval $ac_var=; unset $ac_var;} ;;
2520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2521 *${as_nl}ac_space=\ *)
2523 "s/'\''/'\''\\\\'\'''\''/g;
2524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2534 $as_echo "## ----------------- ##
2535 ## Output variables. ##
2536 ## ----------------- ##"
2538 for ac_var in $ac_subst_vars
2540 eval ac_val=\$$ac_var
2542 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544 $as_echo "$ac_var='\''$ac_val'\''"
2548 if test -n "$ac_subst_files"; then
2549 $as_echo "## ------------------- ##
2550 ## File substitutions. ##
2551 ## ------------------- ##"
2553 for ac_var
in $ac_subst_files
2555 eval ac_val
=\$
$ac_var
2557 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559 $as_echo "$ac_var='\''$ac_val'\''"
2564 if test -s confdefs.h; then
2565 $as_echo "## ----------- ##
2572 test "$ac_signal" != 0 &&
2573 $as_echo "$as_me: caught signal $ac_signal"
2574 $as_echo "$as_me: exit $exit_status"
2576 rm -f core *.core core.conftest.* &&
2577 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2580 for ac_signal
in 1 2 13 15; do
2581 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2585 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2586 rm -f -r conftest
* confdefs.h
2588 $as_echo "/* confdefs.h */" > confdefs.h
2590 # Predefined preprocessor variables.
2592 cat >>confdefs.h
<<_ACEOF
2593 #define PACKAGE_NAME "$PACKAGE_NAME"
2596 cat >>confdefs.h
<<_ACEOF
2597 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2600 cat >>confdefs.h
<<_ACEOF
2601 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2604 cat >>confdefs.h
<<_ACEOF
2605 #define PACKAGE_STRING "$PACKAGE_STRING"
2608 cat >>confdefs.h
<<_ACEOF
2609 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2612 cat >>confdefs.h
<<_ACEOF
2613 #define PACKAGE_URL "$PACKAGE_URL"
2617 # Let the site file select an alternate cache file if it wants to.
2618 # Prefer an explicitly selected file to automatically selected ones.
2621 if test -n "$CONFIG_SITE"; then
2622 # We do not want a PATH search for config.site.
2623 case $CONFIG_SITE in #((
2624 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2625 */*) ac_site_file1
=$CONFIG_SITE;;
2626 *) ac_site_file1
=.
/$CONFIG_SITE;;
2628 elif test "x$prefix" != xNONE
; then
2629 ac_site_file1
=$prefix/share
/config.site
2630 ac_site_file2
=$prefix/etc
/config.site
2632 ac_site_file1
=$ac_default_prefix/share
/config.site
2633 ac_site_file2
=$ac_default_prefix/etc
/config.site
2635 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2637 test "x$ac_site_file" = xNONE
&& continue
2638 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2640 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2641 sed 's/^/| /' "$ac_site_file" >&5
2643 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 as_fn_error $?
"failed to load site script $ac_site_file
2646 See \`config.log' for more details" "$LINENO" 5; }
2650 if test -r "$cache_file"; then
2651 # Some versions of bash will fail to source /dev/null (special files
2652 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2653 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2655 $as_echo "$as_me: loading cache $cache_file" >&6;}
2657 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2658 *) .
"./$cache_file";;
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2663 $as_echo "$as_me: creating cache $cache_file" >&6;}
2667 # Check that the precious variables saved in the cache have kept the same
2669 ac_cache_corrupted
=false
2670 for ac_var
in $ac_precious_vars; do
2671 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2672 eval ac_new_set
=\
$ac_env_${ac_var}_set
2673 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2674 eval ac_new_val
=\
$ac_env_${ac_var}_value
2675 case $ac_old_set,$ac_new_set in
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2678 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2679 ac_cache_corrupted
=: ;;
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2683 ac_cache_corrupted
=: ;;
2686 if test "x$ac_old_val" != "x$ac_new_val"; then
2687 # differences in whitespace do not lead to failure.
2688 ac_old_val_w
=`echo x $ac_old_val`
2689 ac_new_val_w
=`echo x $ac_new_val`
2690 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2692 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2693 ac_cache_corrupted
=:
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2696 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2697 eval $ac_var=\
$ac_old_val
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2700 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2702 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2705 # Pass precious variables to config.status.
2706 if test "$ac_new_set" = set; then
2708 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2709 *) ac_arg
=$ac_var=$ac_new_val ;;
2711 case " $ac_configure_args " in
2712 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2713 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2717 if $ac_cache_corrupted; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2721 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2722 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2724 ## -------------------- ##
2725 ## Main body of script. ##
2726 ## -------------------- ##
2729 ac_cpp
='$CPP $CPPFLAGS'
2730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2737 # we specify "foreign" to avoid having to have the GNU mandated files,
2738 # like AUTHORS, COPYING, and such
2739 am__api_version
='1.15'
2742 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2743 if test -f "$ac_dir/install-sh"; then
2745 ac_install_sh
="$ac_aux_dir/install-sh -c"
2747 elif test -f "$ac_dir/install.sh"; then
2749 ac_install_sh
="$ac_aux_dir/install.sh -c"
2751 elif test -f "$ac_dir/shtool"; then
2753 ac_install_sh
="$ac_aux_dir/shtool install -c"
2757 if test -z "$ac_aux_dir"; then
2758 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2761 # These three variables are undocumented and unsupported,
2762 # and are intended to be withdrawn in a future Autoconf release.
2763 # They can cause serious problems if a builder's source tree is in a directory
2764 # whose full name contains unusual characters.
2765 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2766 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2767 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2770 # Find a good install program. We prefer a C program (faster),
2771 # so one script is as good as another. But avoid the broken or
2772 # incompatible versions:
2773 # SysV /etc/install, /usr/sbin/install
2774 # SunOS /usr/etc/install
2775 # IRIX /sbin/install
2777 # AmigaOS /C/install, which installs bootblocks on floppy discs
2778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2781 # OS/2's system install, which has a completely different semantic
2782 # ./install, which can be erroneously created by make from ./install.sh.
2783 # Reject install programs that cannot install multiple files.
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2785 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2786 if test -z "$INSTALL"; then
2787 if ${ac_cv_path_install+:} false
; then :
2788 $as_echo_n "(cached) " >&6
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 # Account for people who put trailing slashes in PATH elements.
2796 case $as_dir/ in #((
2797 .
/ | .
// |
/[cC
]/* | \
2798 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2799 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2802 # OSF1 and SCO ODT 3.0 have their own names for install.
2803 # Don't use installbsd from OSF since it installs stuff as root
2805 for ac_prog
in ginstall scoinst
install; do
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2808 if test $ac_prog = install &&
2809 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2810 # AIX install. It has an incompatible calling convention.
2812 elif test $ac_prog = install &&
2813 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2814 # program-specific install script used by HP pwplus--don't use.
2817 rm -rf conftest.one conftest.two conftest.dir
2818 echo one
> conftest.one
2819 echo two
> conftest.two
2821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2822 test -s conftest.one
&& test -s conftest.two
&&
2823 test -s conftest.dir
/conftest.one
&&
2824 test -s conftest.dir
/conftest.two
2826 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2839 rm -rf conftest.one conftest.two conftest.dir
2842 if test "${ac_cv_path_install+set}" = set; then
2843 INSTALL
=$ac_cv_path_install
2845 # As a last resort, use the slow shell script. Don't cache a
2846 # value for INSTALL within a source directory, because that will
2847 # break other packages using the cache if that directory is
2848 # removed, or if the value is a relative name.
2849 INSTALL
=$ac_install_sh
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2853 $as_echo "$INSTALL" >&6; }
2855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2856 # It thinks the first close brace ends the variable substitution.
2857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2861 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2864 $as_echo_n "checking whether build environment is sane... " >&6; }
2865 # Reject unsafe characters in $srcdir or the absolute working directory
2866 # name. Accept space and tab only in the latter.
2870 *[\\\"\
#\$\&\'\`$am_lf]*)
2871 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2874 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2875 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2878 # Do 'set' in a subshell so we don't clobber the current shell's
2879 # arguments. Must try -L first in case configure is actually a
2880 # symlink; some systems play weird games with the mod time of symlinks
2881 # (eg FreeBSD returns the mod time of the symlink's containing
2885 for am_try
in 1 2; do
2886 echo "timestamp, slept: $am_has_slept" > conftest.
file
2887 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2888 if test "$*" = "X"; then
2890 set X
`ls -t "$srcdir/configure" conftest.file`
2892 if test "$*" != "X $srcdir/configure conftest.file" \
2893 && test "$*" != "X conftest.file $srcdir/configure"; then
2895 # If neither matched, then we have a broken ls. This can happen
2896 # if, for instance, CONFIG_SHELL is bash and it inherits a
2897 # broken ls alias from the environment. This has actually
2898 # happened. Such a system could not be considered "sane".
2899 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2902 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2909 test "$2" = conftest.
file
2915 as_fn_error $?
"newly created file is older than distributed files!
2916 Check your system clock" "$LINENO" 5
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919 $as_echo "yes" >&6; }
2920 # If we didn't sleep, we still need to ensure time stamps of config.status and
2921 # generated files are strictly newer.
2923 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2930 test "$program_prefix" != NONE
&&
2931 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2932 # Use a double $ so make ignores it.
2933 test "$program_suffix" != NONE
&&
2934 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2935 # Double any \ or $.
2936 # By default was `s,x,x', remove it if useless.
2937 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2938 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2940 # Expand $ac_aux_dir to an absolute path.
2941 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2943 if test x
"${MISSING+set}" != xset
; then
2946 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2948 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2951 # Use eval to expand $SHELL
2952 if eval "$MISSING --is-lightweight"; then
2953 am_missing_run
="$MISSING "
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2957 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2960 if test x
"${install_sh+set}" != xset
; then
2963 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2965 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2969 # Installed binaries are usually stripped using 'strip' when the user
2970 # run "make install-strip". However 'strip' might not be the right
2971 # tool to use in cross-compilation environments, therefore Automake
2972 # will honor the 'STRIP' environment variable to overrule this program.
2973 if test "$cross_compiling" != no
; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2976 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_STRIP+:} false
; then :
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$STRIP"; then
2983 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir
=.
2990 for ac_exec_ext
in '' $ac_executable_extensions; do
2991 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 STRIP
=$ac_cv_prog_STRIP
3003 if test -n "$STRIP"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3005 $as_echo "$STRIP" >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3013 if test -z "$ac_cv_prog_STRIP"; then
3015 # Extract the first word of "strip", so it can be a program name with args.
3016 set dummy strip
; ac_word
=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3020 $as_echo_n "(cached) " >&6
3022 if test -n "$ac_ct_STRIP"; then
3023 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir
=.
3030 for ac_exec_ext
in '' $ac_executable_extensions; do
3031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_ac_ct_STRIP
="strip"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3043 if test -n "$ac_ct_STRIP"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3045 $as_echo "$ac_ct_STRIP" >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3051 if test "x$ac_ct_STRIP" = x
; then
3054 case $cross_compiling:$ac_tool_warned in
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058 ac_tool_warned
=yes ;;
3063 STRIP
="$ac_cv_prog_STRIP"
3067 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3070 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3071 if test -z "$MKDIR_P"; then
3072 if ${ac_cv_path_mkdir+:} false
; then :
3073 $as_echo_n "(cached) " >&6
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3076 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3079 test -z "$as_dir" && as_dir
=.
3080 for ac_prog
in mkdir gmkdir
; do
3081 for ac_exec_ext
in '' $ac_executable_extensions; do
3082 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3083 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3084 'mkdir (GNU coreutils) '* | \
3085 'mkdir (coreutils) '* | \
3086 'mkdir (fileutils) '4.1*)
3087 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3097 test -d .
/--version && rmdir .
/--version
3098 if test "${ac_cv_path_mkdir+set}" = set; then
3099 MKDIR_P
="$ac_cv_path_mkdir -p"
3101 # As a last resort, use the slow shell script. Don't cache a
3102 # value for MKDIR_P within a source directory, because that will
3103 # break other packages using the cache if that directory is
3104 # removed, or if the value is a relative name.
3105 MKDIR_P
="$ac_install_sh -d"
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3109 $as_echo "$MKDIR_P" >&6; }
3111 for ac_prog
in gawk mawk nawk
awk
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy
$ac_prog; ac_word
=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_AWK+:} false
; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$AWK"; then
3121 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir
=.
3128 for ac_exec_ext
in '' $ac_executable_extensions; do
3129 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_AWK
="$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test -n "$AWK"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3143 $as_echo "$AWK" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3150 test -n "$AWK" && break
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3154 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3156 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3157 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3158 $as_echo_n "(cached) " >&6
3160 cat >conftest.
make <<\_ACEOF
3163 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3165 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3166 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3168 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3170 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3174 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176 $as_echo "yes" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 SET_MAKE
="MAKE=${MAKE-make}"
3184 rm -rf .tst
2>/dev
/null
3185 mkdir .tst
2>/dev
/null
3186 if test -d .tst
; then
3191 rmdir .tst
2>/dev
/null
3193 # Check whether --enable-silent-rules was given.
3194 if test "${enable_silent_rules+set}" = set; then :
3195 enableval
=$enable_silent_rules;
3198 case $enable_silent_rules in # (((
3199 yes) AM_DEFAULT_VERBOSITY
=0;;
3200 no
) AM_DEFAULT_VERBOSITY
=1;;
3201 *) AM_DEFAULT_VERBOSITY
=1;;
3203 am_make
=${MAKE-make}
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3205 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3206 if ${am_cv_make_support_nested_variables+:} false
; then :
3207 $as_echo_n "(cached) " >&6
3209 if $as_echo 'TRUE=$(BAR$(V))
3215 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3216 am_cv_make_support_nested_variables
=yes
3218 am_cv_make_support_nested_variables
=no
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3222 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3223 if test $am_cv_make_support_nested_variables = yes; then
3225 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3227 AM_V
=$AM_DEFAULT_VERBOSITY
3228 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3232 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3233 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3234 # is not polluted with repeated "-I."
3235 am__isrc
=' -I$(srcdir)'
3236 # test to see if srcdir already configured
3237 if test -f $srcdir/config.status
; then
3238 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3242 # test whether we have cygpath
3243 if test -z "$CYGPATH_W"; then
3244 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3245 CYGPATH_W
='cygpath -w'
3252 # Define the identity of the package.
3257 cat >>confdefs.h
<<_ACEOF
3258 #define PACKAGE "$PACKAGE"
3262 cat >>confdefs.h
<<_ACEOF
3263 #define VERSION "$VERSION"
3266 # Some tools Automake needs.
3268 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3271 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3274 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3277 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3280 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3282 # For better backward compatibility. To be removed once Automake 1.9.x
3283 # dies out for good. For more background, see:
3284 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3285 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3286 mkdir_p
='$(MKDIR_P)'
3288 # We need awk for the "check" target (and possibly the TAP driver). The
3289 # system "awk" is bad on some platforms.
3290 # Always define AMTAR for backward compatibility. Yes, it's still used
3291 # in the wild :-( We should find a proper way to deprecate it ...
3295 # We'll loop over all known methods to create a tar archive until one works.
3296 _am_tools
='gnutar pax cpio none'
3298 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3305 # POSIX will say in a future version that running "rm -f" with no argument
3306 # is OK; and we want to be able to make that assumption in our Makefile
3307 # recipes. So use an aggressive probe to check that the usage we want is
3308 # actually supported "in the wild" to an acceptable degree.
3309 # See automake bug#10828.
3310 # To make any issue more visible, cause the running configure to be aborted
3311 # by default if the 'rm' program in use doesn't match our expectations; the
3312 # user can still override this though.
3313 if rm -f && rm -fr && rm -rf; then : OK
; else
3317 Your 'rm' program seems unable to run without file operands specified
3318 on the command line, even when the '-f' option is present. This is contrary
3319 to the behaviour of most rm programs out there, and not conforming with
3320 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3322 Please tell bug-automake@gnu.org about your system, including the value
3323 of your $PATH and any error possibly output before this message. This
3324 can help us improve future automake versions.
3327 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3328 echo 'Configuration will proceed anyway, since you have set the' >&2
3329 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3333 Aborting the configuration process, to ensure you take notice of the issue.
3335 You can download and install GNU coreutils to get an 'rm' implementation
3336 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3338 If you want to complete the configuration process using your problematic
3339 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3340 to "yes", and re-run configure.
3343 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3348 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3349 # the configure and makefiles. Without it users doing things that
3350 # change the timestamps on the code, like checking it into a cvs
3351 # tree, could trigger a rebuild of the infrastructure files which
3352 # might fail if they don't have the correct tools.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3355 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3356 # Check whether --enable-maintainer-mode was given.
3357 if test "${enable_maintainer_mode+set}" = set; then :
3358 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3360 USE_MAINTAINER_MODE
=no
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3364 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3365 if test $USE_MAINTAINER_MODE = yes; then
3366 MAINTAINER_MODE_TRUE
=
3367 MAINTAINER_MODE_FALSE
='#'
3369 MAINTAINER_MODE_TRUE
='#'
3370 MAINTAINER_MODE_FALSE
=
3373 MAINT
=$MAINTAINER_MODE_TRUE
3377 # Make sure we can run config.sub.
3378 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3379 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3382 $as_echo_n "checking build system type... " >&6; }
3383 if ${ac_cv_build+:} false
; then :
3384 $as_echo_n "(cached) " >&6
3386 ac_build_alias
=$build_alias
3387 test "x$ac_build_alias" = x
&&
3388 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3389 test "x$ac_build_alias" = x
&&
3390 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3391 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3392 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3396 $as_echo "$ac_cv_build" >&6; }
3397 case $ac_cv_build in
3399 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3402 ac_save_IFS
=$IFS; IFS
='-'
3408 # Remember, the first character of IFS is used to create $*,
3409 # except with old shells:
3412 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3416 $as_echo_n "checking host system type... " >&6; }
3417 if ${ac_cv_host+:} false
; then :
3418 $as_echo_n "(cached) " >&6
3420 if test "x$host_alias" = x
; then
3421 ac_cv_host
=$ac_cv_build
3423 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3424 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3429 $as_echo "$ac_cv_host" >&6; }
3432 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3435 ac_save_IFS
=$IFS; IFS
='-'
3441 # Remember, the first character of IFS is used to create $*,
3442 # except with old shells:
3445 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3449 # We want to turn on warnings if we are using gcc and the user did
3450 # not specify CFLAGS. The autoconf check for the C compiler sets the
3451 # CFLAGS if gcc is used, so we will save it before we run that check.
3452 SAVE_CFLAGS
="$CFLAGS"
3454 # Now find our C compiler.
3456 ac_cpp
='$CPP $CPPFLAGS'
3457 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3462 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false
; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC
="$CC" # Let the user override the test.
3471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir
=.
3476 for ac_exec_ext
in '' $ac_executable_extensions; do
3477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3499 if test -z "$ac_cv_prog_CC"; then
3501 # Extract the first word of "gcc", so it can be a program name with args.
3502 set dummy gcc
; ac_word
=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir
=.
3516 for ac_exec_ext
in '' $ac_executable_extensions; do
3517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_ac_ct_CC
="gcc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3529 if test -n "$ac_ct_CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3531 $as_echo "$ac_ct_CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3537 if test "x$ac_ct_CC" = x
; then
3540 case $cross_compiling:$ac_tool_warned in
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544 ac_tool_warned
=yes ;;
3552 if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_CC+:} false
; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC
="$CC" # Let the user override the test.
3564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir
=.
3569 for ac_exec_ext
in '' $ac_executable_extensions; do
3570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3593 if test -z "$CC"; then
3594 # Extract the first word of "cc", so it can be a program name with args.
3595 set dummy cc
; ac_word
=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if ${ac_cv_prog_CC+:} false
; then :
3599 $as_echo_n "(cached) " >&6
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC
="$CC" # Let the user override the test.
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_exec_ext
in '' $ac_executable_extensions; do
3611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3613 ac_prog_rejected
=yes
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 if test $ac_prog_rejected = yes; then
3625 # We found a bogon in the path, so make sure we never use it.
3626 set dummy
$ac_cv_prog_CC
3628 if test $# != 0; then
3629 # We chose a different compiler from the bogus one.
3630 # However, it has the same basename, so the bogon will be chosen
3631 # first if we set CC to just the basename; use the full file name.
3633 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3649 if test -z "$CC"; then
3650 if test -n "$ac_tool_prefix"; then
3651 for ac_prog
in cl.exe
3653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if ${ac_cv_prog_CC+:} false
; then :
3658 $as_echo_n "(cached) " >&6
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC
="$CC" # Let the user override the test.
3663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir
=.
3668 for ac_exec_ext
in '' $ac_executable_extensions; do
3669 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3690 test -n "$CC" && break
3693 if test -z "$CC"; then
3695 for ac_prog
in cl.exe
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy
$ac_prog; ac_word
=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3702 $as_echo_n "(cached) " >&6
3704 if test -n "$ac_ct_CC"; then
3705 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir
=.
3712 for ac_exec_ext
in '' $ac_executable_extensions; do
3713 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_CC
="$ac_prog"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3725 if test -n "$ac_ct_CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3727 $as_echo "$ac_ct_CC" >&6; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3734 test -n "$ac_ct_CC" && break
3737 if test "x$ac_ct_CC" = x
; then
3740 case $cross_compiling:$ac_tool_warned in
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned
=yes ;;
3753 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $?
"no acceptable C compiler found in \$PATH
3756 See \`config.log' for more details" "$LINENO" 5; }
3758 # Provide some information about the compiler.
3759 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3762 for ac_option
in --version -v -V -qversion; do
3763 { { ac_try
="$ac_compiler $ac_option >&5"
3765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3772 if test -s conftest.err; then
3774 ... rest of stderr output deleted ...
3775 10q' conftest.err >conftest.er1
3776 cat conftest.er1 >&5
3778 rm -f conftest.er1 conftest.err
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3794 ac_clean_files_save=$ac_clean_files
3795 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3796 # Try to create an executable without -o first, disregard a.out.
3797 # It will help us diagnose broken compilers, and finding out an intuition
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3800 $as_echo_n "checking whether the C compiler works... " >&6; }
3801 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3803 # The possible output files:
3804 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3807 for ac_file in $ac_files
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3816 if { { ac_try="$ac_link_default"
3818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3819 *) ac_try_echo
=$ac_try;;
3821 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link_default") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3830 # so that the user can short-circuit this test for compilers unknown to
3832 for ac_file
in $ac_files ''
3834 test -f "$ac_file" ||
continue
3836 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3839 # We found the default executable, but exeext='' is most
3843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3845 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3847 # We set ac_cv_exeext here because the later test for it is not
3848 # safe: cross compilers may not add the suffix if given an `-o'
3849 # argument, so we may need to know it at that point already.
3850 # Even if this section looks crufty: it has the advantage of
3857 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3862 if test -z "$ac_file"; then :
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 $as_echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.
$ac_ext >&5
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error
77 "C compiler cannot create executables
3871 See \`config.log' for more details" "$LINENO" 5; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 $as_echo "yes" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3877 $as_echo_n "checking for C compiler default output file name... " >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3879 $as_echo "$ac_file" >&6; }
3880 ac_exeext
=$ac_cv_exeext
3882 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3883 ac_clean_files
=$ac_clean_files_save
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3885 $as_echo_n "checking for suffix of executables... " >&6; }
3886 if { { ac_try
="$ac_link"
3888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 $as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_link") 2>&5
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }; then :
3897 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3898 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3899 # work properly (i.e., refer to `conftest.exe'), while it won't with
3901 for ac_file
in conftest.exe conftest conftest.
*; do
3902 test -f "$ac_file" ||
continue
3904 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3905 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3914 See \`config.log' for more details" "$LINENO" 5; }
3916 rm -f conftest conftest
$ac_cv_exeext
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3918 $as_echo "$ac_cv_exeext" >&6; }
3920 rm -f conftest.
$ac_ext
3921 EXEEXT
=$ac_cv_exeext
3923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3929 FILE *f = fopen ("conftest.out", "w");
3930 return ferror (f) || fclose (f) != 0;
3936 ac_clean_files
="$ac_clean_files conftest.out"
3937 # Check that the compiler produces executables we can run. If not, either
3938 # the compiler is broken, or we cross compile.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3940 $as_echo_n "checking whether we are cross compiling... " >&6; }
3941 if test "$cross_compiling" != yes; then
3942 { { ac_try
="$ac_link"
3944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 $as_echo "$ac_try_echo"; } >&5
3949 (eval "$ac_link") 2>&5
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3953 if { ac_try='./conftest$ac_cv_exeext'
3954 { { case "(($ac_try" in
3955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3956 *) ac_try_echo
=$ac_try;;
3958 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_try") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; }; then
3966 if test "$cross_compiling" = maybe
; then
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error $?
"cannot run C compiled programs.
3972 If you meant to cross compile, use \`--host'.
3973 See \`config.log' for more details" "$LINENO" 5; }
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3978 $as_echo "$cross_compiling" >&6; }
3980 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3981 ac_clean_files
=$ac_clean_files_save
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3983 $as_echo_n "checking for suffix of object files... " >&6; }
3984 if ${ac_cv_objext+:} false
; then :
3985 $as_echo_n "(cached) " >&6
3987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3998 rm -f conftest.o conftest.obj
3999 if { { ac_try
="$ac_compile"
4001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_compile") 2>&5
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 for ac_file in conftest.o conftest.obj conftest.*; do
4011 test -f "$ac_file" || continue;
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4014 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4019 $as_echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4025 See \
`config.log' for more details" "$LINENO" 5; }
4027 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4030 $as_echo "$ac_cv_objext" >&6; }
4031 OBJEXT=$ac_cv_objext
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4034 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4035 if ${ac_cv_c_compiler_gnu+:} false; then :
4036 $as_echo_n "(cached) " >&6
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4052 if ac_fn_c_try_compile "$LINENO"; then :
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4062 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4063 if test $ac_compiler_gnu = yes; then
4068 ac_test_CFLAGS=${CFLAGS+set}
4069 ac_save_CFLAGS=$CFLAGS
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4071 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4072 if ${ac_cv_prog_cc_g+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 ac_save_c_werror_flag=$ac_c_werror_flag
4076 ac_c_werror_flag=yes
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4090 if ac_fn_c_try_compile "$LINENO"; then :
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4105 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_c_werror_flag=$ac_save_c_werror_flag
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4121 if ac_fn_c_try_compile "$LINENO"; then :
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 ac_c_werror_flag=$ac_save_c_werror_flag
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4132 $as_echo "$ac_cv_prog_cc_g" >&6; }
4133 if test "$ac_test_CFLAGS" = set; then
4134 CFLAGS=$ac_save_CFLAGS
4135 elif test $ac_cv_prog_cc_g = yes; then
4136 if test "$GCC" = yes; then
4142 if test "$GCC" = yes; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4149 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4150 if ${ac_cv_prog_cc_c89+:} false; then :
4151 $as_echo_n "(cached) " >&6
4153 ac_cv_prog_cc_c89=no
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4174 s = g (p, va_arg (v,int));
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 CC="$ac_save_CC $ac_arg"
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_c89=$ac_arg
4214 rm -f core conftest.err conftest.$ac_objext
4215 test "x$ac_cv_prog_cc_c89" != "xno" && break
4217 rm -f conftest.$ac_ext
4222 case "x$ac_cv_prog_cc_c89" in
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4225 $as_echo "none needed" >&6; } ;;
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228 $as_echo "unsupported" >&6; } ;;
4230 CC="$CC $ac_cv_prog_cc_c89"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4232 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4234 if test "x$ac_cv_prog_cc_c89" != xno; then :
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4250 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4251 if ${am_cv_prog_cc_c_o+:} false; then :
4252 $as_echo_n "(cached) " >&6
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4265 # Make sure it works both with $CC and with simple cc.
4266 # Following AC_PROG_CC_C_O, we do the test twice because some
4267 # compilers refuse to overwrite an existing .o file with -o,
4268 # though they will create one.
4269 am_cv_prog_cc_c_o=yes
4271 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4272 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } \
4276 && test -f conftest2.$ac_objext; then
4279 am_cv_prog_cc_c_o=no
4283 rm -f core conftest*
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4287 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4288 if test "$am_cv_prog_cc_c_o" != yes; then
4289 # Losing compiler, so override with the script.
4290 # FIXME: It is wrong to rewrite CC.
4291 # But if we don't then we get into trouble of one sort or another.
4292 # A longer-term fix would be to have automake use am__CC in this case,
4293 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4294 CC="$am_aux_dir/compile $CC"
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 DEPDIR="${am__leading_dot}deps"
4304 ac_config_commands="$ac_config_commands depfiles"
4307 am_make=${MAKE-make}
4308 cat > confinc << 'END'
4310 @echo this is the am__doit target
4313 # If we don't find an include directive, just comment out the code.
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4315 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4319 # First try GNU make style include.
4320 echo "include confinc" > confmf
4321 # Ignore all kinds of additional output from 'make'.
4322 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4323 *the\ am__doit\ target*)
4329 # Now try BSD make style include.
4330 if test "$am__include" = "#"; then
4331 echo '.include "confinc"' > confmf
4332 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4333 *the\ am__doit\ target*)
4334 am__include=.include
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4343 $as_echo "$_am_result" >&6; }
4344 rm -f confinc confmf
4346 # Check whether --enable-dependency-tracking was given.
4347 if test "${enable_dependency_tracking+set}" = set; then :
4348 enableval=$enable_dependency_tracking;
4351 if test "x$enable_dependency_tracking" != xno; then
4352 am_depcomp="$ac_aux_dir/depcomp"
4356 if test "x$enable_dependency_tracking" != xno; then
4366 depcc="$CC" am_compiler_list=
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4369 $as_echo_n "checking dependency style of $depcc... " >&6; }
4370 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4371 $as_echo_n "(cached) " >&6
4373 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4374 # We make a subdir and do the tests there. Otherwise we can end up
4375 # making bogus files that we don't know about and never remove. For
4376 # instance it was reported that on HP-UX the gcc test will end up
4377 # making a dummy file named 'D' -- because '-MD' means "put the output
4381 # Copy depcomp to subdir because otherwise we won't find it if we're
4382 # using a relative directory.
4383 cp "$am_depcomp" conftest.dir
4385 # We will build objects and dependencies in a subdirectory because
4386 # it helps to detect inapplicable dependency modes. For instance
4387 # both Tru64's cc and ICC support -MD to output dependencies as a
4388 # side effect of compilation, but ICC will put the dependencies in
4389 # the current directory while Tru64 will put them in the object
4393 am_cv_CC_dependencies_compiler_type=none
4394 if test "$am_compiler_list" = ""; then
4395 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4398 case " $depcc " in #(
4399 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4402 for depmode in $am_compiler_list; do
4403 # Setup a source with many dependencies, because some compilers
4404 # like to wrap large dependency lists on column 80 (with \), and
4405 # we should not choose a depcomp mode which is confused by this.
4407 # We need to recreate these files for each test, as the compiler may
4408 # overwrite some of them when testing with obscure command lines.
4409 # This happens at least with the AIX C compiler.
4411 for i in 1 2 3 4 5 6; do
4412 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4413 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4414 # Solaris 10 /bin/sh.
4415 echo '/* dummy */' > sub/conftst$i.h
4417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4419 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4420 # mode. It turns out that the SunPro C++ compiler does not properly
4421 # handle '-M -o', and we need to detect this. Also, some Intel
4422 # versions had trouble with output in subdirs.
4423 am__obj=sub/conftest.${OBJEXT-o}
4424 am__minus_obj="-o $am__obj"
4427 # This depmode causes a compiler race in universal mode.
4428 test "$am__universal" = false || continue
4431 # After this tag, mechanisms are not by side-effect, so they'll
4432 # only be used when explicitly requested.
4433 if test "x$enable_dependency_tracking" = xyes; then
4439 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4440 # This compiler won't grok '-c -o', but also, the minuso test has
4441 # not run yet. These depmodes are late enough in the game, and
4442 # so weak that their functioning should not be impacted.
4443 am__obj=conftest.${OBJEXT-o}
4448 if depmode=$depmode \
4449 source=sub/conftest.c object=$am__obj \
4450 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4451 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4452 >/dev/null 2>conftest.err &&
4453 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4455 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4457 # icc doesn't choke on unknown options, it will just issue warnings
4458 # or remarks (even with -Werror). So we grep stderr for any message
4459 # that says an option was ignored or not supported.
4460 # When given -MP, icc 7.0 and 7.1 complain thusly:
4461 # icc: Command line warning: ignoring option '-M'; no argument required
4462 # The diagnosis changed in icc 8.0:
4463 # icc: Command line remark: option '-MP' not supported
4464 if (grep 'ignoring option' conftest.err ||
4465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4466 am_cv_CC_dependencies_compiler_type=$depmode
4475 am_cv_CC_dependencies_compiler_type=none
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4480 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4484 test "x$enable_dependency_tracking" != xno \
4485 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4487 am__fastdepCC_FALSE='#'
4489 am__fastdepCC_TRUE='#'
4490 am__fastdepCC_FALSE=
4495 # Suppress warnings about --datarootdir
4498 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4499 # user did not specify any flags. Add warnings in this case.
4500 if test "$GCC" = "yes"; then
4501 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4502 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4506 # We can have some flags to pass to bind configure
4508 if test "$cross_compiling" = "yes"; then
4509 BINDCONFIG="--host=$host"
4511 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4512 # and as there can be a space inside an argument some magic is required.
4513 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4514 eval "set my_configure_args $ac_configure_args"
4515 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4517 # iterate on arguments and copying 'arg' when it begins by an upper case
4521 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4526 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4527 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4528 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4529 # Socket API were designed to be used but we have to live with it.
4530 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4538 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4539 # On Suns, sometimes $CPP names a directory.
4540 if test -n "$CPP" && test -d "$CPP"; then
4543 if test -z "$CPP"; then
4544 if ${ac_cv_prog_CPP+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 # Double quotes because CPP needs to be expanded
4548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4551 for ac_c_preproc_warn_flag in '' yes
4553 # Use a header file that comes with gcc, so configuring glibc
4554 # with a fresh cross-compiler works.
4555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556 # <limits.h> exists even on freestanding compilers.
4557 # On the NeXT, cc -E runs the code through the compiler's parser,
4558 # not just through cpp. "Syntax error" is here to catch this case.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4562 # include <limits.h>
4564 # include <assert.h>
4568 if ac_fn_c_try_cpp "$LINENO"; then :
4571 # Broken: fails on valid input.
4574 rm -f conftest.err conftest.i conftest.$ac_ext
4576 # OK, works on sane cases. Now check whether nonexistent headers
4577 # can be detected and how.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #include <ac_nonexistent.h>
4582 if ac_fn_c_try_cpp "$LINENO"; then :
4583 # Broken: success on invalid input.
4586 # Passes both tests.
4590 rm -f conftest.err conftest.i conftest.$ac_ext
4593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594 rm -f conftest.i conftest.err conftest.
$ac_ext
4595 if $ac_preproc_ok; then :
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4608 $as_echo "$CPP" >&6; }
4610 for ac_c_preproc_warn_flag
in '' yes
4612 # Use a header file that comes with gcc, so configuring glibc
4613 # with a fresh cross-compiler works.
4614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 # <limits.h> exists even on freestanding compilers.
4616 # On the NeXT, cc -E runs the code through the compiler's parser,
4617 # not just through cpp. "Syntax error" is here to catch this case.
4618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4621 # include <limits.h>
4623 # include <assert.h>
4627 if ac_fn_c_try_cpp
"$LINENO"; then :
4630 # Broken: fails on valid input.
4633 rm -f conftest.err conftest.i conftest.
$ac_ext
4635 # OK, works on sane cases. Now check whether nonexistent headers
4636 # can be detected and how.
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <ac_nonexistent.h>
4641 if ac_fn_c_try_cpp
"$LINENO"; then :
4642 # Broken: success on invalid input.
4645 # Passes both tests.
4649 rm -f conftest.err conftest.i conftest.
$ac_ext
4652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653 rm -f conftest.i conftest.err conftest.
$ac_ext
4654 if $ac_preproc_ok; then :
4657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4659 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4660 See \`config.log' for more details" "$LINENO" 5; }
4664 ac_cpp
='$CPP $CPPFLAGS'
4665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672 if ${ac_cv_path_GREP+:} false
; then :
4673 $as_echo_n "(cached) " >&6
4675 if test -z "$GREP"; then
4676 ac_path_GREP_found
=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4679 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4682 test -z "$as_dir" && as_dir
=.
4683 for ac_prog
in grep ggrep
; do
4684 for ac_exec_ext
in '' $ac_executable_extensions; do
4685 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p
"$ac_path_GREP" ||
continue
4687 # Check for GNU ac_path_GREP and select it if it is found.
4688 # Check for GNU $ac_path_GREP
4689 case `"$ac_path_GREP" --version 2>&1` in
4691 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4694 $as_echo_n 0123456789 >"conftest.in"
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'GREP' >> "conftest.nl"
4701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4702 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4703 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_GREP
="$ac_path_GREP"
4707 ac_path_GREP_max
=$ac_count
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4712 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4715 $ac_path_GREP_found && break 3
4720 if test -z "$ac_cv_path_GREP"; then
4721 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 ac_cv_path_GREP
=$GREP
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729 $as_echo "$ac_cv_path_GREP" >&6; }
4730 GREP
="$ac_cv_path_GREP"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734 $as_echo_n "checking for egrep... " >&6; }
4735 if ${ac_cv_path_EGREP+:} false
; then :
4736 $as_echo_n "(cached) " >&6
4738 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4739 then ac_cv_path_EGREP
="$GREP -E"
4741 if test -z "$EGREP"; then
4742 ac_path_EGREP_found
=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4745 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4748 test -z "$as_dir" && as_dir
=.
4749 for ac_prog
in egrep; do
4750 for ac_exec_ext
in '' $ac_executable_extensions; do
4751 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4752 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4753 # Check for GNU ac_path_EGREP and select it if it is found.
4754 # Check for GNU $ac_path_EGREP
4755 case `"$ac_path_EGREP" --version 2>&1` in
4757 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4760 $as_echo_n 0123456789 >"conftest.in"
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'EGREP' >> "conftest.nl"
4767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4768 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4769 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_EGREP
="$ac_path_EGREP"
4773 ac_path_EGREP_max
=$ac_count
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4778 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4781 $ac_path_EGREP_found && break 3
4786 if test -z "$ac_cv_path_EGREP"; then
4787 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 ac_cv_path_EGREP
=$EGREP
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796 $as_echo "$ac_cv_path_EGREP" >&6; }
4797 EGREP
="$ac_cv_path_EGREP"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4801 $as_echo_n "checking for ANSI C header files... " >&6; }
4802 if ${ac_cv_header_stdc+:} false
; then :
4803 $as_echo_n "(cached) " >&6
4805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4820 if ac_fn_c_try_compile
"$LINENO"; then :
4821 ac_cv_header_stdc
=yes
4823 ac_cv_header_stdc
=no
4825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4827 if test $ac_cv_header_stdc = yes; then
4828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835 $EGREP "memchr" >/dev
/null
2>&1; then :
4838 ac_cv_header_stdc
=no
4844 if test $ac_cv_header_stdc = yes; then
4845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4852 $EGREP "free" >/dev
/null
2>&1; then :
4855 ac_cv_header_stdc
=no
4861 if test $ac_cv_header_stdc = yes; then
4862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4863 if test "$cross_compiling" = yes; then :
4866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4870 #if ((' ' & 0x0FF) == 0x020)
4871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4874 # define ISLOWER(c) \
4875 (('a' <= (c) && (c) <= 'i') \
4876 || ('j' <= (c) && (c) <= 'r') \
4877 || ('s' <= (c) && (c) <= 'z'))
4878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4886 for (i = 0; i < 256; i++)
4887 if (XOR (islower (i), ISLOWER (i))
4888 || toupper (i) != TOUPPER (i))
4893 if ac_fn_c_try_run
"$LINENO"; then :
4896 ac_cv_header_stdc
=no
4898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4905 $as_echo "$ac_cv_header_stdc" >&6; }
4906 if test $ac_cv_header_stdc = yes; then
4908 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4912 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4913 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4914 inttypes.h stdint.h unistd.h
4916 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4917 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4919 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4920 cat >>confdefs.h
<<_ACEOF
4921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4930 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4931 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4938 if test "$MINIX" = yes; then
4940 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4943 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4946 $as_echo "#define _MINIX 1" >>confdefs.h
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4952 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4953 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4954 $as_echo_n "(cached) " >&6
4956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4959 # define __EXTENSIONS__ 1
4960 $ac_includes_default
4969 if ac_fn_c_try_compile
"$LINENO"; then :
4970 ac_cv_safe_to_define___extensions__
=yes
4972 ac_cv_safe_to_define___extensions__
=no
4974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4977 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4978 test $ac_cv_safe_to_define___extensions__ = yes &&
4979 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4981 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4983 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4985 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4987 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4991 if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4993 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if ${ac_cv_prog_RANLIB+:} false
; then :
4997 $as_echo_n "(cached) " >&6
4999 if test -n "$RANLIB"; then
5000 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir
=.
5007 for ac_exec_ext
in '' $ac_executable_extensions; do
5008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 RANLIB
=$ac_cv_prog_RANLIB
5020 if test -n "$RANLIB"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5022 $as_echo "$RANLIB" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5030 if test -z "$ac_cv_prog_RANLIB"; then
5031 ac_ct_RANLIB
=$RANLIB
5032 # Extract the first word of "ranlib", so it can be a program name with args.
5033 set dummy ranlib
; ac_word
=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5037 $as_echo_n "(cached) " >&6
5039 if test -n "$ac_ct_RANLIB"; then
5040 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir
=.
5047 for ac_exec_ext
in '' $ac_executable_extensions; do
5048 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5060 if test -n "$ac_ct_RANLIB"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5062 $as_echo "$ac_ct_RANLIB" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5068 if test "x$ac_ct_RANLIB" = x
; then
5071 case $cross_compiling:$ac_tool_warned in
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned
=yes ;;
5077 RANLIB
=$ac_ct_RANLIB
5080 RANLIB
="$ac_cv_prog_RANLIB"
5084 # Extract the first word of "ar", so it can be a program name with args.
5085 set dummy
ar; ac_word
=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_AR+:} false
; then :
5089 $as_echo_n "(cached) " >&6
5093 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir
=.
5101 for ac_exec_ext
in '' $ac_executable_extensions; do
5102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 if test -n "$AR"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5117 $as_echo "$AR" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5126 if test "X$AR" = "X"; then
5128 ar program not found. Please fix your PATH to include the directory in
5129 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5132 ac_config_headers
="$ac_config_headers includes/config.h"
5135 # we sometimes need to know byte order for building packets
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5137 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5138 if ${ac_cv_c_bigendian+:} false
; then :
5139 $as_echo_n "(cached) " >&6
5141 ac_cv_c_bigendian
=unknown
5142 # See if we're dealing with a universal compiler.
5143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #ifndef __APPLE_CC__
5146 not a universal capable compiler
5151 if ac_fn_c_try_compile
"$LINENO"; then :
5153 # Check for potential -arch flags. It is not universal unless
5154 # there are at least two -arch flags with different values.
5157 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5158 if test -n "$ac_prev"; then
5160 i?
86 | x86_64 | ppc | ppc64
)
5161 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5164 ac_cv_c_bigendian
=universal
5170 elif test "x$ac_word" = "x-arch"; then
5175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5176 if test $ac_cv_c_bigendian = unknown
; then
5177 # See if sys/param.h defines the BYTE_ORDER macro.
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <sys/types.h>
5181 #include <sys/param.h>
5186 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5187 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5196 if ac_fn_c_try_compile
"$LINENO"; then :
5197 # It does; now see whether it defined to BIG_ENDIAN or not.
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <sys/types.h>
5201 #include <sys/param.h>
5206 #if BYTE_ORDER != BIG_ENDIAN
5214 if ac_fn_c_try_compile
"$LINENO"; then :
5215 ac_cv_c_bigendian
=yes
5217 ac_cv_c_bigendian
=no
5219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5223 if test $ac_cv_c_bigendian = unknown
; then
5224 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5232 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5240 if ac_fn_c_try_compile
"$LINENO"; then :
5241 # It does; now see whether it defined to _BIG_ENDIAN or not.
5242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5257 if ac_fn_c_try_compile
"$LINENO"; then :
5258 ac_cv_c_bigendian
=yes
5260 ac_cv_c_bigendian
=no
5262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5266 if test $ac_cv_c_bigendian = unknown
; then
5267 # Compile a test program.
5268 if test "$cross_compiling" = yes; then :
5269 # Try to guess by grepping values from an object file.
5270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 short int ascii_mm[] =
5273 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5274 short int ascii_ii[] =
5275 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5276 int use_ascii (int i) {
5277 return ascii_mm[i] + ascii_ii[i];
5279 short int ebcdic_ii[] =
5280 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5281 short int ebcdic_mm[] =
5282 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5283 int use_ebcdic (int i) {
5284 return ebcdic_mm[i] + ebcdic_ii[i];
5291 return use_ascii (foo) == use_ebcdic (foo);
5296 if ac_fn_c_try_compile
"$LINENO"; then :
5297 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5298 ac_cv_c_bigendian
=yes
5300 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5301 if test "$ac_cv_c_bigendian" = unknown
; then
5302 ac_cv_c_bigendian
=no
5304 # finding both strings is unlikely to happen, but who knows?
5305 ac_cv_c_bigendian
=unknown
5309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 $ac_includes_default
5318 /* Are we little or big endian? From Harbison&Steele. */
5322 char c[sizeof (long int)];
5325 return u.c[sizeof (long int) - 1] == 1;
5331 if ac_fn_c_try_run
"$LINENO"; then :
5332 ac_cv_c_bigendian
=no
5334 ac_cv_c_bigendian
=yes
5336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5343 $as_echo "$ac_cv_c_bigendian" >&6; }
5344 case $ac_cv_c_bigendian in #(
5346 byte_order
=BIG_ENDIAN
5349 byte_order
=LITTLE_ENDIAN
5353 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5357 as_fn_error $?
"unknown endianness
5358 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5362 cat >>confdefs.h
<<_ACEOF
5363 #define DHCP_BYTE_ORDER $byte_order
5367 # Optional compile-time DEBUGging.
5368 # Check whether --enable-debug was given.
5369 if test "${enable_debug+set}" = set; then :
5370 enableval
=$enable_debug; case "${enableval}" in
5371 yes) enable_debug
=yes
5373 $as_echo "#define DEBUG 1" >>confdefs.h
5375 # Just override CFLAGS totally to remove optimization.
5377 no
) enable_debug
=no
;;
5378 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5385 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5386 # but I don't want to pollute the --help space.
5388 #/* #define DEBUG_TOKENS */
5389 #/* #define DEBUG_PACKET */
5390 #/* #define DEBUG_EXPRESSIONS */
5391 #/* #define DEBUG_FIND_LEASE */
5392 #/* #define DEBUG_EXPRESSION_PARSE */
5393 #/* #define DEBUG_CLASS_MATCHING */
5394 #/* #define DEBUG_MEMORY_LEAKAGE */
5395 #/* #define DEBUG_MALLOC_POOL */
5396 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5397 #/* #define DEBUG_RC_HISTORY */
5398 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5399 #/* #define RC_HISTORY_MAX 10240 */
5400 #/* #define POINTER_DEBUG */
5401 #/* #define DEBUG_FAILOVER_MESSAGES */
5402 #/* #define DEBUG_FAILOVER_TIMING */
5403 #/* #define DEBUG_DUMP_ALL_LEASES */
5405 # Failover optional compile-time feature.
5406 # Check whether --enable-failover was given.
5407 if test "${enable_failover+set}" = set; then :
5408 enableval
=$enable_failover;
5411 # Failover is on by default, so define if it is not explicitly disabled.
5412 if test "$enable_failover" != "no"; then
5413 enable_failover
="yes"
5415 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5419 # execute() support.
5420 # Check whether --enable-execute was given.
5421 if test "${enable_execute+set}" = set; then :
5422 enableval
=$enable_execute;
5425 # execute() is on by default, so define if it is not explicitly disabled.
5426 if test "$enable_execute" != "no" ; then
5427 enable_execute
="yes"
5429 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5433 # Server tracing support.
5434 # Check whether --enable-tracing was given.
5435 if test "${enable_tracing+set}" = set; then :
5436 enableval
=$enable_tracing;
5439 # tracing is on by default, so define if it is not explicitly disabled.
5440 if test "$enable_tracing" != "no" ; then
5442 $as_echo "#define TRACING 1" >>confdefs.h
5446 # Delayed-ack feature support (experimental).
5447 # Check whether --enable-delayed_ack was given.
5448 if test "${enable_delayed_ack+set}" = set; then :
5449 enableval
=$enable_delayed_ack;
5452 if test "$enable_delayed_ack" = "yes"; then
5454 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5457 enable_delayed_ack
="no"
5460 # DHCPv6 optional compile-time feature.
5461 # Check whether --enable-dhcpv6 was given.
5462 if test "${enable_dhcpv6+set}" = set; then :
5463 enableval
=$enable_dhcpv6;
5466 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5467 if test "$enable_dhcpv6" != "no"; then
5470 $as_echo "#define DHCPv6 1" >>confdefs.h
5474 # DHCPv4o6 optional compile-time feature.
5475 # Check whether --enable-dhcpv4o6 was given.
5476 if test "${enable_dhcpv4o6+set}" = set; then :
5477 enableval
=$enable_dhcpv4o6;
5480 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5481 if test "$enable_dhcpv4o6" = "yes"; then
5482 # DHCPv4o6 requires DHCPv6
5483 if test "$enable_dhcpv6" = "no"; then
5484 as_fn_error $?
"dhcpv4o6 requires dhcpv6" "$LINENO" 5
5486 # DHCPv4o6 is not yet compatible with delayed-ack
5487 if test "$enable_delayed_ack" = "yes"; then
5488 as_fn_error $?
"dhcpv4o6 is not compatible with delayed-ack" "$LINENO" 5
5491 $as_echo "#define DHCP4o6 1" >>confdefs.h
5495 # PARANOIA is off by default (until we can test it with all features)
5496 # Check whether --enable-paranoia was given.
5497 if test "${enable_paranoia+set}" = set; then :
5498 enableval
=$enable_paranoia;
5501 # Check whether --enable-early_chroot was given.
5502 if test "${enable_early_chroot+set}" = set; then :
5503 enableval
=$enable_early_chroot;
5506 # If someone enables early chroot, but does not enable paranoia, do so for
5508 if test "$enable_paranoia" != "yes" && \
5509 test "$enable_early_chroot" = "yes" ; then
5510 enable_paranoia
="yes"
5513 if test "$enable_paranoia" = "yes" ; then
5515 $as_echo "#define PARANOIA 1" >>confdefs.h
5518 if test "$enable_early_chroot" = "yes" ; then
5520 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5524 # Check whether --enable-ipv4_pktinfo was given.
5525 if test "${enable_ipv4_pktinfo+set}" = set; then :
5526 enableval
=$enable_ipv4_pktinfo;
5530 if test "$enable_ipv4_pktinfo" = "yes"; then
5532 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5536 # Check whether --enable-use_sockets was given.
5537 if test "${enable_use_sockets+set}" = set; then :
5538 enableval
=$enable_use_sockets;
5542 if test "$enable_use_sockets" = "yes"; then
5544 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5548 # Try to hnadle incorrect byte order for secs field
5549 # This is off by default
5550 # Check whether --enable-secs_byteorder was given.
5551 if test "${enable_secs_byteorder+set}" = set; then :
5552 enableval
=$enable_secs_byteorder;
5556 if test "$enable_secs_byteorder" = "yes" ; then
5558 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5562 # Include the PID in the log messages. This is useful when there may
5563 # be multiple instances of a program.
5564 # This is off by default
5565 # Check whether --enable-log_pid was given.
5566 if test "${enable_log_pid+set}" = set; then :
5567 enableval
=$enable_log_pid;
5570 if test "$enable_log_pid" = "yes" ; then
5572 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5576 # Allow for binary search when inserting v4 leases into queues
5577 # Check whether --enable-binary_leases was given.
5578 if test "${enable_binary_leases+set}" = set; then :
5579 enableval
=$enable_binary_leases;
5582 # binary_leases is off by default.
5583 if test "$enable_binary_leases" = "yes"; then
5585 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5588 enable_binary_leases
="no"
5593 DISTCHECK_ATF_CONFIGURE_FLAG
=
5596 # Check whether --with-atf was given.
5597 if test "${with_atf+set}" = set; then :
5598 withval
=$with_atf; atf_path
="$withval"
5601 if test "$atf_path" = "bind"; then
5609 if test "$atf_path" = "bind" ; then
5610 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=bind"
5612 atf_path
="\${top_srcdir}/bind/atf"
5613 ATF_CFLAGS
="-I$atf_path/include -DUNIT_TEST"
5614 ATF_LDFLAGS
="-L$atf_path/lib -latf-c"
5615 ATF_BIN
=`cd $srcdir; pwd`/bind
/atf
/bin
5619 BINDCONFIG
="$BINDCONFIG --with-atf"
5620 elif test "$atf_path" != "no" ; then
5621 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=$atf_path"
5622 # Config path for pkg-config
5624 if test "$atf_path" != "yes" ; then
5625 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5626 atf_pcp
=$atf_path/lib
/pkgconfig
5627 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5628 atf_pcp
=$atf_path/lib64
/pkgconfig
5631 # Not specified, try some common paths
5632 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5635 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5636 atf_pcp
=$d/lib
/pkgconfig
5638 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5639 atf_pcp
=$d/lib64
/pkgconfig
5645 if test "$atf_pcp" = "" ; then
5646 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5648 # Extract the first word of "pkg-config", so it can be a program name with args.
5649 set dummy pkg-config
; ac_word
=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if ${ac_cv_prog_pkgcfg_found+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5655 if test -n "$pkgcfg_found"; then
5656 ac_cv_prog_pkgcfg_found
="$pkgcfg_found" # Let the user override the test.
5658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir
=.
5663 for ac_exec_ext
in '' $ac_executable_extensions; do
5664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_pkgcfg_found
="pkg-config"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 pkgcfg_found
=$ac_cv_prog_pkgcfg_found
5676 if test -n "$pkgcfg_found"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5678 $as_echo "$pkgcfg_found" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5685 if test "$pkgcfg_found" = ""; then
5686 as_fn_error $?
"Could not locate ATF, pkg-config not installed" "$LINENO" 5
5688 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5689 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5690 if test -f $atf_pcp/atf-sh.pc
; then
5691 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5693 # older versions don't have atf-sh, try usual place
5694 ATF_BIN
=$atf_path/bin
5697 if test ! -x $ATF_BIN/atf-run
-o ! -x $ATF_BIN/atf-report
; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run/atf-report not found, assuming they are in your path" >&5
5699 $as_echo "$as_me: WARNING: atf-run/atf-report not found, assuming they are in your path" >&2;}
5708 if test "$atf_pcp" != ""; then
5716 if test -z "$HAVE_ATF_TRUE"; then :
5718 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5724 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5725 ### need to look there and potentially overwrite by default (but not if
5726 ### the user configures an alternate value). LOCALSTATEDIR is totally
5727 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5728 ### they would be insane for suggesting it. We need to look in /var/for
5729 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5732 if test "x$prefix" = xNONE
; then
5733 $as_echo_n "checking for prefix by " >&6
5734 # Extract the first word of "dhcpd", so it can be a program name with args.
5735 set dummy dhcpd
; ac_word
=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5739 $as_echo_n "(cached) " >&6
5741 case $ac_prefix_program in
5743 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir
=.
5751 for ac_exec_ext
in '' $ac_executable_extensions; do
5752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5765 if test -n "$ac_prefix_program"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5767 $as_echo "$ac_prefix_program" >&6; }
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5774 if test -n "$ac_prefix_program"; then
5775 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5776 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5777 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5778 X"$ac_prefix_program" : 'X\(//\)$' \| \
5779 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5780 $as_echo X"$ac_prefix_program" |
5781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5798 prefix
=`$as_dirname -- "$prefix" ||
5799 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5800 X"$prefix" : 'X\(//\)[^/]' \| \
5801 X"$prefix" : 'X\(//\)$' \| \
5802 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5803 $as_echo X"$prefix" |
5804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5825 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5826 # /usr/local/var/no/one/has/this/please/stop/trying?
5827 case "$localstatedir" in
5833 # Default server configuration file.
5835 # Check whether --with-srv-conf-file was given.
5836 if test "${with_srv_conf_file+set}" = set; then :
5837 withval
=$with_srv_conf_file;
5838 cat >>confdefs.h
<<_ACEOF
5839 #define _PATH_DHCPD_CONF "$withval"
5845 # Allow specification of alternate state files
5847 # Check whether --with-srv-lease-file was given.
5848 if test "${with_srv_lease_file+set}" = set; then :
5849 withval
=$with_srv_lease_file;
5850 cat >>confdefs.h
<<_ACEOF
5851 #define _PATH_DHCPD_DB "$withval"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5858 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5859 if [ "x$with_srv_lease_file" = "x" ] ; then
5860 if [ -d "${localstatedir}/db" ] ; then
5861 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5862 elif [ -d "${localstatedir}/state" ] ; then
5863 if [ -d "${localstatedir}/state/dhcp" ] ; then
5864 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5866 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5868 elif [ -d "${localstatedir}/lib" ] ; then
5869 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5870 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5872 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5874 elif [ -d "${localstatedir}/etc" ] ; then
5875 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5877 with_srv_lease_file
="/etc/dhcpd.leases"
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5881 $as_echo "$with_srv_lease_file" >&6; }
5884 # Check whether --with-srv6-lease-file was given.
5885 if test "${with_srv6_lease_file+set}" = set; then :
5886 withval
=$with_srv6_lease_file;
5887 cat >>confdefs.h
<<_ACEOF
5888 #define _PATH_DHCPD6_DB "$withval"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5895 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5896 if [ "x$with_srv6_lease_file" = "x" ] ; then
5897 if [ -d "${localstatedir}/db" ] ; then
5898 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5899 elif [ -d "${localstatedir}/state" ] ; then
5900 if [ -d "${localstatedir}/state/dhcp" ] ; then
5901 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5903 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5905 elif [ -d "${localstatedir}/lib" ] ; then
5906 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5907 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5909 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5911 elif [ -d "${localstatedir}/etc" ] ; then
5912 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5914 with_srv6_lease_file
="/etc/dhcpd6.leases"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5918 $as_echo "$with_srv6_lease_file" >&6; }
5921 # Check whether --with-cli-lease-file was given.
5922 if test "${with_cli_lease_file+set}" = set; then :
5923 withval
=$with_cli_lease_file;
5924 cat >>confdefs.h
<<_ACEOF
5925 #define _PATH_DHCLIENT_DB "$withval"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5932 $as_echo_n "checking for dhclient.leases location... " >&6; }
5933 if [ "x$with_cli_lease_file" = "x" ] ; then
5934 if [ -d "${localstatedir}/db" ] ; then
5935 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5936 elif [ -d "${localstatedir}/state" ] ; then
5937 if [ -d "${localstatedir}/state/dhcp" ] ; then
5938 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5940 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5942 elif [ -d "${localstatedir}/lib" ] ; then
5943 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5944 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5946 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5948 elif [ -d "${localstatedir}/etc" ] ; then
5949 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5951 with_cli_lease_file
="/etc/dhclient.leases"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5955 $as_echo "$with_cli_lease_file" >&6; }
5958 # Check whether --with-cli6-lease-file was given.
5959 if test "${with_cli6_lease_file+set}" = set; then :
5960 withval
=$with_cli6_lease_file;
5961 cat >>confdefs.h
<<_ACEOF
5962 #define _PATH_DHCLIENT6_DB "$withval"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5969 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5970 if [ "x$with_cli6_lease_file" = "x" ] ; then
5971 if [ -d "${localstatedir}/db" ] ; then
5972 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5973 elif [ -d "${localstatedir}/state" ] ; then
5974 if [ -d "${localstatedir}/state/dhcp" ] ; then
5975 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5977 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5979 elif [ -d "${localstatedir}/lib" ] ; then
5980 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5981 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5983 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5985 elif [ -d "${localstatedir}/etc" ] ; then
5986 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5988 with_cli6_lease_file
="/etc/dhclient6.leases"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5992 $as_echo "$with_cli6_lease_file" >&6; }
5995 # Check whether --with-srv-pid-file was given.
5996 if test "${with_srv_pid_file+set}" = set; then :
5997 withval
=$with_srv_pid_file;
5998 cat >>confdefs.h
<<_ACEOF
5999 #define _PATH_DHCPD_PID "$withval"
6005 # Check whether --with-srv6-pid-file was given.
6006 if test "${with_srv6_pid_file+set}" = set; then :
6007 withval
=$with_srv6_pid_file;
6008 cat >>confdefs.h
<<_ACEOF
6009 #define _PATH_DHCPD6_PID "$withval"
6015 # Check whether --with-cli-pid-file was given.
6016 if test "${with_cli_pid_file+set}" = set; then :
6017 withval
=$with_cli_pid_file;
6018 cat >>confdefs.h
<<_ACEOF
6019 #define _PATH_DHCLIENT_PID "$withval"
6025 # Check whether --with-cli6-pid-file was given.
6026 if test "${with_cli6_pid_file+set}" = set; then :
6027 withval
=$with_cli6_pid_file;
6028 cat >>confdefs.h
<<_ACEOF
6029 #define _PATH_DHCLIENT6_PID "$withval"
6035 # Check whether --with-relay-pid-file was given.
6036 if test "${with_relay_pid_file+set}" = set; then :
6037 withval
=$with_relay_pid_file;
6038 cat >>confdefs.h
<<_ACEOF
6039 #define _PATH_DHCRELAY_PID "$withval"
6045 # Check whether --with-relay6-pid-file was given.
6046 if test "${with_relay6_pid_file+set}" = set; then :
6047 withval
=$with_relay6_pid_file;
6048 cat >>confdefs.h
<<_ACEOF
6049 #define _PATH_DHCRELAY6_PID "$withval"
6055 # Check basic types.
6056 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6057 case $ac_cv_c_int8_t in #(
6061 cat >>confdefs.h
<<_ACEOF
6062 #define int8_t $ac_cv_c_int8_t
6067 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6068 case $ac_cv_c_int16_t in #(
6072 cat >>confdefs.h
<<_ACEOF
6073 #define int16_t $ac_cv_c_int16_t
6078 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6079 case $ac_cv_c_int32_t in #(
6083 cat >>confdefs.h
<<_ACEOF
6084 #define int32_t $ac_cv_c_int32_t
6089 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6090 case $ac_cv_c_int64_t in #(
6094 cat >>confdefs.h
<<_ACEOF
6095 #define int64_t $ac_cv_c_int64_t
6101 # Some systems need the u_intX_t types defined across.
6102 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6103 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6107 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6108 case $ac_cv_c_uint8_t in #(
6112 $as_echo "#define _UINT8_T 1" >>confdefs.h
6115 cat >>confdefs.h
<<_ACEOF
6116 #define uint8_t $ac_cv_c_uint8_t
6122 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6127 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6128 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6132 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6133 case $ac_cv_c_uint16_t in #(
6138 cat >>confdefs.h
<<_ACEOF
6139 #define uint16_t $ac_cv_c_uint16_t
6145 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6150 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6151 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6155 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6156 case $ac_cv_c_uint32_t in #(
6160 $as_echo "#define _UINT32_T 1" >>confdefs.h
6163 cat >>confdefs.h
<<_ACEOF
6164 #define uint32_t $ac_cv_c_uint32_t
6170 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6175 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6176 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6180 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6181 case $ac_cv_c_uint64_t in #(
6185 $as_echo "#define _UINT64_T 1" >>confdefs.h
6188 cat >>confdefs.h
<<_ACEOF
6189 #define uint64_t $ac_cv_c_uint64_t
6195 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6201 # see if ifaddrs.h is available
6202 for ac_header
in ifaddrs.h
6204 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6205 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6206 cat >>confdefs.h
<<_ACEOF
6207 #define HAVE_IFADDRS_H 1
6215 # figure out what IPv4 interface code to use
6216 for ac_header
in linux
/types.h
6218 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6219 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6220 cat >>confdefs.h
<<_ACEOF
6221 #define HAVE_LINUX_TYPES_H 1
6227 # needed for linux/filter.h on old systems
6229 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6230 #ifdef HAVE_LINUX_TYPES_H
6231 #include <linux/types.h>
6235 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6240 if test -n "$DO_LPF"
6243 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6246 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6247 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6252 if test -n "$DO_DLPI"
6255 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6258 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6259 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6264 if test -n "$DO_BPF"
6267 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6273 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6274 # use the same structures. We like to use 'struct lifconf' and 'struct
6275 # lifreq', but we'll use these other structures if they're present. HPUX
6276 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6280 $as_echo_n "checking for struct lifnum... " >&6; }
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <sys/types.h>
6284 #include <sys/socket.h>
6296 if ac_fn_c_try_compile
"$LINENO"; then :
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6298 $as_echo "yes" >&6; }
6300 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6309 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <sys/types.h>
6313 #include <net/if6.h>
6318 struct if_laddrconf a;
6324 if ac_fn_c_try_compile
"$LINENO"; then :
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6326 $as_echo "yes" >&6; }
6328 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6337 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 #include <sys/types.h>
6341 #include <net/if6.h>
6346 struct if_laddrreq a;
6352 if ac_fn_c_try_link
"$LINENO"; then :
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6354 $as_echo "yes" >&6; }
6356 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6362 rm -f core conftest.err conftest.
$ac_objext \
6363 conftest
$ac_exeext conftest.
$ac_ext
6366 # check for GCC noreturn attribute
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6369 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6376 void foo() __attribute__((noreturn));
6381 if ac_fn_c_try_compile
"$LINENO"; then :
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6383 $as_echo "yes" >&6; }
6385 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6391 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6396 # Look for optional headers.
6397 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6399 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6401 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6402 cat >>confdefs.h
<<_ACEOF
6403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6411 # Solaris needs some libraries for functions
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6413 $as_echo_n "checking for library containing socket... " >&6; }
6414 if ${ac_cv_search_socket+:} false
; then :
6415 $as_echo_n "(cached) " >&6
6417 ac_func_search_save_LIBS
=$LIBS
6418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6421 /* Override any GCC internal prototype to avoid an error.
6422 Use char because int might match the return type of a GCC
6423 builtin and then its argument prototype would still apply. */
6436 for ac_lib
in '' socket
; do
6437 if test -z "$ac_lib"; then
6438 ac_res
="none required"
6441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6443 if ac_fn_c_try_link
"$LINENO"; then :
6444 ac_cv_search_socket
=$ac_res
6446 rm -f core conftest.err conftest.
$ac_objext \
6448 if ${ac_cv_search_socket+:} false
; then :
6452 if ${ac_cv_search_socket+:} false
; then :
6455 ac_cv_search_socket
=no
6458 LIBS
=$ac_func_search_save_LIBS
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6461 $as_echo "$ac_cv_search_socket" >&6; }
6462 ac_res
=$ac_cv_search_socket
6463 if test "$ac_res" != no
; then :
6464 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6469 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6470 if ${ac_cv_search_inet_ntoa+:} false
; then :
6471 $as_echo_n "(cached) " >&6
6473 ac_func_search_save_LIBS
=$LIBS
6474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6477 /* Override any GCC internal prototype to avoid an error.
6478 Use char because int might match the return type of a GCC
6479 builtin and then its argument prototype would still apply. */
6487 return inet_ntoa ();
6492 for ac_lib
in '' nsl
; do
6493 if test -z "$ac_lib"; then
6494 ac_res
="none required"
6497 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6499 if ac_fn_c_try_link
"$LINENO"; then :
6500 ac_cv_search_inet_ntoa
=$ac_res
6502 rm -f core conftest.err conftest.
$ac_objext \
6504 if ${ac_cv_search_inet_ntoa+:} false
; then :
6508 if ${ac_cv_search_inet_ntoa+:} false
; then :
6511 ac_cv_search_inet_ntoa
=no
6514 LIBS
=$ac_func_search_save_LIBS
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6517 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6518 ac_res
=$ac_cv_search_inet_ntoa
6519 if test "$ac_res" != no
; then :
6520 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6526 $as_echo_n "checking for library containing inet_aton... " >&6; }
6527 if ${ac_cv_search_inet_aton+:} false
; then :
6528 $as_echo_n "(cached) " >&6
6530 ac_func_search_save_LIBS
=$LIBS
6531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6534 /* Override any GCC internal prototype to avoid an error.
6535 Use char because int might match the return type of a GCC
6536 builtin and then its argument prototype would still apply. */
6544 return inet_aton ();
6549 for ac_lib
in '' socket nsl
; do
6550 if test -z "$ac_lib"; then
6551 ac_res
="none required"
6554 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6556 if ac_fn_c_try_link
"$LINENO"; then :
6557 ac_cv_search_inet_aton
=$ac_res
6559 rm -f core conftest.err conftest.
$ac_objext \
6561 if ${ac_cv_search_inet_aton+:} false
; then :
6565 if ${ac_cv_search_inet_aton+:} false
; then :
6568 ac_cv_search_inet_aton
=no
6571 LIBS
=$ac_func_search_save_LIBS
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6574 $as_echo "$ac_cv_search_inet_aton" >&6; }
6575 ac_res
=$ac_cv_search_inet_aton
6576 if test "$ac_res" != no
; then :
6577 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6581 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6586 # Check for a standalone regex library.
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6588 $as_echo_n "checking for library containing regcomp... " >&6; }
6589 if ${ac_cv_search_regcomp+:} false
; then :
6590 $as_echo_n "(cached) " >&6
6592 ac_func_search_save_LIBS
=$LIBS
6593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6596 /* Override any GCC internal prototype to avoid an error.
6597 Use char because int might match the return type of a GCC
6598 builtin and then its argument prototype would still apply. */
6611 for ac_lib
in '' regex
; do
6612 if test -z "$ac_lib"; then
6613 ac_res
="none required"
6616 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6618 if ac_fn_c_try_link
"$LINENO"; then :
6619 ac_cv_search_regcomp
=$ac_res
6621 rm -f core conftest.err conftest.
$ac_objext \
6623 if ${ac_cv_search_regcomp+:} false
; then :
6627 if ${ac_cv_search_regcomp+:} false
; then :
6630 ac_cv_search_regcomp
=no
6633 LIBS
=$ac_func_search_save_LIBS
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6636 $as_echo "$ac_cv_search_regcomp" >&6; }
6637 ac_res
=$ac_cv_search_regcomp
6638 if test "$ac_res" != no
; then :
6639 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6644 for ac_func
in strlcat
6646 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6647 if test "x$ac_cv_func_strlcat" = xyes
; then :
6648 cat >>confdefs.h
<<_ACEOF
6649 #define HAVE_STRLCAT 1
6656 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6658 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6659 if ${ac_cv_search_if_nametoindex+:} false
; then :
6660 $as_echo_n "(cached) " >&6
6662 ac_func_search_save_LIBS
=$LIBS
6663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6666 /* Override any GCC internal prototype to avoid an error.
6667 Use char because int might match the return type of a GCC
6668 builtin and then its argument prototype would still apply. */
6672 char if_nametoindex ();
6676 return if_nametoindex ();
6681 for ac_lib
in '' ipv6
; do
6682 if test -z "$ac_lib"; then
6683 ac_res
="none required"
6686 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6688 if ac_fn_c_try_link
"$LINENO"; then :
6689 ac_cv_search_if_nametoindex
=$ac_res
6691 rm -f core conftest.err conftest.
$ac_objext \
6693 if ${ac_cv_search_if_nametoindex+:} false
; then :
6697 if ${ac_cv_search_if_nametoindex+:} false
; then :
6700 ac_cv_search_if_nametoindex
=no
6703 LIBS
=$ac_func_search_save_LIBS
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6706 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6707 ac_res
=$ac_cv_search_if_nametoindex
6708 if test "$ac_res" != no
; then :
6709 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6714 # For some Solaris nanosleep is found by BIND in librt
6716 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6717 if test "x$ac_cv_func_nanosleep" = xyes
; then :
6718 have_nanosleep
="yes"
6721 if test "$have_nanosleep" = "no"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6723 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6724 if ${ac_cv_lib_rt_nanosleep+:} false
; then :
6725 $as_echo_n "(cached) " >&6
6727 ac_check_lib_save_LIBS
=$LIBS
6729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6732 /* Override any GCC internal prototype to avoid an error.
6733 Use char because int might match the return type of a GCC
6734 builtin and then its argument prototype would still apply. */
6742 return nanosleep ();
6747 if ac_fn_c_try_link
"$LINENO"; then :
6748 ac_cv_lib_rt_nanosleep
=yes
6750 ac_cv_lib_rt_nanosleep
=no
6752 rm -f core conftest.err conftest.
$ac_objext \
6753 conftest
$ac_exeext conftest.
$ac_ext
6754 LIBS
=$ac_check_lib_save_LIBS
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6757 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6758 if test "x$ac_cv_lib_rt_nanosleep" = xyes
; then :
6763 if test "$have_nanosleep" = "rt"; then
6767 # check for /dev/random (declares HAVE_DEV_RANDOM)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6769 $as_echo_n "checking for random device... " >&6; }
6771 # Check whether --with-randomdev was given.
6772 if test "${with_randomdev+set}" = set; then :
6773 withval
=$with_randomdev; use_randomdev
="$withval"
6775 use_randomdev
="unspec"
6778 if test "$use_randomdev" = "unspec"; then
6779 if test "$cross_compiling" = "yes"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6781 $as_echo "unspecified" >&6; }
6782 as_fn_error $?
" need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6784 use_randomdev
="/dev/random"
6785 elif test "$use_randomdev" = "yes"; then
6786 use_randomdev
="/dev/random"
6788 if test "$use_randomdev" = "no"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6790 $as_echo "disabled" >&6; }
6791 BINDCONFIG
="$BINDCONFIG --with-randomdev=no"
6793 if test "$cross_compiling" = "yes"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6795 $as_echo "$use_randomdev (unchecked)" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6798 $as_echo "$use_randomdev" >&6; }
6799 as_ac_File
=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6801 $as_echo_n "checking for $use_randomdev... " >&6; }
6802 if eval \
${$as_ac_File+:} false
; then :
6803 $as_echo_n "(cached) " >&6
6805 test "$cross_compiling" = yes &&
6806 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6807 if test -r "$use_randomdev"; then
6808 eval "$as_ac_File=yes"
6810 eval "$as_ac_File=no"
6813 eval ac_res
=\$
$as_ac_File
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6815 $as_echo "$ac_res" >&6; }
6816 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
6818 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6821 as_fn_error $?
"cannot find $use_randomdev" "$LINENO" 5
6825 BINDCONFIG
="$BINDCONFIG --with-randomdev=$use_randomdev"
6828 BINDIOMUX
="--disable-kqueue --disable-epoll --disable-devpoll"
6829 # check kqueue/epoll/devpoll alternative to select
6830 # Check whether --enable-kqueue was given.
6831 if test "${enable_kqueue+set}" = set; then :
6832 enableval
=$enable_kqueue; want_kqueue
="$enableval"
6837 if test "$want_kqueue" = "yes"; then
6838 BINDIOMUX
="--enable-kqueue"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6840 $as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6842 # Check whether --enable-epoll was given.
6843 if test "${enable_epoll+set}" = set; then :
6844 enableval
=$enable_epoll; want_epoll
="$enableval"
6849 if test "$want_epoll" = "yes"; then
6850 BINDIOMUX
="--enable-epoll"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6852 $as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6854 # Check whether --enable-devpoll was given.
6855 if test "${enable_devpoll+set}" = set; then :
6856 enableval
=$enable_devpoll; want_devpoll
="$enableval"
6861 if test "$want_devpoll" = "yes"; then
6862 BINDIOMUX
="--enable-devpoll"
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6864 $as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6868 # general extra bind configure arguments
6870 # Check whether --with-bind-extra-config was given.
6871 if test "${with_bind_extra_config+set}" = set; then :
6872 withval
=$with_bind_extra_config; use_xbindconfig
="$withval"
6877 case "$use_xbindconfig" in
6881 BINDCONFIG
="$BINDCONFIG $use_xbindconfig"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6883 $as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6887 # see if there is a "sa_len" field in our interface information structure
6888 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6890 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6892 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6897 # figure out pointer size
6898 SAVE_CFLAGS
="$CFLAGS"
6899 CFLAGS
="$CFLAGS -I$srcdir"
6900 # The cast to long int works around a bug in the HP C Compiler
6901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6903 # This bug is HP SR number 8606223364.
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6905 $as_echo_n "checking size of struct iaddr *... " >&6; }
6906 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6907 $as_echo_n "(cached) " >&6
6909 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6910 #include \"includes/inet.h\"
6916 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6919 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6920 See \`config.log' for more details" "$LINENO" 5; }
6922 ac_cv_sizeof_struct_iaddr_p
=0
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6928 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6932 cat >>confdefs.h
<<_ACEOF
6933 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6937 CFLAGS
="$SAVE_CFLAGS"
6939 # Solaris does not have the msg_control or msg_controlen members
6940 # in the msghdr structure unless you define:
6942 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6944 # See the "standards" man page for details.
6946 # We check for the msg_control member, and if it is not found, we check
6947 # again with the appropriate defines added to the CFLAGS. (In order to
6948 # do this we have to remove the check from the cache, which is what the
6950 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6951 #include <sys/types.h>
6952 #include <sys/socket.h>
6955 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6958 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6959 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6960 unset ac_cv_member_struct_msghdr_msg_control
6961 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6962 #include <sys/types.h>
6963 #include <sys/socket.h>
6966 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6969 as_fn_error $?
"Missing msg_control member in
6970 msg_control structure." "$LINENO" 5
6977 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>
6979 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6981 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6987 # bind/Makefile.in is not from automake so we need 2 variables for bind dir
6995 DISTCHECK_LIBBIND_CONFIGURE_FLAG
=
6997 # Check whether --with-libbind was given.
6998 if test "${with_libbind+set}" = set; then :
6999 withval
=$with_libbind; use_libbind
="$withval"
7004 case "$use_libbind" in
7006 as_fn_error $?
"PATH is required in --with-libbind=PATH" "$LINENO" 5
7009 BINDSUBDIR
="\${top_srcdir}/bind"
7010 my_abs_srcdir
=`cd $srcdir && pwd`
7011 BINDDIR
="${my_abs_srcdir}/bind"
7012 if test ! -d "$srcdir/bind"; then
7013 as_fn_error $?
"Where to find or build bind includes and libraries must be specified" "$LINENO" 5
7015 if test -d "$srcdir/bind/bind9"; then
7016 BINDSRCDIR
="${my_abs_srcdir}/bind/bind9"
7018 if test ! -f "$srcdir/bind/version.tmp"; then
7019 as_fn_error $?
"Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
7021 .
"$srcdir/bind/version.tmp"
7022 bindversion
=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
7023 BINDSRCDIR
="${my_abs_srcdir}/bind/bind-$bindversion"
7025 ac_config_files
="$ac_config_files $srcdir/bind/Makefile"
7028 BINDLIBIRSDIR
="$BINDSRCDIR/lib/irs"
7029 BINDLIBDNSDIR
="$BINDSRCDIR/lib/dns"
7030 BINDLIBISCCFGDIR
="$BINDSRCDIR/lib/isccfg"
7031 BINDLIBISCDIR
="$BINDSRCDIR/lib/isc"
7034 if test ! -d "$use_libbind"; then
7035 as_fn_error $?
"Cannot find bind directory at $use_libbind" "$LINENO" 5
7037 if test ! -d "$use_libbind/include" -o \
7038 ! -f "$use_libbind/include/isc/buffer.h"
7040 as_fn_error $?
"Cannot find bind includes at $use_libbind/include" "$LINENO" 5
7042 if test ! -d "$use_libbind/lib" -o \
7043 \
( ! -f "$use_libbind/lib/libisc.a" -a \
7044 ! -f "$use_libbind/lib/libisc.la" \
)
7046 as_fn_error $?
"Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
7048 BINDDIR
="$use_libbind"
7049 BINDLIBIRSDIR
="$BINDDIR/lib"
7050 BINDLIBDNSDIR
="$BINDDIR/lib"
7051 BINDLIBISCCFGDIR
="$BINDDIR/lib"
7052 BINDLIBISCDIR
="$BINDDIR/lib"
7053 DISTCHECK_LIBBIND_CONFIGURE_FLAG
="--with-libbind=$use_libbind"
7064 if test "$use_libbind" = "no"; then
7066 HAVE_BINDDIR_FALSE
='#'
7068 HAVE_BINDDIR_TRUE
='#'
7074 # GNU libtool support
7078 # Just set the maximum command line length for sunos
7079 # as it otherwise takes a exceptionally long time to
7080 # work it out. Required for libtool.
7082 lt_cv_sys_max_cmd_len
=4096
7089 DISTCHECK_LIBTOOL_CONFIGURE_FLAG
=
7090 # Check whether --enable-libtool was given.
7091 if test "${enable_libtool+set}" = set; then :
7092 enableval
=$enable_libtool; want_libtool
="$enableval"
7096 if test "$use_libbind" != "no"; then
7097 if test "$want_libtool" = "yes" -a \
7098 ! -f "$use_libbind/lib/libisc.la"
7100 as_fn_error $?
"Cannot find dynamic libraries at $use_libbind/lib" "$LINENO" 5
7102 if test "$want_libtool" = "no" -a \
7103 ! -f "$use_libbind/lib/libisc.a"
7105 as_fn_error $?
"Cannot find static libraries at $use_libbind/lib" "$LINENO" 5
7110 if test "$want_libtool" = "yes"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
7112 $as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
7113 # expand $ac_configure_args
7114 eval "set my_configure_args $ac_configure_args"
7116 cd $srcdir; exec .
/config
+lt
"$@"
7117 as_fn_error $?
"Recovering failed" "$LINENO" 5
7128 # quoting in Makefile.am.in
7132 # install bind includes and libraries
7134 want_install_bind
="no"
7135 if test "$want_libtool" = "yes"; then
7136 want_install_bind
="yes"
7138 if test "$use_libbind" != "no"; then
7139 want_install_bind
="no"
7141 # Check whether --enable-bind_install was given.
7142 if test "${enable_bind_install+set}" = set; then :
7143 enableval
=$enable_bind_install; want_install_bind
="$enableval"
7146 if test "$want_install_bind" = "yes"; then
7147 if test "$use_libbind" != "no"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&5
7149 $as_echo "$as_me: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&2;}
7151 elif test "$want_libtool" = "yes" -a "$use_libbind" = "no"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: embedded dynamic bind libraries must be installed" >&5
7153 $as_echo "$as_me: WARNING: embedded dynamic bind libraries must be installed" >&2;}
7155 if test "$want_install_bind" = "yes"; then
7157 INSTALL_BIND_FALSE
='#'
7159 INSTALL_BIND_TRUE
='#'
7166 # Check whether --with-ldap was given.
7167 if test "${with_ldap+set}" = set; then :
7168 withval
=$with_ldap; ldap
=$withval
7174 # OpenLDAP with SSL support.
7176 # Check whether --with-ldapcrypto was given.
7177 if test "${with_ldapcrypto+set}" = set; then :
7178 withval
=$with_ldapcrypto; ldapcrypto
=$withval
7184 # Gssapi to allow LDAP to authenticate with a keytab
7186 # Check whether --with-ldap-gssapi was given.
7187 if test "${with_ldap_gssapi+set}" = set; then :
7188 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
7195 # LDAP CASA auth support.
7197 # Check whether --with-ldapcasa was given.
7198 if test "${with_ldapcasa+set}" = set; then :
7199 withval
=$with_ldapcasa; ldapcasa
=$withval
7205 # OpenLDAP support is disabled by default, if enabled then SSL support is an
7206 # extra optional that is also disabled by default. Enabling LDAP SSL support
7207 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7208 # but doesn't include SSL. The two are not dependant.
7209 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7213 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
7214 if ${ac_cv_search_ldap_initialize+:} false
; then :
7215 $as_echo_n "(cached) " >&6
7217 ac_func_search_save_LIBS
=$LIBS
7218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7221 /* Override any GCC internal prototype to avoid an error.
7222 Use char because int might match the return type of a GCC
7223 builtin and then its argument prototype would still apply. */
7227 char ldap_initialize ();
7231 return ldap_initialize ();
7236 for ac_lib
in '' ldap
; do
7237 if test -z "$ac_lib"; then
7238 ac_res
="none required"
7241 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7243 if ac_fn_c_try_link
"$LINENO"; then :
7244 ac_cv_search_ldap_initialize
=$ac_res
7246 rm -f core conftest.err conftest.
$ac_objext \
7248 if ${ac_cv_search_ldap_initialize+:} false
; then :
7252 if ${ac_cv_search_ldap_initialize+:} false
; then :
7255 ac_cv_search_ldap_initialize
=no
7258 LIBS
=$ac_func_search_save_LIBS
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7261 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
7262 ac_res
=$ac_cv_search_ldap_initialize
7263 if test "$ac_res" != no
; then :
7264 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7269 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7270 See \`config.log' for more details" "$LINENO" 5; }
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7274 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7275 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7276 $as_echo_n "(cached) " >&6
7278 ac_func_search_save_LIBS
=$LIBS
7279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7282 /* Override any GCC internal prototype to avoid an error.
7283 Use char because int might match the return type of a GCC
7284 builtin and then its argument prototype would still apply. */
7288 char ber_pvt_opt_on ();
7292 return ber_pvt_opt_on ();
7297 for ac_lib
in '' lber
; do
7298 if test -z "$ac_lib"; then
7299 ac_res
="none required"
7302 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7304 if ac_fn_c_try_link
"$LINENO"; then :
7305 ac_cv_search_ber_pvt_opt_on
=$ac_res
7307 rm -f core conftest.err conftest.
$ac_objext \
7309 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7313 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7316 ac_cv_search_ber_pvt_opt_on
=no
7319 LIBS
=$ac_func_search_save_LIBS
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7322 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7323 ac_res
=$ac_cv_search_ber_pvt_opt_on
7324 if test "$ac_res" != no
; then :
7325 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7330 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7331 See \`config.log' for more details" "$LINENO" 5; }
7334 if test x
$ldap_gssapi = xyes
; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7336 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7337 if ${ac_cv_search_krb5_init_context+:} false
; then :
7338 $as_echo_n "(cached) " >&6
7340 ac_func_search_save_LIBS
=$LIBS
7341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7344 /* Override any GCC internal prototype to avoid an error.
7345 Use char because int might match the return type of a GCC
7346 builtin and then its argument prototype would still apply. */
7350 char krb5_init_context ();
7354 return krb5_init_context ();
7359 for ac_lib
in '' krb5
; do
7360 if test -z "$ac_lib"; then
7361 ac_res
="none required"
7364 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7366 if ac_fn_c_try_link
"$LINENO"; then :
7367 ac_cv_search_krb5_init_context
=$ac_res
7369 rm -f core conftest.err conftest.
$ac_objext \
7371 if ${ac_cv_search_krb5_init_context+:} false
; then :
7375 if ${ac_cv_search_krb5_init_context+:} false
; then :
7378 ac_cv_search_krb5_init_context
=no
7381 LIBS
=$ac_func_search_save_LIBS
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7384 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7385 ac_res
=$ac_cv_search_krb5_init_context
7386 if test "$ac_res" != no
; then :
7387 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7392 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7393 See \`config.log' for more details" "$LINENO" 5; }
7398 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7404 for ac_header
in ldap.h
7406 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7407 if test "x$ac_cv_header_ldap_h" = xyes
; then :
7408 cat >>confdefs.h
<<_ACEOF
7409 #define HAVE_LDAP_H 1
7416 for ac_func
in inet_pton inet_ntop
7418 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7419 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7420 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7421 cat >>confdefs.h
<<_ACEOF
7422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7430 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
7432 if test x
$ldapcasa = xyes
; then
7433 for ac_header
in micasa_mgmd.h
7435 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7436 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
7437 cat >>confdefs.h
<<_ACEOF
7438 #define HAVE_MICASA_MGMD_H 1
7441 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
7447 See \`config.log' for more details" "$LINENO" 5; }
7454 if test x
$ldapcrypto = xyes
; then
7455 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
7458 if test x
$ldap_gssapi = xyes
; then
7459 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7462 LDAP_CFLAGS
=$LDAP_CFLAGS
7466 # Append selected warning levels to CFLAGS before substitution (but after
7467 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7468 CFLAGS
="$CFLAGS $STD_CWARNINGS"
7470 # Try to add the bind and dhcp include directories
7471 CFLAGS
="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7475 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542";;
7477 # As of Solaris 11, ethernet dev files are in /dev/net
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7479 $as_echo_n "checking for /dev/net... " >&6; }
7480 if ${ac_cv_file__dev_net+:} false
; then :
7481 $as_echo_n "(cached) " >&6
7483 test "$cross_compiling" = yes &&
7484 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
7485 if test -r "/dev/net"; then
7486 ac_cv_file__dev_net
=yes
7488 ac_cv_file__dev_net
=no
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7492 $as_echo "$ac_cv_file__dev_net" >&6; }
7493 if test "x$ac_cv_file__dev_net" = xyes
; then :
7495 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7504 $as_echo_n "checking for flexible array members... " >&6; }
7505 if ${ac_cv_c_flexmember+:} false
; then :
7506 $as_echo_n "(cached) " >&6
7508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7513 struct s { int n; double d[]; };
7518 struct s *p = malloc (offsetof (struct s, d)
7519 + m * sizeof (double));
7521 return p->d != (double *) NULL;
7526 if ac_fn_c_try_compile
"$LINENO"; then :
7527 ac_cv_c_flexmember
=yes
7529 ac_cv_c_flexmember
=no
7531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7534 $as_echo "$ac_cv_c_flexmember" >&6; }
7535 if test $ac_cv_c_flexmember = yes; then
7537 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7540 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7545 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 omapip/Makefile.am omapip/Makefile relay/Makefile server/Makefile tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7547 cat >confcache
<<\_ACEOF
7548 # This file is a shell script that caches the results of configure
7549 # tests run on this system so they can be shared between configure
7550 # scripts and configure runs, see configure's option --config-cache.
7551 # It is not useful on other systems. If it contains results you don't
7552 # want to keep, you may remove or edit it.
7554 # config.status only pays attention to the cache file if you give it
7555 # the --recheck option to rerun configure.
7557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7563 # The following way of writing the cache mishandles newlines in values,
7564 # but we know of no workaround that is simple, portable, and efficient.
7565 # So, we kill variables containing newlines.
7566 # Ultrix sh set writes to stderr and can't be redirected directly,
7567 # and sets the high bit in the cache file unless we assign to the vars.
7569 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7570 eval ac_val
=\$
$ac_var
7574 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7578 _ | IFS | as_nl
) ;; #(
7579 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7580 *) { eval $ac_var=; unset $ac_var;} ;;
7586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7587 *${as_nl}ac_space
=\
*)
7588 # `set' does not quote correctly, so add quotes: double-quote
7589 # substitution turns \\\\ into \\, and sed turns \\ into \.
7592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7595 # `set' quotes correctly as required by POSIX, so do not add quotes.
7596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7609 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7610 if test -w "$cache_file"; then
7611 if test "x$cache_file" != "x/dev/null"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7613 $as_echo "$as_me: updating cache $cache_file" >&6;}
7614 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7615 cat confcache
>"$cache_file"
7617 case $cache_file in #(
7619 mv -f confcache
"$cache_file"$$
&&
7620 mv -f "$cache_file"$$
"$cache_file" ;; #(
7622 mv -f confcache
"$cache_file" ;;
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7633 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7634 # Let make expand exec_prefix.
7635 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7637 DEFS
=-DHAVE_CONFIG_H
7642 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7643 # 1. Remove the extension, and $U if already installed.
7644 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7645 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7647 # will be set to the directory where LIBOBJS objects are built.
7648 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7649 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7653 LTLIBOBJS
=$ac_ltlibobjs
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7657 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7658 if test -n "$am_sleep_pid"; then
7659 # Hide warnings about reused PIDs.
7660 wait $am_sleep_pid 2>/dev
/null
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7663 $as_echo "done" >&6; }
7664 if test -n "$EXEEXT"; then
7666 am__EXEEXT_FALSE
='#'
7672 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7673 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7676 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7677 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7681 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7685 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7686 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7689 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7690 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7693 if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then
7694 as_fn_error $?
"conditional \"HAVE_BINDDIR\" was never defined.
7695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7697 if test -z "${INSTALL_BIND_TRUE}" && test -z "${INSTALL_BIND_FALSE}"; then
7698 as_fn_error $?
"conditional \"INSTALL_BIND\" was never defined.
7699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7702 : "${CONFIG_STATUS=./config.status}"
7704 ac_clean_files_save
=$ac_clean_files
7705 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7707 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7709 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7711 # Generated by $as_me.
7712 # Run this file to recreate the current configuration.
7713 # Compiler output produced by configure, useful for debugging
7714 # configure, is in config.log if it exists.
7720 SHELL=\${CONFIG_SHELL-$SHELL}
7723 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7724 ## -------------------- ##
7725 ## M4sh Initialization. ##
7726 ## -------------------- ##
7728 # Be more Bourne compatible
7729 DUALCASE
=1; export DUALCASE
# for MKS sh
7730 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7734 # is contrary to our usage. Disable this feature.
7735 alias -g '${1+"$@"}'='"$@"'
7736 setopt NO_GLOB_SUBST
7738 case `(set -o) 2>/dev/null` in #(
7750 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7751 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7754 # Prefer a ksh shell builtin over an external printf program on Solaris,
7755 # but without wasting forks for bash or zsh.
7756 if test -z "$BASH_VERSION$ZSH_VERSION" \
7757 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7758 as_echo='print
-r --'
7759 as_echo_n='print
-rn --'
7760 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7761 as_echo='printf %s
\n'
7762 as_echo_n='printf %s
'
7764 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7765 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7766 as_echo_n='/usr
/ucb
/echo -n'
7768 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7769 as_echo_n_body='eval
7773 expr "X$arg" : "X\\(.*\\)$as_nl";
7774 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7776 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7778 export as_echo_n_body
7779 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7782 as_echo='sh
-c $as_echo_body as_echo
'
7785 # The user is always right.
7786 if test "${PATH_SEPARATOR+set}" != set; then
7788 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7789 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7796 # We need space, tab and new line, in precisely that order. Quoting is
7797 # there to prevent editors from complaining about space-tab.
7798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7799 # splitting by setting IFS to empty value.)
7802 # Find who we are. Look in the path if we contain no directory separator.
7805 *[\\/]* ) as_myself=$0 ;;
7806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7817 # We did not find ourselves, most probably we were run as `sh COMMAND'
7818 # in which case we are not to be found in the path.
7819 if test "x$as_myself" = x
; then
7822 if test ! -f "$as_myself"; then
7823 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7827 # Unset variables that we do not need and which cause bugs (e.g. in
7828 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7829 # suppresses any "Segmentation fault" message there. '((' could
7830 # trigger a bug in pdksh 5.2.14.
7831 for as_var
in BASH_ENV ENV MAIL MAILPATH
7832 do eval test x\
${$as_var+set} = xset \
7833 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7846 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7849 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7850 # ----------------------------------------
7851 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7852 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7853 # script with STATUS, using 1 if that was 0.
7856 as_status
=$1; test $as_status -eq 0 && as_status
=1
7858 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7859 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7861 $as_echo "$as_me: error: $2" >&2
7862 as_fn_exit
$as_status
7866 # as_fn_set_status STATUS
7867 # -----------------------
7868 # Set $? to STATUS, without forking.
7872 } # as_fn_set_status
7876 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7886 # Portably unset VAR.
7889 { eval $1=; unset $1;}
7891 as_unset
=as_fn_unset
7892 # as_fn_append VAR VALUE
7893 # ----------------------
7894 # Append the text in VALUE to the end of the definition contained in VAR. Take
7895 # advantage of any shell optimizations that allow amortized linear growth over
7896 # repeated appends, instead of the typical quadratic growth present in naive
7898 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7899 eval 'as_fn_append ()
7910 # as_fn_arith ARG...
7911 # ------------------
7912 # Perform arithmetic evaluation on the ARGs, and store the result in the
7913 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7914 # must be portable across $(()) and expr.
7915 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7916 eval 'as_fn_arith ()
7923 as_val
=`expr "$@" || test $? -eq 1`
7928 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7929 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7935 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7936 as_basename
=basename
7941 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7947 as_me
=`$as_basename -- "$0" ||
7948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7949 X"$0" : 'X\(//\)$' \| \
7950 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7952 sed '/^.*\/\([^/][^/]*\)\/*$/{
7966 # Avoid depending upon Character Ranges.
7967 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7968 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7969 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7970 as_cr_digits
='0123456789'
7971 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7973 ECHO_C
= ECHO_N
= ECHO_T
=
7974 case `echo -n x` in #(((((
7976 case `echo 'xy\c'` in
7977 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7979 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7986 rm -f conf$$ conf$$.exe conf$$.
file
7987 if test -d conf$$.dir
; then
7988 rm -f conf$$.dir
/conf$$.
file
7991 mkdir conf$$.dir
2>/dev
/null
7993 if (echo >conf$$.
file) 2>/dev
/null
; then
7994 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7996 # ... but there are two gotchas:
7997 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7998 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7999 # In both cases, we have to default to `cp -pR'.
8000 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8002 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8010 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8011 rmdir conf$$.dir
2>/dev
/null
8016 # Create "$as_dir" as a directory, including parents if necessary.
8021 -*) as_dir
=.
/$as_dir;;
8023 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8027 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8028 *) as_qdir
=$as_dir;;
8030 as_dirs
="'$as_qdir' $as_dirs"
8031 as_dir
=`$as_dirname -- "$as_dir" ||
8032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8033 X"$as_dir" : 'X\(//\)[^/]' \| \
8034 X"$as_dir" : 'X\(//\)$' \| \
8035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8036 $as_echo X"$as_dir" |
8037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8054 test -d "$as_dir" && break
8056 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8057 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8061 if mkdir
-p .
2>/dev
/null
; then
8062 as_mkdir_p
='mkdir -p "$as_dir"'
8064 test -d .
/-p && rmdir .
/-p
8069 # as_fn_executable_p FILE
8070 # -----------------------
8071 # Test if FILE is an executable regular file.
8072 as_fn_executable_p
()
8074 test -f "$1" && test -x "$1"
8075 } # as_fn_executable_p
8077 as_executable_p
=as_fn_executable_p
8079 # Sed expression to map a string onto a valid CPP name.
8080 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8082 # Sed expression to map a string onto a valid variable name.
8083 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8087 ## ----------------------------------- ##
8088 ## Main body of $CONFIG_STATUS script. ##
8089 ## ----------------------------------- ##
8091 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8094 # Save the log message, to keep $0 and so on meaningful, and to
8095 # report actual input values of CONFIG_FILES etc. instead of their
8096 # values after options handling.
8098 This file was extended by DHCP $as_me 4.4.0-dev, which was
8099 generated by GNU Autoconf 2.69. Invocation command line was
8101 CONFIG_FILES = $CONFIG_FILES
8102 CONFIG_HEADERS = $CONFIG_HEADERS
8103 CONFIG_LINKS = $CONFIG_LINKS
8104 CONFIG_COMMANDS = $CONFIG_COMMANDS
8107 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8112 case $ac_config_files in *"
8113 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8116 case $ac_config_headers in *"
8117 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8122 # Files that config.status was made for.
8123 config_files="$ac_config_files"
8124 config_headers="$ac_config_headers"
8125 config_commands="$ac_config_commands"
8129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8131 \`$as_me' instantiates files and other configuration actions
8132 from templates according to the current configuration. Unless the files
8133 and actions are specified as TAGs, all are instantiated by default.
8135 Usage: $0 [OPTION]... [TAG]...
8137 -h, --help print this help, then exit
8138 -V, --version print version number and configuration settings, then exit
8139 --config print configuration, then exit
8140 -q, --quiet, --silent
8141 do not print progress messages
8142 -d, --debug don't remove temporary files
8143 --recheck update $as_me by reconfiguring in the same conditions
8144 --file=FILE[:TEMPLATE]
8145 instantiate the configuration file FILE
8146 --header=FILE[:TEMPLATE]
8147 instantiate the configuration header FILE
8149 Configuration files:
8152 Configuration headers:
8155 Configuration commands:
8158 Report bugs to <dhcp-users@isc.org>."
8161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8162 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8164 DHCP config.status 4.4.0-dev
8165 configured by $0, generated by GNU Autoconf 2.69,
8166 with options \\"\$ac_cs_config\\"
8168 Copyright (C) 2012 Free Software Foundation, Inc.
8169 This config.status script is free software; the Free Software Foundation
8170 gives unlimited permission to copy, distribute and modify it."
8177 test -n "\$AWK" || AWK=awk
8180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8181 # The default lists apply if the user does not specify any file.
8187 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8188 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8192 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8204 # Handling of the options.
8205 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8207 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8208 $as_echo "$ac_cs_version"; exit ;;
8209 --config |
--confi |
--conf |
--con |
--co |
--c )
8210 $as_echo "$ac_cs_config"; exit ;;
8211 --debug |
--debu |
--deb |
--de |
--d |
-d )
8213 --file |
--fil |
--fi |
--f )
8216 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8217 '') as_fn_error $?
"missing file argument" ;;
8219 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8220 ac_need_defaults
=false
;;
8221 --header |
--heade |
--head |
--hea )
8224 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8226 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8227 ac_need_defaults
=false
;;
8229 # Conflict between --help and --header
8230 as_fn_error $?
"ambiguous option: \`$1'
8231 Try \`$0 --help' for more information.";;
8232 --help |
--hel |
-h )
8233 $as_echo "$ac_cs_usage"; exit ;;
8234 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8235 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8239 -*) as_fn_error $?
"unrecognized option: \`$1'
8240 Try \`$0 --help' for more information." ;;
8242 *) as_fn_append ac_config_targets
" $1"
8243 ac_need_defaults
=false
;;
8249 ac_configure_extra_args
=
8251 if $ac_cs_silent; then
8253 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8258 if \$ac_cs_recheck; then
8259 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8261 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8262 CONFIG_SHELL='$SHELL'
8268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8273 ## Running $as_me. ##
8279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8283 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8289 # Handling of arguments.
8290 for ac_config_target
in $ac_config_targets
8292 case $ac_config_target in
8293 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8294 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
8295 "$srcdir/bind/Makefile") CONFIG_FILES
="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8296 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8297 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
8298 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
8299 "common/Makefile.am") CONFIG_FILES
="$CONFIG_FILES common/Makefile.am" ;;
8300 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8301 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
8302 "dhcpctl/Makefile.am") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile.am" ;;
8303 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
8304 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
8305 "omapip/Makefile.am") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile.am" ;;
8306 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
8307 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
8308 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
8309 "tests/Makefile.am") CONFIG_FILES
="$CONFIG_FILES tests/Makefile.am" ;;
8310 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8311 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
8312 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
8313 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
8315 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8320 # If the user did not use the arguments to specify the items to instantiate,
8321 # then the envvar interface is used. Set only those that are not.
8322 # We use the long form for the default assignment because of an extremely
8323 # bizarre bug on SunOS 4.1.3.
8324 if $ac_need_defaults; then
8325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8330 # Have a temporary directory for convenience. Make it in the build tree
8331 # simply because there is no reason against having it here, and in addition,
8332 # creating and moving files from /tmp can sometimes cause problems.
8333 # Hook for its removal unless debugging.
8334 # Note that there is a small window in which the directory will not be cleaned:
8335 # after its creation but before its name has been assigned to `$tmp'.
8339 trap 'exit_status=$?
8341 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8343 trap 'as_fn_exit 1' 1 2 13 15
8345 # Create a (secure) tmp directory for tmp files.
8348 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8352 tmp
=.
/conf$$
-$RANDOM
8353 (umask 077 && mkdir
"$tmp")
8354 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8357 # Set up the scripts for CONFIG_FILES section.
8358 # No need to generate them if there are no CONFIG_FILES.
8359 # This happens for instance with `./config.status config.h'.
8360 if test -n "$CONFIG_FILES"; then
8363 ac_cr
=`echo X | tr X '\015'`
8364 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8365 # But we know of no other shell where ac_cr would be empty at this
8366 # point, so we can use a bashism as a fallback.
8367 if test "x$ac_cr" = x
; then
8368 eval ac_cr
=\$
\'\\r
\'
8370 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8371 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8377 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8382 echo "cat >conf$$subs.awk <<_ACEOF" &&
8383 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8386 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8387 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8389 for ac_last_try in false false false false false :; do
8390 . ./conf$$subs.sh ||
8391 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8393 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8394 if test $ac_delim_n = $ac_delim_num; then
8396 elif $ac_last_try; then
8397 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8399 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8405 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8409 s/^/S["/; s
/!.
*/"]=/
8419 s/\(.\{148\}\)..*/\1/
8421 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8426 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8433 s/\(.\{148\}\)..*/\1/
8435 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8439 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8444 ' <conf$$subs.awk | sed '
8449 ' >>$CONFIG_STATUS || ac_write_fail=1
8450 rm -f conf$$subs.awk
8451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8453 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8454 for (key in S) S_is_set[key] = 1
8460 nfields = split(line, field, "@
")
8462 len = length(field[1])
8463 for (i = 2; i < nfields; i++) {
8465 keylen = length(key)
8466 if (S_is_set[key]) {
8468 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8469 len += length(value) + length(field[++i])
8480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8481 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8482 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8485 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8486 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8489 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8490 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8491 # trailing colons and then remove the whole line if VPATH becomes empty
8492 # (actually we leave an empty line to preserve line numbers).
8493 if test "x
$srcdir" = x.; then
8494 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8513 fi # test -n "$CONFIG_FILES"
8515 # Set up the scripts for CONFIG_HEADERS section.
8516 # No need to generate them if there are no CONFIG_HEADERS.
8517 # This happens for instance with `./config.status Makefile'.
8518 if test -n "$CONFIG_HEADERS"; then
8519 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8523 # Transform confdefs.h into an awk script `defines.awk', embedded as
8524 # here-document in config.status, that substitutes the proper values into
8525 # config.h.in to produce config.h.
8527 # Create a delimiter string that does not exist in confdefs.h, to ease
8528 # handling of long lines.
8530 for ac_last_try in false false :; do
8531 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8532 if test -z "$ac_tt"; then
8534 elif $ac_last_try; then
8535 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8537 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8541 # For the awk script, D is an array of macro values keyed by name,
8542 # likewise P contains macro parameters if any. Preserve backslash
8543 # newline sequences.
8545 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8547 s/.\{148\}/&'"$ac_delim"'/g
8550 s/^[ ]*#[ ]*define[ ][ ]*/ /
8557 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8559 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8564 D["\
1"]=" \
3\\\\\\n
"\\/p
8566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8571 s/.\{148\}/&'"$ac_delim"'/g
8576 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8579 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8581 ' <confdefs.h | sed '
8582 s/'"$ac_delim"'/"\\\
8583 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8586 for (key in D) D_is_set[key] = 1
8589 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8591 split(line, arg, " ")
8592 if (arg[1] == "#") {
8596 defundef
= substr
(arg
[1], 2)
8599 split(mac1
, mac2
, "(") #)
8601 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8602 if (D_is_set
[macro
]) {
8603 # Preserve the white space surrounding the "#".
8604 print prefix
"define", macro P
[macro
] D
[macro
]
8607 # Replace #undef with comments. This is necessary, for example,
8608 # in the case of _POSIX_SOURCE, which is predefined and required
8609 # on some systems where configure will not decide to define it.
8610 if (defundef
== "undef") {
8611 print
"/*", prefix defundef
, macro
, "*/"
8619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8620 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8621 fi # test -n "$CONFIG_HEADERS"
8624 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8629 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8631 case $ac_mode$ac_tag in
8633 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8634 :[FH
]-) ac_tag
=-:-;;
8635 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8652 -) ac_f
="$ac_tmp/stdin";;
8653 *) # Look for the file first in the build tree, then in the source tree
8654 # (if the path is not absolute). The absolute path cannot be DOS-style,
8655 # because $ac_f cannot contain `:'.
8659 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8661 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8663 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8664 as_fn_append ac_file_inputs
" '$ac_f'"
8667 # Let's still pretend it is `configure' which instantiates (i.e., don't
8668 # use $as_me), people would be surprised to read:
8669 # /* config.h. Generated by config.status. */
8670 configure_input
='Generated from '`
8671 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8673 if test x
"$ac_file" != x-
; then
8674 configure_input
="$ac_file. $configure_input"
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8676 $as_echo "$as_me: creating $ac_file" >&6;}
8678 # Neutralize special characters interpreted by sed in replacement strings.
8679 case $configure_input in #(
8680 *\
&* |
*\|
* |
*\\* )
8681 ac_sed_conf_input
=`$as_echo "$configure_input" |
8682 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8683 *) ac_sed_conf_input
=$configure_input;;
8687 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8688 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8693 ac_dir
=`$as_dirname -- "$ac_file" ||
8694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8695 X"$ac_file" : 'X\(//\)[^/]' \| \
8696 X"$ac_file" : 'X\(//\)$' \| \
8697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8698 $as_echo X"$ac_file" |
8699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8716 as_dir
="$ac_dir"; as_fn_mkdir_p
8720 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8722 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8723 # A ".." for each directory in $ac_dir_suffix.
8724 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8725 case $ac_top_builddir_sub in
8726 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8727 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8730 ac_abs_top_builddir
=$ac_pwd
8731 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8732 # for backward compatibility:
8733 ac_top_builddir
=$ac_top_build_prefix
8736 .
) # We are building in place.
8738 ac_top_srcdir
=$ac_top_builddir_sub
8739 ac_abs_top_srcdir
=$ac_pwd ;;
8740 [\\/]* | ?
:[\\/]* ) # Absolute name.
8741 ac_srcdir
=$srcdir$ac_dir_suffix;
8742 ac_top_srcdir
=$srcdir
8743 ac_abs_top_srcdir
=$srcdir ;;
8745 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8746 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8747 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8749 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8759 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8760 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8764 [\\/$
]* | ?
:[\\/]* ) ;;
8765 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8770 # Neutralize VPATH when `$srcdir' = `.'.
8771 # Shell code in configure.ac might set extrasub.
8772 # FIXME: do we really want to maintain this feature?
8773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8774 ac_sed_extra="$ac_vpsub
8777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8779 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8780 s|@configure_input@|
$ac_sed_conf_input|
;t t
8781 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8782 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8783 s
&@srcdir@
&$ac_srcdir&;t t
8784 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8785 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8786 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8787 s
&@builddir@
&$ac_builddir&;t t
8788 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8789 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8790 s
&@INSTALL@
&$ac_INSTALL&;t t
8791 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8793 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8794 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8797 rm -f "$ac_tmp/stdin
"
8799 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8800 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8802 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8808 if test x"$ac_file" != x-; then
8810 $as_echo "/* $configure_input */" \
8811 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8812 } >"$ac_tmp/config.h
" \
8813 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8814 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8816 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8819 mv "$ac_tmp/config.h
" "$ac_file" \
8820 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8823 $as_echo "/* $configure_input */" \
8824 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8825 || as_fn_error $? "could not create
-" "$LINENO" 5
8827 # Compute "$ac_file"'s index in $config_headers.
8830 for _am_header in $config_headers :; do
8832 $_am_arg | $_am_arg:* )
8835 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8838 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8839 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8840 X"$_am_arg" : 'X\(//\)[^/]' \| \
8841 X"$_am_arg" : 'X\(//\)$' \| \
8842 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8843 $as_echo X"$_am_arg" |
8844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8860 s/.*/./; q'`/stamp-h$_am_stamp_count
8863 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8864 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8869 case $ac_file$ac_mode in
8870 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8871 # Older Autoconf quotes --file arguments for eval, but not when files
8872 # are listed without --file. Let's play safe and only enable the eval
8873 # if we detect the quoting.
8874 case $CONFIG_FILES in
8875 *\'*) eval set x "$CONFIG_FILES" ;;
8876 *) set x $CONFIG_FILES ;;
8881 # Strip MF so we end up with the name of the file.
8882 mf=`echo "$mf" | sed -e 's/:.*$//'`
8883 # Check whether this is an Automake generated Makefile or not.
8884 # We used to match only the files named 'Makefile.in', but
8885 # some people rename them; so instead we look at the file content.
8886 # Grep'ing the first line is not enough: some people post-process
8887 # each Makefile.in and add a new line on top of each file to say so.
8888 # Grep'ing the whole file is not good either: AIX grep has a line
8889 # limit of 2048, but all sed's we know have understand at least 4000.
8890 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8891 dirpart=`$as_dirname -- "$mf" ||
8892 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8893 X"$mf" : 'X\(//\)[^/]' \| \
8894 X"$mf" : 'X\(//\)$' \| \
8895 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8917 # Extract the definition of DEPDIR, am__include, and am__quote
8918 # from the Makefile without running 'make'.
8919 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8920 test -z "$DEPDIR" && continue
8921 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8922 test -z "$am__include" && continue
8923 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8924 # Find all dependency output files, they are included files with
8925 # $(DEPDIR) in their names. We invoke sed twice because it is the
8926 # simplest approach to changing $(DEPDIR) to its actual value in the
8928 for file in `sed -n "
8929 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
8930 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8931 # Make sure the directory exists.
8932 test -f "$dirpart/$file" && continue
8933 fdir=`$as_dirname -- "$file" ||
8934 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8935 X"$file" : 'X\(//\)[^/]' \| \
8936 X"$file" : 'X\(//\)$' \| \
8937 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8956 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8957 # echo "creating
$dirpart/$file"
8958 echo '# dummy' > "$dirpart/$file"
8970 ac_clean_files=$ac_clean_files_save
8972 test $ac_write_fail = 0 ||
8973 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8976 # configure is writing to config.log, and then calls config.status.
8977 # config.status does its own redirection, appending to config.log.
8978 # Unfortunately, on DOS this fails, as config.log is still kept open
8979 # by configure, so config.status won't be able to write to it; its
8980 # output is simply discarded. So we exec the FD to /dev/null,
8981 # effectively closing config.log, so it can be properly (re)opened and
8982 # appended to by config.status. When coming back to configure, we
8983 # need to make the FD available again.
8984 if test "$no_create" != yes; then
8986 ac_config_status_args=
8987 test "$silent" = yes &&
8988 ac_config_status_args="$ac_config_status_args --quiet"
8990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8993 # would make configure fail if this is the last instruction.
8994 $ac_cs_success || as_fn_exit 1
8996 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
8998 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
9003 if test "$enable_dhcpv4o6" = "yes"; then
9004 DHCP_VERSIONS="DHCPv4
, DHCPv6 and DHCPv4-over-DHCPv6
"
9005 elif test "$enable_dhcpv6" != "no
"; then
9006 DHCP_VERSIONS="DHCPv4 and DHCPv6
"
9008 DHCP_VERSIONS="DHCPv4
"
9011 cat > config.report << END
9013 ISC DHCP source configure results:
9014 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
9018 Version: $PACKAGE_VERSION
9026 DHCP versions: $DHCP_VERSIONS
9029 debug: $enable_debug
9030 failover: $enable_failover
9031 execute: $enable_execute
9032 binary-leases: $enable_binary_leases
9033 dhcpv6: $enable_dhcpv6
9034 delayed-ack: $enable_delayed_ack
9037 ATF unittests : $atf_path
9040 # TODO: Add Perl system tests
9042 if test "$atf_path" != "no
"
9044 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
9045 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
9046 echo "ATF_BIN
: $ATF_BIN" >> config.report
9053 echo Now you can type "make" to build ISC DHCP