]> git.ipfire.org Git - thirdparty/dhcp.git/blame - configure
[rt25901_atf] Final Doxygen clean-ups.
[thirdparty/dhcp.git] / configure
CommitLineData
fe5b0fdd
DH
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5fe45d07 3# Generated by GNU Autoconf 2.67 for DHCP 4.2.0-git.
fe5b0fdd
DH
4#
5# Report bugs to <dhcp-users@isc.org>.
6#
5fe45d07 7#
4d24561a 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5fe45d07
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.
5fe45d07
TM
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
8c816ebb 18
4d24561a
JR
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
5fe45d07 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fe5b0fdd
DH
22 emulate sh
23 NULLCMD=:
5fe45d07 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
5fe45d07
TM
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
4d24561a 34esac
4d24561a
JR
35fi
36
37
5fe45d07
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
5fe45d07
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
5fe45d07
TM
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
fe5b0fdd 74fi
fe5b0fdd 75
5fe45d07
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.
5fe45d07 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=.
5fe45d07
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
5fe45d07
TM
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
4d24561a
JR
115fi
116
5fe45d07
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.
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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 ||
5fe45d07 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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07 490 as_ln_s='cp -p'
4d24561a 491fi
5fe45d07
TM
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
4d24561a 494
5fe45d07
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
5fe45d07
TM
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
4d24561a 504else
5fe45d07
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
5fe45d07 523as_executable_p=$as_test_x
4d24561a 524
5fe45d07
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
5fe45d07
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
5fe45d07
TM
532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
4d24561a 534
5fe45d07
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
5fe45d07
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'
5fe45d07
TM
555PACKAGE_VERSION='4.2.0-git'
556PACKAGE_STRING='DHCP 4.2.0-git'
fe5b0fdd 557PACKAGE_BUGREPORT='dhcp-users@isc.org'
5fe45d07 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
5fe45d07
TM
596ac_subst_vars='LTLIBOBJS
597LIBOBJS
598LDAP_CFLAGS
599ac_prefix_program
06fb929c 600HAVE_ATF_FALSE
5fe45d07 601HAVE_ATF_TRUE
06fb929c 602ATF_LDFLAGS
5fe45d07
TM
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=''
5fe45d07
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
5fe45d07
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
5fe45d07
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-*)
5fe45d07 834 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
fe5b0fdd 835 # Reject names that are not valid shell variable names.
5fe45d07
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-*)
5fe45d07 860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
fe5b0fdd 861 # Reject names that are not valid shell variable names.
5fe45d07
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-*)
5fe45d07 1064 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
fe5b0fdd 1065 # Reject names that are not valid shell variable names.
5fe45d07
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-*)
5fe45d07 1080 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
fe5b0fdd 1081 # Reject names that are not valid shell variable names.
5fe45d07
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
5fe45d07
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.
5fe45d07
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.
5fe45d07 1129 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
fe5b0fdd 1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5fe45d07 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'`
5fe45d07
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
5fe45d07 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
5fe45d07
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
5fe45d07 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
5fe45d07
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 .` ||
5fe45d07 1199 as_fn_error $? "working directory cannot be determined"
4d24561a 1200test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5fe45d07 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.
5fe45d07
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 .."
5fe45d07 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=`(
5fe45d07 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
5fe45d07 1270\`configure' configures DHCP 4.2.0-git 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
5fe45d07 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
5fe45d07 1292 [$ac_default_prefix]
fe5b0fdd 1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5fe45d07 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:
5fe45d07
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
5fe45d07 1336 short | recursive ) echo "Configuration of DHCP 4.2.0-git:";;
fe5b0fdd
DH
1337 esac
1338 cat <<\_ACEOF
1339
1340Optional Features:
5fe45d07 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)
5fe45d07 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>
5fe45d07 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
5fe45d07
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*)
5fe45d07 1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4d24561a 1434 # A ".." for each directory in $ac_dir_suffix.
5fe45d07 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
5fe45d07 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
5fe45d07
TM
1480DHCP configure 4.2.0-git
1481generated by GNU Autoconf 2.67
fe5b0fdd 1482
5fe45d07 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
5fe45d07
TM
1490## ------------------------ ##
1491## Autoconf initialization. ##
1492## ------------------------ ##
fe5b0fdd 1493
5fe45d07
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
5fe45d07
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{
5fe45d07
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
5fe45d07
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
5fe45d07 1567} # ac_fn_c_try_cpp
fe5b0fdd 1568
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07 1658} # ac_fn_c_check_header_mongrel
fe5b0fdd 1659
5fe45d07
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
5fe45d07
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
5fe45d07 1700} # ac_fn_c_try_run
fe5b0fdd 1701
5fe45d07
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
5fe45d07
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
5fe45d07 1731} # ac_fn_c_check_header_compile
fe5b0fdd 1732
5fe45d07
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 };
fe5b0fdd
DH
1754int
1755main ()
1756{
5fe45d07
TM
1757static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1758test_array [0] = 0
1759
fe5b0fdd
DH
1760 ;
1761 return 0;
1762}
1763_ACEOF
5fe45d07
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
4d24561a 1775
5fe45d07
TM
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
fe5b0fdd 1781
5fe45d07
TM
1782else
1783 case $ac_type in #(
1784 int$2_t) :
1785 eval "$3=yes" ;; #(
1786 *) :
1787 eval "$3=\$ac_type" ;;
fe5b0fdd 1788esac
fc3ebe53 1789fi
5fe45d07 1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc3ebe53 1791fi
5fe45d07
TM
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 if eval test \"x\$"$3"\" = x"no"; then :
fc3ebe53 1794
fc3ebe53 1795else
5fe45d07 1796 break
fc3ebe53 1797fi
5fe45d07 1798 done
fc3ebe53 1799fi
5fe45d07
TM
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;}
fc3ebe53 1804
5fe45d07 1805} # ac_fn_c_find_intX_t
fe5b0fdd 1806
5fe45d07
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}
1831_ACEOF
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}
1844_ACEOF
1845if ac_fn_c_try_compile "$LINENO"; then :
1846
1847else
1848 eval "$3=yes"
1849fi
1850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
06eb8bab 1851fi
5fe45d07
TM
1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853fi
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;}
06eb8bab 1858
5fe45d07
TM
1859} # ac_fn_c_check_type
1860
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
5fe45d07
TM
1887 ;
1888 return 0;
1889}
2d5fba9b 1890_ACEOF
5fe45d07
TM
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 :
2d5fba9b 1901
5fe45d07
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;}
2d5fba9b 1911
5fe45d07 1912} # ac_fn_c_find_uintX_t
2d5fba9b 1913
5fe45d07
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"
4d24561a
JR
1922case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925esac
5fe45d07
TM
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
c9a1db5e 1929 ac_status=$?
5fe45d07
TM
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" ||
4d24561a 1938 test ! -s conftest.err
5fe45d07
TM
1939 } && test -s conftest$ac_exeext && {
1940 test "$cross_compiling" = yes ||
1941 $as_test_x conftest$ac_exeext
1942 }; then :
1943 ac_retval=0
4d24561a 1944else
5fe45d07 1945 $as_echo "$as_me: failed program was:" >&5
4d24561a
JR
1946sed 's/^/| /' conftest.$ac_ext >&5
1947
5fe45d07 1948 ac_retval=1
4d24561a 1949fi
5fe45d07
TM
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
4d24561a 1957
5fe45d07 1958} # ac_fn_c_try_link
4d24561a 1959
5fe45d07
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}
c9a1db5e 1984_ACEOF
5fe45d07
TM
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$4=yes"
1987else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9a1db5e 1989/* end confdefs.h. */
5fe45d07
TM
1990$5
1991int
1992main ()
1993{
1994static $2 ac_aggr;
1995if (sizeof ac_aggr.$3)
1996return 0;
1997 ;
1998 return 0;
1999}
c9a1db5e 2000_ACEOF
5fe45d07
TM
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$4=yes"
035ed382 2003else
5fe45d07
TM
2004 eval "$4=no"
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ded99fc7 2007fi
5fe45d07
TM
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;}
7d714d6b 2014
5fe45d07 2015} # ac_fn_c_check_member
4d24561a 2016
5fe45d07
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
2035
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
2051
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
4d24561a 2065fi
5fe45d07
TM
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
4d24561a 2077
5fe45d07
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
4d24561a 2093
5fe45d07
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
4d24561a 2107fi
5fe45d07
TM
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
4d24561a 2110else
5fe45d07 2111 ac_lo= ac_hi=
4d24561a 2112fi
5fe45d07
TM
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
c9a1db5e 2120/* end confdefs.h. */
5fe45d07
TM
2121$4
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126test_array [0] = 0
2127
2128 ;
2129 return 0;
2130}
7d714d6b 2131_ACEOF
5fe45d07
TM
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_hi=$ac_mid
035ed382 2134else
5fe45d07
TM
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{
dd3276e3 2154
5fe45d07
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;
2175
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
035ed382 2184fi
5fe45d07
TM
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
2188
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
2192
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.
4d24561a 2197
5fe45d07
TM
2198It was created by DHCP $as_me 4.2.0-git, which was
2199generated by GNU Autoconf 2.67. Invocation command line was
4d24561a 2200
5fe45d07 2201 $ $0 $@
273bfdc3 2202
5fe45d07
TM
2203_ACEOF
2204exec 5>>config.log
2205{
2206cat <<_ASUNAME
2207## --------- ##
2208## Platform. ##
2209## --------- ##
dd3276e3 2210
5fe45d07
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`
8d7ba39e 2216
5fe45d07
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`
7f45c65c 2219
5fe45d07
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`
8d7ba39e 2227
5fe45d07 2228_ASUNAME
8d7ba39e 2229
2d5fba9b 2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5fe45d07 2231for as_dir in $PATH
4d24561a
JR
2232do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
5fe45d07 2235 $as_echo "PATH: $as_dir"
4d24561a 2236 done
4d24561a 2237IFS=$as_save_IFS
2d5fba9b 2238
5fe45d07 2239} >&5
2d5fba9b 2240
5fe45d07 2241cat >&5 <<_ACEOF
2d5fba9b 2242
6e999c3c 2243
5fe45d07
TM
2244## ----------- ##
2245## Core tests. ##
2246## ----------- ##
2d5fba9b 2247
5fe45d07 2248_ACEOF
6e999c3c 2249
6e999c3c 2250
5fe45d07
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
5fe45d07 2262 for ac_arg
4d24561a 2263 do
5fe45d07
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
5fe45d07
TM
2296{ ac_configure_args0=; unset ac_configure_args0;}
2297{ ac_configure_args1=; unset ac_configure_args1;}
2d5fba9b 2298
5fe45d07
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
2d5fba9b 2308
5fe45d07
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
2329 done
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
2d5fba9b 2344
5fe45d07
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
6e999c3c 2358
5fe45d07
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
5fe45d07
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
2393done
2394ac_signal=0
2395
2396# confdefs.h avoids OS command line length limits that DEFS can exceed.
2397rm -f -r conftest* confdefs.h
6e999c3c 2398
5fe45d07 2399$as_echo "/* confdefs.h */" > confdefs.h
6e999c3c 2400
5fe45d07 2401# Predefined preprocessor variables.
2d5fba9b 2402
5fe45d07
TM
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_NAME "$PACKAGE_NAME"
2d5fba9b 2405_ACEOF
2d5fba9b 2406
5fe45d07
TM
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2d5fba9b 2409_ACEOF
5fe45d07
TM
2410
2411cat >>confdefs.h <<_ACEOF
2412#define PACKAGE_VERSION "$PACKAGE_VERSION"
2d5fba9b
DH
2413_ACEOF
2414
5fe45d07
TM
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_STRING "$PACKAGE_STRING"
2417_ACEOF
2d5fba9b 2418
5fe45d07
TM
2419cat >>confdefs.h <<_ACEOF
2420#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2421_ACEOF
2d5fba9b 2422
5fe45d07
TM
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_URL "$PACKAGE_URL"
7f45c65c 2425_ACEOF
6e999c3c 2426
7f45c65c 2427
5fe45d07
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
5fe45d07
TM
2443 ac_site_file1=$ac_default_prefix/share/config.site
2444 ac_site_file2=$ac_default_prefix/etc/config.site
7f45c65c 2445fi
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
TM
2535## -------------------- ##
2536## Main body of script. ##
2537## -------------------- ##
7f45c65c 2538
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
TM
2646 done
2647IFS=$as_save_IFS
ded99fc7 2648
5fe45d07 2649rm -rf conftest.one conftest.two conftest.dir
ded99fc7 2650
7d714d6b 2651fi
5fe45d07
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
5fe45d07
TM
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2663$as_echo "$INSTALL" >&6; }
7d714d6b 2664
5fe45d07
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
5fe45d07 2669test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7d714d6b 2670
5fe45d07 2671test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7d714d6b 2672
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
TM
2722# expand $ac_aux_dir to an absolute path
2723am_aux_dir=`cd $ac_aux_dir && pwd`
7d714d6b 2724
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
TM
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2775$as_echo "$MKDIR_P" >&6; }
4d24561a 2776
5fe45d07
TM
2777mkdir_p="$MKDIR_P"
2778case $mkdir_p in
2779 [\\/$]* | ?:[\\/]*) ;;
2780 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2781esac
4d24561a 2782
5fe45d07
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
5fe45d07
TM
2807 done
2808IFS=$as_save_IFS
4d24561a 2809
69bc1ebd 2810fi
5fe45d07
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
5fe45d07
TM
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
69bc1ebd
SR
2819fi
2820
69bc1ebd 2821
5fe45d07
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
5fe45d07
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
5fe45d07
TM
2844rm -f conftest.make
2845fi
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
5fe45d07
TM
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852$as_echo "no" >&6; }
2853 SET_MAKE="MAKE=${MAKE-make}"
69bc1ebd
SR
2854fi
2855
5fe45d07
TM
2856rm -rf .tst 2>/dev/null
2857mkdir .tst 2>/dev/null
2858if test -d .tst; then
2859 am__leading_dot=.
69bc1ebd 2860else
5fe45d07 2861 am__leading_dot=_
69bc1ebd 2862fi
5fe45d07 2863rmdir .tst 2>/dev/null
69bc1ebd 2864
5fe45d07
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
69bc1ebd
SR
2873fi
2874
5fe45d07
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
69bc1ebd 2883
69bc1ebd 2884
5fe45d07
TM
2885# Define the identity of the package.
2886 PACKAGE='dhcp'
2887 VERSION='4.2.0-git'
69bc1ebd
SR
2888
2889
5fe45d07
TM
2890cat >>confdefs.h <<_ACEOF
2891#define PACKAGE "$PACKAGE"
69bc1ebd
SR
2892_ACEOF
2893
2894
5fe45d07
TM
2895cat >>confdefs.h <<_ACEOF
2896#define VERSION "$VERSION"
69bc1ebd
SR
2897_ACEOF
2898
5fe45d07 2899# Some tools Automake needs.
2d5fba9b 2900
5fe45d07 2901ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2d5fba9b 2902
69bc1ebd 2903
5fe45d07 2904AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
69bc1ebd 2905
69bc1ebd 2906
5fe45d07 2907AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
69bc1ebd 2908
69bc1ebd 2909
5fe45d07 2910AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
69bc1ebd 2911
69bc1ebd 2912
5fe45d07 2913MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
69bc1ebd 2914
5fe45d07 2915install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
69bc1ebd 2916
5fe45d07
TM
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
5fe45d07
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=.
5fe45d07 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
5fe45d07
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
5fe45d07 2945 done
69bc1ebd
SR
2946IFS=$as_save_IFS
2947
2948fi
2949fi
5fe45d07
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
5fe45d07
TM
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
69bc1ebd
SR
2957fi
2958
2959
2960fi
5fe45d07
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
5fe45d07
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=.
5fe45d07 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
5fe45d07
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
5fe45d07 2985 done
69bc1ebd
SR
2986IFS=$as_save_IFS
2987
2988fi
2989fi
5fe45d07
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
5fe45d07
TM
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
69bc1ebd
SR
2997fi
2998
5fe45d07
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:)
5fe45d07
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
5fe45d07 3008 STRIP=$ac_ct_STRIP
69bc1ebd
SR
3009 fi
3010else
5fe45d07 3011 STRIP="$ac_cv_prog_STRIP"
69bc1ebd
SR
3012fi
3013
5fe45d07
TM
3014fi
3015INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
69bc1ebd 3016
5fe45d07
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
5fe45d07 3021AMTAR=${AMTAR-"${am_missing_run}tar"}
4d24561a 3022
5fe45d07 3023am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4d24561a 3024
4d24561a 3025
4d24561a 3026
fe5b0fdd 3027
3004d0a3 3028
4d24561a 3029
5fe45d07
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
5fe45d07 3041 USE_MAINTAINER_MODE=no
2d5fba9b
DH
3042fi
3043
5fe45d07
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
5fe45d07
TM
3050 MAINTAINER_MODE_TRUE='#'
3051 MAINTAINER_MODE_FALSE=
4d24561a 3052fi
4d24561a 3053
5fe45d07 3054 MAINT=$MAINTAINER_MODE_TRUE
4d24561a 3055
4d24561a 3056
4d24561a 3057
5fe45d07
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
5fe45d07
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
4d24561a 3095fi
4d24561a 3096fi
5fe45d07
TM
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07 3200 fi
4d24561a 3201fi
5fe45d07
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
5fe45d07
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
5fe45d07
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
4d24561a 3287fi
4d24561a 3288fi
5fe45d07
TM
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
5fe45d07
TM
3299 test -n "$CC" && break
3300 done
3301fi
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
JR
3330
3331fi
5fe45d07
TM
3332fi
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; }
3340fi
4d24561a 3341
4d24561a 3342
5fe45d07
TM
3343 test -n "$ac_ct_CC" && break
3344done
4d24561a 3345
5fe45d07
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
f8cc78ba
SR
3357fi
3358
5fe45d07 3359fi
f8cc78ba 3360
f8cc78ba 3361
5fe45d07
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
5fe45d07
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
5fe45d07
TM
3392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393/* end confdefs.h. */
f8cc78ba 3394
5fe45d07
TM
3395int
3396main ()
3397{
f8cc78ba 3398
5fe45d07
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
5fe45d07
TM
3412# The possible output files:
3413ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
f8cc78ba 3414
5fe45d07
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
5fe45d07
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=
06fb929c 3467
06fb929c 3468else
5fe45d07 3469 ac_file=''
06fb929c 3470fi
5fe45d07
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
06fb929c 3476
5fe45d07
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; }
06fb929c 3481else
5fe45d07
TM
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483$as_echo "yes" >&6; }
06fb929c 3484fi
5fe45d07
TM
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
06fb929c 3490
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
TM
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3587$as_echo "$cross_compiling" >&6; }
4d24561a 3588
5fe45d07
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
5fe45d07
TM
3599int
3600main ()
3601{
4d24561a 3602
5fe45d07
TM
3603 ;
3604 return 0;
3605}
4d24561a 3606_ACEOF
5fe45d07
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
5fe45d07
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
5fe45d07 3636rm -f conftest.$ac_cv_objext conftest.$ac_ext
4d24561a 3637fi
5fe45d07
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
5fe45d07
TM
3650int
3651main ()
3652{
3653#ifndef __GNUC__
3654 choke me
3655#endif
4d24561a 3656
5fe45d07
TM
3657 ;
3658 return 0;
3659}
4d24561a 3660_ACEOF
5fe45d07
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
5fe45d07
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
5fe45d07
TM
3691int
3692main ()
3693{
4d24561a 3694
5fe45d07
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
5fe45d07
TM
3706int
3707main ()
3708{
6e999c3c 3709
5fe45d07
TM
3710 ;
3711 return 0;
3712}
237bfdc9 3713_ACEOF
5fe45d07 3714if ac_fn_c_try_compile "$LINENO"; then :
6e999c3c 3715
5fe45d07
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
5fe45d07
TM
3722int
3723main ()
3724{
6e999c3c 3725
5fe45d07
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
5fe45d07
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}
3788
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];
237bfdc9 3797
5fe45d07
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];
7d714d6b 3802
5fe45d07
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}
8dea7ba7 3816_ACEOF
5fe45d07
TM
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
4d24561a 3881fi
5fe45d07
TM
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
8dea7ba7
FD
3891
3892
5fe45d07
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
5fe45d07
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
5fe45d07
TM
3902if test "x$enable_dependency_tracking" != xno; then
3903 am_depcomp="$ac_aux_dir/depcomp"
3904 AMDEPBACKSLASH='\'
7d714d6b 3905fi
5fe45d07
TM
3906 if test "x$enable_dependency_tracking" != xno; then
3907 AMDEP_TRUE=
3908 AMDEP_FALSE='#'
3909else
3910 AMDEP_TRUE='#'
3911 AMDEP_FALSE=
6e999c3c
SK
3912fi
3913
3914
5ce8d6e7 3915
5fe45d07 3916depcc="$CC" am_compiler_list=
d5e0cd6f 3917
5fe45d07
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
d5e0cd6f 3922else
5fe45d07
TM
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
d5e0cd6f 3941
5fe45d07
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
d5e0cd6f 3962
5fe45d07
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
5fe45d07
TM
4002 cd ..
4003 rm -rf conftest.dir
4004else
4005 am_cv_CC_dependencies_compiler_type=none
4006fi
d5e0cd6f
DH
4007
4008fi
5fe45d07
TM
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
5fe45d07
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
5fe45d07
TM
4019 am__fastdepCC_TRUE='#'
4020 am__fastdepCC_FALSE=
4021fi
d5e0cd6f
DH
4022
4023
d5e0cd6f 4024
5fe45d07 4025# Suppress warnings about --datarootdir
d5e0cd6f 4026
d5e0cd6f 4027
5fe45d07
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
5fe45d07
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
5fe45d07
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
4056else
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. */
5fe45d07
TM
4071#ifdef __STDC__
4072# include <limits.h>
4073#else
4074# include <assert.h>
4075#endif
4076 Syntax error
d5e0cd6f 4077_ACEOF
5fe45d07 4078if ac_fn_c_try_cpp "$LINENO"; then :
d5e0cd6f 4079
5fe45d07
TM
4080else
4081 # Broken: fails on valid input.
4082continue
d5e0cd6f 4083fi
5fe45d07 4084rm -f conftest.err conftest.i conftest.$ac_ext
d5e0cd6f 4085
5fe45d07
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
5fe45d07
TM
4096 # Passes both tests.
4097ac_preproc_ok=:
4098break
d5e0cd6f 4099fi
5fe45d07 4100rm -f conftest.err conftest.i conftest.$ac_ext
d5e0cd6f 4101
5fe45d07
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
5fe45d07
TM
4109 done
4110 ac_cv_prog_CPP=$CPP
d5e0cd6f 4111
5fe45d07
TM
4112fi
4113 CPP=$ac_cv_prog_CPP
d5e0cd6f 4114else
5fe45d07
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. */
5fe45d07
TM
4130#ifdef __STDC__
4131# include <limits.h>
4132#else
4133# include <assert.h>
4134#endif
4135 Syntax error
d5e0cd6f 4136_ACEOF
5fe45d07 4137if ac_fn_c_try_cpp "$LINENO"; then :
d5e0cd6f 4138
5fe45d07
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
5fe45d07
TM
4151if ac_fn_c_try_cpp "$LINENO"; then :
4152 # Broken: success on invalid input.
4153continue
d5e0cd6f 4154else
5fe45d07
TM
4155 # Passes both tests.
4156ac_preproc_ok=:
4157break
4158fi
4159rm -f conftest.err conftest.i conftest.$ac_ext
d5e0cd6f 4160
5fe45d07
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
5fe45d07
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
5fe45d07
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
5fe45d07
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
d5e0cd6f 4224
5fe45d07
TM
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 4235fi
d5e0cd6f 4236
5fe45d07
TM
4237fi
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
DH
4241
4242
5fe45d07
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
9d6af565 4247else
5fe45d07
TM
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;;
9d6af565 4289esac
5fe45d07
TM
4290
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
4299else
4300 ac_cv_path_EGREP=$EGREP
4301fi
4302
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. */
5fe45d07
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
5fe45d07
TM
4330if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_header_stdc=yes
9d6af565 4332else
5fe45d07 4333 ac_cv_header_stdc=no
9d6af565 4334fi
9d6af565 4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9d6af565 4336
5fe45d07
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>
4342
4343_ACEOF
4344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "memchr" >/dev/null 2>&1; then :
9d6af565 4346
5fe45d07
TM
4347else
4348 ac_cv_header_stdc=no
9d6af565 4349fi
5fe45d07 4350rm -f conftest*
9d6af565 4351
9d6af565 4352fi
9d6af565 4353
5fe45d07
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
5fe45d07
TM
4361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362 $EGREP "free" >/dev/null 2>&1; then :
4363
4364else
4365 ac_cv_header_stdc=no
4366fi
4367rm -f conftest*
9d6af565 4368
5fe45d07 4369fi
9d6af565 4370
5fe45d07
TM
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
5fe45d07 4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5e0cd6f 4377/* end confdefs.h. */
5fe45d07
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{
5fe45d07
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
5fe45d07
TM
4403if ac_fn_c_try_run "$LINENO"; then :
4404
d5e0cd6f 4405else
5fe45d07
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
d5e0cd6f 4411
d5e0cd6f 4412fi
5fe45d07
TM
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 4420fi
5fe45d07
TM
4421
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
4434fi
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
5fe45d07
TM
4444 MINIX=
4445fi
4446
4447
4448 if test "$MINIX" = yes; then
4449
4450$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d5e0cd6f
DH
4451
4452
5fe45d07
TM
4453$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4454
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
5fe45d07 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5e0cd6f 4467/* end confdefs.h. */
5fe45d07
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
5fe45d07
TM
4479if ac_fn_c_try_compile "$LINENO"; then :
4480 ac_cv_safe_to_define___extensions__=yes
d5e0cd6f 4481else
5fe45d07 4482 ac_cv_safe_to_define___extensions__=no
d5e0cd6f 4483fi
d5e0cd6f 4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5e0cd6f 4485fi
5fe45d07
TM
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
d5e0cd6f 4490
5fe45d07 4491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d5e0cd6f 4492
5fe45d07 4493 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d5e0cd6f 4494
5fe45d07 4495 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d5e0cd6f 4496
5fe45d07 4497 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d5e0cd6f 4498
d5e0cd6f
DH
4499
4500
5fe45d07
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
4508else
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
4537
4538
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; }
4576fi
4577
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
DH
4591fi
4592
5fe45d07
TM
4593ac_config_headers="$ac_config_headers includes/config.h"
4594
4595
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
d5e0cd6f 4601else
5fe45d07
TM
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>
4643
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
4652
4653 ;
4654 return 0;
4655}
d5e0cd6f 4656_ACEOF
5fe45d07
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
d5e0cd6f 4660/* end confdefs.h. */
5fe45d07
TM
4661#include <sys/types.h>
4662 #include <sys/param.h>
4663
d5e0cd6f
DH
4664int
4665main ()
4666{
5fe45d07
TM
4667#if BYTE_ORDER != BIG_ENDIAN
4668 not big endian
4669 #endif
4670
d5e0cd6f
DH
4671 ;
4672 return 0;
4673}
4674_ACEOF
5fe45d07
TM
4675if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_c_bigendian=yes
d5e0cd6f 4677else
5fe45d07 4678 ac_cv_c_bigendian=no
d5e0cd6f 4679fi
d5e0cd6f 4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5e0cd6f 4681fi
5fe45d07
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
5fe45d07
TM
4690int
4691main ()
4692{
4693#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4694 bogus endian macros
4695 #endif
d5e0cd6f 4696
5fe45d07
TM
4697 ;
4698 return 0;
4699}
d5e0cd6f 4700_ACEOF
5fe45d07
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. */
5fe45d07
TM
4705#include <limits.h>
4706
d5e0cd6f
DH
4707int
4708main ()
4709{
5fe45d07
TM
4710#ifndef _BIG_ENDIAN
4711 not big endian
4712 #endif
d5e0cd6f
DH
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
5fe45d07
TM
4718if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_c_bigendian=yes
d5e0cd6f 4720else
5fe45d07 4721 ac_cv_c_bigendian=no
d5e0cd6f 4722fi
d5e0cd6f 4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5e0cd6f 4724fi
5fe45d07
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
d5e0cd6f 4732/* end confdefs.h. */
5fe45d07
TM
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;
4748
d5e0cd6f
DH
4749int
4750main ()
4751{
5fe45d07 4752return use_ascii (foo) == use_ebcdic (foo);
d5e0cd6f
DH
4753 ;
4754 return 0;
4755}
4756_ACEOF
5fe45d07
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
d5e0cd6f 4769fi
d5e0cd6f 4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5e0cd6f 4771else
5fe45d07 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5e0cd6f
DH
4773/* end confdefs.h. */
4774$ac_includes_default
4775int
4776main ()
4777{
5fe45d07
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
5fe45d07
TM
4792if ac_fn_c_try_run "$LINENO"; then :
4793 ac_cv_c_bigendian=no
d5e0cd6f 4794else
5fe45d07
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
5fe45d07 4801 fi
d5e0cd6f 4802fi
5fe45d07
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
5fe45d07
TM
4814$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4815
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
4823cat >>confdefs.h <<_ACEOF
5fe45d07 4824#define DHCP_BYTE_ORDER $byte_order
d5e0cd6f 4825_ACEOF
d5e0cd6f
DH
4826
4827
5fe45d07
TM
4828# Optional compile-time DEBUGging.
4829# Check whether --enable-debug was given.
4830if test "${enable_debug+set}" = set; then :
98678c9a
TM
4831 enableval=$enable_debug; enable_debug=yes
4832else
4833 enable_debug=no
5fe45d07
TM
4834fi
4835
4836# This is very much off by default.
4837if test "$enable_debug" = "yes" ; then
d5e0cd6f 4838
5fe45d07 4839$as_echo "#define DEBUG 1" >>confdefs.h
d5e0cd6f 4840
5fe45d07
TM
4841 # Just override CFLAGS to totally to remove optimization.
4842 CFLAGS="-g"
9d6af565 4843fi
5fe45d07
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 */
9d6af565 4863
5fe45d07
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;
4868fi
4869
4870# Failover is on by default, so define if it is not explicitly disabled.
4871if test "$enable_failover" != "no"; then
4872
4873$as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
9d6af565 4874
9d6af565
SR
4875fi
4876
5fe45d07
TM
4877# execute() support.
4878# Check whether --enable-execute was given.
4879if test "${enable_execute+set}" = set; then :
4880 enableval=$enable_execute;
9d6af565 4881fi
9d6af565 4882
5fe45d07
TM
4883# execute() is on by default, so define if it is not explicitly disabled.
4884if test "$enable_execute" != "no" ; then
9d6af565 4885
5fe45d07 4886$as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
9d6af565 4887
5fe45d07
TM
4888fi
4889
4890# Server tracing support.
4891# Check whether --enable-tracing was given.
4892if test "${enable_tracing+set}" = set; then :
4893 enableval=$enable_tracing;
4894fi
4895
4896# tracing is on by default, so define if it is not explicitly disabled.
4897if test "$enable_tracing" != "no" ; then
4898
4899$as_echo "#define TRACING 1" >>confdefs.h
4900
4901fi
4902
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
4908
4909if test "$enable_delayed_ack" = "yes"; then
4910
4911$as_echo "#define DELAYED_ACK 1" >>confdefs.h
4912
4913fi
4914
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
4925
4926fi
4927
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;
4932fi
4933
4934# Check whether --enable-early_chroot was given.
4935if test "${enable_early_chroot+set}" = set; then :
4936 enableval=$enable_early_chroot;
4937fi
4938
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
5fe45d07 4946if test "$enable_paranoia" = "yes" ; then
9d6af565 4947
5fe45d07 4948$as_echo "#define PARANOIA 1" >>confdefs.h
9d6af565
SR
4949
4950fi
5fe45d07 4951if test "$enable_early_chroot" = "yes" ; then
9d6af565 4952
5fe45d07 4953$as_echo "#define EARLY_CHROOT 1" >>confdefs.h
9d6af565 4954
5fe45d07 4955fi
9d6af565 4956
5fe45d07
TM
4957# Check whether --enable-IPv4_PKTINFO was given.
4958if test "${enable_IPv4_PKTINFO+set}" = set; then :
4959 enableval=$enable_IPv4_PKTINFO;
4960fi
9d6af565 4961
9d6af565 4962
5fe45d07 4963if test "$enable_ipv4_pktinfo" = "yes"; then
9d6af565 4964
5fe45d07 4965$as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
9d6af565 4966
5fe45d07 4967fi
9d6af565 4968
5fe45d07
TM
4969# Check whether --enable-USE_SOCKETS was given.
4970if test "${enable_USE_SOCKETS+set}" = set; then :
4971 enableval=$enable_USE_SOCKETS;
d5e0cd6f
DH
4972fi
4973
4974
5fe45d07 4975if test "$enable_use_sockets" = "yes"; then
6e999c3c 4976
5fe45d07 4977$as_echo "#define USE_SOCKETS 1" >>confdefs.h
a37c9dd1 4978
a37c9dd1 4979fi
4d24561a 4980
5fe45d07 4981# Testing section
a37c9dd1 4982
5fe45d07 4983atf_path="no"
a37c9dd1 4984
5fe45d07
TM
4985# Check whether --with-atf was given.
4986if test "${with_atf+set}" = set; then :
4987 withval=$with_atf; atf_path="$withval"
a37c9dd1 4988fi
4d24561a 4989
5fe45d07
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`"
a37c9dd1 5012
a37c9dd1 5013
5fe45d07 5014 fi
a37c9dd1 5015fi
a37c9dd1 5016
5fe45d07
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
MA
5023fi
5024
5fe45d07
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
5fe45d07
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
fe5b0fdd 5045else
5fe45d07
TM
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 ;;
4d24561a 5067esac
5fe45d07
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; }
6e999c3c 5073else
5fe45d07
TM
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077
6e999c3c 5078
5fe45d07
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
6e999c3c 5127fi
4d24561a 5128
6e999c3c 5129
5fe45d07
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 ;;
4d24561a 5136esac
6e999c3c 5137
5fe45d07 5138# Allow specification of alternate state files
4d24561a 5139
5fe45d07
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"
5145_ACEOF
6e999c3c 5146
6e999c3c 5147fi
6e999c3c 5148
5fe45d07
TM
5149
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
6e999c3c 5171fi
5fe45d07
TM
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
SK
5180_ACEOF
5181
5182fi
5183
6e999c3c 5184
5fe45d07
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
5206fi
5207echo "$with_srv6_lease_file"
6e999c3c
SK
5208
5209
5fe45d07
TM
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 5215_ACEOF
6e999c3c 5216
6e999c3c 5217fi
4d24561a 5218
6e999c3c 5219
5fe45d07
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 5243
6e999c3c 5244
5fe45d07
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
SK
5250_ACEOF
5251
6e999c3c 5252fi
fe5b0fdd 5253
5fe45d07
TM
5254
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
fe5b0fdd 5276fi
5fe45d07 5277echo "$with_cli6_lease_file"
4d24561a 5278
fe5b0fdd 5279
5fe45d07
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"
fe5b0fdd 5285_ACEOF
fe5b0fdd 5286
fe5b0fdd 5287fi
4d24561a 5288
fe5b0fdd 5289
5fe45d07
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"
5295_ACEOF
fe5b0fdd
DH
5296
5297fi
f125dc8b 5298
fe5b0fdd 5299
5fe45d07
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"
fe5b0fdd 5305_ACEOF
fe5b0fdd 5306
fe5b0fdd 5307fi
4d24561a 5308
fe5b0fdd 5309
5fe45d07
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 5315_ACEOF
fe5b0fdd 5316
fe5b0fdd 5317fi
4d24561a 5318
fe5b0fdd 5319
5fe45d07
TM
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"
5325_ACEOF
e62b1eb3 5326
f125dc8b
SK
5327fi
5328
5329
5fe45d07
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"
e62b1eb3
DH
5335_ACEOF
5336
f125dc8b 5337fi
e62b1eb3 5338
c62c07ef 5339
5fe45d07
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 *)
c62c07ef 5345
5fe45d07
TM
5346cat >>confdefs.h <<_ACEOF
5347#define int8_t $ac_cv_c_int8_t
c62c07ef 5348_ACEOF
5fe45d07
TM
5349;;
5350esac
c62c07ef 5351
5fe45d07
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 *)
c62c07ef 5356
5fe45d07
TM
5357cat >>confdefs.h <<_ACEOF
5358#define int16_t $ac_cv_c_int16_t
5359_ACEOF
5360;;
5361esac
c62c07ef 5362
5fe45d07
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 *)
4d24561a 5367
5fe45d07
TM
5368cat >>confdefs.h <<_ACEOF
5369#define int32_t $ac_cv_c_int32_t
c62c07ef 5370_ACEOF
5fe45d07
TM
5371;;
5372esac
c62c07ef 5373
5fe45d07
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
5fe45d07
TM
5379cat >>confdefs.h <<_ACEOF
5380#define int64_t $ac_cv_c_int64_t
c62c07ef 5381_ACEOF
5fe45d07 5382;;
4d24561a 5383esac
c62c07ef 5384
5fe45d07
TM
5385
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
DH
5389
5390else
c62c07ef 5391
5fe45d07
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 *)
5396
5397$as_echo "#define _UINT8_T 1" >>confdefs.h
c62c07ef 5398
4d24561a 5399
5fe45d07
TM
5400cat >>confdefs.h <<_ACEOF
5401#define uint8_t $ac_cv_c_uint8_t
c62c07ef 5402_ACEOF
5fe45d07
TM
5403;;
5404 esac
c62c07ef 5405
c62c07ef 5406
5fe45d07 5407$as_echo "#define u_int8_t uint8_t" >>confdefs.h
c62c07ef 5408
5fe45d07
TM
5409
5410fi
5411
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 :
c62c07ef
DH
5414
5415else
c62c07ef 5416
5fe45d07
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 *)
4d24561a 5421
c62c07ef 5422
5fe45d07
TM
5423cat >>confdefs.h <<_ACEOF
5424#define uint16_t $ac_cv_c_uint16_t
5425_ACEOF
5426;;
5427 esac
c59de8f4
DH
5428
5429
5fe45d07 5430$as_echo "#define u_int16_t uint16_t" >>confdefs.h
c62c07ef 5431
a37c9dd1 5432
6dd7efa2 5433fi
5fe45d07
TM
5434
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 :
5437
c9a1db5e 5438else
c9a1db5e 5439
5fe45d07
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 *)
4d24561a 5444
5fe45d07 5445$as_echo "#define _UINT32_T 1" >>confdefs.h
dd3276e3 5446
5fe45d07
TM
5447
5448cat >>confdefs.h <<_ACEOF
5449#define uint32_t $ac_cv_c_uint32_t
c62c07ef 5450_ACEOF
5fe45d07
TM
5451;;
5452 esac
c62c07ef 5453
4d24561a 5454
5fe45d07 5455$as_echo "#define u_int32_t uint32_t" >>confdefs.h
dd3276e3 5456
dd3276e3 5457
76c944da 5458fi
237bfdc9 5459
5fe45d07
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 :
7d714d6b 5462
5fe45d07 5463else
7d714d6b 5464
5fe45d07
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 *)
4d24561a 5469
5fe45d07 5470$as_echo "#define _UINT64_T 1" >>confdefs.h
237bfdc9 5471
5fe45d07
TM
5472
5473cat >>confdefs.h <<_ACEOF
5474#define uint64_t $ac_cv_c_uint64_t
7d714d6b 5475_ACEOF
5fe45d07
TM
5476;;
5477 esac
5478
5479
5480$as_echo "#define u_int64_t uint64_t" >>confdefs.h
7d714d6b 5481
4d24561a 5482
7d714d6b 5483fi
4d24561a 5484
5fe45d07
TM
5485
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
5493_ACEOF
5494
4d24561a 5495fi
5fe45d07 5496
4d24561a 5497done
035ed382 5498
035ed382 5499
5fe45d07
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 :
5505 cat >>confdefs.h <<_ACEOF
5506#define HAVE_LINUX_TYPES_H 1
a36687f0 5507_ACEOF
a36687f0 5508
5fe45d07
TM
5509fi
5510
5511done
5512 # needed for linux/filter.h on old systems
a36687f0 5513
5fe45d07
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
5fe45d07
TM
5519"
5520if test "x$ac_cv_header_linux_filter_h" = x""yes; then :
5521 DO_LPF=1
ded99fc7 5522fi
4d24561a 5523
5fe45d07
TM
5524
5525if test -n "$DO_LPF"
5526then
5527
5528$as_echo "#define HAVE_LPF 1" >>confdefs.h
5529
4d24561a 5530else
5fe45d07
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
4d24561a 5534fi
4d24561a 5535
5fe45d07
TM
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
4d24561a
JR
5546fi
5547
5548
5fe45d07
TM
5549 if test -n "$DO_BPF"
5550 then
5551
5552$as_echo "#define HAVE_BPF \"\"" >>confdefs.h
5553
5554 fi
5555 fi
5556fi
5557
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
c62c07ef 5567/* end confdefs.h. */
5fe45d07
TM
5568 #include <sys/types.h>
5569 #include <sys/socket.h>
5570 #include <net/if.h>
a36687f0 5571
c62c07ef
DH
5572int
5573main ()
5574{
5fe45d07
TM
5575 struct lifnum a;
5576
c62c07ef
DH
5577 ;
5578 return 0;
5579}
5580_ACEOF
5fe45d07
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; }
c62c07ef 5584
5fe45d07 5585$as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
4d24561a 5586
4d24561a 5587else
5fe45d07
TM
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589$as_echo "no" >&6; }
a36687f0 5590fi
5fe45d07 5591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d714d6b 5592
5fe45d07
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
5596/* end confdefs.h. */
5597 #include <sys/types.h>
5598 #include <net/if6.h>
7d714d6b 5599
5fe45d07
TM
5600int
5601main ()
5602{
5603 struct if_laddrconf a;
a36687f0 5604
5fe45d07
TM
5605 ;
5606 return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"; then :
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611$as_echo "yes" >&6; }
a36687f0 5612
5fe45d07 5613$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
dd3276e3 5614
a36687f0 5615else
5fe45d07
TM
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617$as_echo "no" >&6; }
5618fi
5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620
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
6d7bdffc 5624/* end confdefs.h. */
5fe45d07
TM
5625#include <sys/types.h>
5626 #include <net/if6.h>
6d7bdffc 5627
7d714d6b
DH
5628int
5629main ()
5630{
5fe45d07
TM
5631 struct if_laddrreq a;
5632
7d714d6b
DH
5633 ;
5634 return 0;
5635}
5636_ACEOF
5fe45d07
TM
5637if ac_fn_c_try_link "$LINENO"; then :
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639$as_echo "yes" >&6; }
6e999c3c 5640
5fe45d07 5641$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
4d24561a 5642
dd3276e3 5643else
5fe45d07
TM
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645$as_echo "no" >&6; }
4d24561a 5646fi
5fe45d07
TM
5647rm -f core conftest.err conftest.$ac_objext \
5648 conftest$ac_exeext conftest.$ac_ext
5649
5650# Look for optional headers.
5651for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h
5652do :
5653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5655if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5656 cat >>confdefs.h <<_ACEOF
5657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658_ACEOF
035ed382 5659
ded99fc7 5660fi
4d24561a 5661
5fe45d07 5662done
4d24561a 5663
5fe45d07
TM
5664
5665# Solaris needs some libraries for functions
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5667$as_echo_n "checking for library containing socket... " >&6; }
5668if test "${ac_cv_search_socket+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
4d24561a
JR
5670else
5671 ac_func_search_save_LIBS=$LIBS
5fe45d07 5672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c62c07ef 5673/* end confdefs.h. */
c9a1db5e 5674
4d24561a
JR
5675/* Override any GCC internal prototype to avoid an error.
5676 Use char because int might match the return type of a GCC
5677 builtin and then its argument prototype would still apply. */
c62c07ef
DH
5678#ifdef __cplusplus
5679extern "C"
5680#endif
5fe45d07 5681char socket ();
c62c07ef
DH
5682int
5683main ()
5684{
5fe45d07 5685return socket ();
c62c07ef
DH
5686 ;
5687 return 0;
5688}
5689_ACEOF
5fe45d07 5690for ac_lib in '' socket; do
4d24561a
JR
5691 if test -z "$ac_lib"; then
5692 ac_res="none required"
5693 else
5694 ac_res=-l$ac_lib
5695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5696 fi
5fe45d07
TM
5697 if ac_fn_c_try_link "$LINENO"; then :
5698 ac_cv_search_socket=$ac_res
6e999c3c 5699fi
5fe45d07
TM
5700rm -f core conftest.err conftest.$ac_objext \
5701 conftest$ac_exeext
5702 if test "${ac_cv_search_socket+set}" = set; then :
4d24561a 5703 break
6e999c3c 5704fi
4d24561a 5705done
5fe45d07 5706if test "${ac_cv_search_socket+set}" = set; then :
6e999c3c 5707
dd3276e3 5708else
5fe45d07 5709 ac_cv_search_socket=no
c9a1db5e 5710fi
5fe45d07
TM
5711rm conftest.$ac_ext
5712LIBS=$ac_func_search_save_LIBS
6e999c3c 5713fi
5fe45d07
TM
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5715$as_echo "$ac_cv_search_socket" >&6; }
5716ac_res=$ac_cv_search_socket
5717if test "$ac_res" != no; then :
5718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c9a1db5e
MA
5719
5720fi
035ed382 5721
5fe45d07
TM
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5723$as_echo_n "checking for library containing inet_ntoa... " >&6; }
5724if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
2d5fba9b 5726else
5fe45d07
TM
5727 ac_func_search_save_LIBS=$LIBS
5728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d5fba9b
DH
5729/* end confdefs.h. */
5730
5fe45d07
TM
5731/* Override any GCC internal prototype to avoid an error.
5732 Use char because int might match the return type of a GCC
5733 builtin and then its argument prototype would still apply. */
5734#ifdef __cplusplus
5735extern "C"
5736#endif
5737char inet_ntoa ();
2d5fba9b
DH
5738int
5739main ()
5740{
5fe45d07 5741return inet_ntoa ();
2d5fba9b
DH
5742 ;
5743 return 0;
5744}
5745_ACEOF
5fe45d07
TM
5746for ac_lib in '' nsl; do
5747 if test -z "$ac_lib"; then
5748 ac_res="none required"
5749 else
5750 ac_res=-l$ac_lib
5751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5752 fi
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 ac_cv_search_inet_ntoa=$ac_res
2d5fba9b 5755fi
5fe45d07
TM
5756rm -f core conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext
5758 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5759 break
2d5fba9b 5760fi
5fe45d07
TM
5761done
5762if test "${ac_cv_search_inet_ntoa+set}" = set; then :
2d5fba9b 5763
6e999c3c 5764else
5fe45d07
TM
5765 ac_cv_search_inet_ntoa=no
5766fi
5767rm conftest.$ac_ext
5768LIBS=$ac_func_search_save_LIBS
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
5771$as_echo "$ac_cv_search_inet_ntoa" >&6; }
5772ac_res=$ac_cv_search_inet_ntoa
5773if test "$ac_res" != no; then :
5774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6e999c3c 5775
5fe45d07 5776fi
6e999c3c 5777
6e999c3c 5778
5fe45d07
TM
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
5780$as_echo_n "checking for library containing inet_aton... " >&6; }
5781if test "${ac_cv_search_inet_aton+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783else
5784 ac_func_search_save_LIBS=$LIBS
5785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e999c3c
SK
5786/* end confdefs.h. */
5787
5fe45d07
TM
5788/* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5791#ifdef __cplusplus
5792extern "C"
5793#endif
5794char inet_aton ();
6e999c3c
SK
5795int
5796main ()
5797{
5fe45d07 5798return inet_aton ();
6e999c3c
SK
5799 ;
5800 return 0;
5801}
5802_ACEOF
5fe45d07
TM
5803for ac_lib in '' socket nsl; do
5804 if test -z "$ac_lib"; then
5805 ac_res="none required"
5806 else
5807 ac_res=-l$ac_lib
5808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5809 fi
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 ac_cv_search_inet_aton=$ac_res
c59de8f4 5812fi
5fe45d07
TM
5813rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext
5815 if test "${ac_cv_search_inet_aton+set}" = set; then :
5816 break
5817fi
5818done
5819if test "${ac_cv_search_inet_aton+set}" = set; then :
4d24561a 5820
8f77e286 5821else
5fe45d07
TM
5822 ac_cv_search_inet_aton=no
5823fi
5824rm conftest.$ac_ext
5825LIBS=$ac_func_search_save_LIBS
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
5828$as_echo "$ac_cv_search_inet_aton" >&6; }
5829ac_res=$ac_cv_search_inet_aton
5830if test "$ac_res" != no; then :
5831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6e999c3c 5832
5fe45d07 5833else
8f77e286 5834
5fe45d07 5835$as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6e999c3c 5836
5fe45d07 5837fi
6e999c3c 5838
6e999c3c 5839
5fe45d07
TM
5840# Check for a standalone regex library.
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
5842$as_echo_n "checking for library containing regcomp... " >&6; }
5843if test "${ac_cv_search_regcomp+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845else
5846 ac_func_search_save_LIBS=$LIBS
5847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f77e286
DH
5848/* end confdefs.h. */
5849
5fe45d07
TM
5850/* Override any GCC internal prototype to avoid an error.
5851 Use char because int might match the return type of a GCC
5852 builtin and then its argument prototype would still apply. */
5853#ifdef __cplusplus
5854extern "C"
5855#endif
5856char regcomp ();
8f77e286
DH
5857int
5858main ()
5859{
5fe45d07 5860return regcomp ();
8f77e286
DH
5861 ;
5862 return 0;
5863}
5864_ACEOF
5fe45d07
TM
5865for ac_lib in '' regex; do
5866 if test -z "$ac_lib"; then
5867 ac_res="none required"
5868 else
5869 ac_res=-l$ac_lib
5870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5871 fi
5872 if ac_fn_c_try_link "$LINENO"; then :
5873 ac_cv_search_regcomp=$ac_res
5874fi
5875rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext
5877 if test "${ac_cv_search_regcomp+set}" = set; then :
5878 break
8f77e286 5879fi
5fe45d07
TM
5880done
5881if test "${ac_cv_search_regcomp+set}" = set; then :
4d24561a 5882
76c944da 5883else
5fe45d07 5884 ac_cv_search_regcomp=no
76c944da 5885fi
5fe45d07
TM
5886rm conftest.$ac_ext
5887LIBS=$ac_func_search_save_LIBS
6e999c3c 5888fi
5fe45d07
TM
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
5890$as_echo "$ac_cv_search_regcomp" >&6; }
5891ac_res=$ac_cv_search_regcomp
5892if test "$ac_res" != no; then :
5893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4d24561a 5894
5fe45d07 5895fi
c9a1db5e 5896
6e999c3c 5897
5fe45d07
TM
5898# For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
5900$as_echo_n "checking for library containing if_nametoindex... " >&6; }
5901if test "${ac_cv_search_if_nametoindex+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 ac_func_search_save_LIBS=$LIBS
5905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h. */
6e999c3c 5907
5fe45d07
TM
5908/* Override any GCC internal prototype to avoid an error.
5909 Use char because int might match the return type of a GCC
5910 builtin and then its argument prototype would still apply. */
5911#ifdef __cplusplus
5912extern "C"
5913#endif
5914char if_nametoindex ();
c9a1db5e
MA
5915int
5916main ()
5917{
5fe45d07 5918return if_nametoindex ();
c9a1db5e
MA
5919 ;
5920 return 0;
5921}
5922_ACEOF
5fe45d07
TM
5923for ac_lib in '' ipv6; do
5924 if test -z "$ac_lib"; then
5925 ac_res="none required"
5926 else
5927 ac_res=-l$ac_lib
5928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5929 fi
5930 if ac_fn_c_try_link "$LINENO"; then :
5931 ac_cv_search_if_nametoindex=$ac_res
5932fi
5933rm -f core conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext
5935 if test "${ac_cv_search_if_nametoindex+set}" = set; then :
5936 break
5937fi
5938done
5939if test "${ac_cv_search_if_nametoindex+set}" = set; then :
5940
c9a1db5e 5941else
5fe45d07
TM
5942 ac_cv_search_if_nametoindex=no
5943fi
5944rm conftest.$ac_ext
5945LIBS=$ac_func_search_save_LIBS
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
5948$as_echo "$ac_cv_search_if_nametoindex" >&6; }
5949ac_res=$ac_cv_search_if_nametoindex
5950if test "$ac_res" != no; then :
5951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c9a1db5e 5952
6e999c3c 5953fi
4d24561a 5954
5fe45d07
TM
5955
5956# check for /dev/random (declares HAVE_DEV_RANDOM)
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
5958$as_echo_n "checking for /dev/random... " >&6; }
5959if test "${ac_cv_file__dev_random+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
6e999c3c 5961else
5fe45d07
TM
5962 test "$cross_compiling" = yes &&
5963 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5964if test -r "/dev/random"; then
5965 ac_cv_file__dev_random=yes
5966else
5967 ac_cv_file__dev_random=no
5968fi
5969fi
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
5971$as_echo "$ac_cv_file__dev_random" >&6; }
5972if test "x$ac_cv_file__dev_random" = x""yes; then :
c9a1db5e 5973
5fe45d07 5974$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6e999c3c 5975
5fe45d07 5976fi
6e999c3c 5977
6e999c3c 5978
5fe45d07
TM
5979# see if there is a "sa_len" field in our interface information structure
5980ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
5981"
5982if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
6e999c3c 5983
5fe45d07
TM
5984$as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
5985
5986fi
5987
5988
5989# figure out pointer size
5990# The cast to long int works around a bug in the HP C Compiler
5991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993# This bug is HP SR number 8606223364.
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
5995$as_echo_n "checking size of struct iaddr *... " >&6; }
5996if test "${ac_cv_sizeof_struct_iaddr_p+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
fe5b0fdd 5998else
5fe45d07
TM
5999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6000#include \"includes/inet.h\"
6001#include <stdio.h>
6002
6003"; then :
fe5b0fdd 6004
5fe45d07
TM
6005else
6006 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009as_fn_error 77 "cannot compute sizeof (struct iaddr *)
6010See \`config.log' for more details" "$LINENO" 5; }
4d24561a
JR
6011 else
6012 ac_cv_sizeof_struct_iaddr_p=0
6013 fi
273bfdc3 6014fi
5fe45d07 6015
7d714d6b 6016fi
5fe45d07
TM
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6018$as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
4d24561a
JR
6019
6020
6021
6e999c3c
SK
6022cat >>confdefs.h <<_ACEOF
6023#define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
76c944da 6024_ACEOF
fe5b0fdd 6025
fe5b0fdd 6026
76c944da 6027
6e999c3c
SK
6028# Solaris does not have the msg_control or msg_controlen members in
6029# in the msghdr structure unless you define:
6030#
6031# _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6032#
6033# See the "standards" man page for details.
6034#
6035# We check for the msg_control member, and if it is not found, we check
6036# again with the appropriate defines added to the CFLAGS. (In order to
6037# do this we have to remove the check from the cache, which is what the
6038# "unset" is for.)
5fe45d07 6039ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6e999c3c
SK
6040#include <sys/types.h>
6041#include <sys/socket.h>
76c944da 6042
5fe45d07
TM
6043"
6044if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
76c944da 6045
6e999c3c
SK
6046else
6047 CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6048 CFLAGS="$CFLAGS -D__EXTENSIONS__"
6049 unset ac_cv_member_struct_msghdr_msg_control
5fe45d07 6050 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6e999c3c
SK
6051#include <sys/types.h>
6052#include <sys/socket.h>
dd3276e3 6053
5fe45d07
TM
6054"
6055if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
dd3276e3 6056
c62c07ef 6057else
5fe45d07
TM
6058 as_fn_error $? "Missing msg_control member in
6059 msg_control structure." "$LINENO" 5
a36687f0 6060fi
dd3276e3 6061
06eb8bab 6062
c62c07ef 6063fi
8c816ebb 6064
fe5b0fdd 6065
14c9fd31 6066libbind=
a81f3ae6
SR
6067
6068# Check whether --with-libbind was given.
5fe45d07 6069if test "${with_libbind+set}" = set; then :
a81f3ae6
SR
6070 withval=$with_libbind; use_libbind="$withval"
6071else
6072 use_libbind="no"
6073fi
6074
6075case "$use_libbind" in
6076yes)
6077 libbind="\${top_srcdir}/bind"
6078 ;;
6079no)
6080 libbind="\${top_srcdir}/bind"
6081 ;;
6082*)
6083 libbind="$use_libbind"
6084 ;;
6085esac
6086
2d5fba9b
DH
6087# OpenLDAP support.
6088
6089# Check whether --with-ldap was given.
5fe45d07 6090if test "${with_ldap+set}" = set; then :
2d5fba9b
DH
6091 withval=$with_ldap; ldap=$withval
6092else
6093 ldap=no
6094fi
6095
6096
6097# OpenLDAP with SSL support.
6098
6099# Check whether --with-ldapcrypto was given.
5fe45d07 6100if test "${with_ldapcrypto+set}" = set; then :
2d5fba9b
DH
6101 withval=$with_ldapcrypto; ldapcrypto=$withval
6102else
6103 ldapcrypto=no
6104fi
6105
6106
6107# OpenLDAP support is disabled by default, if enabled then SSL support is an
6108# extra optional that is also disabled by default. Enabling LDAP SSL support
6109# implies enabling LDAP support.
6110if test x$ldap = xyes || test x$ldapcrypto = xyes ; then
5fe45d07
TM
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
6112$as_echo_n "checking for library containing ldap_initialize... " >&6; }
6113if test "${ac_cv_search_ldap_initialize+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
2d5fba9b
DH
6115else
6116 ac_func_search_save_LIBS=$LIBS
5fe45d07 6117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d5fba9b
DH
6118/* end confdefs.h. */
6119
6120/* Override any GCC internal prototype to avoid an error.
6121 Use char because int might match the return type of a GCC
6122 builtin and then its argument prototype would still apply. */
6123#ifdef __cplusplus
6124extern "C"
6125#endif
6126char ldap_initialize ();
6127int
6128main ()
6129{
6130return ldap_initialize ();
6131 ;
6132 return 0;
6133}
6134_ACEOF
6135for ac_lib in '' ldap; do
6136 if test -z "$ac_lib"; then
6137 ac_res="none required"
6138 else
6139 ac_res=-l$ac_lib
6140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6141 fi
5fe45d07 6142 if ac_fn_c_try_link "$LINENO"; then :
2d5fba9b 6143 ac_cv_search_ldap_initialize=$ac_res
2d5fba9b 6144fi
5fe45d07
TM
6145rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext
6147 if test "${ac_cv_search_ldap_initialize+set}" = set; then :
2d5fba9b
DH
6148 break
6149fi
6150done
5fe45d07
TM
6151if test "${ac_cv_search_ldap_initialize+set}" = set; then :
6152
2d5fba9b
DH
6153else
6154 ac_cv_search_ldap_initialize=no
6155fi
6156rm conftest.$ac_ext
6157LIBS=$ac_func_search_save_LIBS
6158fi
5fe45d07
TM
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
6160$as_echo "$ac_cv_search_ldap_initialize" >&6; }
2d5fba9b 6161ac_res=$ac_cv_search_ldap_initialize
5fe45d07 6162if test "$ac_res" != no; then :
2d5fba9b
DH
6163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6164
6165else
5fe45d07
TM
6166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6168as_fn_error $? "*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
6169See \`config.log' for more details" "$LINENO" 5; }
2d5fba9b
DH
6170fi
6171
5fe45d07
TM
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
6173$as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
6174if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
8f95db41
SR
6176else
6177 ac_func_search_save_LIBS=$LIBS
5fe45d07 6178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f95db41
SR
6179/* end confdefs.h. */
6180
6181/* Override any GCC internal prototype to avoid an error.
6182 Use char because int might match the return type of a GCC
6183 builtin and then its argument prototype would still apply. */
6184#ifdef __cplusplus
6185extern "C"
6186#endif
6187char ber_pvt_opt_on ();
6188int
6189main ()
6190{
6191return ber_pvt_opt_on ();
6192 ;
6193 return 0;
6194}
6195_ACEOF
6196for ac_lib in '' lber; do
6197 if test -z "$ac_lib"; then
6198 ac_res="none required"
6199 else
6200 ac_res=-l$ac_lib
6201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6202 fi
5fe45d07 6203 if ac_fn_c_try_link "$LINENO"; then :
8f95db41 6204 ac_cv_search_ber_pvt_opt_on=$ac_res
8f95db41 6205fi
5fe45d07
TM
6206rm -f core conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext
6208 if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then :
8f95db41
SR
6209 break
6210fi
6211done
5fe45d07
TM
6212if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then :
6213
8f95db41
SR
6214else
6215 ac_cv_search_ber_pvt_opt_on=no
6216fi
6217rm conftest.$ac_ext
6218LIBS=$ac_func_search_save_LIBS
6219fi
5fe45d07
TM
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
6221$as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
8f95db41 6222ac_res=$ac_cv_search_ber_pvt_opt_on
5fe45d07 6223if test "$ac_res" != no; then :
8f95db41
SR
6224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6225
6226else
5fe45d07
TM
6227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6229as_fn_error $? "*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
6230See \`config.log' for more details" "$LINENO" 5; }
8f95db41
SR
6231fi
6232
2d5fba9b
DH
6233
6234 if test x$ldapcrypto = xyes ; then
6235 LDAP_CFLAGS="-DLDAP_CONFIGURATION -DLDAP_USE_SSL"
6236
6237 else
6238 LDAP_CFLAGS="-DLDAP_CONFIGURATION"
6239
6240 fi
6241fi
6242
c5b1ad9f
DH
6243# Append selected warning levels to CFLAGS before substitution (but after
6244# AC_TRY_COMPILE & etc).
6245CFLAGS="$CFLAGS $STD_CWARNINGS"
6246
a81f3ae6
SR
6247# Try to add the bind include directory
6248CFLAGS="$CFLAGS -I$libbind/include"
6249
e715a7b1 6250
5fe45d07
TM
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
6252$as_echo_n "checking for flexible array members... " >&6; }
6253if test "${ac_cv_c_flexmember+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
e715a7b1 6255else
5fe45d07 6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e715a7b1
SR
6257/* end confdefs.h. */
6258#include <stdlib.h>
6259 #include <stdio.h>
6260 #include <stddef.h>
6261 struct s { int n; double d[]; };
6262int
6263main ()
6264{
6265int m = getchar ();
6266 struct s *p = malloc (offsetof (struct s, d)
6267 + m * sizeof (double));
6268 p->d[0] = 0.0;
6269 return p->d != (double *) NULL;
6270 ;
6271 return 0;
6272}
6273_ACEOF
5fe45d07 6274if ac_fn_c_try_compile "$LINENO"; then :
e715a7b1
SR
6275 ac_cv_c_flexmember=yes
6276else
5fe45d07 6277 ac_cv_c_flexmember=no
e715a7b1 6278fi
e715a7b1
SR
6279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280fi
5fe45d07
TM
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
6282$as_echo "$ac_cv_c_flexmember" >&6; }
e715a7b1
SR
6283 if test $ac_cv_c_flexmember = yes; then
6284
5fe45d07 6285$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
e715a7b1
SR
6286
6287 else
5fe45d07 6288 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
e715a7b1
SR
6289
6290 fi
6291
6292
5fe45d07 6293ac_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 6294
fe5b0fdd
DH
6295cat >confcache <<\_ACEOF
6296# This file is a shell script that caches the results of configure
6297# tests run on this system so they can be shared between configure
6298# scripts and configure runs, see configure's option --config-cache.
6299# It is not useful on other systems. If it contains results you don't
6300# want to keep, you may remove or edit it.
6301#
6302# config.status only pays attention to the cache file if you give it
6303# the --recheck option to rerun configure.
6304#
6305# `ac_cv_env_foo' variables (set or unset) will be overridden when
6306# loading this file, other *unset* `ac_cv_foo' will be assigned the
6307# following values.
6308
6309_ACEOF
6310
6311# The following way of writing the cache mishandles newlines in values,
6312# but we know of no workaround that is simple, portable, and efficient.
4d24561a 6313# So, we kill variables containing newlines.
fe5b0fdd
DH
6314# Ultrix sh set writes to stderr and can't be redirected directly,
6315# and sets the high bit in the cache file unless we assign to the vars.
4d24561a
JR
6316(
6317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6318 eval ac_val=\$$ac_var
6319 case $ac_val in #(
6320 *${as_nl}*)
6321 case $ac_var in #(
5fe45d07
TM
6322 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6323$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4d24561a
JR
6324 esac
6325 case $ac_var in #(
6326 _ | IFS | as_nl) ;; #(
5fe45d07
TM
6327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6328 *) { eval $ac_var=; unset $ac_var;} ;;
4d24561a
JR
6329 esac ;;
6330 esac
6331 done
6332
fe5b0fdd 6333 (set) 2>&1 |
4d24561a
JR
6334 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6335 *${as_nl}ac_space=\ *)
5fe45d07
TM
6336 # `set' does not quote correctly, so add quotes: double-quote
6337 # substitution turns \\\\ into \\, and sed turns \\ into \.
fe5b0fdd
DH
6338 sed -n \
6339 "s/'/'\\\\''/g;
6340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4d24561a 6341 ;; #(
fe5b0fdd
DH
6342 *)
6343 # `set' quotes correctly as required by POSIX, so do not add quotes.
4d24561a 6344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fe5b0fdd 6345 ;;
4d24561a
JR
6346 esac |
6347 sort
6348) |
fe5b0fdd 6349 sed '
4d24561a 6350 /^ac_cv_env_/b end
fe5b0fdd 6351 t clear
4d24561a 6352 :clear
fe5b0fdd
DH
6353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6354 t end
4d24561a
JR
6355 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6356 :end' >>confcache
6357if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6358 if test -w "$cache_file"; then
6359 test "x$cache_file" != "x/dev/null" &&
5fe45d07
TM
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6361$as_echo "$as_me: updating cache $cache_file" >&6;}
fe5b0fdd 6362 cat confcache >$cache_file
d758ad8c 6363 else
5fe45d07
TM
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6365$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d758ad8c 6366 fi
48ceb859 6367fi
fe5b0fdd
DH
6368rm -f confcache
6369
6370test "x$prefix" = xNONE && prefix=$ac_default_prefix
6371# Let make expand exec_prefix.
6372test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6373
6374DEFS=-DHAVE_CONFIG_H
6375
6376ac_libobjs=
6377ac_ltlibobjs=
5fe45d07 6378U=
fe5b0fdd
DH
6379for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6380 # 1. Remove the extension, and $U if already installed.
4d24561a 6381 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5fe45d07 6382 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4d24561a
JR
6383 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6384 # will be set to the directory where LIBOBJS objects are built.
5fe45d07
TM
6385 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6386 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
fe5b0fdd
DH
6387done
6388LIBOBJS=$ac_libobjs
6389
6390LTLIBOBJS=$ac_ltlibobjs
6391
6392
9a452f17 6393if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5fe45d07
TM
6394 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6395Usually this means the macro was only invoked conditionally." "$LINENO" 5
9a452f17 6396fi
fc3ebe53 6397if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5fe45d07
TM
6398 as_fn_error $? "conditional \"AMDEP\" was never defined.
6399Usually this means the macro was only invoked conditionally." "$LINENO" 5
fc3ebe53
DH
6400fi
6401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5fe45d07
TM
6402 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6403Usually this means the macro was only invoked conditionally." "$LINENO" 5
fc3ebe53 6404fi
5fe45d07 6405
06fb929c 6406if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
5fe45d07
TM
6407 as_fn_error $? "conditional \"HAVE_ATF\" was never defined.
6408Usually this means the macro was only invoked conditionally." "$LINENO" 5
06fb929c 6409fi
48ceb859 6410
fe5b0fdd 6411: ${CONFIG_STATUS=./config.status}
5fe45d07 6412ac_write_fail=0
fe5b0fdd
DH
6413ac_clean_files_save=$ac_clean_files
6414ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5fe45d07
TM
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6416$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6417as_write_fail=0
6418cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
fe5b0fdd
DH
6419#! $SHELL
6420# Generated by $as_me.
6421# Run this file to recreate the current configuration.
6422# Compiler output produced by configure, useful for debugging
6423# configure, is in config.log if it exists.
343729b9 6424
fe5b0fdd
DH
6425debug=false
6426ac_cs_recheck=false
6427ac_cs_silent=false
fe5b0fdd 6428
5fe45d07
TM
6429SHELL=\${CONFIG_SHELL-$SHELL}
6430export SHELL
6431_ASEOF
6432cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6433## -------------------- ##
6434## M4sh Initialization. ##
6435## -------------------- ##
fe5b0fdd 6436
4d24561a
JR
6437# Be more Bourne compatible
6438DUALCASE=1; export DUALCASE # for MKS sh
5fe45d07 6439if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fe5b0fdd
DH
6440 emulate sh
6441 NULLCMD=:
5fe45d07 6442 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fe5b0fdd
DH
6443 # is contrary to our usage. Disable this feature.
6444 alias -g '${1+"$@"}'='"$@"'
4d24561a
JR
6445 setopt NO_GLOB_SUBST
6446else
5fe45d07
TM
6447 case `(set -o) 2>/dev/null` in #(
6448 *posix*) :
6449 set -o posix ;; #(
6450 *) :
6451 ;;
4d24561a 6452esac
4d24561a
JR
6453fi
6454
6455
5fe45d07
TM
6456as_nl='
6457'
6458export as_nl
6459# Printing a long string crashes Solaris 7 /usr/bin/printf.
6460as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6461as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6462as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6463# Prefer a ksh shell builtin over an external printf program on Solaris,
6464# but without wasting forks for bash or zsh.
6465if test -z "$BASH_VERSION$ZSH_VERSION" \
6466 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6467 as_echo='print -r --'
6468 as_echo_n='print -rn --'
6469elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6470 as_echo='printf %s\n'
6471 as_echo_n='printf %s'
6472else
6473 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6474 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6475 as_echo_n='/usr/ucb/echo -n'
2d5fba9b 6476 else
5fe45d07
TM
6477 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6478 as_echo_n_body='eval
6479 arg=$1;
6480 case $arg in #(
6481 *"$as_nl"*)
6482 expr "X$arg" : "X\\(.*\\)$as_nl";
6483 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6484 esac;
6485 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6486 '
6487 export as_echo_n_body
6488 as_echo_n='sh -c $as_echo_n_body as_echo'
2d5fba9b 6489 fi
5fe45d07
TM
6490 export as_echo_body
6491 as_echo='sh -c $as_echo_body as_echo'
6057415f 6492fi
fe5b0fdd 6493
5fe45d07
TM
6494# The user is always right.
6495if test "${PATH_SEPARATOR+set}" != set; then
6496 PATH_SEPARATOR=:
6497 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6498 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6499 PATH_SEPARATOR=';'
6500 }
d758ad8c
TL
6501fi
6502
fe5b0fdd 6503
4d24561a
JR
6504# IFS
6505# We need space, tab and new line, in precisely that order. Quoting is
6506# there to prevent editors from complaining about space-tab.
6507# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6508# splitting by setting IFS to empty value.)
4d24561a
JR
6509IFS=" "" $as_nl"
6510
6511# Find who we are. Look in the path if we contain no directory separator.
5fe45d07 6512case $0 in #((
4d24561a
JR
6513 *[\\/]* ) as_myself=$0 ;;
6514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
5fe45d07
TM
6519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6520 done
4d24561a
JR
6521IFS=$as_save_IFS
6522
6523 ;;
6524esac
6525# We did not find ourselves, most probably we were run as `sh COMMAND'
6526# in which case we are not to be found in the path.
6527if test "x$as_myself" = x; then
6528 as_myself=$0
6529fi
6530if test ! -f "$as_myself"; then
5fe45d07
TM
6531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6532 exit 1
4d24561a
JR
6533fi
6534
5fe45d07
TM
6535# Unset variables that we do not need and which cause bugs (e.g. in
6536# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6537# suppresses any "Segmentation fault" message there. '((' could
6538# trigger a bug in pdksh 5.2.14.
6539for as_var in BASH_ENV ENV MAIL MAILPATH
6540do eval test x\${$as_var+set} = xset \
6541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4d24561a 6542done
fe5b0fdd
DH
6543PS1='$ '
6544PS2='> '
6545PS4='+ '
6546
6547# NLS nuisances.
5fe45d07
TM
6548LC_ALL=C
6549export LC_ALL
6550LANGUAGE=C
6551export LANGUAGE
6552
6553# CDPATH.
6554(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6555
6556
6557# as_fn_error STATUS ERROR [LINENO LOG_FD]
6558# ----------------------------------------
6559# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6560# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6561# script with STATUS, using 1 if that was 0.
6562as_fn_error ()
6563{
6564 as_status=$1; test $as_status -eq 0 && as_status=1
6565 if test "$4"; then
6566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2d5fba9b 6568 fi
5fe45d07
TM
6569 $as_echo "$as_me: error: $2" >&2
6570 as_fn_exit $as_status
6571} # as_fn_error
6572
6573
6574# as_fn_set_status STATUS
6575# -----------------------
6576# Set $? to STATUS, without forking.
6577as_fn_set_status ()
6578{
6579 return $1
6580} # as_fn_set_status
6581
6582# as_fn_exit STATUS
6583# -----------------
6584# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6585as_fn_exit ()
6586{
6587 set +e
6588 as_fn_set_status $1
6589 exit $1
6590} # as_fn_exit
6591
6592# as_fn_unset VAR
6593# ---------------
6594# Portably unset VAR.
6595as_fn_unset ()
6596{
6597 { eval $1=; unset $1;}
6598}
6599as_unset=as_fn_unset
6600# as_fn_append VAR VALUE
6601# ----------------------
6602# Append the text in VALUE to the end of the definition contained in VAR. Take
6603# advantage of any shell optimizations that allow amortized linear growth over
6604# repeated appends, instead of the typical quadratic growth present in naive
6605# implementations.
6606if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6607 eval 'as_fn_append ()
6608 {
6609 eval $1+=\$2
6610 }'
6611else
6612 as_fn_append ()
6613 {
6614 eval $1=\$$1\$2
6615 }
6616fi # as_fn_append
6617
6618# as_fn_arith ARG...
6619# ------------------
6620# Perform arithmetic evaluation on the ARGs, and store the result in the
6621# global $as_val. Take advantage of shells that can avoid forks. The arguments
6622# must be portable across $(()) and expr.
6623if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6624 eval 'as_fn_arith ()
6625 {
6626 as_val=$(( $* ))
6627 }'
6628else
6629 as_fn_arith ()
6630 {
6631 as_val=`expr "$@" || test $? -eq 1`
6632 }
6633fi # as_fn_arith
6634
8c816ebb 6635
4d24561a
JR
6636if expr a : '\(a\)' >/dev/null 2>&1 &&
6637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fe5b0fdd
DH
6638 as_expr=expr
6639else
6640 as_expr=false
6641fi
6642
4d24561a 6643if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fe5b0fdd
DH
6644 as_basename=basename
6645else
6646 as_basename=false
6647fi
6648
5fe45d07
TM
6649if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6650 as_dirname=dirname
6651else
6652 as_dirname=false
6653fi
fe5b0fdd 6654
4d24561a 6655as_me=`$as_basename -- "$0" ||
fe5b0fdd
DH
6656$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6657 X"$0" : 'X\(//\)$' \| \
4d24561a 6658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5fe45d07 6659$as_echo X/"$0" |
4d24561a
JR
6660 sed '/^.*\/\([^/][^/]*\)\/*$/{
6661 s//\1/
6662 q
6663 }
6664 /^X\/\(\/\/\)$/{
6665 s//\1/
6666 q
6667 }
6668 /^X\/\(\/\).*/{
6669 s//\1/
6670 q
6671 }
6672 s/.*/./; q'`
6673
5fe45d07
TM
6674# Avoid depending upon Character Ranges.
6675as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6676as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6677as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6678as_cr_digits='0123456789'
6679as_cr_alnum=$as_cr_Letters$as_cr_digits
4d24561a
JR
6680
6681ECHO_C= ECHO_N= ECHO_T=
5fe45d07 6682case `echo -n x` in #(((((
4d24561a 6683-n*)
5fe45d07 6684 case `echo 'xy\c'` in
4d24561a 6685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5fe45d07
TM
6686 xy) ECHO_C='\c';;
6687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6688 ECHO_T=' ';;
4d24561a
JR
6689 esac;;
6690*)
6691 ECHO_N='-n';;
fe5b0fdd 6692esac
2d5fba9b 6693
fe5b0fdd 6694rm -f conf$$ conf$$.exe conf$$.file
4d24561a
JR
6695if test -d conf$$.dir; then
6696 rm -f conf$$.dir/conf$$.file
6697else
6698 rm -f conf$$.dir
5fe45d07
TM
6699 mkdir conf$$.dir 2>/dev/null
6700fi
6701if (echo >conf$$.file) 2>/dev/null; then
6702 if ln -s conf$$.file conf$$ 2>/dev/null; then
6703 as_ln_s='ln -s'
6704 # ... but there are two gotchas:
6705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6707 # In both cases, we have to default to `cp -p'.
6708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6709 as_ln_s='cp -p'
6710 elif ln conf$$.file conf$$ 2>/dev/null; then
6711 as_ln_s=ln
6712 else
fe5b0fdd 6713 as_ln_s='cp -p'
5fe45d07 6714 fi
fe5b0fdd
DH
6715else
6716 as_ln_s='cp -p'
6717fi
4d24561a
JR
6718rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6719rmdir conf$$.dir 2>/dev/null
fe5b0fdd 6720
5fe45d07
TM
6721
6722# as_fn_mkdir_p
6723# -------------
6724# Create "$as_dir" as a directory, including parents if necessary.
6725as_fn_mkdir_p ()
6726{
6727
6728 case $as_dir in #(
6729 -*) as_dir=./$as_dir;;
6730 esac
6731 test -d "$as_dir" || eval $as_mkdir_p || {
6732 as_dirs=
6733 while :; do
6734 case $as_dir in #(
6735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6736 *) as_qdir=$as_dir;;
6737 esac
6738 as_dirs="'$as_qdir' $as_dirs"
6739 as_dir=`$as_dirname -- "$as_dir" ||
6740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6741 X"$as_dir" : 'X\(//\)[^/]' \| \
6742 X"$as_dir" : 'X\(//\)$' \| \
6743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6744$as_echo X"$as_dir" |
6745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6746 s//\1/
6747 q
6748 }
6749 /^X\(\/\/\)[^/].*/{
6750 s//\1/
6751 q
6752 }
6753 /^X\(\/\/\)$/{
6754 s//\1/
6755 q
6756 }
6757 /^X\(\/\).*/{
6758 s//\1/
6759 q
6760 }
6761 s/.*/./; q'`
6762 test -d "$as_dir" && break
6763 done
6764 test -z "$as_dirs" || eval "mkdir $as_dirs"
6765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6766
6767
6768} # as_fn_mkdir_p
fe5b0fdd 6769if mkdir -p . 2>/dev/null; then
5fe45d07 6770 as_mkdir_p='mkdir -p "$as_dir"'
fe5b0fdd
DH
6771else
6772 test -d ./-p && rmdir ./-p
6773 as_mkdir_p=false
d758ad8c 6774fi
2ac5bde5 6775
4d24561a
JR
6776if test -x / >/dev/null 2>&1; then
6777 as_test_x='test -x'
6778else
6779 if ls -dL / >/dev/null 2>&1; then
6780 as_ls_L_option=L
6781 else
6782 as_ls_L_option=
6783 fi
6784 as_test_x='
6785 eval sh -c '\''
6786 if test -d "$1"; then
5fe45d07 6787 test -d "$1/.";
4d24561a 6788 else
5fe45d07
TM
6789 case $1 in #(
6790 -*)set "./$1";;
4d24561a 6791 esac;
5fe45d07 6792 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4d24561a
JR
6793 ???[sx]*):;;*)false;;esac;fi
6794 '\'' sh
6795 '
6796fi
6797as_executable_p=$as_test_x
fe5b0fdd
DH
6798
6799# Sed expression to map a string onto a valid CPP name.
6800as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6801
6802# Sed expression to map a string onto a valid variable name.
6803as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6804
6805
6806exec 6>&1
5fe45d07
TM
6807## ----------------------------------- ##
6808## Main body of $CONFIG_STATUS script. ##
6809## ----------------------------------- ##
6810_ASEOF
6811test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
fe5b0fdd 6812
5fe45d07
TM
6813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6814# Save the log message, to keep $0 and so on meaningful, and to
fe5b0fdd 6815# report actual input values of CONFIG_FILES etc. instead of their
4d24561a
JR
6816# values after options handling.
6817ac_log="
5fe45d07
TM
6818This file was extended by DHCP $as_me 4.2.0-git, which was
6819generated by GNU Autoconf 2.67. Invocation command line was
fe5b0fdd
DH
6820
6821 CONFIG_FILES = $CONFIG_FILES
6822 CONFIG_HEADERS = $CONFIG_HEADERS
6823 CONFIG_LINKS = $CONFIG_LINKS
6824 CONFIG_COMMANDS = $CONFIG_COMMANDS
6825 $ $0 $@
6826
4d24561a
JR
6827on `(hostname || uname -n) 2>/dev/null | sed 1q`
6828"
6829
fe5b0fdd
DH
6830_ACEOF
6831
5fe45d07
TM
6832case $ac_config_files in *"
6833"*) set x $ac_config_files; shift; ac_config_files=$*;;
6834esac
6835
6836case $ac_config_headers in *"
6837"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6838esac
6839
6840
6841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fe5b0fdd 6842# Files that config.status was made for.
4d24561a
JR
6843config_files="$ac_config_files"
6844config_headers="$ac_config_headers"
6845config_commands="$ac_config_commands"
7d714d6b 6846
4d24561a 6847_ACEOF
fe5b0fdd 6848
5fe45d07 6849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fe5b0fdd 6850ac_cs_usage="\
5fe45d07
TM
6851\`$as_me' instantiates files and other configuration actions
6852from templates according to the current configuration. Unless the files
6853and actions are specified as TAGs, all are instantiated by default.
fe5b0fdd 6854
5fe45d07 6855Usage: $0 [OPTION]... [TAG]...
fe5b0fdd
DH
6856
6857 -h, --help print this help, then exit
4d24561a 6858 -V, --version print version number and configuration settings, then exit
5fe45d07
TM
6859 --config print configuration, then exit
6860 -q, --quiet, --silent
6861 do not print progress messages
fe5b0fdd
DH
6862 -d, --debug don't remove temporary files
6863 --recheck update $as_me by reconfiguring in the same conditions
5fe45d07
TM
6864 --file=FILE[:TEMPLATE]
6865 instantiate the configuration file FILE
6866 --header=FILE[:TEMPLATE]
6867 instantiate the configuration header FILE
fe5b0fdd
DH
6868
6869Configuration files:
6870$config_files
6871
6872Configuration headers:
6873$config_headers
6874
fc3ebe53
DH
6875Configuration commands:
6876$config_commands
6877
5fe45d07 6878Report bugs to <dhcp-users@isc.org>."
7d714d6b 6879
4d24561a 6880_ACEOF
5fe45d07
TM
6881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6882ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
fe5b0fdd 6883ac_cs_version="\\
5fe45d07
TM
6884DHCP config.status 4.2.0-git
6885configured by $0, generated by GNU Autoconf 2.67,
6886 with options \\"\$ac_cs_config\\"
fe5b0fdd 6887
5fe45d07 6888Copyright (C) 2010 Free Software Foundation, Inc.
fe5b0fdd
DH
6889This config.status script is free software; the Free Software Foundation
6890gives unlimited permission to copy, distribute and modify it."
4d24561a
JR
6891
6892ac_pwd='$ac_pwd'
6893srcdir='$srcdir'
6894INSTALL='$INSTALL'
2d5fba9b 6895MKDIR_P='$MKDIR_P'
5fe45d07
TM
6896AWK='$AWK'
6897test -n "\$AWK" || AWK=awk
fe5b0fdd
DH
6898_ACEOF
6899
5fe45d07
TM
6900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6901# The default lists apply if the user does not specify any file.
fe5b0fdd
DH
6902ac_need_defaults=:
6903while test $# != 0
6904do
6905 case $1 in
5fe45d07 6906 --*=?*)
4d24561a
JR
6907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6908 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
fe5b0fdd
DH
6909 ac_shift=:
6910 ;;
5fe45d07
TM
6911 --*=)
6912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6913 ac_optarg=
6914 ac_shift=:
6915 ;;
4d24561a 6916 *)
fe5b0fdd
DH
6917 ac_option=$1
6918 ac_optarg=$2
6919 ac_shift=shift
6920 ;;
6921 esac
6922
6923 case $ac_option in
6924 # Handling of the options.
6925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6926 ac_cs_recheck=: ;;
4d24561a 6927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5fe45d07
TM
6928 $as_echo "$ac_cs_version"; exit ;;
6929 --config | --confi | --conf | --con | --co | --c )
6930 $as_echo "$ac_cs_config"; exit ;;
4d24561a 6931 --debug | --debu | --deb | --de | --d | -d )
fe5b0fdd
DH
6932 debug=: ;;
6933 --file | --fil | --fi | --f )
6934 $ac_shift
5fe45d07
TM
6935 case $ac_optarg in
6936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6937 '') as_fn_error $? "missing file argument" ;;
6938 esac
6939 as_fn_append CONFIG_FILES " '$ac_optarg'"
fe5b0fdd
DH
6940 ac_need_defaults=false;;
6941 --header | --heade | --head | --hea )
6942 $ac_shift
5fe45d07
TM
6943 case $ac_optarg in
6944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6945 esac
6946 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
fe5b0fdd 6947 ac_need_defaults=false;;
4d24561a
JR
6948 --he | --h)
6949 # Conflict between --help and --header
5fe45d07
TM
6950 as_fn_error $? "ambiguous option: \`$1'
6951Try \`$0 --help' for more information.";;
4d24561a 6952 --help | --hel | -h )
5fe45d07 6953 $as_echo "$ac_cs_usage"; exit ;;
fe5b0fdd
DH
6954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6956 ac_cs_silent=: ;;
6957
6958 # This is an error.
5fe45d07
TM
6959 -*) as_fn_error $? "unrecognized option: \`$1'
6960Try \`$0 --help' for more information." ;;
fe5b0fdd 6961
5fe45d07 6962 *) as_fn_append ac_config_targets " $1"
4d24561a 6963 ac_need_defaults=false ;;
fe5b0fdd
DH
6964
6965 esac
6966 shift
6967done
6968
6969ac_configure_extra_args=
6970
6971if $ac_cs_silent; then
6972 exec 6>/dev/null
6973 ac_configure_extra_args="$ac_configure_extra_args --silent"
6974fi
6975
6976_ACEOF
5fe45d07 6977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fe5b0fdd 6978if \$ac_cs_recheck; then
5fe45d07
TM
6979 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6980 shift
6981 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6982 CONFIG_SHELL='$SHELL'
4d24561a 6983 export CONFIG_SHELL
5fe45d07 6984 exec "\$@"
fe5b0fdd
DH
6985fi
6986
6987_ACEOF
5fe45d07 6988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4d24561a
JR
6989exec 5>>config.log
6990{
6991 echo
6992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6993## Running $as_me. ##
6994_ASBOX
5fe45d07 6995 $as_echo "$ac_log"
4d24561a 6996} >&5
fe5b0fdd 6997
4d24561a 6998_ACEOF
5fe45d07 6999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fc3ebe53 7000#
4d24561a 7001# INIT-COMMANDS
fc3ebe53 7002#
fc3ebe53 7003AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
fe5b0fdd 7004
fc3ebe53 7005_ACEOF
fe5b0fdd 7006
5fe45d07 7007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4d24561a
JR
7008
7009# Handling of arguments.
fe5b0fdd
DH
7010for ac_config_target in $ac_config_targets
7011do
4d24561a
JR
7012 case $ac_config_target in
7013 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7014 "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;;
7015 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7016 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
7017 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
7018 "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;;
7019 "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;;
7020 "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
7021 "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
4d24561a
JR
7022 "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;;
7023 "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;;
7024 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
7025 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
06fb929c 7026 "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;;
5fe45d07 7027 "doc/devel/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/devel/doxyfile" ;;
4d24561a 7028
5fe45d07 7029 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
fe5b0fdd
DH
7030 esac
7031done
7032
4d24561a 7033
fe5b0fdd
DH
7034# If the user did not use the arguments to specify the items to instantiate,
7035# then the envvar interface is used. Set only those that are not.
7036# We use the long form for the default assignment because of an extremely
7037# bizarre bug on SunOS 4.1.3.
7038if $ac_need_defaults; then
7039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fc3ebe53 7041 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fe5b0fdd
DH
7042fi
7043
7044# Have a temporary directory for convenience. Make it in the build tree
4d24561a 7045# simply because there is no reason against having it here, and in addition,
fe5b0fdd 7046# creating and moving files from /tmp can sometimes cause problems.
4d24561a
JR
7047# Hook for its removal unless debugging.
7048# Note that there is a small window in which the directory will not be cleaned:
7049# after its creation but before its name has been assigned to `$tmp'.
fe5b0fdd
DH
7050$debug ||
7051{
4d24561a
JR
7052 tmp=
7053 trap 'exit_status=$?
7054 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7055' 0
5fe45d07 7056 trap 'as_fn_exit 1' 1 2 13 15
fe5b0fdd
DH
7057}
7058# Create a (secure) tmp directory for tmp files.
7059
7060{
4d24561a 7061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
fe5b0fdd
DH
7062 test -n "$tmp" && test -d "$tmp"
7063} ||
7064{
4d24561a
JR
7065 tmp=./conf$$-$RANDOM
7066 (umask 077 && mkdir "$tmp")
5fe45d07 7067} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4d24561a 7068
5fe45d07
TM
7069# Set up the scripts for CONFIG_FILES section.
7070# No need to generate them if there are no CONFIG_FILES.
7071# This happens for instance with `./config.status config.h'.
2d5fba9b 7072if test -n "$CONFIG_FILES"; then
9228099e 7073
4d24561a 7074
5fe45d07
TM
7075ac_cr=`echo X | tr X '\015'`
7076# On cygwin, bash can eat \r inside `` if the user requested igncr.
7077# But we know of no other shell where ac_cr would be empty at this
7078# point, so we can use a bashism as a fallback.
7079if test "x$ac_cr" = x; then
7080 eval ac_cr=\$\'\\r\'
7081fi
7082ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7083if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7084 ac_cs_awk_cr='\\r'
7085else
7086 ac_cs_awk_cr=$ac_cr
7087fi
7088
7089echo 'BEGIN {' >"$tmp/subs1.awk" &&
7090_ACEOF
4d24561a 7091
2d5fba9b 7092
5fe45d07
TM
7093{
7094 echo "cat >conf$$subs.awk <<_ACEOF" &&
7095 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7096 echo "_ACEOF"
7097} >conf$$subs.sh ||
7098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7099ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4d24561a
JR
7100ac_delim='%!_!# '
7101for ac_last_try in false false false false false :; do
5fe45d07
TM
7102 . ./conf$$subs.sh ||
7103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2d5fba9b 7104
5fe45d07
TM
7105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7106 if test $ac_delim_n = $ac_delim_num; then
4d24561a
JR
7107 break
7108 elif $ac_last_try; then
5fe45d07 7109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4d24561a
JR
7110 else
7111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c9a1db5e 7112 fi
4d24561a 7113done
5fe45d07
TM
7114rm -f conf$$subs.sh
7115
7116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7117cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7118_ACEOF
7119sed -n '
7120h
7121s/^/S["/; s/!.*/"]=/
7122p
7123g
7124s/^[^!]*!//
7125:repl
7126t repl
7127s/'"$ac_delim"'$//
7128t delim
7129:nl
7130h
7131s/\(.\{148\}\)..*/\1/
7132t more1
7133s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7134p
7135n
7136b repl
7137:more1
7138s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7139p
7140g
7141s/.\{148\}//
7142t nl
7143:delim
7144h
7145s/\(.\{148\}\)..*/\1/
7146t more2
7147s/["\\]/\\&/g; s/^/"/; s/$/"/
7148p
7149b
7150:more2
7151s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7152p
7153g
7154s/.\{148\}//
7155t delim
7156' <conf$$subs.awk | sed '
7157/^[^""]/{
7158 N
7159 s/\n//
7160}
7161' >>$CONFIG_STATUS || ac_write_fail=1
7162rm -f conf$$subs.awk
7163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7164_ACAWK
7165cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7166 for (key in S) S_is_set[key] = 1
7167 FS = "\a"
4d24561a 7168
5fe45d07
TM
7169}
7170{
7171 line = $ 0
7172 nfields = split(line, field, "@")
7173 substed = 0
7174 len = length(field[1])
7175 for (i = 2; i < nfields; i++) {
7176 key = field[i]
7177 keylen = length(key)
7178 if (S_is_set[key]) {
7179 value = S[key]
7180 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7181 len += length(value) + length(field[++i])
7182 substed = 1
7183 } else
7184 len += 1 + keylen
7185 }
7186
7187 print line
7188}
273bfdc3 7189
5fe45d07 7190_ACAWK
4d24561a 7191_ACEOF
5fe45d07
TM
7192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7193if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7195else
7196 cat
7197fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7198 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
c9a1db5e 7199_ACEOF
4d24561a 7200
5fe45d07
TM
7201# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7202# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4d24561a
JR
7203# trailing colons and then remove the whole line if VPATH becomes empty
7204# (actually we leave an empty line to preserve line numbers).
7205if test "x$srcdir" = x.; then
5fe45d07
TM
7206 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7207h
7208s///
7209s/^/:/
7210s/[ ]*$/:/
7211s/:\$(srcdir):/:/g
7212s/:\${srcdir}:/:/g
7213s/:@srcdir@:/:/g
7214s/^:*//
4d24561a 7215s/:*$//
5fe45d07
TM
7216x
7217s/\(=[ ]*\).*/\1/
7218G
7219s/\n//
4d24561a
JR
7220s/^[^=]*=[ ]*$//
7221}'
7222fi
7223
5fe45d07 7224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4d24561a
JR
7225fi # test -n "$CONFIG_FILES"
7226
5fe45d07
TM
7227# Set up the scripts for CONFIG_HEADERS section.
7228# No need to generate them if there are no CONFIG_HEADERS.
7229# This happens for instance with `./config.status Makefile'.
7230if test -n "$CONFIG_HEADERS"; then
7231cat >"$tmp/defines.awk" <<\_ACAWK ||
7232BEGIN {
7233_ACEOF
7234
7235# Transform confdefs.h into an awk script `defines.awk', embedded as
7236# here-document in config.status, that substitutes the proper values into
7237# config.h.in to produce config.h.
7238
7239# Create a delimiter string that does not exist in confdefs.h, to ease
7240# handling of long lines.
7241ac_delim='%!_!# '
7242for ac_last_try in false false :; do
7243 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7244 if test -z "$ac_t"; then
7245 break
7246 elif $ac_last_try; then
7247 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7248 else
7249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7250 fi
7251done
7252
7253# For the awk script, D is an array of macro values keyed by name,
7254# likewise P contains macro parameters if any. Preserve backslash
7255# newline sequences.
7256
7257ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7258sed -n '
7259s/.\{148\}/&'"$ac_delim"'/g
7260t rset
7261:rset
7262s/^[ ]*#[ ]*define[ ][ ]*/ /
7263t def
7264d
7265:def
7266s/\\$//
7267t bsnl
7268s/["\\]/\\&/g
7269s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7270D["\1"]=" \3"/p
7271s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7272d
7273:bsnl
7274s/["\\]/\\&/g
7275s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7276D["\1"]=" \3\\\\\\n"\\/p
7277t cont
7278s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7279t cont
7280d
7281:cont
7282n
7283s/.\{148\}/&'"$ac_delim"'/g
7284t clear
7285:clear
7286s/\\$//
7287t bsnlc
7288s/["\\]/\\&/g; s/^/"/; s/$/"/p
7289d
7290:bsnlc
7291s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7292b cont
7293' <confdefs.h | sed '
7294s/'"$ac_delim"'/"\\\
7295"/g' >>$CONFIG_STATUS || ac_write_fail=1
7296
7297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7298 for (key in D) D_is_set[key] = 1
7299 FS = "\a"
7300}
7301/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7302 line = \$ 0
7303 split(line, arg, " ")
7304 if (arg[1] == "#") {
7305 defundef = arg[2]
7306 mac1 = arg[3]
7307 } else {
7308 defundef = substr(arg[1], 2)
7309 mac1 = arg[2]
7310 }
7311 split(mac1, mac2, "(") #)
7312 macro = mac2[1]
7313 prefix = substr(line, 1, index(line, defundef) - 1)
7314 if (D_is_set[macro]) {
7315 # Preserve the white space surrounding the "#".
7316 print prefix "define", macro P[macro] D[macro]
7317 next
7318 } else {
7319 # Replace #undef with comments. This is necessary, for example,
7320 # in the case of _POSIX_SOURCE, which is predefined and required
7321 # on some systems where configure will not decide to define it.
7322 if (defundef == "undef") {
7323 print "/*", prefix defundef, macro, "*/"
7324 next
7325 }
7326 }
7327}
7328{ print }
7329_ACAWK
7330_ACEOF
7331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7332 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7333fi # test -n "$CONFIG_HEADERS"
7334
9228099e 7335
5fe45d07
TM
7336eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7337shift
7338for ac_tag
4d24561a
JR
7339do
7340 case $ac_tag in
7341 :[FHLC]) ac_mode=$ac_tag; continue;;
7342 esac
7343 case $ac_mode$ac_tag in
7344 :[FHL]*:*);;
5fe45d07 7345 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4d24561a
JR
7346 :[FH]-) ac_tag=-:-;;
7347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7348 esac
7349 ac_save_IFS=$IFS
7350 IFS=:
7351 set x $ac_tag
7352 IFS=$ac_save_IFS
7353 shift
7354 ac_file=$1
7355 shift
7356
7357 case $ac_mode in
7358 :L) ac_source=$1;;
7359 :[FH])
7360 ac_file_inputs=
7361 for ac_f
7362 do
7363 case $ac_f in
7364 -) ac_f="$tmp/stdin";;
7365 *) # Look for the file first in the build tree, then in the source tree
7366 # (if the path is not absolute). The absolute path cannot be DOS-style,
7367 # because $ac_f cannot contain `:'.
7368 test -f "$ac_f" ||
7369 case $ac_f in
7370 [\\/$]*) false;;
7371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7372 esac ||
5fe45d07 7373 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4d24561a 7374 esac
5fe45d07
TM
7375 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7376 as_fn_append ac_file_inputs " '$ac_f'"
4d24561a
JR
7377 done
7378
7379 # Let's still pretend it is `configure' which instantiates (i.e., don't
7380 # use $as_me), people would be surprised to read:
7381 # /* config.h. Generated by config.status. */
5fe45d07
TM
7382 configure_input='Generated from '`
7383 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7384 `' by configure.'
4d24561a
JR
7385 if test x"$ac_file" != x-; then
7386 configure_input="$ac_file. $configure_input"
5fe45d07
TM
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7388$as_echo "$as_me: creating $ac_file" >&6;}
4d24561a 7389 fi
5fe45d07
TM
7390 # Neutralize special characters interpreted by sed in replacement strings.
7391 case $configure_input in #(
7392 *\&* | *\|* | *\\* )
7393 ac_sed_conf_input=`$as_echo "$configure_input" |
7394 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7395 *) ac_sed_conf_input=$configure_input;;
7396 esac
4d24561a
JR
7397
7398 case $ac_tag in
5fe45d07
TM
7399 *:-:* | *:-) cat >"$tmp/stdin" \
7400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4d24561a
JR
7401 esac
7402 ;;
fe5b0fdd
DH
7403 esac
7404
4d24561a 7405 ac_dir=`$as_dirname -- "$ac_file" ||
fe5b0fdd
DH
7406$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7407 X"$ac_file" : 'X\(//\)[^/]' \| \
7408 X"$ac_file" : 'X\(//\)$' \| \
4d24561a 7409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5fe45d07 7410$as_echo X"$ac_file" |
4d24561a
JR
7411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7412 s//\1/
7413 q
7414 }
7415 /^X\(\/\/\)[^/].*/{
7416 s//\1/
7417 q
7418 }
7419 /^X\(\/\/\)$/{
7420 s//\1/
7421 q
7422 }
7423 /^X\(\/\).*/{
7424 s//\1/
7425 q
7426 }
7427 s/.*/./; q'`
5fe45d07 7428 as_dir="$ac_dir"; as_fn_mkdir_p
fe5b0fdd
DH
7429 ac_builddir=.
7430
4d24561a
JR
7431case "$ac_dir" in
7432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7433*)
5fe45d07 7434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4d24561a 7435 # A ".." for each directory in $ac_dir_suffix.
5fe45d07 7436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4d24561a
JR
7437 case $ac_top_builddir_sub in
7438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7440 esac ;;
7441esac
7442ac_abs_top_builddir=$ac_pwd
7443ac_abs_builddir=$ac_pwd$ac_dir_suffix
7444# for backward compatibility:
7445ac_top_builddir=$ac_top_build_prefix
fe5b0fdd
DH
7446
7447case $srcdir in
4d24561a 7448 .) # We are building in place.
fe5b0fdd 7449 ac_srcdir=.
4d24561a
JR
7450 ac_top_srcdir=$ac_top_builddir_sub
7451 ac_abs_top_srcdir=$ac_pwd ;;
7452 [\\/]* | ?:[\\/]* ) # Absolute name.
fe5b0fdd 7453 ac_srcdir=$srcdir$ac_dir_suffix;
4d24561a
JR
7454 ac_top_srcdir=$srcdir
7455 ac_abs_top_srcdir=$srcdir ;;
7456 *) # Relative name.
7457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7458 ac_top_srcdir=$ac_top_build_prefix$srcdir
7459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fe5b0fdd 7460esac
4d24561a 7461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fe5b0fdd
DH
7462
7463
4d24561a
JR
7464 case $ac_mode in
7465 :F)
7466 #
7467 # CONFIG_FILE
7468 #
fe5b0fdd
DH
7469
7470 case $INSTALL in
7471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4d24561a 7472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
fe5b0fdd 7473 esac
2d5fba9b
DH
7474 ac_MKDIR_P=$MKDIR_P
7475 case $MKDIR_P in
7476 [\\/$]* | ?:[\\/]* ) ;;
7477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7478 esac
4d24561a 7479_ACEOF
273bfdc3 7480
4d24561a
JR
7481
7482# Neutralize VPATH when `$srcdir' = `.'.
7483# Shell code in configure.ac might set extrasub.
7484# FIXME: do we really want to maintain this feature?
5fe45d07
TM
7485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7486ac_sed_extra="$ac_vpsub
fe5b0fdd
DH
7487$extrasub
7488_ACEOF
5fe45d07 7489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fe5b0fdd
DH
7490:t
7491/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5fe45d07 7492s|@configure_input@|$ac_sed_conf_input|;t t
4d24561a 7493s&@top_builddir@&$ac_top_builddir_sub&;t t
5fe45d07 7494s&@top_build_prefix@&$ac_top_build_prefix&;t t
4d24561a
JR
7495s&@srcdir@&$ac_srcdir&;t t
7496s&@abs_srcdir@&$ac_abs_srcdir&;t t
7497s&@top_srcdir@&$ac_top_srcdir&;t t
7498s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7499s&@builddir@&$ac_builddir&;t t
7500s&@abs_builddir@&$ac_abs_builddir&;t t
7501s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7502s&@INSTALL@&$ac_INSTALL&;t t
2d5fba9b 7503s&@MKDIR_P@&$ac_MKDIR_P&;t t
5fe45d07
TM
7504"
7505eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4d24561a 7507
4d24561a
JR
7508
7509 rm -f "$tmp/stdin"
fe5b0fdd 7510 case $ac_file in
5fe45d07
TM
7511 -) cat "$tmp/out" && rm -f "$tmp/out";;
7512 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7513 esac \
7514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4d24561a
JR
7515 ;;
7516 :H)
7517 #
7518 # CONFIG_HEADER
7519 #
fe5b0fdd 7520 if test x"$ac_file" != x-; then
5fe45d07
TM
7521 {
7522 $as_echo "/* $configure_input */" \
7523 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7524 } >"$tmp/config.h" \
7525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7526 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7528$as_echo "$as_me: $ac_file is unchanged" >&6;}
fe5b0fdd 7529 else
5fe45d07
TM
7530 rm -f "$ac_file"
7531 mv "$tmp/config.h" "$ac_file" \
7532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
fe5b0fdd
DH
7533 fi
7534 else
5fe45d07
TM
7535 $as_echo "/* $configure_input */" \
7536 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7537 || as_fn_error $? "could not create -" "$LINENO" 5
fe5b0fdd 7538 fi
5fe45d07
TM
7539# Compute "$ac_file"'s index in $config_headers.
7540_am_arg="$ac_file"
fc3ebe53
DH
7541_am_stamp_count=1
7542for _am_header in $config_headers :; do
7543 case $_am_header in
2d5fba9b 7544 $_am_arg | $_am_arg:* )
fc3ebe53
DH
7545 break ;;
7546 * )
7547 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7548 esac
7549done
2d5fba9b
DH
7550echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7551$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7552 X"$_am_arg" : 'X\(//\)[^/]' \| \
7553 X"$_am_arg" : 'X\(//\)$' \| \
7554 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5fe45d07 7555$as_echo X"$_am_arg" |
4d24561a
JR
7556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7557 s//\1/
7558 q
7559 }
7560 /^X\(\/\/\)[^/].*/{
7561 s//\1/
7562 q
7563 }
7564 /^X\(\/\/\)$/{
7565 s//\1/
7566 q
7567 }
7568 /^X\(\/\).*/{
7569 s//\1/
7570 q
7571 }
7572 s/.*/./; q'`/stamp-h$_am_stamp_count
7573 ;;
7d714d6b 7574
5fe45d07
TM
7575 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7576$as_echo "$as_me: executing $ac_file commands" >&6;}
4d24561a
JR
7577 ;;
7578 esac
fc3ebe53
DH
7579
7580
4d24561a
JR
7581 case $ac_file$ac_mode in
7582 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
fc3ebe53
DH
7583 # Strip MF so we end up with the name of the file.
7584 mf=`echo "$mf" | sed -e 's/:.*$//'`
7585 # Check whether this is an Automake generated Makefile or not.
7586 # We used to match only the files named `Makefile.in', but
7587 # some people rename them; so instead we look at the file content.
7588 # Grep'ing the first line is not enough: some people post-process
7589 # each Makefile.in and add a new line on top of each file to say so.
2d5fba9b
DH
7590 # Grep'ing the whole file is not good either: AIX grep has a line
7591 # limit of 2048, but all sed's we know have understand at least 4000.
7592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4d24561a 7593 dirpart=`$as_dirname -- "$mf" ||
fc3ebe53
DH
7594$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7595 X"$mf" : 'X\(//\)[^/]' \| \
7596 X"$mf" : 'X\(//\)$' \| \
4d24561a 7597 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5fe45d07 7598$as_echo X"$mf" |
4d24561a
JR
7599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7600 s//\1/
7601 q
7602 }
7603 /^X\(\/\/\)[^/].*/{
7604 s//\1/
7605 q
7606 }
7607 /^X\(\/\/\)$/{
7608 s//\1/
7609 q
7610 }
7611 /^X\(\/\).*/{
7612 s//\1/
7613 q
7614 }
7615 s/.*/./; q'`
fc3ebe53
DH
7616 else
7617 continue
7618 fi
7619 # Extract the definition of DEPDIR, am__include, and am__quote
7620 # from the Makefile without running `make'.
7621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7622 test -z "$DEPDIR" && continue
7623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7624 test -z "am__include" && continue
7625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7626 # When using ansi2knr, U may be empty or an underscore; expand it
7627 U=`sed -n 's/^U = //p' < "$mf"`
7628 # Find all dependency output files, they are included files with
7629 # $(DEPDIR) in their names. We invoke sed twice because it is the
7630 # simplest approach to changing $(DEPDIR) to its actual value in the
7631 # expansion.
7632 for file in `sed -n "
7633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7635 # Make sure the directory exists.
7636 test -f "$dirpart/$file" && continue
4d24561a 7637 fdir=`$as_dirname -- "$file" ||
fc3ebe53
DH
7638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7639 X"$file" : 'X\(//\)[^/]' \| \
7640 X"$file" : 'X\(//\)$' \| \
4d24561a 7641 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5fe45d07 7642$as_echo X"$file" |
4d24561a
JR
7643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7644 s//\1/
7645 q
7646 }
7647 /^X\(\/\/\)[^/].*/{
7648 s//\1/
7649 q
7650 }
7651 /^X\(\/\/\)$/{
7652 s//\1/
7653 q
7654 }
7655 /^X\(\/\).*/{
7656 s//\1/
7657 q
7658 }
7659 s/.*/./; q'`
5fe45d07 7660 as_dir=$dirpart/$fdir; as_fn_mkdir_p
fc3ebe53
DH
7661 # echo "creating $dirpart/$file"
7662 echo '# dummy' > "$dirpart/$file"
7663 done
7664done
7665 ;;
4d24561a 7666
fc3ebe53 7667 esac
4d24561a 7668done # for ac_tag
fe5b0fdd
DH
7669
7670
5fe45d07 7671as_fn_exit 0
fe5b0fdd 7672_ACEOF
fe5b0fdd
DH
7673ac_clean_files=$ac_clean_files_save
7674
5fe45d07
TM
7675test $ac_write_fail = 0 ||
7676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7677
fe5b0fdd
DH
7678
7679# configure is writing to config.log, and then calls config.status.
7680# config.status does its own redirection, appending to config.log.
7681# Unfortunately, on DOS this fails, as config.log is still kept open
7682# by configure, so config.status won't be able to write to it; its
7683# output is simply discarded. So we exec the FD to /dev/null,
7684# effectively closing config.log, so it can be properly (re)opened and
7685# appended to by config.status. When coming back to configure, we
7686# need to make the FD available again.
7687if test "$no_create" != yes; then
7688 ac_cs_success=:
7689 ac_config_status_args=
7690 test "$silent" = yes &&
7691 ac_config_status_args="$ac_config_status_args --quiet"
7692 exec 5>/dev/null
7693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7694 exec 5>>config.log
7695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7696 # would make configure fail if this is the last instruction.
5fe45d07
TM
7697 $ac_cs_success || as_fn_exit 1
7698fi
7699if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7701$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fe5b0fdd
DH
7702fi
7703
7704
a2304b5c 7705sh util/bindvar.sh
06fb929c
TM
7706
7707cat > config.report << END
7708
7709 ISC DHCP source configure results:
7710 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
7711
7712Package:
7713 Name: $PACKAGE_NAME
7714 Version: $PACKAGE_VERSION
7715
7716C Compiler: $CC
7717
7718Flags:
7719 DEFS: $DEFS
7720 CFLAGS: $CFLAGS
7721
7722Features:
7723 debug: $enable_debug
7724 failover: $enable_failover
7725 execute: $enable_execute
7726
7727Developer:
98678c9a 7728 ATF unittests : $atf_path
06fb929c
TM
7729
7730END
06fb929c
TM
7731# TODO: Add Perl system tests
7732
98678c9a 7733if test "$atf_path" != "no"
06fb929c
TM
7734then
7735echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report
7736echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report
06fb929c
TM
7737echo
7738fi
7739
7740cat config.report
7741
7742echo
7743echo Now you can type "make" to build ISC DHCP
7744echo