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