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