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