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