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