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