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