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