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