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