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