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