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