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