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