]> git.ipfire.org Git - thirdparty/dhcp.git/blame - configure
Added option definition
[thirdparty/dhcp.git] / configure
CommitLineData
fe5b0fdd
DH
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
109fa1d0 3# Generated by GNU Autoconf 2.69 for DHCP 4.4.2.
fe5b0fdd
DH
4#
5# Report bugs to <dhcp-users@isc.org>.
6#
a24b9f23
MA
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
fe5b0fdd
DH
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
a24b9f23
MA
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
8c816ebb 16
4d24561a
JR
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
a24b9f23 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fe5b0fdd
DH
20 emulate sh
21 NULLCMD=:
a24b9f23 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fe5b0fdd
DH
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
4d24561a
JR
25 setopt NO_GLOB_SUBST
26else
a24b9f23
MA
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
4d24561a 32esac
4d24561a
JR
33fi
34
35
a24b9f23
MA
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
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'
2d5fba9b 56 else
a24b9f23
MA
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
2d5fba9b 69 fi
a24b9f23
MA
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
fe5b0fdd 72fi
fe5b0fdd 73
a24b9f23
MA
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
fe5b0fdd
DH
81fi
82
83
4d24561a
JR
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
4d24561a
JR
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
a24b9f23
MA
92as_myself=
93case $0 in #((
4d24561a
JR
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
a24b9f23
MA
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
4d24561a
JR
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
a24b9f23
MA
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
4d24561a
JR
114fi
115
a24b9f23
MA
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4d24561a 123done
fe5b0fdd
DH
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
a24b9f23
MA
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2d5fba9b 213do
a24b9f23
MA
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
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
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
261
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."
2d5fba9b 268 else
a24b9f23
MA
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
273$0: have one."
4a70cb10 274 fi
a24b9f23
MA
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
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.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
fe5b0fdd 421
4d24561a
JR
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fe5b0fdd
DH
424 as_expr=expr
425else
426 as_expr=false
427fi
428
4d24561a 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fe5b0fdd
DH
430 as_basename=basename
431else
432 as_basename=false
433fi
434
a24b9f23
MA
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
fe5b0fdd 440
4d24561a 441as_me=`$as_basename -- "$0" ||
fe5b0fdd
DH
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
4d24561a 444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a24b9f23 445$as_echo X/"$0" |
4d24561a
JR
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
7f45c65c 459
a24b9f23
MA
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
7f45c65c 466
ded99fc7 467
a24b9f23
MA
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ded99fc7 490
a24b9f23
MA
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
4d24561a 501}
ded99fc7 502
a24b9f23
MA
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
529be52a 515
a24b9f23
MA
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
4a70cb10 519else
a24b9f23
MA
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
4d24561a 537else
a24b9f23 538 as_ln_s='cp -pR'
4d24561a 539fi
a24b9f23
MA
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
4d24561a 542
a24b9f23
MA
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
529be52a 545else
a24b9f23
MA
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
529be52a 548fi
4d24561a 549
a24b9f23
MA
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
fe5b0fdd 552
a24b9f23
MA
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529be52a 555
a24b9f23
MA
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529be52a 558
529be52a 559
a24b9f23
MA
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
529be52a 562
a24b9f23
MA
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
529be52a
SR
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
529be52a
SR
579
580# Identity of this package.
581PACKAGE_NAME='DHCP'
fe5b0fdd 582PACKAGE_TARNAME='dhcp'
109fa1d0
TM
583PACKAGE_VERSION='4.4.2'
584PACKAGE_STRING='DHCP 4.4.2'
fe5b0fdd 585PACKAGE_BUGREPORT='dhcp-users@isc.org'
a24b9f23 586PACKAGE_URL=''
fe5b0fdd
DH
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
4d24561a 591#ifdef HAVE_SYS_TYPES_H
fe5b0fdd
DH
592# include <sys/types.h>
593#endif
4d24561a 594#ifdef HAVE_SYS_STAT_H
fe5b0fdd
DH
595# include <sys/stat.h>
596#endif
4d24561a 597#ifdef STDC_HEADERS
fe5b0fdd
DH
598# include <stdlib.h>
599# include <stddef.h>
600#else
4d24561a 601# ifdef HAVE_STDLIB_H
fe5b0fdd
DH
602# include <stdlib.h>
603# endif
604#endif
4d24561a
JR
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
fe5b0fdd
DH
607# include <memory.h>
608# endif
609# include <string.h>
610#endif
4d24561a 611#ifdef HAVE_STRINGS_H
fe5b0fdd
DH
612# include <strings.h>
613#endif
4d24561a 614#ifdef HAVE_INTTYPES_H
fe5b0fdd 615# include <inttypes.h>
fe5b0fdd 616#endif
4d24561a
JR
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
fe5b0fdd
DH
621# include <unistd.h>
622#endif"
623
a24b9f23
MA
624ac_subst_vars='am__EXEEXT_FALSE
625am__EXEEXT_TRUE
626LTLIBOBJS
529be52a 627LIBOBJS
a24b9f23 628LDAP_CFLAGS
743d6937 629LDAP_LIBS
f9741514
FD
630INSTALL_BIND_FALSE
631INSTALL_BIND_TRUE
bf6f8fce
FD
632Q
633DISTCHECK_LIBTOOL_CONFIGURE_FLAG
13e5cc6c
FD
634BINDLT
635A
d113bc2c 636DHLIBS
68315782
FD
637HAVE_BINDDIR_FALSE
638HAVE_BINDDIR_TRUE
639DISTCHECK_LIBBIND_CONFIGURE_FLAG
e94e7f23
FD
640BINDLIBISCDIR
641BINDLIBISCCFGDIR
642BINDLIBDNSDIR
643BINDLIBIRSDIR
5a428b2e 644BINDSRCDIR
0fb9c8a1 645BINDDIR
e94e7f23 646BINDSUBDIR
c87db1b1 647BINDIOMUX
a24b9f23 648ac_prefix_program
f2d20b9e 649DISTCHECK_ATF_CONFIGURE_FLAG
a24b9f23
MA
650HAVE_ATF_FALSE
651HAVE_ATF_TRUE
6b87c7f2 652UNITTESTS
9a111ee8 653ATF_BIN
a24b9f23
MA
654ATF_LDFLAGS
655ATF_CFLAGS
4adcee93 656pkgcfg_found
bfbe0fd6
TM
657BIND_ATF_FALSE
658BIND_ATF_TRUE
a24b9f23 659byte_order
e619bd67 660AR
a24b9f23
MA
661RANLIB
662EGREP
663GREP
664CPP
6913a589 665BINDCONFIG
a24b9f23
MA
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
a24b9f23
MA
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
690MAINT
691MAINTAINER_MODE_FALSE
692MAINTAINER_MODE_TRUE
69e9da00
TM
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
a24b9f23
MA
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
0cd94b5e
TM
757SHELL
758am__quote'
a24b9f23
MA
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
69e9da00 762enable_silent_rules
a24b9f23
MA
763enable_maintainer_mode
764enable_dependency_tracking
765enable_debug
766enable_failover
767enable_execute
768enable_tracing
769enable_delayed_ack
770enable_dhcpv6
785c1a51 771enable_dhcpv4o6
563f0b8a 772enable_relay_port
a24b9f23
MA
773enable_paranoia
774enable_early_chroot
775enable_ipv4_pktinfo
776enable_use_sockets
00e9af8e 777enable_log_pid
3933e2aa 778enable_binary_leases
a24b9f23 779with_atf
c8f0b32a 780with_srv_conf_file
a24b9f23
MA
781with_srv_lease_file
782with_srv6_lease_file
783with_cli_lease_file
784with_cli6_lease_file
785with_srv_pid_file
786with_srv6_pid_file
787with_cli_pid_file
788with_cli6_pid_file
789with_relay_pid_file
790with_relay6_pid_file
a6ed1aa8 791with_randomdev
c87db1b1
FD
792enable_kqueue
793enable_epoll
794enable_devpoll
795with_bind_extra_config
a24b9f23 796with_libbind
13e5cc6c 797enable_libtool
f9741514 798enable_bind_install
a24b9f23
MA
799with_ldap
800with_ldapcrypto
743d6937
TM
801with_ldap_gssapi
802with_ldapcasa
a24b9f23
MA
803'
804 ac_precious_vars='build_alias
805host_alias
806target_alias
807CC
808CFLAGS
809LDFLAGS
810LIBS
811CPPFLAGS
812CPP'
813
814
815# Initialize some variables set by options.
816ac_init_help=
817ac_init_version=false
818ac_unrecognized_opts=
819ac_unrecognized_sep=
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
fe5b0fdd
DH
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
4d24561a 842# (The list follows the same order as the GNU Coding Standards.)
fe5b0fdd
DH
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
4d24561a
JR
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
fe5b0fdd
DH
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
4d24561a
JR
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
fe5b0fdd
DH
862
863ac_prev=
4d24561a 864ac_dashdash=
fe5b0fdd
DH
865for ac_option
866do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
4d24561a 869 eval $ac_prev=\$ac_option
fe5b0fdd
DH
870 ac_prev=
871 continue
872 fi
873
4d24561a 874 case $ac_option in
a24b9f23
MA
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
4d24561a 878 esac
fe5b0fdd
DH
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
4d24561a
JR
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
fe5b0fdd
DH
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
4d24561a 906 -datadir | --datadir | --datadi | --datad)
fe5b0fdd 907 ac_prev=datadir ;;
4d24561a 908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
fe5b0fdd
DH
909 datadir=$ac_optarg ;;
910
4d24561a
JR
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
fe5b0fdd 918 -disable-* | --disable-*)
a24b9f23 919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
fe5b0fdd 920 # Reject names that are not valid shell variable names.
a24b9f23
MA
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
4d24561a
JR
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
fe5b0fdd
DH
943
944 -enable-* | --enable-*)
a24b9f23 945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
fe5b0fdd 946 # Reject names that are not valid shell variable names.
a24b9f23
MA
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953"enable_$ac_useropt"
954"*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
fe5b0fdd
DH
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
4d24561a
JR
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
fe5b0fdd
DH
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
4d24561a
JR
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
fe5b0fdd 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
4d24561a 1021 | --localstate | --localstat | --localsta | --localst | --locals)
fe5b0fdd
DH
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4d24561a 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
fe5b0fdd
DH
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
4d24561a
JR
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
fe5b0fdd
DH
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
a24b9f23 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
fe5b0fdd 1150 # Reject names that are not valid shell variable names.
a24b9f23
MA
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157"with_$ac_useropt"
1158"*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
fe5b0fdd
DH
1163
1164 -without-* | --without-*)
a24b9f23 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
fe5b0fdd 1166 # Reject names that are not valid shell variable names.
a24b9f23
MA
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
fe5b0fdd
DH
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
a24b9f23
MA
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information"
fe5b0fdd
DH
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
a24b9f23
MA
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
4d24561a 1209 eval $ac_envvar=\$ac_optarg
fe5b0fdd
DH
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
a24b9f23 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
fe5b0fdd 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
a24b9f23
MA
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
fe5b0fdd
DH
1218 ;;
1219
1220 esac
1221done
1222
1223if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
a24b9f23 1225 as_fn_error $? "missing argument to $ac_option"
fe5b0fdd
DH
1226fi
1227
a24b9f23
MA
1228if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234fi
1235
1236# Check all directory arguments for consistency.
4d24561a
JR
1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
c02625dc 1240 libdir localedir mandir
7d714d6b 1241do
4d24561a 1242 eval ac_val=\$$ac_var
a24b9f23
MA
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
7d714d6b 1250 case $ac_val in
4d24561a
JR
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
fe5b0fdd 1253 esac
a24b9f23 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
fe5b0fdd
DH
1255done
1256
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
fe5b0fdd
DH
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271fi
1272
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
1277
1278
4d24561a
JR
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
a24b9f23 1282 as_fn_error $? "working directory cannot be determined"
4d24561a 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
a24b9f23 1284 as_fn_error $? "pwd does not report name of working directory"
4d24561a
JR
1285
1286
fe5b0fdd
DH
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
4d24561a 1290 # Try the directory containing this script, then the parent directory.
a24b9f23
MA
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
4d24561a
JR
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
fe5b0fdd 1314 srcdir=$ac_confdir
4d24561a 1315 if test ! -r "$srcdir/$ac_unique_file"; then
fe5b0fdd
DH
1316 srcdir=..
1317 fi
1318else
1319 ac_srcdir_defaulted=no
1320fi
4d24561a
JR
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
a24b9f23 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
8d7ba39e 1324fi
4d24561a
JR
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
a24b9f23 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
4d24561a
JR
1328 pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
fe5b0fdd
DH
1345
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
109fa1d0 1353\`configure' configures DHCP 4.4.2 to adapt to many kinds of systems.
fe5b0fdd
DH
1354
1355Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360Defaults for the options are specified in brackets.
1361
1362Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
a24b9f23 1367 -q, --quiet, --silent do not print \`checking ...' messages
fe5b0fdd
DH
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
a24b9f23 1375 [$ac_default_prefix]
fe5b0fdd 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a24b9f23 1377 [PREFIX]
fe5b0fdd
DH
1378
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
1383
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
a24b9f23
MA
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
fe5b0fdd
DH
1406_ACEOF
1407
1408 cat <<\_ACEOF
1409
1410Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
a24b9f23
MA
1414
1415System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
fe5b0fdd
DH
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422 case $ac_init_help in
109fa1d0 1423 short | recursive ) echo "Configuration of DHCP 4.4.2:";;
fe5b0fdd
DH
1424 esac
1425 cat <<\_ACEOF
1426
1427Optional Features:
a24b9f23 1428 --disable-option-checking ignore unrecognized --enable/--with options
fe5b0fdd
DH
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
69e9da00
TM
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
a24b9f23
MA
1433 --enable-maintainer-mode
1434 enable make rules and dependencies not useful (and
1435 sometimes confusing) to the casual installer
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
0552f26e
DH
1440 --enable-debug create a debug-only version of the software (default
1441 is no).
1442 --enable-failover enable support for failover (default is yes)
1443 --enable-execute enable support for execute() in config (default is
1444 yes)
1445 --enable-tracing enable support for server activity tracing (default
1446 is yes)
4406f9b0 1447 --enable-delayed-ack queues multiple DHCPACK replies (default is yes)
cadea5ff 1448 --enable-dhcpv6 enable support for DHCPv6 (default is yes)
785c1a51
FD
1449 --enable-dhcpv4o6 enable support for DHCPv4-over-DHCPv6 (default is
1450 no)
563f0b8a 1451 --enable-relay-port enable support for relay port (default is no)
3004d0a3 1452 --enable-paranoia enable support for chroot/setuid (default is no)
26ef247f 1453 --enable-early-chroot enable chrooting prior to configuration (default is
3004d0a3 1454 no)
f8cc78ba
SR
1455 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is
1456 no)
1457 --enable-use-sockets use the standard BSD socket API (default is no)
00e9af8e 1458 --enable-log-pid Include PIDs in syslog messages (default is no).
3933e2aa
SR
1459 --enable-binary-leases enable support for binary insertion of leases
1460 (default is no)
c87db1b1
FD
1461 --enable-kqueue use BSD kqueue (default is no)
1462 --enable-epoll use Linux epoll (default is no)
1463 --enable-devpoll use /dev/poll (default is no)
13e5cc6c 1464 --enable-libtool use GNU libtool for dynamic shared libraries
6d91a86b 1465 (default is no).
f9741514 1466 --enable-bind-install install bind includes and libraries (default is no).
fe5b0fdd
DH
1467
1468Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
4adcee93 1471 --with-atf=PATH specify location where atf was installed
c8f0b32a
MS
1472 --with-srv-conf-file=PATH
1473 Default file containing dhcpd configuration (default
1474 is typically /etc/dhcpd.conf)
fe5b0fdd
DH
1475 --with-srv-lease-file=PATH
1476 File for dhcpd leases (default is
1477 LOCALSTATEDIR/db/dhcpd.leases)
8dea7ba7
FD
1478 --with-srv6-lease-file=PATH
1479 File for dhcpd6 leases (default is
1480 LOCALSTATEDIR/db/dhcpd6.leases)
fe5b0fdd
DH
1481 --with-cli-lease-file=PATH
1482 File for dhclient leases (default is
1483 LOCALSTATEDIR/db/dhclient.leases)
8dea7ba7
FD
1484 --with-cli6-lease-file=PATH
1485 File for dhclient6 leases (default is
1486 LOCALSTATEDIR/db/dhclient6.leases)
fe5b0fdd
DH
1487 --with-srv-pid-file=PATH
1488 File for dhcpd process information (default is
1489 LOCALSTATEDIR/run/dhcpd.pid)
8dea7ba7
FD
1490 --with-srv6-pid-file=PATH
1491 File for dhcpd6 process information (default is
1492 LOCALSTATEDIR/run/dhcpd6.pid)
fe5b0fdd
DH
1493 --with-cli-pid-file=PATH
1494 File for dhclient process information (default is
1495 LOCALSTATEDIR/run/dhclient.pid)
8dea7ba7
FD
1496 --with-cli6-pid-file=PATH
1497 File for dhclient6 process information (default is
1498 LOCALSTATEDIR/run/dhclient6.pid)
fe5b0fdd
DH
1499 --with-relay-pid-file=PATH
1500 File for dhcrelay process information (default is
1501 LOCALSTATEDIR/run/dhcrelay.pid)
5ce8d6e7
SR
1502 --with-relay6-pid-file=PATH
1503 File for dhcrelay6 process information (default is
1504 LOCALSTATEDIR/run/dhcrelay6.pid)
a6ed1aa8 1505 --with-randomdev=PATH Path for random device (default is /dev/random)
c87db1b1
FD
1506 --with-bind-extra-config
1507 configure bind librairies with some extra options
1508 (default is none)
1509 --with-libbind=PATH bind includes and libraries are in PATH
2d5fba9b
DH
1510 --with-ldap enable OpenLDAP support in dhcpd (default is no)
1511 --with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is
1512 no)
743d6937
TM
1513 --with-ldap-gssapi enable krb5/gssapi authentication for OpenLDAP in
1514 dhcpd (default is no)
1515 --with-ldapcasa enable LDAP CASA auth support in dhcpd (default is
1516 no)
fe5b0fdd
DH
1517
1518Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
4d24561a 1523 LIBS libraries to pass to the linker, e.g. -l<library>
a24b9f23 1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
4d24561a 1525 you have headers in a nonstandard directory <include dir>
fe5b0fdd
DH
1526 CPP C preprocessor
1527
1528Use these variables to override the choices made by `configure' or to help
1529it to find libraries and programs with nonstandard names/locations.
1530
1531Report bugs to <dhcp-users@isc.org>.
1532_ACEOF
4d24561a 1533ac_status=$?
fe5b0fdd
DH
1534fi
1535
1536if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a24b9f23
MA
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 continue
fe5b0fdd
DH
1542 ac_builddir=.
1543
4d24561a
JR
1544case "$ac_dir" in
1545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546*)
a24b9f23 1547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4d24561a 1548 # A ".." for each directory in $ac_dir_suffix.
a24b9f23 1549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4d24561a
JR
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554esac
1555ac_abs_top_builddir=$ac_pwd
1556ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557# for backward compatibility:
1558ac_top_builddir=$ac_top_build_prefix
fe5b0fdd
DH
1559
1560case $srcdir in
4d24561a 1561 .) # We are building in place.
fe5b0fdd 1562 ac_srcdir=.
4d24561a
JR
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
fe5b0fdd 1566 ac_srcdir=$srcdir$ac_dir_suffix;
4d24561a
JR
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7d714d6b 1573esac
4d24561a
JR
1574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
fe5b0fdd 1584 else
a24b9f23 1585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
4d24561a
JR
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
fe5b0fdd
DH
1588 done
1589fi
1590
4d24561a 1591test -n "$ac_init_help" && exit $ac_status
fe5b0fdd
DH
1592if $ac_init_version; then
1593 cat <<\_ACEOF
109fa1d0 1594DHCP configure 4.4.2
a24b9f23 1595generated by GNU Autoconf 2.69
fe5b0fdd 1596
a24b9f23 1597Copyright (C) 2012 Free Software Foundation, Inc.
fe5b0fdd
DH
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
4d24561a 1601 exit
fe5b0fdd 1602fi
fe5b0fdd 1603
a24b9f23
MA
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
4a70cb10 1607
a24b9f23
MA
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635else
1636 $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
4a70cb10 1638
a24b9f23
MA
1639 ac_retval=1
1640fi
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_compile
1645
1646# ac_fn_c_try_cpp LINENO
1647# ----------------------
1648# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_cpp ()
fe5b0fdd 1650{
a24b9f23
MA
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 }; then :
1671 ac_retval=0
1672else
1673 $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
fe5b0fdd 1675
a24b9f23
MA
1676 ac_retval=1
1677fi
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
fe5b0fdd 1680
a24b9f23 1681} # ac_fn_c_try_cpp
fe5b0fdd 1682
a24b9f23
MA
1683# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1686# the include files in INCLUDES and setting the cache variable VAR
1687# accordingly.
1688ac_fn_c_check_header_mongrel ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if eval \${$3+:} false; then :
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696fi
1697eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699$as_echo "$ac_res" >&6; }
1700else
1701 # Is the header compilable?
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1703$as_echo_n "checking $2 usability... " >&6; }
1704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h. */
1706$4
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_compile "$LINENO"; then :
1710 ac_header_compiler=yes
1711else
1712 ac_header_compiler=no
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1716$as_echo "$ac_header_compiler" >&6; }
fe5b0fdd 1717
a24b9f23
MA
1718# Is the header present?
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1720$as_echo_n "checking $2 presence... " >&6; }
1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_cpp "$LINENO"; then :
1726 ac_header_preproc=yes
1727else
1728 ac_header_preproc=no
1729fi
1730rm -f conftest.err conftest.i conftest.$ac_ext
1731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1732$as_echo "$ac_header_preproc" >&6; }
fe5b0fdd 1733
a24b9f23
MA
1734# So? What about this header?
1735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736 yes:no: )
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1738$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 ;;
1742 no:yes:* )
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1744$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1746$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1748$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1750$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753( $as_echo "## --------------------------------- ##
1754## Report this to dhcp-users@isc.org ##
1755## --------------------------------- ##"
1756 ) | sed "s/^/$as_me: WARNING: /" >&2
1757 ;;
1758esac
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763else
1764 eval "$3=\$ac_header_compiler"
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fe5b0fdd 1771
a24b9f23 1772} # ac_fn_c_check_header_mongrel
fe5b0fdd 1773
a24b9f23
MA
1774# ac_fn_c_try_run LINENO
1775# ----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777# that executables *can* be run.
1778ac_fn_c_try_run ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
fe5b0fdd 1807
a24b9f23
MA
1808 ac_retval=$ac_status
1809fi
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
fe5b0fdd 1813
a24b9f23 1814} # ac_fn_c_try_run
fe5b0fdd 1815
a24b9f23
MA
1816# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817# -------------------------------------------------------
1818# Tests whether HEADER exists and can be compiled using the include files in
1819# INCLUDES, setting the cache variable VAR accordingly.
1820ac_fn_c_check_header_compile ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$4
1831#include <$2>
fe5b0fdd 1832_ACEOF
a24b9f23
MA
1833if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835else
1836 eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839fi
1840eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fe5b0fdd 1844
a24b9f23 1845} # ac_fn_c_check_header_compile
fe5b0fdd 1846
a24b9f23
MA
1847# ac_fn_c_find_intX_t LINENO BITS VAR
1848# -----------------------------------
1849# Finds a signed integer type with width BITS, setting cache variable VAR
1850# accordingly.
1851ac_fn_c_find_intX_t ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1855$as_echo_n "checking for int$2_t... " >&6; }
1856if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858else
1859 eval "$3=no"
1860 # Order is important - never check a type that is potentially smaller
1861 # than half of the expected target width.
1862 for ac_type in int$2_t 'int' 'long int' \
1863 'long long int' 'short int' 'signed char'; do
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h. */
1866$ac_includes_default
1867 enum { N = $2 / 2 - 1 };
1868int
1869main ()
1870{
1871static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1872test_array [0] = 0;
1873return test_array [0];
fe5b0fdd 1874
a24b9f23
MA
1875 ;
1876 return 0;
1877}
4a70cb10 1878_ACEOF
a24b9f23
MA
1879if ac_fn_c_try_compile "$LINENO"; then :
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882$ac_includes_default
1883 enum { N = $2 / 2 - 1 };
1884int
1885main ()
1886{
1887static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1888 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1889test_array [0] = 0;
1890return test_array [0];
fe5b0fdd 1891
a24b9f23
MA
1892 ;
1893 return 0;
1894}
529be52a 1895_ACEOF
a24b9f23 1896if ac_fn_c_try_compile "$LINENO"; then :
fe5b0fdd 1897
a24b9f23
MA
1898else
1899 case $ac_type in #(
1900 int$2_t) :
1901 eval "$3=yes" ;; #(
1902 *) :
1903 eval "$3=\$ac_type" ;;
1904esac
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 if eval test \"x\$"$3"\" = x"no"; then :
fe5b0fdd 1910
a24b9f23
MA
1911else
1912 break
1913fi
1914 done
1915fi
1916eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fe5b0fdd 1920
a24b9f23 1921} # ac_fn_c_find_intX_t
fe5b0fdd 1922
a24b9f23
MA
1923# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924# -------------------------------------------
1925# Tests whether TYPE exists after having included INCLUDES, setting cache
1926# variable VAR accordingly.
1927ac_fn_c_check_type ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1934else
1935 eval "$3=no"
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h. */
1938$4
1939int
1940main ()
1941{
1942if (sizeof ($2))
1943 return 0;
1944 ;
1945 return 0;
1946}
4a70cb10 1947_ACEOF
a24b9f23
MA
1948if ac_fn_c_try_compile "$LINENO"; then :
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951$4
1952int
1953main ()
1954{
1955if (sizeof (($2)))
1956 return 0;
1957 ;
1958 return 0;
1959}
4a70cb10 1960_ACEOF
a24b9f23 1961if ac_fn_c_try_compile "$LINENO"; then :
529be52a 1962
4a70cb10 1963else
a24b9f23 1964 eval "$3=yes"
4a70cb10 1965fi
a24b9f23 1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4a70cb10 1967fi
a24b9f23 1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4a70cb10 1969fi
a24b9f23
MA
1970eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fe5b0fdd 1974
a24b9f23 1975} # ac_fn_c_check_type
fe5b0fdd 1976
a24b9f23
MA
1977# ac_fn_c_find_uintX_t LINENO BITS VAR
1978# ------------------------------------
1979# Finds an unsigned integer type with width BITS, setting cache variable VAR
1980# accordingly.
1981ac_fn_c_find_uintX_t ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1985$as_echo_n "checking for uint$2_t... " >&6; }
1986if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988else
1989 eval "$3=no"
1990 # Order is important - never check a type that is potentially smaller
1991 # than half of the expected target width.
1992 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1993 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996$ac_includes_default
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2001test_array [0] = 0;
2002return test_array [0];
fe5b0fdd 2003
a24b9f23
MA
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009 case $ac_type in #(
2010 uint$2_t) :
2011 eval "$3=yes" ;; #(
2012 *) :
2013 eval "$3=\$ac_type" ;;
2014esac
2015fi
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 if eval test \"x\$"$3"\" = x"no"; then :
fe5b0fdd 2018
a24b9f23
MA
2019else
2020 break
2021fi
2022 done
2023fi
2024eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fe5b0fdd 2028
a24b9f23 2029} # ac_fn_c_find_uintX_t
fe5b0fdd 2030
a24b9f23
MA
2031# ac_fn_c_try_link LINENO
2032# -----------------------
2033# Try to link conftest.$ac_ext, and return whether this succeeded.
2034ac_fn_c_try_link ()
2035{
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext conftest$ac_exeext
2038 if { { ac_try="$ac_link"
2039case "(($ac_try" in
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2042esac
2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044$as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_link") 2>conftest.err
2046 ac_status=$?
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2051 fi
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_c_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest$ac_exeext && {
2057 test "$cross_compiling" = yes ||
2058 test -x conftest$ac_exeext
2059 }; then :
2060 ac_retval=0
2061else
2062 $as_echo "$as_me: failed program was:" >&5
2063sed 's/^/| /' conftest.$ac_ext >&5
fe5b0fdd 2064
a24b9f23
MA
2065 ac_retval=1
2066fi
2067 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2068 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2069 # interfere with the next link command; also delete a directory that is
2070 # left behind by Apple's compiler. We do this before executing the actions.
2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
fe5b0fdd 2074
a24b9f23 2075} # ac_fn_c_try_link
fe5b0fdd 2076
dc9d7b08
MA
2077# ac_fn_c_check_func LINENO FUNC VAR
2078# ----------------------------------
2079# Tests whether FUNC exists, setting the cache variable VAR accordingly
2080ac_fn_c_check_func ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084$as_echo_n "checking for $2... " >&6; }
2085if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h. */
2090/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2092#define $2 innocuous_$2
2093
2094/* System header to define __stub macros and hopefully few prototypes,
2095 which can conflict with char $2 (); below.
2096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097 <limits.h> exists even on freestanding compilers. */
2098
2099#ifdef __STDC__
2100# include <limits.h>
2101#else
2102# include <assert.h>
2103#endif
2104
2105#undef $2
2106
2107/* Override any GCC internal prototype to avoid an error.
2108 Use char because int might match the return type of a GCC
2109 builtin and then its argument prototype would still apply. */
2110#ifdef __cplusplus
2111extern "C"
2112#endif
2113char $2 ();
2114/* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117#if defined __stub_$2 || defined __stub___$2
2118choke me
2119#endif
2120
2121int
2122main ()
2123{
2124return $2 ();
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_link "$LINENO"; then :
2130 eval "$3=yes"
2131else
2132 eval "$3=no"
2133fi
2134rm -f core conftest.err conftest.$ac_objext \
2135 conftest$ac_exeext conftest.$ac_ext
2136fi
2137eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142} # ac_fn_c_check_func
2143
a24b9f23
MA
2144# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2145# ----------------------------------------------------
2146# Tries to find if the field MEMBER exists in type AGGR, after including
2147# INCLUDES, setting cache variable VAR accordingly.
2148ac_fn_c_check_member ()
2149{
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2152$as_echo_n "checking for $2.$3... " >&6; }
2153if eval \${$4+:} false; then :
2154 $as_echo_n "(cached) " >&6
2155else
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h. */
2158$5
2159int
2160main ()
2161{
2162static $2 ac_aggr;
2163if (ac_aggr.$3)
2164return 0;
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170 eval "$4=yes"
2171else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$5
2175int
2176main ()
2177{
2178static $2 ac_aggr;
2179if (sizeof ac_aggr.$3)
2180return 0;
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186 eval "$4=yes"
2187else
2188 eval "$4=no"
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193fi
2194eval ac_res=\$$4
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196$as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fe5b0fdd 2198
a24b9f23 2199} # ac_fn_c_check_member
fe5b0fdd 2200
a24b9f23
MA
2201# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2202# --------------------------------------------
2203# Tries to find the compile-time value of EXPR in a program that includes
2204# INCLUDES, setting VAR accordingly. Returns whether the value could be
2205# computed
2206ac_fn_c_compute_int ()
2207{
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 if test "$cross_compiling" = yes; then
2210 # Depending upon the size, compute the lo and hi bounds.
2211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$4
2214int
2215main ()
2216{
2217static int test_array [1 - 2 * !(($2) >= 0)];
2218test_array [0] = 0;
2219return test_array [0];
4d24561a 2220
a24b9f23
MA
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_lo=0 ac_mid=0
2227 while :; do
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h. */
2230$4
2231int
2232main ()
2233{
2234static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2235test_array [0] = 0;
2236return test_array [0];
fe5b0fdd 2237
a24b9f23
MA
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243 ac_hi=$ac_mid; break
2244else
2245 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2246 if test $ac_lo -le $ac_mid; then
2247 ac_lo= ac_hi=
2248 break
2249 fi
2250 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 done
2254else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h. */
2257$4
2258int
2259main ()
2260{
2261static int test_array [1 - 2 * !(($2) < 0)];
2262test_array [0] = 0;
2263return test_array [0];
fe5b0fdd 2264
a24b9f23
MA
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269if ac_fn_c_try_compile "$LINENO"; then :
2270 ac_hi=-1 ac_mid=-1
2271 while :; do
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273/* end confdefs.h. */
2274$4
2275int
2276main ()
2277{
2278static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2279test_array [0] = 0;
2280return test_array [0];
fe5b0fdd 2281
a24b9f23
MA
2282 ;
2283 return 0;
2284}
2285_ACEOF
2286if ac_fn_c_try_compile "$LINENO"; then :
2287 ac_lo=$ac_mid; break
2288else
2289 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2290 if test $ac_mid -le $ac_hi; then
2291 ac_lo= ac_hi=
2292 break
2293 fi
2294 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 done
2298else
2299 ac_lo= ac_hi=
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304# Binary search between lo and hi bounds.
2305while test "x$ac_lo" != "x$ac_hi"; do
2306 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308/* end confdefs.h. */
2309$4
2310int
2311main ()
2312{
2313static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2314test_array [0] = 0;
2315return test_array [0];
fe5b0fdd 2316
a24b9f23
MA
2317 ;
2318 return 0;
2319}
2320_ACEOF
2321if ac_fn_c_try_compile "$LINENO"; then :
2322 ac_hi=$ac_mid
2323else
2324 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327done
2328case $ac_lo in #((
2329?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2330'') ac_retval=1 ;;
2331esac
2332 else
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h. */
2335$4
2336static long int longval () { return $2; }
2337static unsigned long int ulongval () { return $2; }
2338#include <stdio.h>
2339#include <stdlib.h>
2340int
2341main ()
2342{
4d24561a 2343
a24b9f23
MA
2344 FILE *f = fopen ("conftest.val", "w");
2345 if (! f)
2346 return 1;
2347 if (($2) < 0)
2348 {
2349 long int i = longval ();
2350 if (i != ($2))
2351 return 1;
2352 fprintf (f, "%ld", i);
2353 }
2354 else
2355 {
2356 unsigned long int i = ulongval ();
2357 if (i != ($2))
2358 return 1;
2359 fprintf (f, "%lu", i);
2360 }
2361 /* Do not output a trailing newline, as this causes \r\n confusion
2362 on some platforms. */
2363 return ferror (f) || fclose (f) != 0;
4d24561a 2364
a24b9f23
MA
2365 ;
2366 return 0;
2367}
2368_ACEOF
2369if ac_fn_c_try_run "$LINENO"; then :
2370 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2371else
2372 ac_retval=1
2373fi
2374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2375 conftest.$ac_objext conftest.beam conftest.$ac_ext
2376rm -f conftest.val
8d7ba39e 2377
a24b9f23
MA
2378 fi
2379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380 as_fn_set_status $ac_retval
8d7ba39e 2381
a24b9f23
MA
2382} # ac_fn_c_compute_int
2383cat >config.log <<_ACEOF
2384This file contains any messages produced by compilers while
2385running configure, to aid debugging if configure makes a mistake.
2d5fba9b 2386
109fa1d0 2387It was created by DHCP $as_me 4.4.2, which was
a24b9f23 2388generated by GNU Autoconf 2.69. Invocation command line was
6e999c3c 2389
a24b9f23 2390 $ $0 $@
6e999c3c 2391
a24b9f23
MA
2392_ACEOF
2393exec 5>>config.log
2394{
2395cat <<_ASUNAME
2396## --------- ##
2397## Platform. ##
2398## --------- ##
6e999c3c 2399
a24b9f23
MA
2400hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2401uname -m = `(uname -m) 2>/dev/null || echo unknown`
2402uname -r = `(uname -r) 2>/dev/null || echo unknown`
2403uname -s = `(uname -s) 2>/dev/null || echo unknown`
2404uname -v = `(uname -v) 2>/dev/null || echo unknown`
7f45c65c 2405
a24b9f23
MA
2406/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2407/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
7f45c65c 2408
a24b9f23
MA
2409/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2410/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2411/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2412/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2413/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2414/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2415/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
237bfdc9 2416
a24b9f23 2417_ASUNAME
4a70cb10 2418
a24b9f23 2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4a70cb10
TM
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
a24b9f23
MA
2424 $as_echo "PATH: $as_dir"
2425 done
4a70cb10 2426IFS=$as_save_IFS
ded99fc7 2427
a24b9f23 2428} >&5
ded99fc7 2429
a24b9f23 2430cat >&5 <<_ACEOF
7d714d6b 2431
7d714d6b 2432
a24b9f23
MA
2433## ----------- ##
2434## Core tests. ##
2435## ----------- ##
5ce8d6e7 2436
a24b9f23 2437_ACEOF
5ce8d6e7
SR
2438
2439
a24b9f23
MA
2440# Keep a trace of the command line.
2441# Strip out --no-create and --no-recursion so they do not pile up.
2442# Strip out --silent because we don't want to record it for future runs.
2443# Also quote any args containing shell meta-characters.
2444# Make two passes to allow for proper duplicate-argument suppression.
2445ac_configure_args=
2446ac_configure_args0=
2447ac_configure_args1=
2448ac_must_keep_next=false
2449for ac_pass in 1 2
2450do
2451 for ac_arg
2452 do
2453 case $ac_arg in
2454 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2456 | -silent | --silent | --silen | --sile | --sil)
2457 continue ;;
2458 *\'*)
2459 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2460 esac
2461 case $ac_pass in
2462 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2463 2)
2464 as_fn_append ac_configure_args1 " '$ac_arg'"
2465 if test $ac_must_keep_next = true; then
2466 ac_must_keep_next=false # Got value, back to normal.
4a70cb10 2467 else
a24b9f23
MA
2468 case $ac_arg in
2469 *=* | --config-cache | -C | -disable-* | --disable-* \
2470 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2471 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2472 | -with-* | --with-* | -without-* | --without-* | --x)
2473 case "$ac_configure_args0 " in
2474 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2475 esac
2476 ;;
2477 -* ) ac_must_keep_next=true ;;
2478 esac
4a70cb10 2479 fi
a24b9f23 2480 as_fn_append ac_configure_args " '$ac_arg'"
4a70cb10 2481 ;;
4a70cb10 2482 esac
4a70cb10 2483 done
a24b9f23
MA
2484done
2485{ ac_configure_args0=; unset ac_configure_args0;}
2486{ ac_configure_args1=; unset ac_configure_args1;}
d5e0cd6f 2487
a24b9f23
MA
2488# When interrupted or exit'd, cleanup temporary files, and complete
2489# config.log. We remove comments because anyway the quotes in there
2490# would cause problems or look ugly.
2491# WARNING: Use '\'' to represent an apostrophe within the trap.
2492# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2493trap 'exit_status=$?
2494 # Save into config.log some information that might help in debugging.
2495 {
2496 echo
529be52a 2497
a24b9f23
MA
2498 $as_echo "## ---------------- ##
2499## Cache variables. ##
2500## ---------------- ##"
2501 echo
2502 # The following way of writing the cache mishandles newlines in values,
2503(
2504 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2505 eval ac_val=\$$ac_var
2506 case $ac_val in #(
2507 *${as_nl}*)
2508 case $ac_var in #(
2509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2510$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2511 esac
2512 case $ac_var in #(
2513 _ | IFS | as_nl) ;; #(
2514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2515 *) { eval $ac_var=; unset $ac_var;} ;;
2516 esac ;;
2517 esac
2518 done
2519 (set) 2>&1 |
2520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2521 *${as_nl}ac_space=\ *)
2522 sed -n \
2523 "s/'\''/'\''\\\\'\'''\''/g;
2524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2525 ;; #(
2526 *)
2527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2528 ;;
2529 esac |
2530 sort
2531)
2532 echo
529be52a 2533
a24b9f23
MA
2534 $as_echo "## ----------------- ##
2535## Output variables. ##
2536## ----------------- ##"
2537 echo
2538 for ac_var in $ac_subst_vars
2539 do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in
2542 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 esac
2544 $as_echo "$ac_var='\''$ac_val'\''"
2545 done | sort
2546 echo
529be52a 2547
a24b9f23
MA
2548 if test -n "$ac_subst_files"; then
2549 $as_echo "## ------------------- ##
2550## File substitutions. ##
2551## ------------------- ##"
2552 echo
2553 for ac_var in $ac_subst_files
2554 do
2555 eval ac_val=\$$ac_var
2556 case $ac_val in
2557 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2558 esac
2559 $as_echo "$ac_var='\''$ac_val'\''"
2560 done | sort
2561 echo
2562 fi
529be52a 2563
a24b9f23
MA
2564 if test -s confdefs.h; then
2565 $as_echo "## ----------- ##
2566## confdefs.h. ##
2567## ----------- ##"
2568 echo
2569 cat confdefs.h
2570 echo
2571 fi
2572 test "$ac_signal" != 0 &&
2573 $as_echo "$as_me: caught signal $ac_signal"
2574 $as_echo "$as_me: exit $exit_status"
2575 } >&5
2576 rm -f core *.core core.conftest.* &&
2577 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2578 exit $exit_status
2579' 0
2580for ac_signal in 1 2 13 15; do
2581 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
529be52a 2582done
a24b9f23 2583ac_signal=0
529be52a 2584
a24b9f23
MA
2585# confdefs.h avoids OS command line length limits that DEFS can exceed.
2586rm -f -r conftest* confdefs.h
529be52a 2587
a24b9f23
MA
2588$as_echo "/* confdefs.h */" > confdefs.h
2589
2590# Predefined preprocessor variables.
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_NAME "$PACKAGE_NAME"
529be52a 2594_ACEOF
a24b9f23
MA
2595
2596cat >>confdefs.h <<_ACEOF
2597#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
529be52a 2598_ACEOF
529be52a 2599
a24b9f23
MA
2600cat >>confdefs.h <<_ACEOF
2601#define PACKAGE_VERSION "$PACKAGE_VERSION"
2602_ACEOF
529be52a 2603
a24b9f23
MA
2604cat >>confdefs.h <<_ACEOF
2605#define PACKAGE_STRING "$PACKAGE_STRING"
2606_ACEOF
529be52a 2607
a24b9f23
MA
2608cat >>confdefs.h <<_ACEOF
2609#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
529be52a 2610_ACEOF
a24b9f23
MA
2611
2612cat >>confdefs.h <<_ACEOF
2613#define PACKAGE_URL "$PACKAGE_URL"
529be52a 2614_ACEOF
529be52a 2615
a24b9f23
MA
2616
2617# Let the site file select an alternate cache file if it wants to.
2618# Prefer an explicitly selected file to automatically selected ones.
2619ac_site_file1=NONE
2620ac_site_file2=NONE
2621if test -n "$CONFIG_SITE"; then
2622 # We do not want a PATH search for config.site.
2623 case $CONFIG_SITE in #((
2624 -*) ac_site_file1=./$CONFIG_SITE;;
2625 */*) ac_site_file1=$CONFIG_SITE;;
2626 *) ac_site_file1=./$CONFIG_SITE;;
2627 esac
2628elif test "x$prefix" != xNONE; then
2629 ac_site_file1=$prefix/share/config.site
2630 ac_site_file2=$prefix/etc/config.site
2631else
2632 ac_site_file1=$ac_default_prefix/share/config.site
2633 ac_site_file2=$ac_default_prefix/etc/config.site
529be52a 2634fi
a24b9f23
MA
2635for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2636do
2637 test "x$ac_site_file" = xNONE && continue
2638 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2640$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2641 sed 's/^/| /' "$ac_site_file" >&5
2642 . "$ac_site_file" \
2643 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645as_fn_error $? "failed to load site script $ac_site_file
2646See \`config.log' for more details" "$LINENO" 5; }
2647 fi
2648done
529be52a 2649
a24b9f23
MA
2650if test -r "$cache_file"; then
2651 # Some versions of bash will fail to source /dev/null (special files
2652 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2653 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2655$as_echo "$as_me: loading cache $cache_file" >&6;}
2656 case $cache_file in
2657 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2658 *) . "./$cache_file";;
2659 esac
2660 fi
2661else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2663$as_echo "$as_me: creating cache $cache_file" >&6;}
2664 >$cache_file
2665fi
529be52a 2666
a24b9f23
MA
2667# Check that the precious variables saved in the cache have kept the same
2668# value.
2669ac_cache_corrupted=false
2670for ac_var in $ac_precious_vars; do
2671 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2672 eval ac_new_set=\$ac_env_${ac_var}_set
2673 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2674 eval ac_new_val=\$ac_env_${ac_var}_value
2675 case $ac_old_set,$ac_new_set in
2676 set,)
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2678$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2679 ac_cache_corrupted=: ;;
2680 ,set)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2682$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2684 ,);;
2685 *)
2686 if test "x$ac_old_val" != "x$ac_new_val"; then
2687 # differences in whitespace do not lead to failure.
2688 ac_old_val_w=`echo x $ac_old_val`
2689 ac_new_val_w=`echo x $ac_new_val`
2690 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2692$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2693 ac_cache_corrupted=:
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2696$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2697 eval $ac_var=\$ac_old_val
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2700$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2702$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2703 fi;;
2704 esac
2705 # Pass precious variables to config.status.
2706 if test "$ac_new_set" = set; then
2707 case $ac_new_val in
2708 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2709 *) ac_arg=$ac_var=$ac_new_val ;;
2710 esac
2711 case " $ac_configure_args " in
2712 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2713 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2714 esac
2715 fi
529be52a 2716done
a24b9f23
MA
2717if $ac_cache_corrupted; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2721$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2722 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
529be52a 2723fi
a24b9f23
MA
2724## -------------------- ##
2725## Main body of script. ##
2726## -------------------- ##
529be52a
SR
2727
2728ac_ext=c
2729ac_cpp='$CPP $CPPFLAGS'
2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734
529be52a 2735
13e5cc6c 2736
a24b9f23
MA
2737# we specify "foreign" to avoid having to have the GNU mandated files,
2738# like AUTHORS, COPYING, and such
0cd94b5e 2739am__api_version='1.16'
529be52a 2740
a24b9f23
MA
2741ac_aux_dir=
2742for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2743 if test -f "$ac_dir/install-sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install-sh -c"
2746 break
2747 elif test -f "$ac_dir/install.sh"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/install.sh -c"
2750 break
2751 elif test -f "$ac_dir/shtool"; then
2752 ac_aux_dir=$ac_dir
2753 ac_install_sh="$ac_aux_dir/shtool install -c"
2754 break
2755 fi
529be52a 2756done
a24b9f23
MA
2757if test -z "$ac_aux_dir"; then
2758 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
529be52a
SR
2759fi
2760
a24b9f23
MA
2761# These three variables are undocumented and unsupported,
2762# and are intended to be withdrawn in a future Autoconf release.
2763# They can cause serious problems if a builder's source tree is in a directory
2764# whose full name contains unusual characters.
2765ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2766ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2767ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
529be52a
SR
2768
2769
a24b9f23
MA
2770# Find a good install program. We prefer a C program (faster),
2771# so one script is as good as another. But avoid the broken or
2772# incompatible versions:
2773# SysV /etc/install, /usr/sbin/install
2774# SunOS /usr/etc/install
2775# IRIX /sbin/install
2776# AIX /bin/install
2777# AmigaOS /C/install, which installs bootblocks on floppy discs
2778# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2779# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2780# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2781# OS/2's system install, which has a completely different semantic
2782# ./install, which can be erroneously created by make from ./install.sh.
2783# Reject install programs that cannot install multiple files.
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2785$as_echo_n "checking for a BSD-compatible install... " >&6; }
2786if test -z "$INSTALL"; then
2787if ${ac_cv_path_install+:} false; then :
2788 $as_echo_n "(cached) " >&6
529be52a 2789else
a24b9f23
MA
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
529be52a
SR
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
a24b9f23
MA
2795 # Account for people who put trailing slashes in PATH elements.
2796case $as_dir/ in #((
2797 ./ | .// | /[cC]/* | \
2798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2799 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2800 /usr/ucb/* ) ;;
2801 *)
2802 # OSF1 and SCO ODT 3.0 have their own names for install.
2803 # Don't use installbsd from OSF since it installs stuff as root
2804 # by default.
2805 for ac_prog in ginstall scoinst install; do
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2808 if test $ac_prog = install &&
2809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2810 # AIX install. It has an incompatible calling convention.
2811 :
2812 elif test $ac_prog = install &&
2813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814 # program-specific install script used by HP pwplus--don't use.
2815 :
2816 else
2817 rm -rf conftest.one conftest.two conftest.dir
2818 echo one > conftest.one
2819 echo two > conftest.two
2820 mkdir conftest.dir
2821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2822 test -s conftest.one && test -s conftest.two &&
2823 test -s conftest.dir/conftest.one &&
2824 test -s conftest.dir/conftest.two
2825 then
2826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2827 break 3
2828 fi
2829 fi
2830 fi
2831 done
2832 done
2833 ;;
529be52a
SR
2834esac
2835
529be52a 2836 done
529be52a
SR
2837IFS=$as_save_IFS
2838
a24b9f23 2839rm -rf conftest.one conftest.two conftest.dir
529be52a
SR
2840
2841fi
a24b9f23
MA
2842 if test "${ac_cv_path_install+set}" = set; then
2843 INSTALL=$ac_cv_path_install
2844 else
2845 # As a last resort, use the slow shell script. Don't cache a
2846 # value for INSTALL within a source directory, because that will
2847 # break other packages using the cache if that directory is
2848 # removed, or if the value is a relative name.
2849 INSTALL=$ac_install_sh
2850 fi
529be52a 2851fi
a24b9f23
MA
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2853$as_echo "$INSTALL" >&6; }
529be52a 2854
a24b9f23
MA
2855# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2856# It thinks the first close brace ends the variable substitution.
2857test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
529be52a 2858
a24b9f23 2859test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
529be52a 2860
a24b9f23 2861test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
529be52a 2862
a24b9f23
MA
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2864$as_echo_n "checking whether build environment is sane... " >&6; }
2865# Reject unsafe characters in $srcdir or the absolute working directory
2866# name. Accept space and tab only in the latter.
2867am_lf='
2868'
2869case `pwd` in
2870 *[\\\"\#\$\&\'\`$am_lf]*)
2871 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2872esac
2873case $srcdir in
2874 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2875 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2876esac
529be52a 2877
a24b9f23
MA
2878# Do 'set' in a subshell so we don't clobber the current shell's
2879# arguments. Must try -L first in case configure is actually a
2880# symlink; some systems play weird games with the mod time of symlinks
2881# (eg FreeBSD returns the mod time of the symlink's containing
2882# directory).
2883if (
2884 am_has_slept=no
2885 for am_try in 1 2; do
2886 echo "timestamp, slept: $am_has_slept" > conftest.file
2887 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2888 if test "$*" = "X"; then
2889 # -L didn't work.
2890 set X `ls -t "$srcdir/configure" conftest.file`
2891 fi
2892 if test "$*" != "X $srcdir/configure conftest.file" \
2893 && test "$*" != "X conftest.file $srcdir/configure"; then
2894
2895 # If neither matched, then we have a broken ls. This can happen
2896 # if, for instance, CONFIG_SHELL is bash and it inherits a
2897 # broken ls alias from the environment. This has actually
2898 # happened. Such a system could not be considered "sane".
2899 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2901 fi
2902 if test "$2" = conftest.file || test $am_try -eq 2; then
2903 break
2904 fi
2905 # Just in case.
2906 sleep 1
2907 am_has_slept=yes
2908 done
2909 test "$2" = conftest.file
2910 )
2911then
2912 # Ok.
2913 :
529be52a 2914else
a24b9f23
MA
2915 as_fn_error $? "newly created file is older than distributed files!
2916Check your system clock" "$LINENO" 5
529be52a 2917fi
a24b9f23
MA
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919$as_echo "yes" >&6; }
2920# If we didn't sleep, we still need to ensure time stamps of config.status and
2921# generated files are strictly newer.
2922am_sleep_pid=
2923if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2924 ( sleep 1 ) &
2925 am_sleep_pid=$!
529be52a
SR
2926fi
2927
a24b9f23 2928rm -f conftest.file
529be52a 2929
a24b9f23
MA
2930test "$program_prefix" != NONE &&
2931 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2932# Use a double $ so make ignores it.
2933test "$program_suffix" != NONE &&
2934 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2935# Double any \ or $.
2936# By default was `s,x,x', remove it if useless.
2937ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2938program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
529be52a 2939
db1a8f68
SR
2940# Expand $ac_aux_dir to an absolute path.
2941am_aux_dir=`cd "$ac_aux_dir" && pwd`
529be52a 2942
a24b9f23
MA
2943if test x"${MISSING+set}" != xset; then
2944 case $am_aux_dir in
2945 *\ * | *\ *)
2946 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2947 *)
2948 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2949 esac
529be52a 2950fi
a24b9f23 2951# Use eval to expand $SHELL
69e9da00
TM
2952if eval "$MISSING --is-lightweight"; then
2953 am_missing_run="$MISSING "
529be52a 2954else
a24b9f23
MA
2955 am_missing_run=
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2957$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
529be52a 2958fi
529be52a 2959
db1a8f68 2960if test x"${install_sh+set}" != xset; then
a24b9f23
MA
2961 case $am_aux_dir in
2962 *\ * | *\ *)
2963 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2964 *)
2965 install_sh="\${SHELL} $am_aux_dir/install-sh"
2966 esac
529be52a
SR
2967fi
2968
a24b9f23
MA
2969# Installed binaries are usually stripped using 'strip' when the user
2970# run "make install-strip". However 'strip' might not be the right
2971# tool to use in cross-compilation environments, therefore Automake
2972# will honor the 'STRIP' environment variable to overrule this program.
2973if test "$cross_compiling" != no; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2976set dummy ${ac_tool_prefix}strip; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if ${ac_cv_prog_STRIP+:} false; then :
2980 $as_echo_n "(cached) " >&6
529be52a 2981else
a24b9f23
MA
2982 if test -n "$STRIP"; then
2983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
529be52a 2984else
a24b9f23
MA
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996done
2997 done
2998IFS=$as_save_IFS
529be52a 2999
529be52a 3000fi
a24b9f23
MA
3001fi
3002STRIP=$ac_cv_prog_STRIP
3003if test -n "$STRIP"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3005$as_echo "$STRIP" >&6; }
3006else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
529be52a
SR
3009fi
3010
3011
a24b9f23
MA
3012fi
3013if test -z "$ac_cv_prog_STRIP"; then
3014 ac_ct_STRIP=$STRIP
3015 # Extract the first word of "strip", so it can be a program name with args.
3016set dummy strip; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021else
3022 if test -n "$ac_ct_STRIP"; then
3023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_ac_ct_STRIP="strip"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036done
3037 done
3038IFS=$as_save_IFS
3039
529be52a
SR
3040fi
3041fi
a24b9f23
MA
3042ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3043if test -n "$ac_ct_STRIP"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3045$as_echo "$ac_ct_STRIP" >&6; }
3046else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
529be52a
SR
3049fi
3050
a24b9f23
MA
3051 if test "x$ac_ct_STRIP" = x; then
3052 STRIP=":"
3053 else
3054 case $cross_compiling:$ac_tool_warned in
3055yes:)
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058ac_tool_warned=yes ;;
3059esac
3060 STRIP=$ac_ct_STRIP
3061 fi
3062else
3063 STRIP="$ac_cv_prog_STRIP"
3064fi
529be52a 3065
a24b9f23
MA
3066fi
3067INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
529be52a 3068
a24b9f23
MA
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3070$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3071if test -z "$MKDIR_P"; then
3072 if ${ac_cv_path_mkdir+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_prog in mkdir gmkdir; do
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3083 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3084 'mkdir (GNU coreutils) '* | \
3085 'mkdir (coreutils) '* | \
3086 'mkdir (fileutils) '4.1*)
3087 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3088 break 3;;
3089 esac
3090 done
3091 done
3092 done
3093IFS=$as_save_IFS
529be52a 3094
a24b9f23 3095fi
529be52a 3096
a24b9f23
MA
3097 test -d ./--version && rmdir ./--version
3098 if test "${ac_cv_path_mkdir+set}" = set; then
3099 MKDIR_P="$ac_cv_path_mkdir -p"
3100 else
3101 # As a last resort, use the slow shell script. Don't cache a
3102 # value for MKDIR_P within a source directory, because that will
3103 # break other packages using the cache if that directory is
3104 # removed, or if the value is a relative name.
3105 MKDIR_P="$ac_install_sh -d"
3106 fi
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3109$as_echo "$MKDIR_P" >&6; }
529be52a 3110
a24b9f23 3111for ac_prog in gawk mawk nawk awk
529be52a 3112do
a24b9f23
MA
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114set dummy $ac_prog; ac_word=$2
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; }
3117if ${ac_cv_prog_AWK+:} false; then :
3118 $as_echo_n "(cached) " >&6
529be52a 3119else
a24b9f23
MA
3120 if test -n "$AWK"; then
3121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_AWK="$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134done
3135 done
3136IFS=$as_save_IFS
529be52a 3137
529be52a 3138fi
529be52a 3139fi
a24b9f23
MA
3140AWK=$ac_cv_prog_AWK
3141if test -n "$AWK"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3143$as_echo "$AWK" >&6; }
3144else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
529be52a
SR
3147fi
3148
529be52a 3149
a24b9f23
MA
3150 test -n "$AWK" && break
3151done
529be52a 3152
a24b9f23
MA
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3154$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3155set x ${MAKE-make}
3156ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3157if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3158 $as_echo_n "(cached) " >&6
529be52a 3159else
a24b9f23
MA
3160 cat >conftest.make <<\_ACEOF
3161SHELL = /bin/sh
3162all:
3163 @echo '@@@%%%=$(MAKE)=@@@%%%'
529be52a 3164_ACEOF
a24b9f23
MA
3165# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3166case `${MAKE-make} -f conftest.make 2>/dev/null` in
3167 *@@@%%%=?*=@@@%%%*)
3168 eval ac_cv_prog_make_${ac_make}_set=yes;;
3169 *)
3170 eval ac_cv_prog_make_${ac_make}_set=no;;
529be52a 3171esac
a24b9f23
MA
3172rm -f conftest.make
3173fi
3174if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176$as_echo "yes" >&6; }
3177 SET_MAKE=
529be52a 3178else
a24b9f23
MA
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181 SET_MAKE="MAKE=${MAKE-make}"
529be52a
SR
3182fi
3183
a24b9f23
MA
3184rm -rf .tst 2>/dev/null
3185mkdir .tst 2>/dev/null
3186if test -d .tst; then
3187 am__leading_dot=.
529be52a 3188else
a24b9f23 3189 am__leading_dot=_
529be52a 3190fi
a24b9f23 3191rmdir .tst 2>/dev/null
529be52a 3192
69e9da00
TM
3193# Check whether --enable-silent-rules was given.
3194if test "${enable_silent_rules+set}" = set; then :
3195 enableval=$enable_silent_rules;
3196fi
3197
3198case $enable_silent_rules in # (((
3199 yes) AM_DEFAULT_VERBOSITY=0;;
3200 no) AM_DEFAULT_VERBOSITY=1;;
3201 *) AM_DEFAULT_VERBOSITY=1;;
3202esac
3203am_make=${MAKE-make}
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3205$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3206if ${am_cv_make_support_nested_variables+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208else
3209 if $as_echo 'TRUE=$(BAR$(V))
3210BAR0=false
3211BAR1=true
3212V=1
3213am__doit:
3214 @$(TRUE)
3215.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3216 am_cv_make_support_nested_variables=yes
3217else
3218 am_cv_make_support_nested_variables=no
3219fi
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3222$as_echo "$am_cv_make_support_nested_variables" >&6; }
3223if test $am_cv_make_support_nested_variables = yes; then
3224 AM_V='$(V)'
3225 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3226else
3227 AM_V=$AM_DEFAULT_VERBOSITY
3228 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3229fi
3230AM_BACKSLASH='\'
3231
a24b9f23
MA
3232if test "`cd $srcdir && pwd`" != "`pwd`"; then
3233 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3234 # is not polluted with repeated "-I."
3235 am__isrc=' -I$(srcdir)'
3236 # test to see if srcdir already configured
3237 if test -f $srcdir/config.status; then
3238 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3239 fi
529be52a
SR
3240fi
3241
a24b9f23
MA
3242# test whether we have cygpath
3243if test -z "$CYGPATH_W"; then
3244 if (cygpath --version) >/dev/null 2>/dev/null; then
3245 CYGPATH_W='cygpath -w'
3246 else
3247 CYGPATH_W=echo
3248 fi
3249fi
529be52a 3250
529be52a 3251
a24b9f23
MA
3252# Define the identity of the package.
3253 PACKAGE='dhcp'
109fa1d0 3254 VERSION='4.4.2'
529be52a
SR
3255
3256
a24b9f23
MA
3257cat >>confdefs.h <<_ACEOF
3258#define PACKAGE "$PACKAGE"
529be52a
SR
3259_ACEOF
3260
3261
a24b9f23
MA
3262cat >>confdefs.h <<_ACEOF
3263#define VERSION "$VERSION"
529be52a
SR
3264_ACEOF
3265
a24b9f23
MA
3266# Some tools Automake needs.
3267
3268ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3269
3270
3271AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3272
3273
3274AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
529be52a
SR
3275
3276
a24b9f23
MA
3277AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3278
3279
3280MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
529be52a 3281
a24b9f23
MA
3282# For better backward compatibility. To be removed once Automake 1.9.x
3283# dies out for good. For more background, see:
0cd94b5e
TM
3284# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3285# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
a24b9f23 3286mkdir_p='$(MKDIR_P)'
529be52a 3287
db1a8f68
SR
3288# We need awk for the "check" target (and possibly the TAP driver). The
3289# system "awk" is bad on some platforms.
a24b9f23
MA
3290# Always define AMTAR for backward compatibility. Yes, it's still used
3291# in the wild :-( We should find a proper way to deprecate it ...
3292AMTAR='$${TAR-tar}'
529be52a 3293
69e9da00
TM
3294
3295# We'll loop over all known methods to create a tar archive until one works.
3296_am_tools='gnutar pax cpio none'
3297
a24b9f23 3298am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
529be52a
SR
3299
3300
3301
3302
3303
3304
69e9da00
TM
3305# POSIX will say in a future version that running "rm -f" with no argument
3306# is OK; and we want to be able to make that assumption in our Makefile
3307# recipes. So use an aggressive probe to check that the usage we want is
3308# actually supported "in the wild" to an acceptable degree.
3309# See automake bug#10828.
3310# To make any issue more visible, cause the running configure to be aborted
3311# by default if the 'rm' program in use doesn't match our expectations; the
3312# user can still override this though.
3313if rm -f && rm -fr && rm -rf; then : OK; else
3314 cat >&2 <<'END'
3315Oops!
3316
3317Your 'rm' program seems unable to run without file operands specified
3318on the command line, even when the '-f' option is present. This is contrary
3319to the behaviour of most rm programs out there, and not conforming with
3320the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3321
3322Please tell bug-automake@gnu.org about your system, including the value
3323of your $PATH and any error possibly output before this message. This
3324can help us improve future automake versions.
3325
3326END
3327 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3328 echo 'Configuration will proceed anyway, since you have set the' >&2
3329 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3330 echo >&2
3331 else
3332 cat >&2 <<'END'
3333Aborting the configuration process, to ensure you take notice of the issue.
3334
3335You can download and install GNU coreutils to get an 'rm' implementation
0cd94b5e 3336that behaves properly: <https://www.gnu.org/software/coreutils/>.
69e9da00
TM
3337
3338If you want to complete the configuration process using your problematic
3339'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3340to "yes", and re-run configure.
3341
3342END
3343 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3344 fi
3345fi
3346
db1a8f68 3347
a24b9f23
MA
3348# we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3349# the configure and makefiles. Without it users doing things that
3350# change the timestamps on the code, like checking it into a cvs
3351# tree, could trigger a rebuild of the infrastructure files which
3352# might fail if they don't have the correct tools.
3353
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3355$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3356 # Check whether --enable-maintainer-mode was given.
3357if test "${enable_maintainer_mode+set}" = set; then :
3358 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
529be52a 3359else
a24b9f23
MA
3360 USE_MAINTAINER_MODE=no
3361fi
529be52a 3362
a24b9f23
MA
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3364$as_echo "$USE_MAINTAINER_MODE" >&6; }
3365 if test $USE_MAINTAINER_MODE = yes; then
3366 MAINTAINER_MODE_TRUE=
3367 MAINTAINER_MODE_FALSE='#'
3368else
3369 MAINTAINER_MODE_TRUE='#'
3370 MAINTAINER_MODE_FALSE=
3371fi
529be52a 3372
a24b9f23
MA
3373 MAINT=$MAINTAINER_MODE_TRUE
3374
3375
3376
3377# Make sure we can run config.sub.
3378$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3380
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3382$as_echo_n "checking build system type... " >&6; }
3383if ${ac_cv_build+:} false; then :
3384 $as_echo_n "(cached) " >&6
529be52a 3385else
a24b9f23
MA
3386 ac_build_alias=$build_alias
3387test "x$ac_build_alias" = x &&
3388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3389test "x$ac_build_alias" = x &&
3390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3391ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
529be52a 3393
529be52a 3394fi
a24b9f23
MA
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3396$as_echo "$ac_cv_build" >&6; }
3397case $ac_cv_build in
3398*-*-*) ;;
3399*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3400esac
3401build=$ac_cv_build
3402ac_save_IFS=$IFS; IFS='-'
3403set x $ac_cv_build
3404shift
3405build_cpu=$1
3406build_vendor=$2
3407shift; shift
3408# Remember, the first character of IFS is used to create $*,
3409# except with old shells:
3410build_os=$*
3411IFS=$ac_save_IFS
3412case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
529be52a 3413
a24b9f23
MA
3414
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3416$as_echo_n "checking host system type... " >&6; }
3417if ${ac_cv_host+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419else
3420 if test "x$host_alias" = x; then
3421 ac_cv_host=$ac_cv_build
3422else
3423 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3424 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
529be52a 3425fi
529be52a 3426
a24b9f23
MA
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3429$as_echo "$ac_cv_host" >&6; }
3430case $ac_cv_host in
3431*-*-*) ;;
3432*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3433esac
3434host=$ac_cv_host
3435ac_save_IFS=$IFS; IFS='-'
3436set x $ac_cv_host
3437shift
3438host_cpu=$1
3439host_vendor=$2
3440shift; shift
3441# Remember, the first character of IFS is used to create $*,
3442# except with old shells:
3443host_os=$*
3444IFS=$ac_save_IFS
3445case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
529be52a 3446
529be52a
SR
3447
3448
a24b9f23
MA
3449# We want to turn on warnings if we are using gcc and the user did
3450# not specify CFLAGS. The autoconf check for the C compiler sets the
3451# CFLAGS if gcc is used, so we will save it before we run that check.
3452SAVE_CFLAGS="$CFLAGS"
529be52a 3453
a24b9f23
MA
3454# Now find our C compiler.
3455ac_ext=c
3456ac_cpp='$CPP $CPPFLAGS'
3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_c_compiler_gnu
529be52a 3460if test -n "$ac_tool_prefix"; then
a24b9f23
MA
3461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3462set dummy ${ac_tool_prefix}gcc; ac_word=$2
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
3465if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
529be52a 3467else
a24b9f23
MA
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
529be52a
SR
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
a24b9f23
MA
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
529be52a
SR
3480 break 2
3481 fi
3482done
a24b9f23 3483 done
529be52a
SR
3484IFS=$as_save_IFS
3485
3486fi
3487fi
a24b9f23
MA
3488CC=$ac_cv_prog_CC
3489if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491$as_echo "$CC" >&6; }
529be52a 3492else
a24b9f23
MA
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
529be52a
SR
3495fi
3496
3497
3498fi
a24b9f23
MA
3499if test -z "$ac_cv_prog_CC"; then
3500 ac_ct_CC=$CC
3501 # Extract the first word of "gcc", so it can be a program name with args.
3502set dummy gcc; ac_word=$2
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504$as_echo_n "checking for $ac_word... " >&6; }
3505if ${ac_cv_prog_ac_ct_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
529be52a 3507else
a24b9f23
MA
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
529be52a
SR
3510else
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
a24b9f23
MA
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_ac_ct_CC="gcc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
529be52a
SR
3520 break 2
3521 fi
3522done
a24b9f23 3523 done
529be52a
SR
3524IFS=$as_save_IFS
3525
3526fi
3527fi
a24b9f23
MA
3528ac_ct_CC=$ac_cv_prog_ac_ct_CC
3529if test -n "$ac_ct_CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3531$as_echo "$ac_ct_CC" >&6; }
529be52a 3532else
a24b9f23
MA
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534$as_echo "no" >&6; }
529be52a
SR
3535fi
3536
a24b9f23
MA
3537 if test "x$ac_ct_CC" = x; then
3538 CC=""
529be52a
SR
3539 else
3540 case $cross_compiling:$ac_tool_warned in
3541yes:)
a24b9f23
MA
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
529be52a
SR
3544ac_tool_warned=yes ;;
3545esac
a24b9f23 3546 CC=$ac_ct_CC
529be52a
SR
3547 fi
3548else
a24b9f23 3549 CC="$ac_cv_prog_CC"
529be52a
SR
3550fi
3551
a24b9f23
MA
3552if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}cc; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
529be52a 3560else
a24b9f23
MA
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
529be52a 3563else
a24b9f23
MA
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}cc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
529be52a 3574 fi
a24b9f23
MA
3575done
3576 done
3577IFS=$as_save_IFS
529be52a
SR
3578
3579fi
a24b9f23
MA
3580fi
3581CC=$ac_cv_prog_CC
3582if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584$as_echo "$CC" >&6; }
3585else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
529be52a
SR
3588fi
3589
529be52a 3590
a24b9f23 3591 fi
529be52a 3592fi
a24b9f23
MA
3593if test -z "$CC"; then
3594 # Extract the first word of "cc", so it can be a program name with args.
3595set dummy cc; ac_word=$2
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597$as_echo_n "checking for $ac_word... " >&6; }
3598if ${ac_cv_prog_CC+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600else
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC="$CC" # Let the user override the test.
3603else
3604 ac_prog_rejected=no
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3613 ac_prog_rejected=yes
3614 continue
3615 fi
3616 ac_cv_prog_CC="cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620done
3621 done
3622IFS=$as_save_IFS
529be52a 3623
a24b9f23
MA
3624if test $ac_prog_rejected = yes; then
3625 # We found a bogon in the path, so make sure we never use it.
3626 set dummy $ac_cv_prog_CC
3627 shift
3628 if test $# != 0; then
3629 # We chose a different compiler from the bogus one.
3630 # However, it has the same basename, so the bogon will be chosen
3631 # first if we set CC to just the basename; use the full file name.
3632 shift
3633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3634 fi
529be52a 3635fi
529be52a 3636fi
529be52a 3637fi
a24b9f23
MA
3638CC=$ac_cv_prog_CC
3639if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641$as_echo "$CC" >&6; }
3642else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
529be52a
SR
3645fi
3646
529be52a 3647
529be52a 3648fi
a24b9f23
MA
3649if test -z "$CC"; then
3650 if test -n "$ac_tool_prefix"; then
3651 for ac_prog in cl.exe
3652 do
3653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656$as_echo_n "checking for $ac_word... " >&6; }
3657if ${ac_cv_prog_CC+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659else
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3662else
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
3665do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674done
3675 done
3676IFS=$as_save_IFS
529be52a 3677
529be52a 3678fi
529be52a 3679fi
a24b9f23
MA
3680CC=$ac_cv_prog_CC
3681if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683$as_echo "$CC" >&6; }
3684else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686$as_echo "no" >&6; }
3687fi
529be52a 3688
529be52a 3689
a24b9f23
MA
3690 test -n "$CC" && break
3691 done
529be52a 3692fi
a24b9f23
MA
3693if test -z "$CC"; then
3694 ac_ct_CC=$CC
3695 for ac_prog in cl.exe
3696do
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698set dummy $ac_prog; ac_word=$2
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700$as_echo_n "checking for $ac_word... " >&6; }
3701if ${ac_cv_prog_ac_ct_CC+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703else
3704 if test -n "$ac_ct_CC"; then
3705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_CC="$ac_prog"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718done
3719 done
3720IFS=$as_save_IFS
529be52a 3721
529be52a 3722fi
529be52a 3723fi
a24b9f23
MA
3724ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725if test -n "$ac_ct_CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3727$as_echo "$ac_ct_CC" >&6; }
3728else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730$as_echo "no" >&6; }
529be52a
SR
3731fi
3732
3733
a24b9f23
MA
3734 test -n "$ac_ct_CC" && break
3735done
529be52a 3736
a24b9f23
MA
3737 if test "x$ac_ct_CC" = x; then
3738 CC=""
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741yes:)
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744ac_tool_warned=yes ;;
3745esac
3746 CC=$ac_ct_CC
3747 fi
529be52a
SR
3748fi
3749
881442e2
SR
3750fi
3751
3752
a24b9f23
MA
3753test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755as_fn_error $? "no acceptable C compiler found in \$PATH
3756See \`config.log' for more details" "$LINENO" 5; }
881442e2 3757
a24b9f23
MA
3758# Provide some information about the compiler.
3759$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760set X $ac_compile
3761ac_compiler=$2
3762for ac_option in --version -v -V -qversion; do
3763 { { ac_try="$ac_compiler $ac_option >&5"
3764case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3771 ac_status=$?
3772 if test -s conftest.err; then
3773 sed '10a\
3774... rest of stderr output deleted ...
3775 10q' conftest.err >conftest.er1
3776 cat conftest.er1 >&5
3777 fi
3778 rm -f conftest.er1 conftest.err
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }
3781done
881442e2 3782
a24b9f23
MA
3783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h. */
529be52a 3785
a24b9f23
MA
3786int
3787main ()
3788{
529be52a 3789
a24b9f23
MA
3790 ;
3791 return 0;
3792}
3793_ACEOF
3794ac_clean_files_save=$ac_clean_files
3795ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3796# Try to create an executable without -o first, disregard a.out.
3797# It will help us diagnose broken compilers, and finding out an intuition
3798# of exeext.
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3800$as_echo_n "checking whether the C compiler works... " >&6; }
3801ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
529be52a 3802
a24b9f23
MA
3803# The possible output files:
3804ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
529be52a 3805
a24b9f23
MA
3806ac_rmfiles=
3807for ac_file in $ac_files
3808do
3809 case $ac_file in
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3812 esac
3813done
3814rm -f $ac_rmfiles
529be52a 3815
a24b9f23
MA
3816if { { ac_try="$ac_link_default"
3817case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
3821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822$as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link_default") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3829# in a Makefile. We should not override ac_cv_exeext if it was cached,
3830# so that the user can short-circuit this test for compilers unknown to
3831# Autoconf.
3832for ac_file in $ac_files ''
3833do
3834 test -f "$ac_file" || continue
3835 case $ac_file in
3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3837 ;;
3838 [ab].out )
3839 # We found the default executable, but exeext='' is most
3840 # certainly right.
3841 break;;
3842 *.* )
3843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3844 then :; else
3845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 fi
3847 # We set ac_cv_exeext here because the later test for it is not
3848 # safe: cross compilers may not add the suffix if given an `-o'
3849 # argument, so we may need to know it at that point already.
3850 # Even if this section looks crufty: it has the advantage of
3851 # actually working.
3852 break;;
3853 * )
3854 break;;
3855 esac
3856done
3857test "$ac_cv_exeext" = no && ac_cv_exeext=
529be52a 3858
529be52a 3859else
a24b9f23 3860 ac_file=''
529be52a 3861fi
a24b9f23
MA
3862if test -z "$ac_file"; then :
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864$as_echo "no" >&6; }
3865$as_echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
529be52a 3867
a24b9f23
MA
3868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870as_fn_error 77 "C compiler cannot create executables
3871See \`config.log' for more details" "$LINENO" 5; }
529be52a 3872else
a24b9f23
MA
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874$as_echo "yes" >&6; }
3875fi
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3877$as_echo_n "checking for C compiler default output file name... " >&6; }
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3879$as_echo "$ac_file" >&6; }
3880ac_exeext=$ac_cv_exeext
529be52a 3881
a24b9f23
MA
3882rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3883ac_clean_files=$ac_clean_files_save
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3885$as_echo_n "checking for suffix of executables... " >&6; }
3886if { { ac_try="$ac_link"
3887case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
529be52a 3890esac
a24b9f23
MA
3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892$as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_link") 2>&5
3894 ac_status=$?
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }; then :
3897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3898# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3899# work properly (i.e., refer to `conftest.exe'), while it won't with
3900# `rm'.
3901for ac_file in conftest.exe conftest conftest.*; do
3902 test -f "$ac_file" || continue
3903 case $ac_file in
3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3906 break;;
3907 * ) break;;
3908 esac
3909done
529be52a 3910else
a24b9f23
MA
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3914See \`config.log' for more details" "$LINENO" 5; }
529be52a 3915fi
a24b9f23
MA
3916rm -f conftest conftest$ac_cv_exeext
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3918$as_echo "$ac_cv_exeext" >&6; }
529be52a 3919
a24b9f23
MA
3920rm -f conftest.$ac_ext
3921EXEEXT=$ac_cv_exeext
3922ac_exeext=$EXEEXT
3923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924/* end confdefs.h. */
3925#include <stdio.h>
3926int
3927main ()
3928{
3929FILE *f = fopen ("conftest.out", "w");
3930 return ferror (f) || fclose (f) != 0;
529be52a 3931
a24b9f23
MA
3932 ;
3933 return 0;
3934}
3935_ACEOF
3936ac_clean_files="$ac_clean_files conftest.out"
3937# Check that the compiler produces executables we can run. If not, either
3938# the compiler is broken, or we cross compile.
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3940$as_echo_n "checking whether we are cross compiling... " >&6; }
3941if test "$cross_compiling" != yes; then
3942 { { ac_try="$ac_link"
3943case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946esac
3947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948$as_echo "$ac_try_echo"; } >&5
3949 (eval "$ac_link") 2>&5
3950 ac_status=$?
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3953 if { ac_try='./conftest$ac_cv_exeext'
3954 { { case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957esac
3958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959$as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_try") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; }; then
3964 cross_compiling=no
3965 else
3966 if test "$cross_compiling" = maybe; then
3967 cross_compiling=yes
3968 else
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971as_fn_error $? "cannot run C compiled programs.
3972If you meant to cross compile, use \`--host'.
3973See \`config.log' for more details" "$LINENO" 5; }
3974 fi
529be52a
SR
3975 fi
3976fi
a24b9f23
MA
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3978$as_echo "$cross_compiling" >&6; }
529be52a 3979
a24b9f23
MA
3980rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3981ac_clean_files=$ac_clean_files_save
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3983$as_echo_n "checking for suffix of object files... " >&6; }
3984if ${ac_cv_objext+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986else
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h. */
529be52a 3989
a24b9f23
MA
3990int
3991main ()
3992{
3993
3994 ;
3995 return 0;
3996}
3997_ACEOF
3998rm -f conftest.o conftest.obj
3999if { { ac_try="$ac_compile"
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
529be52a 4003esac
a24b9f23
MA
4004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005$as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_compile") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 for ac_file in conftest.o conftest.obj conftest.*; do
4011 test -f "$ac_file" || continue;
4012 case $ac_file in
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4014 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4015 break;;
4016 esac
4017done
4018else
4019 $as_echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
529be52a 4021
a24b9f23
MA
4022{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024as_fn_error $? "cannot compute suffix of object files: cannot compile
4025See \`config.log' for more details" "$LINENO" 5; }
4026fi
4027rm -f conftest.$ac_cv_objext conftest.$ac_ext
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4030$as_echo "$ac_cv_objext" >&6; }
4031OBJEXT=$ac_cv_objext
4032ac_objext=$OBJEXT
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4034$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4035if ${ac_cv_c_compiler_gnu+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h. */
529be52a 4040
a24b9f23
MA
4041int
4042main ()
4043{
4044#ifndef __GNUC__
4045 choke me
4046#endif
4047
4048 ;
4049 return 0;
4050}
529be52a 4051_ACEOF
a24b9f23
MA
4052if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_compiler_gnu=yes
4054else
4055 ac_compiler_gnu=no
4056fi
4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058ac_cv_c_compiler_gnu=$ac_compiler_gnu
529be52a
SR
4059
4060fi
a24b9f23
MA
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4062$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4063if test $ac_compiler_gnu = yes; then
4064 GCC=yes
4065else
4066 GCC=
4067fi
4068ac_test_CFLAGS=${CFLAGS+set}
4069ac_save_CFLAGS=$CFLAGS
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4071$as_echo_n "checking whether $CC accepts -g... " >&6; }
4072if ${ac_cv_prog_cc_g+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074else
4075 ac_save_c_werror_flag=$ac_c_werror_flag
4076 ac_c_werror_flag=yes
4077 ac_cv_prog_cc_g=no
4078 CFLAGS="-g"
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h. */
d5e0cd6f 4081
a24b9f23
MA
4082int
4083main ()
4084{
529be52a 4085
a24b9f23
MA
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_cv_prog_cc_g=yes
4092else
4093 CFLAGS=""
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h. */
d5e0cd6f 4096
a24b9f23
MA
4097int
4098main ()
4099{
d5e0cd6f 4100
a24b9f23
MA
4101 ;
4102 return 0;
4103}
529be52a 4104_ACEOF
a24b9f23 4105if ac_fn_c_try_compile "$LINENO"; then :
d5e0cd6f 4106
a24b9f23
MA
4107else
4108 ac_c_werror_flag=$ac_save_c_werror_flag
4109 CFLAGS="-g"
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
d5e0cd6f 4112
a24b9f23
MA
4113int
4114main ()
4115{
d5e0cd6f 4116
a24b9f23
MA
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_prog_cc_g=yes
4a70cb10 4123fi
a24b9f23
MA
4124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125fi
4126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127fi
4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 ac_c_werror_flag=$ac_save_c_werror_flag
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4132$as_echo "$ac_cv_prog_cc_g" >&6; }
4133if test "$ac_test_CFLAGS" = set; then
4134 CFLAGS=$ac_save_CFLAGS
4135elif test $ac_cv_prog_cc_g = yes; then
4136 if test "$GCC" = yes; then
4137 CFLAGS="-g -O2"
4138 else
4139 CFLAGS="-g"
4140 fi
4141else
4142 if test "$GCC" = yes; then
4143 CFLAGS="-O2"
4144 else
4145 CFLAGS=
4146 fi
4147fi
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4149$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4150if ${ac_cv_prog_cc_c89+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152else
4153 ac_cv_prog_cc_c89=no
4154ac_save_CC=$CC
4155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h. */
4157#include <stdarg.h>
4158#include <stdio.h>
4159struct stat;
4160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161struct buf { int x; };
4162FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163static char *e (p, i)
4164 char **p;
4165 int i;
4166{
4167 return p[i];
4168}
4169static char *f (char * (*g) (char **, int), char **p, ...)
4170{
4171 char *s;
4172 va_list v;
4173 va_start (v,p);
4174 s = g (p, va_arg (v,int));
4175 va_end (v);
4176 return s;
4177}
4178
4179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d5e0cd6f 4187
a24b9f23
MA
4188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4190#define FOO(x) 'x'
4191int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5e0cd6f 4192
a24b9f23
MA
4193int test (int i, double x);
4194struct s1 {int (*f) (int a);};
4195struct s2 {int (*f) (double a);};
4196int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197int argc;
4198char **argv;
4199int
4200main ()
4201{
4202return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 ;
4204 return 0;
4205}
d5e0cd6f 4206_ACEOF
a24b9f23
MA
4207for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209do
4210 CC="$ac_save_CC $ac_arg"
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_c89=$ac_arg
d5e0cd6f 4213fi
a24b9f23
MA
4214rm -f core conftest.err conftest.$ac_objext
4215 test "x$ac_cv_prog_cc_c89" != "xno" && break
4216done
4217rm -f conftest.$ac_ext
4218CC=$ac_save_CC
d5e0cd6f 4219
a24b9f23
MA
4220fi
4221# AC_CACHE_VAL
4222case "x$ac_cv_prog_cc_c89" in
4223 x)
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4225$as_echo "none needed" >&6; } ;;
4226 xno)
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228$as_echo "unsupported" >&6; } ;;
4229 *)
4230 CC="$CC $ac_cv_prog_cc_c89"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4232$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4233esac
4234if test "x$ac_cv_prog_cc_c89" != xno; then :
d5e0cd6f 4235
d5e0cd6f 4236fi
d5e0cd6f 4237
a24b9f23
MA
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
69e9da00
TM
4243
4244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4250$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4251if ${am_cv_prog_cc_c_o+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253else
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h. */
4256
4257int
4258main ()
4259{
4260
4261 ;
4262 return 0;
4263}
4264_ACEOF
4265 # Make sure it works both with $CC and with simple cc.
4266 # Following AC_PROG_CC_C_O, we do the test twice because some
4267 # compilers refuse to overwrite an existing .o file with -o,
4268 # though they will create one.
4269 am_cv_prog_cc_c_o=yes
4270 for am_i in 1 2; do
4271 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4272 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } \
4276 && test -f conftest2.$ac_objext; then
4277 : OK
4278 else
4279 am_cv_prog_cc_c_o=no
4280 break
4281 fi
4282 done
4283 rm -f core conftest*
4284 unset am_i
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4287$as_echo "$am_cv_prog_cc_c_o" >&6; }
4288if test "$am_cv_prog_cc_c_o" != yes; then
4289 # Losing compiler, so override with the script.
4290 # FIXME: It is wrong to rewrite CC.
4291 # But if we don't then we get into trouble of one sort or another.
4292 # A longer-term fix would be to have automake use am__CC in this case,
4293 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4294 CC="$am_aux_dir/compile $CC"
4295fi
4296ac_ext=c
4297ac_cpp='$CPP $CPPFLAGS'
4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
a24b9f23
MA
4302DEPDIR="${am__leading_dot}deps"
4303
4304ac_config_commands="$ac_config_commands depfiles"
d5e0cd6f 4305
0cd94b5e
TM
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4307$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4308cat > confinc.mk << 'END'
a24b9f23 4309am__doit:
0cd94b5e 4310 @echo this is the am__doit target >confinc.out
a24b9f23
MA
4311.PHONY: am__doit
4312END
a24b9f23
MA
4313am__include="#"
4314am__quote=
0cd94b5e
TM
4315# BSD make does it like this.
4316echo '.include "confinc.mk" # ignored' > confmf.BSD
4317# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4318echo 'include confinc.mk # ignored' > confmf.GNU
4319_am_result=no
4320for s in GNU BSD; do
4321 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4322 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }
4326 case $?:`cat confinc.out 2>/dev/null` in #(
4327 '0:this is the am__doit target') :
4328 case $s in #(
4329 BSD) :
4330 am__include='.include' am__quote='"' ;; #(
4331 *) :
4332 am__include='include' am__quote='' ;;
4333esac ;; #(
4334 *) :
a24b9f23 4335 ;;
0cd94b5e
TM
4336esac
4337 if test "$am__include" != "#"; then
4338 _am_result="yes ($s style)"
4339 break
4340 fi
4341done
4342rm -f confinc.* confmf.*
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4344$as_echo "${_am_result}" >&6; }
a24b9f23
MA
4345
4346# Check whether --enable-dependency-tracking was given.
4347if test "${enable_dependency_tracking+set}" = set; then :
4348 enableval=$enable_dependency_tracking;
4a70cb10 4349fi
d5e0cd6f 4350
a24b9f23
MA
4351if test "x$enable_dependency_tracking" != xno; then
4352 am_depcomp="$ac_aux_dir/depcomp"
4353 AMDEPBACKSLASH='\'
4354 am__nodep='_no'
4355fi
4356 if test "x$enable_dependency_tracking" != xno; then
4357 AMDEP_TRUE=
4358 AMDEP_FALSE='#'
4359else
4360 AMDEP_TRUE='#'
4361 AMDEP_FALSE=
4362fi
d5e0cd6f 4363
d5e0cd6f 4364
d5e0cd6f 4365
a24b9f23 4366depcc="$CC" am_compiler_list=
d5e0cd6f 4367
a24b9f23
MA
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4369$as_echo_n "checking dependency style of $depcc... " >&6; }
4370if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372else
4373 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4374 # We make a subdir and do the tests there. Otherwise we can end up
4375 # making bogus files that we don't know about and never remove. For
4376 # instance it was reported that on HP-UX the gcc test will end up
4377 # making a dummy file named 'D' -- because '-MD' means "put the output
4378 # in D".
4379 rm -rf conftest.dir
4380 mkdir conftest.dir
4381 # Copy depcomp to subdir because otherwise we won't find it if we're
4382 # using a relative directory.
4383 cp "$am_depcomp" conftest.dir
4384 cd conftest.dir
4385 # We will build objects and dependencies in a subdirectory because
4386 # it helps to detect inapplicable dependency modes. For instance
4387 # both Tru64's cc and ICC support -MD to output dependencies as a
4388 # side effect of compilation, but ICC will put the dependencies in
4389 # the current directory while Tru64 will put them in the object
4390 # directory.
4391 mkdir sub
4a70cb10 4392
a24b9f23
MA
4393 am_cv_CC_dependencies_compiler_type=none
4394 if test "$am_compiler_list" = ""; then
4395 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4396 fi
4397 am__universal=false
4398 case " $depcc " in #(
4399 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4400 esac
d5e0cd6f 4401
a24b9f23
MA
4402 for depmode in $am_compiler_list; do
4403 # Setup a source with many dependencies, because some compilers
4404 # like to wrap large dependency lists on column 80 (with \), and
4405 # we should not choose a depcomp mode which is confused by this.
4406 #
4407 # We need to recreate these files for each test, as the compiler may
4408 # overwrite some of them when testing with obscure command lines.
4409 # This happens at least with the AIX C compiler.
4410 : > sub/conftest.c
4411 for i in 1 2 3 4 5 6; do
4412 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4413 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4414 # Solaris 10 /bin/sh.
4415 echo '/* dummy */' > sub/conftst$i.h
4416 done
4417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
529be52a 4418
a24b9f23
MA
4419 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4420 # mode. It turns out that the SunPro C++ compiler does not properly
4421 # handle '-M -o', and we need to detect this. Also, some Intel
4422 # versions had trouble with output in subdirs.
4423 am__obj=sub/conftest.${OBJEXT-o}
4424 am__minus_obj="-o $am__obj"
4425 case $depmode in
4426 gcc)
4427 # This depmode causes a compiler race in universal mode.
4428 test "$am__universal" = false || continue
4429 ;;
4430 nosideeffect)
4431 # After this tag, mechanisms are not by side-effect, so they'll
4432 # only be used when explicitly requested.
4433 if test "x$enable_dependency_tracking" = xyes; then
4434 continue
4435 else
4436 break
4437 fi
4438 ;;
4439 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4440 # This compiler won't grok '-c -o', but also, the minuso test has
4441 # not run yet. These depmodes are late enough in the game, and
4442 # so weak that their functioning should not be impacted.
4443 am__obj=conftest.${OBJEXT-o}
4444 am__minus_obj=
4445 ;;
4446 none) break ;;
4447 esac
4448 if depmode=$depmode \
4449 source=sub/conftest.c object=$am__obj \
4450 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4451 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4452 >/dev/null 2>conftest.err &&
4453 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4455 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4457 # icc doesn't choke on unknown options, it will just issue warnings
4458 # or remarks (even with -Werror). So we grep stderr for any message
4459 # that says an option was ignored or not supported.
4460 # When given -MP, icc 7.0 and 7.1 complain thusly:
4461 # icc: Command line warning: ignoring option '-M'; no argument required
4462 # The diagnosis changed in icc 8.0:
4463 # icc: Command line remark: option '-MP' not supported
4464 if (grep 'ignoring option' conftest.err ||
4465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4466 am_cv_CC_dependencies_compiler_type=$depmode
4467 break
4468 fi
4469 fi
4470 done
529be52a 4471
a24b9f23
MA
4472 cd ..
4473 rm -rf conftest.dir
4474else
4475 am_cv_CC_dependencies_compiler_type=none
d5e0cd6f 4476fi
d5e0cd6f 4477
4a70cb10 4478fi
a24b9f23
MA
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4480$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4481CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9d6af565 4482
a24b9f23
MA
4483 if
4484 test "x$enable_dependency_tracking" != xno \
4485 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4486 am__fastdepCC_TRUE=
4487 am__fastdepCC_FALSE='#'
4488else
4489 am__fastdepCC_TRUE='#'
4490 am__fastdepCC_FALSE=
4491fi
529be52a 4492
529be52a 4493
529be52a 4494
a24b9f23 4495# Suppress warnings about --datarootdir
529be52a 4496
529be52a 4497
a24b9f23
MA
4498# If we have gcc, and AC_PROG_CC changed the flags, then we know the
4499# user did not specify any flags. Add warnings in this case.
4500if test "$GCC" = "yes"; then
4501 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4502 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4503 fi
4a70cb10 4504fi
4a70cb10 4505
6913a589
FD
4506# We can have some flags to pass to bind configure
4507BINDCONFIG=
b4a10c76
FD
4508if test "$cross_compiling" = "yes"; then
4509 BINDCONFIG="--host=$host"
4510fi
c87db1b1
FD
4511# Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4512# and as there can be a space inside an argument some magic is required.
4513# This sets $1 ... $N to my_configure_args, arg1 ... argN
4514eval "set my_configure_args $ac_configure_args"
4515# remove my_configure_args, i.e., the guard against empty $ac_configure_args
4516shift
4517# iterate on arguments and copying 'arg' when it begins by an upper case
4518for a
4519do
4520 case $a in
4521 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4522 esac
4523done
b4a10c76 4524
6913a589 4525
a24b9f23
MA
4526# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4527# parts of the IPv6 Advanced Socket API as a result. This is stupid
4528# as it breaks how the two halves (Basic and Advanced) of the IPv6
4529# Socket API were designed to be used but we have to live with it.
4530# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4a70cb10 4531
a24b9f23
MA
4532ac_ext=c
4533ac_cpp='$CPP $CPPFLAGS'
4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4538$as_echo_n "checking how to run the C preprocessor... " >&6; }
4539# On Suns, sometimes $CPP names a directory.
4540if test -n "$CPP" && test -d "$CPP"; then
4541 CPP=
4542fi
4543if test -z "$CPP"; then
4544 if ${ac_cv_prog_CPP+:} false; then :
4545 $as_echo_n "(cached) " >&6
4a70cb10 4546else
a24b9f23
MA
4547 # Double quotes because CPP needs to be expanded
4548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4549 do
4550 ac_preproc_ok=false
4551for ac_c_preproc_warn_flag in '' yes
4552do
4553 # Use a header file that comes with gcc, so configuring glibc
4554 # with a fresh cross-compiler works.
4555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556 # <limits.h> exists even on freestanding compilers.
4557 # On the NeXT, cc -E runs the code through the compiler's parser,
4558 # not just through cpp. "Syntax error" is here to catch this case.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9d6af565 4560/* end confdefs.h. */
a24b9f23
MA
4561#ifdef __STDC__
4562# include <limits.h>
4563#else
4564# include <assert.h>
4565#endif
4566 Syntax error
529be52a 4567_ACEOF
a24b9f23 4568if ac_fn_c_try_cpp "$LINENO"; then :
9d6af565 4569
9d6af565 4570else
a24b9f23
MA
4571 # Broken: fails on valid input.
4572continue
529be52a 4573fi
a24b9f23 4574rm -f conftest.err conftest.i conftest.$ac_ext
4a70cb10 4575
a24b9f23
MA
4576 # OK, works on sane cases. Now check whether nonexistent headers
4577 # can be detected and how.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580#include <ac_nonexistent.h>
4581_ACEOF
4582if ac_fn_c_try_cpp "$LINENO"; then :
4583 # Broken: success on invalid input.
4584continue
4a70cb10 4585else
a24b9f23
MA
4586 # Passes both tests.
4587ac_preproc_ok=:
4588break
9d6af565 4589fi
a24b9f23 4590rm -f conftest.err conftest.i conftest.$ac_ext
9d6af565 4591
a24b9f23
MA
4592done
4593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594rm -f conftest.i conftest.err conftest.$ac_ext
4595if $ac_preproc_ok; then :
4596 break
9d6af565 4597fi
529be52a 4598
a24b9f23
MA
4599 done
4600 ac_cv_prog_CPP=$CPP
529be52a 4601
a24b9f23
MA
4602fi
4603 CPP=$ac_cv_prog_CPP
529be52a 4604else
a24b9f23
MA
4605 ac_cv_prog_CPP=$CPP
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4608$as_echo "$CPP" >&6; }
4609ac_preproc_ok=false
4610for ac_c_preproc_warn_flag in '' yes
4611do
4612 # Use a header file that comes with gcc, so configuring glibc
4613 # with a fresh cross-compiler works.
4614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 # <limits.h> exists even on freestanding compilers.
4616 # On the NeXT, cc -E runs the code through the compiler's parser,
4617 # not just through cpp. "Syntax error" is here to catch this case.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529be52a 4619/* end confdefs.h. */
a24b9f23
MA
4620#ifdef __STDC__
4621# include <limits.h>
4622#else
4623# include <assert.h>
4624#endif
4625 Syntax error
4626_ACEOF
4627if ac_fn_c_try_cpp "$LINENO"; then :
529be52a 4628
a24b9f23
MA
4629else
4630 # Broken: fails on valid input.
4631continue
4a70cb10 4632fi
a24b9f23 4633rm -f conftest.err conftest.i conftest.$ac_ext
529be52a 4634
a24b9f23
MA
4635 # OK, works on sane cases. Now check whether nonexistent headers
4636 # can be detected and how.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h. */
4639#include <ac_nonexistent.h>
4640_ACEOF
4641if ac_fn_c_try_cpp "$LINENO"; then :
4642 # Broken: success on invalid input.
4643continue
529be52a 4644else
a24b9f23
MA
4645 # Passes both tests.
4646ac_preproc_ok=:
4647break
4a70cb10 4648fi
a24b9f23 4649rm -f conftest.err conftest.i conftest.$ac_ext
4a70cb10 4650
a24b9f23
MA
4651done
4652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653rm -f conftest.i conftest.err conftest.$ac_ext
4654if $ac_preproc_ok; then :
4655
4656else
4657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4659as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4660See \`config.log' for more details" "$LINENO" 5; }
529be52a 4661fi
529be52a 4662
a24b9f23
MA
4663ac_ext=c
4664ac_cpp='$CPP $CPPFLAGS'
4665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667ac_compiler_gnu=$ac_cv_c_compiler_gnu
529be52a
SR
4668
4669
a24b9f23
MA
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672if ${ac_cv_path_GREP+:} false; then :
4673 $as_echo_n "(cached) " >&6
d5e0cd6f 4674else
a24b9f23
MA
4675 if test -z "$GREP"; then
4676 ac_path_GREP_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in grep ggrep; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p "$ac_path_GREP" || continue
4687# Check for GNU ac_path_GREP and select it if it is found.
4688 # Check for GNU $ac_path_GREP
4689case `"$ac_path_GREP" --version 2>&1` in
4690*GNU*)
4691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4692*)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'GREP' >> "conftest.nl"
4701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_GREP="$ac_path_GREP"
4707 ac_path_GREP_max=$ac_count
4708 fi
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
529be52a 4713esac
529be52a 4714
a24b9f23
MA
4715 $ac_path_GREP_found && break 3
4716 done
4717 done
4718 done
4719IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_GREP"; then
4721 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4722 fi
d5e0cd6f 4723else
a24b9f23
MA
4724 ac_cv_path_GREP=$GREP
4725fi
4a70cb10 4726
d5e0cd6f 4727fi
a24b9f23
MA
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729$as_echo "$ac_cv_path_GREP" >&6; }
4730 GREP="$ac_cv_path_GREP"
4a70cb10 4731
d5e0cd6f 4732
a24b9f23
MA
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734$as_echo_n "checking for egrep... " >&6; }
4735if ${ac_cv_path_EGREP+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737else
4738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739 then ac_cv_path_EGREP="$GREP -E"
4740 else
4741 if test -z "$EGREP"; then
4742 ac_path_EGREP_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in egrep; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4752 as_fn_executable_p "$ac_path_EGREP" || continue
4753# Check for GNU ac_path_EGREP and select it if it is found.
4754 # Check for GNU $ac_path_EGREP
4755case `"$ac_path_EGREP" --version 2>&1` in
4756*GNU*)
4757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4758*)
4759 ac_count=0
4760 $as_echo_n 0123456789 >"conftest.in"
4761 while :
4762 do
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'EGREP' >> "conftest.nl"
4767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_EGREP="$ac_path_EGREP"
4773 ac_path_EGREP_max=$ac_count
4774 fi
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4777 done
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779esac
d5e0cd6f 4780
a24b9f23
MA
4781 $ac_path_EGREP_found && break 3
4782 done
4783 done
4784 done
4785IFS=$as_save_IFS
4786 if test -z "$ac_cv_path_EGREP"; then
4787 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788 fi
4789else
4790 ac_cv_path_EGREP=$EGREP
529be52a 4791fi
4a70cb10 4792
a24b9f23 4793 fi
529be52a 4794fi
a24b9f23
MA
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796$as_echo "$ac_cv_path_EGREP" >&6; }
4797 EGREP="$ac_cv_path_EGREP"
4a70cb10
TM
4798
4799
a24b9f23
MA
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4801$as_echo_n "checking for ANSI C header files... " >&6; }
4802if ${ac_cv_header_stdc+:} false; then :
4803 $as_echo_n "(cached) " >&6
d5e0cd6f 4804else
a24b9f23 4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5e0cd6f 4806/* end confdefs.h. */
a24b9f23
MA
4807#include <stdlib.h>
4808#include <stdarg.h>
4809#include <string.h>
4810#include <float.h>
4811
529be52a
SR
4812int
4813main ()
4814{
4a70cb10 4815
529be52a
SR
4816 ;
4817 return 0;
4818}
4819_ACEOF
a24b9f23
MA
4820if ac_fn_c_try_compile "$LINENO"; then :
4821 ac_cv_header_stdc=yes
4822else
4823 ac_cv_header_stdc=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826
4827if test $ac_cv_header_stdc = yes; then
4828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529be52a 4830/* end confdefs.h. */
a24b9f23 4831#include <string.h>
d5e0cd6f 4832
d5e0cd6f 4833_ACEOF
a24b9f23
MA
4834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835 $EGREP "memchr" >/dev/null 2>&1; then :
d5e0cd6f 4836
a24b9f23
MA
4837else
4838 ac_cv_header_stdc=no
4839fi
4840rm -f conftest*
4a70cb10
TM
4841
4842fi
d5e0cd6f 4843
a24b9f23
MA
4844if test $ac_cv_header_stdc = yes; then
4845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847/* end confdefs.h. */
4848#include <stdlib.h>
529be52a 4849
a24b9f23
MA
4850_ACEOF
4851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4852 $EGREP "free" >/dev/null 2>&1; then :
4a70cb10 4853
a24b9f23
MA
4854else
4855 ac_cv_header_stdc=no
d5e0cd6f 4856fi
a24b9f23 4857rm -f conftest*
d5e0cd6f 4858
d5e0cd6f 4859fi
d5e0cd6f 4860
a24b9f23
MA
4861if test $ac_cv_header_stdc = yes; then
4862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4863 if test "$cross_compiling" = yes; then :
4864 :
4865else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h. */
4868#include <ctype.h>
4869#include <stdlib.h>
4870#if ((' ' & 0x0FF) == 0x020)
4871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4873#else
4874# define ISLOWER(c) \
4875 (('a' <= (c) && (c) <= 'i') \
4876 || ('j' <= (c) && (c) <= 'r') \
4877 || ('s' <= (c) && (c) <= 'z'))
4878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4879#endif
d5e0cd6f 4880
a24b9f23 4881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4a70cb10
TM
4882int
4883main ()
4884{
a24b9f23
MA
4885 int i;
4886 for (i = 0; i < 256; i++)
4887 if (XOR (islower (i), ISLOWER (i))
4888 || toupper (i) != TOUPPER (i))
4889 return 2;
4a70cb10
TM
4890 return 0;
4891}
d5e0cd6f 4892_ACEOF
a24b9f23
MA
4893if ac_fn_c_try_run "$LINENO"; then :
4894
529be52a 4895else
a24b9f23
MA
4896 ac_cv_header_stdc=no
4897fi
4898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4899 conftest.$ac_objext conftest.beam conftest.$ac_ext
4900fi
529be52a 4901
529be52a 4902fi
a24b9f23
MA
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4905$as_echo "$ac_cv_header_stdc" >&6; }
4906if test $ac_cv_header_stdc = yes; then
4907
4908$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d5e0cd6f 4909
529be52a 4910fi
a24b9f23
MA
4911
4912# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4913for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4914 inttypes.h stdint.h unistd.h
4915do :
4916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4917ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4918"
4919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4920 cat >>confdefs.h <<_ACEOF
4921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4922_ACEOF
4923
4924fi
4925
4926done
4927
4928
4929
4930 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4931if test "x$ac_cv_header_minix_config_h" = xyes; then :
4932 MINIX=yes
529be52a 4933else
a24b9f23
MA
4934 MINIX=
4935fi
4936
4937
4938 if test "$MINIX" = yes; then
4939
4940$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4941
4942
4943$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4944
529be52a 4945
a24b9f23 4946$as_echo "#define _MINIX 1" >>confdefs.h
529be52a 4947
a24b9f23
MA
4948 fi
4949
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4952$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4953if ${ac_cv_safe_to_define___extensions__+:} false; then :
4954 $as_echo_n "(cached) " >&6
529be52a 4955else
a24b9f23 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529be52a 4957/* end confdefs.h. */
a24b9f23
MA
4958
4959# define __EXTENSIONS__ 1
4960 $ac_includes_default
4a70cb10
TM
4961int
4962main ()
4963{
d5e0cd6f 4964
4a70cb10
TM
4965 ;
4966 return 0;
4967}
4968_ACEOF
a24b9f23
MA
4969if ac_fn_c_try_compile "$LINENO"; then :
4970 ac_cv_safe_to_define___extensions__=yes
4a70cb10 4971else
a24b9f23 4972 ac_cv_safe_to_define___extensions__=no
4a70cb10
TM
4973fi
4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5e0cd6f 4975fi
a24b9f23
MA
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4977$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4978 test $ac_cv_safe_to_define___extensions__ = yes &&
4979 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d5e0cd6f 4980
a24b9f23 4981 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4a70cb10 4982
a24b9f23 4983 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
529be52a 4984
a24b9f23 4985 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
529be52a 4986
a24b9f23 4987 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4a70cb10 4988
529be52a
SR
4989
4990
a24b9f23
MA
4991if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4993set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995$as_echo_n "checking for $ac_word... " >&6; }
4996if ${ac_cv_prog_RANLIB+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 if test -n "$RANLIB"; then
5000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5001else
5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013done
5014 done
5015IFS=$as_save_IFS
5016
5017fi
5018fi
5019RANLIB=$ac_cv_prog_RANLIB
5020if test -n "$RANLIB"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5022$as_echo "$RANLIB" >&6; }
5023else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025$as_echo "no" >&6; }
529be52a
SR
5026fi
5027
a24b9f23
MA
5028
5029fi
5030if test -z "$ac_cv_prog_RANLIB"; then
5031 ac_ct_RANLIB=$RANLIB
5032 # Extract the first word of "ranlib", so it can be a program name with args.
5033set dummy ranlib; ac_word=$2
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035$as_echo_n "checking for $ac_word... " >&6; }
5036if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5037 $as_echo_n "(cached) " >&6
529be52a 5038else
a24b9f23
MA
5039 if test -n "$ac_ct_RANLIB"; then
5040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d5e0cd6f 5041else
a24b9f23
MA
5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_prog_ac_ct_RANLIB="ranlib"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053done
5054 done
5055IFS=$as_save_IFS
529be52a 5056
d5e0cd6f 5057fi
d5e0cd6f 5058fi
a24b9f23
MA
5059ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5060if test -n "$ac_ct_RANLIB"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5062$as_echo "$ac_ct_RANLIB" >&6; }
5063else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065$as_echo "no" >&6; }
5066fi
5067
5068 if test "x$ac_ct_RANLIB" = x; then
5069 RANLIB=":"
5070 else
5071 case $cross_compiling:$ac_tool_warned in
5072yes:)
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075ac_tool_warned=yes ;;
5076esac
5077 RANLIB=$ac_ct_RANLIB
5078 fi
529be52a 5079else
a24b9f23
MA
5080 RANLIB="$ac_cv_prog_RANLIB"
5081fi
5082
e619bd67
FD
5083
5084# Extract the first word of "ar", so it can be a program name with args.
5085set dummy ar; ac_word=$2
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087$as_echo_n "checking for $ac_word... " >&6; }
5088if ${ac_cv_path_AR+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090else
5091 case $AR in
5092 [\\/]* | ?:[\\/]*)
5093 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5094 ;;
5095 *)
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107done
5108 done
5109IFS=$as_save_IFS
5110
5111 ;;
5112esac
5113fi
5114AR=$ac_cv_path_AR
5115if test -n "$AR"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5117$as_echo "$AR" >&6; }
5118else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
5121fi
5122
5123
5124
5125
cab61f43
FD
5126if test "X$AR" = "X"; then
5127 as_fn_error $? "
5128ar program not found. Please fix your PATH to include the directory in
5129which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5130fi
5131
a24b9f23 5132ac_config_headers="$ac_config_headers includes/config.h"
d5e0cd6f 5133
529be52a 5134
a24b9f23
MA
5135# we sometimes need to know byte order for building packets
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5137$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5138if ${ac_cv_c_bigendian+:} false; then :
5139 $as_echo_n "(cached) " >&6
4a70cb10 5140else
a24b9f23
MA
5141 ac_cv_c_bigendian=unknown
5142 # See if we're dealing with a universal compiler.
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5e0cd6f 5144/* end confdefs.h. */
a24b9f23
MA
5145#ifndef __APPLE_CC__
5146 not a universal capable compiler
5147 #endif
5148 typedef int dummy;
5149
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"; then :
5152
5153 # Check for potential -arch flags. It is not universal unless
5154 # there are at least two -arch flags with different values.
5155 ac_arch=
5156 ac_prev=
5157 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5158 if test -n "$ac_prev"; then
5159 case $ac_word in
5160 i?86 | x86_64 | ppc | ppc64)
5161 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5162 ac_arch=$ac_word
5163 else
5164 ac_cv_c_bigendian=universal
5165 break
5166 fi
5167 ;;
5168 esac
5169 ac_prev=
5170 elif test "x$ac_word" = "x-arch"; then
5171 ac_prev=arch
5172 fi
5173 done
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 if test $ac_cv_c_bigendian = unknown; then
5177 # See if sys/param.h defines the BYTE_ORDER macro.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h. */
5180#include <sys/types.h>
5181 #include <sys/param.h>
5182
d5e0cd6f
DH
5183int
5184main ()
5185{
a24b9f23
MA
5186#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5187 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5188 && LITTLE_ENDIAN)
5189 bogus endian macros
5190 #endif
d5e0cd6f
DH
5191
5192 ;
5193 return 0;
5194}
5195_ACEOF
a24b9f23
MA
5196if ac_fn_c_try_compile "$LINENO"; then :
5197 # It does; now see whether it defined to BIG_ENDIAN or not.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h. */
5200#include <sys/types.h>
5201 #include <sys/param.h>
d5e0cd6f 5202
a24b9f23
MA
5203int
5204main ()
5205{
5206#if BYTE_ORDER != BIG_ENDIAN
5207 not big endian
5208 #endif
d5e0cd6f 5209
a24b9f23
MA
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"; then :
5215 ac_cv_c_bigendian=yes
5216else
5217 ac_cv_c_bigendian=no
529be52a 5218fi
529be52a 5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
529be52a 5220fi
a24b9f23
MA
5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 fi
5223 if test $ac_cv_c_bigendian = unknown; then
5224 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h. */
5227#include <limits.h>
d5e0cd6f 5228
a24b9f23
MA
5229int
5230main ()
5231{
5232#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5233 bogus endian macros
5234 #endif
d5e0cd6f 5235
a24b9f23
MA
5236 ;
5237 return 0;
5238}
529be52a 5239_ACEOF
a24b9f23
MA
5240if ac_fn_c_try_compile "$LINENO"; then :
5241 # It does; now see whether it defined to _BIG_ENDIAN or not.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529be52a 5243/* end confdefs.h. */
a24b9f23
MA
5244#include <limits.h>
5245
529be52a
SR
5246int
5247main ()
5248{
a24b9f23
MA
5249#ifndef _BIG_ENDIAN
5250 not big endian
5251 #endif
5252
529be52a
SR
5253 ;
5254 return 0;
5255}
5256_ACEOF
a24b9f23
MA
5257if ac_fn_c_try_compile "$LINENO"; then :
5258 ac_cv_c_bigendian=yes
529be52a 5259else
a24b9f23
MA
5260 ac_cv_c_bigendian=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 if test $ac_cv_c_bigendian = unknown; then
5267 # Compile a test program.
5268 if test "$cross_compiling" = yes; then :
5269 # Try to guess by grepping values from an object file.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h. */
5272short int ascii_mm[] =
5273 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5274 short int ascii_ii[] =
5275 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5276 int use_ascii (int i) {
5277 return ascii_mm[i] + ascii_ii[i];
5278 }
5279 short int ebcdic_ii[] =
5280 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5281 short int ebcdic_mm[] =
5282 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5283 int use_ebcdic (int i) {
5284 return ebcdic_mm[i] + ebcdic_ii[i];
5285 }
5286 extern int foo;
d5e0cd6f 5287
a24b9f23
MA
5288int
5289main ()
5290{
5291return use_ascii (foo) == use_ebcdic (foo);
5292 ;
5293 return 0;
5294}
5295_ACEOF
5296if ac_fn_c_try_compile "$LINENO"; then :
5297 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5298 ac_cv_c_bigendian=yes
5299 fi
5300 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5301 if test "$ac_cv_c_bigendian" = unknown; then
5302 ac_cv_c_bigendian=no
5303 else
5304 # finding both strings is unlikely to happen, but who knows?
5305 ac_cv_c_bigendian=unknown
5306 fi
5307 fi
4a70cb10 5308fi
529be52a 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
529be52a 5310else
a24b9f23 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529be52a
SR
5312/* end confdefs.h. */
5313$ac_includes_default
5314int
5315main ()
5316{
a24b9f23
MA
5317
5318 /* Are we little or big endian? From Harbison&Steele. */
5319 union
5320 {
5321 long int l;
5322 char c[sizeof (long int)];
5323 } u;
5324 u.l = 1;
5325 return u.c[sizeof (long int) - 1] == 1;
d5e0cd6f 5326
529be52a
SR
5327 ;
5328 return 0;
5329}
5330_ACEOF
a24b9f23
MA
5331if ac_fn_c_try_run "$LINENO"; then :
5332 ac_cv_c_bigendian=no
529be52a 5333else
a24b9f23
MA
5334 ac_cv_c_bigendian=yes
5335fi
5336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337 conftest.$ac_objext conftest.beam conftest.$ac_ext
4a70cb10 5338fi
d5e0cd6f 5339
a24b9f23 5340 fi
4a70cb10 5341fi
a24b9f23
MA
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5343$as_echo "$ac_cv_c_bigendian" >&6; }
5344 case $ac_cv_c_bigendian in #(
5345 yes)
5346 byte_order=BIG_ENDIAN
5347;; #(
5348 no)
5349 byte_order=LITTLE_ENDIAN
5350 ;; #(
5351 universal)
d5e0cd6f 5352
a24b9f23
MA
5353$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5354
5355 ;; #(
5356 *)
5357 as_fn_error $? "unknown endianness
5358 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5359 esac
d5e0cd6f 5360
9d6af565 5361
529be52a 5362cat >>confdefs.h <<_ACEOF
a24b9f23 5363#define DHCP_BYTE_ORDER $byte_order
529be52a 5364_ACEOF
4a70cb10 5365
4a70cb10 5366
a24b9f23
MA
5367# Optional compile-time DEBUGging.
5368# Check whether --enable-debug was given.
5369if test "${enable_debug+set}" = set; then :
45adf35c
TM
5370 enableval=$enable_debug; case "${enableval}" in
5371 yes) enable_debug=yes
5372
5373$as_echo "#define DEBUG 1" >>confdefs.h
5374
9a111ee8 5375 # Just override CFLAGS totally to remove optimization.
45adf35c
TM
5376 CFLAGS="-g";;
5377 no) enable_debug=no ;;
5378 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5379 esac
a24b9f23
MA
5380else
5381 enable_debug=no
5382fi
5383
9d6af565 5384
a24b9f23
MA
5385# XXX: there are actually quite a lot more DEBUG_ features we could enable,
5386# but I don't want to pollute the --help space.
5387#
5388#/* #define DEBUG_TOKENS */
5389#/* #define DEBUG_PACKET */
5390#/* #define DEBUG_EXPRESSIONS */
5391#/* #define DEBUG_FIND_LEASE */
5392#/* #define DEBUG_EXPRESSION_PARSE */
5393#/* #define DEBUG_CLASS_MATCHING */
5394#/* #define DEBUG_MEMORY_LEAKAGE */
5395#/* #define DEBUG_MALLOC_POOL */
5396#/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5397#/* #define DEBUG_RC_HISTORY */
5398#/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5399#/* #define RC_HISTORY_MAX 10240 */
5400#/* #define POINTER_DEBUG */
5401#/* #define DEBUG_FAILOVER_MESSAGES */
5402#/* #define DEBUG_FAILOVER_TIMING */
5403#/* #define DEBUG_DUMP_ALL_LEASES */
9d6af565 5404
a24b9f23
MA
5405# Failover optional compile-time feature.
5406# Check whether --enable-failover was given.
5407if test "${enable_failover+set}" = set; then :
5408 enableval=$enable_failover;
9d6af565 5409fi
9d6af565 5410
a24b9f23
MA
5411# Failover is on by default, so define if it is not explicitly disabled.
5412if test "$enable_failover" != "no"; then
e82906fc 5413 enable_failover="yes"
a24b9f23
MA
5414
5415$as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
9d6af565 5416
4a70cb10 5417fi
9d6af565 5418
a24b9f23
MA
5419# execute() support.
5420# Check whether --enable-execute was given.
5421if test "${enable_execute+set}" = set; then :
5422 enableval=$enable_execute;
4a70cb10 5423fi
9d6af565 5424
a24b9f23
MA
5425# execute() is on by default, so define if it is not explicitly disabled.
5426if test "$enable_execute" != "no" ; then
e82906fc 5427 enable_execute="yes"
9d6af565 5428
a24b9f23 5429$as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
9d6af565 5430
a24b9f23 5431fi
9d6af565 5432
a24b9f23
MA
5433# Server tracing support.
5434# Check whether --enable-tracing was given.
5435if test "${enable_tracing+set}" = set; then :
5436 enableval=$enable_tracing;
5437fi
5438
5439# tracing is on by default, so define if it is not explicitly disabled.
5440if test "$enable_tracing" != "no" ; then
9d6af565 5441
a24b9f23 5442$as_echo "#define TRACING 1" >>confdefs.h
9d6af565 5443
4a70cb10 5444fi
9d6af565 5445
4406f9b0 5446# Delayed-ack feature support.
a24b9f23
MA
5447# Check whether --enable-delayed_ack was given.
5448if test "${enable_delayed_ack+set}" = set; then :
5449 enableval=$enable_delayed_ack;
4a70cb10
TM
5450fi
5451
4406f9b0
TM
5452if test "$enable_delayed_ack" != "no"; then
5453 enable_delayed_ack="yes"
4a70cb10 5454
a24b9f23 5455$as_echo "#define DELAYED_ACK 1" >>confdefs.h
9d6af565 5456
a24b9f23 5457fi
9d6af565 5458
a24b9f23
MA
5459# DHCPv6 optional compile-time feature.
5460# Check whether --enable-dhcpv6 was given.
5461if test "${enable_dhcpv6+set}" = set; then :
5462 enableval=$enable_dhcpv6;
5463fi
8cc64a89 5464
a24b9f23
MA
5465# DHCPv6 is on by default, so define if it is not explicitly disabled.
5466if test "$enable_dhcpv6" != "no"; then
e82906fc 5467 enable_dhcpv6="yes"
d5e0cd6f 5468
a24b9f23 5469$as_echo "#define DHCPv6 1" >>confdefs.h
6e999c3c 5470
a37c9dd1 5471fi
a37c9dd1 5472
785c1a51
FD
5473# DHCPv4o6 optional compile-time feature.
5474# Check whether --enable-dhcpv4o6 was given.
5475if test "${enable_dhcpv4o6+set}" = set; then :
5476 enableval=$enable_dhcpv4o6;
5477fi
5478
5479# DHCPv4o6 is off by default, so define if it is explicitly enabled.
5480if test "$enable_dhcpv4o6" = "yes"; then
5481 # DHCPv4o6 requires DHCPv6
5482 if test "$enable_dhcpv6" = "no"; then
5483 as_fn_error $? "dhcpv4o6 requires dhcpv6" "$LINENO" 5
5484 fi
785c1a51
FD
5485
5486$as_echo "#define DHCP4o6 1" >>confdefs.h
5487
4406f9b0
TM
5488else
5489 # so we can report below
5490 enable_dhcpv4o6="no"
785c1a51
FD
5491fi
5492
563f0b8a
FD
5493# Relay port (draft-ietf-dhc-relay-port-10.txt) optional compile-time feature.
5494# Check whether --enable-relay-port was given.
5495if test "${enable_relay_port+set}" = set; then :
5496 enableval=$enable_relay_port;
5497fi
5498
5499# Relay port is off by default (for now)
5500if test "$enable_relay_port" = "yes"; then
5501
5502$as_echo "#define RELAY_PORT 1" >>confdefs.h
5503
2f1fd274 5504else
66248390 5505 # so we can report below
e985472a 5506 enable_relay_port="no"
563f0b8a
FD
5507fi
5508
a24b9f23
MA
5509# PARANOIA is off by default (until we can test it with all features)
5510# Check whether --enable-paranoia was given.
5511if test "${enable_paranoia+set}" = set; then :
5512 enableval=$enable_paranoia;
5513fi
4d24561a 5514
a24b9f23
MA
5515# Check whether --enable-early_chroot was given.
5516if test "${enable_early_chroot+set}" = set; then :
5517 enableval=$enable_early_chroot;
4a70cb10 5518fi
529be52a 5519
a24b9f23
MA
5520# If someone enables early chroot, but does not enable paranoia, do so for
5521# them.
5522if test "$enable_paranoia" != "yes" && \
5523 test "$enable_early_chroot" = "yes" ; then
5524 enable_paranoia="yes"
a37c9dd1 5525fi
4d24561a 5526
a24b9f23 5527if test "$enable_paranoia" = "yes" ; then
a37c9dd1 5528
a24b9f23 5529$as_echo "#define PARANOIA 1" >>confdefs.h
4a70cb10 5530
4a70cb10 5531fi
a24b9f23 5532if test "$enable_early_chroot" = "yes" ; then
529be52a 5533
a24b9f23 5534$as_echo "#define EARLY_CHROOT 1" >>confdefs.h
529be52a 5535
a37c9dd1 5536fi
a24b9f23
MA
5537
5538# Check whether --enable-ipv4_pktinfo was given.
5539if test "${enable_ipv4_pktinfo+set}" = set; then :
5540 enableval=$enable_ipv4_pktinfo;
5541fi
5542
5543
5544if test "$enable_ipv4_pktinfo" = "yes"; then
5545
5546$as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
a37c9dd1 5547
529be52a 5548fi
a37c9dd1 5549
a24b9f23
MA
5550# Check whether --enable-use_sockets was given.
5551if test "${enable_use_sockets+set}" = set; then :
5552 enableval=$enable_use_sockets;
a37c9dd1
MA
5553fi
5554
a37c9dd1 5555
a24b9f23 5556if test "$enable_use_sockets" = "yes"; then
a37c9dd1 5557
a24b9f23 5558$as_echo "#define USE_SOCKETS 1" >>confdefs.h
a37c9dd1 5559
a24b9f23 5560fi
6e999c3c 5561
66e40c5d
SR
5562# Include the PID in the log messages. This is useful when there may
5563# be multiple instances of a program.
00e9af8e
SR
5564# This is off by default
5565# Check whether --enable-log_pid was given.
5566if test "${enable_log_pid+set}" = set; then :
5567 enableval=$enable_log_pid;
5568fi
5569
5570if test "$enable_log_pid" = "yes" ; then
5571
5572$as_echo "#define USE_LOG_PID 1" >>confdefs.h
5573
5574fi
5575
3933e2aa
SR
5576# Allow for binary search when inserting v4 leases into queues
5577# Check whether --enable-binary_leases was given.
5578if test "${enable_binary_leases+set}" = set; then :
5579 enableval=$enable_binary_leases;
5580fi
5581
5582# binary_leases is off by default.
5583if test "$enable_binary_leases" = "yes"; then
5584
5585$as_echo "#define BINARY_LEASES 1" >>confdefs.h
5586
e82906fc
TM
5587else
5588 enable_binary_leases="no"
3933e2aa
SR
5589fi
5590
a24b9f23 5591# Testing section
529be52a 5592
bfbe0fd6 5593# Bind Makefile needs to know ATF is not included.
9a2f9db5 5594 if test "foo" = "barr"; then
bfbe0fd6
TM
5595 BIND_ATF_TRUE=
5596 BIND_ATF_FALSE='#'
5597else
5598 BIND_ATF_TRUE='#'
5599 BIND_ATF_FALSE=
5600fi
5601
5602
f2d20b9e 5603DISTCHECK_ATF_CONFIGURE_FLAG=
a24b9f23
MA
5604atf_path="no"
5605
5606# Check whether --with-atf was given.
5607if test "${with_atf+set}" = set; then :
5608 withval=$with_atf; atf_path="$withval"
529be52a 5609fi
4a70cb10 5610
4adcee93 5611if test "$atf_path" != "no" ; then
f2d20b9e 5612 DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=$atf_path"
a24b9f23
MA
5613 # Config path for pkg-config
5614 atf_pcp=""
5615 if test "$atf_path" != "yes" ; then
5616 if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then
5617 atf_pcp=$atf_path/lib/pkgconfig
5618 elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then
5619 atf_pcp=$atf_path/lib64/pkgconfig
5620 fi
5621 else
5622 # Not specified, try some common paths
5623 atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local"
5624 for d in $atf_dirs
5625 do
5626 if test -f $d/lib/pkgconfig/atf-c.pc ; then
5627 atf_pcp=$d/lib/pkgconfig
9a111ee8 5628 atf_path=$d
a24b9f23
MA
5629 elif test -f $d/lib64/pkgconfig/atf-c.pc ; then
5630 atf_pcp=$d/lib64/pkgconfig
9a111ee8 5631 atf_path=$d
a24b9f23
MA
5632 fi
5633 done
5634 fi
9a111ee8 5635
a24b9f23
MA
5636 if test "$atf_pcp" = "" ; then
5637 as_fn_error $? "Unable to find atf files in location specified" "$LINENO" 5
5638 else
cacce092
TM
5639 # Extract the first word of "pkg-config", so it can be a program name with args.
5640set dummy pkg-config; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if ${ac_cv_prog_pkgcfg_found+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$pkgcfg_found"; then
5647 ac_cv_prog_pkgcfg_found="$pkgcfg_found" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_pkgcfg_found="pkg-config"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661 done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666pkgcfg_found=$ac_cv_prog_pkgcfg_found
5667if test -n "$pkgcfg_found"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5669$as_echo "$pkgcfg_found" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675
5676 if test "$pkgcfg_found" = ""; then
5677 as_fn_error $? "Could not locate ATF, pkg-config not installed" "$LINENO" 5
5678 fi
a24b9f23
MA
5679 ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5680 ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
9a111ee8
TM
5681 if test -f $atf_pcp/atf-sh.pc ; then
5682 ATF_BIN="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5683 else
5684 # older versions don't have atf-sh, try usual place
5685 ATF_BIN=$atf_path/bin
5686 fi
5687
6b87c7f2
FD
5688 UNITTESTS=tests
5689
9a111ee8
TM
5690
5691
a24b9f23
MA
5692
5693
5694 fi
529be52a 5695fi
6e999c3c 5696
a24b9f23
MA
5697 if test "$atf_pcp" != ""; then
5698 HAVE_ATF_TRUE=
5699 HAVE_ATF_FALSE='#'
5700else
5701 HAVE_ATF_TRUE='#'
5702 HAVE_ATF_FALSE=
6e999c3c 5703fi
4d24561a 5704
9a111ee8
TM
5705if test -z "$HAVE_ATF_TRUE"; then :
5706
5707$as_echo "#define HAVE_ATF 1" >>confdefs.h
5708
5709fi
a24b9f23 5710
f2d20b9e 5711
a24b9f23
MA
5712###
5713### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5714### need to look there and potentially overwrite by default (but not if
5715### the user configures an alternate value). LOCALSTATEDIR is totally
5716### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5717### they would be insane for suggesting it. We need to look in /var/for
5718### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5719### default.
5720###
5721if test "x$prefix" = xNONE; then
5722 $as_echo_n "checking for prefix by " >&6
5723 # Extract the first word of "dhcpd", so it can be a program name with args.
5724set dummy dhcpd; ac_word=$2
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726$as_echo_n "checking for $ac_word... " >&6; }
5727if ${ac_cv_path_ac_prefix_program+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729else
5730 case $ac_prefix_program in
5731 [\\/]* | ?:[\\/]*)
5732 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
5733 ;;
5734 *)
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
529be52a 5746done
a24b9f23
MA
5747 done
5748IFS=$as_save_IFS
6e999c3c 5749
a24b9f23
MA
5750 ;;
5751esac
5752fi
5753ac_prefix_program=$ac_cv_path_ac_prefix_program
5754if test -n "$ac_prefix_program"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5756$as_echo "$ac_prefix_program" >&6; }
529be52a 5757else
a24b9f23
MA
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
6e999c3c 5761
a24b9f23
MA
5762
5763 if test -n "$ac_prefix_program"; then
5764 prefix=`$as_dirname -- "$ac_prefix_program" ||
5765$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5766 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5767 X"$ac_prefix_program" : 'X\(//\)$' \| \
5768 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5769$as_echo X"$ac_prefix_program" |
5770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5771 s//\1/
5772 q
5773 }
5774 /^X\(\/\/\)[^/].*/{
5775 s//\1/
5776 q
5777 }
5778 /^X\(\/\/\)$/{
5779 s//\1/
5780 q
5781 }
5782 /^X\(\/\).*/{
5783 s//\1/
5784 q
5785 }
5786 s/.*/./; q'`
5787 prefix=`$as_dirname -- "$prefix" ||
5788$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5789 X"$prefix" : 'X\(//\)[^/]' \| \
5790 X"$prefix" : 'X\(//\)$' \| \
5791 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5792$as_echo X"$prefix" |
5793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5794 s//\1/
5795 q
5796 }
5797 /^X\(\/\/\)[^/].*/{
5798 s//\1/
5799 q
5800 }
5801 /^X\(\/\/\)$/{
5802 s//\1/
5803 q
5804 }
5805 /^X\(\/\).*/{
5806 s//\1/
5807 q
5808 }
5809 s/.*/./; q'`
5810 fi
5811fi
4a70cb10 5812
529be52a 5813
a24b9f23
MA
5814# XXX - isn't there SOME WAY to default autoconf to /var instead of
5815# /usr/local/var/no/one/has/this/please/stop/trying?
5816case "$localstatedir" in
5817 '${prefix}/var')
5818 localstatedir=/var
5819 ;;
529be52a 5820esac
6e999c3c 5821
c8f0b32a
MS
5822# Default server configuration file.
5823
5824# Check whether --with-srv-conf-file was given.
5825if test "${with_srv_conf_file+set}" = set; then :
5826 withval=$with_srv_conf_file;
5827cat >>confdefs.h <<_ACEOF
5828#define _PATH_DHCPD_CONF "$withval"
5829_ACEOF
5830
5831fi
5832
5833
a24b9f23
MA
5834# Allow specification of alternate state files
5835
5836# Check whether --with-srv-lease-file was given.
5837if test "${with_srv_lease_file+set}" = set; then :
5838 withval=$with_srv_lease_file;
5839cat >>confdefs.h <<_ACEOF
5840#define _PATH_DHCPD_DB "$withval"
5841_ACEOF
6e999c3c 5842
4a70cb10 5843fi
6e999c3c
SK
5844
5845
6913a589
FD
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5847$as_echo_n "checking for dhcpd.leases location... " >&6; }
a24b9f23
MA
5848if [ "x$with_srv_lease_file" = "x" ] ; then
5849 if [ -d "${localstatedir}/db" ] ; then
5850 with_srv_lease_file="${localstatedir}/db/dhcpd.leases"
5851 elif [ -d "${localstatedir}/state" ] ; then
5852 if [ -d "${localstatedir}/state/dhcp" ] ; then
5853 with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases"
5854 else
5855 with_srv_lease_file="${localstatedir}/state/dhcpd.leases"
5856 fi
5857 elif [ -d "${localstatedir}/lib" ] ; then
5858 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5859 with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases"
5860 else
5861 with_srv_lease_file="${localstatedir}/lib/dhcpd.leases"
5862 fi
5863 elif [ -d "${localstatedir}/etc" ] ; then
5864 with_srv_lease_file="${localstatedir}/etc/dhcpd.leases"
5865 else
5866 with_srv_lease_file="/etc/dhcpd.leases"
5867 fi
5868fi
6913a589
FD
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5870$as_echo "$with_srv_lease_file" >&6; }
529be52a 5871
a24b9f23
MA
5872
5873# Check whether --with-srv6-lease-file was given.
5874if test "${with_srv6_lease_file+set}" = set; then :
5875 withval=$with_srv6_lease_file;
5876cat >>confdefs.h <<_ACEOF
5877#define _PATH_DHCPD6_DB "$withval"
6e999c3c 5878_ACEOF
4d24561a 5879
6e999c3c
SK
5880fi
5881
a24b9f23 5882
6913a589
FD
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5884$as_echo_n "checking for dhcpd6.leases location... " >&6; }
a24b9f23
MA
5885if [ "x$with_srv6_lease_file" = "x" ] ; then
5886 if [ -d "${localstatedir}/db" ] ; then
5887 with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases"
5888 elif [ -d "${localstatedir}/state" ] ; then
5889 if [ -d "${localstatedir}/state/dhcp" ] ; then
5890 with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases"
5891 else
5892 with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases"
5893 fi
5894 elif [ -d "${localstatedir}/lib" ] ; then
5895 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5896 with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases"
5897 else
5898 with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases"
5899 fi
5900 elif [ -d "${localstatedir}/etc" ] ; then
5901 with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases"
5902 else
5903 with_srv6_lease_file="/etc/dhcpd6.leases"
5904 fi
4a70cb10 5905fi
6913a589
FD
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5907$as_echo "$with_srv6_lease_file" >&6; }
6e999c3c 5908
6e999c3c 5909
a24b9f23
MA
5910# Check whether --with-cli-lease-file was given.
5911if test "${with_cli_lease_file+set}" = set; then :
5912 withval=$with_cli_lease_file;
5913cat >>confdefs.h <<_ACEOF
5914#define _PATH_DHCLIENT_DB "$withval"
6e999c3c 5915_ACEOF
fe5b0fdd 5916
fe5b0fdd 5917fi
4d24561a 5918
fe5b0fdd 5919
6913a589
FD
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5921$as_echo_n "checking for dhclient.leases location... " >&6; }
a24b9f23
MA
5922if [ "x$with_cli_lease_file" = "x" ] ; then
5923 if [ -d "${localstatedir}/db" ] ; then
5924 with_cli_lease_file="${localstatedir}/db/dhclient.leases"
5925 elif [ -d "${localstatedir}/state" ] ; then
5926 if [ -d "${localstatedir}/state/dhcp" ] ; then
5927 with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases"
5928 else
5929 with_cli_lease_file="${localstatedir}/state/dhclient.leases"
5930 fi
5931 elif [ -d "${localstatedir}/lib" ] ; then
5932 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5933 with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases"
5934 else
5935 with_cli_lease_file="${localstatedir}/lib/dhclient.leases"
5936 fi
5937 elif [ -d "${localstatedir}/etc" ] ; then
5938 with_cli_lease_file="${localstatedir}/etc/dhclient.leases"
5939 else
5940 with_cli_lease_file="/etc/dhclient.leases"
5941 fi
529be52a 5942fi
6913a589
FD
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5944$as_echo "$with_cli_lease_file" >&6; }
fe5b0fdd 5945
4d24561a 5946
a24b9f23
MA
5947# Check whether --with-cli6-lease-file was given.
5948if test "${with_cli6_lease_file+set}" = set; then :
5949 withval=$with_cli6_lease_file;
5950cat >>confdefs.h <<_ACEOF
5951#define _PATH_DHCLIENT6_DB "$withval"
5952_ACEOF
fe5b0fdd 5953
a24b9f23 5954fi
529be52a 5955
fe5b0fdd 5956
6913a589
FD
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5958$as_echo_n "checking for dhclient6.leases location... " >&6; }
a24b9f23
MA
5959if [ "x$with_cli6_lease_file" = "x" ] ; then
5960 if [ -d "${localstatedir}/db" ] ; then
5961 with_cli6_lease_file="${localstatedir}/db/dhclient6.leases"
5962 elif [ -d "${localstatedir}/state" ] ; then
5963 if [ -d "${localstatedir}/state/dhcp" ] ; then
5964 with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases"
5965 else
5966 with_cli6_lease_file="${localstatedir}/state/dhclient6.leases"
5967 fi
5968 elif [ -d "${localstatedir}/lib" ] ; then
5969 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5970 with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases"
5971 else
5972 with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases"
5973 fi
5974 elif [ -d "${localstatedir}/etc" ] ; then
5975 with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases"
529be52a 5976 else
a24b9f23
MA
5977 with_cli6_lease_file="/etc/dhclient6.leases"
5978 fi
f125dc8b 5979fi
6913a589
FD
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5981$as_echo "$with_cli6_lease_file" >&6; }
a24b9f23
MA
5982
5983
5984# Check whether --with-srv-pid-file was given.
5985if test "${with_srv_pid_file+set}" = set; then :
5986 withval=$with_srv_pid_file;
5987cat >>confdefs.h <<_ACEOF
5988#define _PATH_DHCPD_PID "$withval"
fe5b0fdd
DH
5989_ACEOF
5990
fe5b0fdd 5991fi
4a70cb10
TM
5992
5993
a24b9f23
MA
5994# Check whether --with-srv6-pid-file was given.
5995if test "${with_srv6_pid_file+set}" = set; then :
5996 withval=$with_srv6_pid_file;
5997cat >>confdefs.h <<_ACEOF
5998#define _PATH_DHCPD6_PID "$withval"
fe5b0fdd 5999_ACEOF
fe5b0fdd 6000
fe5b0fdd 6001fi
4d24561a 6002
fe5b0fdd 6003
a24b9f23
MA
6004# Check whether --with-cli-pid-file was given.
6005if test "${with_cli_pid_file+set}" = set; then :
6006 withval=$with_cli_pid_file;
6007cat >>confdefs.h <<_ACEOF
6008#define _PATH_DHCLIENT_PID "$withval"
6009_ACEOF
4d24561a 6010
529be52a 6011fi
f125dc8b 6012
e62b1eb3 6013
a24b9f23
MA
6014# Check whether --with-cli6-pid-file was given.
6015if test "${with_cli6_pid_file+set}" = set; then :
6016 withval=$with_cli6_pid_file;
6017cat >>confdefs.h <<_ACEOF
6018#define _PATH_DHCLIENT6_PID "$withval"
e62b1eb3
DH
6019_ACEOF
6020
529be52a 6021fi
e62b1eb3 6022
a24b9f23
MA
6023
6024# Check whether --with-relay-pid-file was given.
6025if test "${with_relay_pid_file+set}" = set; then :
6026 withval=$with_relay_pid_file;
6027cat >>confdefs.h <<_ACEOF
6028#define _PATH_DHCRELAY_PID "$withval"
c62c07ef 6029_ACEOF
c62c07ef 6030
a24b9f23 6031fi
c62c07ef 6032
c62c07ef 6033
a24b9f23
MA
6034# Check whether --with-relay6-pid-file was given.
6035if test "${with_relay6_pid_file+set}" = set; then :
6036 withval=$with_relay6_pid_file;
6037cat >>confdefs.h <<_ACEOF
6038#define _PATH_DHCRELAY6_PID "$withval"
529be52a 6039_ACEOF
c62c07ef 6040
529be52a 6041fi
c62c07ef 6042
4a70cb10 6043
a24b9f23
MA
6044# Check basic types.
6045ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6046case $ac_cv_c_int8_t in #(
6047 no|yes) ;; #(
6048 *)
c62c07ef 6049
a24b9f23
MA
6050cat >>confdefs.h <<_ACEOF
6051#define int8_t $ac_cv_c_int8_t
529be52a 6052_ACEOF
a24b9f23 6053;;
529be52a 6054esac
c62c07ef 6055
a24b9f23
MA
6056ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6057case $ac_cv_c_int16_t in #(
6058 no|yes) ;; #(
6059 *)
c62c07ef 6060
a24b9f23
MA
6061cat >>confdefs.h <<_ACEOF
6062#define int16_t $ac_cv_c_int16_t
c62c07ef 6063_ACEOF
a24b9f23
MA
6064;;
6065esac
c62c07ef 6066
a24b9f23
MA
6067ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6068case $ac_cv_c_int32_t in #(
6069 no|yes) ;; #(
6070 *)
c62c07ef 6071
a24b9f23
MA
6072cat >>confdefs.h <<_ACEOF
6073#define int32_t $ac_cv_c_int32_t
529be52a 6074_ACEOF
a24b9f23 6075;;
529be52a 6076esac
4d24561a 6077
a24b9f23
MA
6078ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6079case $ac_cv_c_int64_t in #(
6080 no|yes) ;; #(
6081 *)
6082
6083cat >>confdefs.h <<_ACEOF
6084#define int64_t $ac_cv_c_int64_t
529be52a 6085_ACEOF
a24b9f23
MA
6086;;
6087esac
c62c07ef 6088
9a266235 6089
a24b9f23
MA
6090# Some systems need the u_intX_t types defined across.
6091ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6092if test "x$ac_cv_type_u_int8_t" = xyes; then :
4a70cb10 6093
a24b9f23 6094else
9a266235 6095
a24b9f23
MA
6096 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6097case $ac_cv_c_uint8_t in #(
6098 no|yes) ;; #(
6099 *)
4a70cb10 6100
a24b9f23 6101$as_echo "#define _UINT8_T 1" >>confdefs.h
9a266235 6102
a24b9f23
MA
6103
6104cat >>confdefs.h <<_ACEOF
6105#define uint8_t $ac_cv_c_uint8_t
529be52a 6106_ACEOF
a24b9f23
MA
6107;;
6108 esac
529be52a 6109
9a266235 6110
a24b9f23 6111$as_echo "#define u_int8_t uint8_t" >>confdefs.h
9a266235 6112
9a266235
SR
6113
6114fi
6115
a24b9f23
MA
6116ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6117if test "x$ac_cv_type_u_int16_t" = xyes; then :
c59de8f4 6118
a24b9f23 6119else
c59de8f4 6120
a24b9f23
MA
6121 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6122case $ac_cv_c_uint16_t in #(
6123 no|yes) ;; #(
6124 *)
c62c07ef 6125
a37c9dd1 6126
a24b9f23
MA
6127cat >>confdefs.h <<_ACEOF
6128#define uint16_t $ac_cv_c_uint16_t
529be52a 6129_ACEOF
a24b9f23
MA
6130;;
6131 esac
c9a1db5e 6132
4d24561a 6133
a24b9f23 6134$as_echo "#define u_int16_t uint16_t" >>confdefs.h
dd3276e3 6135
c62c07ef
DH
6136
6137fi
4d24561a 6138
a24b9f23
MA
6139ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6140if test "x$ac_cv_type_u_int32_t" = xyes; then :
dd3276e3 6141
529be52a 6142else
237bfdc9 6143
a24b9f23
MA
6144 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6145case $ac_cv_c_uint32_t in #(
6146 no|yes) ;; #(
6147 *)
7d714d6b 6148
a24b9f23 6149$as_echo "#define _UINT32_T 1" >>confdefs.h
4d24561a 6150
4d24561a 6151
a24b9f23
MA
6152cat >>confdefs.h <<_ACEOF
6153#define uint32_t $ac_cv_c_uint32_t
529be52a 6154_ACEOF
a24b9f23
MA
6155;;
6156 esac
4a70cb10 6157
4a70cb10 6158
a24b9f23 6159$as_echo "#define u_int32_t uint32_t" >>confdefs.h
4a70cb10 6160
035ed382 6161
529be52a 6162fi
4a70cb10 6163
a24b9f23
MA
6164ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6165if test "x$ac_cv_type_u_int64_t" = xyes; then :
035ed382 6166
529be52a 6167else
a36687f0 6168
a24b9f23
MA
6169 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6170case $ac_cv_c_uint64_t in #(
6171 no|yes) ;; #(
6172 *)
6173
6174$as_echo "#define _UINT64_T 1" >>confdefs.h
6175
6176
6177cat >>confdefs.h <<_ACEOF
6178#define uint64_t $ac_cv_c_uint64_t
a36687f0 6179_ACEOF
a24b9f23
MA
6180;;
6181 esac
529be52a 6182
a36687f0 6183
a24b9f23 6184$as_echo "#define u_int64_t uint64_t" >>confdefs.h
4d24561a 6185
4d24561a 6186
529be52a
SR
6187fi
6188
6189
a24b9f23
MA
6190# see if ifaddrs.h is available
6191for ac_header in ifaddrs.h
6192do :
6193 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6194if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6195 cat >>confdefs.h <<_ACEOF
6196#define HAVE_IFADDRS_H 1
529be52a 6197_ACEOF
a36687f0 6198
a24b9f23
MA
6199fi
6200
6201done
4d24561a 6202
4d24561a 6203
a24b9f23
MA
6204# figure out what IPv4 interface code to use
6205for ac_header in linux/types.h
6206do :
6207 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6208if test "x$ac_cv_header_linux_types_h" = xyes; then :
6209 cat >>confdefs.h <<_ACEOF
6210#define HAVE_LINUX_TYPES_H 1
6211_ACEOF
7d714d6b 6212
529be52a 6213fi
a24b9f23 6214
529be52a 6215done
a24b9f23
MA
6216 # needed for linux/filter.h on old systems
6217
563f0b8a 6218relay_port_supported="no"
a24b9f23
MA
6219ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6220#ifdef HAVE_LINUX_TYPES_H
6221#include <linux/types.h>
6222#endif
6223
6224"
6225if test "x$ac_cv_header_linux_filter_h" = xyes; then :
6226 DO_LPF=1
529be52a 6227fi
a24b9f23
MA
6228
6229
6230if test -n "$DO_LPF"
6231then
6232
6233$as_echo "#define HAVE_LPF 1" >>confdefs.h
7d714d6b 6234
563f0b8a 6235 relay_port_supported="yes"
529be52a 6236else
a24b9f23
MA
6237 ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6238if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
6239 DO_DLPI=1
6240fi
a36687f0 6241
dd3276e3 6242
a24b9f23
MA
6243 if test -n "$DO_DLPI"
6244 then
6245
6246$as_echo "#define HAVE_DLPI 1" >>confdefs.h
6247
6248 else
6249 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6250if test "x$ac_cv_header_net_bpf_h" = xyes; then :
6251 DO_BPF=1
4a70cb10 6252fi
4a70cb10 6253
529be52a 6254
a24b9f23
MA
6255 if test -n "$DO_BPF"
6256 then
6257
6258$as_echo "#define HAVE_BPF 1" >>confdefs.h
6259
563f0b8a 6260 relay_port_supported="yes"
a24b9f23
MA
6261 fi
6262 fi
6263fi
6264
563f0b8a
FD
6265if test "$enable_relay_port" = "yes"; then
6266 if test "$relay_port_supported" != "yes"; then
6267 as_fn_error $? "--enable-relay-port requires BPF or LPF" "$LINENO" 5
6268 fi
6269fi
6270
a24b9f23
MA
6271# SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6272# use the same structures. We like to use 'struct lifconf' and 'struct
6273# lifreq', but we'll use these other structures if they're present. HPUX
6274# does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6275# int value.
6276#
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6278$as_echo_n "checking for struct lifnum... " >&6; }
6279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d7bdffc 6280/* end confdefs.h. */
a24b9f23
MA
6281 #include <sys/types.h>
6282 #include <sys/socket.h>
6283 #include <net/if.h>
6d7bdffc 6284
7d714d6b
DH
6285int
6286main ()
6287{
a24b9f23
MA
6288 struct lifnum a;
6289
7d714d6b
DH
6290 ;
6291 return 0;
6292}
6293_ACEOF
a24b9f23
MA
6294if ac_fn_c_try_compile "$LINENO"; then :
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6296$as_echo "yes" >&6; }
7d714d6b 6297
a24b9f23 6298$as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6e999c3c 6299
529be52a 6300else
a24b9f23
MA
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
529be52a 6303fi
a24b9f23 6304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
529be52a 6305
a24b9f23
MA
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6307$as_echo_n "checking for struct if_laddrconf... " >&6; }
6308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c62c07ef 6309/* end confdefs.h. */
a24b9f23
MA
6310 #include <sys/types.h>
6311 #include <net/if6.h>
c9a1db5e 6312
c62c07ef
DH
6313int
6314main ()
6315{
a24b9f23
MA
6316 struct if_laddrconf a;
6317
c62c07ef
DH
6318 ;
6319 return 0;
6320}
6321_ACEOF
a24b9f23
MA
6322if ac_fn_c_try_compile "$LINENO"; then :
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6324$as_echo "yes" >&6; }
6e999c3c 6325
a24b9f23 6326$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
529be52a 6327
529be52a 6328else
a24b9f23
MA
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
529be52a 6331fi
a24b9f23 6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
529be52a 6333
a24b9f23
MA
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6335$as_echo_n "checking for struct if_laddrreq... " >&6; }
6336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
035ed382 6337/* end confdefs.h. */
a24b9f23
MA
6338#include <sys/types.h>
6339 #include <net/if6.h>
529be52a
SR
6340
6341int
6342main ()
6343{
a24b9f23
MA
6344 struct if_laddrreq a;
6345
529be52a
SR
6346 ;
6347 return 0;
6348}
6349_ACEOF
a24b9f23
MA
6350if ac_fn_c_try_link "$LINENO"; then :
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6352$as_echo "yes" >&6; }
6353
6354$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6355
529be52a 6356else
a24b9f23
MA
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
529be52a 6362
a24b9f23
MA
6363#
6364# check for GCC noreturn attribute
6365#
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6367$as_echo_n "checking for GCC noreturn attribute... " >&6; }
6368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529be52a 6369/* end confdefs.h. */
dd3276e3 6370
035ed382
DH
6371int
6372main ()
6373{
a24b9f23 6374void foo() __attribute__((noreturn));
035ed382
DH
6375 ;
6376 return 0;
6377}
6378_ACEOF
a24b9f23
MA
6379if ac_fn_c_try_compile "$LINENO"; then :
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6381$as_echo "yes" >&6; }
6382
6383$as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6384
529be52a 6385else
a24b9f23
MA
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
529be52a 6388
a24b9f23 6389$as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
4d24561a 6390
6e999c3c 6391fi
529be52a 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
529be52a 6393
a24b9f23
MA
6394# Look for optional headers.
6395for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h
6396do :
6397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6398ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6400 cat >>confdefs.h <<_ACEOF
6401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
529be52a 6402_ACEOF
c9a1db5e
MA
6403
6404fi
035ed382 6405
a24b9f23
MA
6406done
6407
035ed382 6408
a24b9f23
MA
6409# Solaris needs some libraries for functions
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6411$as_echo_n "checking for library containing socket... " >&6; }
6412if ${ac_cv_search_socket+:} false; then :
6413 $as_echo_n "(cached) " >&6
2d5fba9b 6414else
a24b9f23
MA
6415 ac_func_search_save_LIBS=$LIBS
6416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d5fba9b
DH
6417/* end confdefs.h. */
6418
a24b9f23
MA
6419/* Override any GCC internal prototype to avoid an error.
6420 Use char because int might match the return type of a GCC
6421 builtin and then its argument prototype would still apply. */
6422#ifdef __cplusplus
6423extern "C"
6424#endif
6425char socket ();
2d5fba9b
DH
6426int
6427main ()
6428{
a24b9f23 6429return socket ();
2d5fba9b
DH
6430 ;
6431 return 0;
6432}
6433_ACEOF
a24b9f23
MA
6434for ac_lib in '' socket; do
6435 if test -z "$ac_lib"; then
6436 ac_res="none required"
6437 else
6438 ac_res=-l$ac_lib
6439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6440 fi
6441 if ac_fn_c_try_link "$LINENO"; then :
6442 ac_cv_search_socket=$ac_res
6443fi
6444rm -f core conftest.err conftest.$ac_objext \
6445 conftest$ac_exeext
6446 if ${ac_cv_search_socket+:} false; then :
6447 break
6448fi
6449done
6450if ${ac_cv_search_socket+:} false; then :
529be52a 6451
a24b9f23
MA
6452else
6453 ac_cv_search_socket=no
6454fi
6455rm conftest.$ac_ext
6456LIBS=$ac_func_search_save_LIBS
4a70cb10 6457fi
a24b9f23
MA
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6459$as_echo "$ac_cv_search_socket" >&6; }
6460ac_res=$ac_cv_search_socket
6461if test "$ac_res" != no; then :
6462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
529be52a 6463
2d5fba9b 6464fi
2d5fba9b 6465
a24b9f23
MA
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6467$as_echo_n "checking for library containing inet_ntoa... " >&6; }
6468if ${ac_cv_search_inet_ntoa+:} false; then :
6469 $as_echo_n "(cached) " >&6
6e999c3c 6470else
a24b9f23
MA
6471 ac_func_search_save_LIBS=$LIBS
6472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529be52a 6473/* end confdefs.h. */
c59de8f4 6474
a24b9f23
MA
6475/* Override any GCC internal prototype to avoid an error.
6476 Use char because int might match the return type of a GCC
6477 builtin and then its argument prototype would still apply. */
6478#ifdef __cplusplus
6479extern "C"
6480#endif
6481char inet_ntoa ();
529be52a
SR
6482int
6483main ()
6484{
a24b9f23 6485return inet_ntoa ();
529be52a
SR
6486 ;
6487 return 0;
6488}
6489_ACEOF
a24b9f23
MA
6490for ac_lib in '' nsl; do
6491 if test -z "$ac_lib"; then
6492 ac_res="none required"
6493 else
6494 ac_res=-l$ac_lib
6495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6496 fi
6497 if ac_fn_c_try_link "$LINENO"; then :
6498 ac_cv_search_inet_ntoa=$ac_res
6499fi
6500rm -f core conftest.err conftest.$ac_objext \
6501 conftest$ac_exeext
6502 if ${ac_cv_search_inet_ntoa+:} false; then :
6503 break
6504fi
6505done
6506if ${ac_cv_search_inet_ntoa+:} false; then :
6e999c3c 6507
a24b9f23
MA
6508else
6509 ac_cv_search_inet_ntoa=no
6510fi
6511rm conftest.$ac_ext
6512LIBS=$ac_func_search_save_LIBS
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6515$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6516ac_res=$ac_cv_search_inet_ntoa
6517if test "$ac_res" != no; then :
6518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6519
6520fi
529be52a
SR
6521
6522
a24b9f23
MA
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6524$as_echo_n "checking for library containing inet_aton... " >&6; }
6525if ${ac_cv_search_inet_aton+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527else
6528 ac_func_search_save_LIBS=$LIBS
6529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h. */
6531
6532/* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6535#ifdef __cplusplus
6536extern "C"
6537#endif
6538char inet_aton ();
6e999c3c
SK
6539int
6540main ()
6541{
a24b9f23 6542return inet_aton ();
6e999c3c
SK
6543 ;
6544 return 0;
6545}
6546_ACEOF
a24b9f23
MA
6547for ac_lib in '' socket nsl; do
6548 if test -z "$ac_lib"; then
6549 ac_res="none required"
6550 else
6551 ac_res=-l$ac_lib
6552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6553 fi
6554 if ac_fn_c_try_link "$LINENO"; then :
6555 ac_cv_search_inet_aton=$ac_res
c59de8f4 6556fi
a24b9f23
MA
6557rm -f core conftest.err conftest.$ac_objext \
6558 conftest$ac_exeext
6559 if ${ac_cv_search_inet_aton+:} false; then :
6560 break
6561fi
6562done
6563if ${ac_cv_search_inet_aton+:} false; then :
4d24561a 6564
8f77e286 6565else
a24b9f23
MA
6566 ac_cv_search_inet_aton=no
6567fi
6568rm conftest.$ac_ext
6569LIBS=$ac_func_search_save_LIBS
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6572$as_echo "$ac_cv_search_inet_aton" >&6; }
6573ac_res=$ac_cv_search_inet_aton
6574if test "$ac_res" != no; then :
6575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6e999c3c 6576
a24b9f23 6577else
6e999c3c 6578
a24b9f23 6579$as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6e999c3c 6580
a24b9f23 6581fi
529be52a 6582
529be52a 6583
a24b9f23
MA
6584# Check for a standalone regex library.
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6586$as_echo_n "checking for library containing regcomp... " >&6; }
6587if ${ac_cv_search_regcomp+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589else
6590 ac_func_search_save_LIBS=$LIBS
6591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f77e286
DH
6592/* end confdefs.h. */
6593
a24b9f23
MA
6594/* Override any GCC internal prototype to avoid an error.
6595 Use char because int might match the return type of a GCC
6596 builtin and then its argument prototype would still apply. */
6597#ifdef __cplusplus
6598extern "C"
6599#endif
6600char regcomp ();
8f77e286
DH
6601int
6602main ()
6603{
a24b9f23 6604return regcomp ();
8f77e286
DH
6605 ;
6606 return 0;
6607}
6608_ACEOF
a24b9f23
MA
6609for ac_lib in '' regex; do
6610 if test -z "$ac_lib"; then
6611 ac_res="none required"
6612 else
6613 ac_res=-l$ac_lib
6614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6615 fi
6616 if ac_fn_c_try_link "$LINENO"; then :
6617 ac_cv_search_regcomp=$ac_res
6618fi
6619rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext
6621 if ${ac_cv_search_regcomp+:} false; then :
6622 break
8f77e286 6623fi
a24b9f23
MA
6624done
6625if ${ac_cv_search_regcomp+:} false; then :
4d24561a 6626
76c944da 6627else
a24b9f23 6628 ac_cv_search_regcomp=no
76c944da 6629fi
a24b9f23
MA
6630rm conftest.$ac_ext
6631LIBS=$ac_func_search_save_LIBS
6e999c3c 6632fi
a24b9f23
MA
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6634$as_echo "$ac_cv_search_regcomp" >&6; }
6635ac_res=$ac_cv_search_regcomp
6636if test "$ac_res" != no; then :
6637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4d24561a 6638
a24b9f23 6639fi
529be52a 6640
c9a1db5e 6641
dc9d7b08
MA
6642for ac_func in strlcat
6643do :
6644 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6645if test "x$ac_cv_func_strlcat" = xyes; then :
6646 cat >>confdefs.h <<_ACEOF
6647#define HAVE_STRLCAT 1
6648_ACEOF
6649
6650fi
6651done
6652
6653
a24b9f23
MA
6654# For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6656$as_echo_n "checking for library containing if_nametoindex... " >&6; }
6657if ${ac_cv_search_if_nametoindex+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659else
6660 ac_func_search_save_LIBS=$LIBS
6661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662/* end confdefs.h. */
6e999c3c 6663
a24b9f23
MA
6664/* Override any GCC internal prototype to avoid an error.
6665 Use char because int might match the return type of a GCC
6666 builtin and then its argument prototype would still apply. */
6667#ifdef __cplusplus
6668extern "C"
6669#endif
6670char if_nametoindex ();
529be52a
SR
6671int
6672main ()
6673{
a24b9f23 6674return if_nametoindex ();
529be52a
SR
6675 ;
6676 return 0;
6677}
6678_ACEOF
a24b9f23
MA
6679for ac_lib in '' ipv6; do
6680 if test -z "$ac_lib"; then
6681 ac_res="none required"
6682 else
6683 ac_res=-l$ac_lib
6684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6685 fi
6686 if ac_fn_c_try_link "$LINENO"; then :
6687 ac_cv_search_if_nametoindex=$ac_res
6688fi
6689rm -f core conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext
6691 if ${ac_cv_search_if_nametoindex+:} false; then :
6692 break
6693fi
6694done
6695if ${ac_cv_search_if_nametoindex+:} false; then :
6696
529be52a 6697else
a24b9f23
MA
6698 ac_cv_search_if_nametoindex=no
6699fi
6700rm conftest.$ac_ext
6701LIBS=$ac_func_search_save_LIBS
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6704$as_echo "$ac_cv_search_if_nametoindex" >&6; }
6705ac_res=$ac_cv_search_if_nametoindex
6706if test "$ac_res" != no; then :
6707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6e999c3c 6708
4a70cb10 6709fi
6e999c3c 6710
a24b9f23 6711
f6d4c27f
FD
6712# For some Solaris nanosleep is found by BIND in librt
6713have_nanosleep="no"
6714ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6715if test "x$ac_cv_func_nanosleep" = xyes; then :
6716 have_nanosleep="yes"
6717fi
6718
6719if test "$have_nanosleep" = "no"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6721$as_echo_n "checking for nanosleep in -lrt... " >&6; }
6722if ${ac_cv_lib_rt_nanosleep+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724else
6725 ac_check_lib_save_LIBS=$LIBS
6726LIBS="-lrt $LIBS"
6727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h. */
6729
6730/* Override any GCC internal prototype to avoid an error.
6731 Use char because int might match the return type of a GCC
6732 builtin and then its argument prototype would still apply. */
6733#ifdef __cplusplus
6734extern "C"
6735#endif
6736char nanosleep ();
6737int
6738main ()
6739{
6740return nanosleep ();
6741 ;
6742 return 0;
6743}
6744_ACEOF
6745if ac_fn_c_try_link "$LINENO"; then :
6746 ac_cv_lib_rt_nanosleep=yes
6747else
6748 ac_cv_lib_rt_nanosleep=no
6749fi
6750rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752LIBS=$ac_check_lib_save_LIBS
6753fi
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6755$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6756if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
6757 have_nanosleep="rt"
6758fi
6759
6760fi
6761if test "$have_nanosleep" = "rt"; then
6762 LIBS="-lrt $LIBS"
6763fi
6764
a24b9f23 6765# check for /dev/random (declares HAVE_DEV_RANDOM)
a6ed1aa8
FD
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6767$as_echo_n "checking for random device... " >&6; }
6768
6769# Check whether --with-randomdev was given.
6770if test "${with_randomdev+set}" = set; then :
6771 withval=$with_randomdev; use_randomdev="$withval"
6772else
6773 use_randomdev="unspec"
6774fi
6775
6776if test "$use_randomdev" = "unspec"; then
6777 if test "$cross_compiling" = "yes"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6779$as_echo "unspecified" >&6; }
6780 as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6781 fi
6782 use_randomdev="/dev/random"
6783elif test "$use_randomdev" = "yes"; then
6784 use_randomdev="/dev/random"
6785fi
6786if test "$use_randomdev" = "no"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6788$as_echo "disabled" >&6; }
6789 BINDCONFIG="$BINDCONFIG --with-randomdev=no"
6790else
6791 if test "$cross_compiling" = "yes"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6793$as_echo "$use_randomdev (unchecked)" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6796$as_echo "$use_randomdev" >&6; }
6797 as_ac_File=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6799$as_echo_n "checking for $use_randomdev... " >&6; }
6800if eval \${$as_ac_File+:} false; then :
a24b9f23 6801 $as_echo_n "(cached) " >&6
529be52a 6802else
a24b9f23
MA
6803 test "$cross_compiling" = yes &&
6804 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
a6ed1aa8
FD
6805if test -r "$use_randomdev"; then
6806 eval "$as_ac_File=yes"
a24b9f23 6807else
a6ed1aa8 6808 eval "$as_ac_File=no"
a24b9f23
MA
6809fi
6810fi
a6ed1aa8
FD
6811eval ac_res=\$$as_ac_File
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813$as_echo "$ac_res" >&6; }
6814if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
c9a1db5e 6815
a24b9f23 6816$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6e999c3c 6817
a6ed1aa8
FD
6818else
6819 as_fn_error $? "cannot find $use_randomdev" "$LINENO" 5
a24b9f23 6820fi
6e999c3c 6821
a6ed1aa8
FD
6822 fi
6823 BINDCONFIG="$BINDCONFIG --with-randomdev=$use_randomdev"
6824fi
6e999c3c 6825
c87db1b1
FD
6826BINDIOMUX="--disable-kqueue --disable-epoll --disable-devpoll"
6827# check kqueue/epoll/devpoll alternative to select
6828# Check whether --enable-kqueue was given.
6829if test "${enable_kqueue+set}" = set; then :
6830 enableval=$enable_kqueue; want_kqueue="$enableval"
6831else
6832 want_kqueue="no"
6833fi
6834
6835if test "$want_kqueue" = "yes"; then
6836 BINDIOMUX="--enable-kqueue"
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6838$as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6839fi
6840# Check whether --enable-epoll was given.
6841if test "${enable_epoll+set}" = set; then :
6842 enableval=$enable_epoll; want_epoll="$enableval"
6843else
6844 want_epoll="no"
6845fi
6846
6847if test "$want_epoll" = "yes"; then
6848 BINDIOMUX="--enable-epoll"
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6850$as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6851fi
6852# Check whether --enable-devpoll was given.
6853if test "${enable_devpoll+set}" = set; then :
6854 enableval=$enable_devpoll; want_devpoll="$enableval"
6855else
6856 want_devpoll="no"
6857fi
6858
6859if test "$want_devpoll" = "yes"; then
6860 BINDIOMUX="--enable-devpoll"
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6862$as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6863fi
6864
6865
6866# general extra bind configure arguments
6867
6868# Check whether --with-bind-extra-config was given.
6869if test "${with_bind_extra_config+set}" = set; then :
6870 withval=$with_bind_extra_config; use_xbindconfig="$withval"
6871else
6872 use_xbindconfig=""
6873fi
6874
6875case "$use_xbindconfig" in
6876yes|no|'')
6877 ;;
6878*)
6879 BINDCONFIG="$BINDCONFIG $use_xbindconfig"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6881$as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6882 ;;
6883esac
6884
a24b9f23
MA
6885# see if there is a "sa_len" field in our interface information structure
6886ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6887"
6888if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
6889
6890$as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6891
6892fi
6893
6e999c3c 6894
a24b9f23 6895# figure out pointer size
f2d20b9e
FD
6896SAVE_CFLAGS="$CFLAGS"
6897CFLAGS="$CFLAGS -I$srcdir"
a24b9f23
MA
6898# The cast to long int works around a bug in the HP C Compiler
6899# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6900# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6901# This bug is HP SR number 8606223364.
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6903$as_echo_n "checking size of struct iaddr *... " >&6; }
6904if ${ac_cv_sizeof_struct_iaddr_p+:} false; then :
6905 $as_echo_n "(cached) " >&6
fe5b0fdd 6906else
a24b9f23
MA
6907 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6908#include \"includes/inet.h\"
6909#include <stdio.h>
529be52a 6910
a24b9f23
MA
6911"; then :
6912
6913else
6914 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6917as_fn_error 77 "cannot compute sizeof (struct iaddr *)
6918See \`config.log' for more details" "$LINENO" 5; }
4d24561a
JR
6919 else
6920 ac_cv_sizeof_struct_iaddr_p=0
6921 fi
273bfdc3 6922fi
a24b9f23 6923
7d714d6b 6924fi
a24b9f23
MA
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6926$as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
4d24561a
JR
6927
6928
6929
6e999c3c
SK
6930cat >>confdefs.h <<_ACEOF
6931#define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
76c944da 6932_ACEOF
fe5b0fdd 6933
fe5b0fdd 6934
f2d20b9e 6935CFLAGS="$SAVE_CFLAGS"
76c944da 6936
9a266235 6937# Solaris does not have the msg_control or msg_controlen members
6e999c3c
SK
6938# in the msghdr structure unless you define:
6939#
6940# _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6941#
6942# See the "standards" man page for details.
6943#
6944# We check for the msg_control member, and if it is not found, we check
6945# again with the appropriate defines added to the CFLAGS. (In order to
6946# do this we have to remove the check from the cache, which is what the
6947# "unset" is for.)
a24b9f23 6948ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
529be52a
SR
6949#include <sys/types.h>
6950#include <sys/socket.h>
6951
a24b9f23
MA
6952"
6953if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
529be52a 6954
6e999c3c
SK
6955else
6956 CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6957 CFLAGS="$CFLAGS -D__EXTENSIONS__"
6958 unset ac_cv_member_struct_msghdr_msg_control
a24b9f23 6959 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
529be52a
SR
6960#include <sys/types.h>
6961#include <sys/socket.h>
6962
a24b9f23
MA
6963"
6964if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
529be52a 6965
c62c07ef 6966else
a24b9f23
MA
6967 as_fn_error $? "Missing msg_control member in
6968 msg_control structure." "$LINENO" 5
a36687f0 6969fi
dd3276e3 6970
06eb8bab 6971
c62c07ef 6972fi
8c816ebb 6973
fe5b0fdd 6974
75d02fcf
TM
6975ac_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>
6976"
6977if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
6978
6979$as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6980
6981
6982fi
6983
6984
e94e7f23
FD
6985# bind/Makefile.in is not from automake so we need 2 variables for bind dir
6986BINDSUBDIR=
0fb9c8a1 6987BINDDIR=
5a428b2e 6988BINDSRCDIR=
e94e7f23
FD
6989BINDLIBIRSDIR=
6990BINDLIBDNSDIR=
6991BINDLIBISCCFGDIR=
6992BINDLIBISCDIR=
68315782 6993DISTCHECK_LIBBIND_CONFIGURE_FLAG=
a81f3ae6
SR
6994
6995# Check whether --with-libbind was given.
a24b9f23 6996if test "${with_libbind+set}" = set; then :
a81f3ae6
SR
6997 withval=$with_libbind; use_libbind="$withval"
6998else
6999 use_libbind="no"
7000fi
7001
7002case "$use_libbind" in
7003yes)
c87db1b1 7004 as_fn_error $? "PATH is required in --with-libbind=PATH" "$LINENO" 5
a81f3ae6
SR
7005 ;;
7006no)
e94e7f23 7007 BINDSUBDIR="\${top_srcdir}/bind"
c87db1b1 7008 my_abs_srcdir=`cd $srcdir && pwd`
e94e7f23 7009 BINDDIR="${my_abs_srcdir}/bind"
c87db1b1
FD
7010 if test ! -d "$srcdir/bind"; then
7011 as_fn_error $? "Where to find or build bind includes and libraries must be specified" "$LINENO" 5
7012 fi
7013 if test -d "$srcdir/bind/bind9"; then
e94e7f23 7014 BINDSRCDIR="${my_abs_srcdir}/bind/bind9"
c87db1b1
FD
7015 else
7016 if test ! -f "$srcdir/bind/version.tmp"; then
7017 as_fn_error $? "Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
7018 fi
7019 . "$srcdir/bind/version.tmp"
7020 bindversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
e94e7f23 7021 BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion"
c87db1b1
FD
7022 fi
7023 ac_config_files="$ac_config_files $srcdir/bind/Makefile"
7024
e94e7f23 7025
ae91e4db
FD
7026 BINDLIBIRSDIR="$BINDSRCDIR/lib/irs"
7027 BINDLIBDNSDIR="$BINDSRCDIR/lib/dns"
7028 BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg"
7029 BINDLIBISCDIR="$BINDSRCDIR/lib/isc"
a81f3ae6
SR
7030 ;;
7031*)
c87db1b1
FD
7032 if test ! -d "$use_libbind"; then
7033 as_fn_error $? "Cannot find bind directory at $use_libbind" "$LINENO" 5
7034 fi
6d91a86b
FD
7035 if test ! -d "$use_libbind/include" -o \
7036 ! -f "$use_libbind/include/isc/buffer.h"
7037 then
c87db1b1
FD
7038 as_fn_error $? "Cannot find bind includes at $use_libbind/include" "$LINENO" 5
7039 fi
6d91a86b
FD
7040 if test ! -d "$use_libbind/lib" -o \
7041 \( ! -f "$use_libbind/lib/libisc.a" -a \
7042 ! -f "$use_libbind/lib/libisc.la" \)
7043 then
c87db1b1 7044 as_fn_error $? "Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
6913a589 7045 fi
c87db1b1 7046 BINDDIR="$use_libbind"
e94e7f23
FD
7047 BINDLIBIRSDIR="$BINDDIR/lib"
7048 BINDLIBDNSDIR="$BINDDIR/lib"
7049 BINDLIBISCCFGDIR="$BINDDIR/lib"
7050 BINDLIBISCDIR="$BINDDIR/lib"
68315782 7051 DISTCHECK_LIBBIND_CONFIGURE_FLAG="--with-libbind=$use_libbind"
a81f3ae6
SR
7052 ;;
7053esac
7054
0fb9c8a1 7055
5a428b2e 7056
c87db1b1
FD
7057
7058
e94e7f23
FD
7059
7060
7061
68315782
FD
7062 if test "$use_libbind" = "no"; then
7063 HAVE_BINDDIR_TRUE=
7064 HAVE_BINDDIR_FALSE='#'
7065else
7066 HAVE_BINDDIR_TRUE='#'
7067 HAVE_BINDDIR_FALSE=
7068fi
7069
7070
13e5cc6c
FD
7071#
7072# GNU libtool support
7073#
7074case "$build_os" in
7075 sunos*)
7076 # Just set the maximum command line length for sunos
7077 # as it otherwise takes a exceptionally long time to
7078 # work it out. Required for libtool.
7079
7080 lt_cv_sys_max_cmd_len=4096
7081 ;;
7082esac
7083
7084want_libtool="no"
7085
7086BINDLT=
bf6f8fce 7087DISTCHECK_LIBTOOL_CONFIGURE_FLAG=
13e5cc6c
FD
7088# Check whether --enable-libtool was given.
7089if test "${enable_libtool+set}" = set; then :
7090 enableval=$enable_libtool; want_libtool="$enableval"
7091fi
7092
d113bc2c 7093
6d91a86b
FD
7094if test "$use_libbind" != "no"; then
7095 if test "$want_libtool" = "yes" -a \
7096 ! -f "$use_libbind/lib/libisc.la"
7097 then
7098 as_fn_error $? "Cannot find dynamic libraries at $use_libbind/lib" "$LINENO" 5
7099 fi
7100 if test "$want_libtool" = "no" -a \
7101 ! -f "$use_libbind/lib/libisc.a"
7102 then
7103 as_fn_error $? "Cannot find static libraries at $use_libbind/lib" "$LINENO" 5
7104 fi
7105fi
7106
d113bc2c 7107
13e5cc6c
FD
7108if test "$want_libtool" = "yes"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
7110$as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
6d91a86b 7111 # expand $ac_configure_args
d113bc2c
FD
7112 eval "set my_configure_args $ac_configure_args"
7113 shift
6d91a86b 7114 cd $srcdir; exec ./config+lt "$@"
13e5cc6c
FD
7115 as_fn_error $? "Recovering failed" "$LINENO" 5
7116fi
d113bc2c
FD
7117
7118DHLIBS=LIBRARIES
13e5cc6c
FD
7119A=a
7120
7121
7122
d113bc2c
FD
7123
7124
bf6f8fce
FD
7125
7126# quoting in Makefile.am.in
7127Q=@
7128
7129
7130# install bind includes and libraries
7131
7132want_install_bind="no"
7133if test "$want_libtool" = "yes"; then
7134 want_install_bind="yes"
7135fi
7136if test "$use_libbind" != "no"; then
7137 want_install_bind="no"
7138fi
f9741514
FD
7139# Check whether --enable-bind_install was given.
7140if test "${enable_bind_install+set}" = set; then :
bf6f8fce 7141 enableval=$enable_bind_install; want_install_bind="$enableval"
f9741514
FD
7142fi
7143
bf6f8fce
FD
7144if test "$want_install_bind" = "yes"; then
7145 if test "$use_libbind" != "no"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&5
f9741514 7147$as_echo "$as_me: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&2;}
bf6f8fce
FD
7148 fi
7149elif test "$want_libtool" = "yes" -a "$use_libbind" = "no"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: embedded dynamic bind libraries must be installed" >&5
7151$as_echo "$as_me: WARNING: embedded dynamic bind libraries must be installed" >&2;}
f9741514 7152fi
bf6f8fce 7153 if test "$want_install_bind" = "yes"; then
f9741514
FD
7154 INSTALL_BIND_TRUE=
7155 INSTALL_BIND_FALSE='#'
7156else
7157 INSTALL_BIND_TRUE='#'
7158 INSTALL_BIND_FALSE=
7159fi
7160
7161
2d5fba9b
DH
7162# OpenLDAP support.
7163
7164# Check whether --with-ldap was given.
a24b9f23 7165if test "${with_ldap+set}" = set; then :
2d5fba9b
DH
7166 withval=$with_ldap; ldap=$withval
7167else
7168 ldap=no
7169fi
7170
7171
7172# OpenLDAP with SSL support.
7173
7174# Check whether --with-ldapcrypto was given.
a24b9f23 7175if test "${with_ldapcrypto+set}" = set; then :
2d5fba9b
DH
7176 withval=$with_ldapcrypto; ldapcrypto=$withval
7177else
7178 ldapcrypto=no
7179fi
7180
7181
743d6937
TM
7182# Gssapi to allow LDAP to authenticate with a keytab
7183
7184# Check whether --with-ldap-gssapi was given.
7185if test "${with_ldap_gssapi+set}" = set; then :
7186 withval=$with_ldap_gssapi; ldap_gssapi=$withval
7187else
7188 ldap_gssapi=no
7189fi
7190
7191
7192
7193# LDAP CASA auth support.
7194
7195# Check whether --with-ldapcasa was given.
7196if test "${with_ldapcasa+set}" = set; then :
7197 withval=$with_ldapcasa; ldapcasa=$withval
7198else
7199 ldapcasa=no
7200fi
7201
7202
2d5fba9b
DH
7203# OpenLDAP support is disabled by default, if enabled then SSL support is an
7204# extra optional that is also disabled by default. Enabling LDAP SSL support
743d6937
TM
7205# implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7206# but doesn't include SSL. The two are not dependant.
7207if test x$ldap = xyes || test x$ldapcrypto = xyes || test x$ldap_gssapi = xyes; then
7208 saved_LIBS="$LIBS"
7209 LIBS=""
a24b9f23
MA
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7211$as_echo_n "checking for library containing ldap_initialize... " >&6; }
7212if ${ac_cv_search_ldap_initialize+:} false; then :
7213 $as_echo_n "(cached) " >&6
2d5fba9b
DH
7214else
7215 ac_func_search_save_LIBS=$LIBS
a24b9f23 7216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d5fba9b
DH
7217/* end confdefs.h. */
7218
7219/* Override any GCC internal prototype to avoid an error.
7220 Use char because int might match the return type of a GCC
7221 builtin and then its argument prototype would still apply. */
7222#ifdef __cplusplus
7223extern "C"
7224#endif
7225char ldap_initialize ();
7226int
7227main ()
7228{
7229return ldap_initialize ();
7230 ;
7231 return 0;
7232}
7233_ACEOF
7234for ac_lib in '' ldap; do
7235 if test -z "$ac_lib"; then
7236 ac_res="none required"
7237 else
7238 ac_res=-l$ac_lib
7239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7240 fi
a24b9f23 7241 if ac_fn_c_try_link "$LINENO"; then :
2d5fba9b 7242 ac_cv_search_ldap_initialize=$ac_res
2d5fba9b 7243fi
a24b9f23
MA
7244rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext
7246 if ${ac_cv_search_ldap_initialize+:} false; then :
2d5fba9b
DH
7247 break
7248fi
7249done
a24b9f23
MA
7250if ${ac_cv_search_ldap_initialize+:} false; then :
7251
2d5fba9b
DH
7252else
7253 ac_cv_search_ldap_initialize=no
7254fi
7255rm conftest.$ac_ext
7256LIBS=$ac_func_search_save_LIBS
7257fi
a24b9f23
MA
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7259$as_echo "$ac_cv_search_ldap_initialize" >&6; }
2d5fba9b 7260ac_res=$ac_cv_search_ldap_initialize
a24b9f23 7261if test "$ac_res" != no; then :
2d5fba9b
DH
7262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7263
7264else
a24b9f23
MA
7265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7267as_fn_error $? "*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7268See \`config.log' for more details" "$LINENO" 5; }
2d5fba9b
DH
7269fi
7270
a24b9f23
MA
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7272$as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7273if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
7274 $as_echo_n "(cached) " >&6
8f95db41
SR
7275else
7276 ac_func_search_save_LIBS=$LIBS
a24b9f23 7277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f95db41
SR
7278/* end confdefs.h. */
7279
7280/* Override any GCC internal prototype to avoid an error.
7281 Use char because int might match the return type of a GCC
7282 builtin and then its argument prototype would still apply. */
7283#ifdef __cplusplus
7284extern "C"
7285#endif
7286char ber_pvt_opt_on ();
7287int
7288main ()
7289{
7290return ber_pvt_opt_on ();
7291 ;
7292 return 0;
7293}
7294_ACEOF
7295for ac_lib in '' lber; do
7296 if test -z "$ac_lib"; then
7297 ac_res="none required"
7298 else
7299 ac_res=-l$ac_lib
7300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7301 fi
a24b9f23 7302 if ac_fn_c_try_link "$LINENO"; then :
8f95db41 7303 ac_cv_search_ber_pvt_opt_on=$ac_res
8f95db41 7304fi
a24b9f23
MA
7305rm -f core conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext
7307 if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
8f95db41
SR
7308 break
7309fi
7310done
a24b9f23
MA
7311if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
7312
8f95db41
SR
7313else
7314 ac_cv_search_ber_pvt_opt_on=no
7315fi
7316rm conftest.$ac_ext
7317LIBS=$ac_func_search_save_LIBS
7318fi
a24b9f23
MA
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7320$as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
8f95db41 7321ac_res=$ac_cv_search_ber_pvt_opt_on
a24b9f23 7322if test "$ac_res" != no; then :
8f95db41
SR
7323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7324
7325else
a24b9f23
MA
7326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7328as_fn_error $? "*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7329See \`config.log' for more details" "$LINENO" 5; }
8f95db41
SR
7330fi
7331
743d6937
TM
7332 if test x$ldap_gssapi = xyes ; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7334$as_echo_n "checking for library containing krb5_init_context... " >&6; }
7335if ${ac_cv_search_krb5_init_context+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337else
7338 ac_func_search_save_LIBS=$LIBS
7339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h. */
7341
7342/* Override any GCC internal prototype to avoid an error.
7343 Use char because int might match the return type of a GCC
7344 builtin and then its argument prototype would still apply. */
7345#ifdef __cplusplus
7346extern "C"
7347#endif
7348char krb5_init_context ();
7349int
7350main ()
7351{
7352return krb5_init_context ();
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357for ac_lib in '' krb5; do
7358 if test -z "$ac_lib"; then
7359 ac_res="none required"
7360 else
7361 ac_res=-l$ac_lib
7362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7363 fi
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 ac_cv_search_krb5_init_context=$ac_res
7366fi
7367rm -f core conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext
7369 if ${ac_cv_search_krb5_init_context+:} false; then :
7370 break
7371fi
7372done
7373if ${ac_cv_search_krb5_init_context+:} false; then :
7374
7375else
7376 ac_cv_search_krb5_init_context=no
7377fi
7378rm conftest.$ac_ext
7379LIBS=$ac_func_search_save_LIBS
7380fi
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7382$as_echo "$ac_cv_search_krb5_init_context" >&6; }
7383ac_res=$ac_cv_search_krb5_init_context
7384if test "$ac_res" != no; then :
7385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7386
7387else
7388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7390as_fn_error $? "*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7391See \`config.log' for more details" "$LINENO" 5; }
7392fi
7393
7394 fi
7395
7396 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7397 LDAP_LIBS=$LIBS
7398
7399 LIBS="$saved_LIBS"
7400
7401
7402 for ac_header in ldap.h
7403do :
7404 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7405if test "x$ac_cv_header_ldap_h" = xyes; then :
7406 cat >>confdefs.h <<_ACEOF
7407#define HAVE_LDAP_H 1
7408_ACEOF
7409
7410fi
7411
7412done
7413
7414 for ac_func in inet_pton inet_ntop
7415do :
7416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7417ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7418if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7419 cat >>confdefs.h <<_ACEOF
7420#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7421_ACEOF
7422
7423fi
7424done
2d5fba9b 7425
2d5fba9b 7426
2d5fba9b 7427
743d6937
TM
7428 LDAP_CFLAGS="-DLDAP_CONFIGURATION"
7429
7430 if test x$ldapcasa = xyes ; then
7431 for ac_header in micasa_mgmd.h
7432do :
7433 ac_fn_c_check_header_mongrel "$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7434if test "x$ac_cv_header_micasa_mgmd_h" = xyes; then :
7435 cat >>confdefs.h <<_ACEOF
7436#define HAVE_MICASA_MGMD_H 1
7437_ACEOF
7438
7439 LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7440
7441else
7442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7444as_fn_error $? "*** Cannot find micasa_mgmd.h for ldap casa auth support
7445See \`config.log' for more details" "$LINENO" 5; }
7446fi
7447
7448done
7449
7450 fi
7451
7452 if test x$ldapcrypto = xyes ; then
7453 LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_SSL"
7454 fi
7455
7456 if test x$ldap_gssapi = xyes; then
7457 LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
2d5fba9b 7458 fi
743d6937
TM
7459
7460 LDAP_CFLAGS=$LDAP_CFLAGS
7461
2d5fba9b
DH
7462fi
7463
c5b1ad9f 7464# Append selected warning levels to CFLAGS before substitution (but after
d7d9c0c7 7465# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
c5b1ad9f
DH
7466CFLAGS="$CFLAGS $STD_CWARNINGS"
7467
5a428b2e
FD
7468# Try to add the bind and dhcp include directories
7469CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
a81f3ae6 7470
a24b9f23
MA
7471case "$host" in
7472*-darwin*)
0f1a34e9
TM
7473 CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542";;
7474*-solaris*)
7475 # As of Solaris 11, ethernet dev files are in /dev/net
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7477$as_echo_n "checking for /dev/net... " >&6; }
7478if ${ac_cv_file__dev_net+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480else
7481 test "$cross_compiling" = yes &&
7482 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7483if test -r "/dev/net"; then
7484 ac_cv_file__dev_net=yes
7485else
7486 ac_cv_file__dev_net=no
7487fi
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7490$as_echo "$ac_cv_file__dev_net" >&6; }
7491if test "x$ac_cv_file__dev_net" = xyes; then :
7492
7493$as_echo "#define USE_DEV_NET 1" >>confdefs.h
7494
7495fi
7496
7497 ;;
a24b9f23
MA
7498esac
7499
e715a7b1 7500
a24b9f23
MA
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7502$as_echo_n "checking for flexible array members... " >&6; }
7503if ${ac_cv_c_flexmember+:} false; then :
7504 $as_echo_n "(cached) " >&6
e715a7b1 7505else
a24b9f23 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e715a7b1
SR
7507/* end confdefs.h. */
7508#include <stdlib.h>
7509 #include <stdio.h>
7510 #include <stddef.h>
7511 struct s { int n; double d[]; };
7512int
7513main ()
7514{
7515int m = getchar ();
7516 struct s *p = malloc (offsetof (struct s, d)
7517 + m * sizeof (double));
7518 p->d[0] = 0.0;
7519 return p->d != (double *) NULL;
7520 ;
7521 return 0;
7522}
7523_ACEOF
a24b9f23 7524if ac_fn_c_try_compile "$LINENO"; then :
e715a7b1
SR
7525 ac_cv_c_flexmember=yes
7526else
a24b9f23 7527 ac_cv_c_flexmember=no
e715a7b1 7528fi
e715a7b1
SR
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530fi
a24b9f23
MA
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7532$as_echo "$ac_cv_c_flexmember" >&6; }
e715a7b1
SR
7533 if test $ac_cv_c_flexmember = yes; then
7534
a24b9f23 7535$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
e715a7b1
SR
7536
7537 else
a24b9f23 7538 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
e715a7b1
SR
7539
7540 fi
7541
7542
0a2f9a62 7543ac_config_files="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile.am common/Makefile common/tests/Makefile dhcpctl/Makefile.am dhcpctl/Makefile includes/Makefile keama/Makefile omapip/Makefile.am omapip/Makefile relay/Makefile relay/tests/Makefile server/Makefile tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
4d24561a 7544
fe5b0fdd
DH
7545cat >confcache <<\_ACEOF
7546# This file is a shell script that caches the results of configure
7547# tests run on this system so they can be shared between configure
7548# scripts and configure runs, see configure's option --config-cache.
7549# It is not useful on other systems. If it contains results you don't
7550# want to keep, you may remove or edit it.
7551#
7552# config.status only pays attention to the cache file if you give it
7553# the --recheck option to rerun configure.
7554#
7555# `ac_cv_env_foo' variables (set or unset) will be overridden when
7556# loading this file, other *unset* `ac_cv_foo' will be assigned the
7557# following values.
7558
7559_ACEOF
7560
7561# The following way of writing the cache mishandles newlines in values,
7562# but we know of no workaround that is simple, portable, and efficient.
4d24561a 7563# So, we kill variables containing newlines.
fe5b0fdd
DH
7564# Ultrix sh set writes to stderr and can't be redirected directly,
7565# and sets the high bit in the cache file unless we assign to the vars.
4d24561a
JR
7566(
7567 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7568 eval ac_val=\$$ac_var
7569 case $ac_val in #(
7570 *${as_nl}*)
7571 case $ac_var in #(
a24b9f23
MA
7572 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7573$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4d24561a
JR
7574 esac
7575 case $ac_var in #(
7576 _ | IFS | as_nl) ;; #(
a24b9f23
MA
7577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7578 *) { eval $ac_var=; unset $ac_var;} ;;
4d24561a
JR
7579 esac ;;
7580 esac
7581 done
7582
fe5b0fdd 7583 (set) 2>&1 |
4d24561a
JR
7584 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7585 *${as_nl}ac_space=\ *)
a24b9f23
MA
7586 # `set' does not quote correctly, so add quotes: double-quote
7587 # substitution turns \\\\ into \\, and sed turns \\ into \.
fe5b0fdd
DH
7588 sed -n \
7589 "s/'/'\\\\''/g;
7590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4d24561a 7591 ;; #(
fe5b0fdd
DH
7592 *)
7593 # `set' quotes correctly as required by POSIX, so do not add quotes.
4d24561a 7594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fe5b0fdd 7595 ;;
4d24561a
JR
7596 esac |
7597 sort
7598) |
fe5b0fdd 7599 sed '
4d24561a 7600 /^ac_cv_env_/b end
fe5b0fdd 7601 t clear
4d24561a 7602 :clear
fe5b0fdd
DH
7603 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7604 t end
4d24561a
JR
7605 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7606 :end' >>confcache
7607if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7608 if test -w "$cache_file"; then
a24b9f23
MA
7609 if test "x$cache_file" != "x/dev/null"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7611$as_echo "$as_me: updating cache $cache_file" >&6;}
7612 if test ! -f "$cache_file" || test -h "$cache_file"; then
7613 cat confcache >"$cache_file"
7614 else
7615 case $cache_file in #(
7616 */* | ?:*)
7617 mv -f confcache "$cache_file"$$ &&
7618 mv -f "$cache_file"$$ "$cache_file" ;; #(
7619 *)
7620 mv -f confcache "$cache_file" ;;
7621 esac
7622 fi
7623 fi
d758ad8c 7624 else
a24b9f23
MA
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d758ad8c 7627 fi
48ceb859 7628fi
fe5b0fdd
DH
7629rm -f confcache
7630
7631test "x$prefix" = xNONE && prefix=$ac_default_prefix
7632# Let make expand exec_prefix.
7633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7634
7635DEFS=-DHAVE_CONFIG_H
7636
7637ac_libobjs=
7638ac_ltlibobjs=
a24b9f23 7639U=
fe5b0fdd
DH
7640for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7641 # 1. Remove the extension, and $U if already installed.
4d24561a 7642 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
a24b9f23 7643 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4d24561a
JR
7644 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7645 # will be set to the directory where LIBOBJS objects are built.
a24b9f23
MA
7646 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7647 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
fe5b0fdd
DH
7648done
7649LIBOBJS=$ac_libobjs
7650
7651LTLIBOBJS=$ac_ltlibobjs
7652
7653
a24b9f23
MA
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7655$as_echo_n "checking that generated files are newer than configure... " >&6; }
7656 if test -n "$am_sleep_pid"; then
7657 # Hide warnings about reused PIDs.
7658 wait $am_sleep_pid 2>/dev/null
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7661$as_echo "done" >&6; }
7662 if test -n "$EXEEXT"; then
7663 am__EXEEXT_TRUE=
7664 am__EXEEXT_FALSE='#'
7665else
7666 am__EXEEXT_TRUE='#'
7667 am__EXEEXT_FALSE=
7668fi
7669
9a452f17 7670if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
a24b9f23
MA
7671 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7672Usually this means the macro was only invoked conditionally." "$LINENO" 5
9a452f17 7673fi
fc3ebe53 7674if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
a24b9f23
MA
7675 as_fn_error $? "conditional \"AMDEP\" was never defined.
7676Usually this means the macro was only invoked conditionally." "$LINENO" 5
fc3ebe53
DH
7677fi
7678if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
a24b9f23
MA
7679 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7680Usually this means the macro was only invoked conditionally." "$LINENO" 5
4a70cb10 7681fi
a24b9f23 7682
bfbe0fd6
TM
7683if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7684 as_fn_error $? "conditional \"BIND_ATF\" was never defined.
7685Usually this means the macro was only invoked conditionally." "$LINENO" 5
7686fi
4a70cb10 7687if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
a24b9f23
MA
7688 as_fn_error $? "conditional \"HAVE_ATF\" was never defined.
7689Usually this means the macro was only invoked conditionally." "$LINENO" 5
fc3ebe53 7690fi
68315782
FD
7691if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then
7692 as_fn_error $? "conditional \"HAVE_BINDDIR\" was never defined.
7693Usually this means the macro was only invoked conditionally." "$LINENO" 5
7694fi
f9741514
FD
7695if test -z "${INSTALL_BIND_TRUE}" && test -z "${INSTALL_BIND_FALSE}"; then
7696 as_fn_error $? "conditional \"INSTALL_BIND\" was never defined.
7697Usually this means the macro was only invoked conditionally." "$LINENO" 5
7698fi
48ceb859 7699
a24b9f23
MA
7700: "${CONFIG_STATUS=./config.status}"
7701ac_write_fail=0
fe5b0fdd
DH
7702ac_clean_files_save=$ac_clean_files
7703ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a24b9f23
MA
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7705$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7706as_write_fail=0
7707cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
fe5b0fdd
DH
7708#! $SHELL
7709# Generated by $as_me.
7710# Run this file to recreate the current configuration.
7711# Compiler output produced by configure, useful for debugging
7712# configure, is in config.log if it exists.
343729b9 7713
fe5b0fdd
DH
7714debug=false
7715ac_cs_recheck=false
7716ac_cs_silent=false
529be52a 7717
a24b9f23
MA
7718SHELL=\${CONFIG_SHELL-$SHELL}
7719export SHELL
7720_ASEOF
7721cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7722## -------------------- ##
7723## M4sh Initialization. ##
7724## -------------------- ##
fe5b0fdd 7725
4d24561a
JR
7726# Be more Bourne compatible
7727DUALCASE=1; export DUALCASE # for MKS sh
a24b9f23 7728if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fe5b0fdd
DH
7729 emulate sh
7730 NULLCMD=:
a24b9f23 7731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fe5b0fdd
DH
7732 # is contrary to our usage. Disable this feature.
7733 alias -g '${1+"$@"}'='"$@"'
4d24561a
JR
7734 setopt NO_GLOB_SUBST
7735else
a24b9f23
MA
7736 case `(set -o) 2>/dev/null` in #(
7737 *posix*) :
7738 set -o posix ;; #(
7739 *) :
7740 ;;
4d24561a 7741esac
4d24561a
JR
7742fi
7743
7744
a24b9f23
MA
7745as_nl='
7746'
7747export as_nl
7748# Printing a long string crashes Solaris 7 /usr/bin/printf.
7749as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7750as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7751as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7752# Prefer a ksh shell builtin over an external printf program on Solaris,
7753# but without wasting forks for bash or zsh.
7754if test -z "$BASH_VERSION$ZSH_VERSION" \
7755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7756 as_echo='print -r --'
7757 as_echo_n='print -rn --'
7758elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7759 as_echo='printf %s\n'
7760 as_echo_n='printf %s'
7761else
7762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7764 as_echo_n='/usr/ucb/echo -n'
2d5fba9b 7765 else
a24b9f23
MA
7766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7767 as_echo_n_body='eval
7768 arg=$1;
7769 case $arg in #(
7770 *"$as_nl"*)
7771 expr "X$arg" : "X\\(.*\\)$as_nl";
7772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7773 esac;
7774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7775 '
7776 export as_echo_n_body
7777 as_echo_n='sh -c $as_echo_n_body as_echo'
2d5fba9b 7778 fi
a24b9f23
MA
7779 export as_echo_body
7780 as_echo='sh -c $as_echo_body as_echo'
6057415f 7781fi
fe5b0fdd 7782
a24b9f23
MA
7783# The user is always right.
7784if test "${PATH_SEPARATOR+set}" != set; then
7785 PATH_SEPARATOR=:
7786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7788 PATH_SEPARATOR=';'
7789 }
d758ad8c
TL
7790fi
7791
fe5b0fdd 7792
4d24561a
JR
7793# IFS
7794# We need space, tab and new line, in precisely that order. Quoting is
7795# there to prevent editors from complaining about space-tab.
7796# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7797# splitting by setting IFS to empty value.)
4d24561a
JR
7798IFS=" "" $as_nl"
7799
7800# Find who we are. Look in the path if we contain no directory separator.
a24b9f23
MA
7801as_myself=
7802case $0 in #((
4d24561a
JR
7803 *[\\/]* ) as_myself=$0 ;;
7804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
a24b9f23
MA
7809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7810 done
4d24561a
JR
7811IFS=$as_save_IFS
7812
7813 ;;
7814esac
7815# We did not find ourselves, most probably we were run as `sh COMMAND'
7816# in which case we are not to be found in the path.
7817if test "x$as_myself" = x; then
7818 as_myself=$0
7819fi
7820if test ! -f "$as_myself"; then
a24b9f23
MA
7821 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7822 exit 1
4d24561a
JR
7823fi
7824
a24b9f23
MA
7825# Unset variables that we do not need and which cause bugs (e.g. in
7826# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7827# suppresses any "Segmentation fault" message there. '((' could
7828# trigger a bug in pdksh 5.2.14.
7829for as_var in BASH_ENV ENV MAIL MAILPATH
7830do eval test x\${$as_var+set} = xset \
7831 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4d24561a 7832done
fe5b0fdd
DH
7833PS1='$ '
7834PS2='> '
7835PS4='+ '
7836
a24b9f23
MA
7837# NLS nuisances.
7838LC_ALL=C
7839export LC_ALL
7840LANGUAGE=C
7841export LANGUAGE
7842
7843# CDPATH.
7844(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7845
7846
7847# as_fn_error STATUS ERROR [LINENO LOG_FD]
7848# ----------------------------------------
7849# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7850# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7851# script with STATUS, using 1 if that was 0.
7852as_fn_error ()
7853{
7854 as_status=$1; test $as_status -eq 0 && as_status=1
7855 if test "$4"; then
7856 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7857 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7858 fi
7859 $as_echo "$as_me: error: $2" >&2
7860 as_fn_exit $as_status
7861} # as_fn_error
7862
7863
7864# as_fn_set_status STATUS
7865# -----------------------
7866# Set $? to STATUS, without forking.
7867as_fn_set_status ()
7868{
7869 return $1
7870} # as_fn_set_status
7871
7872# as_fn_exit STATUS
7873# -----------------
7874# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7875as_fn_exit ()
7876{
7877 set +e
7878 as_fn_set_status $1
7879 exit $1
7880} # as_fn_exit
7881
7882# as_fn_unset VAR
7883# ---------------
7884# Portably unset VAR.
7885as_fn_unset ()
7886{
7887 { eval $1=; unset $1;}
7888}
7889as_unset=as_fn_unset
7890# as_fn_append VAR VALUE
7891# ----------------------
7892# Append the text in VALUE to the end of the definition contained in VAR. Take
7893# advantage of any shell optimizations that allow amortized linear growth over
7894# repeated appends, instead of the typical quadratic growth present in naive
7895# implementations.
7896if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7897 eval 'as_fn_append ()
7898 {
7899 eval $1+=\$2
7900 }'
7901else
7902 as_fn_append ()
7903 {
7904 eval $1=\$$1\$2
7905 }
7906fi # as_fn_append
7907
7908# as_fn_arith ARG...
7909# ------------------
7910# Perform arithmetic evaluation on the ARGs, and store the result in the
7911# global $as_val. Take advantage of shells that can avoid forks. The arguments
7912# must be portable across $(()) and expr.
7913if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7914 eval 'as_fn_arith ()
7915 {
7916 as_val=$(( $* ))
7917 }'
7918else
7919 as_fn_arith ()
7920 {
7921 as_val=`expr "$@" || test $? -eq 1`
7922 }
7923fi # as_fn_arith
7924
8c816ebb 7925
4d24561a
JR
7926if expr a : '\(a\)' >/dev/null 2>&1 &&
7927 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fe5b0fdd
DH
7928 as_expr=expr
7929else
7930 as_expr=false
7931fi
7932
4d24561a 7933if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fe5b0fdd
DH
7934 as_basename=basename
7935else
7936 as_basename=false
7937fi
7938
a24b9f23
MA
7939if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7940 as_dirname=dirname
7941else
7942 as_dirname=false
7943fi
fe5b0fdd 7944
4d24561a 7945as_me=`$as_basename -- "$0" ||
fe5b0fdd
DH
7946$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7947 X"$0" : 'X\(//\)$' \| \
4d24561a 7948 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a24b9f23 7949$as_echo X/"$0" |
4d24561a
JR
7950 sed '/^.*\/\([^/][^/]*\)\/*$/{
7951 s//\1/
7952 q
7953 }
7954 /^X\/\(\/\/\)$/{
7955 s//\1/
7956 q
7957 }
7958 /^X\/\(\/\).*/{
7959 s//\1/
7960 q
7961 }
7962 s/.*/./; q'`
7963
a24b9f23
MA
7964# Avoid depending upon Character Ranges.
7965as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7966as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7967as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7968as_cr_digits='0123456789'
7969as_cr_alnum=$as_cr_Letters$as_cr_digits
4d24561a
JR
7970
7971ECHO_C= ECHO_N= ECHO_T=
a24b9f23 7972case `echo -n x` in #(((((
4d24561a 7973-n*)
a24b9f23 7974 case `echo 'xy\c'` in
4d24561a 7975 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
a24b9f23
MA
7976 xy) ECHO_C='\c';;
7977 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7978 ECHO_T=' ';;
4d24561a
JR
7979 esac;;
7980*)
7981 ECHO_N='-n';;
fe5b0fdd 7982esac
2d5fba9b 7983
fe5b0fdd 7984rm -f conf$$ conf$$.exe conf$$.file
4d24561a
JR
7985if test -d conf$$.dir; then
7986 rm -f conf$$.dir/conf$$.file
7987else
7988 rm -f conf$$.dir
a24b9f23
MA
7989 mkdir conf$$.dir 2>/dev/null
7990fi
7991if (echo >conf$$.file) 2>/dev/null; then
7992 if ln -s conf$$.file conf$$ 2>/dev/null; then
7993 as_ln_s='ln -s'
7994 # ... but there are two gotchas:
7995 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7996 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7997 # In both cases, we have to default to `cp -pR'.
7998 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7999 as_ln_s='cp -pR'
8000 elif ln conf$$.file conf$$ 2>/dev/null; then
8001 as_ln_s=ln
8002 else
8003 as_ln_s='cp -pR'
8004 fi
8005else
8006 as_ln_s='cp -pR'
fe5b0fdd 8007fi
4d24561a
JR
8008rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8009rmdir conf$$.dir 2>/dev/null
fe5b0fdd 8010
a24b9f23
MA
8011
8012# as_fn_mkdir_p
8013# -------------
8014# Create "$as_dir" as a directory, including parents if necessary.
8015as_fn_mkdir_p ()
8016{
8017
8018 case $as_dir in #(
8019 -*) as_dir=./$as_dir;;
8020 esac
8021 test -d "$as_dir" || eval $as_mkdir_p || {
8022 as_dirs=
8023 while :; do
8024 case $as_dir in #(
8025 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8026 *) as_qdir=$as_dir;;
8027 esac
8028 as_dirs="'$as_qdir' $as_dirs"
8029 as_dir=`$as_dirname -- "$as_dir" ||
8030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8031 X"$as_dir" : 'X\(//\)[^/]' \| \
8032 X"$as_dir" : 'X\(//\)$' \| \
8033 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8034$as_echo X"$as_dir" |
8035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8036 s//\1/
8037 q
8038 }
8039 /^X\(\/\/\)[^/].*/{
8040 s//\1/
8041 q
8042 }
8043 /^X\(\/\/\)$/{
8044 s//\1/
8045 q
8046 }
8047 /^X\(\/\).*/{
8048 s//\1/
8049 q
8050 }
8051 s/.*/./; q'`
8052 test -d "$as_dir" && break
8053 done
8054 test -z "$as_dirs" || eval "mkdir $as_dirs"
8055 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8056
8057
8058} # as_fn_mkdir_p
fe5b0fdd 8059if mkdir -p . 2>/dev/null; then
a24b9f23 8060 as_mkdir_p='mkdir -p "$as_dir"'
fe5b0fdd
DH
8061else
8062 test -d ./-p && rmdir ./-p
8063 as_mkdir_p=false
d758ad8c 8064fi
2ac5bde5 8065
a24b9f23
MA
8066
8067# as_fn_executable_p FILE
8068# -----------------------
8069# Test if FILE is an executable regular file.
8070as_fn_executable_p ()
8071{
8072 test -f "$1" && test -x "$1"
8073} # as_fn_executable_p
8074as_test_x='test -x'
8075as_executable_p=as_fn_executable_p
fe5b0fdd
DH
8076
8077# Sed expression to map a string onto a valid CPP name.
8078as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8079
8080# Sed expression to map a string onto a valid variable name.
8081as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8082
8083
8084exec 6>&1
a24b9f23
MA
8085## ----------------------------------- ##
8086## Main body of $CONFIG_STATUS script. ##
8087## ----------------------------------- ##
8088_ASEOF
8089test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
fe5b0fdd 8090
a24b9f23
MA
8091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8092# Save the log message, to keep $0 and so on meaningful, and to
fe5b0fdd 8093# report actual input values of CONFIG_FILES etc. instead of their
4d24561a
JR
8094# values after options handling.
8095ac_log="
109fa1d0 8096This file was extended by DHCP $as_me 4.4.2, which was
a24b9f23 8097generated by GNU Autoconf 2.69. Invocation command line was
fe5b0fdd
DH
8098
8099 CONFIG_FILES = $CONFIG_FILES
8100 CONFIG_HEADERS = $CONFIG_HEADERS
8101 CONFIG_LINKS = $CONFIG_LINKS
8102 CONFIG_COMMANDS = $CONFIG_COMMANDS
8103 $ $0 $@
8104
4d24561a
JR
8105on `(hostname || uname -n) 2>/dev/null | sed 1q`
8106"
8107
fe5b0fdd
DH
8108_ACEOF
8109
a24b9f23
MA
8110case $ac_config_files in *"
8111"*) set x $ac_config_files; shift; ac_config_files=$*;;
8112esac
8113
8114case $ac_config_headers in *"
8115"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8116esac
8117
8118
8119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fe5b0fdd 8120# Files that config.status was made for.
4d24561a
JR
8121config_files="$ac_config_files"
8122config_headers="$ac_config_headers"
8123config_commands="$ac_config_commands"
7d714d6b 8124
4d24561a 8125_ACEOF
fe5b0fdd 8126
a24b9f23 8127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fe5b0fdd 8128ac_cs_usage="\
a24b9f23
MA
8129\`$as_me' instantiates files and other configuration actions
8130from templates according to the current configuration. Unless the files
8131and actions are specified as TAGs, all are instantiated by default.
fe5b0fdd 8132
a24b9f23 8133Usage: $0 [OPTION]... [TAG]...
fe5b0fdd
DH
8134
8135 -h, --help print this help, then exit
4d24561a 8136 -V, --version print version number and configuration settings, then exit
a24b9f23
MA
8137 --config print configuration, then exit
8138 -q, --quiet, --silent
8139 do not print progress messages
fe5b0fdd
DH
8140 -d, --debug don't remove temporary files
8141 --recheck update $as_me by reconfiguring in the same conditions
a24b9f23
MA
8142 --file=FILE[:TEMPLATE]
8143 instantiate the configuration file FILE
8144 --header=FILE[:TEMPLATE]
8145 instantiate the configuration header FILE
fe5b0fdd
DH
8146
8147Configuration files:
8148$config_files
8149
8150Configuration headers:
8151$config_headers
8152
fc3ebe53
DH
8153Configuration commands:
8154$config_commands
8155
a24b9f23 8156Report bugs to <dhcp-users@isc.org>."
7d714d6b 8157
4d24561a 8158_ACEOF
a24b9f23
MA
8159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8160ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
fe5b0fdd 8161ac_cs_version="\\
109fa1d0 8162DHCP config.status 4.4.2
a24b9f23
MA
8163configured by $0, generated by GNU Autoconf 2.69,
8164 with options \\"\$ac_cs_config\\"
fe5b0fdd 8165
a24b9f23 8166Copyright (C) 2012 Free Software Foundation, Inc.
fe5b0fdd
DH
8167This config.status script is free software; the Free Software Foundation
8168gives unlimited permission to copy, distribute and modify it."
4d24561a
JR
8169
8170ac_pwd='$ac_pwd'
8171srcdir='$srcdir'
8172INSTALL='$INSTALL'
2d5fba9b 8173MKDIR_P='$MKDIR_P'
a24b9f23
MA
8174AWK='$AWK'
8175test -n "\$AWK" || AWK=awk
fe5b0fdd
DH
8176_ACEOF
8177
a24b9f23
MA
8178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8179# The default lists apply if the user does not specify any file.
fe5b0fdd
DH
8180ac_need_defaults=:
8181while test $# != 0
8182do
8183 case $1 in
a24b9f23 8184 --*=?*)
4d24561a
JR
8185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8186 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
fe5b0fdd
DH
8187 ac_shift=:
8188 ;;
a24b9f23
MA
8189 --*=)
8190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8191 ac_optarg=
8192 ac_shift=:
8193 ;;
4d24561a 8194 *)
fe5b0fdd
DH
8195 ac_option=$1
8196 ac_optarg=$2
8197 ac_shift=shift
8198 ;;
8199 esac
8200
8201 case $ac_option in
8202 # Handling of the options.
8203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8204 ac_cs_recheck=: ;;
4d24561a 8205 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
a24b9f23
MA
8206 $as_echo "$ac_cs_version"; exit ;;
8207 --config | --confi | --conf | --con | --co | --c )
8208 $as_echo "$ac_cs_config"; exit ;;
4d24561a 8209 --debug | --debu | --deb | --de | --d | -d )
fe5b0fdd
DH
8210 debug=: ;;
8211 --file | --fil | --fi | --f )
8212 $ac_shift
a24b9f23
MA
8213 case $ac_optarg in
8214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8215 '') as_fn_error $? "missing file argument" ;;
8216 esac
8217 as_fn_append CONFIG_FILES " '$ac_optarg'"
fe5b0fdd
DH
8218 ac_need_defaults=false;;
8219 --header | --heade | --head | --hea )
8220 $ac_shift
a24b9f23
MA
8221 case $ac_optarg in
8222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8223 esac
8224 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
fe5b0fdd 8225 ac_need_defaults=false;;
4d24561a
JR
8226 --he | --h)
8227 # Conflict between --help and --header
a24b9f23
MA
8228 as_fn_error $? "ambiguous option: \`$1'
8229Try \`$0 --help' for more information.";;
4d24561a 8230 --help | --hel | -h )
a24b9f23 8231 $as_echo "$ac_cs_usage"; exit ;;
fe5b0fdd
DH
8232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8234 ac_cs_silent=: ;;
8235
8236 # This is an error.
a24b9f23
MA
8237 -*) as_fn_error $? "unrecognized option: \`$1'
8238Try \`$0 --help' for more information." ;;
fe5b0fdd 8239
a24b9f23 8240 *) as_fn_append ac_config_targets " $1"
4d24561a 8241 ac_need_defaults=false ;;
fe5b0fdd
DH
8242
8243 esac
8244 shift
8245done
8246
8247ac_configure_extra_args=
8248
8249if $ac_cs_silent; then
8250 exec 6>/dev/null
8251 ac_configure_extra_args="$ac_configure_extra_args --silent"
8252fi
8253
8254_ACEOF
a24b9f23 8255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fe5b0fdd 8256if \$ac_cs_recheck; then
a24b9f23
MA
8257 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8258 shift
8259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8260 CONFIG_SHELL='$SHELL'
4d24561a 8261 export CONFIG_SHELL
a24b9f23 8262 exec "\$@"
fe5b0fdd
DH
8263fi
8264
8265_ACEOF
a24b9f23 8266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4d24561a
JR
8267exec 5>>config.log
8268{
8269 echo
8270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8271## Running $as_me. ##
8272_ASBOX
a24b9f23 8273 $as_echo "$ac_log"
4d24561a 8274} >&5
fe5b0fdd 8275
4d24561a 8276_ACEOF
a24b9f23 8277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fc3ebe53 8278#
4d24561a 8279# INIT-COMMANDS
fc3ebe53 8280#
0cd94b5e 8281AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
fe5b0fdd 8282
fc3ebe53 8283_ACEOF
fe5b0fdd 8284
a24b9f23 8285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4d24561a
JR
8286
8287# Handling of arguments.
fe5b0fdd
DH
8288for ac_config_target in $ac_config_targets
8289do
4d24561a
JR
8290 case $ac_config_target in
8291 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8292 "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;;
5a428b2e 8293 "$srcdir/bind/Makefile") CONFIG_FILES="$CONFIG_FILES $srcdir/bind/Makefile" ;;
c87db1b1 8294 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4d24561a 8295 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
79818c93 8296 "client/tests/Makefile") CONFIG_FILES="$CONFIG_FILES client/tests/Makefile" ;;
13e5cc6c 8297 "common/Makefile.am") CONFIG_FILES="$CONFIG_FILES common/Makefile.am" ;;
4d24561a
JR
8298 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
8299 "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;;
13e5cc6c 8300 "dhcpctl/Makefile.am") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile.am" ;;
4d24561a 8301 "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;;
4d24561a 8302 "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
0cd94b5e 8303 "keama/Makefile") CONFIG_FILES="$CONFIG_FILES keama/Makefile" ;;
13e5cc6c 8304 "omapip/Makefile.am") CONFIG_FILES="$CONFIG_FILES omapip/Makefile.am" ;;
4d24561a
JR
8305 "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;;
8306 "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;;
0a2f9a62 8307 "relay/tests/Makefile") CONFIG_FILES="$CONFIG_FILES relay/tests/Makefile" ;;
4d24561a 8308 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13e5cc6c 8309 "tests/Makefile.am") CONFIG_FILES="$CONFIG_FILES tests/Makefile.am" ;;
4d24561a 8310 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9a111ee8 8311 "tests/unittest.sh") CONFIG_FILES="$CONFIG_FILES tests/unittest.sh" ;;
4a70cb10
TM
8312 "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;;
8313 "doc/devel/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/devel/doxyfile" ;;
4d24561a 8314
a24b9f23 8315 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
fe5b0fdd
DH
8316 esac
8317done
8318
4d24561a 8319
fe5b0fdd
DH
8320# If the user did not use the arguments to specify the items to instantiate,
8321# then the envvar interface is used. Set only those that are not.
8322# We use the long form for the default assignment because of an extremely
8323# bizarre bug on SunOS 4.1.3.
8324if $ac_need_defaults; then
8325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fc3ebe53 8327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fe5b0fdd
DH
8328fi
8329
8330# Have a temporary directory for convenience. Make it in the build tree
4d24561a 8331# simply because there is no reason against having it here, and in addition,
fe5b0fdd 8332# creating and moving files from /tmp can sometimes cause problems.
4d24561a
JR
8333# Hook for its removal unless debugging.
8334# Note that there is a small window in which the directory will not be cleaned:
8335# after its creation but before its name has been assigned to `$tmp'.
fe5b0fdd
DH
8336$debug ||
8337{
a24b9f23 8338 tmp= ac_tmp=
4d24561a 8339 trap 'exit_status=$?
a24b9f23
MA
8340 : "${ac_tmp:=$tmp}"
8341 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4d24561a 8342' 0
a24b9f23 8343 trap 'as_fn_exit 1' 1 2 13 15
fe5b0fdd
DH
8344}
8345# Create a (secure) tmp directory for tmp files.
8346
8347{
4d24561a 8348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
a24b9f23 8349 test -d "$tmp"
fe5b0fdd
DH
8350} ||
8351{
4d24561a
JR
8352 tmp=./conf$$-$RANDOM
8353 (umask 077 && mkdir "$tmp")
a24b9f23
MA
8354} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8355ac_tmp=$tmp
9228099e 8356
a24b9f23
MA
8357# Set up the scripts for CONFIG_FILES section.
8358# No need to generate them if there are no CONFIG_FILES.
8359# This happens for instance with `./config.status config.h'.
529be52a 8360if test -n "$CONFIG_FILES"; then
4a70cb10 8361
4d24561a 8362
a24b9f23
MA
8363ac_cr=`echo X | tr X '\015'`
8364# On cygwin, bash can eat \r inside `` if the user requested igncr.
8365# But we know of no other shell where ac_cr would be empty at this
8366# point, so we can use a bashism as a fallback.
8367if test "x$ac_cr" = x; then
8368 eval ac_cr=\$\'\\r\'
8369fi
8370ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8371if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8372 ac_cs_awk_cr='\\r'
8373else
8374 ac_cs_awk_cr=$ac_cr
8375fi
8376
8377echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8378_ACEOF
2d5fba9b 8379
529be52a 8380
a24b9f23
MA
8381{
8382 echo "cat >conf$$subs.awk <<_ACEOF" &&
8383 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8384 echo "_ACEOF"
8385} >conf$$subs.sh ||
8386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8387ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4d24561a
JR
8388ac_delim='%!_!# '
8389for ac_last_try in false false false false false :; do
a24b9f23
MA
8390 . ./conf$$subs.sh ||
8391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2d5fba9b 8392
a24b9f23
MA
8393 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8394 if test $ac_delim_n = $ac_delim_num; then
4d24561a
JR
8395 break
8396 elif $ac_last_try; then
a24b9f23 8397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4d24561a
JR
8398 else
8399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c9a1db5e 8400 fi
4d24561a 8401done
a24b9f23
MA
8402rm -f conf$$subs.sh
8403
8404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8405cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8406_ACEOF
8407sed -n '
8408h
8409s/^/S["/; s/!.*/"]=/
8410p
8411g
8412s/^[^!]*!//
8413:repl
8414t repl
8415s/'"$ac_delim"'$//
8416t delim
8417:nl
8418h
8419s/\(.\{148\}\)..*/\1/
8420t more1
8421s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8422p
8423n
8424b repl
8425:more1
8426s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8427p
8428g
8429s/.\{148\}//
8430t nl
8431:delim
8432h
8433s/\(.\{148\}\)..*/\1/
8434t more2
8435s/["\\]/\\&/g; s/^/"/; s/$/"/
8436p
8437b
8438:more2
8439s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8440p
8441g
8442s/.\{148\}//
8443t delim
8444' <conf$$subs.awk | sed '
8445/^[^""]/{
8446 N
8447 s/\n//
8448}
8449' >>$CONFIG_STATUS || ac_write_fail=1
8450rm -f conf$$subs.awk
8451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8452_ACAWK
8453cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8454 for (key in S) S_is_set[key] = 1
8455 FS = "\a"
4d24561a 8456
a24b9f23
MA
8457}
8458{
8459 line = $ 0
8460 nfields = split(line, field, "@")
8461 substed = 0
8462 len = length(field[1])
8463 for (i = 2; i < nfields; i++) {
8464 key = field[i]
8465 keylen = length(key)
8466 if (S_is_set[key]) {
8467 value = S[key]
8468 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8469 len += length(value) + length(field[++i])
8470 substed = 1
8471 } else
8472 len += 1 + keylen
8473 }
8474
8475 print line
8476}
273bfdc3 8477
a24b9f23 8478_ACAWK
4d24561a 8479_ACEOF
a24b9f23
MA
8480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8481if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8482 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8483else
8484 cat
8485fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8486 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
c9a1db5e 8487_ACEOF
4d24561a 8488
a24b9f23
MA
8489# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8490# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4d24561a
JR
8491# trailing colons and then remove the whole line if VPATH becomes empty
8492# (actually we leave an empty line to preserve line numbers).
8493if test "x$srcdir" = x.; then
a24b9f23
MA
8494 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8495h
8496s///
8497s/^/:/
8498s/[ ]*$/:/
8499s/:\$(srcdir):/:/g
8500s/:\${srcdir}:/:/g
8501s/:@srcdir@:/:/g
8502s/^:*//
4d24561a 8503s/:*$//
a24b9f23
MA
8504x
8505s/\(=[ ]*\).*/\1/
8506G
8507s/\n//
4d24561a
JR
8508s/^[^=]*=[ ]*$//
8509}'
8510fi
8511
a24b9f23 8512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4d24561a
JR
8513fi # test -n "$CONFIG_FILES"
8514
a24b9f23
MA
8515# Set up the scripts for CONFIG_HEADERS section.
8516# No need to generate them if there are no CONFIG_HEADERS.
8517# This happens for instance with `./config.status Makefile'.
8518if test -n "$CONFIG_HEADERS"; then
8519cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8520BEGIN {
8521_ACEOF
8522
8523# Transform confdefs.h into an awk script `defines.awk', embedded as
8524# here-document in config.status, that substitutes the proper values into
8525# config.h.in to produce config.h.
8526
8527# Create a delimiter string that does not exist in confdefs.h, to ease
8528# handling of long lines.
8529ac_delim='%!_!# '
8530for ac_last_try in false false :; do
8531 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8532 if test -z "$ac_tt"; then
8533 break
8534 elif $ac_last_try; then
8535 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8536 else
8537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8538 fi
8539done
8540
8541# For the awk script, D is an array of macro values keyed by name,
8542# likewise P contains macro parameters if any. Preserve backslash
8543# newline sequences.
8544
8545ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8546sed -n '
8547s/.\{148\}/&'"$ac_delim"'/g
8548t rset
8549:rset
8550s/^[ ]*#[ ]*define[ ][ ]*/ /
8551t def
8552d
8553:def
8554s/\\$//
8555t bsnl
8556s/["\\]/\\&/g
8557s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8558D["\1"]=" \3"/p
8559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8560d
8561:bsnl
8562s/["\\]/\\&/g
8563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8564D["\1"]=" \3\\\\\\n"\\/p
8565t cont
8566s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8567t cont
8568d
8569:cont
8570n
8571s/.\{148\}/&'"$ac_delim"'/g
8572t clear
8573:clear
8574s/\\$//
8575t bsnlc
8576s/["\\]/\\&/g; s/^/"/; s/$/"/p
8577d
8578:bsnlc
8579s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8580b cont
8581' <confdefs.h | sed '
8582s/'"$ac_delim"'/"\\\
8583"/g' >>$CONFIG_STATUS || ac_write_fail=1
8584
8585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8586 for (key in D) D_is_set[key] = 1
8587 FS = "\a"
8588}
8589/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8590 line = \$ 0
8591 split(line, arg, " ")
8592 if (arg[1] == "#") {
8593 defundef = arg[2]
8594 mac1 = arg[3]
8595 } else {
8596 defundef = substr(arg[1], 2)
8597 mac1 = arg[2]
8598 }
8599 split(mac1, mac2, "(") #)
8600 macro = mac2[1]
8601 prefix = substr(line, 1, index(line, defundef) - 1)
8602 if (D_is_set[macro]) {
8603 # Preserve the white space surrounding the "#".
8604 print prefix "define", macro P[macro] D[macro]
8605 next
8606 } else {
8607 # Replace #undef with comments. This is necessary, for example,
8608 # in the case of _POSIX_SOURCE, which is predefined and required
8609 # on some systems where configure will not decide to define it.
8610 if (defundef == "undef") {
8611 print "/*", prefix defundef, macro, "*/"
8612 next
8613 }
8614 }
8615}
8616{ print }
8617_ACAWK
8618_ACEOF
8619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8620 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8621fi # test -n "$CONFIG_HEADERS"
8622
9228099e 8623
a24b9f23
MA
8624eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8625shift
8626for ac_tag
4d24561a
JR
8627do
8628 case $ac_tag in
8629 :[FHLC]) ac_mode=$ac_tag; continue;;
8630 esac
8631 case $ac_mode$ac_tag in
8632 :[FHL]*:*);;
a24b9f23 8633 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4d24561a
JR
8634 :[FH]-) ac_tag=-:-;;
8635 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8636 esac
8637 ac_save_IFS=$IFS
8638 IFS=:
8639 set x $ac_tag
8640 IFS=$ac_save_IFS
8641 shift
8642 ac_file=$1
8643 shift
8644
8645 case $ac_mode in
8646 :L) ac_source=$1;;
8647 :[FH])
8648 ac_file_inputs=
8649 for ac_f
8650 do
8651 case $ac_f in
a24b9f23 8652 -) ac_f="$ac_tmp/stdin";;
4d24561a
JR
8653 *) # Look for the file first in the build tree, then in the source tree
8654 # (if the path is not absolute). The absolute path cannot be DOS-style,
8655 # because $ac_f cannot contain `:'.
8656 test -f "$ac_f" ||
8657 case $ac_f in
8658 [\\/$]*) false;;
8659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8660 esac ||
a24b9f23 8661 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4d24561a 8662 esac
a24b9f23
MA
8663 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8664 as_fn_append ac_file_inputs " '$ac_f'"
4d24561a
JR
8665 done
8666
8667 # Let's still pretend it is `configure' which instantiates (i.e., don't
8668 # use $as_me), people would be surprised to read:
8669 # /* config.h. Generated by config.status. */
a24b9f23
MA
8670 configure_input='Generated from '`
8671 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8672 `' by configure.'
4d24561a
JR
8673 if test x"$ac_file" != x-; then
8674 configure_input="$ac_file. $configure_input"
a24b9f23
MA
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8676$as_echo "$as_me: creating $ac_file" >&6;}
4d24561a 8677 fi
a24b9f23
MA
8678 # Neutralize special characters interpreted by sed in replacement strings.
8679 case $configure_input in #(
8680 *\&* | *\|* | *\\* )
8681 ac_sed_conf_input=`$as_echo "$configure_input" |
8682 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8683 *) ac_sed_conf_input=$configure_input;;
8684 esac
4d24561a
JR
8685
8686 case $ac_tag in
a24b9f23
MA
8687 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4d24561a
JR
8689 esac
8690 ;;
fe5b0fdd
DH
8691 esac
8692
4d24561a 8693 ac_dir=`$as_dirname -- "$ac_file" ||
fe5b0fdd
DH
8694$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8695 X"$ac_file" : 'X\(//\)[^/]' \| \
8696 X"$ac_file" : 'X\(//\)$' \| \
4d24561a 8697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
a24b9f23 8698$as_echo X"$ac_file" |
4d24561a
JR
8699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8700 s//\1/
8701 q
8702 }
8703 /^X\(\/\/\)[^/].*/{
8704 s//\1/
8705 q
8706 }
8707 /^X\(\/\/\)$/{
8708 s//\1/
8709 q
8710 }
8711 /^X\(\/\).*/{
8712 s//\1/
8713 q
8714 }
8715 s/.*/./; q'`
a24b9f23 8716 as_dir="$ac_dir"; as_fn_mkdir_p
fe5b0fdd
DH
8717 ac_builddir=.
8718
4d24561a
JR
8719case "$ac_dir" in
8720.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8721*)
a24b9f23 8722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4d24561a 8723 # A ".." for each directory in $ac_dir_suffix.
a24b9f23 8724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4d24561a
JR
8725 case $ac_top_builddir_sub in
8726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8728 esac ;;
8729esac
8730ac_abs_top_builddir=$ac_pwd
8731ac_abs_builddir=$ac_pwd$ac_dir_suffix
8732# for backward compatibility:
8733ac_top_builddir=$ac_top_build_prefix
fe5b0fdd
DH
8734
8735case $srcdir in
4d24561a 8736 .) # We are building in place.
fe5b0fdd 8737 ac_srcdir=.
4d24561a
JR
8738 ac_top_srcdir=$ac_top_builddir_sub
8739 ac_abs_top_srcdir=$ac_pwd ;;
8740 [\\/]* | ?:[\\/]* ) # Absolute name.
fe5b0fdd 8741 ac_srcdir=$srcdir$ac_dir_suffix;
4d24561a
JR
8742 ac_top_srcdir=$srcdir
8743 ac_abs_top_srcdir=$srcdir ;;
8744 *) # Relative name.
8745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8746 ac_top_srcdir=$ac_top_build_prefix$srcdir
8747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fe5b0fdd 8748esac
4d24561a 8749ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fe5b0fdd
DH
8750
8751
4d24561a
JR
8752 case $ac_mode in
8753 :F)
8754 #
8755 # CONFIG_FILE
8756 #
fe5b0fdd
DH
8757
8758 case $INSTALL in
8759 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4d24561a 8760 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
fe5b0fdd 8761 esac
2d5fba9b
DH
8762 ac_MKDIR_P=$MKDIR_P
8763 case $MKDIR_P in
8764 [\\/$]* | ?:[\\/]* ) ;;
8765 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8766 esac
4d24561a 8767_ACEOF
273bfdc3 8768
4d24561a
JR
8769
8770# Neutralize VPATH when `$srcdir' = `.'.
8771# Shell code in configure.ac might set extrasub.
8772# FIXME: do we really want to maintain this feature?
a24b9f23
MA
8773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8774ac_sed_extra="$ac_vpsub
fe5b0fdd
DH
8775$extrasub
8776_ACEOF
a24b9f23 8777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fe5b0fdd
DH
8778:t
8779/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a24b9f23 8780s|@configure_input@|$ac_sed_conf_input|;t t
4d24561a 8781s&@top_builddir@&$ac_top_builddir_sub&;t t
a24b9f23 8782s&@top_build_prefix@&$ac_top_build_prefix&;t t
4d24561a
JR
8783s&@srcdir@&$ac_srcdir&;t t
8784s&@abs_srcdir@&$ac_abs_srcdir&;t t
8785s&@top_srcdir@&$ac_top_srcdir&;t t
8786s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8787s&@builddir@&$ac_builddir&;t t
8788s&@abs_builddir@&$ac_abs_builddir&;t t
8789s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8790s&@INSTALL@&$ac_INSTALL&;t t
2d5fba9b 8791s&@MKDIR_P@&$ac_MKDIR_P&;t t
a24b9f23
MA
8792"
8793eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8794 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4d24561a 8795
4d24561a 8796
a24b9f23 8797 rm -f "$ac_tmp/stdin"
fe5b0fdd 8798 case $ac_file in
a24b9f23
MA
8799 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8800 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8801 esac \
8802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4d24561a
JR
8803 ;;
8804 :H)
8805 #
8806 # CONFIG_HEADER
8807 #
fe5b0fdd 8808 if test x"$ac_file" != x-; then
a24b9f23
MA
8809 {
8810 $as_echo "/* $configure_input */" \
8811 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8812 } >"$ac_tmp/config.h" \
8813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8814 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8816$as_echo "$as_me: $ac_file is unchanged" >&6;}
fe5b0fdd 8817 else
a24b9f23
MA
8818 rm -f "$ac_file"
8819 mv "$ac_tmp/config.h" "$ac_file" \
8820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
fe5b0fdd
DH
8821 fi
8822 else
a24b9f23
MA
8823 $as_echo "/* $configure_input */" \
8824 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8825 || as_fn_error $? "could not create -" "$LINENO" 5
fe5b0fdd 8826 fi
a24b9f23
MA
8827# Compute "$ac_file"'s index in $config_headers.
8828_am_arg="$ac_file"
fc3ebe53
DH
8829_am_stamp_count=1
8830for _am_header in $config_headers :; do
8831 case $_am_header in
2d5fba9b 8832 $_am_arg | $_am_arg:* )
fc3ebe53
DH
8833 break ;;
8834 * )
8835 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8836 esac
8837done
2d5fba9b
DH
8838echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8839$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8840 X"$_am_arg" : 'X\(//\)[^/]' \| \
8841 X"$_am_arg" : 'X\(//\)$' \| \
8842 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
a24b9f23 8843$as_echo X"$_am_arg" |
4d24561a
JR
8844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8845 s//\1/
8846 q
8847 }
8848 /^X\(\/\/\)[^/].*/{
8849 s//\1/
8850 q
8851 }
8852 /^X\(\/\/\)$/{
8853 s//\1/
8854 q
8855 }
8856 /^X\(\/\).*/{
8857 s//\1/
8858 q
8859 }
8860 s/.*/./; q'`/stamp-h$_am_stamp_count
8861 ;;
7d714d6b 8862
a24b9f23
MA
8863 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8864$as_echo "$as_me: executing $ac_file commands" >&6;}
4d24561a
JR
8865 ;;
8866 esac
fc3ebe53
DH
8867
8868
4d24561a 8869 case $ac_file$ac_mode in
a24b9f23 8870 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
69e9da00 8871 # Older Autoconf quotes --file arguments for eval, but not when files
a24b9f23
MA
8872 # are listed without --file. Let's play safe and only enable the eval
8873 # if we detect the quoting.
0cd94b5e
TM
8874 # TODO: see whether this extra hack can be removed once we start
8875 # requiring Autoconf 2.70 or later.
8876 case $CONFIG_FILES in #(
8877 *\'*) :
8878 eval set x "$CONFIG_FILES" ;; #(
8879 *) :
8880 set x $CONFIG_FILES ;; #(
8881 *) :
8882 ;;
8883esac
a24b9f23 8884 shift
0cd94b5e
TM
8885 # Used to flag and report bootstrapping failures.
8886 am_rc=0
8887 for am_mf
a24b9f23
MA
8888 do
8889 # Strip MF so we end up with the name of the file.
0cd94b5e
TM
8890 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
8891 # Check whether this is an Automake generated Makefile which includes
8892 # dependency-tracking related rules and includes.
8893 # Grep'ing the whole file directly is not great: AIX grep has a line
a24b9f23 8894 # limit of 2048, but all sed's we know have understand at least 4000.
0cd94b5e
TM
8895 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8896 || continue
8897 am_dirpart=`$as_dirname -- "$am_mf" ||
8898$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8899 X"$am_mf" : 'X\(//\)[^/]' \| \
8900 X"$am_mf" : 'X\(//\)$' \| \
8901 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8902$as_echo X"$am_mf" |
4d24561a
JR
8903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8904 s//\1/
8905 q
8906 }
8907 /^X\(\/\/\)[^/].*/{
8908 s//\1/
8909 q
8910 }
8911 /^X\(\/\/\)$/{
8912 s//\1/
8913 q
8914 }
8915 /^X\(\/\).*/{
8916 s//\1/
8917 q
8918 }
8919 s/.*/./; q'`
0cd94b5e
TM
8920 am_filepart=`$as_basename -- "$am_mf" ||
8921$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8922 X"$am_mf" : 'X\(//\)$' \| \
8923 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8924$as_echo X/"$am_mf" |
8925 sed '/^.*\/\([^/][^/]*\)\/*$/{
4d24561a
JR
8926 s//\1/
8927 q
8928 }
0cd94b5e 8929 /^X\/\(\/\/\)$/{
4d24561a
JR
8930 s//\1/
8931 q
8932 }
0cd94b5e 8933 /^X\/\(\/\).*/{
4d24561a
JR
8934 s//\1/
8935 q
8936 }
8937 s/.*/./; q'`
0cd94b5e
TM
8938 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8939 && sed -e '/# am--include-marker/d' "$am_filepart" \
8940 | $MAKE -f - am--depfiles" >&5
8941 (cd "$am_dirpart" \
8942 && sed -e '/# am--include-marker/d' "$am_filepart" \
8943 | $MAKE -f - am--depfiles) >&5 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } || am_rc=$?
fc3ebe53 8947 done
0cd94b5e
TM
8948 if test $am_rc -ne 0; then
8949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8951as_fn_error $? "Something went wrong bootstrapping makefile fragments
8952 for automatic dependency tracking. Try re-running configure with the
8953 '--disable-dependency-tracking' option to at least be able to build
8954 the package (albeit without support for automatic dependency tracking).
8955See \`config.log' for more details" "$LINENO" 5; }
8956 fi
8957 { am_dirpart=; unset am_dirpart;}
8958 { am_filepart=; unset am_filepart;}
8959 { am_mf=; unset am_mf;}
8960 { am_rc=; unset am_rc;}
8961 rm -f conftest-deps.mk
a24b9f23 8962}
fc3ebe53 8963 ;;
4d24561a 8964
fc3ebe53 8965 esac
4d24561a 8966done # for ac_tag
fe5b0fdd
DH
8967
8968
a24b9f23 8969as_fn_exit 0
fe5b0fdd 8970_ACEOF
fe5b0fdd
DH
8971ac_clean_files=$ac_clean_files_save
8972
a24b9f23
MA
8973test $ac_write_fail = 0 ||
8974 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8975
fe5b0fdd
DH
8976
8977# configure is writing to config.log, and then calls config.status.
8978# config.status does its own redirection, appending to config.log.
8979# Unfortunately, on DOS this fails, as config.log is still kept open
8980# by configure, so config.status won't be able to write to it; its
8981# output is simply discarded. So we exec the FD to /dev/null,
8982# effectively closing config.log, so it can be properly (re)opened and
8983# appended to by config.status. When coming back to configure, we
8984# need to make the FD available again.
8985if test "$no_create" != yes; then
8986 ac_cs_success=:
8987 ac_config_status_args=
8988 test "$silent" = yes &&
8989 ac_config_status_args="$ac_config_status_args --quiet"
8990 exec 5>/dev/null
8991 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8992 exec 5>>config.log
8993 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8994 # would make configure fail if this is the last instruction.
a24b9f23
MA
8995 $ac_cs_success || as_fn_exit 1
8996fi
8997if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8999$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fe5b0fdd
DH
9000fi
9001
9002
13e5cc6c 9003
785c1a51
FD
9004if test "$enable_dhcpv4o6" = "yes"; then
9005 DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6"
9006elif test "$enable_dhcpv6" != "no"; then
9007 DHCP_VERSIONS="DHCPv4 and DHCPv6"
9008else
9009 DHCP_VERSIONS="DHCPv4"
9010fi
9011
4a70cb10
TM
9012cat > config.report << END
9013
9014 ISC DHCP source configure results:
9015 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
9016
9017Package:
9018 Name: $PACKAGE_NAME
9019 Version: $PACKAGE_VERSION
9020
9021C Compiler: $CC
9022
9023Flags:
9024 DEFS: $DEFS
9025 CFLAGS: $CFLAGS
9026
785c1a51
FD
9027DHCP versions: $DHCP_VERSIONS
9028
4a70cb10
TM
9029Features:
9030 debug: $enable_debug
9031 failover: $enable_failover
9032 execute: $enable_execute
3933e2aa 9033 binary-leases: $enable_binary_leases
e82906fc
TM
9034 dhcpv6: $enable_dhcpv6
9035 delayed-ack: $enable_delayed_ack
4406f9b0 9036 dhcpv4o6: $enable_dhcpv4o6
563f0b8a 9037 relay-port: $enable_relay_port
4a70cb10
TM
9038
9039Developer:
9040 ATF unittests : $atf_path
9041
9042END
9043# TODO: Add Perl system tests
9044
9045if test "$atf_path" != "no"
9046then
9047echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report
9048echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report
9a111ee8 9049echo "ATF_BIN : $ATF_BIN" >> config.report
4a70cb10
TM
9050echo
9051fi
9052
9053cat config.report
9054
9055echo
9056echo Now you can type "make" to build ISC DHCP
9057echo