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