2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.3.4.
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.3.4'
584 PACKAGE_STRING
='DHCP 4.3.4'
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
632 DISTCHECK_LIBBIND_CONFIGURE_FLAG
642 DISTCHECK_ATF_CONFIGURE_FLAG
684 MAINTAINER_MODE_FALSE
698 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
755 enable_maintainer_mode
756 enable_dependency_tracking
768 enable_secs_byteorder
786 with_bind_extra_config
793 ac_precious_vars
='build_alias
804 # Initialize some variables set by options.
806 ac_init_version
=false
807 ac_unrecognized_opts
=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
818 program_transform_name
=s
,x
,x
,
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir
='${exec_prefix}/bin'
833 sbindir
='${exec_prefix}/sbin'
834 libexecdir
='${exec_prefix}/libexec'
835 datarootdir
='${prefix}/share'
836 datadir
='${datarootdir}'
837 sysconfdir
='${prefix}/etc'
838 sharedstatedir
='${prefix}/com'
839 localstatedir
='${prefix}/var'
840 includedir
='${prefix}/include'
841 oldincludedir
='/usr/include'
842 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir
='${datarootdir}/info'
848 libdir
='${exec_prefix}/lib'
849 localedir
='${datarootdir}/locale'
850 mandir
='${datarootdir}/man'
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\
$ac_option
864 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
875 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
877 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
880 -build |
--build |
--buil |
--bui |
--bu)
881 ac_prev
=build_alias
;;
882 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
883 build_alias
=$ac_optarg ;;
885 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
886 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
887 ac_prev
=cache_file
;;
888 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
889 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
890 cache_file
=$ac_optarg ;;
893 cache_file
=config.cache
;;
895 -datadir |
--datadir |
--datadi |
--datad)
897 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
898 datadir
=$ac_optarg ;;
900 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
901 |
--dataroo |
--dataro |
--datar)
902 ac_prev
=datarootdir
;;
903 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
904 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
905 datarootdir
=$ac_optarg ;;
907 -disable-* |
--disable-*)
908 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
911 as_fn_error $?
"invalid feature name: $ac_useropt"
912 ac_useropt_orig
=$ac_useropt
913 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep
=', ';;
921 eval enable_
$ac_useropt=no
;;
923 -docdir |
--docdir |
--docdi |
--doc |
--do)
925 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
928 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
930 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
933 -enable-* |
--enable-*)
934 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
937 as_fn_error $?
"invalid feature name: $ac_useropt"
938 ac_useropt_orig
=$ac_useropt
939 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep
=', ';;
947 eval enable_
$ac_useropt=\
$ac_optarg ;;
949 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
950 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
951 |
--exec |
--exe |
--ex)
952 ac_prev
=exec_prefix
;;
953 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
954 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
955 |
--exec=* |
--exe=* |
--ex=*)
956 exec_prefix
=$ac_optarg ;;
958 -gas |
--gas |
--ga |
--g)
959 # Obsolete; use --with-gas.
962 -help |
--help |
--hel |
--he |
-h)
964 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
965 ac_init_help
=recursive
;;
966 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
967 ac_init_help
=short
;;
969 -host |
--host |
--hos |
--ho)
970 ac_prev
=host_alias
;;
971 -host=* |
--host=* |
--hos=* |
--ho=*)
972 host_alias
=$ac_optarg ;;
974 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
976 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
978 htmldir
=$ac_optarg ;;
980 -includedir |
--includedir |
--includedi |
--included |
--include \
981 |
--includ |
--inclu |
--incl |
--inc)
982 ac_prev
=includedir
;;
983 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
984 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
985 includedir
=$ac_optarg ;;
987 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
989 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
990 infodir
=$ac_optarg ;;
992 -libdir |
--libdir |
--libdi |
--libd)
994 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
997 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
998 |
--libexe |
--libex |
--libe)
999 ac_prev
=libexecdir
;;
1000 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1001 |
--libexe=* |
--libex=* |
--libe=*)
1002 libexecdir
=$ac_optarg ;;
1004 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1005 ac_prev
=localedir
;;
1006 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1007 localedir
=$ac_optarg ;;
1009 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1010 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1011 ac_prev
=localstatedir
;;
1012 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1013 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1014 localstatedir
=$ac_optarg ;;
1016 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1018 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1019 mandir
=$ac_optarg ;;
1021 -nfp |
--nfp |
--nf)
1022 # Obsolete; use --without-fp.
1025 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1026 |
--no-cr |
--no-c |
-n)
1029 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1030 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1033 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1034 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1035 |
--oldin |
--oldi |
--old |
--ol |
--o)
1036 ac_prev
=oldincludedir
;;
1037 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1038 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1039 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1040 oldincludedir
=$ac_optarg ;;
1042 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1044 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1045 prefix
=$ac_optarg ;;
1047 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1048 |
--program-pre |
--program-pr |
--program-p)
1049 ac_prev
=program_prefix
;;
1050 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1051 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1052 program_prefix
=$ac_optarg ;;
1054 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1055 |
--program-suf |
--program-su |
--program-s)
1056 ac_prev
=program_suffix
;;
1057 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1058 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1059 program_suffix
=$ac_optarg ;;
1061 -program-transform-name |
--program-transform-name \
1062 |
--program-transform-nam |
--program-transform-na \
1063 |
--program-transform-n |
--program-transform- \
1064 |
--program-transform |
--program-transfor \
1065 |
--program-transfo |
--program-transf \
1066 |
--program-trans |
--program-tran \
1067 |
--progr-tra |
--program-tr |
--program-t)
1068 ac_prev
=program_transform_name
;;
1069 -program-transform-name=* |
--program-transform-name=* \
1070 |
--program-transform-nam=* |
--program-transform-na=* \
1071 |
--program-transform-n=* |
--program-transform-=* \
1072 |
--program-transform=* |
--program-transfor=* \
1073 |
--program-transfo=* |
--program-transf=* \
1074 |
--program-trans=* |
--program-tran=* \
1075 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1076 program_transform_name
=$ac_optarg ;;
1078 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1080 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1081 pdfdir
=$ac_optarg ;;
1083 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1085 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1089 |
-silent |
--silent |
--silen |
--sile |
--sil)
1092 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1094 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1096 sbindir
=$ac_optarg ;;
1098 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1099 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1100 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1102 ac_prev
=sharedstatedir
;;
1103 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1104 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1105 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1107 sharedstatedir
=$ac_optarg ;;
1109 -site |
--site |
--sit)
1111 -site=* |
--site=* |
--sit=*)
1114 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1116 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1117 srcdir
=$ac_optarg ;;
1119 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1120 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1121 ac_prev
=sysconfdir
;;
1122 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1123 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1124 sysconfdir
=$ac_optarg ;;
1126 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1127 ac_prev
=target_alias
;;
1128 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1129 target_alias
=$ac_optarg ;;
1131 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1134 -version |
--version |
--versio |
--versi |
--vers |
-V)
1135 ac_init_version
=: ;;
1138 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1141 as_fn_error $?
"invalid package name: $ac_useropt"
1142 ac_useropt_orig
=$ac_useropt
1143 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep
=', ';;
1151 eval with_
$ac_useropt=\
$ac_optarg ;;
1153 -without-* |
--without-*)
1154 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 as_fn_error $?
"invalid package name: $ac_useropt"
1158 ac_useropt_orig
=$ac_useropt
1159 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep
=', ';;
1167 eval with_
$ac_useropt=no
;;
1170 # Obsolete; use --with-x.
1173 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1174 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1175 ac_prev
=x_includes
;;
1176 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1177 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1178 x_includes
=$ac_optarg ;;
1180 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1181 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1182 ac_prev
=x_libraries
;;
1183 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1184 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1185 x_libraries
=$ac_optarg ;;
1187 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1192 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1196 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1198 eval $ac_envvar=\
$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 if test -n "$ac_prev"; then
1213 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $?
"missing argument to $ac_option"
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1220 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 # Check all directory arguments for consistency.
1226 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1231 eval ac_val
=\$
$ac_var
1232 # Remove trailing slashes.
1235 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\
$ac_val;;
1238 # Be sure to have absolute directory names.
1240 [\\/$
]* | ?
:[\\/]* ) continue;;
1241 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1243 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1251 target
=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x
; then
1255 if test "x$build_alias" = x
; then
1256 cross_compiling
=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1263 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1265 test "$silent" = yes && exec 6>/dev
/null
1268 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di
=`ls -di .` &&
1270 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $?
"working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $?
"pwd does not report name of working directory"
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted
=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir
=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1308 ac_srcdir_defaulted
=no
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1312 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1314 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1326 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 for ac_var
in $ac_precious_vars; do
1329 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1331 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1336 # Report the --help message.
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1342 \`configure' configures DHCP 4.3.4 to adapt to many kinds of systems.
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1349 Defaults for the options are specified in brackets.
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1373 For better control, use the options below.
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1405 --build=BUILD configure
for building on BUILD
[guessed
]
1406 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive
) echo "Configuration of DHCP 4.3.4:";;
1417 --disable-option-checking ignore unrecognized
--enable/--with options
1418 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1419 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1420 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1421 --disable-silent-rules verbose build output
(undo
: "make V=0")
1422 --enable-maintainer-mode
1423 enable make rules and dependencies not useful
(and
1424 sometimes confusing
) to the casual installer
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
1429 --enable-debug create a debug-only version of the software
(default
1431 --enable-failover enable support
for failover
(default is
yes)
1432 --enable-execute enable support
for execute
() in config
(default is
1434 --enable-tracing enable support
for server activity tracing
(default
1436 --enable-delayed-ack queues multiple DHCPACK replies
(default is no
)
1437 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1438 --enable-dhcpv4o6 enable support
for DHCPv4-over-DHCPv6
(default is
1440 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1441 --enable-early-chroot enable chrooting prior to configuration
(default is
1443 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1445 --enable-use-sockets use the standard BSD socket API
(default is no
)
1446 --enable-secs-byteorder Correct bad byteorders
in the secs field
(default is
1448 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1449 --enable-binary-leases enable support
for binary insertion of leases
1451 --enable-kqueue use BSD kqueue
(default is no
)
1452 --enable-epoll use Linux epoll
(default is no
)
1453 --enable-devpoll use
/dev
/poll
(default is no
)
1456 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1457 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1458 --with-atf=PATH specify location where atf was installed
(or
"bind")
1459 --with-srv-lease-file=PATH
1460 File
for dhcpd leases
(default is
1461 LOCALSTATEDIR
/db
/dhcpd.leases
)
1462 --with-srv6-lease-file=PATH
1463 File
for dhcpd6 leases
(default is
1464 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1465 --with-cli-lease-file=PATH
1466 File
for dhclient leases
(default is
1467 LOCALSTATEDIR
/db
/dhclient.leases
)
1468 --with-cli6-lease-file=PATH
1469 File
for dhclient6 leases
(default is
1470 LOCALSTATEDIR
/db
/dhclient6.leases
)
1471 --with-srv-pid-file=PATH
1472 File
for dhcpd process information
(default is
1473 LOCALSTATEDIR
/run
/dhcpd.pid
)
1474 --with-srv6-pid-file=PATH
1475 File
for dhcpd6 process information
(default is
1476 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1477 --with-cli-pid-file=PATH
1478 File
for dhclient process information
(default is
1479 LOCALSTATEDIR
/run
/dhclient.pid
)
1480 --with-cli6-pid-file=PATH
1481 File
for dhclient6 process information
(default is
1482 LOCALSTATEDIR
/run
/dhclient6.pid
)
1483 --with-relay-pid-file=PATH
1484 File
for dhcrelay process information
(default is
1485 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1486 --with-relay6-pid-file=PATH
1487 File
for dhcrelay6 process information
(default is
1488 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1489 --with-randomdev=PATH Path
for random device
(default is
/dev
/random
)
1490 --with-bind-extra-config
1491 configure
bind librairies with some extra options
1493 --with-libbind=PATH
bind includes and libraries are
in PATH
1494 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1495 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1497 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1498 dhcpd
(default is no
)
1499 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1502 Some influential environment variables
:
1503 CC C compiler
command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1506 nonstandard directory
<lib dir
>
1507 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1508 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1509 you have headers
in a nonstandard directory
<include dir
>
1512 Use these variables to override the choices made by
`configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <dhcp-users@isc.org>.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1578 DHCP configure 4.3.4
1579 generated by GNU Autoconf 2.69
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1602 *) ac_try_echo
=$ac_try;;
1604 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1608 if test -s conftest.err
; then
1609 grep -v '^ *+' conftest.err
>conftest.er1
1610 cat conftest.er1
>&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.
$ac_objext; then :
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.
$ac_ext >&5
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status
$ac_retval
1628 } # ac_fn_c_try_compile
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1636 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } > conftest.i && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1667 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670 # the include files in INCLUDES and setting the cache variable VAR
1672 ac_fn_c_check_header_mongrel ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if eval \${$3+:} false; then :
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 # Is the header compilable?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687 $as_echo_n "checking $2 usability... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 ac_header_compiler=yes
1696 ac_header_compiler=no
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700 $as_echo "$ac_header_compiler" >&6; }
1702 # Is the header present?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704 $as_echo_n "checking $2 presence... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1709 if ac_fn_c_try_cpp "$LINENO"; then :
1710 ac_header_preproc=yes
1712 ac_header_preproc=no
1714 rm -f conftest.err conftest.i conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716 $as_echo "$ac_header_preproc" >&6; }
1718 # So? What about this header?
1719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1730 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1734 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ( $as_echo "## --------------------------------- ##
1738 ## Report this to dhcp-users@isc.org ##
1739 ## --------------------------------- ##"
1740 ) | sed "s/^/$as_me: WARNING: /" >&2
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1748 eval "$3=\$ac_header_compiler"
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_mongrel
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1768 *) ac_try_echo
=$ac_try;;
1770 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=$ac_status
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_compile
1831 # ac_fn_c_find_intX_t LINENO BITS VAR
1832 # -----------------------------------
1833 # Finds a signed integer type with width BITS, setting cache variable VAR
1835 ac_fn_c_find_intX_t ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1839 $as_echo_n "checking for int$2_t... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1844 # Order is important - never check a type that is potentially smaller
1845 # than half of the expected target width.
1846 for ac_type in int$2_t 'int' 'long int' \
1847 'long long int' 'short int' 'signed char'; do
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $ac_includes_default
1851 enum { N = $2 / 2 - 1 };
1855 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1857 return test_array [0];
1863 if ac_fn_c_try_compile "$LINENO"; then :
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 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1872 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1874 return test_array [0];
1880 if ac_fn_c_try_compile "$LINENO"; then :
1887 eval "$3=\$ac_type" ;;
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 if eval test \"x\$"$3"\" = x"no"; then :
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_find_intX_t
1907 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1908 # -------------------------------------------
1909 # Tests whether TYPE exists after having included INCLUDES, setting cache
1910 # variable VAR accordingly.
1911 ac_fn_c_check_type ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_type
1961 # ac_fn_c_find_uintX_t LINENO BITS VAR
1962 # ------------------------------------
1963 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1965 ac_fn_c_find_uintX_t ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1969 $as_echo_n "checking for uint$2_t... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1974 # Order is important - never check a type that is potentially smaller
1975 # than half of the expected target width.
1976 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1977 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $ac_includes_default
1984 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1986 return test_array [0];
1992 if ac_fn_c_try_compile "$LINENO"; then :
1997 eval "$3=\$ac_type" ;;
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 if eval test \"x\$"$3"\" = x"no"; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_find_uintX_t
2015 # ac_fn_c_try_link LINENO
2016 # -----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2025 *) ac_try_echo
=$ac_try;;
2027 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2031 if test -s conftest.err
; then
2032 grep -v '^ *+' conftest.err
>conftest.er1
2033 cat conftest.er1
>&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_c_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest
$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 test -x conftest
$ac_exeext
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.
$ac_ext >&5
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status
$ac_retval
2059 } # ac_fn_c_try_link
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func
()
2066 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval \
${$3+:} false
; then :
2070 $as_echo_n "(cached) " >&6
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2076 #define $2 innocuous_$2
2078 /* System header to define __stub macros and hopefully few prototypes,
2079 which can conflict with char $2 (); below.
2080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2081 <limits.h> exists even on freestanding compilers. */
2084 # include <limits.h>
2086 # include <assert.h>
2091 /* Override any GCC internal prototype to avoid an error.
2092 Use char because int might match the return type of a GCC
2093 builtin and then its argument prototype would still apply. */
2098 /* The GNU C library defines this for functions which it implements
2099 to always fail with ENOSYS. Some functions are actually named
2100 something starting with __ and the normal name is an alias. */
2101 #if defined __stub_$2 || defined __stub___$2
2113 if ac_fn_c_try_link
"$LINENO"; then :
2118 rm -f core conftest.err conftest.
$ac_objext \
2119 conftest
$ac_exeext conftest.
$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_func
2128 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2129 # ----------------------------------------------------
2130 # Tries to find if the field MEMBER exists in type AGGR, after including
2131 # INCLUDES, setting cache variable VAR accordingly.
2132 ac_fn_c_check_member
()
2134 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2136 $as_echo_n "checking for $2.$3... " >&6; }
2137 if eval \
${$4+:} false
; then :
2138 $as_echo_n "(cached) " >&6
2140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2153 if ac_fn_c_try_compile
"$LINENO"; then :
2156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2163 if (sizeof ac_aggr.$3)
2169 if ac_fn_c_try_compile
"$LINENO"; then :
2174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_member
2185 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2186 # --------------------------------------------
2187 # Tries to find the compile-time value of EXPR in a program that includes
2188 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2190 ac_fn_c_compute_int
()
2192 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2193 if test "$cross_compiling" = yes; then
2194 # Depending upon the size, compute the lo and hi bounds.
2195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2201 static int test_array [1 - 2 * !(($2) >= 0)];
2203 return test_array [0];
2209 if ac_fn_c_try_compile
"$LINENO"; then :
2212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 return test_array [0];
2226 if ac_fn_c_try_compile
"$LINENO"; then :
2227 ac_hi
=$ac_mid; break
2229 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2230 if test $ac_lo -le $ac_mid; then
2234 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) < 0)];
2247 return test_array [0];
2253 if ac_fn_c_try_compile
"$LINENO"; then :
2256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2264 return test_array [0];
2270 if ac_fn_c_try_compile
"$LINENO"; then :
2271 ac_lo
=$ac_mid; break
2273 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2274 if test $ac_mid -le $ac_hi; then
2278 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2288 # Binary search between lo and hi bounds.
2289 while test "x$ac_lo" != "x$ac_hi"; do
2290 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2297 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2299 return test_array [0];
2305 if ac_fn_c_try_compile
"$LINENO"; then :
2308 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2313 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2320 static long int longval () { return $2; }
2321 static unsigned long int ulongval () { return $2; }
2328 FILE *f = fopen ("conftest.val", "w");
2333 long int i = longval ();
2336 fprintf (f, "%ld", i);
2340 unsigned long int i = ulongval ();
2343 fprintf (f, "%lu", i);
2345 /* Do not output a trailing newline, as this causes \r\n confusion
2346 on some platforms. */
2347 return ferror (f) || fclose (f) != 0;
2353 if ac_fn_c_try_run
"$LINENO"; then :
2354 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2359 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status
$ac_retval
2366 } # ac_fn_c_compute_int
2367 cat >config.log
<<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2371 It was created by DHCP $as_me 4.3.4, which was
2372 generated by GNU Autoconf 2.69. Invocation command line was
2384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2393 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2394 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2397 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2398 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2399 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir
=.
2408 $as_echo "PATH: $as_dir"
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2432 ac_must_keep_next
=false
2438 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2439 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2440 |
-silent |
--silent |
--silen |
--sile |
--sil)
2443 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2448 as_fn_append ac_configure_args1
" '$ac_arg'"
2449 if test $ac_must_keep_next = true
; then
2450 ac_must_keep_next
=false
# Got value, back to normal.
2453 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2454 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2455 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2456 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461 -* ) ac_must_keep_next
=true
;;
2464 as_fn_append ac_configure_args
" '$ac_arg'"
2469 { ac_configure_args0
=; unset ac_configure_args0
;}
2470 { ac_configure_args1
=; unset ac_configure_args1
;}
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log. We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2482 $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2486 # The following way of writing the cache mishandles newlines in values,
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2518 $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2522 for ac_var in $ac_subst_vars
2524 eval ac_val=\$$ac_var
2526 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 $as_echo "$ac_var='\''$ac_val'\''"
2532 if test -n "$ac_subst_files"; then
2533 $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2537 for ac_var
in $ac_subst_files
2539 eval ac_val
=\$
$ac_var
2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 $as_echo "$ac_var='\''$ac_val'\''"
2548 if test -s confdefs.h; then
2549 $as_echo "## ----------- ##
2556 test "$ac_signal" != 0 &&
2557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
2560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564 for ac_signal
in 1 2 13 15; do
2565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest
* confdefs.h
2572 $as_echo "/* confdefs.h */" > confdefs.h
2574 # Predefined preprocessor variables.
2576 cat >>confdefs.h
<<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2580 cat >>confdefs.h
<<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584 cat >>confdefs.h
<<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2588 cat >>confdefs.h
<<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2592 cat >>confdefs.h
<<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596 cat >>confdefs.h
<<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2605 if test -n "$CONFIG_SITE"; then
2606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2609 */*) ac_site_file1
=$CONFIG_SITE;;
2610 *) ac_site_file1
=.
/$CONFIG_SITE;;
2612 elif test "x$prefix" != xNONE
; then
2613 ac_site_file1
=$prefix/share
/config.site
2614 ac_site_file2
=$prefix/etc
/config.site
2616 ac_site_file1
=$ac_default_prefix/share
/config.site
2617 ac_site_file2
=$ac_default_prefix/etc
/config.site
2619 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2621 test "x$ac_site_file" = xNONE
&& continue
2622 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625 sed 's/^/| /' "$ac_site_file" >&5
2627 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $?
"failed to load site script $ac_site_file
2630 See \`config.log' for more details" "$LINENO" 5; }
2634 if test -r "$cache_file"; then
2635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2641 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2642 *) .
"./$cache_file";;
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2651 # Check that the precious variables saved in the cache have kept the same
2653 ac_cache_corrupted
=false
2654 for ac_var
in $ac_precious_vars; do
2655 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2656 eval ac_new_set
=\
$ac_env_${ac_var}_set
2657 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2658 eval ac_new_val
=\
$ac_env_${ac_var}_value
2659 case $ac_old_set,$ac_new_set in
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663 ac_cache_corrupted
=: ;;
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667 ac_cache_corrupted
=: ;;
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
2671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w
=`echo x $ac_old_val`
2673 ac_new_val_w
=`echo x $ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677 ac_cache_corrupted
=:
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\
$ac_old_val
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2684 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2692 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 *) ac_arg
=$ac_var=$ac_new_val ;;
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2697 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2701 if $ac_cache_corrupted; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2708 ## -------------------- ##
2709 ## Main body of script. ##
2710 ## -------------------- ##
2713 ac_cpp
='$CPP $CPPFLAGS'
2714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2720 # we specify "foreign" to avoid having to have the GNU mandated files,
2721 # like AUTHORS, COPYING, and such
2722 am__api_version
='1.15'
2725 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2726 if test -f "$ac_dir/install-sh"; then
2728 ac_install_sh
="$ac_aux_dir/install-sh -c"
2730 elif test -f "$ac_dir/install.sh"; then
2732 ac_install_sh
="$ac_aux_dir/install.sh -c"
2734 elif test -f "$ac_dir/shtool"; then
2736 ac_install_sh
="$ac_aux_dir/shtool install -c"
2740 if test -z "$ac_aux_dir"; then
2741 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2744 # These three variables are undocumented and unsupported,
2745 # and are intended to be withdrawn in a future Autoconf release.
2746 # They can cause serious problems if a builder's source tree is in a directory
2747 # whose full name contains unusual characters.
2748 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2749 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2750 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753 # Find a good install program. We prefer a C program (faster),
2754 # so one script is as good as another. But avoid the broken or
2755 # incompatible versions:
2756 # SysV /etc/install, /usr/sbin/install
2757 # SunOS /usr/etc/install
2758 # IRIX /sbin/install
2760 # AmigaOS /C/install, which installs bootblocks on floppy discs
2761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2764 # OS/2's system install, which has a completely different semantic
2765 # ./install, which can be erroneously created by make from ./install.sh.
2766 # Reject install programs that cannot install multiple files.
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2768 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2769 if test -z "$INSTALL"; then
2770 if ${ac_cv_path_install+:} false
; then :
2771 $as_echo_n "(cached) " >&6
2773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir
=.
2778 # Account for people who put trailing slashes in PATH elements.
2779 case $as_dir/ in #((
2780 .
/ | .
// |
/[cC
]/* | \
2781 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2782 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2785 # OSF1 and SCO ODT 3.0 have their own names for install.
2786 # Don't use installbsd from OSF since it installs stuff as root
2788 for ac_prog
in ginstall scoinst
install; do
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2791 if test $ac_prog = install &&
2792 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2793 # AIX install. It has an incompatible calling convention.
2795 elif test $ac_prog = install &&
2796 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2797 # program-specific install script used by HP pwplus--don't use.
2800 rm -rf conftest.one conftest.two conftest.dir
2801 echo one
> conftest.one
2802 echo two
> conftest.two
2804 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2805 test -s conftest.one
&& test -s conftest.two
&&
2806 test -s conftest.dir
/conftest.one
&&
2807 test -s conftest.dir
/conftest.two
2809 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2822 rm -rf conftest.one conftest.two conftest.dir
2825 if test "${ac_cv_path_install+set}" = set; then
2826 INSTALL
=$ac_cv_path_install
2828 # As a last resort, use the slow shell script. Don't cache a
2829 # value for INSTALL within a source directory, because that will
2830 # break other packages using the cache if that directory is
2831 # removed, or if the value is a relative name.
2832 INSTALL
=$ac_install_sh
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2836 $as_echo "$INSTALL" >&6; }
2838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2839 # It thinks the first close brace ends the variable substitution.
2840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2844 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2847 $as_echo_n "checking whether build environment is sane... " >&6; }
2848 # Reject unsafe characters in $srcdir or the absolute working directory
2849 # name. Accept space and tab only in the latter.
2853 *[\\\"\
#\$\&\'\`$am_lf]*)
2854 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2857 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2858 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2861 # Do 'set' in a subshell so we don't clobber the current shell's
2862 # arguments. Must try -L first in case configure is actually a
2863 # symlink; some systems play weird games with the mod time of symlinks
2864 # (eg FreeBSD returns the mod time of the symlink's containing
2868 for am_try
in 1 2; do
2869 echo "timestamp, slept: $am_has_slept" > conftest.
file
2870 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2871 if test "$*" = "X"; then
2873 set X
`ls -t "$srcdir/configure" conftest.file`
2875 if test "$*" != "X $srcdir/configure conftest.file" \
2876 && test "$*" != "X conftest.file $srcdir/configure"; then
2878 # If neither matched, then we have a broken ls. This can happen
2879 # if, for instance, CONFIG_SHELL is bash and it inherits a
2880 # broken ls alias from the environment. This has actually
2881 # happened. Such a system could not be considered "sane".
2882 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2883 alias in your environment" "$LINENO" 5
2885 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2892 test "$2" = conftest.
file
2898 as_fn_error $?
"newly created file is older than distributed files!
2899 Check your system clock" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903 # If we didn't sleep, we still need to ensure time stamps of config.status and
2904 # generated files are strictly newer.
2906 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2913 test "$program_prefix" != NONE
&&
2914 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2915 # Use a double $ so make ignores it.
2916 test "$program_suffix" != NONE
&&
2917 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2918 # Double any \ or $.
2919 # By default was `s,x,x', remove it if useless.
2920 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2921 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2923 # Expand $ac_aux_dir to an absolute path.
2924 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2926 if test x
"${MISSING+set}" != xset
; then
2929 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2931 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2934 # Use eval to expand $SHELL
2935 if eval "$MISSING --is-lightweight"; then
2936 am_missing_run
="$MISSING "
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2940 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2943 if test x
"${install_sh+set}" != xset
; then
2946 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2948 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2952 # Installed binaries are usually stripped using 'strip' when the user
2953 # run "make install-strip". However 'strip' might not be the right
2954 # tool to use in cross-compilation environments, therefore Automake
2955 # will honor the 'STRIP' environment variable to overrule this program.
2956 if test "$cross_compiling" != no
; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_STRIP+:} false
; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$STRIP"; then
2966 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir
=.
2973 for ac_exec_ext
in '' $ac_executable_extensions; do
2974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 STRIP
=$ac_cv_prog_STRIP
2986 if test -n "$STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988 $as_echo "$STRIP" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2996 if test -z "$ac_cv_prog_STRIP"; then
2998 # Extract the first word of "strip", so it can be a program name with args.
2999 set dummy strip
; ac_word
=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3003 $as_echo_n "(cached) " >&6
3005 if test -n "$ac_ct_STRIP"; then
3006 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir
=.
3013 for ac_exec_ext
in '' $ac_executable_extensions; do
3014 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_ac_ct_STRIP
="strip"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3026 if test -n "$ac_ct_STRIP"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028 $as_echo "$ac_ct_STRIP" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3034 if test "x$ac_ct_STRIP" = x
; then
3037 case $cross_compiling:$ac_tool_warned in
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned
=yes ;;
3046 STRIP
="$ac_cv_prog_STRIP"
3050 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054 if test -z "$MKDIR_P"; then
3055 if ${ac_cv_path_mkdir+:} false
; then :
3056 $as_echo_n "(cached) " >&6
3058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3059 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3062 test -z "$as_dir" && as_dir
=.
3063 for ac_prog
in mkdir gmkdir
; do
3064 for ac_exec_ext
in '' $ac_executable_extensions; do
3065 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3066 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067 'mkdir (GNU coreutils) '* | \
3068 'mkdir (coreutils) '* | \
3069 'mkdir (fileutils) '4.1*)
3070 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3080 test -d .
/--version && rmdir .
/--version
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P
="$ac_cv_path_mkdir -p"
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 MKDIR_P
="$ac_install_sh -d"
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092 $as_echo "$MKDIR_P" >&6; }
3094 for ac_prog
in gawk mawk nawk
awk
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy
$ac_prog; ac_word
=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_AWK+:} false
; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$AWK"; then
3104 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir
=.
3111 for ac_exec_ext
in '' $ac_executable_extensions; do
3112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_AWK
="$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$AWK"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3126 $as_echo "$AWK" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3133 test -n "$AWK" && break
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3139 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3140 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3141 $as_echo_n "(cached) " >&6
3143 cat >conftest.
make <<\_ACEOF
3146 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3148 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3149 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3151 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3153 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3157 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 SET_MAKE
="MAKE=${MAKE-make}"
3167 rm -rf .tst
2>/dev
/null
3168 mkdir .tst
2>/dev
/null
3169 if test -d .tst
; then
3174 rmdir .tst
2>/dev
/null
3176 # Check whether --enable-silent-rules was given.
3177 if test "${enable_silent_rules+set}" = set; then :
3178 enableval
=$enable_silent_rules;
3181 case $enable_silent_rules in # (((
3182 yes) AM_DEFAULT_VERBOSITY
=0;;
3183 no
) AM_DEFAULT_VERBOSITY
=1;;
3184 *) AM_DEFAULT_VERBOSITY
=1;;
3186 am_make
=${MAKE-make}
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3188 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3189 if ${am_cv_make_support_nested_variables+:} false
; then :
3190 $as_echo_n "(cached) " >&6
3192 if $as_echo 'TRUE=$(BAR$(V))
3198 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3199 am_cv_make_support_nested_variables
=yes
3201 am_cv_make_support_nested_variables
=no
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3205 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3206 if test $am_cv_make_support_nested_variables = yes; then
3208 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3210 AM_V
=$AM_DEFAULT_VERBOSITY
3211 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3215 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3216 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3217 # is not polluted with repeated "-I."
3218 am__isrc
=' -I$(srcdir)'
3219 # test to see if srcdir already configured
3220 if test -f $srcdir/config.status
; then
3221 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3225 # test whether we have cygpath
3226 if test -z "$CYGPATH_W"; then
3227 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3228 CYGPATH_W
='cygpath -w'
3235 # Define the identity of the package.
3240 cat >>confdefs.h
<<_ACEOF
3241 #define PACKAGE "$PACKAGE"
3245 cat >>confdefs.h
<<_ACEOF
3246 #define VERSION "$VERSION"
3249 # Some tools Automake needs.
3251 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3254 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3257 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3260 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3263 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3265 # For better backward compatibility. To be removed once Automake 1.9.x
3266 # dies out for good. For more background, see:
3267 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3268 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3269 mkdir_p
='$(MKDIR_P)'
3271 # We need awk for the "check" target (and possibly the TAP driver). The
3272 # system "awk" is bad on some platforms.
3273 # Always define AMTAR for backward compatibility. Yes, it's still used
3274 # in the wild :-( We should find a proper way to deprecate it ...
3278 # We'll loop over all known methods to create a tar archive until one works.
3279 _am_tools
='gnutar pax cpio none'
3281 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3288 # POSIX will say in a future version that running "rm -f" with no argument
3289 # is OK; and we want to be able to make that assumption in our Makefile
3290 # recipes. So use an aggressive probe to check that the usage we want is
3291 # actually supported "in the wild" to an acceptable degree.
3292 # See automake bug#10828.
3293 # To make any issue more visible, cause the running configure to be aborted
3294 # by default if the 'rm' program in use doesn't match our expectations; the
3295 # user can still override this though.
3296 if rm -f && rm -fr && rm -rf; then : OK
; else
3300 Your 'rm' program seems unable to run without file operands specified
3301 on the command line, even when the '-f' option is present. This is contrary
3302 to the behaviour of most rm programs out there, and not conforming with
3303 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3305 Please tell bug-automake@gnu.org about your system, including the value
3306 of your $PATH and any error possibly output before this message. This
3307 can help us improve future automake versions.
3310 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3311 echo 'Configuration will proceed anyway, since you have set the' >&2
3312 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3316 Aborting the configuration process, to ensure you take notice of the issue.
3318 You can download and install GNU coreutils to get an 'rm' implementation
3319 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3321 If you want to complete the configuration process using your problematic
3322 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3323 to "yes", and re-run configure.
3326 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3331 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3332 # the configure and makefiles. Without it users doing things that
3333 # change the timestamps on the code, like checking it into a cvs
3334 # tree, could trigger a rebuild of the infrastructure files which
3335 # might fail if they don't have the correct tools.
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3338 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3339 # Check whether --enable-maintainer-mode was given.
3340 if test "${enable_maintainer_mode+set}" = set; then :
3341 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3343 USE_MAINTAINER_MODE
=no
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3347 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3348 if test $USE_MAINTAINER_MODE = yes; then
3349 MAINTAINER_MODE_TRUE
=
3350 MAINTAINER_MODE_FALSE
='#'
3352 MAINTAINER_MODE_TRUE
='#'
3353 MAINTAINER_MODE_FALSE
=
3356 MAINT
=$MAINTAINER_MODE_TRUE
3360 # Make sure we can run config.sub.
3361 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3362 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3365 $as_echo_n "checking build system type... " >&6; }
3366 if ${ac_cv_build+:} false
; then :
3367 $as_echo_n "(cached) " >&6
3369 ac_build_alias
=$build_alias
3370 test "x$ac_build_alias" = x
&&
3371 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3372 test "x$ac_build_alias" = x
&&
3373 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3374 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3375 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3379 $as_echo "$ac_cv_build" >&6; }
3380 case $ac_cv_build in
3382 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3385 ac_save_IFS
=$IFS; IFS
='-'
3391 # Remember, the first character of IFS is used to create $*,
3392 # except with old shells:
3395 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3399 $as_echo_n "checking host system type... " >&6; }
3400 if ${ac_cv_host+:} false
; then :
3401 $as_echo_n "(cached) " >&6
3403 if test "x$host_alias" = x
; then
3404 ac_cv_host
=$ac_cv_build
3406 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3407 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3412 $as_echo "$ac_cv_host" >&6; }
3415 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3418 ac_save_IFS
=$IFS; IFS
='-'
3424 # Remember, the first character of IFS is used to create $*,
3425 # except with old shells:
3428 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3432 # We want to turn on warnings if we are using gcc and the user did
3433 # not specify CFLAGS. The autoconf check for the C compiler sets the
3434 # CFLAGS if gcc is used, so we will save it before we run that check.
3435 SAVE_CFLAGS
="$CFLAGS"
3437 # Now find our C compiler.
3439 ac_cpp
='$CPP $CPPFLAGS'
3440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3443 if test -n "$ac_tool_prefix"; then
3444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3445 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false
; then :
3449 $as_echo_n "(cached) " >&6
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC
="$CC" # Let the user override the test.
3454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3458 test -z "$as_dir" && as_dir
=.
3459 for ac_exec_ext
in '' $ac_executable_extensions; do
3460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 if test -n "$CC"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3474 $as_echo "$CC" >&6; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3482 if test -z "$ac_cv_prog_CC"; then
3484 # Extract the first word of "gcc", so it can be a program name with args.
3485 set dummy gcc
; ac_word
=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir
=.
3499 for ac_exec_ext
in '' $ac_executable_extensions; do
3500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_ac_ct_CC
="gcc"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 $as_echo "$ac_ct_CC" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3520 if test "x$ac_ct_CC" = x
; then
3523 case $cross_compiling:$ac_tool_warned in
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned
=yes ;;
3535 if test -z "$CC"; then
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_CC+:} false
; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC
="$CC" # Let the user override the test.
3547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir
=.
3552 for ac_exec_ext
in '' $ac_executable_extensions; do
3553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3576 if test -z "$CC"; then
3577 # Extract the first word of "cc", so it can be a program name with args.
3578 set dummy cc
; ac_word
=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_CC+:} false
; then :
3582 $as_echo_n "(cached) " >&6
3584 if test -n "$CC"; then
3585 ac_cv_prog_CC
="$CC" # Let the user override the test.
3588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir
=.
3593 for ac_exec_ext
in '' $ac_executable_extensions; do
3594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3596 ac_prog_rejected
=yes
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 if test $ac_prog_rejected = yes; then
3608 # We found a bogon in the path, so make sure we never use it.
3609 set dummy
$ac_cv_prog_CC
3611 if test $# != 0; then
3612 # We chose a different compiler from the bogus one.
3613 # However, it has the same basename, so the bogon will be chosen
3614 # first if we set CC to just the basename; use the full file name.
3616 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3622 if test -n "$CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3624 $as_echo "$CC" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 for ac_prog
in cl.exe
3636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3637 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if ${ac_cv_prog_CC+:} false
; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC
="$CC" # Let the user override the test.
3646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir
=.
3651 for ac_exec_ext
in '' $ac_executable_extensions; do
3652 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 if test -n "$CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 $as_echo "$CC" >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3673 test -n "$CC" && break
3676 if test -z "$CC"; then
3678 for ac_prog
in cl.exe
3680 # Extract the first word of "$ac_prog", so it can be a program name with args.
3681 set dummy
$ac_prog; ac_word
=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3685 $as_echo_n "(cached) " >&6
3687 if test -n "$ac_ct_CC"; then
3688 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir
=.
3695 for ac_exec_ext
in '' $ac_executable_extensions; do
3696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_ac_ct_CC
="$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3708 if test -n "$ac_ct_CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3710 $as_echo "$ac_ct_CC" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3717 test -n "$ac_ct_CC" && break
3720 if test "x$ac_ct_CC" = x
; then
3723 case $cross_compiling:$ac_tool_warned in
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned
=yes ;;
3736 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error $?
"no acceptable C compiler found in \$PATH
3739 See \`config.log' for more details" "$LINENO" 5; }
3741 # Provide some information about the compiler.
3742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3745 for ac_option
in --version -v -V -qversion; do
3746 { { ac_try
="$ac_compiler $ac_option >&5"
3748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3755 if test -s conftest.err; then
3757 ... rest of stderr output deleted ...
3758 10q' conftest.err >conftest.er1
3759 cat conftest.er1 >&5
3761 rm -f conftest.er1 conftest.err
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 ac_clean_files_save=$ac_clean_files
3778 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3779 # Try to create an executable without -o first, disregard a.out.
3780 # It will help us diagnose broken compilers, and finding out an intuition
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3783 $as_echo_n "checking whether the C compiler works... " >&6; }
3784 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3786 # The possible output files:
3787 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3790 for ac_file in $ac_files
3793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3794 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3799 if { { ac_try="$ac_link_default"
3801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3802 *) ac_try_echo
=$ac_try;;
3804 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_link_default") 2>&5
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; then :
3810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3811 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3812 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3813 # so that the user can short-circuit this test for compilers unknown to
3815 for ac_file
in $ac_files ''
3817 test -f "$ac_file" ||
continue
3819 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3822 # We found the default executable, but exeext='' is most
3826 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3828 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830 # We set ac_cv_exeext here because the later test for it is not
3831 # safe: cross compilers may not add the suffix if given an `-o'
3832 # argument, so we may need to know it at that point already.
3833 # Even if this section looks crufty: it has the advantage of
3840 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3845 if test -z "$ac_file"; then :
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3848 $as_echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.
$ac_ext >&5
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error
77 "C compiler cannot create executables
3854 See \`config.log' for more details" "$LINENO" 5; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857 $as_echo "yes" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3860 $as_echo_n "checking for C compiler default output file name... " >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3862 $as_echo "$ac_file" >&6; }
3863 ac_exeext
=$ac_cv_exeext
3865 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3866 ac_clean_files
=$ac_clean_files_save
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3868 $as_echo_n "checking for suffix of executables... " >&6; }
3869 if { { ac_try
="$ac_link"
3871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link") 2>&5
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3881 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3882 # work properly (i.e., refer to `conftest.exe'), while it won't with
3884 for ac_file
in conftest.exe conftest conftest.
*; do
3885 test -f "$ac_file" ||
continue
3887 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3888 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3897 See \`config.log' for more details" "$LINENO" 5; }
3899 rm -f conftest conftest
$ac_cv_exeext
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3901 $as_echo "$ac_cv_exeext" >&6; }
3903 rm -f conftest.
$ac_ext
3904 EXEEXT
=$ac_cv_exeext
3906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3912 FILE *f = fopen ("conftest.out", "w");
3913 return ferror (f) || fclose (f) != 0;
3919 ac_clean_files
="$ac_clean_files conftest.out"
3920 # Check that the compiler produces executables we can run. If not, either
3921 # the compiler is broken, or we cross compile.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3923 $as_echo_n "checking whether we are cross compiling... " >&6; }
3924 if test "$cross_compiling" != yes; then
3925 { { ac_try
="$ac_link"
3927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_link") 2>&5
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 if { ac_try='./conftest$ac_cv_exeext'
3937 { { case "(($ac_try" in
3938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3939 *) ac_try_echo
=$ac_try;;
3941 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_try") 2>&5
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; }; then
3949 if test "$cross_compiling" = maybe
; then
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $?
"cannot run C compiled programs.
3955 If you meant to cross compile, use \`--host'.
3956 See \`config.log' for more details" "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3961 $as_echo "$cross_compiling" >&6; }
3963 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3964 ac_clean_files
=$ac_clean_files_save
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3966 $as_echo_n "checking for suffix of object files... " >&6; }
3967 if ${ac_cv_objext+:} false
; then :
3968 $as_echo_n "(cached) " >&6
3970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3981 rm -f conftest.o conftest.obj
3982 if { { ac_try
="$ac_compile"
3984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988 $as_echo "$ac_try_echo"; } >&5
3989 (eval "$ac_compile") 2>&5
3991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; }; then :
3993 for ac_file in conftest.o conftest.obj conftest.*; do
3994 test -f "$ac_file" || continue;
3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4002 $as_echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4008 See \
`config.log' for more details" "$LINENO" 5; }
4010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4013 $as_echo "$ac_cv_objext" >&6; }
4014 OBJEXT=$ac_cv_objext
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4017 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4018 if ${ac_cv_c_compiler_gnu+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4035 if ac_fn_c_try_compile "$LINENO"; then :
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4045 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4046 if test $ac_compiler_gnu = yes; then
4051 ac_test_CFLAGS=${CFLAGS+set}
4052 ac_save_CFLAGS=$CFLAGS
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4054 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4055 if ${ac_cv_prog_cc_g+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 ac_save_c_werror_flag=$ac_c_werror_flag
4059 ac_c_werror_flag=yes
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 if ac_fn_c_try_compile "$LINENO"; then :
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_c_werror_flag=$ac_save_c_werror_flag
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4115 $as_echo "$ac_cv_prog_cc_g" >&6; }
4116 if test "$ac_test_CFLAGS" = set; then
4117 CFLAGS=$ac_save_CFLAGS
4118 elif test $ac_cv_prog_cc_g = yes; then
4119 if test "$GCC" = yes; then
4125 if test "$GCC" = yes; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4132 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4133 if ${ac_cv_prog_cc_c89+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 ac_cv_prog_cc_c89=no
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4144 struct buf { int x; };
4145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4146 static char *e (p, i)
4152 static char *f (char * (*g) (char **, int), char **p, ...)
4157 s = g (p, va_arg (v,int));
4162 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4163 function prototypes and stuff, but not '\xHH' hex character constants.
4164 These don't provoke an error unfortunately, instead are silently treated
4165 as 'x'. The following induces an error, until -std is added to get
4166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4167 array size at least. It's necessary to write '\x00'==0 to get something
4168 that's true only with -std. */
4169 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4171 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4172 inside strings and character constants. */
4174 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4176 int test (int i, double x);
4177 struct s1 {int (*f) (int a);};
4178 struct s2 {int (*f) (double a);};
4179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4190 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4191 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4193 CC="$ac_save_CC $ac_arg"
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_prog_cc_c89=$ac_arg
4197 rm -f core conftest.err conftest.$ac_objext
4198 test "x$ac_cv_prog_cc_c89" != "xno" && break
4200 rm -f conftest.$ac_ext
4205 case "x$ac_cv_prog_cc_c89" in
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4208 $as_echo "none needed" >&6; } ;;
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4211 $as_echo "unsupported" >&6; } ;;
4213 CC="$CC $ac_cv_prog_cc_c89"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4215 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4217 if test "x$ac_cv_prog_cc_c89" != xno; then :
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4233 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4234 if ${am_cv_prog_cc_c_o+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4248 # Make sure it works both with $CC and with simple cc.
4249 # Following AC_PROG_CC_C_O, we do the test twice because some
4250 # compilers refuse to overwrite an existing .o file with -o,
4251 # though they will create one.
4252 am_cv_prog_cc_c_o=yes
4254 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4255 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } \
4259 && test -f conftest2.$ac_objext; then
4262 am_cv_prog_cc_c_o=no
4266 rm -f core conftest*
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4270 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4271 if test "$am_cv_prog_cc_c_o" != yes; then
4272 # Losing compiler, so override with the script.
4273 # FIXME: It is wrong to rewrite CC.
4274 # But if we don't then we get into trouble of one sort or another.
4275 # A longer-term fix would be to have automake use am__CC in this case,
4276 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4277 CC="$am_aux_dir/compile $CC"
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 DEPDIR="${am__leading_dot}deps"
4287 ac_config_commands="$ac_config_commands depfiles"
4290 am_make=${MAKE-make}
4291 cat > confinc << 'END'
4293 @echo this is the am__doit target
4296 # If we don't find an include directive, just comment out the code.
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4298 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4302 # First try GNU make style include.
4303 echo "include confinc" > confmf
4304 # Ignore all kinds of additional output from 'make'.
4305 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4306 *the\ am__doit\ target*)
4312 # Now try BSD make style include.
4313 if test "$am__include" = "#"; then
4314 echo '.include "confinc"' > confmf
4315 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4316 *the\ am__doit\ target*)
4317 am__include=.include
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4326 $as_echo "$_am_result" >&6; }
4327 rm -f confinc confmf
4329 # Check whether --enable-dependency-tracking was given.
4330 if test "${enable_dependency_tracking+set}" = set; then :
4331 enableval=$enable_dependency_tracking;
4334 if test "x$enable_dependency_tracking" != xno; then
4335 am_depcomp="$ac_aux_dir/depcomp"
4339 if test "x$enable_dependency_tracking" != xno; then
4349 depcc="$CC" am_compiler_list=
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4352 $as_echo_n "checking dependency style of $depcc... " >&6; }
4353 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4357 # We make a subdir and do the tests there. Otherwise we can end up
4358 # making bogus files that we don't know about and never remove. For
4359 # instance it was reported that on HP-UX the gcc test will end up
4360 # making a dummy file named 'D' -- because '-MD' means "put the output
4364 # Copy depcomp to subdir because otherwise we won't find it if we're
4365 # using a relative directory.
4366 cp "$am_depcomp" conftest.dir
4368 # We will build objects and dependencies in a subdirectory because
4369 # it helps to detect inapplicable dependency modes. For instance
4370 # both Tru64's cc and ICC support -MD to output dependencies as a
4371 # side effect of compilation, but ICC will put the dependencies in
4372 # the current directory while Tru64 will put them in the object
4376 am_cv_CC_dependencies_compiler_type=none
4377 if test "$am_compiler_list" = ""; then
4378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4381 case " $depcc " in #(
4382 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4385 for depmode in $am_compiler_list; do
4386 # Setup a source with many dependencies, because some compilers
4387 # like to wrap large dependency lists on column 80 (with \), and
4388 # we should not choose a depcomp mode which is confused by this.
4390 # We need to recreate these files for each test, as the compiler may
4391 # overwrite some of them when testing with obscure command lines.
4392 # This happens at least with the AIX C compiler.
4394 for i in 1 2 3 4 5 6; do
4395 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4396 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4397 # Solaris 10 /bin/sh.
4398 echo '/* dummy */' > sub/conftst$i.h
4400 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4403 # mode. It turns out that the SunPro C++ compiler does not properly
4404 # handle '-M -o', and we need to detect this. Also, some Intel
4405 # versions had trouble with output in subdirs.
4406 am__obj=sub/conftest.${OBJEXT-o}
4407 am__minus_obj="-o $am__obj"
4410 # This depmode causes a compiler race in universal mode.
4411 test "$am__universal" = false || continue
4414 # After this tag, mechanisms are not by side-effect, so they'll
4415 # only be used when explicitly requested.
4416 if test "x$enable_dependency_tracking" = xyes; then
4422 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4423 # This compiler won't grok '-c -o', but also, the minuso test has
4424 # not run yet. These depmodes are late enough in the game, and
4425 # so weak that their functioning should not be impacted.
4426 am__obj=conftest.${OBJEXT-o}
4431 if depmode=$depmode \
4432 source=sub/conftest.c object=$am__obj \
4433 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4434 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4435 >/dev/null 2>conftest.err &&
4436 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4437 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4438 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4439 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4440 # icc doesn't choke on unknown options, it will just issue warnings
4441 # or remarks (even with -Werror). So we grep stderr for any message
4442 # that says an option was ignored or not supported.
4443 # When given -MP, icc 7.0 and 7.1 complain thusly:
4444 # icc: Command line warning: ignoring option '-M'; no argument required
4445 # The diagnosis changed in icc 8.0:
4446 # icc: Command line remark: option '-MP' not supported
4447 if (grep 'ignoring option' conftest.err ||
4448 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4449 am_cv_CC_dependencies_compiler_type=$depmode
4458 am_cv_CC_dependencies_compiler_type=none
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4463 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4464 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4467 test "x$enable_dependency_tracking" != xno \
4468 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4470 am__fastdepCC_FALSE='#'
4472 am__fastdepCC_TRUE='#'
4473 am__fastdepCC_FALSE=
4478 # Suppress warnings about --datarootdir
4481 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4482 # user did not specify any flags. Add warnings in this case.
4483 if test "$GCC" = "yes"; then
4484 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4485 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4489 # We can have some flags to pass to bind configure
4491 if test "$cross_compiling" = "yes"; then
4492 BINDCONFIG="--host=$host"
4494 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4495 # and as there can be a space inside an argument some magic is required.
4496 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4497 eval "set my_configure_args $ac_configure_args"
4498 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4500 # iterate on arguments and copying 'arg' when it begins by an upper case
4504 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4509 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4510 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4511 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4512 # Socket API were designed to be used but we have to live with it.
4513 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4521 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4522 # On Suns, sometimes $CPP names a directory.
4523 if test -n "$CPP" && test -d "$CPP"; then
4526 if test -z "$CPP"; then
4527 if ${ac_cv_prog_CPP+:} false; then :
4528 $as_echo_n "(cached) " >&6
4530 # Double quotes because CPP needs to be expanded
4531 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4534 for ac_c_preproc_warn_flag in '' yes
4536 # Use a header file that comes with gcc, so configuring glibc
4537 # with a fresh cross-compiler works.
4538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4539 # <limits.h> exists even on freestanding compilers.
4540 # On the NeXT, cc -E runs the code through the compiler's parser,
4541 # not just through cpp. "Syntax error" is here to catch this case.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4545 # include <limits.h>
4547 # include <assert.h>
4551 if ac_fn_c_try_cpp "$LINENO"; then :
4554 # Broken: fails on valid input.
4557 rm -f conftest.err conftest.i conftest.$ac_ext
4559 # OK, works on sane cases. Now check whether nonexistent headers
4560 # can be detected and how.
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 #include <ac_nonexistent.h>
4565 if ac_fn_c_try_cpp "$LINENO"; then :
4566 # Broken: success on invalid input.
4569 # Passes both tests.
4573 rm -f conftest.err conftest.i conftest.$ac_ext
4576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4577 rm -f conftest.i conftest.err conftest.
$ac_ext
4578 if $ac_preproc_ok; then :
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4591 $as_echo "$CPP" >&6; }
4593 for ac_c_preproc_warn_flag
in '' yes
4595 # Use a header file that comes with gcc, so configuring glibc
4596 # with a fresh cross-compiler works.
4597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4598 # <limits.h> exists even on freestanding compilers.
4599 # On the NeXT, cc -E runs the code through the compiler's parser,
4600 # not just through cpp. "Syntax error" is here to catch this case.
4601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4604 # include <limits.h>
4606 # include <assert.h>
4610 if ac_fn_c_try_cpp
"$LINENO"; then :
4613 # Broken: fails on valid input.
4616 rm -f conftest.err conftest.i conftest.
$ac_ext
4618 # OK, works on sane cases. Now check whether nonexistent headers
4619 # can be detected and how.
4620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <ac_nonexistent.h>
4624 if ac_fn_c_try_cpp
"$LINENO"; then :
4625 # Broken: success on invalid input.
4628 # Passes both tests.
4632 rm -f conftest.err conftest.i conftest.
$ac_ext
4635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4636 rm -f conftest.i conftest.err conftest.
$ac_ext
4637 if $ac_preproc_ok; then :
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4643 See \`config.log' for more details" "$LINENO" 5; }
4647 ac_cpp
='$CPP $CPPFLAGS'
4648 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4654 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4655 if ${ac_cv_path_GREP+:} false
; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -z "$GREP"; then
4659 ac_path_GREP_found
=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4662 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_prog
in grep ggrep
; do
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4669 as_fn_executable_p
"$ac_path_GREP" ||
continue
4670 # Check for GNU ac_path_GREP and select it if it is found.
4671 # Check for GNU $ac_path_GREP
4672 case `"$ac_path_GREP" --version 2>&1` in
4674 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4677 $as_echo_n 0123456789 >"conftest.in"
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'GREP' >> "conftest.nl"
4684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4685 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4686 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4687 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_GREP
="$ac_path_GREP"
4690 ac_path_GREP_max
=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4695 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4698 $ac_path_GREP_found && break 3
4703 if test -z "$ac_cv_path_GREP"; then
4704 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 ac_cv_path_GREP
=$GREP
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4712 $as_echo "$ac_cv_path_GREP" >&6; }
4713 GREP
="$ac_cv_path_GREP"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4717 $as_echo_n "checking for egrep... " >&6; }
4718 if ${ac_cv_path_EGREP+:} false
; then :
4719 $as_echo_n "(cached) " >&6
4721 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4722 then ac_cv_path_EGREP
="$GREP -E"
4724 if test -z "$EGREP"; then
4725 ac_path_EGREP_found
=false
4726 # Loop through the user's path and test for each of PROGNAME-LIST
4727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4728 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4731 test -z "$as_dir" && as_dir
=.
4732 for ac_prog
in egrep; do
4733 for ac_exec_ext
in '' $ac_executable_extensions; do
4734 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4735 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4736 # Check for GNU ac_path_EGREP and select it if it is found.
4737 # Check for GNU $ac_path_EGREP
4738 case `"$ac_path_EGREP" --version 2>&1` in
4740 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4743 $as_echo_n 0123456789 >"conftest.in"
4746 cat "conftest.in" "conftest.in" >"conftest.tmp"
4747 mv "conftest.tmp" "conftest.in"
4748 cp "conftest.in" "conftest.nl"
4749 $as_echo 'EGREP' >> "conftest.nl"
4750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4751 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4752 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4754 # Best one so far, save it but keep looking for a better one
4755 ac_cv_path_EGREP
="$ac_path_EGREP"
4756 ac_path_EGREP_max
=$ac_count
4758 # 10*(2^10) chars as input seems more than enough
4759 test $ac_count -gt 10 && break
4761 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4764 $ac_path_EGREP_found && break 3
4769 if test -z "$ac_cv_path_EGREP"; then
4770 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773 ac_cv_path_EGREP
=$EGREP
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4779 $as_echo "$ac_cv_path_EGREP" >&6; }
4780 EGREP
="$ac_cv_path_EGREP"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4784 $as_echo_n "checking for ANSI C header files... " >&6; }
4785 if ${ac_cv_header_stdc+:} false
; then :
4786 $as_echo_n "(cached) " >&6
4788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4803 if ac_fn_c_try_compile
"$LINENO"; then :
4804 ac_cv_header_stdc
=yes
4806 ac_cv_header_stdc
=no
4808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4810 if test $ac_cv_header_stdc = yes; then
4811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4818 $EGREP "memchr" >/dev
/null
2>&1; then :
4821 ac_cv_header_stdc
=no
4827 if test $ac_cv_header_stdc = yes; then
4828 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then :
4838 ac_cv_header_stdc
=no
4844 if test $ac_cv_header_stdc = yes; then
4845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4846 if test "$cross_compiling" = yes; then :
4849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4853 #if ((' ' & 0x0FF) == 0x020)
4854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4857 # define ISLOWER(c) \
4858 (('a' <= (c) && (c) <= 'i') \
4859 || ('j' <= (c) && (c) <= 'r') \
4860 || ('s' <= (c) && (c) <= 'z'))
4861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4869 for (i = 0; i < 256; i++)
4870 if (XOR (islower (i), ISLOWER (i))
4871 || toupper (i) != TOUPPER (i))
4876 if ac_fn_c_try_run
"$LINENO"; then :
4879 ac_cv_header_stdc
=no
4881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4888 $as_echo "$ac_cv_header_stdc" >&6; }
4889 if test $ac_cv_header_stdc = yes; then
4891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4896 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4897 inttypes.h stdint.h unistd.h
4899 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4900 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4902 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4903 cat >>confdefs.h
<<_ACEOF
4904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4913 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4914 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4921 if test "$MINIX" = yes; then
4923 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4926 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4929 $as_echo "#define _MINIX 1" >>confdefs.h
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4935 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4936 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4937 $as_echo_n "(cached) " >&6
4939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4942 # define __EXTENSIONS__ 1
4943 $ac_includes_default
4952 if ac_fn_c_try_compile
"$LINENO"; then :
4953 ac_cv_safe_to_define___extensions__
=yes
4955 ac_cv_safe_to_define___extensions__
=no
4957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4960 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4961 test $ac_cv_safe_to_define___extensions__ = yes &&
4962 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4964 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4966 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4968 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4970 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4974 if test -n "$ac_tool_prefix"; then
4975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4976 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_RANLIB+:} false
; then :
4980 $as_echo_n "(cached) " >&6
4982 if test -n "$RANLIB"; then
4983 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir
=.
4990 for ac_exec_ext
in '' $ac_executable_extensions; do
4991 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 RANLIB
=$ac_cv_prog_RANLIB
5003 if test -n "$RANLIB"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5005 $as_echo "$RANLIB" >&6; }
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5013 if test -z "$ac_cv_prog_RANLIB"; then
5014 ac_ct_RANLIB
=$RANLIB
5015 # Extract the first word of "ranlib", so it can be a program name with args.
5016 set dummy ranlib
; ac_word
=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5020 $as_echo_n "(cached) " >&6
5022 if test -n "$ac_ct_RANLIB"; then
5023 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir
=.
5030 for ac_exec_ext
in '' $ac_executable_extensions; do
5031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5043 if test -n "$ac_ct_RANLIB"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5045 $as_echo "$ac_ct_RANLIB" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5051 if test "x$ac_ct_RANLIB" = x
; then
5054 case $cross_compiling:$ac_tool_warned in
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5058 ac_tool_warned
=yes ;;
5060 RANLIB
=$ac_ct_RANLIB
5063 RANLIB
="$ac_cv_prog_RANLIB"
5067 # Extract the first word of "ar", so it can be a program name with args.
5068 set dummy
ar; ac_word
=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_path_AR+:} false
; then :
5072 $as_echo_n "(cached) " >&6
5076 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir
=.
5084 for ac_exec_ext
in '' $ac_executable_extensions; do
5085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5086 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 if test -n "$AR"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5100 $as_echo "$AR" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5109 if test "X$AR" = "X"; then
5111 ar program not found. Please fix your PATH to include the directory in
5112 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5115 ac_config_headers
="$ac_config_headers includes/config.h"
5118 # we sometimes need to know byte order for building packets
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5120 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5121 if ${ac_cv_c_bigendian+:} false
; then :
5122 $as_echo_n "(cached) " >&6
5124 ac_cv_c_bigendian
=unknown
5125 # See if we're dealing with a universal compiler.
5126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #ifndef __APPLE_CC__
5129 not a universal capable compiler
5134 if ac_fn_c_try_compile
"$LINENO"; then :
5136 # Check for potential -arch flags. It is not universal unless
5137 # there are at least two -arch flags with different values.
5140 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5141 if test -n "$ac_prev"; then
5143 i?
86 | x86_64 | ppc | ppc64
)
5144 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5147 ac_cv_c_bigendian
=universal
5153 elif test "x$ac_word" = "x-arch"; then
5158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5159 if test $ac_cv_c_bigendian = unknown
; then
5160 # See if sys/param.h defines the BYTE_ORDER macro.
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <sys/types.h>
5164 #include <sys/param.h>
5169 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5170 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5179 if ac_fn_c_try_compile
"$LINENO"; then :
5180 # It does; now see whether it defined to BIG_ENDIAN or not.
5181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <sys/types.h>
5184 #include <sys/param.h>
5189 #if BYTE_ORDER != BIG_ENDIAN
5197 if ac_fn_c_try_compile
"$LINENO"; then :
5198 ac_cv_c_bigendian
=yes
5200 ac_cv_c_bigendian
=no
5202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5206 if test $ac_cv_c_bigendian = unknown
; then
5207 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5215 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5223 if ac_fn_c_try_compile
"$LINENO"; then :
5224 # It does; now see whether it defined to _BIG_ENDIAN or not.
5225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5240 if ac_fn_c_try_compile
"$LINENO"; then :
5241 ac_cv_c_bigendian
=yes
5243 ac_cv_c_bigendian
=no
5245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5249 if test $ac_cv_c_bigendian = unknown
; then
5250 # Compile a test program.
5251 if test "$cross_compiling" = yes; then :
5252 # Try to guess by grepping values from an object file.
5253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 short int ascii_mm[] =
5256 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5257 short int ascii_ii[] =
5258 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5259 int use_ascii (int i) {
5260 return ascii_mm[i] + ascii_ii[i];
5262 short int ebcdic_ii[] =
5263 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5264 short int ebcdic_mm[] =
5265 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5266 int use_ebcdic (int i) {
5267 return ebcdic_mm[i] + ebcdic_ii[i];
5274 return use_ascii (foo) == use_ebcdic (foo);
5279 if ac_fn_c_try_compile
"$LINENO"; then :
5280 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5281 ac_cv_c_bigendian
=yes
5283 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5284 if test "$ac_cv_c_bigendian" = unknown
; then
5285 ac_cv_c_bigendian
=no
5287 # finding both strings is unlikely to happen, but who knows?
5288 ac_cv_c_bigendian
=unknown
5292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 $ac_includes_default
5301 /* Are we little or big endian? From Harbison&Steele. */
5305 char c[sizeof (long int)];
5308 return u.c[sizeof (long int) - 1] == 1;
5314 if ac_fn_c_try_run
"$LINENO"; then :
5315 ac_cv_c_bigendian
=no
5317 ac_cv_c_bigendian
=yes
5319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5320 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5326 $as_echo "$ac_cv_c_bigendian" >&6; }
5327 case $ac_cv_c_bigendian in #(
5329 byte_order
=BIG_ENDIAN
5332 byte_order
=LITTLE_ENDIAN
5336 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5340 as_fn_error $?
"unknown endianness
5341 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5345 cat >>confdefs.h
<<_ACEOF
5346 #define DHCP_BYTE_ORDER $byte_order
5350 # Optional compile-time DEBUGging.
5351 # Check whether --enable-debug was given.
5352 if test "${enable_debug+set}" = set; then :
5353 enableval
=$enable_debug; case "${enableval}" in
5354 yes) enable_debug
=yes
5356 $as_echo "#define DEBUG 1" >>confdefs.h
5358 # Just override CFLAGS totally to remove optimization.
5360 no
) enable_debug
=no
;;
5361 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5368 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5369 # but I don't want to pollute the --help space.
5371 #/* #define DEBUG_TOKENS */
5372 #/* #define DEBUG_PACKET */
5373 #/* #define DEBUG_EXPRESSIONS */
5374 #/* #define DEBUG_FIND_LEASE */
5375 #/* #define DEBUG_EXPRESSION_PARSE */
5376 #/* #define DEBUG_CLASS_MATCHING */
5377 #/* #define DEBUG_MEMORY_LEAKAGE */
5378 #/* #define DEBUG_MALLOC_POOL */
5379 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5380 #/* #define DEBUG_RC_HISTORY */
5381 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5382 #/* #define RC_HISTORY_MAX 10240 */
5383 #/* #define POINTER_DEBUG */
5384 #/* #define DEBUG_FAILOVER_MESSAGES */
5385 #/* #define DEBUG_FAILOVER_TIMING */
5386 #/* #define DEBUG_DUMP_ALL_LEASES */
5388 # Failover optional compile-time feature.
5389 # Check whether --enable-failover was given.
5390 if test "${enable_failover+set}" = set; then :
5391 enableval
=$enable_failover;
5394 # Failover is on by default, so define if it is not explicitly disabled.
5395 if test "$enable_failover" != "no"; then
5396 enable_failover
="yes"
5398 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5402 # execute() support.
5403 # Check whether --enable-execute was given.
5404 if test "${enable_execute+set}" = set; then :
5405 enableval
=$enable_execute;
5408 # execute() is on by default, so define if it is not explicitly disabled.
5409 if test "$enable_execute" != "no" ; then
5410 enable_execute
="yes"
5412 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5416 # Server tracing support.
5417 # Check whether --enable-tracing was given.
5418 if test "${enable_tracing+set}" = set; then :
5419 enableval
=$enable_tracing;
5422 # tracing is on by default, so define if it is not explicitly disabled.
5423 if test "$enable_tracing" != "no" ; then
5425 $as_echo "#define TRACING 1" >>confdefs.h
5429 # Delayed-ack feature support (experimental).
5430 # Check whether --enable-delayed_ack was given.
5431 if test "${enable_delayed_ack+set}" = set; then :
5432 enableval
=$enable_delayed_ack;
5435 if test "$enable_delayed_ack" = "yes"; then
5437 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5440 enable_delayed_ack
="no"
5443 # DHCPv6 optional compile-time feature.
5444 # Check whether --enable-dhcpv6 was given.
5445 if test "${enable_dhcpv6+set}" = set; then :
5446 enableval
=$enable_dhcpv6;
5449 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5450 if test "$enable_dhcpv6" != "no"; then
5453 $as_echo "#define DHCPv6 1" >>confdefs.h
5457 # DHCPv4o6 optional compile-time feature.
5458 # Check whether --enable-dhcpv4o6 was given.
5459 if test "${enable_dhcpv4o6+set}" = set; then :
5460 enableval
=$enable_dhcpv4o6;
5463 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5464 if test "$enable_dhcpv4o6" = "yes"; then
5465 # DHCPv4o6 requires DHCPv6
5466 if test "$enable_dhcpv6" = "no"; then
5467 as_fn_error $?
"dhcpv4o6 requires dhcpv6" "$LINENO" 5
5469 # DHCPv4o6 is not yet compatible with delayed-ack
5470 if test "$enable_delayed_ack" = "yes"; then
5471 as_fn_error $?
"dhcpv4o6 is not compatible with delayed-ack" "$LINENO" 5
5474 $as_echo "#define DHCP4o6 1" >>confdefs.h
5478 # PARANOIA is off by default (until we can test it with all features)
5479 # Check whether --enable-paranoia was given.
5480 if test "${enable_paranoia+set}" = set; then :
5481 enableval
=$enable_paranoia;
5484 # Check whether --enable-early_chroot was given.
5485 if test "${enable_early_chroot+set}" = set; then :
5486 enableval
=$enable_early_chroot;
5489 # If someone enables early chroot, but does not enable paranoia, do so for
5491 if test "$enable_paranoia" != "yes" && \
5492 test "$enable_early_chroot" = "yes" ; then
5493 enable_paranoia
="yes"
5496 if test "$enable_paranoia" = "yes" ; then
5498 $as_echo "#define PARANOIA 1" >>confdefs.h
5501 if test "$enable_early_chroot" = "yes" ; then
5503 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5507 # Check whether --enable-ipv4_pktinfo was given.
5508 if test "${enable_ipv4_pktinfo+set}" = set; then :
5509 enableval
=$enable_ipv4_pktinfo;
5513 if test "$enable_ipv4_pktinfo" = "yes"; then
5515 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5519 # Check whether --enable-use_sockets was given.
5520 if test "${enable_use_sockets+set}" = set; then :
5521 enableval
=$enable_use_sockets;
5525 if test "$enable_use_sockets" = "yes"; then
5527 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5531 # Try to hnadle incorrect byte order for secs field
5532 # This is off by default
5533 # Check whether --enable-secs_byteorder was given.
5534 if test "${enable_secs_byteorder+set}" = set; then :
5535 enableval
=$enable_secs_byteorder;
5539 if test "$enable_secs_byteorder" = "yes" ; then
5541 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5545 # Include the PID in the log messages. This is useful when there may
5546 # be multiple instances of a program.
5547 # This is off by default
5548 # Check whether --enable-log_pid was given.
5549 if test "${enable_log_pid+set}" = set; then :
5550 enableval
=$enable_log_pid;
5553 if test "$enable_log_pid" = "yes" ; then
5555 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5559 # Allow for binary search when inserting v4 leases into queues
5560 # Check whether --enable-binary_leases was given.
5561 if test "${enable_binary_leases+set}" = set; then :
5562 enableval
=$enable_binary_leases;
5565 # binary_leases is off by default.
5566 if test "$enable_binary_leases" = "yes"; then
5568 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5571 enable_binary_leases
="no"
5576 DISTCHECK_ATF_CONFIGURE_FLAG
=
5579 # Check whether --with-atf was given.
5580 if test "${with_atf+set}" = set; then :
5581 withval
=$with_atf; atf_path
="$withval"
5584 if test "$atf_path" = "bind"; then
5592 if test "$atf_path" = "bind" ; then
5593 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=bind"
5595 atf_path
="\${top_srcdir}/bind/atf"
5596 ATF_CFLAGS
="-I$atf_path/include -DUNIT_TEST"
5597 ATF_LDFLAGS
="-L$atf_path/lib -latf-c"
5598 ATF_BIN
=`cd $srcdir; pwd`/bind
/atf
/bin
5602 BINDCONFIG
="$BINDCONFIG --with-atf"
5603 elif test "$atf_path" != "no" ; then
5604 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=$atf_path"
5605 # Config path for pkg-config
5607 if test "$atf_path" != "yes" ; then
5608 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5609 atf_pcp
=$atf_path/lib
/pkgconfig
5610 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5611 atf_pcp
=$atf_path/lib64
/pkgconfig
5614 # Not specified, try some common paths
5615 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5618 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5619 atf_pcp
=$d/lib
/pkgconfig
5621 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5622 atf_pcp
=$d/lib64
/pkgconfig
5628 if test "$atf_pcp" = "" ; then
5629 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5631 # Extract the first word of "pkg-config", so it can be a program name with args.
5632 set dummy pkg-config
; ac_word
=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_pkgcfg_found+:} false
; then :
5636 $as_echo_n "(cached) " >&6
5638 if test -n "$pkgcfg_found"; then
5639 ac_cv_prog_pkgcfg_found
="$pkgcfg_found" # Let the user override the test.
5641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir
=.
5646 for ac_exec_ext
in '' $ac_executable_extensions; do
5647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_pkgcfg_found
="pkg-config"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 pkgcfg_found
=$ac_cv_prog_pkgcfg_found
5659 if test -n "$pkgcfg_found"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5661 $as_echo "$pkgcfg_found" >&6; }
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5668 if test "$pkgcfg_found" = ""; then
5669 as_fn_error $?
"Could not locate ATF, pkg-config not installed" "$LINENO" 5
5671 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5672 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5673 if test -f $atf_pcp/atf-sh.pc
; then
5674 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5676 # older versions don't have atf-sh, try usual place
5677 ATF_BIN
=$atf_path/bin
5680 if test ! -x $ATF_BIN/atf-run
-o ! -x $ATF_BIN/atf-report
; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run/atf-report not found, assuming they are in your path" >&5
5682 $as_echo "$as_me: WARNING: atf-run/atf-report not found, assuming they are in your path" >&2;}
5691 if test "$atf_pcp" != ""; then
5699 if test -z "$HAVE_ATF_TRUE"; then :
5701 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5707 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5708 ### need to look there and potentially overwrite by default (but not if
5709 ### the user configures an alternate value). LOCALSTATEDIR is totally
5710 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5711 ### they would be insane for suggesting it. We need to look in /var/for
5712 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5715 if test "x$prefix" = xNONE
; then
5716 $as_echo_n "checking for prefix by " >&6
5717 # Extract the first word of "dhcpd", so it can be a program name with args.
5718 set dummy dhcpd
; ac_word
=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5722 $as_echo_n "(cached) " >&6
5724 case $ac_prefix_program in
5726 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir
=.
5734 for ac_exec_ext
in '' $ac_executable_extensions; do
5735 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5736 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5748 if test -n "$ac_prefix_program"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5750 $as_echo "$ac_prefix_program" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5757 if test -n "$ac_prefix_program"; then
5758 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5759 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5760 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5761 X"$ac_prefix_program" : 'X\(//\)$' \| \
5762 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5763 $as_echo X"$ac_prefix_program" |
5764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5781 prefix
=`$as_dirname -- "$prefix" ||
5782 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5783 X"$prefix" : 'X\(//\)[^/]' \| \
5784 X"$prefix" : 'X\(//\)$' \| \
5785 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5786 $as_echo X"$prefix" |
5787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5808 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5809 # /usr/local/var/no/one/has/this/please/stop/trying?
5810 case "$localstatedir" in
5816 # Allow specification of alternate state files
5818 # Check whether --with-srv-lease-file was given.
5819 if test "${with_srv_lease_file+set}" = set; then :
5820 withval
=$with_srv_lease_file;
5821 cat >>confdefs.h
<<_ACEOF
5822 #define _PATH_DHCPD_DB "$withval"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5829 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5830 if [ "x$with_srv_lease_file" = "x" ] ; then
5831 if [ -d "${localstatedir}/db" ] ; then
5832 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5833 elif [ -d "${localstatedir}/state" ] ; then
5834 if [ -d "${localstatedir}/state/dhcp" ] ; then
5835 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5837 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5839 elif [ -d "${localstatedir}/lib" ] ; then
5840 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5841 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5843 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5845 elif [ -d "${localstatedir}/etc" ] ; then
5846 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5848 with_srv_lease_file
="/etc/dhcpd.leases"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5852 $as_echo "$with_srv_lease_file" >&6; }
5855 # Check whether --with-srv6-lease-file was given.
5856 if test "${with_srv6_lease_file+set}" = set; then :
5857 withval
=$with_srv6_lease_file;
5858 cat >>confdefs.h
<<_ACEOF
5859 #define _PATH_DHCPD6_DB "$withval"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5866 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5867 if [ "x$with_srv6_lease_file" = "x" ] ; then
5868 if [ -d "${localstatedir}/db" ] ; then
5869 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5870 elif [ -d "${localstatedir}/state" ] ; then
5871 if [ -d "${localstatedir}/state/dhcp" ] ; then
5872 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5874 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5876 elif [ -d "${localstatedir}/lib" ] ; then
5877 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5878 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5880 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5882 elif [ -d "${localstatedir}/etc" ] ; then
5883 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5885 with_srv6_lease_file
="/etc/dhcpd6.leases"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5889 $as_echo "$with_srv6_lease_file" >&6; }
5892 # Check whether --with-cli-lease-file was given.
5893 if test "${with_cli_lease_file+set}" = set; then :
5894 withval
=$with_cli_lease_file;
5895 cat >>confdefs.h
<<_ACEOF
5896 #define _PATH_DHCLIENT_DB "$withval"
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5903 $as_echo_n "checking for dhclient.leases location... " >&6; }
5904 if [ "x$with_cli_lease_file" = "x" ] ; then
5905 if [ -d "${localstatedir}/db" ] ; then
5906 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5907 elif [ -d "${localstatedir}/state" ] ; then
5908 if [ -d "${localstatedir}/state/dhcp" ] ; then
5909 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5911 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5913 elif [ -d "${localstatedir}/lib" ] ; then
5914 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5915 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5917 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5919 elif [ -d "${localstatedir}/etc" ] ; then
5920 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5922 with_cli_lease_file
="/etc/dhclient.leases"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5926 $as_echo "$with_cli_lease_file" >&6; }
5929 # Check whether --with-cli6-lease-file was given.
5930 if test "${with_cli6_lease_file+set}" = set; then :
5931 withval
=$with_cli6_lease_file;
5932 cat >>confdefs.h
<<_ACEOF
5933 #define _PATH_DHCLIENT6_DB "$withval"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5940 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5941 if [ "x$with_cli6_lease_file" = "x" ] ; then
5942 if [ -d "${localstatedir}/db" ] ; then
5943 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5944 elif [ -d "${localstatedir}/state" ] ; then
5945 if [ -d "${localstatedir}/state/dhcp" ] ; then
5946 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5948 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5950 elif [ -d "${localstatedir}/lib" ] ; then
5951 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5952 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5954 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5956 elif [ -d "${localstatedir}/etc" ] ; then
5957 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5959 with_cli6_lease_file
="/etc/dhclient6.leases"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5963 $as_echo "$with_cli6_lease_file" >&6; }
5966 # Check whether --with-srv-pid-file was given.
5967 if test "${with_srv_pid_file+set}" = set; then :
5968 withval
=$with_srv_pid_file;
5969 cat >>confdefs.h
<<_ACEOF
5970 #define _PATH_DHCPD_PID "$withval"
5976 # Check whether --with-srv6-pid-file was given.
5977 if test "${with_srv6_pid_file+set}" = set; then :
5978 withval
=$with_srv6_pid_file;
5979 cat >>confdefs.h
<<_ACEOF
5980 #define _PATH_DHCPD6_PID "$withval"
5986 # Check whether --with-cli-pid-file was given.
5987 if test "${with_cli_pid_file+set}" = set; then :
5988 withval
=$with_cli_pid_file;
5989 cat >>confdefs.h
<<_ACEOF
5990 #define _PATH_DHCLIENT_PID "$withval"
5996 # Check whether --with-cli6-pid-file was given.
5997 if test "${with_cli6_pid_file+set}" = set; then :
5998 withval
=$with_cli6_pid_file;
5999 cat >>confdefs.h
<<_ACEOF
6000 #define _PATH_DHCLIENT6_PID "$withval"
6006 # Check whether --with-relay-pid-file was given.
6007 if test "${with_relay_pid_file+set}" = set; then :
6008 withval
=$with_relay_pid_file;
6009 cat >>confdefs.h
<<_ACEOF
6010 #define _PATH_DHCRELAY_PID "$withval"
6016 # Check whether --with-relay6-pid-file was given.
6017 if test "${with_relay6_pid_file+set}" = set; then :
6018 withval
=$with_relay6_pid_file;
6019 cat >>confdefs.h
<<_ACEOF
6020 #define _PATH_DHCRELAY6_PID "$withval"
6026 # Check basic types.
6027 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6028 case $ac_cv_c_int8_t in #(
6032 cat >>confdefs.h
<<_ACEOF
6033 #define int8_t $ac_cv_c_int8_t
6038 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6039 case $ac_cv_c_int16_t in #(
6043 cat >>confdefs.h
<<_ACEOF
6044 #define int16_t $ac_cv_c_int16_t
6049 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6050 case $ac_cv_c_int32_t in #(
6054 cat >>confdefs.h
<<_ACEOF
6055 #define int32_t $ac_cv_c_int32_t
6060 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6061 case $ac_cv_c_int64_t in #(
6065 cat >>confdefs.h
<<_ACEOF
6066 #define int64_t $ac_cv_c_int64_t
6072 # Some systems need the u_intX_t types defined across.
6073 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6074 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6078 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6079 case $ac_cv_c_uint8_t in #(
6083 $as_echo "#define _UINT8_T 1" >>confdefs.h
6086 cat >>confdefs.h
<<_ACEOF
6087 #define uint8_t $ac_cv_c_uint8_t
6093 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6098 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6099 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6103 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6104 case $ac_cv_c_uint16_t in #(
6109 cat >>confdefs.h
<<_ACEOF
6110 #define uint16_t $ac_cv_c_uint16_t
6116 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6121 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6122 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6126 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6127 case $ac_cv_c_uint32_t in #(
6131 $as_echo "#define _UINT32_T 1" >>confdefs.h
6134 cat >>confdefs.h
<<_ACEOF
6135 #define uint32_t $ac_cv_c_uint32_t
6141 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6146 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6147 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6151 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6152 case $ac_cv_c_uint64_t in #(
6156 $as_echo "#define _UINT64_T 1" >>confdefs.h
6159 cat >>confdefs.h
<<_ACEOF
6160 #define uint64_t $ac_cv_c_uint64_t
6166 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6172 # see if ifaddrs.h is available
6173 for ac_header
in ifaddrs.h
6175 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6176 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6177 cat >>confdefs.h
<<_ACEOF
6178 #define HAVE_IFADDRS_H 1
6186 # figure out what IPv4 interface code to use
6187 for ac_header
in linux
/types.h
6189 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6190 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6191 cat >>confdefs.h
<<_ACEOF
6192 #define HAVE_LINUX_TYPES_H 1
6198 # needed for linux/filter.h on old systems
6200 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6201 #ifdef HAVE_LINUX_TYPES_H
6202 #include <linux/types.h>
6206 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6211 if test -n "$DO_LPF"
6214 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6217 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6218 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6223 if test -n "$DO_DLPI"
6226 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6229 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6230 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6235 if test -n "$DO_BPF"
6238 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6244 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6245 # use the same structures. We like to use 'struct lifconf' and 'struct
6246 # lifreq', but we'll use these other structures if they're present. HPUX
6247 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6251 $as_echo_n "checking for struct lifnum... " >&6; }
6252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <sys/types.h>
6255 #include <sys/socket.h>
6267 if ac_fn_c_try_compile
"$LINENO"; then :
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6269 $as_echo "yes" >&6; }
6271 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6280 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <sys/types.h>
6284 #include <net/if6.h>
6289 struct if_laddrconf a;
6295 if ac_fn_c_try_compile
"$LINENO"; then :
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6297 $as_echo "yes" >&6; }
6299 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6308 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 #include <sys/types.h>
6312 #include <net/if6.h>
6317 struct if_laddrreq a;
6323 if ac_fn_c_try_link
"$LINENO"; then :
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6325 $as_echo "yes" >&6; }
6327 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6333 rm -f core conftest.err conftest.
$ac_objext \
6334 conftest
$ac_exeext conftest.
$ac_ext
6337 # check for GCC noreturn attribute
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6340 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6347 void foo() __attribute__((noreturn));
6352 if ac_fn_c_try_compile
"$LINENO"; then :
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6354 $as_echo "yes" >&6; }
6356 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6362 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6367 # Look for optional headers.
6368 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6370 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6371 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6372 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6373 cat >>confdefs.h
<<_ACEOF
6374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6382 # Solaris needs some libraries for functions
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6384 $as_echo_n "checking for library containing socket... " >&6; }
6385 if ${ac_cv_search_socket+:} false
; then :
6386 $as_echo_n "(cached) " >&6
6388 ac_func_search_save_LIBS
=$LIBS
6389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6392 /* Override any GCC internal prototype to avoid an error.
6393 Use char because int might match the return type of a GCC
6394 builtin and then its argument prototype would still apply. */
6407 for ac_lib
in '' socket
; do
6408 if test -z "$ac_lib"; then
6409 ac_res
="none required"
6412 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6414 if ac_fn_c_try_link
"$LINENO"; then :
6415 ac_cv_search_socket
=$ac_res
6417 rm -f core conftest.err conftest.
$ac_objext \
6419 if ${ac_cv_search_socket+:} false
; then :
6423 if ${ac_cv_search_socket+:} false
; then :
6426 ac_cv_search_socket
=no
6429 LIBS
=$ac_func_search_save_LIBS
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6432 $as_echo "$ac_cv_search_socket" >&6; }
6433 ac_res
=$ac_cv_search_socket
6434 if test "$ac_res" != no
; then :
6435 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6440 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6441 if ${ac_cv_search_inet_ntoa+:} false
; then :
6442 $as_echo_n "(cached) " >&6
6444 ac_func_search_save_LIBS
=$LIBS
6445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6448 /* Override any GCC internal prototype to avoid an error.
6449 Use char because int might match the return type of a GCC
6450 builtin and then its argument prototype would still apply. */
6458 return inet_ntoa ();
6463 for ac_lib
in '' nsl
; do
6464 if test -z "$ac_lib"; then
6465 ac_res
="none required"
6468 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6470 if ac_fn_c_try_link
"$LINENO"; then :
6471 ac_cv_search_inet_ntoa
=$ac_res
6473 rm -f core conftest.err conftest.
$ac_objext \
6475 if ${ac_cv_search_inet_ntoa+:} false
; then :
6479 if ${ac_cv_search_inet_ntoa+:} false
; then :
6482 ac_cv_search_inet_ntoa
=no
6485 LIBS
=$ac_func_search_save_LIBS
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6488 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6489 ac_res
=$ac_cv_search_inet_ntoa
6490 if test "$ac_res" != no
; then :
6491 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6497 $as_echo_n "checking for library containing inet_aton... " >&6; }
6498 if ${ac_cv_search_inet_aton+:} false
; then :
6499 $as_echo_n "(cached) " >&6
6501 ac_func_search_save_LIBS
=$LIBS
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6505 /* Override any GCC internal prototype to avoid an error.
6506 Use char because int might match the return type of a GCC
6507 builtin and then its argument prototype would still apply. */
6515 return inet_aton ();
6520 for ac_lib
in '' socket nsl
; do
6521 if test -z "$ac_lib"; then
6522 ac_res
="none required"
6525 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6527 if ac_fn_c_try_link
"$LINENO"; then :
6528 ac_cv_search_inet_aton
=$ac_res
6530 rm -f core conftest.err conftest.
$ac_objext \
6532 if ${ac_cv_search_inet_aton+:} false
; then :
6536 if ${ac_cv_search_inet_aton+:} false
; then :
6539 ac_cv_search_inet_aton
=no
6542 LIBS
=$ac_func_search_save_LIBS
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6545 $as_echo "$ac_cv_search_inet_aton" >&6; }
6546 ac_res
=$ac_cv_search_inet_aton
6547 if test "$ac_res" != no
; then :
6548 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6552 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6557 # Check for a standalone regex library.
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6559 $as_echo_n "checking for library containing regcomp... " >&6; }
6560 if ${ac_cv_search_regcomp+:} false
; then :
6561 $as_echo_n "(cached) " >&6
6563 ac_func_search_save_LIBS
=$LIBS
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6567 /* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6582 for ac_lib
in '' regex
; do
6583 if test -z "$ac_lib"; then
6584 ac_res
="none required"
6587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6589 if ac_fn_c_try_link
"$LINENO"; then :
6590 ac_cv_search_regcomp
=$ac_res
6592 rm -f core conftest.err conftest.
$ac_objext \
6594 if ${ac_cv_search_regcomp+:} false
; then :
6598 if ${ac_cv_search_regcomp+:} false
; then :
6601 ac_cv_search_regcomp
=no
6604 LIBS
=$ac_func_search_save_LIBS
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6607 $as_echo "$ac_cv_search_regcomp" >&6; }
6608 ac_res
=$ac_cv_search_regcomp
6609 if test "$ac_res" != no
; then :
6610 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6615 for ac_func
in strlcat
6617 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6618 if test "x$ac_cv_func_strlcat" = xyes
; then :
6619 cat >>confdefs.h
<<_ACEOF
6620 #define HAVE_STRLCAT 1
6627 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6629 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6630 if ${ac_cv_search_if_nametoindex+:} false
; then :
6631 $as_echo_n "(cached) " >&6
6633 ac_func_search_save_LIBS
=$LIBS
6634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6637 /* Override any GCC internal prototype to avoid an error.
6638 Use char because int might match the return type of a GCC
6639 builtin and then its argument prototype would still apply. */
6643 char if_nametoindex ();
6647 return if_nametoindex ();
6652 for ac_lib
in '' ipv6
; do
6653 if test -z "$ac_lib"; then
6654 ac_res
="none required"
6657 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6659 if ac_fn_c_try_link
"$LINENO"; then :
6660 ac_cv_search_if_nametoindex
=$ac_res
6662 rm -f core conftest.err conftest.
$ac_objext \
6664 if ${ac_cv_search_if_nametoindex+:} false
; then :
6668 if ${ac_cv_search_if_nametoindex+:} false
; then :
6671 ac_cv_search_if_nametoindex
=no
6674 LIBS
=$ac_func_search_save_LIBS
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6677 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6678 ac_res
=$ac_cv_search_if_nametoindex
6679 if test "$ac_res" != no
; then :
6680 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6685 # check for /dev/random (declares HAVE_DEV_RANDOM)
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6687 $as_echo_n "checking for random device... " >&6; }
6689 # Check whether --with-randomdev was given.
6690 if test "${with_randomdev+set}" = set; then :
6691 withval
=$with_randomdev; use_randomdev
="$withval"
6693 use_randomdev
="unspec"
6696 if test "$use_randomdev" = "unspec"; then
6697 if test "$cross_compiling" = "yes"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6699 $as_echo "unspecified" >&6; }
6700 as_fn_error $?
" need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6702 use_randomdev
="/dev/random"
6703 elif test "$use_randomdev" = "yes"; then
6704 use_randomdev
="/dev/random"
6706 if test "$use_randomdev" = "no"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6708 $as_echo "disabled" >&6; }
6709 BINDCONFIG
="$BINDCONFIG --with-randomdev=no"
6711 if test "$cross_compiling" = "yes"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6713 $as_echo "$use_randomdev (unchecked)" >&6; }
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6716 $as_echo "$use_randomdev" >&6; }
6717 as_ac_File
=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6719 $as_echo_n "checking for $use_randomdev... " >&6; }
6720 if eval \
${$as_ac_File+:} false
; then :
6721 $as_echo_n "(cached) " >&6
6723 test "$cross_compiling" = yes &&
6724 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6725 if test -r "$use_randomdev"; then
6726 eval "$as_ac_File=yes"
6728 eval "$as_ac_File=no"
6731 eval ac_res
=\$
$as_ac_File
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6733 $as_echo "$ac_res" >&6; }
6734 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
6736 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6739 as_fn_error $?
"cannot find $use_randomdev" "$LINENO" 5
6743 BINDCONFIG
="$BINDCONFIG --with-randomdev=$use_randomdev"
6746 BINDIOMUX
="--disable-kqueue --disable-epoll --disable-devpoll"
6747 # check kqueue/epoll/devpoll alternative to select
6748 # Check whether --enable-kqueue was given.
6749 if test "${enable_kqueue+set}" = set; then :
6750 enableval
=$enable_kqueue; want_kqueue
="$enableval"
6755 if test "$want_kqueue" = "yes"; then
6756 BINDIOMUX
="--enable-kqueue"
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6758 $as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6760 # Check whether --enable-epoll was given.
6761 if test "${enable_epoll+set}" = set; then :
6762 enableval
=$enable_epoll; want_epoll
="$enableval"
6767 if test "$want_epoll" = "yes"; then
6768 BINDIOMUX
="--enable-epoll"
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6770 $as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6772 # Check whether --enable-devpoll was given.
6773 if test "${enable_devpoll+set}" = set; then :
6774 enableval
=$enable_devpoll; want_devpoll
="$enableval"
6779 if test "$want_devpoll" = "yes"; then
6780 BINDIOMUX
="--enable-devpoll"
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6782 $as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6786 # general extra bind configure arguments
6788 # Check whether --with-bind-extra-config was given.
6789 if test "${with_bind_extra_config+set}" = set; then :
6790 withval
=$with_bind_extra_config; use_xbindconfig
="$withval"
6795 case "$use_xbindconfig" in
6799 BINDCONFIG
="$BINDCONFIG $use_xbindconfig"
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6801 $as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6805 # see if there is a "sa_len" field in our interface information structure
6806 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6808 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6810 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6815 # figure out pointer size
6816 SAVE_CFLAGS
="$CFLAGS"
6817 CFLAGS
="$CFLAGS -I$srcdir"
6818 # The cast to long int works around a bug in the HP C Compiler
6819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6821 # This bug is HP SR number 8606223364.
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6823 $as_echo_n "checking size of struct iaddr *... " >&6; }
6824 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6825 $as_echo_n "(cached) " >&6
6827 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6828 #include \"includes/inet.h\"
6834 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6837 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6838 See \`config.log' for more details" "$LINENO" 5; }
6840 ac_cv_sizeof_struct_iaddr_p
=0
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6846 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6850 cat >>confdefs.h
<<_ACEOF
6851 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6855 CFLAGS
="$SAVE_CFLAGS"
6857 # Solaris does not have the msg_control or msg_controlen members
6858 # in the msghdr structure unless you define:
6860 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6862 # See the "standards" man page for details.
6864 # We check for the msg_control member, and if it is not found, we check
6865 # again with the appropriate defines added to the CFLAGS. (In order to
6866 # do this we have to remove the check from the cache, which is what the
6868 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6869 #include <sys/types.h>
6870 #include <sys/socket.h>
6873 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6876 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6877 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6878 unset ac_cv_member_struct_msghdr_msg_control
6879 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6880 #include <sys/types.h>
6881 #include <sys/socket.h>
6884 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6887 as_fn_error $?
"Missing msg_control member in
6888 msg_control structure." "$LINENO" 5
6895 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>
6897 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6899 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6905 # bind/Makefile.in is not from automake so we need 2 variables for bind dir
6913 DISTCHECK_LIBBIND_CONFIGURE_FLAG
=
6915 # Check whether --with-libbind was given.
6916 if test "${with_libbind+set}" = set; then :
6917 withval
=$with_libbind; use_libbind
="$withval"
6922 case "$use_libbind" in
6924 as_fn_error $?
"PATH is required in --with-libbind=PATH" "$LINENO" 5
6927 BINDSUBDIR
="\${top_srcdir}/bind"
6928 my_abs_srcdir
=`cd $srcdir && pwd`
6929 BINDDIR
="${my_abs_srcdir}/bind"
6930 if test ! -d "$srcdir/bind"; then
6931 as_fn_error $?
"Where to find or build bind includes and libraries must be specified" "$LINENO" 5
6933 if test -d "$srcdir/bind/bind9"; then
6934 BINDSRCDIR
="${my_abs_srcdir}/bind/bind9"
6936 if test ! -f "$srcdir/bind/version.tmp"; then
6937 as_fn_error $?
"Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
6939 .
"$srcdir/bind/version.tmp"
6940 bindversion
=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
6941 BINDSRCDIR
="${my_abs_srcdir}/bind/bind-$bindversion"
6943 ac_config_files
="$ac_config_files $srcdir/bind/Makefile"
6946 BINDLIBIRSDIR
="$BINDSRCDIR/lib/irs"
6947 BINDLIBDNSDIR
="$BINDSRCDIR/lib/dns"
6948 BINDLIBISCCFGDIR
="$BINDSRCDIR/lib/isccfg"
6949 BINDLIBISCDIR
="$BINDSRCDIR/lib/isc"
6952 if test ! -d "$use_libbind"; then
6953 as_fn_error $?
"Cannot find bind directory at $use_libbind" "$LINENO" 5
6955 if test ! -d "$use_libbind/include"; then
6956 as_fn_error $?
"Cannot find bind includes at $use_libbind/include" "$LINENO" 5
6958 if test ! -d "$use_libbind/lib"; then
6959 as_fn_error $?
"Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
6961 BINDDIR
="$use_libbind"
6962 BINDLIBIRSDIR
="$BINDDIR/lib"
6963 BINDLIBDNSDIR
="$BINDDIR/lib"
6964 BINDLIBISCCFGDIR
="$BINDDIR/lib"
6965 BINDLIBISCDIR
="$BINDDIR/lib"
6966 DISTCHECK_LIBBIND_CONFIGURE_FLAG
="--with-libbind=$use_libbind"
6977 if test "$use_libbind" = "no"; then
6979 HAVE_BINDDIR_FALSE
='#'
6981 HAVE_BINDDIR_TRUE
='#'
6988 # Check whether --with-ldap was given.
6989 if test "${with_ldap+set}" = set; then :
6990 withval
=$with_ldap; ldap
=$withval
6996 # OpenLDAP with SSL support.
6998 # Check whether --with-ldapcrypto was given.
6999 if test "${with_ldapcrypto+set}" = set; then :
7000 withval
=$with_ldapcrypto; ldapcrypto
=$withval
7006 # Gssapi to allow LDAP to authenticate with a keytab
7008 # Check whether --with-ldap-gssapi was given.
7009 if test "${with_ldap_gssapi+set}" = set; then :
7010 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
7017 # LDAP CASA auth support.
7019 # Check whether --with-ldapcasa was given.
7020 if test "${with_ldapcasa+set}" = set; then :
7021 withval
=$with_ldapcasa; ldapcasa
=$withval
7027 # OpenLDAP support is disabled by default, if enabled then SSL support is an
7028 # extra optional that is also disabled by default. Enabling LDAP SSL support
7029 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7030 # but doesn't include SSL. The two are not dependant.
7031 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7035 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
7036 if ${ac_cv_search_ldap_initialize+:} false
; then :
7037 $as_echo_n "(cached) " >&6
7039 ac_func_search_save_LIBS
=$LIBS
7040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7043 /* Override any GCC internal prototype to avoid an error.
7044 Use char because int might match the return type of a GCC
7045 builtin and then its argument prototype would still apply. */
7049 char ldap_initialize ();
7053 return ldap_initialize ();
7058 for ac_lib
in '' ldap
; do
7059 if test -z "$ac_lib"; then
7060 ac_res
="none required"
7063 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7065 if ac_fn_c_try_link
"$LINENO"; then :
7066 ac_cv_search_ldap_initialize
=$ac_res
7068 rm -f core conftest.err conftest.
$ac_objext \
7070 if ${ac_cv_search_ldap_initialize+:} false
; then :
7074 if ${ac_cv_search_ldap_initialize+:} false
; then :
7077 ac_cv_search_ldap_initialize
=no
7080 LIBS
=$ac_func_search_save_LIBS
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7083 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
7084 ac_res
=$ac_cv_search_ldap_initialize
7085 if test "$ac_res" != no
; then :
7086 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7092 See \`config.log' for more details" "$LINENO" 5; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7096 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7097 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7098 $as_echo_n "(cached) " >&6
7100 ac_func_search_save_LIBS
=$LIBS
7101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7104 /* Override any GCC internal prototype to avoid an error.
7105 Use char because int might match the return type of a GCC
7106 builtin and then its argument prototype would still apply. */
7110 char ber_pvt_opt_on ();
7114 return ber_pvt_opt_on ();
7119 for ac_lib
in '' lber
; do
7120 if test -z "$ac_lib"; then
7121 ac_res
="none required"
7124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7126 if ac_fn_c_try_link
"$LINENO"; then :
7127 ac_cv_search_ber_pvt_opt_on
=$ac_res
7129 rm -f core conftest.err conftest.
$ac_objext \
7131 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7135 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7138 ac_cv_search_ber_pvt_opt_on
=no
7141 LIBS
=$ac_func_search_save_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7144 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7145 ac_res
=$ac_cv_search_ber_pvt_opt_on
7146 if test "$ac_res" != no
; then :
7147 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7152 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7153 See \`config.log' for more details" "$LINENO" 5; }
7156 if test x
$ldap_gssapi = xyes
; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7158 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7159 if ${ac_cv_search_krb5_init_context+:} false
; then :
7160 $as_echo_n "(cached) " >&6
7162 ac_func_search_save_LIBS
=$LIBS
7163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7166 /* Override any GCC internal prototype to avoid an error.
7167 Use char because int might match the return type of a GCC
7168 builtin and then its argument prototype would still apply. */
7172 char krb5_init_context ();
7176 return krb5_init_context ();
7181 for ac_lib
in '' krb5
; do
7182 if test -z "$ac_lib"; then
7183 ac_res
="none required"
7186 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7188 if ac_fn_c_try_link
"$LINENO"; then :
7189 ac_cv_search_krb5_init_context
=$ac_res
7191 rm -f core conftest.err conftest.
$ac_objext \
7193 if ${ac_cv_search_krb5_init_context+:} false
; then :
7197 if ${ac_cv_search_krb5_init_context+:} false
; then :
7200 ac_cv_search_krb5_init_context
=no
7203 LIBS
=$ac_func_search_save_LIBS
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7206 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7207 ac_res
=$ac_cv_search_krb5_init_context
7208 if test "$ac_res" != no
; then :
7209 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7214 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7215 See \`config.log' for more details" "$LINENO" 5; }
7220 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7226 for ac_header
in ldap.h
7228 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7229 if test "x$ac_cv_header_ldap_h" = xyes
; then :
7230 cat >>confdefs.h
<<_ACEOF
7231 #define HAVE_LDAP_H 1
7238 for ac_func
in inet_pton inet_ntop
7240 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7241 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7242 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7243 cat >>confdefs.h
<<_ACEOF
7244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7252 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
7254 if test x
$ldapcasa = xyes
; then
7255 for ac_header
in micasa_mgmd.h
7257 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7258 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
7259 cat >>confdefs.h
<<_ACEOF
7260 #define HAVE_MICASA_MGMD_H 1
7263 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7268 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
7269 See \`config.log' for more details" "$LINENO" 5; }
7276 if test x
$ldapcrypto = xyes
; then
7277 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
7280 if test x
$ldap_gssapi = xyes
; then
7281 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7284 LDAP_CFLAGS
=$LDAP_CFLAGS
7288 # Append selected warning levels to CFLAGS before substitution (but after
7289 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7290 CFLAGS
="$CFLAGS $STD_CWARNINGS"
7292 # Try to add the bind and dhcp include directories
7293 CFLAGS
="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7297 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542";;
7299 # As of Solaris 11, ethernet dev files are in /dev/net
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7301 $as_echo_n "checking for /dev/net... " >&6; }
7302 if ${ac_cv_file__dev_net+:} false
; then :
7303 $as_echo_n "(cached) " >&6
7305 test "$cross_compiling" = yes &&
7306 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
7307 if test -r "/dev/net"; then
7308 ac_cv_file__dev_net
=yes
7310 ac_cv_file__dev_net
=no
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7314 $as_echo "$ac_cv_file__dev_net" >&6; }
7315 if test "x$ac_cv_file__dev_net" = xyes
; then :
7317 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7326 $as_echo_n "checking for flexible array members... " >&6; }
7327 if ${ac_cv_c_flexmember+:} false
; then :
7328 $as_echo_n "(cached) " >&6
7330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7335 struct s { int n; double d[]; };
7340 struct s *p = malloc (offsetof (struct s, d)
7341 + m * sizeof (double));
7343 return p->d != (double *) NULL;
7348 if ac_fn_c_try_compile
"$LINENO"; then :
7349 ac_cv_c_flexmember
=yes
7351 ac_cv_c_flexmember
=no
7353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7356 $as_echo "$ac_cv_c_flexmember" >&6; }
7357 if test $ac_cv_c_flexmember = yes; then
7359 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7362 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7367 ac_config_files
="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7369 cat >confcache
<<\_ACEOF
7370 # This file is a shell script that caches the results of configure
7371 # tests run on this system so they can be shared between configure
7372 # scripts and configure runs, see configure's option --config-cache.
7373 # It is not useful on other systems. If it contains results you don't
7374 # want to keep, you may remove or edit it.
7376 # config.status only pays attention to the cache file if you give it
7377 # the --recheck option to rerun configure.
7379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7385 # The following way of writing the cache mishandles newlines in values,
7386 # but we know of no workaround that is simple, portable, and efficient.
7387 # So, we kill variables containing newlines.
7388 # Ultrix sh set writes to stderr and can't be redirected directly,
7389 # and sets the high bit in the cache file unless we assign to the vars.
7391 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7392 eval ac_val
=\$
$ac_var
7396 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7400 _ | IFS | as_nl
) ;; #(
7401 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7402 *) { eval $ac_var=; unset $ac_var;} ;;
7408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7409 *${as_nl}ac_space
=\
*)
7410 # `set' does not quote correctly, so add quotes: double-quote
7411 # substitution turns \\\\ into \\, and sed turns \\ into \.
7414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7417 # `set' quotes correctly as required by POSIX, so do not add quotes.
7418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7431 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7432 if test -w "$cache_file"; then
7433 if test "x$cache_file" != "x/dev/null"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7435 $as_echo "$as_me: updating cache $cache_file" >&6;}
7436 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7437 cat confcache
>"$cache_file"
7439 case $cache_file in #(
7441 mv -f confcache
"$cache_file"$$
&&
7442 mv -f "$cache_file"$$
"$cache_file" ;; #(
7444 mv -f confcache
"$cache_file" ;;
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7450 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7455 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7456 # Let make expand exec_prefix.
7457 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7459 DEFS
=-DHAVE_CONFIG_H
7464 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7465 # 1. Remove the extension, and $U if already installed.
7466 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7467 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7469 # will be set to the directory where LIBOBJS objects are built.
7470 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7471 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7475 LTLIBOBJS
=$ac_ltlibobjs
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7479 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7480 if test -n "$am_sleep_pid"; then
7481 # Hide warnings about reused PIDs.
7482 wait $am_sleep_pid 2>/dev
/null
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7485 $as_echo "done" >&6; }
7486 if test -n "$EXEEXT"; then
7488 am__EXEEXT_FALSE
='#'
7494 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7495 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7498 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7499 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7502 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7503 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7507 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7508 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7511 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7512 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7515 if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then
7516 as_fn_error $?
"conditional \"HAVE_BINDDIR\" was never defined.
7517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7520 : "${CONFIG_STATUS=./config.status}"
7522 ac_clean_files_save
=$ac_clean_files
7523 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7525 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7527 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7529 # Generated by $as_me.
7530 # Run this file to recreate the current configuration.
7531 # Compiler output produced by configure, useful for debugging
7532 # configure, is in config.log if it exists.
7538 SHELL=\${CONFIG_SHELL-$SHELL}
7541 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7542 ## -------------------- ##
7543 ## M4sh Initialization. ##
7544 ## -------------------- ##
7546 # Be more Bourne compatible
7547 DUALCASE
=1; export DUALCASE
# for MKS sh
7548 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7552 # is contrary to our usage. Disable this feature.
7553 alias -g '${1+"$@"}'='"$@"'
7554 setopt NO_GLOB_SUBST
7556 case `(set -o) 2>/dev/null` in #(
7568 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7569 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7572 # Prefer a ksh shell builtin over an external printf program on Solaris,
7573 # but without wasting forks for bash or zsh.
7574 if test -z "$BASH_VERSION$ZSH_VERSION" \
7575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7576 as_echo='print
-r --'
7577 as_echo_n='print
-rn --'
7578 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7579 as_echo='printf %s
\n'
7580 as_echo_n='printf %s
'
7582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7583 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7584 as_echo_n='/usr
/ucb
/echo -n'
7586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7587 as_echo_n_body='eval
7591 expr "X$arg" : "X\\(.*\\)$as_nl";
7592 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7594 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7596 export as_echo_n_body
7597 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7600 as_echo='sh
-c $as_echo_body as_echo
'
7603 # The user is always right.
7604 if test "${PATH_SEPARATOR+set}" != set; then
7606 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7607 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7614 # We need space, tab and new line, in precisely that order. Quoting is
7615 # there to prevent editors from complaining about space-tab.
7616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7617 # splitting by setting IFS to empty value.)
7620 # Find who we are. Look in the path if we contain no directory separator.
7623 *[\\/]* ) as_myself=$0 ;;
7624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 test -z "$as_dir" && as_dir=.
7629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7635 # We did not find ourselves, most probably we were run as `sh COMMAND'
7636 # in which case we are not to be found in the path.
7637 if test "x$as_myself" = x
; then
7640 if test ! -f "$as_myself"; then
7641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7645 # Unset variables that we do not need and which cause bugs (e.g. in
7646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7647 # suppresses any "Segmentation fault" message there. '((' could
7648 # trigger a bug in pdksh 5.2.14.
7649 for as_var
in BASH_ENV ENV MAIL MAILPATH
7650 do eval test x\
${$as_var+set} = xset \
7651 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7664 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7667 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7668 # ----------------------------------------
7669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7671 # script with STATUS, using 1 if that was 0.
7674 as_status
=$1; test $as_status -eq 0 && as_status
=1
7676 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7679 $as_echo "$as_me: error: $2" >&2
7680 as_fn_exit
$as_status
7684 # as_fn_set_status STATUS
7685 # -----------------------
7686 # Set $? to STATUS, without forking.
7690 } # as_fn_set_status
7694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7704 # Portably unset VAR.
7707 { eval $1=; unset $1;}
7709 as_unset
=as_fn_unset
7710 # as_fn_append VAR VALUE
7711 # ----------------------
7712 # Append the text in VALUE to the end of the definition contained in VAR. Take
7713 # advantage of any shell optimizations that allow amortized linear growth over
7714 # repeated appends, instead of the typical quadratic growth present in naive
7716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7717 eval 'as_fn_append ()
7728 # as_fn_arith ARG...
7729 # ------------------
7730 # Perform arithmetic evaluation on the ARGs, and store the result in the
7731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7732 # must be portable across $(()) and expr.
7733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7734 eval 'as_fn_arith ()
7741 as_val
=`expr "$@" || test $? -eq 1`
7746 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7747 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7753 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7754 as_basename
=basename
7759 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7765 as_me
=`$as_basename -- "$0" ||
7766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7767 X"$0" : 'X\(//\)$' \| \
7768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7770 sed '/^.*\/\([^/][^/]*\)\/*$/{
7784 # Avoid depending upon Character Ranges.
7785 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7786 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7787 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7788 as_cr_digits
='0123456789'
7789 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7791 ECHO_C
= ECHO_N
= ECHO_T
=
7792 case `echo -n x` in #(((((
7794 case `echo 'xy\c'` in
7795 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7797 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7804 rm -f conf$$ conf$$.exe conf$$.
file
7805 if test -d conf$$.dir
; then
7806 rm -f conf$$.dir
/conf$$.
file
7809 mkdir conf$$.dir
2>/dev
/null
7811 if (echo >conf$$.
file) 2>/dev
/null
; then
7812 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7814 # ... but there are two gotchas:
7815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7817 # In both cases, we have to default to `cp -pR'.
7818 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7820 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7828 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7829 rmdir conf$$.dir
2>/dev
/null
7834 # Create "$as_dir" as a directory, including parents if necessary.
7839 -*) as_dir
=.
/$as_dir;;
7841 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7845 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7846 *) as_qdir
=$as_dir;;
7848 as_dirs
="'$as_qdir' $as_dirs"
7849 as_dir
=`$as_dirname -- "$as_dir" ||
7850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7851 X"$as_dir" : 'X\(//\)[^/]' \| \
7852 X"$as_dir" : 'X\(//\)$' \| \
7853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7854 $as_echo X"$as_dir" |
7855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7872 test -d "$as_dir" && break
7874 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7875 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7879 if mkdir
-p .
2>/dev
/null
; then
7880 as_mkdir_p
='mkdir -p "$as_dir"'
7882 test -d .
/-p && rmdir .
/-p
7887 # as_fn_executable_p FILE
7888 # -----------------------
7889 # Test if FILE is an executable regular file.
7890 as_fn_executable_p
()
7892 test -f "$1" && test -x "$1"
7893 } # as_fn_executable_p
7895 as_executable_p
=as_fn_executable_p
7897 # Sed expression to map a string onto a valid CPP name.
7898 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7900 # Sed expression to map a string onto a valid variable name.
7901 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7905 ## ----------------------------------- ##
7906 ## Main body of $CONFIG_STATUS script. ##
7907 ## ----------------------------------- ##
7909 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7912 # Save the log message, to keep $0 and so on meaningful, and to
7913 # report actual input values of CONFIG_FILES etc. instead of their
7914 # values after options handling.
7916 This file was extended by DHCP $as_me 4.3.4, which was
7917 generated by GNU Autoconf 2.69. Invocation command line was
7919 CONFIG_FILES = $CONFIG_FILES
7920 CONFIG_HEADERS = $CONFIG_HEADERS
7921 CONFIG_LINKS = $CONFIG_LINKS
7922 CONFIG_COMMANDS = $CONFIG_COMMANDS
7925 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7930 case $ac_config_files in *"
7931 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7934 case $ac_config_headers in *"
7935 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7940 # Files that config.status was made for.
7941 config_files="$ac_config_files"
7942 config_headers="$ac_config_headers"
7943 config_commands="$ac_config_commands"
7947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7949 \`$as_me' instantiates files and other configuration actions
7950 from templates according to the current configuration. Unless the files
7951 and actions are specified as TAGs, all are instantiated by default.
7953 Usage: $0 [OPTION]... [TAG]...
7955 -h, --help print this help, then exit
7956 -V, --version print version number and configuration settings, then exit
7957 --config print configuration, then exit
7958 -q, --quiet, --silent
7959 do not print progress messages
7960 -d, --debug don't remove temporary files
7961 --recheck update $as_me by reconfiguring in the same conditions
7962 --file=FILE[:TEMPLATE]
7963 instantiate the configuration file FILE
7964 --header=FILE[:TEMPLATE]
7965 instantiate the configuration header FILE
7967 Configuration files:
7970 Configuration headers:
7973 Configuration commands:
7976 Report bugs to <dhcp-users@isc.org>."
7979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7980 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7982 DHCP config.status 4.3.4
7983 configured by $0, generated by GNU Autoconf 2.69,
7984 with options \\"\$ac_cs_config\\"
7986 Copyright (C) 2012 Free Software Foundation, Inc.
7987 This config.status script is free software; the Free Software Foundation
7988 gives unlimited permission to copy, distribute and modify it."
7995 test -n "\$AWK" || AWK=awk
7998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7999 # The default lists apply if the user does not specify any file.
8005 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8006 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8010 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8022 # Handling of the options.
8023 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8025 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8026 $as_echo "$ac_cs_version"; exit ;;
8027 --config |
--confi |
--conf |
--con |
--co |
--c )
8028 $as_echo "$ac_cs_config"; exit ;;
8029 --debug |
--debu |
--deb |
--de |
--d |
-d )
8031 --file |
--fil |
--fi |
--f )
8034 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8035 '') as_fn_error $?
"missing file argument" ;;
8037 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8038 ac_need_defaults
=false
;;
8039 --header |
--heade |
--head |
--hea )
8042 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8044 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8045 ac_need_defaults
=false
;;
8047 # Conflict between --help and --header
8048 as_fn_error $?
"ambiguous option: \`$1'
8049 Try \`$0 --help' for more information.";;
8050 --help |
--hel |
-h )
8051 $as_echo "$ac_cs_usage"; exit ;;
8052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8053 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8057 -*) as_fn_error $?
"unrecognized option: \`$1'
8058 Try \`$0 --help' for more information." ;;
8060 *) as_fn_append ac_config_targets
" $1"
8061 ac_need_defaults
=false
;;
8067 ac_configure_extra_args
=
8069 if $ac_cs_silent; then
8071 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8076 if \$ac_cs_recheck; then
8077 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8080 CONFIG_SHELL='$SHELL'
8086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8091 ## Running $as_me. ##
8097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8101 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8107 # Handling of arguments.
8108 for ac_config_target
in $ac_config_targets
8110 case $ac_config_target in
8111 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8112 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
8113 "$srcdir/bind/Makefile") CONFIG_FILES
="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8114 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8115 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
8116 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
8117 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8118 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
8119 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
8120 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
8121 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
8122 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
8123 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
8124 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8125 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
8126 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
8127 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
8129 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8134 # If the user did not use the arguments to specify the items to instantiate,
8135 # then the envvar interface is used. Set only those that are not.
8136 # We use the long form for the default assignment because of an extremely
8137 # bizarre bug on SunOS 4.1.3.
8138 if $ac_need_defaults; then
8139 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8140 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8141 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8144 # Have a temporary directory for convenience. Make it in the build tree
8145 # simply because there is no reason against having it here, and in addition,
8146 # creating and moving files from /tmp can sometimes cause problems.
8147 # Hook for its removal unless debugging.
8148 # Note that there is a small window in which the directory will not be cleaned:
8149 # after its creation but before its name has been assigned to `$tmp'.
8153 trap 'exit_status=$?
8155 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8157 trap 'as_fn_exit 1' 1 2 13 15
8159 # Create a (secure) tmp directory for tmp files.
8162 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8166 tmp
=.
/conf$$
-$RANDOM
8167 (umask 077 && mkdir
"$tmp")
8168 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8171 # Set up the scripts for CONFIG_FILES section.
8172 # No need to generate them if there are no CONFIG_FILES.
8173 # This happens for instance with `./config.status config.h'.
8174 if test -n "$CONFIG_FILES"; then
8177 ac_cr
=`echo X | tr X '\015'`
8178 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8179 # But we know of no other shell where ac_cr would be empty at this
8180 # point, so we can use a bashism as a fallback.
8181 if test "x$ac_cr" = x
; then
8182 eval ac_cr
=\$
\'\\r
\'
8184 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8185 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8191 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8196 echo "cat >conf$$subs.awk <<_ACEOF" &&
8197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8200 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8201 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8203 for ac_last_try in false false false false false :; do
8204 . ./conf$$subs.sh ||
8205 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8207 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8208 if test $ac_delim_n = $ac_delim_num; then
8210 elif $ac_last_try; then
8211 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8213 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8219 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8223 s/^/S["/; s
/!.
*/"]=/
8233 s/\(.\{148\}\)..*/\1/
8235 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8240 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8247 s/\(.\{148\}\)..*/\1/
8249 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8253 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8258 ' <conf$$subs.awk | sed '
8263 ' >>$CONFIG_STATUS || ac_write_fail=1
8264 rm -f conf$$subs.awk
8265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8267 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8268 for (key in S) S_is_set[key] = 1
8274 nfields = split(line, field, "@
")
8276 len = length(field[1])
8277 for (i = 2; i < nfields; i++) {
8279 keylen = length(key)
8280 if (S_is_set[key]) {
8282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8283 len += length(value) + length(field[++i])
8294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8295 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8296 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8299 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8300 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8303 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8304 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8305 # trailing colons and then remove the whole line if VPATH becomes empty
8306 # (actually we leave an empty line to preserve line numbers).
8307 if test "x
$srcdir" = x.; then
8308 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8327 fi # test -n "$CONFIG_FILES"
8329 # Set up the scripts for CONFIG_HEADERS section.
8330 # No need to generate them if there are no CONFIG_HEADERS.
8331 # This happens for instance with `./config.status Makefile'.
8332 if test -n "$CONFIG_HEADERS"; then
8333 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8337 # Transform confdefs.h into an awk script `defines.awk', embedded as
8338 # here-document in config.status, that substitutes the proper values into
8339 # config.h.in to produce config.h.
8341 # Create a delimiter string that does not exist in confdefs.h, to ease
8342 # handling of long lines.
8344 for ac_last_try in false false :; do
8345 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8346 if test -z "$ac_tt"; then
8348 elif $ac_last_try; then
8349 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8351 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8355 # For the awk script, D is an array of macro values keyed by name,
8356 # likewise P contains macro parameters if any. Preserve backslash
8357 # newline sequences.
8359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8361 s/.\{148\}/&'"$ac_delim"'/g
8364 s/^[ ]*#[ ]*define[ ][ ]*/ /
8371 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8373 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8378 D["\
1"]=" \
3\\\\\\n
"\\/p
8380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8385 s/.\{148\}/&'"$ac_delim"'/g
8390 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8393 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8395 ' <confdefs.h | sed '
8396 s/'"$ac_delim"'/"\\\
8397 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8400 for (key in D) D_is_set[key] = 1
8403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8405 split(line, arg, " ")
8406 if (arg[1] == "#") {
8410 defundef
= substr
(arg
[1], 2)
8413 split(mac1
, mac2
, "(") #)
8415 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8416 if (D_is_set
[macro
]) {
8417 # Preserve the white space surrounding the "#".
8418 print prefix
"define", macro P
[macro
] D
[macro
]
8421 # Replace #undef with comments. This is necessary, for example,
8422 # in the case of _POSIX_SOURCE, which is predefined and required
8423 # on some systems where configure will not decide to define it.
8424 if (defundef
== "undef") {
8425 print
"/*", prefix defundef
, macro
, "*/"
8433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8434 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8435 fi # test -n "$CONFIG_HEADERS"
8438 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8443 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8445 case $ac_mode$ac_tag in
8447 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8448 :[FH
]-) ac_tag
=-:-;;
8449 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8466 -) ac_f
="$ac_tmp/stdin";;
8467 *) # Look for the file first in the build tree, then in the source tree
8468 # (if the path is not absolute). The absolute path cannot be DOS-style,
8469 # because $ac_f cannot contain `:'.
8473 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8475 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8477 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8478 as_fn_append ac_file_inputs
" '$ac_f'"
8481 # Let's still pretend it is `configure' which instantiates (i.e., don't
8482 # use $as_me), people would be surprised to read:
8483 # /* config.h. Generated by config.status. */
8484 configure_input
='Generated from '`
8485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8487 if test x
"$ac_file" != x-
; then
8488 configure_input
="$ac_file. $configure_input"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8490 $as_echo "$as_me: creating $ac_file" >&6;}
8492 # Neutralize special characters interpreted by sed in replacement strings.
8493 case $configure_input in #(
8494 *\
&* |
*\|
* |
*\\* )
8495 ac_sed_conf_input
=`$as_echo "$configure_input" |
8496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8497 *) ac_sed_conf_input
=$configure_input;;
8501 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8502 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8507 ac_dir
=`$as_dirname -- "$ac_file" ||
8508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8509 X"$ac_file" : 'X\(//\)[^/]' \| \
8510 X"$ac_file" : 'X\(//\)$' \| \
8511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8512 $as_echo X"$ac_file" |
8513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8530 as_dir
="$ac_dir"; as_fn_mkdir_p
8534 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8536 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8537 # A ".." for each directory in $ac_dir_suffix.
8538 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8539 case $ac_top_builddir_sub in
8540 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8541 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8544 ac_abs_top_builddir
=$ac_pwd
8545 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8546 # for backward compatibility:
8547 ac_top_builddir
=$ac_top_build_prefix
8550 .
) # We are building in place.
8552 ac_top_srcdir
=$ac_top_builddir_sub
8553 ac_abs_top_srcdir
=$ac_pwd ;;
8554 [\\/]* | ?
:[\\/]* ) # Absolute name.
8555 ac_srcdir
=$srcdir$ac_dir_suffix;
8556 ac_top_srcdir
=$srcdir
8557 ac_abs_top_srcdir
=$srcdir ;;
8559 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8560 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8561 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8563 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8573 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8574 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8578 [\\/$
]* | ?
:[\\/]* ) ;;
8579 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8584 # Neutralize VPATH when `$srcdir' = `.'.
8585 # Shell code in configure.ac might set extrasub.
8586 # FIXME: do we really want to maintain this feature?
8587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8588 ac_sed_extra="$ac_vpsub
8591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8593 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8594 s|@configure_input@|
$ac_sed_conf_input|
;t t
8595 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8596 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8597 s
&@srcdir@
&$ac_srcdir&;t t
8598 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8599 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8600 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8601 s
&@builddir@
&$ac_builddir&;t t
8602 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8603 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8604 s
&@INSTALL@
&$ac_INSTALL&;t t
8605 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8607 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8608 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8611 rm -f "$ac_tmp/stdin
"
8613 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8614 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8616 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8622 if test x"$ac_file" != x-; then
8624 $as_echo "/* $configure_input */" \
8625 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8626 } >"$ac_tmp/config.h
" \
8627 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8628 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8630 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8633 mv "$ac_tmp/config.h
" "$ac_file" \
8634 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8637 $as_echo "/* $configure_input */" \
8638 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8639 || as_fn_error $? "could not create
-" "$LINENO" 5
8641 # Compute "$ac_file"'s index in $config_headers.
8644 for _am_header in $config_headers :; do
8646 $_am_arg | $_am_arg:* )
8649 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8652 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8653 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8654 X"$_am_arg" : 'X\(//\)[^/]' \| \
8655 X"$_am_arg" : 'X\(//\)$' \| \
8656 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8657 $as_echo X"$_am_arg" |
8658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8674 s/.*/./; q'`/stamp-h$_am_stamp_count
8677 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8678 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8683 case $ac_file$ac_mode in
8684 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8685 # Older Autoconf quotes --file arguments for eval, but not when files
8686 # are listed without --file. Let's play safe and only enable the eval
8687 # if we detect the quoting.
8688 case $CONFIG_FILES in
8689 *\'*) eval set x "$CONFIG_FILES" ;;
8690 *) set x $CONFIG_FILES ;;
8695 # Strip MF so we end up with the name of the file.
8696 mf=`echo "$mf" | sed -e 's/:.*$//'`
8697 # Check whether this is an Automake generated Makefile or not.
8698 # We used to match only the files named 'Makefile.in', but
8699 # some people rename them; so instead we look at the file content.
8700 # Grep'ing the first line is not enough: some people post-process
8701 # each Makefile.in and add a new line on top of each file to say so.
8702 # Grep'ing the whole file is not good either: AIX grep has a line
8703 # limit of 2048, but all sed's we know have understand at least 4000.
8704 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8705 dirpart=`$as_dirname -- "$mf" ||
8706 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8707 X"$mf" : 'X\(//\)[^/]' \| \
8708 X"$mf" : 'X\(//\)$' \| \
8709 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8731 # Extract the definition of DEPDIR, am__include, and am__quote
8732 # from the Makefile without running 'make'.
8733 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8734 test -z "$DEPDIR" && continue
8735 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8736 test -z "$am__include" && continue
8737 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8738 # Find all dependency output files, they are included files with
8739 # $(DEPDIR) in their names. We invoke sed twice because it is the
8740 # simplest approach to changing $(DEPDIR) to its actual value in the
8742 for file in `sed -n "
8743 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
8744 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8745 # Make sure the directory exists.
8746 test -f "$dirpart/$file" && continue
8747 fdir=`$as_dirname -- "$file" ||
8748 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8749 X"$file" : 'X\(//\)[^/]' \| \
8750 X"$file" : 'X\(//\)$' \| \
8751 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8770 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8771 # echo "creating
$dirpart/$file"
8772 echo '# dummy' > "$dirpart/$file"
8784 ac_clean_files=$ac_clean_files_save
8786 test $ac_write_fail = 0 ||
8787 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8790 # configure is writing to config.log, and then calls config.status.
8791 # config.status does its own redirection, appending to config.log.
8792 # Unfortunately, on DOS this fails, as config.log is still kept open
8793 # by configure, so config.status won't be able to write to it; its
8794 # output is simply discarded. So we exec the FD to /dev/null,
8795 # effectively closing config.log, so it can be properly (re)opened and
8796 # appended to by config.status. When coming back to configure, we
8797 # need to make the FD available again.
8798 if test "$no_create" != yes; then
8800 ac_config_status_args=
8801 test "$silent" = yes &&
8802 ac_config_status_args="$ac_config_status_args --quiet"
8804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8807 # would make configure fail if this is the last instruction.
8808 $ac_cs_success || as_fn_exit 1
8810 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
8812 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
8816 if test "$enable_dhcpv4o6" = "yes"; then
8817 DHCP_VERSIONS="DHCPv4
, DHCPv6 and DHCPv4-over-DHCPv6
"
8818 elif test "$enable_dhcpv6" != "no
"; then
8819 DHCP_VERSIONS="DHCPv4 and DHCPv6
"
8821 DHCP_VERSIONS="DHCPv4
"
8824 cat > config.report << END
8826 ISC DHCP source configure results:
8827 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8831 Version: $PACKAGE_VERSION
8839 DHCP versions: $DHCP_VERSIONS
8842 debug: $enable_debug
8843 failover: $enable_failover
8844 execute: $enable_execute
8845 binary-leases: $enable_binary_leases
8846 dhcpv6: $enable_dhcpv6
8847 delayed-ack: $enable_delayed_ack
8850 ATF unittests : $atf_path
8853 # TODO: Add Perl system tests
8855 if test "$atf_path" != "no
"
8857 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
8858 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
8859 echo "ATF_BIN
: $ATF_BIN" >> config.report
8866 echo Now you can type "make" to build ISC DHCP