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