2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.4.0-dev.
5 # Report bugs to <dhcp-users@isc.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and dhcp-users@isc.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='dhcp'
583 PACKAGE_VERSION
='4.4.0-dev'
584 PACKAGE_STRING
='DHCP 4.4.0-dev'
585 PACKAGE_BUGREPORT
='dhcp-users@isc.org'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars
='am__EXEEXT_FALSE
633 DISTCHECK_LIBTOOL_CONFIGURE_FLAG
639 DISTCHECK_LIBBIND_CONFIGURE_FLAG
649 DISTCHECK_ATF_CONFIGURE_FLAG
691 MAINTAINER_MODE_FALSE
705 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
762 enable_maintainer_mode
763 enable_dependency_tracking
775 enable_secs_byteorder
793 with_bind_extra_config
802 ac_precious_vars
='build_alias
813 # Initialize some variables set by options.
815 ac_init_version
=false
816 ac_unrecognized_opts
=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
827 program_transform_name
=s
,x
,x
,
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir
='${exec_prefix}/bin'
842 sbindir
='${exec_prefix}/sbin'
843 libexecdir
='${exec_prefix}/libexec'
844 datarootdir
='${prefix}/share'
845 datadir
='${datarootdir}'
846 sysconfdir
='${prefix}/etc'
847 sharedstatedir
='${prefix}/com'
848 localstatedir
='${prefix}/var'
849 includedir
='${prefix}/include'
850 oldincludedir
='/usr/include'
851 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir
='${datarootdir}/info'
857 libdir
='${exec_prefix}/lib'
858 localedir
='${datarootdir}/locale'
859 mandir
='${datarootdir}/man'
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\
$ac_option
873 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
886 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
889 -build |
--build |
--buil |
--bui |
--bu)
890 ac_prev
=build_alias
;;
891 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
892 build_alias
=$ac_optarg ;;
894 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
895 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
896 ac_prev
=cache_file
;;
897 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
898 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
899 cache_file
=$ac_optarg ;;
902 cache_file
=config.cache
;;
904 -datadir |
--datadir |
--datadi |
--datad)
906 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
907 datadir
=$ac_optarg ;;
909 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
910 |
--dataroo |
--dataro |
--datar)
911 ac_prev
=datarootdir
;;
912 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
913 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
914 datarootdir
=$ac_optarg ;;
916 -disable-* |
--disable-*)
917 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
920 as_fn_error $?
"invalid feature name: $ac_useropt"
921 ac_useropt_orig
=$ac_useropt
922 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep
=', ';;
930 eval enable_
$ac_useropt=no
;;
932 -docdir |
--docdir |
--docdi |
--doc |
--do)
934 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
937 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
939 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
942 -enable-* |
--enable-*)
943 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
946 as_fn_error $?
"invalid feature name: $ac_useropt"
947 ac_useropt_orig
=$ac_useropt
948 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep
=', ';;
956 eval enable_
$ac_useropt=\
$ac_optarg ;;
958 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
959 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
960 |
--exec |
--exe |
--ex)
961 ac_prev
=exec_prefix
;;
962 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
963 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
964 |
--exec=* |
--exe=* |
--ex=*)
965 exec_prefix
=$ac_optarg ;;
967 -gas |
--gas |
--ga |
--g)
968 # Obsolete; use --with-gas.
971 -help |
--help |
--hel |
--he |
-h)
973 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
974 ac_init_help
=recursive
;;
975 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
976 ac_init_help
=short
;;
978 -host |
--host |
--hos |
--ho)
979 ac_prev
=host_alias
;;
980 -host=* |
--host=* |
--hos=* |
--ho=*)
981 host_alias
=$ac_optarg ;;
983 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
985 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
987 htmldir
=$ac_optarg ;;
989 -includedir |
--includedir |
--includedi |
--included |
--include \
990 |
--includ |
--inclu |
--incl |
--inc)
991 ac_prev
=includedir
;;
992 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
993 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
994 includedir
=$ac_optarg ;;
996 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
998 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
999 infodir
=$ac_optarg ;;
1001 -libdir |
--libdir |
--libdi |
--libd)
1003 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1004 libdir
=$ac_optarg ;;
1006 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1007 |
--libexe |
--libex |
--libe)
1008 ac_prev
=libexecdir
;;
1009 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1010 |
--libexe=* |
--libex=* |
--libe=*)
1011 libexecdir
=$ac_optarg ;;
1013 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1014 ac_prev
=localedir
;;
1015 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1016 localedir
=$ac_optarg ;;
1018 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1019 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1020 ac_prev
=localstatedir
;;
1021 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1022 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1023 localstatedir
=$ac_optarg ;;
1025 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1027 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1028 mandir
=$ac_optarg ;;
1030 -nfp |
--nfp |
--nf)
1031 # Obsolete; use --without-fp.
1034 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1035 |
--no-cr |
--no-c |
-n)
1038 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1039 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1042 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1043 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1044 |
--oldin |
--oldi |
--old |
--ol |
--o)
1045 ac_prev
=oldincludedir
;;
1046 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1047 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1048 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1049 oldincludedir
=$ac_optarg ;;
1051 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1053 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1054 prefix
=$ac_optarg ;;
1056 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1057 |
--program-pre |
--program-pr |
--program-p)
1058 ac_prev
=program_prefix
;;
1059 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1060 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1061 program_prefix
=$ac_optarg ;;
1063 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1064 |
--program-suf |
--program-su |
--program-s)
1065 ac_prev
=program_suffix
;;
1066 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1067 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1068 program_suffix
=$ac_optarg ;;
1070 -program-transform-name |
--program-transform-name \
1071 |
--program-transform-nam |
--program-transform-na \
1072 |
--program-transform-n |
--program-transform- \
1073 |
--program-transform |
--program-transfor \
1074 |
--program-transfo |
--program-transf \
1075 |
--program-trans |
--program-tran \
1076 |
--progr-tra |
--program-tr |
--program-t)
1077 ac_prev
=program_transform_name
;;
1078 -program-transform-name=* |
--program-transform-name=* \
1079 |
--program-transform-nam=* |
--program-transform-na=* \
1080 |
--program-transform-n=* |
--program-transform-=* \
1081 |
--program-transform=* |
--program-transfor=* \
1082 |
--program-transfo=* |
--program-transf=* \
1083 |
--program-trans=* |
--program-tran=* \
1084 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1085 program_transform_name
=$ac_optarg ;;
1087 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1089 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1090 pdfdir
=$ac_optarg ;;
1092 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1094 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1097 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1098 |
-silent |
--silent |
--silen |
--sile |
--sil)
1101 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1103 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1105 sbindir
=$ac_optarg ;;
1107 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1108 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1109 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1111 ac_prev
=sharedstatedir
;;
1112 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1113 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1114 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1116 sharedstatedir
=$ac_optarg ;;
1118 -site |
--site |
--sit)
1120 -site=* |
--site=* |
--sit=*)
1123 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1125 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1126 srcdir
=$ac_optarg ;;
1128 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1129 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1130 ac_prev
=sysconfdir
;;
1131 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1132 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1133 sysconfdir
=$ac_optarg ;;
1135 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1136 ac_prev
=target_alias
;;
1137 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1138 target_alias
=$ac_optarg ;;
1140 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1143 -version |
--version |
--versio |
--versi |
--vers |
-V)
1144 ac_init_version
=: ;;
1147 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1150 as_fn_error $?
"invalid package name: $ac_useropt"
1151 ac_useropt_orig
=$ac_useropt
1152 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep
=', ';;
1160 eval with_
$ac_useropt=\
$ac_optarg ;;
1162 -without-* |
--without-*)
1163 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1166 as_fn_error $?
"invalid package name: $ac_useropt"
1167 ac_useropt_orig
=$ac_useropt
1168 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep
=', ';;
1176 eval with_
$ac_useropt=no
;;
1179 # Obsolete; use --with-x.
1182 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1183 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1184 ac_prev
=x_includes
;;
1185 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1186 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1187 x_includes
=$ac_optarg ;;
1189 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1190 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1191 ac_prev
=x_libraries
;;
1192 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1193 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1194 x_libraries
=$ac_optarg ;;
1196 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1201 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1205 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1207 eval $ac_envvar=\
$ac_optarg
1208 export $ac_envvar ;;
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 if test -n "$ac_prev"; then
1222 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $?
"missing argument to $ac_option"
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1229 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 # Check all directory arguments for consistency.
1235 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1240 eval ac_val
=\$
$ac_var
1241 # Remove trailing slashes.
1244 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\
$ac_val;;
1247 # Be sure to have absolute directory names.
1249 [\\/$
]* | ?
:[\\/]* ) continue;;
1250 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1252 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target
=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x
; then
1264 if test "x$build_alias" = x
; then
1265 cross_compiling
=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1272 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1274 test "$silent" = yes && exec 6>/dev
/null
1277 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di
=`ls -di .` &&
1279 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $?
"working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $?
"pwd does not report name of working directory"
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted
=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir
=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1317 ac_srcdir_defaulted
=no
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1321 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1323 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1335 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 for ac_var
in $ac_precious_vars; do
1338 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1340 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1351 \`configure' configures DHCP 4.4.0-dev to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1414 --build=BUILD configure
for building on BUILD
[guessed
]
1415 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive
) echo "Configuration of DHCP 4.4.0-dev:";;
1426 --disable-option-checking ignore unrecognized
--enable/--with options
1427 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1428 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1429 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1430 --disable-silent-rules verbose build output
(undo
: "make V=0")
1431 --enable-maintainer-mode
1432 enable make rules and dependencies not useful
(and
1433 sometimes confusing
) to the casual installer
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-debug create a debug-only version of the software
(default
1440 --enable-failover enable support
for failover
(default is
yes)
1441 --enable-execute enable support
for execute
() in config
(default is
1443 --enable-tracing enable support
for server activity tracing
(default
1445 --enable-delayed-ack queues multiple DHCPACK replies
(default is no
)
1446 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1447 --enable-dhcpv4o6 enable support
for DHCPv4-over-DHCPv6
(default is
1449 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1450 --enable-early-chroot enable chrooting prior to configuration
(default is
1452 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1454 --enable-use-sockets use the standard BSD socket API
(default is no
)
1455 --enable-secs-byteorder Correct bad byteorders
in the secs field
(default is
1457 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1458 --enable-binary-leases enable support
for binary insertion of leases
1460 --enable-kqueue use BSD kqueue
(default is no
)
1461 --enable-epoll use Linux epoll
(default is no
)
1462 --enable-devpoll use
/dev
/poll
(default is no
)
1463 --enable-libtool use GNU libtool
for dynamic shared libraries
1465 --enable-bind-install install bind includes and libraries
(default is no
).
1468 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1469 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1470 --with-atf=PATH specify location where atf was installed
(or
"bind")
1471 --with-srv-lease-file=PATH
1472 File
for dhcpd leases
(default is
1473 LOCALSTATEDIR
/db
/dhcpd.leases
)
1474 --with-srv6-lease-file=PATH
1475 File
for dhcpd6 leases
(default is
1476 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1477 --with-cli-lease-file=PATH
1478 File
for dhclient leases
(default is
1479 LOCALSTATEDIR
/db
/dhclient.leases
)
1480 --with-cli6-lease-file=PATH
1481 File
for dhclient6 leases
(default is
1482 LOCALSTATEDIR
/db
/dhclient6.leases
)
1483 --with-srv-pid-file=PATH
1484 File
for dhcpd process information
(default is
1485 LOCALSTATEDIR
/run
/dhcpd.pid
)
1486 --with-srv6-pid-file=PATH
1487 File
for dhcpd6 process information
(default is
1488 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1489 --with-cli-pid-file=PATH
1490 File
for dhclient process information
(default is
1491 LOCALSTATEDIR
/run
/dhclient.pid
)
1492 --with-cli6-pid-file=PATH
1493 File
for dhclient6 process information
(default is
1494 LOCALSTATEDIR
/run
/dhclient6.pid
)
1495 --with-relay-pid-file=PATH
1496 File
for dhcrelay process information
(default is
1497 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1498 --with-relay6-pid-file=PATH
1499 File
for dhcrelay6 process information
(default is
1500 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1501 --with-randomdev=PATH Path
for random device
(default is
/dev
/random
)
1502 --with-bind-extra-config
1503 configure
bind librairies with some extra options
1505 --with-libbind=PATH
bind includes and libraries are
in PATH
1506 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1507 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1509 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1510 dhcpd
(default is no
)
1511 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1514 Some influential environment variables
:
1515 CC C compiler
command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1518 nonstandard directory
<lib dir
>
1519 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1520 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1521 you have headers
in a nonstandard directory
<include dir
>
1524 Use these variables to override the choices made by
`configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 Report bugs to <dhcp-users@isc.org>.
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1557 .) # We are building in place.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1590 DHCP configure 4.4.0-dev
1591 generated by GNU Autoconf 2.69
1593 Copyright (C) 2012 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1614 *) ac_try_echo
=$ac_try;;
1616 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1620 if test -s conftest.err
; then
1621 grep -v '^ *+' conftest.err
>conftest.er1
1622 cat conftest.er1
>&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.
$ac_objext; then :
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.
$ac_ext >&5
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status
$ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1648 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } > conftest.i && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1679 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1682 # the include files in INCLUDES and setting the cache variable VAR
1684 ac_fn_c_check_header_mongrel ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if eval \${$3+:} false; then :
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if eval \${$3+:} false; then :
1691 $as_echo_n "(cached) " >&6
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1697 # Is the header compilable?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1699 $as_echo_n "checking $2 usability... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 ac_header_compiler=yes
1708 ac_header_compiler=no
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1712 $as_echo "$ac_header_compiler" >&6; }
1714 # Is the header present?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1716 $as_echo_n "checking $2 presence... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1721 if ac_fn_c_try_cpp "$LINENO"; then :
1722 ac_header_preproc=yes
1724 ac_header_preproc=no
1726 rm -f conftest.err conftest.i conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1728 $as_echo "$ac_header_preproc" >&6; }
1730 # So? What about this header?
1731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1734 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1740 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1742 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1744 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1746 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 ( $as_echo "## --------------------------------- ##
1750 ## Report this to dhcp-users@isc.org ##
1751 ## --------------------------------- ##"
1752 ) | sed "s/^/$as_me: WARNING: /" >&2
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1760 eval "$3=\$ac_header_compiler"
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 } # ac_fn_c_check_header_mongrel
1770 # ac_fn_c_try_run LINENO
1771 # ----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773 # that executables *can* be run.
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_link"
1779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1780 *) ac_try_echo
=$ac_try;;
1782 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>&5
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1788 { { case "(($ac_try" in
1789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_try") 2>&5
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; }; }; then :
1800 $as_echo "$as_me: program exited with status $ac_status" >&5
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1804 ac_retval=$ac_status
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1812 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists and can be compiled using the include files in
1815 # INCLUDES, setting the cache variable VAR accordingly.
1816 ac_fn_c_check_header_compile ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1829 if ac_fn_c_try_compile "$LINENO"; then :
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_header_compile
1843 # ac_fn_c_find_intX_t LINENO BITS VAR
1844 # -----------------------------------
1845 # Finds a signed integer type with width BITS, setting cache variable VAR
1847 ac_fn_c_find_intX_t ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1851 $as_echo_n "checking for int$2_t... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1856 # Order is important - never check a type that is potentially smaller
1857 # than half of the expected target width.
1858 for ac_type in int$2_t 'int' 'long int' \
1859 'long long int' 'short int' 'signed char'; do
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $ac_includes_default
1863 enum { N = $2 / 2 - 1 };
1867 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1869 return test_array [0];
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 $ac_includes_default
1879 enum { N = $2 / 2 - 1 };
1883 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1884 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1886 return test_array [0];
1892 if ac_fn_c_try_compile "$LINENO"; then :
1899 eval "$3=\$ac_type" ;;
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 if eval test \"x\$"$3"\" = x"no"; then :
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 } # ac_fn_c_find_intX_t
1919 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1920 # -------------------------------------------
1921 # Tests whether TYPE exists after having included INCLUDES, setting cache
1922 # variable VAR accordingly.
1923 ac_fn_c_check_type ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1957 if ac_fn_c_try_compile "$LINENO"; then :
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_type
1973 # ac_fn_c_find_uintX_t LINENO BITS VAR
1974 # ------------------------------------
1975 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1977 ac_fn_c_find_uintX_t ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1981 $as_echo_n "checking for uint$2_t... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1986 # Order is important - never check a type that is potentially smaller
1987 # than half of the expected target width.
1988 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1989 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $ac_includes_default
1996 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1998 return test_array [0];
2004 if ac_fn_c_try_compile "$LINENO"; then :
2009 eval "$3=\$ac_type" ;;
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 if eval test \"x\$"$3"\" = x"no"; then :
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_find_uintX_t
2027 # ac_fn_c_try_link LINENO
2028 # -----------------------
2029 # Try to link conftest.$ac_ext, and return whether this succeeded.
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 rm -f conftest.$ac_objext conftest$ac_exeext
2034 if { { ac_try="$ac_link"
2036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2037 *) ac_try_echo
=$ac_try;;
2039 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_link") 2>conftest.err
2043 if test -s conftest.err
; then
2044 grep -v '^ *+' conftest.err
>conftest.er1
2045 cat conftest.er1
>&5
2046 mv -f conftest.er1 conftest.err
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && {
2050 test -z "$ac_c_werror_flag" ||
2051 test ! -s conftest.err
2052 } && test -s conftest
$ac_exeext && {
2053 test "$cross_compiling" = yes ||
2054 test -x conftest
$ac_exeext
2058 $as_echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.
$ac_ext >&5
2063 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2064 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2065 # interfere with the next link command; also delete a directory that is
2066 # left behind by Apple's compiler. We do this before executing the actions.
2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 as_fn_set_status
$ac_retval
2071 } # ac_fn_c_try_link
2073 # ac_fn_c_check_func LINENO FUNC VAR
2074 # ----------------------------------
2075 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2076 ac_fn_c_check_func
()
2078 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \
${$3+:} false
; then :
2082 $as_echo_n "(cached) " >&6
2084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2088 #define $2 innocuous_$2
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $2 (); below.
2092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2093 <limits.h> exists even on freestanding compilers. */
2096 # include <limits.h>
2098 # include <assert.h>
2103 /* Override any GCC internal prototype to avoid an error.
2104 Use char because int might match the return type of a GCC
2105 builtin and then its argument prototype would still apply. */
2110 /* The GNU C library defines this for functions which it implements
2111 to always fail with ENOSYS. Some functions are actually named
2112 something starting with __ and the normal name is an alias. */
2113 #if defined __stub_$2 || defined __stub___$2
2125 if ac_fn_c_try_link
"$LINENO"; then :
2130 rm -f core conftest.err conftest.
$ac_objext \
2131 conftest
$ac_exeext conftest.
$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 } # ac_fn_c_check_func
2140 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2141 # ----------------------------------------------------
2142 # Tries to find if the field MEMBER exists in type AGGR, after including
2143 # INCLUDES, setting cache variable VAR accordingly.
2144 ac_fn_c_check_member
()
2146 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2148 $as_echo_n "checking for $2.$3... " >&6; }
2149 if eval \
${$4+:} false
; then :
2150 $as_echo_n "(cached) " >&6
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2165 if ac_fn_c_try_compile
"$LINENO"; then :
2168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2175 if (sizeof ac_aggr.$3)
2181 if ac_fn_c_try_compile
"$LINENO"; then :
2186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195 } # ac_fn_c_check_member
2197 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2198 # --------------------------------------------
2199 # Tries to find the compile-time value of EXPR in a program that includes
2200 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2202 ac_fn_c_compute_int
()
2204 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2205 if test "$cross_compiling" = yes; then
2206 # Depending upon the size, compute the lo and hi bounds.
2207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 static int test_array [1 - 2 * !(($2) >= 0)];
2215 return test_array [0];
2221 if ac_fn_c_try_compile
"$LINENO"; then :
2224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2232 return test_array [0];
2238 if ac_fn_c_try_compile
"$LINENO"; then :
2239 ac_hi
=$ac_mid; break
2241 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2242 if test $ac_lo -le $ac_mid; then
2246 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) < 0)];
2259 return test_array [0];
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2274 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2276 return test_array [0];
2282 if ac_fn_c_try_compile
"$LINENO"; then :
2283 ac_lo
=$ac_mid; break
2285 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2286 if test $ac_mid -le $ac_hi; then
2290 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2300 # Binary search between lo and hi bounds.
2301 while test "x$ac_lo" != "x$ac_hi"; do
2302 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2311 return test_array [0];
2317 if ac_fn_c_try_compile
"$LINENO"; then :
2320 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2325 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2332 static long int longval () { return $2; }
2333 static unsigned long int ulongval () { return $2; }
2340 FILE *f = fopen ("conftest.val", "w");
2345 long int i = longval ();
2348 fprintf (f, "%ld", i);
2352 unsigned long int i = ulongval ();
2355 fprintf (f, "%lu", i);
2357 /* Do not output a trailing newline, as this causes \r\n confusion
2358 on some platforms. */
2359 return ferror (f) || fclose (f) != 0;
2365 if ac_fn_c_try_run
"$LINENO"; then :
2366 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2375 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376 as_fn_set_status
$ac_retval
2378 } # ac_fn_c_compute_int
2379 cat >config.log
<<_ACEOF
2380 This file contains any messages produced by compilers while
2381 running configure, to aid debugging if configure makes a mistake.
2383 It was created by DHCP $as_me 4.4.0-dev, which was
2384 generated by GNU Autoconf 2.69. Invocation command line was
2396 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2397 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2398 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2399 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2400 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2402 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2403 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2405 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2406 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2407 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2408 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2409 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2410 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2411 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir
=.
2420 $as_echo "PATH: $as_dir"
2436 # Keep a trace of the command line.
2437 # Strip out --no-create and --no-recursion so they do not pile up.
2438 # Strip out --silent because we don't want to record it for future runs.
2439 # Also quote any args containing shell meta-characters.
2440 # Make two passes to allow for proper duplicate-argument suppression.
2444 ac_must_keep_next
=false
2450 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2451 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2452 |
-silent |
--silent |
--silen |
--sile |
--sil)
2455 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2460 as_fn_append ac_configure_args1
" '$ac_arg'"
2461 if test $ac_must_keep_next = true
; then
2462 ac_must_keep_next
=false
# Got value, back to normal.
2465 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2466 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2467 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2468 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2469 case "$ac_configure_args0 " in
2470 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2473 -* ) ac_must_keep_next
=true
;;
2476 as_fn_append ac_configure_args
" '$ac_arg'"
2481 { ac_configure_args0
=; unset ac_configure_args0
;}
2482 { ac_configure_args1
=; unset ac_configure_args1
;}
2484 # When interrupted or exit'd, cleanup temporary files, and complete
2485 # config.log. We remove comments because anyway the quotes in there
2486 # would cause problems or look ugly.
2487 # WARNING: Use '\'' to represent an apostrophe within the trap.
2488 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2489 trap 'exit_status=$?
2490 # Save into config.log some information that might help in debugging.
2494 $as_echo "## ---------------- ##
2495 ## Cache variables. ##
2496 ## ---------------- ##"
2498 # The following way of writing the cache mishandles newlines in values,
2500 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2501 eval ac_val=\$$ac_var
2505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2509 _ | IFS | as_nl) ;; #(
2510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2511 *) { eval $ac_var=; unset $ac_var;} ;;
2516 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2517 *${as_nl}ac_space=\ *)
2519 "s/'\''/'\''\\\\'\'''\''/g;
2520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2530 $as_echo "## ----------------- ##
2531 ## Output variables. ##
2532 ## ----------------- ##"
2534 for ac_var in $ac_subst_vars
2536 eval ac_val=\$$ac_var
2538 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540 $as_echo "$ac_var='\''$ac_val'\''"
2544 if test -n "$ac_subst_files"; then
2545 $as_echo "## ------------------- ##
2546 ## File substitutions. ##
2547 ## ------------------- ##"
2549 for ac_var
in $ac_subst_files
2551 eval ac_val
=\$
$ac_var
2553 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2555 $as_echo "$ac_var='\''$ac_val'\''"
2560 if test -s confdefs.h; then
2561 $as_echo "## ----------- ##
2568 test "$ac_signal" != 0 &&
2569 $as_echo "$as_me: caught signal $ac_signal"
2570 $as_echo "$as_me: exit $exit_status"
2572 rm -f core *.core core.conftest.* &&
2573 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2576 for ac_signal
in 1 2 13 15; do
2577 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2581 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2582 rm -f -r conftest
* confdefs.h
2584 $as_echo "/* confdefs.h */" > confdefs.h
2586 # Predefined preprocessor variables.
2588 cat >>confdefs.h
<<_ACEOF
2589 #define PACKAGE_NAME "$PACKAGE_NAME"
2592 cat >>confdefs.h
<<_ACEOF
2593 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2596 cat >>confdefs.h
<<_ACEOF
2597 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2600 cat >>confdefs.h
<<_ACEOF
2601 #define PACKAGE_STRING "$PACKAGE_STRING"
2604 cat >>confdefs.h
<<_ACEOF
2605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2608 cat >>confdefs.h
<<_ACEOF
2609 #define PACKAGE_URL "$PACKAGE_URL"
2613 # Let the site file select an alternate cache file if it wants to.
2614 # Prefer an explicitly selected file to automatically selected ones.
2617 if test -n "$CONFIG_SITE"; then
2618 # We do not want a PATH search for config.site.
2619 case $CONFIG_SITE in #((
2620 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2621 */*) ac_site_file1
=$CONFIG_SITE;;
2622 *) ac_site_file1
=.
/$CONFIG_SITE;;
2624 elif test "x$prefix" != xNONE
; then
2625 ac_site_file1
=$prefix/share
/config.site
2626 ac_site_file2
=$prefix/etc
/config.site
2628 ac_site_file1
=$ac_default_prefix/share
/config.site
2629 ac_site_file2
=$ac_default_prefix/etc
/config.site
2631 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2633 test "x$ac_site_file" = xNONE
&& continue
2634 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2636 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2637 sed 's/^/| /' "$ac_site_file" >&5
2639 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 as_fn_error $?
"failed to load site script $ac_site_file
2642 See \`config.log' for more details" "$LINENO" 5; }
2646 if test -r "$cache_file"; then
2647 # Some versions of bash will fail to source /dev/null (special files
2648 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2649 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2651 $as_echo "$as_me: loading cache $cache_file" >&6;}
2653 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2654 *) .
"./$cache_file";;
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2659 $as_echo "$as_me: creating cache $cache_file" >&6;}
2663 # Check that the precious variables saved in the cache have kept the same
2665 ac_cache_corrupted
=false
2666 for ac_var
in $ac_precious_vars; do
2667 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2668 eval ac_new_set
=\
$ac_env_${ac_var}_set
2669 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2670 eval ac_new_val
=\
$ac_env_${ac_var}_value
2671 case $ac_old_set,$ac_new_set in
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2674 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2675 ac_cache_corrupted
=: ;;
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2678 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2679 ac_cache_corrupted
=: ;;
2682 if test "x$ac_old_val" != "x$ac_new_val"; then
2683 # differences in whitespace do not lead to failure.
2684 ac_old_val_w
=`echo x $ac_old_val`
2685 ac_new_val_w
=`echo x $ac_new_val`
2686 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2688 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2689 ac_cache_corrupted
=:
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2692 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2693 eval $ac_var=\
$ac_old_val
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2696 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2698 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2701 # Pass precious variables to config.status.
2702 if test "$ac_new_set" = set; then
2704 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2705 *) ac_arg
=$ac_var=$ac_new_val ;;
2707 case " $ac_configure_args " in
2708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2709 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2713 if $ac_cache_corrupted; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2717 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2718 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2720 ## -------------------- ##
2721 ## Main body of script. ##
2722 ## -------------------- ##
2725 ac_cpp
='$CPP $CPPFLAGS'
2726 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2733 # we specify "foreign" to avoid having to have the GNU mandated files,
2734 # like AUTHORS, COPYING, and such
2735 am__api_version
='1.15'
2738 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2741 ac_install_sh
="$ac_aux_dir/install-sh -c"
2743 elif test -f "$ac_dir/install.sh"; then
2745 ac_install_sh
="$ac_aux_dir/install.sh -c"
2747 elif test -f "$ac_dir/shtool"; then
2749 ac_install_sh
="$ac_aux_dir/shtool install -c"
2753 if test -z "$ac_aux_dir"; then
2754 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766 # Find a good install program. We prefer a C program (faster),
2767 # so one script is as good as another. But avoid the broken or
2768 # incompatible versions:
2769 # SysV /etc/install, /usr/sbin/install
2770 # SunOS /usr/etc/install
2771 # IRIX /sbin/install
2773 # AmigaOS /C/install, which installs bootblocks on floppy discs
2774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2777 # OS/2's system install, which has a completely different semantic
2778 # ./install, which can be erroneously created by make from ./install.sh.
2779 # Reject install programs that cannot install multiple files.
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2781 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2782 if test -z "$INSTALL"; then
2783 if ${ac_cv_path_install+:} false
; then :
2784 $as_echo_n "(cached) " >&6
2786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir
=.
2791 # Account for people who put trailing slashes in PATH elements.
2792 case $as_dir/ in #((
2793 .
/ | .
// |
/[cC
]/* | \
2794 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2795 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2798 # OSF1 and SCO ODT 3.0 have their own names for install.
2799 # Don't use installbsd from OSF since it installs stuff as root
2801 for ac_prog
in ginstall scoinst
install; do
2802 for ac_exec_ext
in '' $ac_executable_extensions; do
2803 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2804 if test $ac_prog = install &&
2805 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2806 # AIX install. It has an incompatible calling convention.
2808 elif test $ac_prog = install &&
2809 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2810 # program-specific install script used by HP pwplus--don't use.
2813 rm -rf conftest.one conftest.two conftest.dir
2814 echo one
> conftest.one
2815 echo two
> conftest.two
2817 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2818 test -s conftest.one
&& test -s conftest.two
&&
2819 test -s conftest.dir
/conftest.one
&&
2820 test -s conftest.dir
/conftest.two
2822 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2835 rm -rf conftest.one conftest.two conftest.dir
2838 if test "${ac_cv_path_install+set}" = set; then
2839 INSTALL
=$ac_cv_path_install
2841 # As a last resort, use the slow shell script. Don't cache a
2842 # value for INSTALL within a source directory, because that will
2843 # break other packages using the cache if that directory is
2844 # removed, or if the value is a relative name.
2845 INSTALL
=$ac_install_sh
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2849 $as_echo "$INSTALL" >&6; }
2851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2852 # It thinks the first close brace ends the variable substitution.
2853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2857 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2860 $as_echo_n "checking whether build environment is sane... " >&6; }
2861 # Reject unsafe characters in $srcdir or the absolute working directory
2862 # name. Accept space and tab only in the latter.
2866 *[\\\"\
#\$\&\'\`$am_lf]*)
2867 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2870 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2871 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2874 # Do 'set' in a subshell so we don't clobber the current shell's
2875 # arguments. Must try -L first in case configure is actually a
2876 # symlink; some systems play weird games with the mod time of symlinks
2877 # (eg FreeBSD returns the mod time of the symlink's containing
2881 for am_try
in 1 2; do
2882 echo "timestamp, slept: $am_has_slept" > conftest.
file
2883 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2884 if test "$*" = "X"; then
2886 set X
`ls -t "$srcdir/configure" conftest.file`
2888 if test "$*" != "X $srcdir/configure conftest.file" \
2889 && test "$*" != "X conftest.file $srcdir/configure"; then
2891 # If neither matched, then we have a broken ls. This can happen
2892 # if, for instance, CONFIG_SHELL is bash and it inherits a
2893 # broken ls alias from the environment. This has actually
2894 # happened. Such a system could not be considered "sane".
2895 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2896 alias in your environment" "$LINENO" 5
2898 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2905 test "$2" = conftest.
file
2911 as_fn_error $?
"newly created file is older than distributed files!
2912 Check your system clock" "$LINENO" 5
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2915 $as_echo "yes" >&6; }
2916 # If we didn't sleep, we still need to ensure time stamps of config.status and
2917 # generated files are strictly newer.
2919 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2926 test "$program_prefix" != NONE
&&
2927 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2928 # Use a double $ so make ignores it.
2929 test "$program_suffix" != NONE
&&
2930 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2931 # Double any \ or $.
2932 # By default was `s,x,x', remove it if useless.
2933 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2934 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2936 # Expand $ac_aux_dir to an absolute path.
2937 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2939 if test x
"${MISSING+set}" != xset
; then
2942 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2944 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2947 # Use eval to expand $SHELL
2948 if eval "$MISSING --is-lightweight"; then
2949 am_missing_run
="$MISSING "
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2953 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2956 if test x
"${install_sh+set}" != xset
; then
2959 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2961 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2965 # Installed binaries are usually stripped using 'strip' when the user
2966 # run "make install-strip". However 'strip' might not be the right
2967 # tool to use in cross-compilation environments, therefore Automake
2968 # will honor the 'STRIP' environment variable to overrule this program.
2969 if test "$cross_compiling" != no
; then
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2972 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_STRIP+:} false
; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$STRIP"; then
2979 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir
=.
2986 for ac_exec_ext
in '' $ac_executable_extensions; do
2987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 STRIP
=$ac_cv_prog_STRIP
2999 if test -n "$STRIP"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3001 $as_echo "$STRIP" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3009 if test -z "$ac_cv_prog_STRIP"; then
3011 # Extract the first word of "strip", so it can be a program name with args.
3012 set dummy strip
; ac_word
=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3016 $as_echo_n "(cached) " >&6
3018 if test -n "$ac_ct_STRIP"; then
3019 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir
=.
3026 for ac_exec_ext
in '' $ac_executable_extensions; do
3027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_STRIP
="strip"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3039 if test -n "$ac_ct_STRIP"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3041 $as_echo "$ac_ct_STRIP" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3047 if test "x$ac_ct_STRIP" = x
; then
3050 case $cross_compiling:$ac_tool_warned in
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned
=yes ;;
3059 STRIP
="$ac_cv_prog_STRIP"
3063 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3066 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3067 if test -z "$MKDIR_P"; then
3068 if ${ac_cv_path_mkdir+:} false
; then :
3069 $as_echo_n "(cached) " >&6
3071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3075 test -z "$as_dir" && as_dir
=.
3076 for ac_prog
in mkdir gmkdir
; do
3077 for ac_exec_ext
in '' $ac_executable_extensions; do
3078 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3079 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3080 'mkdir (GNU coreutils) '* | \
3081 'mkdir (coreutils) '* | \
3082 'mkdir (fileutils) '4.1*)
3083 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3093 test -d .
/--version && rmdir .
/--version
3094 if test "${ac_cv_path_mkdir+set}" = set; then
3095 MKDIR_P
="$ac_cv_path_mkdir -p"
3097 # As a last resort, use the slow shell script. Don't cache a
3098 # value for MKDIR_P within a source directory, because that will
3099 # break other packages using the cache if that directory is
3100 # removed, or if the value is a relative name.
3101 MKDIR_P
="$ac_install_sh -d"
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3105 $as_echo "$MKDIR_P" >&6; }
3107 for ac_prog
in gawk mawk nawk
awk
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy
$ac_prog; ac_word
=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_AWK+:} false
; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$AWK"; then
3117 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir
=.
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_AWK
="$ac_prog"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test -n "$AWK"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3139 $as_echo "$AWK" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3146 test -n "$AWK" && break
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3150 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3152 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3153 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3154 $as_echo_n "(cached) " >&6
3156 cat >conftest.
make <<\_ACEOF
3159 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3161 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3164 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3166 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3170 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 SET_MAKE
="MAKE=${MAKE-make}"
3180 rm -rf .tst
2>/dev
/null
3181 mkdir .tst
2>/dev
/null
3182 if test -d .tst
; then
3187 rmdir .tst
2>/dev
/null
3189 # Check whether --enable-silent-rules was given.
3190 if test "${enable_silent_rules+set}" = set; then :
3191 enableval
=$enable_silent_rules;
3194 case $enable_silent_rules in # (((
3195 yes) AM_DEFAULT_VERBOSITY
=0;;
3196 no
) AM_DEFAULT_VERBOSITY
=1;;
3197 *) AM_DEFAULT_VERBOSITY
=1;;
3199 am_make
=${MAKE-make}
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3201 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3202 if ${am_cv_make_support_nested_variables+:} false
; then :
3203 $as_echo_n "(cached) " >&6
3205 if $as_echo 'TRUE=$(BAR$(V))
3211 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3212 am_cv_make_support_nested_variables
=yes
3214 am_cv_make_support_nested_variables
=no
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3218 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3219 if test $am_cv_make_support_nested_variables = yes; then
3221 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3223 AM_V
=$AM_DEFAULT_VERBOSITY
3224 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3228 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3229 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3230 # is not polluted with repeated "-I."
3231 am__isrc
=' -I$(srcdir)'
3232 # test to see if srcdir already configured
3233 if test -f $srcdir/config.status
; then
3234 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3238 # test whether we have cygpath
3239 if test -z "$CYGPATH_W"; then
3240 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3241 CYGPATH_W
='cygpath -w'
3248 # Define the identity of the package.
3253 cat >>confdefs.h
<<_ACEOF
3254 #define PACKAGE "$PACKAGE"
3258 cat >>confdefs.h
<<_ACEOF
3259 #define VERSION "$VERSION"
3262 # Some tools Automake needs.
3264 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3267 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3270 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3273 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3276 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3278 # For better backward compatibility. To be removed once Automake 1.9.x
3279 # dies out for good. For more background, see:
3280 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3281 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3282 mkdir_p
='$(MKDIR_P)'
3284 # We need awk for the "check" target (and possibly the TAP driver). The
3285 # system "awk" is bad on some platforms.
3286 # Always define AMTAR for backward compatibility. Yes, it's still used
3287 # in the wild :-( We should find a proper way to deprecate it ...
3291 # We'll loop over all known methods to create a tar archive until one works.
3292 _am_tools
='gnutar pax cpio none'
3294 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3301 # POSIX will say in a future version that running "rm -f" with no argument
3302 # is OK; and we want to be able to make that assumption in our Makefile
3303 # recipes. So use an aggressive probe to check that the usage we want is
3304 # actually supported "in the wild" to an acceptable degree.
3305 # See automake bug#10828.
3306 # To make any issue more visible, cause the running configure to be aborted
3307 # by default if the 'rm' program in use doesn't match our expectations; the
3308 # user can still override this though.
3309 if rm -f && rm -fr && rm -rf; then : OK
; else
3313 Your 'rm' program seems unable to run without file operands specified
3314 on the command line, even when the '-f' option is present. This is contrary
3315 to the behaviour of most rm programs out there, and not conforming with
3316 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3318 Please tell bug-automake@gnu.org about your system, including the value
3319 of your $PATH and any error possibly output before this message. This
3320 can help us improve future automake versions.
3323 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3324 echo 'Configuration will proceed anyway, since you have set the' >&2
3325 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3329 Aborting the configuration process, to ensure you take notice of the issue.
3331 You can download and install GNU coreutils to get an 'rm' implementation
3332 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3334 If you want to complete the configuration process using your problematic
3335 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3336 to "yes", and re-run configure.
3339 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3344 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3345 # the configure and makefiles. Without it users doing things that
3346 # change the timestamps on the code, like checking it into a cvs
3347 # tree, could trigger a rebuild of the infrastructure files which
3348 # might fail if they don't have the correct tools.
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3351 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3352 # Check whether --enable-maintainer-mode was given.
3353 if test "${enable_maintainer_mode+set}" = set; then :
3354 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3356 USE_MAINTAINER_MODE
=no
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3360 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3361 if test $USE_MAINTAINER_MODE = yes; then
3362 MAINTAINER_MODE_TRUE
=
3363 MAINTAINER_MODE_FALSE
='#'
3365 MAINTAINER_MODE_TRUE
='#'
3366 MAINTAINER_MODE_FALSE
=
3369 MAINT
=$MAINTAINER_MODE_TRUE
3373 # Make sure we can run config.sub.
3374 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3375 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3378 $as_echo_n "checking build system type... " >&6; }
3379 if ${ac_cv_build+:} false
; then :
3380 $as_echo_n "(cached) " >&6
3382 ac_build_alias
=$build_alias
3383 test "x$ac_build_alias" = x
&&
3384 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3385 test "x$ac_build_alias" = x
&&
3386 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3387 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3388 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3392 $as_echo "$ac_cv_build" >&6; }
3393 case $ac_cv_build in
3395 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3398 ac_save_IFS
=$IFS; IFS
='-'
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3408 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3412 $as_echo_n "checking host system type... " >&6; }
3413 if ${ac_cv_host+:} false
; then :
3414 $as_echo_n "(cached) " >&6
3416 if test "x$host_alias" = x
; then
3417 ac_cv_host
=$ac_cv_build
3419 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3420 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3425 $as_echo "$ac_cv_host" >&6; }
3428 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3431 ac_save_IFS
=$IFS; IFS
='-'
3437 # Remember, the first character of IFS is used to create $*,
3438 # except with old shells:
3441 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3445 # We want to turn on warnings if we are using gcc and the user did
3446 # not specify CFLAGS. The autoconf check for the C compiler sets the
3447 # CFLAGS if gcc is used, so we will save it before we run that check.
3448 SAVE_CFLAGS
="$CFLAGS"
3450 # Now find our C compiler.
3452 ac_cpp
='$CPP $CPPFLAGS'
3453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3458 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 $as_echo_n "checking for $ac_word... " >&6; }
3461 if ${ac_cv_prog_CC+:} false
; then :
3462 $as_echo_n "(cached) " >&6
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC
="$CC" # Let the user override the test.
3467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir
=.
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 if test -n "$CC"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487 $as_echo "$CC" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3495 if test -z "$ac_cv_prog_CC"; then
3497 # Extract the first word of "gcc", so it can be a program name with args.
3498 set dummy gcc
; ac_word
=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3502 $as_echo_n "(cached) " >&6
3504 if test -n "$ac_ct_CC"; then
3505 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir
=.
3512 for ac_exec_ext
in '' $ac_executable_extensions; do
3513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_ac_ct_CC
="gcc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3525 if test -n "$ac_ct_CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527 $as_echo "$ac_ct_CC" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3533 if test "x$ac_ct_CC" = x
; then
3536 case $cross_compiling:$ac_tool_warned in
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned
=yes ;;
3548 if test -z "$CC"; then
3549 if test -n "$ac_tool_prefix"; then
3550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3551 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_CC+:} false
; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC
="$CC" # Let the user override the test.
3560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir
=.
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3589 if test -z "$CC"; then
3590 # Extract the first word of "cc", so it can be a program name with args.
3591 set dummy cc
; ac_word
=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_CC+:} false
; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC
="$CC" # Let the user override the test.
3601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir
=.
3606 for ac_exec_ext
in '' $ac_executable_extensions; do
3607 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3609 ac_prog_rejected
=yes
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 if test $ac_prog_rejected = yes; then
3621 # We found a bogon in the path, so make sure we never use it.
3622 set dummy
$ac_cv_prog_CC
3624 if test $# != 0; then
3625 # We chose a different compiler from the bogus one.
3626 # However, it has the same basename, so the bogon will be chosen
3627 # first if we set CC to just the basename; use the full file name.
3629 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 for ac_prog
in cl.exe
3649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3650 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if ${ac_cv_prog_CC+:} false
; then :
3654 $as_echo_n "(cached) " >&6
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC
="$CC" # Let the user override the test.
3659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir
=.
3664 for ac_exec_ext
in '' $ac_executable_extensions; do
3665 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3686 test -n "$CC" && break
3689 if test -z "$CC"; then
3691 for ac_prog
in cl.exe
3693 # Extract the first word of "$ac_prog", so it can be a program name with args.
3694 set dummy
$ac_prog; ac_word
=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3698 $as_echo_n "(cached) " >&6
3700 if test -n "$ac_ct_CC"; then
3701 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir
=.
3708 for ac_exec_ext
in '' $ac_executable_extensions; do
3709 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_ac_ct_CC
="$ac_prog"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3721 if test -n "$ac_ct_CC"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3723 $as_echo "$ac_ct_CC" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3730 test -n "$ac_ct_CC" && break
3733 if test "x$ac_ct_CC" = x
; then
3736 case $cross_compiling:$ac_tool_warned in
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740 ac_tool_warned
=yes ;;
3749 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $?
"no acceptable C compiler found in \$PATH
3752 See \`config.log' for more details" "$LINENO" 5; }
3754 # Provide some information about the compiler.
3755 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 for ac_option
in --version -v -V -qversion; do
3759 { { ac_try
="$ac_compiler $ac_option >&5"
3761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768 if test -s conftest.err; then
3770 ... rest of stderr output deleted ...
3771 10q' conftest.err >conftest.er1
3772 cat conftest.er1 >&5
3774 rm -f conftest.er1 conftest.err
3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 ac_clean_files_save=$ac_clean_files
3791 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3792 # Try to create an executable without -o first, disregard a.out.
3793 # It will help us diagnose broken compilers, and finding out an intuition
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3796 $as_echo_n "checking whether the C compiler works... " >&6; }
3797 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3799 # The possible output files:
3800 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803 for ac_file in $ac_files
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3812 if { { ac_try="$ac_link_default"
3814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3815 *) ac_try_echo
=$ac_try;;
3817 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_link_default") 2>&5
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }; then :
3823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3824 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3825 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3826 # so that the user can short-circuit this test for compilers unknown to
3828 for ac_file
in $ac_files ''
3830 test -f "$ac_file" ||
continue
3832 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3835 # We found the default executable, but exeext='' is most
3839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3841 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 # We set ac_cv_exeext here because the later test for it is not
3844 # safe: cross compilers may not add the suffix if given an `-o'
3845 # argument, so we may need to know it at that point already.
3846 # Even if this section looks crufty: it has the advantage of
3853 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3858 if test -z "$ac_file"; then :
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.
$ac_ext >&5
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error
77 "C compiler cannot create executables
3867 See \`config.log' for more details" "$LINENO" 5; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3870 $as_echo "yes" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3873 $as_echo_n "checking for C compiler default output file name... " >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3875 $as_echo "$ac_file" >&6; }
3876 ac_exeext
=$ac_cv_exeext
3878 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3879 ac_clean_files
=$ac_clean_files_save
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3881 $as_echo_n "checking for suffix of executables... " >&6; }
3882 if { { ac_try
="$ac_link"
3884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_link") 2>&5
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; then :
3893 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3894 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3895 # work properly (i.e., refer to `conftest.exe'), while it won't with
3897 for ac_file
in conftest.exe conftest conftest.
*; do
3898 test -f "$ac_file" ||
continue
3900 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3901 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3910 See \`config.log' for more details" "$LINENO" 5; }
3912 rm -f conftest conftest
$ac_cv_exeext
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3914 $as_echo "$ac_cv_exeext" >&6; }
3916 rm -f conftest.
$ac_ext
3917 EXEEXT
=$ac_cv_exeext
3919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3925 FILE *f = fopen ("conftest.out", "w");
3926 return ferror (f) || fclose (f) != 0;
3932 ac_clean_files
="$ac_clean_files conftest.out"
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3936 $as_echo_n "checking whether we are cross compiling... " >&6; }
3937 if test "$cross_compiling" != yes; then
3938 { { ac_try
="$ac_link"
3940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_link") 2>&5
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }
3949 if { ac_try='./conftest$ac_cv_exeext'
3950 { { case "(($ac_try" in
3951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3952 *) ac_try_echo
=$ac_try;;
3954 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_try") 2>&5
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }; }; then
3962 if test "$cross_compiling" = maybe
; then
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error $?
"cannot run C compiled programs.
3968 If you meant to cross compile, use \`--host'.
3969 See \`config.log' for more details" "$LINENO" 5; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3974 $as_echo "$cross_compiling" >&6; }
3976 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3977 ac_clean_files
=$ac_clean_files_save
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3979 $as_echo_n "checking for suffix of object files... " >&6; }
3980 if ${ac_cv_objext+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3994 rm -f conftest.o conftest.obj
3995 if { { ac_try
="$ac_compile"
3997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_compile") 2>&5
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }; then :
4006 for ac_file in conftest.o conftest.obj conftest.*; do
4007 test -f "$ac_file" || continue;
4009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4010 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4015 $as_echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4021 See \
`config.log' for more details" "$LINENO" 5; }
4023 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4026 $as_echo "$ac_cv_objext" >&6; }
4027 OBJEXT=$ac_cv_objext
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4030 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4031 if ${ac_cv_c_compiler_gnu+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4048 if ac_fn_c_try_compile "$LINENO"; then :
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4058 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4059 if test $ac_compiler_gnu = yes; then
4064 ac_test_CFLAGS=${CFLAGS+set}
4065 ac_save_CFLAGS=$CFLAGS
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4067 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4068 if ${ac_cv_prog_cc_g+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 ac_save_c_werror_flag=$ac_c_werror_flag
4072 ac_c_werror_flag=yes
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4086 if ac_fn_c_try_compile "$LINENO"; then :
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_c_werror_flag=$ac_save_c_werror_flag
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4128 $as_echo "$ac_cv_prog_cc_g" >&6; }
4129 if test "$ac_test_CFLAGS" = set; then
4130 CFLAGS=$ac_save_CFLAGS
4131 elif test $ac_cv_prog_cc_g = yes; then
4132 if test "$GCC" = yes; then
4138 if test "$GCC" = yes; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4145 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4146 if ${ac_cv_prog_cc_c89+:} false; then :
4147 $as_echo_n "(cached) " >&6
4149 ac_cv_prog_cc_c89=no
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4157 struct buf { int x; };
4158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4159 static char *e (p, i)
4165 static char *f (char * (*g) (char **, int), char **p, ...)
4170 s = g (p, va_arg (v,int));
4175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4176 function prototypes and stuff, but not '\xHH' hex character constants.
4177 These don't provoke an error unfortunately, instead are silently treated
4178 as 'x'. The following induces an error, until -std is added to get
4179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4180 array size at least. It's necessary to write '\x00'==0 to get something
4181 that's true only with -std. */
4182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4185 inside strings and character constants. */
4187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4189 int test (int i, double x);
4190 struct s1 {int (*f) (int a);};
4191 struct s2 {int (*f) (double a);};
4192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_c89=$ac_arg
4210 rm -f core conftest.err conftest.$ac_objext
4211 test "x$ac_cv_prog_cc_c89" != "xno" && break
4213 rm -f conftest.$ac_ext
4218 case "x$ac_cv_prog_cc_c89" in
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221 $as_echo "none needed" >&6; } ;;
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 $as_echo "unsupported" >&6; } ;;
4226 CC="$CC $ac_cv_prog_cc_c89"
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4230 if test "x$ac_cv_prog_cc_c89" != xno; then :
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4246 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4247 if ${am_cv_prog_cc_c_o+:} false; then :
4248 $as_echo_n "(cached) " >&6
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4261 # Make sure it works both with $CC and with simple cc.
4262 # Following AC_PROG_CC_C_O, we do the test twice because some
4263 # compilers refuse to overwrite an existing .o file with -o,
4264 # though they will create one.
4265 am_cv_prog_cc_c_o=yes
4267 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4268 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } \
4272 && test -f conftest2.$ac_objext; then
4275 am_cv_prog_cc_c_o=no
4279 rm -f core conftest*
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4283 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4284 if test "$am_cv_prog_cc_c_o" != yes; then
4285 # Losing compiler, so override with the script.
4286 # FIXME: It is wrong to rewrite CC.
4287 # But if we don't then we get into trouble of one sort or another.
4288 # A longer-term fix would be to have automake use am__CC in this case,
4289 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4290 CC="$am_aux_dir/compile $CC"
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 DEPDIR="${am__leading_dot}deps"
4300 ac_config_commands="$ac_config_commands depfiles"
4303 am_make=${MAKE-make}
4304 cat > confinc << 'END'
4306 @echo this is the am__doit target
4309 # If we don't find an include directive, just comment out the code.
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4311 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4315 # First try GNU make style include.
4316 echo "include confinc" > confmf
4317 # Ignore all kinds of additional output from 'make'.
4318 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4319 *the\ am__doit\ target*)
4325 # Now try BSD make style include.
4326 if test "$am__include" = "#"; then
4327 echo '.include "confinc"' > confmf
4328 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4329 *the\ am__doit\ target*)
4330 am__include=.include
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4339 $as_echo "$_am_result" >&6; }
4340 rm -f confinc confmf
4342 # Check whether --enable-dependency-tracking was given.
4343 if test "${enable_dependency_tracking+set}" = set; then :
4344 enableval=$enable_dependency_tracking;
4347 if test "x$enable_dependency_tracking" != xno; then
4348 am_depcomp="$ac_aux_dir/depcomp"
4352 if test "x$enable_dependency_tracking" != xno; then
4362 depcc="$CC" am_compiler_list=
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4365 $as_echo_n "checking dependency style of $depcc... " >&6; }
4366 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4370 # We make a subdir and do the tests there. Otherwise we can end up
4371 # making bogus files that we don't know about and never remove. For
4372 # instance it was reported that on HP-UX the gcc test will end up
4373 # making a dummy file named 'D' -- because '-MD' means "put the output
4377 # Copy depcomp to subdir because otherwise we won't find it if we're
4378 # using a relative directory.
4379 cp "$am_depcomp" conftest.dir
4381 # We will build objects and dependencies in a subdirectory because
4382 # it helps to detect inapplicable dependency modes. For instance
4383 # both Tru64's cc and ICC support -MD to output dependencies as a
4384 # side effect of compilation, but ICC will put the dependencies in
4385 # the current directory while Tru64 will put them in the object
4389 am_cv_CC_dependencies_compiler_type=none
4390 if test "$am_compiler_list" = ""; then
4391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4394 case " $depcc " in #(
4395 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4398 for depmode in $am_compiler_list; do
4399 # Setup a source with many dependencies, because some compilers
4400 # like to wrap large dependency lists on column 80 (with \), and
4401 # we should not choose a depcomp mode which is confused by this.
4403 # We need to recreate these files for each test, as the compiler may
4404 # overwrite some of them when testing with obscure command lines.
4405 # This happens at least with the AIX C compiler.
4407 for i in 1 2 3 4 5 6; do
4408 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4409 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4410 # Solaris 10 /bin/sh.
4411 echo '/* dummy */' > sub/conftst$i.h
4413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4415 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4416 # mode. It turns out that the SunPro C++ compiler does not properly
4417 # handle '-M -o', and we need to detect this. Also, some Intel
4418 # versions had trouble with output in subdirs.
4419 am__obj=sub/conftest.${OBJEXT-o}
4420 am__minus_obj="-o $am__obj"
4423 # This depmode causes a compiler race in universal mode.
4424 test "$am__universal" = false || continue
4427 # After this tag, mechanisms are not by side-effect, so they'll
4428 # only be used when explicitly requested.
4429 if test "x$enable_dependency_tracking" = xyes; then
4435 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4436 # This compiler won't grok '-c -o', but also, the minuso test has
4437 # not run yet. These depmodes are late enough in the game, and
4438 # so weak that their functioning should not be impacted.
4439 am__obj=conftest.${OBJEXT-o}
4444 if depmode=$depmode \
4445 source=sub/conftest.c object=$am__obj \
4446 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4447 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4448 >/dev/null 2>conftest.err &&
4449 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4451 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4453 # icc doesn't choke on unknown options, it will just issue warnings
4454 # or remarks (even with -Werror). So we grep stderr for any message
4455 # that says an option was ignored or not supported.
4456 # When given -MP, icc 7.0 and 7.1 complain thusly:
4457 # icc: Command line warning: ignoring option '-M'; no argument required
4458 # The diagnosis changed in icc 8.0:
4459 # icc: Command line remark: option '-MP' not supported
4460 if (grep 'ignoring option' conftest.err ||
4461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4462 am_cv_CC_dependencies_compiler_type=$depmode
4471 am_cv_CC_dependencies_compiler_type=none
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4476 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4480 test "x$enable_dependency_tracking" != xno \
4481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4483 am__fastdepCC_FALSE='#'
4485 am__fastdepCC_TRUE='#'
4486 am__fastdepCC_FALSE=
4491 # Suppress warnings about --datarootdir
4494 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4495 # user did not specify any flags. Add warnings in this case.
4496 if test "$GCC" = "yes"; then
4497 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4498 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4502 # We can have some flags to pass to bind configure
4504 if test "$cross_compiling" = "yes"; then
4505 BINDCONFIG="--host=$host"
4507 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4508 # and as there can be a space inside an argument some magic is required.
4509 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4510 eval "set my_configure_args $ac_configure_args"
4511 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4513 # iterate on arguments and copying 'arg' when it begins by an upper case
4517 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4522 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4523 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4524 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4525 # Socket API were designed to be used but we have to live with it.
4526 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4534 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4535 # On Suns, sometimes $CPP names a directory.
4536 if test -n "$CPP" && test -d "$CPP"; then
4539 if test -z "$CPP"; then
4540 if ${ac_cv_prog_CPP+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 # Double quotes because CPP needs to be expanded
4544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4547 for ac_c_preproc_warn_flag in '' yes
4549 # Use a header file that comes with gcc, so configuring glibc
4550 # with a fresh cross-compiler works.
4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 # <limits.h> exists even on freestanding compilers.
4553 # On the NeXT, cc -E runs the code through the compiler's parser,
4554 # not just through cpp. "Syntax error" is here to catch this case.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4558 # include <limits.h>
4560 # include <assert.h>
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4567 # Broken: fails on valid input.
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # OK, works on sane cases. Now check whether nonexistent headers
4573 # can be detected and how.
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <ac_nonexistent.h>
4578 if ac_fn_c_try_cpp "$LINENO"; then :
4579 # Broken: success on invalid input.
4582 # Passes both tests.
4586 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.i conftest.err conftest.
$ac_ext
4591 if $ac_preproc_ok; then :
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4604 $as_echo "$CPP" >&6; }
4606 for ac_c_preproc_warn_flag
in '' yes
4608 # Use a header file that comes with gcc, so configuring glibc
4609 # with a fresh cross-compiler works.
4610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611 # <limits.h> exists even on freestanding compilers.
4612 # On the NeXT, cc -E runs the code through the compiler's parser,
4613 # not just through cpp. "Syntax error" is here to catch this case.
4614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4617 # include <limits.h>
4619 # include <assert.h>
4623 if ac_fn_c_try_cpp
"$LINENO"; then :
4626 # Broken: fails on valid input.
4629 rm -f conftest.err conftest.i conftest.
$ac_ext
4631 # OK, works on sane cases. Now check whether nonexistent headers
4632 # can be detected and how.
4633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <ac_nonexistent.h>
4637 if ac_fn_c_try_cpp
"$LINENO"; then :
4638 # Broken: success on invalid input.
4641 # Passes both tests.
4645 rm -f conftest.err conftest.i conftest.
$ac_ext
4648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649 rm -f conftest.i conftest.err conftest.
$ac_ext
4650 if $ac_preproc_ok; then :
4653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4655 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4656 See \`config.log' for more details" "$LINENO" 5; }
4660 ac_cpp
='$CPP $CPPFLAGS'
4661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4667 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4668 if ${ac_cv_path_GREP+:} false
; then :
4669 $as_echo_n "(cached) " >&6
4671 if test -z "$GREP"; then
4672 ac_path_GREP_found
=false
4673 # Loop through the user's path and test for each of PROGNAME-LIST
4674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4675 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4678 test -z "$as_dir" && as_dir
=.
4679 for ac_prog
in grep ggrep
; do
4680 for ac_exec_ext
in '' $ac_executable_extensions; do
4681 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4682 as_fn_executable_p
"$ac_path_GREP" ||
continue
4683 # Check for GNU ac_path_GREP and select it if it is found.
4684 # Check for GNU $ac_path_GREP
4685 case `"$ac_path_GREP" --version 2>&1` in
4687 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4690 $as_echo_n 0123456789 >"conftest.in"
4693 cat "conftest.in" "conftest.in" >"conftest.tmp"
4694 mv "conftest.tmp" "conftest.in"
4695 cp "conftest.in" "conftest.nl"
4696 $as_echo 'GREP' >> "conftest.nl"
4697 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4698 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4699 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4700 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4701 # Best one so far, save it but keep looking for a better one
4702 ac_cv_path_GREP
="$ac_path_GREP"
4703 ac_path_GREP_max
=$ac_count
4705 # 10*(2^10) chars as input seems more than enough
4706 test $ac_count -gt 10 && break
4708 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4711 $ac_path_GREP_found && break 3
4716 if test -z "$ac_cv_path_GREP"; then
4717 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4720 ac_cv_path_GREP
=$GREP
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4725 $as_echo "$ac_cv_path_GREP" >&6; }
4726 GREP
="$ac_cv_path_GREP"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4730 $as_echo_n "checking for egrep... " >&6; }
4731 if ${ac_cv_path_EGREP+:} false
; then :
4732 $as_echo_n "(cached) " >&6
4734 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4735 then ac_cv_path_EGREP
="$GREP -E"
4737 if test -z "$EGREP"; then
4738 ac_path_EGREP_found
=false
4739 # Loop through the user's path and test for each of PROGNAME-LIST
4740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4741 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4744 test -z "$as_dir" && as_dir
=.
4745 for ac_prog
in egrep; do
4746 for ac_exec_ext
in '' $ac_executable_extensions; do
4747 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4748 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4749 # Check for GNU ac_path_EGREP and select it if it is found.
4750 # Check for GNU $ac_path_EGREP
4751 case `"$ac_path_EGREP" --version 2>&1` in
4753 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4756 $as_echo_n 0123456789 >"conftest.in"
4759 cat "conftest.in" "conftest.in" >"conftest.tmp"
4760 mv "conftest.tmp" "conftest.in"
4761 cp "conftest.in" "conftest.nl"
4762 $as_echo 'EGREP' >> "conftest.nl"
4763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4764 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4765 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4767 # Best one so far, save it but keep looking for a better one
4768 ac_cv_path_EGREP
="$ac_path_EGREP"
4769 ac_path_EGREP_max
=$ac_count
4771 # 10*(2^10) chars as input seems more than enough
4772 test $ac_count -gt 10 && break
4774 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4777 $ac_path_EGREP_found && break 3
4782 if test -z "$ac_cv_path_EGREP"; then
4783 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4786 ac_cv_path_EGREP
=$EGREP
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4792 $as_echo "$ac_cv_path_EGREP" >&6; }
4793 EGREP
="$ac_cv_path_EGREP"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4797 $as_echo_n "checking for ANSI C header files... " >&6; }
4798 if ${ac_cv_header_stdc+:} false
; then :
4799 $as_echo_n "(cached) " >&6
4801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4816 if ac_fn_c_try_compile
"$LINENO"; then :
4817 ac_cv_header_stdc
=yes
4819 ac_cv_header_stdc
=no
4821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4823 if test $ac_cv_header_stdc = yes; then
4824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831 $EGREP "memchr" >/dev
/null
2>&1; then :
4834 ac_cv_header_stdc
=no
4840 if test $ac_cv_header_stdc = yes; then
4841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "free" >/dev
/null
2>&1; then :
4851 ac_cv_header_stdc
=no
4857 if test $ac_cv_header_stdc = yes; then
4858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4859 if test "$cross_compiling" = yes; then :
4862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4866 #if ((' ' & 0x0FF) == 0x020)
4867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4870 # define ISLOWER(c) \
4871 (('a' <= (c) && (c) <= 'i') \
4872 || ('j' <= (c) && (c) <= 'r') \
4873 || ('s' <= (c) && (c) <= 'z'))
4874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4882 for (i = 0; i < 256; i++)
4883 if (XOR (islower (i), ISLOWER (i))
4884 || toupper (i) != TOUPPER (i))
4889 if ac_fn_c_try_run
"$LINENO"; then :
4892 ac_cv_header_stdc
=no
4894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4901 $as_echo "$ac_cv_header_stdc" >&6; }
4902 if test $ac_cv_header_stdc = yes; then
4904 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4908 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4909 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4910 inttypes.h stdint.h unistd.h
4912 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4913 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4915 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4916 cat >>confdefs.h
<<_ACEOF
4917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4927 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4934 if test "$MINIX" = yes; then
4936 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4939 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4942 $as_echo "#define _MINIX 1" >>confdefs.h
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4948 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4949 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4950 $as_echo_n "(cached) " >&6
4952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4955 # define __EXTENSIONS__ 1
4956 $ac_includes_default
4965 if ac_fn_c_try_compile
"$LINENO"; then :
4966 ac_cv_safe_to_define___extensions__
=yes
4968 ac_cv_safe_to_define___extensions__
=no
4970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4973 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4974 test $ac_cv_safe_to_define___extensions__ = yes &&
4975 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4977 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4979 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4981 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4983 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4989 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_prog_RANLIB+:} false
; then :
4993 $as_echo_n "(cached) " >&6
4995 if test -n "$RANLIB"; then
4996 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir
=.
5003 for ac_exec_ext
in '' $ac_executable_extensions; do
5004 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 RANLIB
=$ac_cv_prog_RANLIB
5016 if test -n "$RANLIB"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5018 $as_echo "$RANLIB" >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5026 if test -z "$ac_cv_prog_RANLIB"; then
5027 ac_ct_RANLIB
=$RANLIB
5028 # Extract the first word of "ranlib", so it can be a program name with args.
5029 set dummy ranlib
; ac_word
=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5033 $as_echo_n "(cached) " >&6
5035 if test -n "$ac_ct_RANLIB"; then
5036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5056 if test -n "$ac_ct_RANLIB"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5058 $as_echo "$ac_ct_RANLIB" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5064 if test "x$ac_ct_RANLIB" = x
; then
5067 case $cross_compiling:$ac_tool_warned in
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned
=yes ;;
5073 RANLIB
=$ac_ct_RANLIB
5076 RANLIB
="$ac_cv_prog_RANLIB"
5080 # Extract the first word of "ar", so it can be a program name with args.
5081 set dummy
ar; ac_word
=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_path_AR+:} false
; then :
5085 $as_echo_n "(cached) " >&6
5089 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir
=.
5097 for ac_exec_ext
in '' $ac_executable_extensions; do
5098 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 if test -n "$AR"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5113 $as_echo "$AR" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5122 if test "X$AR" = "X"; then
5124 ar program not found. Please fix your PATH to include the directory in
5125 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5128 ac_config_headers
="$ac_config_headers includes/config.h"
5131 # we sometimes need to know byte order for building packets
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5133 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5134 if ${ac_cv_c_bigendian+:} false
; then :
5135 $as_echo_n "(cached) " >&6
5137 ac_cv_c_bigendian
=unknown
5138 # See if we're dealing with a universal compiler.
5139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #ifndef __APPLE_CC__
5142 not a universal capable compiler
5147 if ac_fn_c_try_compile
"$LINENO"; then :
5149 # Check for potential -arch flags. It is not universal unless
5150 # there are at least two -arch flags with different values.
5153 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5154 if test -n "$ac_prev"; then
5156 i?
86 | x86_64 | ppc | ppc64
)
5157 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5160 ac_cv_c_bigendian
=universal
5166 elif test "x$ac_word" = "x-arch"; then
5171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5172 if test $ac_cv_c_bigendian = unknown
; then
5173 # See if sys/param.h defines the BYTE_ORDER macro.
5174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <sys/types.h>
5177 #include <sys/param.h>
5182 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5183 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5192 if ac_fn_c_try_compile
"$LINENO"; then :
5193 # It does; now see whether it defined to BIG_ENDIAN or not.
5194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <sys/types.h>
5197 #include <sys/param.h>
5202 #if BYTE_ORDER != BIG_ENDIAN
5210 if ac_fn_c_try_compile
"$LINENO"; then :
5211 ac_cv_c_bigendian
=yes
5213 ac_cv_c_bigendian
=no
5215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5219 if test $ac_cv_c_bigendian = unknown
; then
5220 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5228 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5236 if ac_fn_c_try_compile
"$LINENO"; then :
5237 # It does; now see whether it defined to _BIG_ENDIAN or not.
5238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5253 if ac_fn_c_try_compile
"$LINENO"; then :
5254 ac_cv_c_bigendian
=yes
5256 ac_cv_c_bigendian
=no
5258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5262 if test $ac_cv_c_bigendian = unknown
; then
5263 # Compile a test program.
5264 if test "$cross_compiling" = yes; then :
5265 # Try to guess by grepping values from an object file.
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 short int ascii_mm[] =
5269 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5270 short int ascii_ii[] =
5271 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5272 int use_ascii (int i) {
5273 return ascii_mm[i] + ascii_ii[i];
5275 short int ebcdic_ii[] =
5276 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5277 short int ebcdic_mm[] =
5278 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5279 int use_ebcdic (int i) {
5280 return ebcdic_mm[i] + ebcdic_ii[i];
5287 return use_ascii (foo) == use_ebcdic (foo);
5292 if ac_fn_c_try_compile
"$LINENO"; then :
5293 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5294 ac_cv_c_bigendian
=yes
5296 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5297 if test "$ac_cv_c_bigendian" = unknown
; then
5298 ac_cv_c_bigendian
=no
5300 # finding both strings is unlikely to happen, but who knows?
5301 ac_cv_c_bigendian
=unknown
5305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 $ac_includes_default
5314 /* Are we little or big endian? From Harbison&Steele. */
5318 char c[sizeof (long int)];
5321 return u.c[sizeof (long int) - 1] == 1;
5327 if ac_fn_c_try_run
"$LINENO"; then :
5328 ac_cv_c_bigendian
=no
5330 ac_cv_c_bigendian
=yes
5332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5339 $as_echo "$ac_cv_c_bigendian" >&6; }
5340 case $ac_cv_c_bigendian in #(
5342 byte_order
=BIG_ENDIAN
5345 byte_order
=LITTLE_ENDIAN
5349 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5353 as_fn_error $?
"unknown endianness
5354 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5358 cat >>confdefs.h
<<_ACEOF
5359 #define DHCP_BYTE_ORDER $byte_order
5363 # Optional compile-time DEBUGging.
5364 # Check whether --enable-debug was given.
5365 if test "${enable_debug+set}" = set; then :
5366 enableval
=$enable_debug; case "${enableval}" in
5367 yes) enable_debug
=yes
5369 $as_echo "#define DEBUG 1" >>confdefs.h
5371 # Just override CFLAGS totally to remove optimization.
5373 no
) enable_debug
=no
;;
5374 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5381 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5382 # but I don't want to pollute the --help space.
5384 #/* #define DEBUG_TOKENS */
5385 #/* #define DEBUG_PACKET */
5386 #/* #define DEBUG_EXPRESSIONS */
5387 #/* #define DEBUG_FIND_LEASE */
5388 #/* #define DEBUG_EXPRESSION_PARSE */
5389 #/* #define DEBUG_CLASS_MATCHING */
5390 #/* #define DEBUG_MEMORY_LEAKAGE */
5391 #/* #define DEBUG_MALLOC_POOL */
5392 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5393 #/* #define DEBUG_RC_HISTORY */
5394 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5395 #/* #define RC_HISTORY_MAX 10240 */
5396 #/* #define POINTER_DEBUG */
5397 #/* #define DEBUG_FAILOVER_MESSAGES */
5398 #/* #define DEBUG_FAILOVER_TIMING */
5399 #/* #define DEBUG_DUMP_ALL_LEASES */
5401 # Failover optional compile-time feature.
5402 # Check whether --enable-failover was given.
5403 if test "${enable_failover+set}" = set; then :
5404 enableval
=$enable_failover;
5407 # Failover is on by default, so define if it is not explicitly disabled.
5408 if test "$enable_failover" != "no"; then
5409 enable_failover
="yes"
5411 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5415 # execute() support.
5416 # Check whether --enable-execute was given.
5417 if test "${enable_execute+set}" = set; then :
5418 enableval
=$enable_execute;
5421 # execute() is on by default, so define if it is not explicitly disabled.
5422 if test "$enable_execute" != "no" ; then
5423 enable_execute
="yes"
5425 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5429 # Server tracing support.
5430 # Check whether --enable-tracing was given.
5431 if test "${enable_tracing+set}" = set; then :
5432 enableval
=$enable_tracing;
5435 # tracing is on by default, so define if it is not explicitly disabled.
5436 if test "$enable_tracing" != "no" ; then
5438 $as_echo "#define TRACING 1" >>confdefs.h
5442 # Delayed-ack feature support (experimental).
5443 # Check whether --enable-delayed_ack was given.
5444 if test "${enable_delayed_ack+set}" = set; then :
5445 enableval
=$enable_delayed_ack;
5448 if test "$enable_delayed_ack" = "yes"; then
5450 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5453 enable_delayed_ack
="no"
5456 # DHCPv6 optional compile-time feature.
5457 # Check whether --enable-dhcpv6 was given.
5458 if test "${enable_dhcpv6+set}" = set; then :
5459 enableval
=$enable_dhcpv6;
5462 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5463 if test "$enable_dhcpv6" != "no"; then
5466 $as_echo "#define DHCPv6 1" >>confdefs.h
5470 # DHCPv4o6 optional compile-time feature.
5471 # Check whether --enable-dhcpv4o6 was given.
5472 if test "${enable_dhcpv4o6+set}" = set; then :
5473 enableval
=$enable_dhcpv4o6;
5476 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5477 if test "$enable_dhcpv4o6" = "yes"; then
5478 # DHCPv4o6 requires DHCPv6
5479 if test "$enable_dhcpv6" = "no"; then
5480 as_fn_error $?
"dhcpv4o6 requires dhcpv6" "$LINENO" 5
5482 # DHCPv4o6 is not yet compatible with delayed-ack
5483 if test "$enable_delayed_ack" = "yes"; then
5484 as_fn_error $?
"dhcpv4o6 is not compatible with delayed-ack" "$LINENO" 5
5487 $as_echo "#define DHCP4o6 1" >>confdefs.h
5491 # PARANOIA is off by default (until we can test it with all features)
5492 # Check whether --enable-paranoia was given.
5493 if test "${enable_paranoia+set}" = set; then :
5494 enableval
=$enable_paranoia;
5497 # Check whether --enable-early_chroot was given.
5498 if test "${enable_early_chroot+set}" = set; then :
5499 enableval
=$enable_early_chroot;
5502 # If someone enables early chroot, but does not enable paranoia, do so for
5504 if test "$enable_paranoia" != "yes" && \
5505 test "$enable_early_chroot" = "yes" ; then
5506 enable_paranoia
="yes"
5509 if test "$enable_paranoia" = "yes" ; then
5511 $as_echo "#define PARANOIA 1" >>confdefs.h
5514 if test "$enable_early_chroot" = "yes" ; then
5516 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5520 # Check whether --enable-ipv4_pktinfo was given.
5521 if test "${enable_ipv4_pktinfo+set}" = set; then :
5522 enableval
=$enable_ipv4_pktinfo;
5526 if test "$enable_ipv4_pktinfo" = "yes"; then
5528 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5532 # Check whether --enable-use_sockets was given.
5533 if test "${enable_use_sockets+set}" = set; then :
5534 enableval
=$enable_use_sockets;
5538 if test "$enable_use_sockets" = "yes"; then
5540 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5544 # Try to hnadle incorrect byte order for secs field
5545 # This is off by default
5546 # Check whether --enable-secs_byteorder was given.
5547 if test "${enable_secs_byteorder+set}" = set; then :
5548 enableval
=$enable_secs_byteorder;
5552 if test "$enable_secs_byteorder" = "yes" ; then
5554 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5558 # Include the PID in the log messages. This is useful when there may
5559 # be multiple instances of a program.
5560 # This is off by default
5561 # Check whether --enable-log_pid was given.
5562 if test "${enable_log_pid+set}" = set; then :
5563 enableval
=$enable_log_pid;
5566 if test "$enable_log_pid" = "yes" ; then
5568 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5572 # Allow for binary search when inserting v4 leases into queues
5573 # Check whether --enable-binary_leases was given.
5574 if test "${enable_binary_leases+set}" = set; then :
5575 enableval
=$enable_binary_leases;
5578 # binary_leases is off by default.
5579 if test "$enable_binary_leases" = "yes"; then
5581 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5584 enable_binary_leases
="no"
5589 DISTCHECK_ATF_CONFIGURE_FLAG
=
5592 # Check whether --with-atf was given.
5593 if test "${with_atf+set}" = set; then :
5594 withval
=$with_atf; atf_path
="$withval"
5597 if test "$atf_path" = "bind"; then
5605 if test "$atf_path" = "bind" ; then
5606 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=bind"
5608 atf_path
="\${top_srcdir}/bind/atf"
5609 ATF_CFLAGS
="-I$atf_path/include -DUNIT_TEST"
5610 ATF_LDFLAGS
="-L$atf_path/lib -latf-c"
5611 ATF_BIN
=`cd $srcdir; pwd`/bind
/atf
/bin
5615 BINDCONFIG
="$BINDCONFIG --with-atf"
5616 elif test "$atf_path" != "no" ; then
5617 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=$atf_path"
5618 # Config path for pkg-config
5620 if test "$atf_path" != "yes" ; then
5621 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5622 atf_pcp
=$atf_path/lib
/pkgconfig
5623 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5624 atf_pcp
=$atf_path/lib64
/pkgconfig
5627 # Not specified, try some common paths
5628 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5631 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5632 atf_pcp
=$d/lib
/pkgconfig
5634 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5635 atf_pcp
=$d/lib64
/pkgconfig
5641 if test "$atf_pcp" = "" ; then
5642 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5644 # Extract the first word of "pkg-config", so it can be a program name with args.
5645 set dummy pkg-config
; ac_word
=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_pkgcfg_found+:} false
; then :
5649 $as_echo_n "(cached) " >&6
5651 if test -n "$pkgcfg_found"; then
5652 ac_cv_prog_pkgcfg_found
="$pkgcfg_found" # Let the user override the test.
5654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir
=.
5659 for ac_exec_ext
in '' $ac_executable_extensions; do
5660 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_pkgcfg_found
="pkg-config"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 pkgcfg_found
=$ac_cv_prog_pkgcfg_found
5672 if test -n "$pkgcfg_found"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5674 $as_echo "$pkgcfg_found" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5681 if test "$pkgcfg_found" = ""; then
5682 as_fn_error $?
"Could not locate ATF, pkg-config not installed" "$LINENO" 5
5684 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5685 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5686 if test -f $atf_pcp/atf-sh.pc
; then
5687 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5689 # older versions don't have atf-sh, try usual place
5690 ATF_BIN
=$atf_path/bin
5693 if test ! -x $ATF_BIN/atf-run
-o ! -x $ATF_BIN/atf-report
; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run/atf-report not found, assuming they are in your path" >&5
5695 $as_echo "$as_me: WARNING: atf-run/atf-report not found, assuming they are in your path" >&2;}
5704 if test "$atf_pcp" != ""; then
5712 if test -z "$HAVE_ATF_TRUE"; then :
5714 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5720 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5721 ### need to look there and potentially overwrite by default (but not if
5722 ### the user configures an alternate value). LOCALSTATEDIR is totally
5723 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5724 ### they would be insane for suggesting it. We need to look in /var/for
5725 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5728 if test "x$prefix" = xNONE
; then
5729 $as_echo_n "checking for prefix by " >&6
5730 # Extract the first word of "dhcpd", so it can be a program name with args.
5731 set dummy dhcpd
; ac_word
=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5735 $as_echo_n "(cached) " >&6
5737 case $ac_prefix_program in
5739 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir
=.
5747 for ac_exec_ext
in '' $ac_executable_extensions; do
5748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5761 if test -n "$ac_prefix_program"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5763 $as_echo "$ac_prefix_program" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5770 if test -n "$ac_prefix_program"; then
5771 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5772 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5773 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5774 X"$ac_prefix_program" : 'X\(//\)$' \| \
5775 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5776 $as_echo X"$ac_prefix_program" |
5777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5794 prefix
=`$as_dirname -- "$prefix" ||
5795 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5796 X"$prefix" : 'X\(//\)[^/]' \| \
5797 X"$prefix" : 'X\(//\)$' \| \
5798 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5799 $as_echo X"$prefix" |
5800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5821 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5822 # /usr/local/var/no/one/has/this/please/stop/trying?
5823 case "$localstatedir" in
5829 # Allow specification of alternate state files
5831 # Check whether --with-srv-lease-file was given.
5832 if test "${with_srv_lease_file+set}" = set; then :
5833 withval
=$with_srv_lease_file;
5834 cat >>confdefs.h
<<_ACEOF
5835 #define _PATH_DHCPD_DB "$withval"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5842 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5843 if [ "x$with_srv_lease_file" = "x" ] ; then
5844 if [ -d "${localstatedir}/db" ] ; then
5845 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5846 elif [ -d "${localstatedir}/state" ] ; then
5847 if [ -d "${localstatedir}/state/dhcp" ] ; then
5848 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5850 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5852 elif [ -d "${localstatedir}/lib" ] ; then
5853 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5854 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5856 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5858 elif [ -d "${localstatedir}/etc" ] ; then
5859 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5861 with_srv_lease_file
="/etc/dhcpd.leases"
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5865 $as_echo "$with_srv_lease_file" >&6; }
5868 # Check whether --with-srv6-lease-file was given.
5869 if test "${with_srv6_lease_file+set}" = set; then :
5870 withval
=$with_srv6_lease_file;
5871 cat >>confdefs.h
<<_ACEOF
5872 #define _PATH_DHCPD6_DB "$withval"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5879 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5880 if [ "x$with_srv6_lease_file" = "x" ] ; then
5881 if [ -d "${localstatedir}/db" ] ; then
5882 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5883 elif [ -d "${localstatedir}/state" ] ; then
5884 if [ -d "${localstatedir}/state/dhcp" ] ; then
5885 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5887 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5889 elif [ -d "${localstatedir}/lib" ] ; then
5890 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5891 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5893 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5895 elif [ -d "${localstatedir}/etc" ] ; then
5896 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5898 with_srv6_lease_file
="/etc/dhcpd6.leases"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5902 $as_echo "$with_srv6_lease_file" >&6; }
5905 # Check whether --with-cli-lease-file was given.
5906 if test "${with_cli_lease_file+set}" = set; then :
5907 withval
=$with_cli_lease_file;
5908 cat >>confdefs.h
<<_ACEOF
5909 #define _PATH_DHCLIENT_DB "$withval"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5916 $as_echo_n "checking for dhclient.leases location... " >&6; }
5917 if [ "x$with_cli_lease_file" = "x" ] ; then
5918 if [ -d "${localstatedir}/db" ] ; then
5919 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5920 elif [ -d "${localstatedir}/state" ] ; then
5921 if [ -d "${localstatedir}/state/dhcp" ] ; then
5922 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5924 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5926 elif [ -d "${localstatedir}/lib" ] ; then
5927 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5928 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5930 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5932 elif [ -d "${localstatedir}/etc" ] ; then
5933 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5935 with_cli_lease_file
="/etc/dhclient.leases"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5939 $as_echo "$with_cli_lease_file" >&6; }
5942 # Check whether --with-cli6-lease-file was given.
5943 if test "${with_cli6_lease_file+set}" = set; then :
5944 withval
=$with_cli6_lease_file;
5945 cat >>confdefs.h
<<_ACEOF
5946 #define _PATH_DHCLIENT6_DB "$withval"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5953 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5954 if [ "x$with_cli6_lease_file" = "x" ] ; then
5955 if [ -d "${localstatedir}/db" ] ; then
5956 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5957 elif [ -d "${localstatedir}/state" ] ; then
5958 if [ -d "${localstatedir}/state/dhcp" ] ; then
5959 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5961 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5963 elif [ -d "${localstatedir}/lib" ] ; then
5964 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5965 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5967 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5969 elif [ -d "${localstatedir}/etc" ] ; then
5970 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5972 with_cli6_lease_file
="/etc/dhclient6.leases"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5976 $as_echo "$with_cli6_lease_file" >&6; }
5979 # Check whether --with-srv-pid-file was given.
5980 if test "${with_srv_pid_file+set}" = set; then :
5981 withval
=$with_srv_pid_file;
5982 cat >>confdefs.h
<<_ACEOF
5983 #define _PATH_DHCPD_PID "$withval"
5989 # Check whether --with-srv6-pid-file was given.
5990 if test "${with_srv6_pid_file+set}" = set; then :
5991 withval
=$with_srv6_pid_file;
5992 cat >>confdefs.h
<<_ACEOF
5993 #define _PATH_DHCPD6_PID "$withval"
5999 # Check whether --with-cli-pid-file was given.
6000 if test "${with_cli_pid_file+set}" = set; then :
6001 withval
=$with_cli_pid_file;
6002 cat >>confdefs.h
<<_ACEOF
6003 #define _PATH_DHCLIENT_PID "$withval"
6009 # Check whether --with-cli6-pid-file was given.
6010 if test "${with_cli6_pid_file+set}" = set; then :
6011 withval
=$with_cli6_pid_file;
6012 cat >>confdefs.h
<<_ACEOF
6013 #define _PATH_DHCLIENT6_PID "$withval"
6019 # Check whether --with-relay-pid-file was given.
6020 if test "${with_relay_pid_file+set}" = set; then :
6021 withval
=$with_relay_pid_file;
6022 cat >>confdefs.h
<<_ACEOF
6023 #define _PATH_DHCRELAY_PID "$withval"
6029 # Check whether --with-relay6-pid-file was given.
6030 if test "${with_relay6_pid_file+set}" = set; then :
6031 withval
=$with_relay6_pid_file;
6032 cat >>confdefs.h
<<_ACEOF
6033 #define _PATH_DHCRELAY6_PID "$withval"
6039 # Check basic types.
6040 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6041 case $ac_cv_c_int8_t in #(
6045 cat >>confdefs.h
<<_ACEOF
6046 #define int8_t $ac_cv_c_int8_t
6051 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6052 case $ac_cv_c_int16_t in #(
6056 cat >>confdefs.h
<<_ACEOF
6057 #define int16_t $ac_cv_c_int16_t
6062 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6063 case $ac_cv_c_int32_t in #(
6067 cat >>confdefs.h
<<_ACEOF
6068 #define int32_t $ac_cv_c_int32_t
6073 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6074 case $ac_cv_c_int64_t in #(
6078 cat >>confdefs.h
<<_ACEOF
6079 #define int64_t $ac_cv_c_int64_t
6085 # Some systems need the u_intX_t types defined across.
6086 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6087 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6091 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6092 case $ac_cv_c_uint8_t in #(
6096 $as_echo "#define _UINT8_T 1" >>confdefs.h
6099 cat >>confdefs.h
<<_ACEOF
6100 #define uint8_t $ac_cv_c_uint8_t
6106 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6111 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6112 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6116 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6117 case $ac_cv_c_uint16_t in #(
6122 cat >>confdefs.h
<<_ACEOF
6123 #define uint16_t $ac_cv_c_uint16_t
6129 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6134 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6135 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6139 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6140 case $ac_cv_c_uint32_t in #(
6144 $as_echo "#define _UINT32_T 1" >>confdefs.h
6147 cat >>confdefs.h
<<_ACEOF
6148 #define uint32_t $ac_cv_c_uint32_t
6154 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6159 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6160 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6164 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6165 case $ac_cv_c_uint64_t in #(
6169 $as_echo "#define _UINT64_T 1" >>confdefs.h
6172 cat >>confdefs.h
<<_ACEOF
6173 #define uint64_t $ac_cv_c_uint64_t
6179 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6185 # see if ifaddrs.h is available
6186 for ac_header
in ifaddrs.h
6188 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6189 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6190 cat >>confdefs.h
<<_ACEOF
6191 #define HAVE_IFADDRS_H 1
6199 # figure out what IPv4 interface code to use
6200 for ac_header
in linux
/types.h
6202 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6203 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6204 cat >>confdefs.h
<<_ACEOF
6205 #define HAVE_LINUX_TYPES_H 1
6211 # needed for linux/filter.h on old systems
6213 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6214 #ifdef HAVE_LINUX_TYPES_H
6215 #include <linux/types.h>
6219 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6224 if test -n "$DO_LPF"
6227 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6230 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6231 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6236 if test -n "$DO_DLPI"
6239 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6242 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6243 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6248 if test -n "$DO_BPF"
6251 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6257 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6258 # use the same structures. We like to use 'struct lifconf' and 'struct
6259 # lifreq', but we'll use these other structures if they're present. HPUX
6260 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6264 $as_echo_n "checking for struct lifnum... " >&6; }
6265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6268 #include <sys/socket.h>
6280 if ac_fn_c_try_compile
"$LINENO"; then :
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6282 $as_echo "yes" >&6; }
6284 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6293 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #include <sys/types.h>
6297 #include <net/if6.h>
6302 struct if_laddrconf a;
6308 if ac_fn_c_try_compile
"$LINENO"; then :
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6310 $as_echo "yes" >&6; }
6312 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6321 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 #include <sys/types.h>
6325 #include <net/if6.h>
6330 struct if_laddrreq a;
6336 if ac_fn_c_try_link
"$LINENO"; then :
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6338 $as_echo "yes" >&6; }
6340 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6346 rm -f core conftest.err conftest.
$ac_objext \
6347 conftest
$ac_exeext conftest.
$ac_ext
6350 # check for GCC noreturn attribute
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6353 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6360 void foo() __attribute__((noreturn));
6365 if ac_fn_c_try_compile
"$LINENO"; then :
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367 $as_echo "yes" >&6; }
6369 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6375 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 # Look for optional headers.
6381 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6383 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6384 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6385 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6386 cat >>confdefs.h
<<_ACEOF
6387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6395 # Solaris needs some libraries for functions
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6397 $as_echo_n "checking for library containing socket... " >&6; }
6398 if ${ac_cv_search_socket+:} false
; then :
6399 $as_echo_n "(cached) " >&6
6401 ac_func_search_save_LIBS
=$LIBS
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6405 /* Override any GCC internal prototype to avoid an error.
6406 Use char because int might match the return type of a GCC
6407 builtin and then its argument prototype would still apply. */
6420 for ac_lib
in '' socket
; do
6421 if test -z "$ac_lib"; then
6422 ac_res
="none required"
6425 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6427 if ac_fn_c_try_link
"$LINENO"; then :
6428 ac_cv_search_socket
=$ac_res
6430 rm -f core conftest.err conftest.
$ac_objext \
6432 if ${ac_cv_search_socket+:} false
; then :
6436 if ${ac_cv_search_socket+:} false
; then :
6439 ac_cv_search_socket
=no
6442 LIBS
=$ac_func_search_save_LIBS
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6445 $as_echo "$ac_cv_search_socket" >&6; }
6446 ac_res
=$ac_cv_search_socket
6447 if test "$ac_res" != no
; then :
6448 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6453 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6454 if ${ac_cv_search_inet_ntoa+:} false
; then :
6455 $as_echo_n "(cached) " >&6
6457 ac_func_search_save_LIBS
=$LIBS
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6461 /* Override any GCC internal prototype to avoid an error.
6462 Use char because int might match the return type of a GCC
6463 builtin and then its argument prototype would still apply. */
6471 return inet_ntoa ();
6476 for ac_lib
in '' nsl
; do
6477 if test -z "$ac_lib"; then
6478 ac_res
="none required"
6481 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6483 if ac_fn_c_try_link
"$LINENO"; then :
6484 ac_cv_search_inet_ntoa
=$ac_res
6486 rm -f core conftest.err conftest.
$ac_objext \
6488 if ${ac_cv_search_inet_ntoa+:} false
; then :
6492 if ${ac_cv_search_inet_ntoa+:} false
; then :
6495 ac_cv_search_inet_ntoa
=no
6498 LIBS
=$ac_func_search_save_LIBS
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6501 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6502 ac_res
=$ac_cv_search_inet_ntoa
6503 if test "$ac_res" != no
; then :
6504 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6510 $as_echo_n "checking for library containing inet_aton... " >&6; }
6511 if ${ac_cv_search_inet_aton+:} false
; then :
6512 $as_echo_n "(cached) " >&6
6514 ac_func_search_save_LIBS
=$LIBS
6515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6518 /* Override any GCC internal prototype to avoid an error.
6519 Use char because int might match the return type of a GCC
6520 builtin and then its argument prototype would still apply. */
6528 return inet_aton ();
6533 for ac_lib
in '' socket nsl
; do
6534 if test -z "$ac_lib"; then
6535 ac_res
="none required"
6538 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6540 if ac_fn_c_try_link
"$LINENO"; then :
6541 ac_cv_search_inet_aton
=$ac_res
6543 rm -f core conftest.err conftest.
$ac_objext \
6545 if ${ac_cv_search_inet_aton+:} false
; then :
6549 if ${ac_cv_search_inet_aton+:} false
; then :
6552 ac_cv_search_inet_aton
=no
6555 LIBS
=$ac_func_search_save_LIBS
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6558 $as_echo "$ac_cv_search_inet_aton" >&6; }
6559 ac_res
=$ac_cv_search_inet_aton
6560 if test "$ac_res" != no
; then :
6561 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6565 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6570 # Check for a standalone regex library.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6572 $as_echo_n "checking for library containing regcomp... " >&6; }
6573 if ${ac_cv_search_regcomp+:} false
; then :
6574 $as_echo_n "(cached) " >&6
6576 ac_func_search_save_LIBS
=$LIBS
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6580 /* Override any GCC internal prototype to avoid an error.
6581 Use char because int might match the return type of a GCC
6582 builtin and then its argument prototype would still apply. */
6595 for ac_lib
in '' regex
; do
6596 if test -z "$ac_lib"; then
6597 ac_res
="none required"
6600 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6602 if ac_fn_c_try_link
"$LINENO"; then :
6603 ac_cv_search_regcomp
=$ac_res
6605 rm -f core conftest.err conftest.
$ac_objext \
6607 if ${ac_cv_search_regcomp+:} false
; then :
6611 if ${ac_cv_search_regcomp+:} false
; then :
6614 ac_cv_search_regcomp
=no
6617 LIBS
=$ac_func_search_save_LIBS
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6620 $as_echo "$ac_cv_search_regcomp" >&6; }
6621 ac_res
=$ac_cv_search_regcomp
6622 if test "$ac_res" != no
; then :
6623 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6628 for ac_func
in strlcat
6630 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6631 if test "x$ac_cv_func_strlcat" = xyes
; then :
6632 cat >>confdefs.h
<<_ACEOF
6633 #define HAVE_STRLCAT 1
6640 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6642 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6643 if ${ac_cv_search_if_nametoindex+:} false
; then :
6644 $as_echo_n "(cached) " >&6
6646 ac_func_search_save_LIBS
=$LIBS
6647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6650 /* Override any GCC internal prototype to avoid an error.
6651 Use char because int might match the return type of a GCC
6652 builtin and then its argument prototype would still apply. */
6656 char if_nametoindex ();
6660 return if_nametoindex ();
6665 for ac_lib
in '' ipv6
; do
6666 if test -z "$ac_lib"; then
6667 ac_res
="none required"
6670 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6672 if ac_fn_c_try_link
"$LINENO"; then :
6673 ac_cv_search_if_nametoindex
=$ac_res
6675 rm -f core conftest.err conftest.
$ac_objext \
6677 if ${ac_cv_search_if_nametoindex+:} false
; then :
6681 if ${ac_cv_search_if_nametoindex+:} false
; then :
6684 ac_cv_search_if_nametoindex
=no
6687 LIBS
=$ac_func_search_save_LIBS
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6690 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6691 ac_res
=$ac_cv_search_if_nametoindex
6692 if test "$ac_res" != no
; then :
6693 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6698 # check for /dev/random (declares HAVE_DEV_RANDOM)
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6700 $as_echo_n "checking for random device... " >&6; }
6702 # Check whether --with-randomdev was given.
6703 if test "${with_randomdev+set}" = set; then :
6704 withval
=$with_randomdev; use_randomdev
="$withval"
6706 use_randomdev
="unspec"
6709 if test "$use_randomdev" = "unspec"; then
6710 if test "$cross_compiling" = "yes"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6712 $as_echo "unspecified" >&6; }
6713 as_fn_error $?
" need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6715 use_randomdev
="/dev/random"
6716 elif test "$use_randomdev" = "yes"; then
6717 use_randomdev
="/dev/random"
6719 if test "$use_randomdev" = "no"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6721 $as_echo "disabled" >&6; }
6722 BINDCONFIG
="$BINDCONFIG --with-randomdev=no"
6724 if test "$cross_compiling" = "yes"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6726 $as_echo "$use_randomdev (unchecked)" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6729 $as_echo "$use_randomdev" >&6; }
6730 as_ac_File
=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6732 $as_echo_n "checking for $use_randomdev... " >&6; }
6733 if eval \
${$as_ac_File+:} false
; then :
6734 $as_echo_n "(cached) " >&6
6736 test "$cross_compiling" = yes &&
6737 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6738 if test -r "$use_randomdev"; then
6739 eval "$as_ac_File=yes"
6741 eval "$as_ac_File=no"
6744 eval ac_res
=\$
$as_ac_File
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6746 $as_echo "$ac_res" >&6; }
6747 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
6749 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6752 as_fn_error $?
"cannot find $use_randomdev" "$LINENO" 5
6756 BINDCONFIG
="$BINDCONFIG --with-randomdev=$use_randomdev"
6759 BINDIOMUX
="--disable-kqueue --disable-epoll --disable-devpoll"
6760 # check kqueue/epoll/devpoll alternative to select
6761 # Check whether --enable-kqueue was given.
6762 if test "${enable_kqueue+set}" = set; then :
6763 enableval
=$enable_kqueue; want_kqueue
="$enableval"
6768 if test "$want_kqueue" = "yes"; then
6769 BINDIOMUX
="--enable-kqueue"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6771 $as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6773 # Check whether --enable-epoll was given.
6774 if test "${enable_epoll+set}" = set; then :
6775 enableval
=$enable_epoll; want_epoll
="$enableval"
6780 if test "$want_epoll" = "yes"; then
6781 BINDIOMUX
="--enable-epoll"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6783 $as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6785 # Check whether --enable-devpoll was given.
6786 if test "${enable_devpoll+set}" = set; then :
6787 enableval
=$enable_devpoll; want_devpoll
="$enableval"
6792 if test "$want_devpoll" = "yes"; then
6793 BINDIOMUX
="--enable-devpoll"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6795 $as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6799 # general extra bind configure arguments
6801 # Check whether --with-bind-extra-config was given.
6802 if test "${with_bind_extra_config+set}" = set; then :
6803 withval
=$with_bind_extra_config; use_xbindconfig
="$withval"
6808 case "$use_xbindconfig" in
6812 BINDCONFIG
="$BINDCONFIG $use_xbindconfig"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6814 $as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6818 # see if there is a "sa_len" field in our interface information structure
6819 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6821 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6823 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6828 # figure out pointer size
6829 SAVE_CFLAGS
="$CFLAGS"
6830 CFLAGS
="$CFLAGS -I$srcdir"
6831 # The cast to long int works around a bug in the HP C Compiler
6832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6834 # This bug is HP SR number 8606223364.
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6836 $as_echo_n "checking size of struct iaddr *... " >&6; }
6837 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6838 $as_echo_n "(cached) " >&6
6840 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6841 #include \"includes/inet.h\"
6847 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6850 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6851 See \`config.log' for more details" "$LINENO" 5; }
6853 ac_cv_sizeof_struct_iaddr_p
=0
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6859 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6863 cat >>confdefs.h
<<_ACEOF
6864 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6868 CFLAGS
="$SAVE_CFLAGS"
6870 # Solaris does not have the msg_control or msg_controlen members
6871 # in the msghdr structure unless you define:
6873 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6875 # See the "standards" man page for details.
6877 # We check for the msg_control member, and if it is not found, we check
6878 # again with the appropriate defines added to the CFLAGS. (In order to
6879 # do this we have to remove the check from the cache, which is what the
6881 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6882 #include <sys/types.h>
6883 #include <sys/socket.h>
6886 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6889 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6890 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6891 unset ac_cv_member_struct_msghdr_msg_control
6892 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6893 #include <sys/types.h>
6894 #include <sys/socket.h>
6897 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6900 as_fn_error $?
"Missing msg_control member in
6901 msg_control structure." "$LINENO" 5
6908 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>
6910 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6912 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6918 # bind/Makefile.in is not from automake so we need 2 variables for bind dir
6926 DISTCHECK_LIBBIND_CONFIGURE_FLAG
=
6928 # Check whether --with-libbind was given.
6929 if test "${with_libbind+set}" = set; then :
6930 withval
=$with_libbind; use_libbind
="$withval"
6935 case "$use_libbind" in
6937 as_fn_error $?
"PATH is required in --with-libbind=PATH" "$LINENO" 5
6940 BINDSUBDIR
="\${top_srcdir}/bind"
6941 my_abs_srcdir
=`cd $srcdir && pwd`
6942 BINDDIR
="${my_abs_srcdir}/bind"
6943 if test ! -d "$srcdir/bind"; then
6944 as_fn_error $?
"Where to find or build bind includes and libraries must be specified" "$LINENO" 5
6946 if test -d "$srcdir/bind/bind9"; then
6947 BINDSRCDIR
="${my_abs_srcdir}/bind/bind9"
6949 if test ! -f "$srcdir/bind/version.tmp"; then
6950 as_fn_error $?
"Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
6952 .
"$srcdir/bind/version.tmp"
6953 bindversion
=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
6954 BINDSRCDIR
="${my_abs_srcdir}/bind/bind-$bindversion"
6956 ac_config_files
="$ac_config_files $srcdir/bind/Makefile"
6959 BINDLIBIRSDIR
="$BINDSRCDIR/lib/irs"
6960 BINDLIBDNSDIR
="$BINDSRCDIR/lib/dns"
6961 BINDLIBISCCFGDIR
="$BINDSRCDIR/lib/isccfg"
6962 BINDLIBISCDIR
="$BINDSRCDIR/lib/isc"
6965 if test ! -d "$use_libbind"; then
6966 as_fn_error $?
"Cannot find bind directory at $use_libbind" "$LINENO" 5
6968 if test ! -d "$use_libbind/include" -o \
6969 ! -f "$use_libbind/include/isc/buffer.h"
6971 as_fn_error $?
"Cannot find bind includes at $use_libbind/include" "$LINENO" 5
6973 if test ! -d "$use_libbind/lib" -o \
6974 \
( ! -f "$use_libbind/lib/libisc.a" -a \
6975 ! -f "$use_libbind/lib/libisc.la" \
)
6977 as_fn_error $?
"Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
6979 BINDDIR
="$use_libbind"
6980 BINDLIBIRSDIR
="$BINDDIR/lib"
6981 BINDLIBDNSDIR
="$BINDDIR/lib"
6982 BINDLIBISCCFGDIR
="$BINDDIR/lib"
6983 BINDLIBISCDIR
="$BINDDIR/lib"
6984 DISTCHECK_LIBBIND_CONFIGURE_FLAG
="--with-libbind=$use_libbind"
6995 if test "$use_libbind" = "no"; then
6997 HAVE_BINDDIR_FALSE
='#'
6999 HAVE_BINDDIR_TRUE
='#'
7005 # GNU libtool support
7009 # Just set the maximum command line length for sunos
7010 # as it otherwise takes a exceptionally long time to
7011 # work it out. Required for libtool.
7013 lt_cv_sys_max_cmd_len
=4096
7020 DISTCHECK_LIBTOOL_CONFIGURE_FLAG
=
7021 # Check whether --enable-libtool was given.
7022 if test "${enable_libtool+set}" = set; then :
7023 enableval
=$enable_libtool; want_libtool
="$enableval"
7027 if test "$use_libbind" != "no"; then
7028 if test "$want_libtool" = "yes" -a \
7029 ! -f "$use_libbind/lib/libisc.la"
7031 as_fn_error $?
"Cannot find dynamic libraries at $use_libbind/lib" "$LINENO" 5
7033 if test "$want_libtool" = "no" -a \
7034 ! -f "$use_libbind/lib/libisc.a"
7036 as_fn_error $?
"Cannot find static libraries at $use_libbind/lib" "$LINENO" 5
7041 if test "$want_libtool" = "yes"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
7043 $as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
7044 # expand $ac_configure_args
7045 eval "set my_configure_args $ac_configure_args"
7047 cd $srcdir; exec .
/config
+lt
"$@"
7048 as_fn_error $?
"Recovering failed" "$LINENO" 5
7059 # quoting in Makefile.am.in
7063 # install bind includes and libraries
7065 want_install_bind
="no"
7066 if test "$want_libtool" = "yes"; then
7067 want_install_bind
="yes"
7069 if test "$use_libbind" != "no"; then
7070 want_install_bind
="no"
7072 # Check whether --enable-bind_install was given.
7073 if test "${enable_bind_install+set}" = set; then :
7074 enableval
=$enable_bind_install; want_install_bind
="$enableval"
7077 if test "$want_install_bind" = "yes"; then
7078 if test "$use_libbind" != "no"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&5
7080 $as_echo "$as_me: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&2;}
7082 elif test "$want_libtool" = "yes" -a "$use_libbind" = "no"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: embedded dynamic bind libraries must be installed" >&5
7084 $as_echo "$as_me: WARNING: embedded dynamic bind libraries must be installed" >&2;}
7086 if test "$want_install_bind" = "yes"; then
7088 INSTALL_BIND_FALSE
='#'
7090 INSTALL_BIND_TRUE
='#'
7097 # Check whether --with-ldap was given.
7098 if test "${with_ldap+set}" = set; then :
7099 withval
=$with_ldap; ldap
=$withval
7105 # OpenLDAP with SSL support.
7107 # Check whether --with-ldapcrypto was given.
7108 if test "${with_ldapcrypto+set}" = set; then :
7109 withval
=$with_ldapcrypto; ldapcrypto
=$withval
7115 # Gssapi to allow LDAP to authenticate with a keytab
7117 # Check whether --with-ldap-gssapi was given.
7118 if test "${with_ldap_gssapi+set}" = set; then :
7119 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
7126 # LDAP CASA auth support.
7128 # Check whether --with-ldapcasa was given.
7129 if test "${with_ldapcasa+set}" = set; then :
7130 withval
=$with_ldapcasa; ldapcasa
=$withval
7136 # OpenLDAP support is disabled by default, if enabled then SSL support is an
7137 # extra optional that is also disabled by default. Enabling LDAP SSL support
7138 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7139 # but doesn't include SSL. The two are not dependant.
7140 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7144 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
7145 if ${ac_cv_search_ldap_initialize+:} false
; then :
7146 $as_echo_n "(cached) " >&6
7148 ac_func_search_save_LIBS
=$LIBS
7149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7152 /* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
7158 char ldap_initialize ();
7162 return ldap_initialize ();
7167 for ac_lib
in '' ldap
; do
7168 if test -z "$ac_lib"; then
7169 ac_res
="none required"
7172 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7174 if ac_fn_c_try_link
"$LINENO"; then :
7175 ac_cv_search_ldap_initialize
=$ac_res
7177 rm -f core conftest.err conftest.
$ac_objext \
7179 if ${ac_cv_search_ldap_initialize+:} false
; then :
7183 if ${ac_cv_search_ldap_initialize+:} false
; then :
7186 ac_cv_search_ldap_initialize
=no
7189 LIBS
=$ac_func_search_save_LIBS
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7192 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
7193 ac_res
=$ac_cv_search_ldap_initialize
7194 if test "$ac_res" != no
; then :
7195 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7200 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7201 See \`config.log' for more details" "$LINENO" 5; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7205 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7206 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7207 $as_echo_n "(cached) " >&6
7209 ac_func_search_save_LIBS
=$LIBS
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7213 /* Override any GCC internal prototype to avoid an error.
7214 Use char because int might match the return type of a GCC
7215 builtin and then its argument prototype would still apply. */
7219 char ber_pvt_opt_on ();
7223 return ber_pvt_opt_on ();
7228 for ac_lib
in '' lber
; do
7229 if test -z "$ac_lib"; then
7230 ac_res
="none required"
7233 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7235 if ac_fn_c_try_link
"$LINENO"; then :
7236 ac_cv_search_ber_pvt_opt_on
=$ac_res
7238 rm -f core conftest.err conftest.
$ac_objext \
7240 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7244 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7247 ac_cv_search_ber_pvt_opt_on
=no
7250 LIBS
=$ac_func_search_save_LIBS
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7253 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7254 ac_res
=$ac_cv_search_ber_pvt_opt_on
7255 if test "$ac_res" != no
; then :
7256 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7261 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7262 See \`config.log' for more details" "$LINENO" 5; }
7265 if test x
$ldap_gssapi = xyes
; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7267 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7268 if ${ac_cv_search_krb5_init_context+:} false
; then :
7269 $as_echo_n "(cached) " >&6
7271 ac_func_search_save_LIBS
=$LIBS
7272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7275 /* Override any GCC internal prototype to avoid an error.
7276 Use char because int might match the return type of a GCC
7277 builtin and then its argument prototype would still apply. */
7281 char krb5_init_context ();
7285 return krb5_init_context ();
7290 for ac_lib
in '' krb5
; do
7291 if test -z "$ac_lib"; then
7292 ac_res
="none required"
7295 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7297 if ac_fn_c_try_link
"$LINENO"; then :
7298 ac_cv_search_krb5_init_context
=$ac_res
7300 rm -f core conftest.err conftest.
$ac_objext \
7302 if ${ac_cv_search_krb5_init_context+:} false
; then :
7306 if ${ac_cv_search_krb5_init_context+:} false
; then :
7309 ac_cv_search_krb5_init_context
=no
7312 LIBS
=$ac_func_search_save_LIBS
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7315 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7316 ac_res
=$ac_cv_search_krb5_init_context
7317 if test "$ac_res" != no
; then :
7318 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7323 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7324 See \`config.log' for more details" "$LINENO" 5; }
7329 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7335 for ac_header
in ldap.h
7337 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7338 if test "x$ac_cv_header_ldap_h" = xyes
; then :
7339 cat >>confdefs.h
<<_ACEOF
7340 #define HAVE_LDAP_H 1
7347 for ac_func
in inet_pton inet_ntop
7349 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7350 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7351 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7352 cat >>confdefs.h
<<_ACEOF
7353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7361 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
7363 if test x
$ldapcasa = xyes
; then
7364 for ac_header
in micasa_mgmd.h
7366 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7367 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
7368 cat >>confdefs.h
<<_ACEOF
7369 #define HAVE_MICASA_MGMD_H 1
7372 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7377 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
7378 See \`config.log' for more details" "$LINENO" 5; }
7385 if test x
$ldapcrypto = xyes
; then
7386 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
7389 if test x
$ldap_gssapi = xyes
; then
7390 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7393 LDAP_CFLAGS
=$LDAP_CFLAGS
7397 # Append selected warning levels to CFLAGS before substitution (but after
7398 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7399 CFLAGS
="$CFLAGS $STD_CWARNINGS"
7401 # Try to add the bind and dhcp include directories
7402 CFLAGS
="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7406 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542";;
7408 # As of Solaris 11, ethernet dev files are in /dev/net
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7410 $as_echo_n "checking for /dev/net... " >&6; }
7411 if ${ac_cv_file__dev_net+:} false
; then :
7412 $as_echo_n "(cached) " >&6
7414 test "$cross_compiling" = yes &&
7415 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
7416 if test -r "/dev/net"; then
7417 ac_cv_file__dev_net
=yes
7419 ac_cv_file__dev_net
=no
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7423 $as_echo "$ac_cv_file__dev_net" >&6; }
7424 if test "x$ac_cv_file__dev_net" = xyes
; then :
7426 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7435 $as_echo_n "checking for flexible array members... " >&6; }
7436 if ${ac_cv_c_flexmember+:} false
; then :
7437 $as_echo_n "(cached) " >&6
7439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7444 struct s { int n; double d[]; };
7449 struct s *p = malloc (offsetof (struct s, d)
7450 + m * sizeof (double));
7452 return p->d != (double *) NULL;
7457 if ac_fn_c_try_compile
"$LINENO"; then :
7458 ac_cv_c_flexmember
=yes
7460 ac_cv_c_flexmember
=no
7462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7465 $as_echo "$ac_cv_c_flexmember" >&6; }
7466 if test $ac_cv_c_flexmember = yes; then
7468 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7471 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7476 ac_config_files
="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile.am common/Makefile common/tests/Makefile dhcpctl/Makefile.am dhcpctl/Makefile includes/Makefile omapip/Makefile.am omapip/Makefile relay/Makefile server/Makefile tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7478 cat >confcache
<<\_ACEOF
7479 # This file is a shell script that caches the results of configure
7480 # tests run on this system so they can be shared between configure
7481 # scripts and configure runs, see configure's option --config-cache.
7482 # It is not useful on other systems. If it contains results you don't
7483 # want to keep, you may remove or edit it.
7485 # config.status only pays attention to the cache file if you give it
7486 # the --recheck option to rerun configure.
7488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7494 # The following way of writing the cache mishandles newlines in values,
7495 # but we know of no workaround that is simple, portable, and efficient.
7496 # So, we kill variables containing newlines.
7497 # Ultrix sh set writes to stderr and can't be redirected directly,
7498 # and sets the high bit in the cache file unless we assign to the vars.
7500 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7501 eval ac_val
=\$
$ac_var
7505 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7509 _ | IFS | as_nl
) ;; #(
7510 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7511 *) { eval $ac_var=; unset $ac_var;} ;;
7517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7518 *${as_nl}ac_space
=\
*)
7519 # `set' does not quote correctly, so add quotes: double-quote
7520 # substitution turns \\\\ into \\, and sed turns \\ into \.
7523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7526 # `set' quotes correctly as required by POSIX, so do not add quotes.
7527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7540 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7541 if test -w "$cache_file"; then
7542 if test "x$cache_file" != "x/dev/null"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7544 $as_echo "$as_me: updating cache $cache_file" >&6;}
7545 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7546 cat confcache
>"$cache_file"
7548 case $cache_file in #(
7550 mv -f confcache
"$cache_file"$$
&&
7551 mv -f "$cache_file"$$
"$cache_file" ;; #(
7553 mv -f confcache
"$cache_file" ;;
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7559 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7564 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7565 # Let make expand exec_prefix.
7566 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7568 DEFS
=-DHAVE_CONFIG_H
7573 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7574 # 1. Remove the extension, and $U if already installed.
7575 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7576 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7578 # will be set to the directory where LIBOBJS objects are built.
7579 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7580 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7584 LTLIBOBJS
=$ac_ltlibobjs
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7588 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7589 if test -n "$am_sleep_pid"; then
7590 # Hide warnings about reused PIDs.
7591 wait $am_sleep_pid 2>/dev
/null
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7594 $as_echo "done" >&6; }
7595 if test -n "$EXEEXT"; then
7597 am__EXEEXT_FALSE
='#'
7603 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7604 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7607 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7608 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7611 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7612 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7616 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7617 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7620 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7621 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7624 if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then
7625 as_fn_error $?
"conditional \"HAVE_BINDDIR\" was never defined.
7626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7628 if test -z "${INSTALL_BIND_TRUE}" && test -z "${INSTALL_BIND_FALSE}"; then
7629 as_fn_error $?
"conditional \"INSTALL_BIND\" was never defined.
7630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7633 : "${CONFIG_STATUS=./config.status}"
7635 ac_clean_files_save
=$ac_clean_files
7636 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7638 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7640 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7642 # Generated by $as_me.
7643 # Run this file to recreate the current configuration.
7644 # Compiler output produced by configure, useful for debugging
7645 # configure, is in config.log if it exists.
7651 SHELL=\${CONFIG_SHELL-$SHELL}
7654 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7655 ## -------------------- ##
7656 ## M4sh Initialization. ##
7657 ## -------------------- ##
7659 # Be more Bourne compatible
7660 DUALCASE
=1; export DUALCASE
# for MKS sh
7661 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7664 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7665 # is contrary to our usage. Disable this feature.
7666 alias -g '${1+"$@"}'='"$@"'
7667 setopt NO_GLOB_SUBST
7669 case `(set -o) 2>/dev/null` in #(
7681 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7682 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7683 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7685 # Prefer a ksh shell builtin over an external printf program on Solaris,
7686 # but without wasting forks for bash or zsh.
7687 if test -z "$BASH_VERSION$ZSH_VERSION" \
7688 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7689 as_echo='print
-r --'
7690 as_echo_n='print
-rn --'
7691 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7692 as_echo='printf %s
\n'
7693 as_echo_n='printf %s
'
7695 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7696 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7697 as_echo_n='/usr
/ucb
/echo -n'
7699 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7700 as_echo_n_body='eval
7704 expr "X$arg" : "X\\(.*\\)$as_nl";
7705 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7707 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7709 export as_echo_n_body
7710 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7713 as_echo='sh
-c $as_echo_body as_echo
'
7716 # The user is always right.
7717 if test "${PATH_SEPARATOR+set}" != set; then
7719 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7720 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7727 # We need space, tab and new line, in precisely that order. Quoting is
7728 # there to prevent editors from complaining about space-tab.
7729 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7730 # splitting by setting IFS to empty value.)
7733 # Find who we are. Look in the path if we contain no directory separator.
7736 *[\\/]* ) as_myself=$0 ;;
7737 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7748 # We did not find ourselves, most probably we were run as `sh COMMAND'
7749 # in which case we are not to be found in the path.
7750 if test "x$as_myself" = x
; then
7753 if test ! -f "$as_myself"; then
7754 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7758 # Unset variables that we do not need and which cause bugs (e.g. in
7759 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7760 # suppresses any "Segmentation fault" message there. '((' could
7761 # trigger a bug in pdksh 5.2.14.
7762 for as_var
in BASH_ENV ENV MAIL MAILPATH
7763 do eval test x\
${$as_var+set} = xset \
7764 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7777 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7780 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7781 # ----------------------------------------
7782 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7783 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7784 # script with STATUS, using 1 if that was 0.
7787 as_status
=$1; test $as_status -eq 0 && as_status
=1
7789 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7790 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7792 $as_echo "$as_me: error: $2" >&2
7793 as_fn_exit
$as_status
7797 # as_fn_set_status STATUS
7798 # -----------------------
7799 # Set $? to STATUS, without forking.
7803 } # as_fn_set_status
7807 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7817 # Portably unset VAR.
7820 { eval $1=; unset $1;}
7822 as_unset
=as_fn_unset
7823 # as_fn_append VAR VALUE
7824 # ----------------------
7825 # Append the text in VALUE to the end of the definition contained in VAR. Take
7826 # advantage of any shell optimizations that allow amortized linear growth over
7827 # repeated appends, instead of the typical quadratic growth present in naive
7829 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7830 eval 'as_fn_append ()
7841 # as_fn_arith ARG...
7842 # ------------------
7843 # Perform arithmetic evaluation on the ARGs, and store the result in the
7844 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7845 # must be portable across $(()) and expr.
7846 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7847 eval 'as_fn_arith ()
7854 as_val
=`expr "$@" || test $? -eq 1`
7859 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7860 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7866 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7867 as_basename
=basename
7872 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7878 as_me
=`$as_basename -- "$0" ||
7879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7880 X"$0" : 'X\(//\)$' \| \
7881 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7883 sed '/^.*\/\([^/][^/]*\)\/*$/{
7897 # Avoid depending upon Character Ranges.
7898 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7899 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7900 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7901 as_cr_digits
='0123456789'
7902 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7904 ECHO_C
= ECHO_N
= ECHO_T
=
7905 case `echo -n x` in #(((((
7907 case `echo 'xy\c'` in
7908 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7910 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7917 rm -f conf$$ conf$$.exe conf$$.
file
7918 if test -d conf$$.dir
; then
7919 rm -f conf$$.dir
/conf$$.
file
7922 mkdir conf$$.dir
2>/dev
/null
7924 if (echo >conf$$.
file) 2>/dev
/null
; then
7925 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7927 # ... but there are two gotchas:
7928 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7929 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7930 # In both cases, we have to default to `cp -pR'.
7931 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7933 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7941 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7942 rmdir conf$$.dir
2>/dev
/null
7947 # Create "$as_dir" as a directory, including parents if necessary.
7952 -*) as_dir
=.
/$as_dir;;
7954 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7958 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7959 *) as_qdir
=$as_dir;;
7961 as_dirs
="'$as_qdir' $as_dirs"
7962 as_dir
=`$as_dirname -- "$as_dir" ||
7963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7964 X"$as_dir" : 'X\(//\)[^/]' \| \
7965 X"$as_dir" : 'X\(//\)$' \| \
7966 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7967 $as_echo X"$as_dir" |
7968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7985 test -d "$as_dir" && break
7987 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7988 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7992 if mkdir
-p .
2>/dev
/null
; then
7993 as_mkdir_p
='mkdir -p "$as_dir"'
7995 test -d .
/-p && rmdir .
/-p
8000 # as_fn_executable_p FILE
8001 # -----------------------
8002 # Test if FILE is an executable regular file.
8003 as_fn_executable_p
()
8005 test -f "$1" && test -x "$1"
8006 } # as_fn_executable_p
8008 as_executable_p
=as_fn_executable_p
8010 # Sed expression to map a string onto a valid CPP name.
8011 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8013 # Sed expression to map a string onto a valid variable name.
8014 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8018 ## ----------------------------------- ##
8019 ## Main body of $CONFIG_STATUS script. ##
8020 ## ----------------------------------- ##
8022 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8025 # Save the log message, to keep $0 and so on meaningful, and to
8026 # report actual input values of CONFIG_FILES etc. instead of their
8027 # values after options handling.
8029 This file was extended by DHCP $as_me 4.4.0-dev, which was
8030 generated by GNU Autoconf 2.69. Invocation command line was
8032 CONFIG_FILES = $CONFIG_FILES
8033 CONFIG_HEADERS = $CONFIG_HEADERS
8034 CONFIG_LINKS = $CONFIG_LINKS
8035 CONFIG_COMMANDS = $CONFIG_COMMANDS
8038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8043 case $ac_config_files in *"
8044 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8047 case $ac_config_headers in *"
8048 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8053 # Files that config.status was made for.
8054 config_files="$ac_config_files"
8055 config_headers="$ac_config_headers"
8056 config_commands="$ac_config_commands"
8060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8062 \`$as_me' instantiates files and other configuration actions
8063 from templates according to the current configuration. Unless the files
8064 and actions are specified as TAGs, all are instantiated by default.
8066 Usage: $0 [OPTION]... [TAG]...
8068 -h, --help print this help, then exit
8069 -V, --version print version number and configuration settings, then exit
8070 --config print configuration, then exit
8071 -q, --quiet, --silent
8072 do not print progress messages
8073 -d, --debug don't remove temporary files
8074 --recheck update $as_me by reconfiguring in the same conditions
8075 --file=FILE[:TEMPLATE]
8076 instantiate the configuration file FILE
8077 --header=FILE[:TEMPLATE]
8078 instantiate the configuration header FILE
8080 Configuration files:
8083 Configuration headers:
8086 Configuration commands:
8089 Report bugs to <dhcp-users@isc.org>."
8092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8093 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8095 DHCP config.status 4.4.0-dev
8096 configured by $0, generated by GNU Autoconf 2.69,
8097 with options \\"\$ac_cs_config\\"
8099 Copyright (C) 2012 Free Software Foundation, Inc.
8100 This config.status script is free software; the Free Software Foundation
8101 gives unlimited permission to copy, distribute and modify it."
8108 test -n "\$AWK" || AWK=awk
8111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8112 # The default lists apply if the user does not specify any file.
8118 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8119 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8123 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8135 # Handling of the options.
8136 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8138 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8139 $as_echo "$ac_cs_version"; exit ;;
8140 --config |
--confi |
--conf |
--con |
--co |
--c )
8141 $as_echo "$ac_cs_config"; exit ;;
8142 --debug |
--debu |
--deb |
--de |
--d |
-d )
8144 --file |
--fil |
--fi |
--f )
8147 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8148 '') as_fn_error $?
"missing file argument" ;;
8150 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8151 ac_need_defaults
=false
;;
8152 --header |
--heade |
--head |
--hea )
8155 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8157 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8158 ac_need_defaults
=false
;;
8160 # Conflict between --help and --header
8161 as_fn_error $?
"ambiguous option: \`$1'
8162 Try \`$0 --help' for more information.";;
8163 --help |
--hel |
-h )
8164 $as_echo "$ac_cs_usage"; exit ;;
8165 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8166 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8170 -*) as_fn_error $?
"unrecognized option: \`$1'
8171 Try \`$0 --help' for more information." ;;
8173 *) as_fn_append ac_config_targets
" $1"
8174 ac_need_defaults
=false
;;
8180 ac_configure_extra_args
=
8182 if $ac_cs_silent; then
8184 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8189 if \$ac_cs_recheck; then
8190 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8192 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8193 CONFIG_SHELL='$SHELL'
8199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8203 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8204 ## Running $as_me. ##
8210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8214 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8220 # Handling of arguments.
8221 for ac_config_target
in $ac_config_targets
8223 case $ac_config_target in
8224 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8225 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
8226 "$srcdir/bind/Makefile") CONFIG_FILES
="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8227 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8228 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
8229 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
8230 "common/Makefile.am") CONFIG_FILES
="$CONFIG_FILES common/Makefile.am" ;;
8231 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8232 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
8233 "dhcpctl/Makefile.am") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile.am" ;;
8234 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
8235 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
8236 "omapip/Makefile.am") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile.am" ;;
8237 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
8238 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
8239 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
8240 "tests/Makefile.am") CONFIG_FILES
="$CONFIG_FILES tests/Makefile.am" ;;
8241 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8242 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
8243 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
8244 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
8246 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8251 # If the user did not use the arguments to specify the items to instantiate,
8252 # then the envvar interface is used. Set only those that are not.
8253 # We use the long form for the default assignment because of an extremely
8254 # bizarre bug on SunOS 4.1.3.
8255 if $ac_need_defaults; then
8256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8261 # Have a temporary directory for convenience. Make it in the build tree
8262 # simply because there is no reason against having it here, and in addition,
8263 # creating and moving files from /tmp can sometimes cause problems.
8264 # Hook for its removal unless debugging.
8265 # Note that there is a small window in which the directory will not be cleaned:
8266 # after its creation but before its name has been assigned to `$tmp'.
8270 trap 'exit_status=$?
8272 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8274 trap 'as_fn_exit 1' 1 2 13 15
8276 # Create a (secure) tmp directory for tmp files.
8279 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8283 tmp
=.
/conf$$
-$RANDOM
8284 (umask 077 && mkdir
"$tmp")
8285 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8288 # Set up the scripts for CONFIG_FILES section.
8289 # No need to generate them if there are no CONFIG_FILES.
8290 # This happens for instance with `./config.status config.h'.
8291 if test -n "$CONFIG_FILES"; then
8294 ac_cr
=`echo X | tr X '\015'`
8295 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8296 # But we know of no other shell where ac_cr would be empty at this
8297 # point, so we can use a bashism as a fallback.
8298 if test "x$ac_cr" = x
; then
8299 eval ac_cr
=\$
\'\\r
\'
8301 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8302 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8308 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8313 echo "cat >conf$$subs.awk <<_ACEOF" &&
8314 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8317 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8318 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8320 for ac_last_try in false false false false false :; do
8321 . ./conf$$subs.sh ||
8322 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8324 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8325 if test $ac_delim_n = $ac_delim_num; then
8327 elif $ac_last_try; then
8328 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8330 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8336 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8340 s/^/S["/; s
/!.
*/"]=/
8350 s/\(.\{148\}\)..*/\1/
8352 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8357 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8364 s/\(.\{148\}\)..*/\1/
8366 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8370 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8375 ' <conf$$subs.awk | sed '
8380 ' >>$CONFIG_STATUS || ac_write_fail=1
8381 rm -f conf$$subs.awk
8382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8384 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8385 for (key in S) S_is_set[key] = 1
8391 nfields = split(line, field, "@
")
8393 len = length(field[1])
8394 for (i = 2; i < nfields; i++) {
8396 keylen = length(key)
8397 if (S_is_set[key]) {
8399 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8400 len += length(value) + length(field[++i])
8411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8412 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8413 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8416 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8417 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8422 # trailing colons and then remove the whole line if VPATH becomes empty
8423 # (actually we leave an empty line to preserve line numbers).
8424 if test "x
$srcdir" = x.; then
8425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8444 fi # test -n "$CONFIG_FILES"
8446 # Set up the scripts for CONFIG_HEADERS section.
8447 # No need to generate them if there are no CONFIG_HEADERS.
8448 # This happens for instance with `./config.status Makefile'.
8449 if test -n "$CONFIG_HEADERS"; then
8450 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8454 # Transform confdefs.h into an awk script `defines.awk', embedded as
8455 # here-document in config.status, that substitutes the proper values into
8456 # config.h.in to produce config.h.
8458 # Create a delimiter string that does not exist in confdefs.h, to ease
8459 # handling of long lines.
8461 for ac_last_try in false false :; do
8462 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8463 if test -z "$ac_tt"; then
8465 elif $ac_last_try; then
8466 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8468 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8472 # For the awk script, D is an array of macro values keyed by name,
8473 # likewise P contains macro parameters if any. Preserve backslash
8474 # newline sequences.
8476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8478 s/.\{148\}/&'"$ac_delim"'/g
8481 s/^[ ]*#[ ]*define[ ][ ]*/ /
8488 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8490 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8495 D["\
1"]=" \
3\\\\\\n
"\\/p
8497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8502 s/.\{148\}/&'"$ac_delim"'/g
8507 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8510 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8512 ' <confdefs.h | sed '
8513 s/'"$ac_delim"'/"\\\
8514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8517 for (key in D) D_is_set[key] = 1
8520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8522 split(line, arg, " ")
8523 if (arg[1] == "#") {
8527 defundef
= substr
(arg
[1], 2)
8530 split(mac1
, mac2
, "(") #)
8532 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8533 if (D_is_set
[macro
]) {
8534 # Preserve the white space surrounding the "#".
8535 print prefix
"define", macro P
[macro
] D
[macro
]
8538 # Replace #undef with comments. This is necessary, for example,
8539 # in the case of _POSIX_SOURCE, which is predefined and required
8540 # on some systems where configure will not decide to define it.
8541 if (defundef
== "undef") {
8542 print
"/*", prefix defundef
, macro
, "*/"
8550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8551 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8552 fi # test -n "$CONFIG_HEADERS"
8555 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8560 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8562 case $ac_mode$ac_tag in
8564 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8565 :[FH
]-) ac_tag
=-:-;;
8566 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8583 -) ac_f
="$ac_tmp/stdin";;
8584 *) # Look for the file first in the build tree, then in the source tree
8585 # (if the path is not absolute). The absolute path cannot be DOS-style,
8586 # because $ac_f cannot contain `:'.
8590 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8592 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8594 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8595 as_fn_append ac_file_inputs
" '$ac_f'"
8598 # Let's still pretend it is `configure' which instantiates (i.e., don't
8599 # use $as_me), people would be surprised to read:
8600 # /* config.h. Generated by config.status. */
8601 configure_input
='Generated from '`
8602 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8604 if test x
"$ac_file" != x-
; then
8605 configure_input
="$ac_file. $configure_input"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8607 $as_echo "$as_me: creating $ac_file" >&6;}
8609 # Neutralize special characters interpreted by sed in replacement strings.
8610 case $configure_input in #(
8611 *\
&* |
*\|
* |
*\\* )
8612 ac_sed_conf_input
=`$as_echo "$configure_input" |
8613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8614 *) ac_sed_conf_input
=$configure_input;;
8618 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8619 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8624 ac_dir
=`$as_dirname -- "$ac_file" ||
8625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8626 X"$ac_file" : 'X\(//\)[^/]' \| \
8627 X"$ac_file" : 'X\(//\)$' \| \
8628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8629 $as_echo X"$ac_file" |
8630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8647 as_dir
="$ac_dir"; as_fn_mkdir_p
8651 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8653 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8654 # A ".." for each directory in $ac_dir_suffix.
8655 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8656 case $ac_top_builddir_sub in
8657 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8658 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8661 ac_abs_top_builddir
=$ac_pwd
8662 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8663 # for backward compatibility:
8664 ac_top_builddir
=$ac_top_build_prefix
8667 .
) # We are building in place.
8669 ac_top_srcdir
=$ac_top_builddir_sub
8670 ac_abs_top_srcdir
=$ac_pwd ;;
8671 [\\/]* | ?
:[\\/]* ) # Absolute name.
8672 ac_srcdir
=$srcdir$ac_dir_suffix;
8673 ac_top_srcdir
=$srcdir
8674 ac_abs_top_srcdir
=$srcdir ;;
8676 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8677 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8678 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8680 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8690 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8691 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8695 [\\/$
]* | ?
:[\\/]* ) ;;
8696 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8701 # Neutralize VPATH when `$srcdir' = `.'.
8702 # Shell code in configure.ac might set extrasub.
8703 # FIXME: do we really want to maintain this feature?
8704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8705 ac_sed_extra="$ac_vpsub
8708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8710 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8711 s|@configure_input@|
$ac_sed_conf_input|
;t t
8712 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8713 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8714 s
&@srcdir@
&$ac_srcdir&;t t
8715 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8716 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8717 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8718 s
&@builddir@
&$ac_builddir&;t t
8719 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8720 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8721 s
&@INSTALL@
&$ac_INSTALL&;t t
8722 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8724 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8725 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8728 rm -f "$ac_tmp/stdin
"
8730 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8731 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8733 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8739 if test x"$ac_file" != x-; then
8741 $as_echo "/* $configure_input */" \
8742 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8743 } >"$ac_tmp/config.h
" \
8744 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8745 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8747 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8750 mv "$ac_tmp/config.h
" "$ac_file" \
8751 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8754 $as_echo "/* $configure_input */" \
8755 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8756 || as_fn_error $? "could not create
-" "$LINENO" 5
8758 # Compute "$ac_file"'s index in $config_headers.
8761 for _am_header in $config_headers :; do
8763 $_am_arg | $_am_arg:* )
8766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8769 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8771 X"$_am_arg" : 'X\(//\)[^/]' \| \
8772 X"$_am_arg" : 'X\(//\)$' \| \
8773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8774 $as_echo X"$_am_arg" |
8775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8791 s/.*/./; q'`/stamp-h$_am_stamp_count
8794 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8795 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8800 case $ac_file$ac_mode in
8801 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8802 # Older Autoconf quotes --file arguments for eval, but not when files
8803 # are listed without --file. Let's play safe and only enable the eval
8804 # if we detect the quoting.
8805 case $CONFIG_FILES in
8806 *\'*) eval set x "$CONFIG_FILES" ;;
8807 *) set x $CONFIG_FILES ;;
8812 # Strip MF so we end up with the name of the file.
8813 mf=`echo "$mf" | sed -e 's/:.*$//'`
8814 # Check whether this is an Automake generated Makefile or not.
8815 # We used to match only the files named 'Makefile.in', but
8816 # some people rename them; so instead we look at the file content.
8817 # Grep'ing the first line is not enough: some people post-process
8818 # each Makefile.in and add a new line on top of each file to say so.
8819 # Grep'ing the whole file is not good either: AIX grep has a line
8820 # limit of 2048, but all sed's we know have understand at least 4000.
8821 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8822 dirpart=`$as_dirname -- "$mf" ||
8823 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8824 X"$mf" : 'X\(//\)[^/]' \| \
8825 X"$mf" : 'X\(//\)$' \| \
8826 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8848 # Extract the definition of DEPDIR, am__include, and am__quote
8849 # from the Makefile without running 'make'.
8850 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8851 test -z "$DEPDIR" && continue
8852 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8853 test -z "$am__include" && continue
8854 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8855 # Find all dependency output files, they are included files with
8856 # $(DEPDIR) in their names. We invoke sed twice because it is the
8857 # simplest approach to changing $(DEPDIR) to its actual value in the
8859 for file in `sed -n "
8860 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
8861 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8862 # Make sure the directory exists.
8863 test -f "$dirpart/$file" && continue
8864 fdir=`$as_dirname -- "$file" ||
8865 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8866 X"$file" : 'X\(//\)[^/]' \| \
8867 X"$file" : 'X\(//\)$' \| \
8868 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8887 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8888 # echo "creating
$dirpart/$file"
8889 echo '# dummy' > "$dirpart/$file"
8901 ac_clean_files=$ac_clean_files_save
8903 test $ac_write_fail = 0 ||
8904 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8907 # configure is writing to config.log, and then calls config.status.
8908 # config.status does its own redirection, appending to config.log.
8909 # Unfortunately, on DOS this fails, as config.log is still kept open
8910 # by configure, so config.status won't be able to write to it; its
8911 # output is simply discarded. So we exec the FD to /dev/null,
8912 # effectively closing config.log, so it can be properly (re)opened and
8913 # appended to by config.status. When coming back to configure, we
8914 # need to make the FD available again.
8915 if test "$no_create" != yes; then
8917 ac_config_status_args=
8918 test "$silent" = yes &&
8919 ac_config_status_args="$ac_config_status_args --quiet"
8921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8924 # would make configure fail if this is the last instruction.
8925 $ac_cs_success || as_fn_exit 1
8927 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
8929 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
8934 if test "$enable_dhcpv4o6" = "yes"; then
8935 DHCP_VERSIONS="DHCPv4
, DHCPv6 and DHCPv4-over-DHCPv6
"
8936 elif test "$enable_dhcpv6" != "no
"; then
8937 DHCP_VERSIONS="DHCPv4 and DHCPv6
"
8939 DHCP_VERSIONS="DHCPv4
"
8942 cat > config.report << END
8944 ISC DHCP source configure results:
8945 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8949 Version: $PACKAGE_VERSION
8957 DHCP versions: $DHCP_VERSIONS
8960 debug: $enable_debug
8961 failover: $enable_failover
8962 execute: $enable_execute
8963 binary-leases: $enable_binary_leases
8964 dhcpv6: $enable_dhcpv6
8965 delayed-ack: $enable_delayed_ack
8968 ATF unittests : $atf_path
8971 # TODO: Add Perl system tests
8973 if test "$atf_path" != "no
"
8975 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
8976 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
8977 echo "ATF_BIN
: $ATF_BIN" >> config.report
8984 echo Now you can type "make" to build ISC DHCP