2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for DHCP 4.2.3-P2.
5 # Report bugs to <dhcp-users@isc.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
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 \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
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
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$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
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
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
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='dhcp'
577 PACKAGE_VERSION='4.2.3-P2'
578 PACKAGE_STRING='DHCP 4.2.3-P2'
579 PACKAGE_BUGREPORT='dhcp-users@isc.org'
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
668 INSTALL_STRIP_PROGRAM
677 MAINTAINER_MODE_FALSE
705 ac_precious_vars='build_alias
716 # Initialize some variables set by options.
718 ac_init_version=false
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
728 program_transform_name=s,x,x,
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 includedir='${prefix}/include'
751 oldincludedir='/usr/include'
752 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753 infodir='${datarootdir}/info'
758 libdir='${exec_prefix}/lib'
759 localedir='${datarootdir}/locale'
760 mandir='${datarootdir}/man'
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
768 eval $ac_prev=\$ac_option
774 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 # Accept the important Cygnus configure options, so we can diagnose typos.
780 case $ac_dashdash$ac_option in
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
802 cache_file=config.cache ;;
804 -datadir | --datadir | --datadi | --datad)
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
816 -disable-* | --disable-*)
817 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821 { (exit 1); exit 1; }; }
822 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823 eval enable_$ac_feature=no ;;
825 -docdir | --docdir | --docdi | --doc | --do)
827 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835 -enable-* | --enable-*)
836 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=\$ac_optarg ;;
844 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846 | --exec | --exe | --ex)
847 ac_prev=exec_prefix ;;
848 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850 | --exec=* | --exe=* | --ex=*)
851 exec_prefix=$ac_optarg ;;
853 -gas | --gas | --ga | --g)
854 # Obsolete; use --with-gas.
857 -help | --help | --hel | --he | -h)
859 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860 ac_init_help=recursive ;;
861 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862 ac_init_help=short ;;
864 -host | --host | --hos | --ho)
865 ac_prev=host_alias ;;
866 -host=* | --host=* | --hos=* | --ho=*)
867 host_alias=$ac_optarg ;;
869 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
871 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
873 htmldir=$ac_optarg ;;
875 -includedir | --includedir | --includedi | --included | --include \
876 | --includ | --inclu | --incl | --inc)
877 ac_prev=includedir ;;
878 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879 | --includ=* | --inclu=* | --incl=* | --inc=*)
880 includedir=$ac_optarg ;;
882 -infodir | --infodir | --infodi | --infod | --info | --inf)
884 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885 infodir=$ac_optarg ;;
887 -libdir | --libdir | --libdi | --libd)
889 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893 | --libexe | --libex | --libe)
894 ac_prev=libexecdir ;;
895 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896 | --libexe=* | --libex=* | --libe=*)
897 libexecdir=$ac_optarg ;;
899 -localedir | --localedir | --localedi | --localed | --locale)
901 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902 localedir=$ac_optarg ;;
904 -localstatedir | --localstatedir | --localstatedi | --localstated \
905 | --localstate | --localstat | --localsta | --localst | --locals)
906 ac_prev=localstatedir ;;
907 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909 localstatedir=$ac_optarg ;;
911 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
913 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 # Obsolete; use --without-fp.
920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921 | --no-cr | --no-c | -n)
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930 | --oldin | --oldi | --old | --ol | --o)
931 ac_prev=oldincludedir ;;
932 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935 oldincludedir=$ac_optarg ;;
937 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
939 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 -program-prefix | --program-prefix | --program-prefi | --program-pref \
943 | --program-pre | --program-pr | --program-p)
944 ac_prev=program_prefix ;;
945 -program-prefix=* | --program-prefix=* | --program-prefi=* \
946 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947 program_prefix=$ac_optarg ;;
949 -program-suffix | --program-suffix | --program-suffi | --program-suff \
950 | --program-suf | --program-su | --program-s)
951 ac_prev=program_suffix ;;
952 -program-suffix=* | --program-suffix=* | --program-suffi=* \
953 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954 program_suffix=$ac_optarg ;;
956 -program-transform-name | --program-transform-name \
957 | --program-transform-nam | --program-transform-na \
958 | --program-transform-n | --program-transform- \
959 | --program-transform | --program-transfor \
960 | --program-transfo | --program-transf \
961 | --program-trans | --program-tran \
962 | --progr-tra | --program-tr | --program-t)
963 ac_prev=program_transform_name ;;
964 -program-transform-name=* | --program-transform-name=* \
965 | --program-transform-nam=* | --program-transform-na=* \
966 | --program-transform-n=* | --program-transform-=* \
967 | --program-transform=* | --program-transfor=* \
968 | --program-transfo=* | --program-transf=* \
969 | --program-trans=* | --program-tran=* \
970 | --progr-tra=* | --program-tr=* | --program-t=*)
971 program_transform_name=$ac_optarg ;;
973 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
975 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 -psdir | --psdir | --psdi | --psd | --ps)
980 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984 | -silent | --silent | --silen | --sile | --sil)
987 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991 sbindir=$ac_optarg ;;
993 -sharedstatedir | --sharedstatedir | --sharedstatedi \
994 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995 | --sharedst | --shareds | --shared | --share | --shar \
997 ac_prev=sharedstatedir ;;
998 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002 sharedstatedir=$ac_optarg ;;
1004 -site | --site | --sit)
1006 -site=* | --site=* | --sit=*)
1009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012 srcdir=$ac_optarg ;;
1014 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015 | --syscon | --sysco | --sysc | --sys | --sy)
1016 ac_prev=sysconfdir ;;
1017 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019 sysconfdir=$ac_optarg ;;
1021 -target | --target | --targe | --targ | --tar | --ta | --t)
1022 ac_prev=target_alias ;;
1023 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024 target_alias=$ac_optarg ;;
1026 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 -version | --version | --versio | --versi | --vers | -V)
1030 ac_init_version=: ;;
1033 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid package name: $ac_package" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039 eval with_$ac_package=\$ac_optarg ;;
1041 -without-* | --without-*)
1042 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=no ;;
1051 # Obsolete; use --with-x.
1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055 | --x-incl | --x-inc | --x-in | --x-i)
1056 ac_prev=x_includes ;;
1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059 x_includes=$ac_optarg ;;
1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063 ac_prev=x_libraries ;;
1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066 x_libraries=$ac_optarg ;;
1068 -*) { echo "$as_me: error: unrecognized option: $ac_option
1069 Try \`$0 --help' for more information." >&2
1070 { (exit 1); exit 1; }; }
1074 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078 { (exit 1); exit 1; }; }
1079 eval $ac_envvar=\$ac_optarg
1080 export $ac_envvar ;;
1083 # FIXME: should be removed in autoconf 3.0.
1084 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1093 if test -n "$ac_prev"; then
1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095 { echo "$as_me: error: missing argument to $ac_option" >&2
1096 { (exit 1); exit 1; }; }
1099 # Be sure to have absolute directory names.
1100 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101 datadir sysconfdir sharedstatedir localstatedir includedir \
1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103 libdir localedir mandir
1105 eval ac_val=\$$ac_var
1107 [\\/$]* | ?:[\\/]* ) continue;;
1108 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1111 { (exit 1); exit 1; }; }
1114 # There might be people who depend on the old broken behavior: `$host'
1115 # used to hold the argument of --host etc.
1116 # FIXME: To remove some day.
1119 target=$target_alias
1121 # FIXME: To remove some day.
1122 if test "x$host_alias" != x; then
1123 if test "x$build_alias" = x; then
1124 cross_compiling=maybe
1125 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126 If a cross compiler is detected then cross compile mode will be used." >&2
1127 elif test "x$build_alias" != "x$host_alias"; then
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135 test "$silent" = yes && exec 6>/dev/null
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141 { echo "$as_me: error: Working directory cannot be determined" >&2
1142 { (exit 1); exit 1; }; }
1143 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1144 { echo "$as_me: error: pwd does not report name of working directory" >&2
1145 { (exit 1); exit 1; }; }
1148 # Find the source files, if location was not specified.
1149 if test -z "$srcdir"; then
1150 ac_srcdir_defaulted=yes
1151 # Try the directory containing this script, then the parent directory.
1152 ac_confdir=`$as_dirname -- "$0" ||
1153 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154 X"$0" : 'X\(//\)[^/]' \| \
1155 X"$0" : 'X\(//\)$' \| \
1156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1180 ac_srcdir_defaulted=no
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1185 { (exit 1); exit 1; }; }
1187 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1190 { (exit 1); exit 1; }; }
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210 # Report the --help message.
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1216 \`configure' configures DHCP 4.2.3-P2 to adapt to many kinds of systems.
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1223 Defaults for the options are specified in brackets.
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1247 For better control, use the options below.
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --libdir=DIR object code libraries [EPREFIX/lib]
1257 --includedir=DIR C header files [PREFIX/include]
1258 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261 --infodir=DIR info documentation [DATAROOTDIR/info]
1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263 --mandir=DIR man documentation [DATAROOTDIR/man]
1264 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1265 --htmldir=DIR html documentation [DOCDIR]
1266 --dvidir=DIR dvi documentation [DOCDIR]
1267 --pdfdir=DIR pdf documentation [DOCDIR]
1268 --psdir=DIR ps documentation [DOCDIR]
1274 --program-prefix=PREFIX prepend PREFIX to installed program names
1275 --program-suffix=SUFFIX append SUFFIX to installed program names
1276 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1280 if test -n "$ac_init_help"; then
1281 case $ac_init_help in
1282 short | recursive ) echo "Configuration of DHCP 4.2.3-P2:";;
1287 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1288 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1289 --enable-maintainer-mode enable make rules and dependencies not useful
1290 (and sometimes confusing) to the casual installer
1291 --disable-dependency-tracking speeds up one-time build
1292 --enable-dependency-tracking do not reject slow dependency extractors
1293 --enable-debug create a debug-only version of the software (default
1295 --enable-failover enable support for failover (default is yes)
1296 --enable-execute enable support for execute() in config (default is
1298 --enable-tracing enable support for server activity tracing (default
1300 --enable-delayed-ack queues multiple DHCPACK replies (default is no)
1301 --enable-dhcpv6 enable support for DHCPv6 (default is yes)
1302 --enable-paranoia enable support for chroot/setuid (default is no)
1303 --enable-early-chroot enable chrooting prior to configuration (default is
1305 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is
1307 --enable-use-sockets use the standard BSD socket API (default is no)
1310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1312 --with-srv-lease-file=PATH
1313 File for dhcpd leases (default is
1314 LOCALSTATEDIR/db/dhcpd.leases)
1315 --with-srv6-lease-file=PATH
1316 File for dhcpd6 leases (default is
1317 LOCALSTATEDIR/db/dhcpd6.leases)
1318 --with-cli-lease-file=PATH
1319 File for dhclient leases (default is
1320 LOCALSTATEDIR/db/dhclient.leases)
1321 --with-cli6-lease-file=PATH
1322 File for dhclient6 leases (default is
1323 LOCALSTATEDIR/db/dhclient6.leases)
1324 --with-srv-pid-file=PATH
1325 File for dhcpd process information (default is
1326 LOCALSTATEDIR/run/dhcpd.pid)
1327 --with-srv6-pid-file=PATH
1328 File for dhcpd6 process information (default is
1329 LOCALSTATEDIR/run/dhcpd6.pid)
1330 --with-cli-pid-file=PATH
1331 File for dhclient process information (default is
1332 LOCALSTATEDIR/run/dhclient.pid)
1333 --with-cli6-pid-file=PATH
1334 File for dhclient6 process information (default is
1335 LOCALSTATEDIR/run/dhclient6.pid)
1336 --with-relay-pid-file=PATH
1337 File for dhcrelay process information (default is
1338 LOCALSTATEDIR/run/dhcrelay.pid)
1339 --with-relay6-pid-file=PATH
1340 File for dhcrelay6 process information (default is
1341 LOCALSTATEDIR/run/dhcrelay6.pid)
1342 --with-libbind=PATH bind includes and libraries are in PATH (default is
1344 --with-ldap enable OpenLDAP support in dhcpd (default is no)
1345 --with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is
1348 Some influential environment variables:
1349 CC C compiler command
1350 CFLAGS C compiler flags
1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1352 nonstandard directory <lib dir>
1353 LIBS libraries to pass to the linker, e.g. -l<library>
1354 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1355 you have headers in a nonstandard directory <include dir>
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1361 Report bugs to <dhcp-users@isc.org>.
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" || continue
1373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1376 # A ".." for each directory in $ac_dir_suffix.
1377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1378 case $ac_top_builddir_sub in
1379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 ac_abs_top_builddir=$ac_pwd
1384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385 # for backward compatibility:
1386 ac_top_builddir=$ac_top_build_prefix
1389 .) # We are building in place.
1391 ac_top_srcdir=$ac_top_builddir_sub
1392 ac_abs_top_srcdir=$ac_pwd ;;
1393 [\\/]* | ?:[\\/]* ) # Absolute name.
1394 ac_srcdir=$srcdir$ac_dir_suffix;
1395 ac_top_srcdir=$srcdir
1396 ac_abs_top_srcdir=$srcdir ;;
1398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399 ac_top_srcdir=$ac_top_build_prefix$srcdir
1400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1404 cd "$ac_dir" || { ac_status=$?; continue; }
1405 # Check for guested configure.
1406 if test -f "$ac_srcdir/configure.gnu"; then
1408 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409 elif test -f "$ac_srcdir/configure"; then
1411 $SHELL "$ac_srcdir/configure" --help=recursive
1413 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1415 cd "$ac_pwd" || { ac_status=$?; break; }
1419 test -n "$ac_init_help" && exit $ac_status
1420 if $ac_init_version; then
1422 DHCP configure 4.2.3-P2
1423 generated by GNU Autoconf 2.61
1425 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1426 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1427 This configure script is free software; the Free Software Foundation
1428 gives unlimited permission to copy, distribute and modify it.
1432 cat >config.log <<_ACEOF
1433 This file contains any messages produced by compilers while
1434 running configure, to aid debugging if configure makes a mistake.
1436 It was created by DHCP $as_me 4.2.3-P2, which was
1437 generated by GNU Autoconf 2.61. Invocation command line was
1449 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1450 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1451 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1452 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1453 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1455 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1456 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1458 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1459 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1460 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1461 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1462 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1464 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 test -z "$as_dir" && as_dir=.
1473 echo "PATH: $as_dir"
1489 # Keep a trace of the command line.
1490 # Strip out --no-create and --no-recursion so they do not pile up.
1491 # Strip out --silent because we don't want to record it for future runs.
1492 # Also quote any args containing shell meta-characters.
1493 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_must_keep_next=false
1503 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505 | -silent | --silent | --silen | --sile | --sil)
1508 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1511 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1513 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1514 if test $ac_must_keep_next = true; then
1515 ac_must_keep_next=false # Got value, back to normal.
1518 *=* | --config-cache | -C | -disable-* | --disable-* \
1519 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1520 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1521 | -with-* | --with-* | -without-* | --without-* | --x)
1522 case "$ac_configure_args0 " in
1523 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1526 -* ) ac_must_keep_next=true ;;
1529 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1535 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1537 # When interrupted or exit'd, cleanup temporary files, and complete
1538 # config.log. We remove comments because anyway the quotes in there
1539 # would cause problems or look ugly.
1540 # WARNING: Use '\'' to represent an apostrophe within the trap.
1541 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1542 trap 'exit_status=$?
1543 # Save into config.log some information that might help in debugging.
1548 ## ---------------- ##
1549 ## Cache variables. ##
1550 ## ---------------- ##
1553 # The following way of writing the cache mishandles newlines in values,
1555 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1556 eval ac_val=\$$ac_var
1560 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1561 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1564 _ | IFS | as_nl) ;; #(
1565 *) $as_unset $ac_var ;;
1570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1571 *${as_nl}ac_space=\ *)
1573 "s/'\''/'\''\\\\'\'''\''/g;
1574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1585 ## ----------------- ##
1586 ## Output variables. ##
1587 ## ----------------- ##
1590 for ac_var in $ac_subst_vars
1592 eval ac_val=\$$ac_var
1594 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596 echo "$ac_var='\''$ac_val'\''"
1600 if test -n "$ac_subst_files"; then
1602 ## ------------------- ##
1603 ## File substitutions. ##
1604 ## ------------------- ##
1607 for ac_var in $ac_subst_files
1609 eval ac_val=\$$ac_var
1611 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 echo "$ac_var='\''$ac_val'\''"
1618 if test -s confdefs.h; then
1628 test "$ac_signal" != 0 &&
1629 echo "$as_me: caught signal $ac_signal"
1630 echo "$as_me: exit $exit_status"
1632 rm -f core *.core core.conftest.* &&
1633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1636 for ac_signal in 1 2 13 15; do
1637 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1642 rm -f -r conftest* confdefs.h
1644 # Predefined preprocessor variables.
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 # Let the site file select an alternate cache file if it wants to.
1672 # Prefer explicitly selected file to automatically selected ones.
1673 if test -n "$CONFIG_SITE"; then
1674 set x "$CONFIG_SITE"
1675 elif test "x$prefix" != xNONE; then
1676 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1678 set x "$ac_default_prefix/share/config.site" \
1679 "$ac_default_prefix/etc/config.site"
1684 if test -r "$ac_site_file"; then
1685 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1686 echo "$as_me: loading site script $ac_site_file" >&6;}
1687 sed 's/^/| /' "$ac_site_file" >&5
1692 if test -r "$cache_file"; then
1693 # Some versions of bash will fail to source /dev/null (special
1694 # files actually), so we avoid doing that.
1695 if test -f "$cache_file"; then
1696 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1697 echo "$as_me: loading cache $cache_file" >&6;}
1699 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1700 *) . "./$cache_file";;
1704 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1705 echo "$as_me: creating cache $cache_file" >&6;}
1709 # Check that the precious variables saved in the cache have kept the same
1711 ac_cache_corrupted=false
1712 for ac_var in $ac_precious_vars; do
1713 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1714 eval ac_new_set=\$ac_env_${ac_var}_set
1715 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1716 eval ac_new_val=\$ac_env_${ac_var}_value
1717 case $ac_old_set,$ac_new_set in
1719 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1720 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1721 ac_cache_corrupted=: ;;
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1728 if test "x$ac_old_val" != "x$ac_new_val"; then
1729 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1730 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1731 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1732 echo "$as_me: former value: $ac_old_val" >&2;}
1733 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1734 echo "$as_me: current value: $ac_new_val" >&2;}
1735 ac_cache_corrupted=:
1738 # Pass precious variables to config.status.
1739 if test "$ac_new_set" = set; then
1741 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 *) ac_arg=$ac_var=$ac_new_val ;;
1744 case " $ac_configure_args " in
1745 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1746 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1750 if $ac_cache_corrupted; then
1751 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1752 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1753 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1754 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1755 { (exit 1); exit 1; }; }
1783 ac_cpp='$CPP $CPPFLAGS'
1784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790 # we specify "foreign" to avoid having to have the GNU mandated files,
1791 # like AUTHORS, COPYING, and such
1792 am__api_version='1.10'
1795 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1796 if test -f "$ac_dir/install-sh"; then
1798 ac_install_sh="$ac_aux_dir/install-sh -c"
1800 elif test -f "$ac_dir/install.sh"; then
1802 ac_install_sh="$ac_aux_dir/install.sh -c"
1804 elif test -f "$ac_dir/shtool"; then
1806 ac_install_sh="$ac_aux_dir/shtool install -c"
1810 if test -z "$ac_aux_dir"; then
1811 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1812 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1813 { (exit 1); exit 1; }; }
1816 # These three variables are undocumented and unsupported,
1817 # and are intended to be withdrawn in a future Autoconf release.
1818 # They can cause serious problems if a builder's source tree is in a directory
1819 # whose full name contains unusual characters.
1820 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1821 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1822 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1825 # Find a good install program. We prefer a C program (faster),
1826 # so one script is as good as another. But avoid the broken or
1827 # incompatible versions:
1828 # SysV /etc/install, /usr/sbin/install
1829 # SunOS /usr/etc/install
1830 # IRIX /sbin/install
1832 # AmigaOS /C/install, which installs bootblocks on floppy discs
1833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1836 # OS/2's system install, which has a completely different semantic
1837 # ./install, which can be erroneously created by make from ./install.sh.
1838 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1840 if test -z "$INSTALL"; then
1841 if test "${ac_cv_path_install+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 test -z "$as_dir" && as_dir=.
1849 # Account for people who put trailing slashes in PATH elements.
1851 ./ | .// | /cC/* | \
1852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1856 # OSF1 and SCO ODT 3.0 have their own names for install.
1857 # Don't use installbsd from OSF since it installs stuff as root
1859 for ac_prog in ginstall scoinst install; do
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1862 if test $ac_prog = install &&
1863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1864 # AIX install. It has an incompatible calling convention.
1866 elif test $ac_prog = install &&
1867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1868 # program-specific install script used by HP pwplus--don't use.
1871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1884 if test "${ac_cv_path_install+set}" = set; then
1885 INSTALL=$ac_cv_path_install
1887 # As a last resort, use the slow shell script. Don't cache a
1888 # value for INSTALL within a source directory, because that will
1889 # break other packages using the cache if that directory is
1890 # removed, or if the value is a relative name.
1891 INSTALL=$ac_install_sh
1894 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1895 echo "${ECHO_T}$INSTALL" >&6; }
1897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1898 # It thinks the first close brace ends the variable substitution.
1899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1905 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1906 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1909 echo timestamp > conftest.file
1910 # Do `set' in a subshell so we don't clobber the current shell's
1911 # arguments. Must try -L first in case configure is actually a
1912 # symlink; some systems play weird games with the mod time of symlinks
1913 # (eg FreeBSD returns the mod time of the symlink's containing
1916 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1917 if test "$*" = "X"; then
1919 set X `ls -t $srcdir/configure conftest.file`
1922 if test "$*" != "X $srcdir/configure conftest.file" \
1923 && test "$*" != "X conftest.file $srcdir/configure"; then
1925 # If neither matched, then we have a broken ls. This can happen
1926 # if, for instance, CONFIG_SHELL is bash and it inherits a
1927 # broken ls alias from the environment. This has actually
1928 # happened. Such a system could not be considered "sane".
1929 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1930 alias in your environment" >&5
1931 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1932 alias in your environment" >&2;}
1933 { (exit 1); exit 1; }; }
1936 test "$2" = conftest.file
1942 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1943 Check your system clock" >&5
1944 echo "$as_me: error: newly created file is older than distributed files!
1945 Check your system clock" >&2;}
1946 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6; }
1950 test "$program_prefix" != NONE &&
1951 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1952 # Use a double $ so make ignores it.
1953 test "$program_suffix" != NONE &&
1954 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1955 # Double any \ or $. echo might interpret backslashes.
1956 # By default was `s,x,x', remove it if useless.
1957 cat <<\_ACEOF >conftest.sed
1958 s/[\\$]/&&/g;s/;s,x,x,$//
1960 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1963 # expand $ac_aux_dir to an absolute path
1964 am_aux_dir=`cd $ac_aux_dir && pwd`
1966 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1967 # Use eval to expand $SHELL
1968 if eval "$MISSING --run true"; then
1969 am_missing_run="$MISSING --run "
1972 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1973 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1976 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1977 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1978 if test -z "$MKDIR_P"; then
1979 if test "${ac_cv_path_mkdir+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1986 test -z "$as_dir" && as_dir=.
1987 for ac_prog in mkdir gmkdir; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1990 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1991 'mkdir (GNU coreutils) '* | \
1992 'mkdir (coreutils) '* | \
1993 'mkdir (fileutils) '4.1*)
1994 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2004 if test "${ac_cv_path_mkdir+set}" = set; then
2005 MKDIR_P="$ac_cv_path_mkdir -p"
2007 # As a last resort, use the slow shell script. Don't cache a
2008 # value for MKDIR_P within a source directory, because that will
2009 # break other packages using the cache if that directory is
2010 # removed, or if the value is a relative name.
2011 test -d ./--version && rmdir ./--version
2012 MKDIR_P="$ac_install_sh -d"
2015 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2016 echo "${ECHO_T}$MKDIR_P" >&6; }
2020 [\\/$]* | ?:[\\/]*) ;;
2021 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2024 for ac_prog in gawk mawk nawk awk
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_AWK+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$AWK"; then
2034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_AWK="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$AWK"; then
2055 { echo "$as_me:$LINENO: result: $AWK" >&5
2056 echo "${ECHO_T}$AWK" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$AWK" && break
2066 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2067 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2068 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2069 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 cat >conftest.make <<\_ACEOF
2075 @echo '@@@%%%=$(MAKE)=@@@%%%'
2077 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2080 eval ac_cv_prog_make_${ac_make}_set=yes;;
2082 eval ac_cv_prog_make_${ac_make}_set=no;;
2086 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2091 { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2093 SET_MAKE="MAKE=${MAKE-make}"
2096 rm -rf .tst 2>/dev/null
2097 mkdir .tst 2>/dev/null
2098 if test -d .tst; then
2103 rmdir .tst 2>/dev/null
2105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2107 # is not polluted with repeated "-I."
2108 am__isrc=' -I$(srcdir)'
2109 # test to see if srcdir already configured
2110 if test -f $srcdir/config.status; then
2111 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2112 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2113 { (exit 1); exit 1; }; }
2117 # test whether we have cygpath
2118 if test -z "$CYGPATH_W"; then
2119 if (cygpath --version) >/dev/null 2>/dev/null; then
2120 CYGPATH_W='cygpath -w'
2127 # Define the identity of the package.
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE "$PACKAGE"
2137 cat >>confdefs.h <<_ACEOF
2138 #define VERSION "$VERSION"
2141 # Some tools Automake needs.
2143 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2146 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2149 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2152 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2155 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2157 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2159 # Installed binaries are usually stripped using `strip' when the user
2160 # run `make install-strip'. However `strip' might not be the right
2161 # tool to use in cross-compilation environments, therefore Automake
2162 # will honor the `STRIP' environment variable to overrule this program.
2163 if test "$cross_compiling" != no; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}strip; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_STRIP+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$STRIP"; then
2173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 STRIP=$ac_cv_prog_STRIP
2193 if test -n "$STRIP"; then
2194 { echo "$as_me:$LINENO: result: $STRIP" >&5
2195 echo "${ECHO_T}$STRIP" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2203 if test -z "$ac_cv_prog_STRIP"; then
2205 # Extract the first word of "strip", so it can be a program name with args.
2206 set dummy strip; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$ac_ct_STRIP"; then
2213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_ac_ct_STRIP="strip"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2233 if test -n "$ac_ct_STRIP"; then
2234 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2235 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2241 if test "x$ac_ct_STRIP" = x; then
2244 case $cross_compiling:$ac_tool_warned in
2246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet. If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&5
2249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2250 whose name does not start with the host triplet. If you think this
2251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2252 ac_tool_warned=yes ;;
2257 STRIP="$ac_cv_prog_STRIP"
2261 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2263 # We need awk for the "check" target. The system "awk" is bad on
2265 # Always define AMTAR for backward compatibility.
2267 AMTAR=${AMTAR-"${am_missing_run}tar"}
2269 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2276 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
2277 # the configure and makefiles. Without it users doing things that
2278 # change the timestamps on the code, like checking it into a cvs
2279 # tree, could trigger a rebuild of the infrastructure files which
2280 # might fail if they don't have the correct tools.
2281 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2282 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2283 # Check whether --enable-maintainer-mode was given.
2284 if test "${enable_maintainer_mode+set}" = set; then
2285 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2287 USE_MAINTAINER_MODE=no
2290 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2291 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2292 if test $USE_MAINTAINER_MODE = yes; then
2293 MAINTAINER_MODE_TRUE=
2294 MAINTAINER_MODE_FALSE='#'
2296 MAINTAINER_MODE_TRUE='#'
2297 MAINTAINER_MODE_FALSE=
2300 MAINT=$MAINTAINER_MODE_TRUE
2304 # We want to turn on warnings if we are using gcc and the user did
2305 # not specify CFLAGS. The autoconf check for the C compiler sets the
2306 # CFLAGS if gcc is used, so we will save it before we run that check.
2307 SAVE_CFLAGS="$CFLAGS"
2309 # Now find our C compiler.
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2354 if test -z "$ac_cv_prog_CC"; then
2356 # Extract the first word of "gcc", so it can be a program name with args.
2357 set dummy gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$ac_ct_CC"; then
2364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_ac_ct_CC="gcc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384 if test -n "$ac_ct_CC"; then
2385 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2386 echo "${ECHO_T}$ac_ct_CC" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2392 if test "x$ac_ct_CC" = x; then
2395 case $cross_compiling:$ac_tool_warned in
2397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2398 whose name does not start with the host triplet. If you think this
2399 configuration is useful to you, please write to autoconf@gnu.org." >&5
2400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet. If you think this
2402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2403 ac_tool_warned=yes ;;
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}cc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}cc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2445 { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2452 if test -z "$CC"; then
2453 # Extract the first word of "cc", so it can be a program name with args.
2454 set dummy cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2472 ac_prog_rejected=yes
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test $ac_prog_rejected = yes; then
2484 # We found a bogon in the path, so make sure we never use it.
2485 set dummy $ac_cv_prog_CC
2487 if test $# != 0; then
2488 # We chose a different compiler from the bogus one.
2489 # However, it has the same basename, so the bogon will be chosen
2490 # first if we set CC to just the basename; use the full file name.
2492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498 if test -n "$CC"; then
2499 { echo "$as_me:$LINENO: result: $CC" >&5
2500 echo "${ECHO_T}$CC" >&6; }
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2508 if test -z "$CC"; then
2509 if test -n "$ac_tool_prefix"; then
2510 for ac_prog in cl.exe
2512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CC"; then
2541 { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2549 test -n "$CC" && break
2552 if test -z "$CC"; then
2554 for ac_prog in cl.exe
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$ac_ct_CC"; then
2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_CC="$ac_prog"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586 echo "${ECHO_T}$ac_ct_CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2593 test -n "$ac_ct_CC" && break
2596 if test "x$ac_ct_CC" = x; then
2599 case $cross_compiling:$ac_tool_warned in
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet. If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2622 # Provide some information about the compiler.
2623 echo "$as_me:$LINENO: checking for C compiler version" >&5
2624 ac_compiler=`set X $ac_compile; echo $2`
2625 { (ac_try="$ac_compiler --version >&5"
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_compiler --version >&5") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }
2635 { (ac_try="$ac_compiler -v >&5"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compiler -v >&5") 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }
2645 { (ac_try="$ac_compiler -V >&5"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compiler -V >&5") 2>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2671 ac_clean_files_save=$ac_clean_files
2672 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2673 # Try to create an executable without -o first, disregard a.out.
2674 # It will help us diagnose broken compilers, and finding out an intuition
2676 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2677 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2678 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2680 # List of possible output files, starting from the most likely.
2681 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2682 # only as a last resort. b.out is created by i960 compilers.
2683 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2685 # The IRIX 6 linker writes into existing files which may not be
2686 # executable, retaining their permissions. Remove them first so a
2687 # subsequent execution test works.
2689 for ac_file in $ac_files
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2693 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2698 if { (ac_try="$ac_link_default"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_link_default") 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; then
2708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2709 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2710 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2711 # so that the user can short-circuit this test for compilers unknown to
2713 for ac_file in $ac_files ''
2715 test -f "$ac_file" || continue
2717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2720 # We found the default executable, but exeext='' is most
2724 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2726 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2728 # We set ac_cv_exeext here because the later test for it is not
2729 # safe: cross compilers may not add the suffix if given an `-o'
2730 # argument, so we may need to know it at that point already.
2731 # Even if this section looks crufty: it has the advantage of
2738 test "$ac_cv_exeext" = no && ac_cv_exeext=
2744 { echo "$as_me:$LINENO: result: $ac_file" >&5
2745 echo "${ECHO_T}$ac_file" >&6; }
2746 if test -z "$ac_file"; then
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2751 See \`config.log' for more details." >&5
2752 echo "$as_me: error: C compiler cannot create executables
2753 See \`config.log' for more details." >&2;}
2754 { (exit 77); exit 77; }; }
2757 ac_exeext=$ac_cv_exeext
2759 # Check that the compiler produces executables we can run. If not, either
2760 # the compiler is broken, or we cross compile.
2761 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2762 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2763 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2764 # If not cross compiling, check that we can run a simple program.
2765 if test "$cross_compiling" != yes; then
2766 if { ac_try='./$ac_file'
2767 { (case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_try") 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2778 if test "$cross_compiling" = maybe; then
2781 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2782 If you meant to cross compile, use \`--host'.
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot run C compiled programs.
2785 If you meant to cross compile, use \`--host'.
2786 See \`config.log' for more details." >&2;}
2787 { (exit 1); exit 1; }; }
2791 { echo "$as_me:$LINENO: result: yes" >&5
2792 echo "${ECHO_T}yes" >&6; }
2794 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2795 ac_clean_files=$ac_clean_files_save
2796 # Check that the compiler produces executables we can run. If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2799 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2800 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2801 echo "${ECHO_T}$cross_compiling" >&6; }
2803 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2804 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2805 if { (ac_try="$ac_link"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link") 2>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2816 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2817 # work properly (i.e., refer to `conftest.exe'), while it won't with
2819 for ac_file in conftest.exe conftest conftest.*; do
2820 test -f "$ac_file" || continue
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2829 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2832 See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2836 rm -f conftest$ac_cv_exeext
2837 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2838 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2840 rm -f conftest.$ac_ext
2841 EXEEXT=$ac_cv_exeext
2843 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2844 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2845 if test "${ac_cv_objext+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2863 rm -f conftest.o conftest.obj
2864 if { (ac_try="$ac_compile"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compile") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 for ac_file in conftest.o conftest.obj conftest.*; do
2875 test -f "$ac_file" || continue;
2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2889 See \`config.log' for more details." >&2;}
2890 { (exit 1); exit 1; }; }
2893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2895 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2896 echo "${ECHO_T}$ac_cv_objext" >&6; }
2897 OBJEXT=$ac_cv_objext
2899 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2922 rm -f conftest.$ac_objext
2923 if { (ac_try="$ac_compile"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compile") 2>conftest.er1
2931 grep -v '^ *+' conftest.er1 >conftest.err
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } && {
2936 test -z "$ac_c_werror_flag" ||
2937 test ! -s conftest.err
2938 } && test -s conftest.$ac_objext; then
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2951 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2953 GCC=`test $ac_compiler_gnu = yes && echo yes`
2954 ac_test_CFLAGS=${CFLAGS+set}
2955 ac_save_CFLAGS=$CFLAGS
2956 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2958 if test "${ac_cv_prog_cc_g+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 ac_save_c_werror_flag=$ac_c_werror_flag
2962 ac_c_werror_flag=yes
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.$ac_objext; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 ac_c_werror_flag=$ac_save_c_werror_flag
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest.$ac_objext; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_c_werror_flag=$ac_save_c_werror_flag
3091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3093 if test "$ac_test_CFLAGS" = set; then
3094 CFLAGS=$ac_save_CFLAGS
3095 elif test $ac_cv_prog_cc_g = yes; then
3096 if test "$GCC" = yes; then
3102 if test "$GCC" = yes; then
3108 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3109 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_cc_c89+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 ac_cv_prog_cc_c89=no
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3123 #include <sys/types.h>
3124 #include <sys/stat.h>
3125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3126 struct buf { int x; };
3127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3128 static char *e (p, i)
3134 static char *f (char * (*g) (char **, int), char **p, ...)
3139 s = g (p, va_arg (v,int));
3144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3145 function prototypes and stuff, but not '\xHH' hex character constants.
3146 These don't provoke an error unfortunately, instead are silently treated
3147 as 'x'. The following induces an error, until -std is added to get
3148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3149 array size at least. It's necessary to write '\x00'==0 to get something
3150 that's true only with -std. */
3151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3154 inside strings and character constants. */
3156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3158 int test (int i, double x);
3159 struct s1 {int (*f) (int a);};
3160 struct s2 {int (*f) (double a);};
3161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3175 CC="$ac_save_CC $ac_arg"
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_cv_prog_cc_c89=$ac_arg
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext
3202 test "x$ac_cv_prog_cc_c89" != "xno" && break
3204 rm -f conftest.$ac_ext
3209 case "x$ac_cv_prog_cc_c89" in
3211 { echo "$as_me:$LINENO: result: none needed" >&5
3212 echo "${ECHO_T}none needed" >&6; } ;;
3214 { echo "$as_me:$LINENO: result: unsupported" >&5
3215 echo "${ECHO_T}unsupported" >&6; } ;;
3217 CC="$CC $ac_cv_prog_cc_c89"
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 DEPDIR="${am__leading_dot}deps"
3230 ac_config_commands="$ac_config_commands depfiles"
3233 am_make=${MAKE-make}
3234 cat > confinc << 'END'
3239 # If we don't find an include directive, just comment out the code.
3240 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3241 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3245 # First try GNU make style include.
3246 echo "include confinc" > confmf
3247 # We grep out `Entering directory' and `Leaving directory'
3248 # messages which can occur if `w' ends up in MAKEFLAGS.
3249 # In particular we don't look at `^make:' because GNU make might
3250 # be invoked under some other name (usually "gmake"), in which
3251 # case it prints its new name instead of `make'.
3252 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3257 # Now try BSD make style include.
3258 if test "$am__include" = "#"; then
3259 echo '.include "confinc"' > confmf
3260 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3261 am__include=.include
3268 { echo "$as_me:$LINENO: result: $_am_result" >&5
3269 echo "${ECHO_T}$_am_result" >&6; }
3270 rm -f confinc confmf
3272 # Check whether --enable-dependency-tracking was given.
3273 if test "${enable_dependency_tracking+set}" = set; then
3274 enableval=$enable_dependency_tracking;
3277 if test "x$enable_dependency_tracking" != xno; then
3278 am_depcomp="$ac_aux_dir/depcomp"
3281 if test "x$enable_dependency_tracking" != xno; then
3291 depcc="$CC" am_compiler_list=
3293 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3294 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3295 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3299 # We make a subdir and do the tests there. Otherwise we can end up
3300 # making bogus files that we don't know about and never remove. For
3301 # instance it was reported that on HP-UX the gcc test will end up
3302 # making a dummy file named `D' -- because `-MD' means `put the output
3305 # Copy depcomp to subdir because otherwise we won't find it if we're
3306 # using a relative directory.
3307 cp "$am_depcomp" conftest.dir
3309 # We will build objects and dependencies in a subdirectory because
3310 # it helps to detect inapplicable dependency modes. For instance
3311 # both Tru64's cc and ICC support -MD to output dependencies as a
3312 # side effect of compilation, but ICC will put the dependencies in
3313 # the current directory while Tru64 will put them in the object
3317 am_cv_CC_dependencies_compiler_type=none
3318 if test "$am_compiler_list" = ""; then
3319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3321 for depmode in $am_compiler_list; do
3322 # Setup a source with many dependencies, because some compilers
3323 # like to wrap large dependency lists on column 80 (with \), and
3324 # we should not choose a depcomp mode which is confused by this.
3326 # We need to recreate these files for each test, as the compiler may
3327 # overwrite some of them when testing with obscure command lines.
3328 # This happens at least with the AIX C compiler.
3330 for i in 1 2 3 4 5 6; do
3331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3333 # Solaris 8's {/usr,}/bin/sh.
3334 touch sub/conftst$i.h
3336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3340 # after this tag, mechanisms are not by side-effect, so they'll
3341 # only be used when explicitly requested
3342 if test "x$enable_dependency_tracking" = xyes; then
3350 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3351 # mode. It turns out that the SunPro C++ compiler does not properly
3352 # handle `-M -o', and we need to detect this.
3353 if depmode=$depmode \
3354 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3356 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3357 >/dev/null 2>conftest.err &&
3358 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3359 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3360 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3361 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3362 # icc doesn't choke on unknown options, it will just issue warnings
3363 # or remarks (even with -Werror). So we grep stderr for any message
3364 # that says an option was ignored or not supported.
3365 # When given -MP, icc 7.0 and 7.1 complain thusly:
3366 # icc: Command line warning: ignoring option '-M'; no argument required
3367 # The diagnosis changed in icc 8.0:
3368 # icc: Command line remark: option '-MP' not supported
3369 if (grep 'ignoring option' conftest.err ||
3370 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3371 am_cv_CC_dependencies_compiler_type=$depmode
3380 am_cv_CC_dependencies_compiler_type=none
3384 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3385 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3386 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3389 test "x$enable_dependency_tracking" != xno \
3390 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3392 am__fastdepCC_FALSE='#'
3394 am__fastdepCC_TRUE='#'
3395 am__fastdepCC_FALSE=
3400 # Suppress warnings about --datarootdir
3403 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
3404 # user did not specify any flags. Add warnings in this case.
3405 if test "$GCC" = "yes"; then
3406 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
3407 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
3411 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
3412 # parts of the IPv6 Advanced Socket API as a result. This is stupid
3413 # as it breaks how the two halves (Basic and Advanced) of the IPv6
3414 # Socket API were designed to be used but we have to live with it.
3415 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
3417 cat >>confdefs.h <<\_ACEOF
3418 #define _GNU_SOURCE 1
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3429 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3430 # On Suns, sometimes $CPP names a directory.
3431 if test -n "$CPP" && test -d "$CPP"; then
3434 if test -z "$CPP"; then
3435 if test "${ac_cv_prog_CPP+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 # Double quotes because CPP needs to be expanded
3439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3442 for ac_c_preproc_warn_flag in '' yes
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat >conftest.$ac_ext <<_ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3457 # include <limits.h>
3459 # include <assert.h>
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null && {
3476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3477 test ! -s conftest.err
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Broken: fails on valid input.
3488 rm -f conftest.err conftest.$ac_ext
3490 # OK, works on sane cases. Now check whether nonexistent headers
3491 # can be detected and how.
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 #include <ac_nonexistent.h>
3500 if { (ac_try="$ac_cpp conftest.$ac_ext"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev/null && {
3513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3514 test ! -s conftest.err
3516 # Broken: success on invalid input.
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 # Passes both tests.
3527 rm -f conftest.err conftest.$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3544 { echo "$as_me:$LINENO: result: $CPP" >&5
3545 echo "${ECHO_T}$CPP" >&6; }
3547 for ac_c_preproc_warn_flag in '' yes
3549 # Use a header file that comes with gcc, so configuring glibc
3550 # with a fresh cross-compiler works.
3551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 # <limits.h> exists even on freestanding compilers.
3553 # On the NeXT, cc -E runs the code through the compiler's parser,
3554 # not just through cpp. "Syntax error" is here to catch this case.
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3562 # include <limits.h>
3564 # include <assert.h>
3568 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev/null && {
3581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Broken: fails on valid input.
3593 rm -f conftest.err conftest.$ac_ext
3595 # OK, works on sane cases. Now check whether nonexistent headers
3596 # can be detected and how.
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <ac_nonexistent.h>
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null && {
3618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3621 # Broken: success on invalid input.
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 # Passes both tests.
3632 rm -f conftest.err conftest.$ac_ext
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.$ac_ext
3637 if $ac_preproc_ok; then
3640 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&5
3642 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3643 See \`config.log' for more details." >&2;}
3644 { (exit 1); exit 1; }; }
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3655 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_GREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 # Extract the first word of "grep ggrep" to use in msg output
3660 if test -z "$GREP"; then
3661 set dummy grep ggrep; ac_prog_name=$2
3662 if test "${ac_cv_path_GREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 ac_path_GREP_found=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 test -z "$as_dir" && as_dir=.
3672 for ac_prog in grep ggrep; do
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3675 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3676 # Check for GNU ac_path_GREP and select it if it is found.
3677 # Check for GNU $ac_path_GREP
3678 case `"$ac_path_GREP" --version 2>&1` in
3680 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3683 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 echo 'GREP' >> "conftest.nl"
3690 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3692 ac_count=`expr $ac_count + 1`
3693 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_GREP="$ac_path_GREP"
3696 ac_path_GREP_max=$ac_count
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 $ac_path_GREP_found && break 3
3715 GREP="$ac_cv_path_GREP"
3716 if test -z "$GREP"; then
3717 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3718 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3719 { (exit 1); exit 1; }; }
3723 ac_cv_path_GREP=$GREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3730 GREP="$ac_cv_path_GREP"
3733 { echo "$as_me:$LINENO: checking for egrep" >&5
3734 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3739 then ac_cv_path_EGREP="$GREP -E"
3741 # Extract the first word of "egrep" to use in msg output
3742 if test -z "$EGREP"; then
3743 set dummy egrep; ac_prog_name=$2
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_path_EGREP_found=false
3748 # Loop through the user's path and test for each of PROGNAME-LIST
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 test -z "$as_dir" && as_dir=.
3754 for ac_prog in egrep; do
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3757 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3758 # Check for GNU ac_path_EGREP and select it if it is found.
3759 # Check for GNU $ac_path_EGREP
3760 case `"$ac_path_EGREP" --version 2>&1` in
3762 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3765 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768 cat "conftest.in" "conftest.in" >"conftest.tmp"
3769 mv "conftest.tmp" "conftest.in"
3770 cp "conftest.in" "conftest.nl"
3771 echo 'EGREP' >> "conftest.nl"
3772 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3774 ac_count=`expr $ac_count + 1`
3775 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3776 # Best one so far, save it but keep looking for a better one
3777 ac_cv_path_EGREP="$ac_path_EGREP"
3778 ac_path_EGREP_max=$ac_count
3780 # 10*(2^10) chars as input seems more than enough
3781 test $ac_count -gt 10 && break
3783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787 $ac_path_EGREP_found && break 3
3797 EGREP="$ac_cv_path_EGREP"
3798 if test -z "$EGREP"; then
3799 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3800 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3801 { (exit 1); exit 1; }; }
3805 ac_cv_path_EGREP=$EGREP
3811 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3812 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3813 EGREP="$ac_cv_path_EGREP"
3817 { echo "$as_me:$LINENO: checking for AIX" >&5
3818 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831 $EGREP "yes" >/dev/null 2>&1; then
3832 { echo "$as_me:$LINENO: result: yes" >&5
3833 echo "${ECHO_T}yes" >&6; }
3834 cat >>confdefs.h <<\_ACEOF
3835 #define _ALL_SOURCE 1
3839 { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3845 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3847 if test "${ac_cv_header_stdc+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_compile") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1 >conftest.err
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } && {
3883 test -z "$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3885 } && test -s conftest.$ac_objext; then
3886 ac_cv_header_stdc=yes
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 ac_cv_header_stdc=no
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 if test $ac_cv_header_stdc = yes; then
3897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "memchr" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929 $EGREP "free" >/dev/null 2>&1; then
3932 ac_cv_header_stdc=no
3938 if test $ac_cv_header_stdc = yes; then
3939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3940 if test "$cross_compiling" = yes; then
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3951 #if ((' ' & 0x0FF) == 0x020)
3952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955 # define ISLOWER(c) \
3956 (('a' <= (c) && (c) <= 'i') \
3957 || ('j' <= (c) && (c) <= 'r') \
3958 || ('s' <= (c) && (c) <= 'z'))
3959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3967 for (i = 0; i < 256; i++)
3968 if (XOR (islower (i), ISLOWER (i))
3969 || toupper (i) != TOUPPER (i))
3974 rm -f conftest$ac_exeext
3975 if { (ac_try="$ac_link"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_link") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_cv_header_stdc=no
4003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4009 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4010 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4013 cat >>confdefs.h <<\_ACEOF
4014 #define STDC_HEADERS 1
4019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4030 inttypes.h stdint.h unistd.h
4032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 cat >conftest.$ac_ext <<_ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 $ac_includes_default
4046 #include <$ac_header>
4048 rm -f conftest.$ac_objext
4049 if { (ac_try="$ac_compile"
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_compile") 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } && {
4062 test -z "$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4064 } && test -s conftest.$ac_objext; then
4065 eval "$as_ac_Header=yes"
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 eval "$as_ac_Header=no"
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_res=`eval echo '${'$as_ac_Header'}'`
4076 { echo "$as_me:$LINENO: result: $ac_res" >&5
4077 echo "${ECHO_T}$ac_res" >&6; }
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079 cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4088 if test "${ac_cv_header_minix_config_h+set}" = set; then
4089 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4090 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4091 if test "${ac_cv_header_minix_config_h+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4095 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4097 # Is the header compilable?
4098 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4099 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4100 cat >conftest.$ac_ext <<_ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 $ac_includes_default
4107 #include <minix/config.h>
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
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_header_compiler=yes
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 ac_header_compiler=no
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4136 echo "${ECHO_T}$ac_header_compiler" >&6; }
4138 # Is the header present?
4139 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4140 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <minix/config.h>
4149 if { (ac_try="$ac_cpp conftest.$ac_ext"
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null && {
4162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4165 ac_header_preproc=yes
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4170 ac_header_preproc=no
4173 rm -f conftest.err conftest.$ac_ext
4174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4175 echo "${ECHO_T}$ac_header_preproc" >&6; }
4177 # So? What about this header?
4178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4180 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4181 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4183 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4184 ac_header_preproc=yes
4187 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4188 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4190 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4192 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4194 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4195 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4196 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4198 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4200 ## --------------------------------- ##
4201 ## Report this to dhcp-users@isc.org ##
4202 ## --------------------------------- ##
4204 ) | sed "s/^/$as_me: WARNING: /" >&2
4207 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4208 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4209 if test "${ac_cv_header_minix_config_h+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 ac_cv_header_minix_config_h=$ac_header_preproc
4214 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4215 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4218 if test $ac_cv_header_minix_config_h = yes; then
4225 if test "$MINIX" = yes; then
4227 cat >>confdefs.h <<\_ACEOF
4228 #define _POSIX_SOURCE 1
4232 cat >>confdefs.h <<\_ACEOF
4233 #define _POSIX_1_SOURCE 2
4237 cat >>confdefs.h <<\_ACEOF
4253 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4254 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4255 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4265 # define __EXTENSIONS__ 1
4266 $ac_includes_default
4275 rm -f conftest.$ac_objext
4276 if { (ac_try="$ac_compile"
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_compile") 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
4292 ac_cv_safe_to_define___extensions__=yes
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_safe_to_define___extensions__=no
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4303 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4304 test $ac_cv_safe_to_define___extensions__ = yes &&
4305 cat >>confdefs.h <<\_ACEOF
4306 #define __EXTENSIONS__ 1
4309 cat >>confdefs.h <<\_ACEOF
4310 #define _POSIX_PTHREAD_SEMANTICS 1
4313 cat >>confdefs.h <<\_ACEOF
4314 #define _TANDEM_SOURCE 1
4319 if test -n "$ac_tool_prefix"; then
4320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_prog_RANLIB+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 if test -n "$RANLIB"; then
4328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 RANLIB=$ac_cv_prog_RANLIB
4348 if test -n "$RANLIB"; then
4349 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4350 echo "${ECHO_T}$RANLIB" >&6; }
4352 { echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6; }
4358 if test -z "$ac_cv_prog_RANLIB"; then
4359 ac_ct_RANLIB=$RANLIB
4360 # Extract the first word of "ranlib", so it can be a program name with args.
4361 set dummy ranlib; ac_word=$2
4362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4364 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 if test -n "$ac_ct_RANLIB"; then
4368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377 ac_cv_prog_ac_ct_RANLIB="ranlib"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4388 if test -n "$ac_ct_RANLIB"; then
4389 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4390 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4392 { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4396 if test "x$ac_ct_RANLIB" = x; then
4399 case $cross_compiling:$ac_tool_warned in
4401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4402 whose name does not start with the host triplet. If you think this
4403 configuration is useful to you, please write to autoconf@gnu.org." >&5
4404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4405 whose name does not start with the host triplet. If you think this
4406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4407 ac_tool_warned=yes ;;
4409 RANLIB=$ac_ct_RANLIB
4412 RANLIB="$ac_cv_prog_RANLIB"
4415 ac_config_headers="$ac_config_headers includes/config.h"
4418 # we sometimes need to know byte order for building packets
4419 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4420 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4421 if test "${ac_cv_c_bigendian+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 # See if sys/param.h defines the BYTE_ORDER macro.
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4437 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4438 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_compile") 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } && {
4460 test -z "$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 } && test -s conftest.$ac_objext; then
4463 # It does; now see whether it defined to BIG_ENDIAN or not.
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <sys/types.h>
4471 #include <sys/param.h>
4476 #if BYTE_ORDER != BIG_ENDIAN
4484 rm -f conftest.$ac_objext
4485 if { (ac_try="$ac_compile"
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest.$ac_objext; then
4501 ac_cv_c_bigendian=yes
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_cv_c_bigendian=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 # It does not; compile a test program.
4515 if test "$cross_compiling" = yes; then
4516 # try to guess the endianness by grepping values into an object file
4517 ac_cv_c_bigendian=unknown
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4533 _ascii (); _ebcdic ();
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_compile") 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && {
4552 test -z "$ac_c_werror_flag" ||
4553 test ! -s conftest.err
4554 } && test -s conftest.$ac_objext; then
4555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4556 ac_cv_c_bigendian=yes
4558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4559 if test "$ac_cv_c_bigendian" = unknown; then
4560 ac_cv_c_bigendian=no
4562 # finding both strings is unlikely to happen, but who knows?
4563 ac_cv_c_bigendian=unknown
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 $ac_includes_default
4586 /* Are we little or big endian? From Harbison&Steele. */
4590 char c[sizeof (long int)];
4593 return u.c[sizeof (long int) - 1] == 1;
4599 rm -f conftest$ac_exeext
4600 if { (ac_try="$ac_link"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_link") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4610 { (case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_try") 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_c_bigendian=no
4621 echo "$as_me: program exited with status $ac_status" >&5
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_cv_c_bigendian=yes
4628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4637 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4638 case $ac_cv_c_bigendian in
4640 byte_order=BIG_ENDIAN
4643 byte_order=LITTLE_ENDIAN
4646 { { echo "$as_me:$LINENO: error: unknown endianness
4647 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4648 echo "$as_me: error: unknown endianness
4649 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4650 { (exit 1); exit 1; }; } ;;
4654 cat >>confdefs.h <<_ACEOF
4655 #define DHCP_BYTE_ORDER $byte_order
4659 # Optional compile-time DEBUGging.
4660 # Check whether --enable-debug was given.
4661 if test "${enable_debug+set}" = set; then
4662 enableval=$enable_debug;
4665 # This is very much off by default.
4666 if test "$enable_debug" = "yes" ; then
4668 cat >>confdefs.h <<\_ACEOF
4672 # Just override CFLAGS to totally to remove optimization.
4675 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
4676 # but I don't want to pollute the --help space.
4678 #/* #define DEBUG_TOKENS */
4679 #/* #define DEBUG_PACKET */
4680 #/* #define DEBUG_EXPRESSIONS */
4681 #/* #define DEBUG_FIND_LEASE */
4682 #/* #define DEBUG_EXPRESSION_PARSE */
4683 #/* #define DEBUG_CLASS_MATCHING */
4684 #/* #define DEBUG_MEMORY_LEAKAGE */
4685 #/* #define DEBUG_MALLOC_POOL */
4686 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
4687 #/* #define DEBUG_RC_HISTORY */
4688 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
4689 #/* #define RC_HISTORY_MAX 10240 */
4690 #/* #define POINTER_DEBUG */
4691 #/* #define DEBUG_FAILOVER_MESSAGES */
4692 #/* #define DEBUG_FAILOVER_TIMING */
4693 #/* #define DEBUG_DUMP_ALL_LEASES */
4695 # Failover optional compile-time feature.
4696 # Check whether --enable-failover was given.
4697 if test "${enable_failover+set}" = set; then
4698 enableval=$enable_failover;
4701 # Failover is on by default, so define if it is not explicitly disabled.
4702 if test "$enable_failover" != "no"; then
4704 cat >>confdefs.h <<\_ACEOF
4705 #define FAILOVER_PROTOCOL 1
4710 # execute() support.
4711 # Check whether --enable-execute was given.
4712 if test "${enable_execute+set}" = set; then
4713 enableval=$enable_execute;
4716 # execute() is on by default, so define if it is not explicitly disabled.
4717 if test "$enable_execute" != "no" ; then
4719 cat >>confdefs.h <<\_ACEOF
4720 #define ENABLE_EXECUTE 1
4725 # Server tracing support.
4726 # Check whether --enable-tracing was given.
4727 if test "${enable_tracing+set}" = set; then
4728 enableval=$enable_tracing;
4731 # tracing is on by default, so define if it is not explicitly disabled.
4732 if test "$enable_tracing" != "no" ; then
4734 cat >>confdefs.h <<\_ACEOF
4740 # Delayed-ack feature support (experimental).
4741 # Check whether --enable-delayed_ack was given.
4742 if test "${enable_delayed_ack+set}" = set; then
4743 enableval=$enable_delayed_ack;
4746 if test "$enable_delayed_ack" = "yes"; then
4748 cat >>confdefs.h <<\_ACEOF
4749 #define DELAYED_ACK 1
4754 # DHCPv6 optional compile-time feature.
4755 # Check whether --enable-dhcpv6 was given.
4756 if test "${enable_dhcpv6+set}" = set; then
4757 enableval=$enable_dhcpv6;
4760 # DHCPv6 is on by default, so define if it is not explicitly disabled.
4761 if test "$enable_dhcpv6" != "no"; then
4763 cat >>confdefs.h <<\_ACEOF
4769 # PARANOIA is off by default (until we can test it with all features)
4770 # Check whether --enable-paranoia was given.
4771 if test "${enable_paranoia+set}" = set; then
4772 enableval=$enable_paranoia;
4775 # Check whether --enable-early_chroot was given.
4776 if test "${enable_early_chroot+set}" = set; then
4777 enableval=$enable_early_chroot;
4780 # If someone enables early chroot, but does not enable paranoia, do so for
4782 if test "$enable_paranoia" != "yes" && \
4783 test "$enable_early_chroot" = "yes" ; then
4784 enable_paranoia="yes"
4787 if test "$enable_paranoia" = "yes" ; then
4789 cat >>confdefs.h <<\_ACEOF
4794 if test "$enable_early_chroot" = "yes" ; then
4796 cat >>confdefs.h <<\_ACEOF
4797 #define EARLY_CHROOT 1
4802 # Check whether --enable-IPv4_PKTINFO was given.
4803 if test "${enable_IPv4_PKTINFO+set}" = set; then
4804 enableval=$enable_IPv4_PKTINFO;
4808 if test "$enable_ipv4_pktinfo" = "yes"; then
4810 cat >>confdefs.h <<\_ACEOF
4811 #define USE_V4_PKTINFO 1
4816 # Check whether --enable-USE_SOCKETS was given.
4817 if test "${enable_USE_SOCKETS+set}" = set; then
4818 enableval=$enable_USE_SOCKETS;
4822 if test "$enable_use_sockets" = "yes"; then
4824 cat >>confdefs.h <<\_ACEOF
4825 #define USE_SOCKETS 1
4831 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
4832 ### need to look there and potentially overwrite by default (but not if
4833 ### the user configures an alternate value). LOCALSTATEDIR is totally
4834 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
4835 ### they would be insane for suggesting it. We need to look in /var/for
4836 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
4839 if test "x$prefix" = xNONE; then
4840 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
4841 # Extract the first word of "dhcpd", so it can be a program name with args.
4842 set dummy dhcpd; ac_word=$2
4843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4845 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 case $ac_prefix_program in
4850 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 ac_prefix_program=$ac_cv_path_ac_prefix_program
4872 if test -n "$ac_prefix_program"; then
4873 { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
4874 echo "${ECHO_T}$ac_prefix_program" >&6; }
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4881 if test -n "$ac_prefix_program"; then
4882 prefix=`$as_dirname -- "$ac_prefix_program" ||
4883 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4884 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
4885 X"$ac_prefix_program" : 'X\(//\)$' \| \
4886 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
4887 echo X"$ac_prefix_program" |
4888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4905 prefix=`$as_dirname -- "$prefix" ||
4906 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4907 X"$prefix" : 'X\(//\)[^/]' \| \
4908 X"$prefix" : 'X\(//\)$' \| \
4909 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
4911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4932 # XXX - isn't there SOME WAY to default autoconf to /var instead of
4933 # /usr/local/var/no/one/has/this/please/stop/trying?
4934 case "$localstatedir" in
4940 # Allow specification of alternate state files
4942 # Check whether --with-srv-lease-file was given.
4943 if test "${with_srv_lease_file+set}" = set; then
4944 withval=$with_srv_lease_file;
4945 cat >>confdefs.h <<_ACEOF
4946 #define _PATH_DHCPD_DB "$withval"
4952 echo -n "checking for dhcpd.leases location..."
4953 if [ "x$with_srv_lease_file" = "x" ] ; then
4954 if [ -d "${localstatedir}/db" ] ; then
4955 with_srv_lease_file="${localstatedir}/db/dhcpd.leases"
4956 elif [ -d "${localstatedir}/state" ] ; then
4957 if [ -d "${localstatedir}/state/dhcp" ] ; then
4958 with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases"
4960 with_srv_lease_file="${localstatedir}/state/dhcpd.leases"
4962 elif [ -d "${localstatedir}/lib" ] ; then
4963 if [ -d "${localstatedir}/lib/dhcp" ] ; then
4964 with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases"
4966 with_srv_lease_file="${localstatedir}/lib/dhcpd.leases"
4968 elif [ -d "${localstatedir}/etc" ] ; then
4969 with_srv_lease_file="${localstatedir}/etc/dhcpd.leases"
4971 with_srv_lease_file="/etc/dhcpd.leases"
4974 echo "$with_srv_lease_file"
4977 # Check whether --with-srv6-lease-file was given.
4978 if test "${with_srv6_lease_file+set}" = set; then
4979 withval=$with_srv6_lease_file;
4980 cat >>confdefs.h <<_ACEOF
4981 #define _PATH_DHCPD6_DB "$withval"
4987 echo -n "checking for dhcpd6.leases location..."
4988 if [ "x$with_srv6_lease_file" = "x" ] ; then
4989 if [ -d "${localstatedir}/db" ] ; then
4990 with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases"
4991 elif [ -d "${localstatedir}/state" ] ; then
4992 if [ -d "${localstatedir}/state/dhcp" ] ; then
4993 with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases"
4995 with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases"
4997 elif [ -d "${localstatedir}/lib" ] ; then
4998 if [ -d "${localstatedir}/lib/dhcp" ] ; then
4999 with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases"
5001 with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases"
5003 elif [ -d "${localstatedir}/etc" ] ; then
5004 with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases"
5006 with_srv6_lease_file="/etc/dhcpd6.leases"
5009 echo "$with_srv6_lease_file"
5012 # Check whether --with-cli-lease-file was given.
5013 if test "${with_cli_lease_file+set}" = set; then
5014 withval=$with_cli_lease_file;
5015 cat >>confdefs.h <<_ACEOF
5016 #define _PATH_DHCLIENT_DB "$withval"
5022 echo -n "checking for dhclient.leases location..."
5023 if [ "x$with_cli_lease_file" = "x" ] ; then
5024 if [ -d "${localstatedir}/db" ] ; then
5025 with_cli_lease_file="${localstatedir}/db/dhclient.leases"
5026 elif [ -d "${localstatedir}/state" ] ; then
5027 if [ -d "${localstatedir}/state/dhcp" ] ; then
5028 with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases"
5030 with_cli_lease_file="${localstatedir}/state/dhclient.leases"
5032 elif [ -d "${localstatedir}/lib" ] ; then
5033 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5034 with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases"
5036 with_cli_lease_file="${localstatedir}/lib/dhclient.leases"
5038 elif [ -d "${localstatedir}/etc" ] ; then
5039 with_cli_lease_file="${localstatedir}/etc/dhclient.leases"
5041 with_cli_lease_file="/etc/dhclient.leases"
5044 echo "$with_cli_lease_file"
5047 # Check whether --with-cli6-lease-file was given.
5048 if test "${with_cli6_lease_file+set}" = set; then
5049 withval=$with_cli6_lease_file;
5050 cat >>confdefs.h <<_ACEOF
5051 #define _PATH_DHCLIENT6_DB "$withval"
5057 echo -n "checking for dhclient6.leases location..."
5058 if [ "x$with_cli6_lease_file" = "x" ] ; then
5059 if [ -d "${localstatedir}/db" ] ; then
5060 with_cli6_lease_file="${localstatedir}/db/dhclient6.leases"
5061 elif [ -d "${localstatedir}/state" ] ; then
5062 if [ -d "${localstatedir}/state/dhcp" ] ; then
5063 with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases"
5065 with_cli6_lease_file="${localstatedir}/state/dhclient6.leases"
5067 elif [ -d "${localstatedir}/lib" ] ; then
5068 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5069 with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases"
5071 with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases"
5073 elif [ -d "${localstatedir}/etc" ] ; then
5074 with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases"
5076 with_cli6_lease_file="/etc/dhclient6.leases"
5079 echo "$with_cli6_lease_file"
5082 # Check whether --with-srv-pid-file was given.
5083 if test "${with_srv_pid_file+set}" = set; then
5084 withval=$with_srv_pid_file;
5085 cat >>confdefs.h <<_ACEOF
5086 #define _PATH_DHCPD_PID "$withval"
5092 # Check whether --with-srv6-pid-file was given.
5093 if test "${with_srv6_pid_file+set}" = set; then
5094 withval=$with_srv6_pid_file;
5095 cat >>confdefs.h <<_ACEOF
5096 #define _PATH_DHCPD6_PID "$withval"
5102 # Check whether --with-cli-pid-file was given.
5103 if test "${with_cli_pid_file+set}" = set; then
5104 withval=$with_cli_pid_file;
5105 cat >>confdefs.h <<_ACEOF
5106 #define _PATH_DHCLIENT_PID "$withval"
5112 # Check whether --with-cli6-pid-file was given.
5113 if test "${with_cli6_pid_file+set}" = set; then
5114 withval=$with_cli6_pid_file;
5115 cat >>confdefs.h <<_ACEOF
5116 #define _PATH_DHCLIENT6_PID "$withval"
5122 # Check whether --with-relay-pid-file was given.
5123 if test "${with_relay_pid_file+set}" = set; then
5124 withval=$with_relay_pid_file;
5125 cat >>confdefs.h <<_ACEOF
5126 #define _PATH_DHCRELAY_PID "$withval"
5132 # Check whether --with-relay6-pid-file was given.
5133 if test "${with_relay6_pid_file+set}" = set; then
5134 withval=$with_relay6_pid_file;
5135 cat >>confdefs.h <<_ACEOF
5136 #define _PATH_DHCRELAY6_PID "$withval"
5142 # Check basic types.
5144 { echo "$as_me:$LINENO: checking for int8_t" >&5
5145 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5146 if test "${ac_cv_c_int8_t+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 for ac_type in 'int8_t' 'int' 'long int' \
5151 'long long int' 'short int' 'signed char'; do
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 $ac_includes_default
5162 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
5169 rm -f conftest.$ac_objext
5170 if { (ac_try="$ac_compile"
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compile") 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && {
5183 test -z "$ac_c_werror_flag" ||
5184 test ! -s conftest.err
5185 } && test -s conftest.$ac_objext; then
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 $ac_includes_default
5196 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
5197 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
5204 rm -f conftest.$ac_objext
5205 if { (ac_try="$ac_compile"
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_compile") 2>conftest.er1
5213 grep -v '^ *+' conftest.er1 >conftest.err
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && {
5218 test -z "$ac_c_werror_flag" ||
5219 test ! -s conftest.err
5220 } && test -s conftest.$ac_objext; then
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5227 int8_t) ac_cv_c_int8_t=yes ;;
5228 *) ac_cv_c_int8_t=$ac_type ;;
5233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 test "$ac_cv_c_int8_t" != no && break
5245 { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
5246 echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
5247 case $ac_cv_c_int8_t in #(
5251 cat >>confdefs.h <<_ACEOF
5252 #define int8_t $ac_cv_c_int8_t
5258 { echo "$as_me:$LINENO: checking for int16_t" >&5
5259 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
5260 if test "${ac_cv_c_int16_t+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 for ac_type in 'int16_t' 'int' 'long int' \
5265 'long long int' 'short int' 'signed char'; do
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 $ac_includes_default
5276 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compile") 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest.$ac_objext; then
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5310 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
5311 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5341 int16_t) ac_cv_c_int16_t=yes ;;
5342 *) ac_cv_c_int16_t=$ac_type ;;
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 test "$ac_cv_c_int16_t" != no && break
5359 { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
5360 echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
5361 case $ac_cv_c_int16_t in #(
5365 cat >>confdefs.h <<_ACEOF
5366 #define int16_t $ac_cv_c_int16_t
5372 { echo "$as_me:$LINENO: checking for int32_t" >&5
5373 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
5374 if test "${ac_cv_c_int32_t+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 for ac_type in 'int32_t' 'int' 'long int' \
5379 'long long int' 'short int' 'signed char'; do
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5390 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5424 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
5425 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5455 int32_t) ac_cv_c_int32_t=yes ;;
5456 *) ac_cv_c_int32_t=$ac_type ;;
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 test "$ac_cv_c_int32_t" != no && break
5473 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
5474 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
5475 case $ac_cv_c_int32_t in #(
5479 cat >>confdefs.h <<_ACEOF
5480 #define int32_t $ac_cv_c_int32_t
5486 { echo "$as_me:$LINENO: checking for int64_t" >&5
5487 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
5488 if test "${ac_cv_c_int64_t+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 for ac_type in 'int64_t' 'int' 'long int' \
5493 'long long int' 'short int' 'signed char'; do
5494 cat >conftest.$ac_ext <<_ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 $ac_includes_default
5504 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 $ac_includes_default
5538 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
5539 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
5546 rm -f conftest.$ac_objext
5547 if { (ac_try="$ac_compile"
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest.$ac_objext; then
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5569 int64_t) ac_cv_c_int64_t=yes ;;
5570 *) ac_cv_c_int64_t=$ac_type ;;
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 test "$ac_cv_c_int64_t" != no && break
5587 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
5588 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
5589 case $ac_cv_c_int64_t in #(
5593 cat >>confdefs.h <<_ACEOF
5594 #define int64_t $ac_cv_c_int64_t
5600 # Some systems need the u_intX_t types defined across.
5601 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
5602 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
5603 if test "${ac_cv_type_u_int8_t+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 $ac_includes_default
5613 typedef u_int8_t ac__type_new_;
5617 if ((ac__type_new_ *) 0)
5619 if (sizeof (ac__type_new_))
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_compile") 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && {
5639 test -z "$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 } && test -s conftest.$ac_objext; then
5642 ac_cv_type_u_int8_t=yes
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ac_cv_type_u_int8_t=no
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5653 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
5654 if test $ac_cv_type_u_int8_t = yes; then
5659 { echo "$as_me:$LINENO: checking for uint8_t" >&5
5660 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5661 if test "${ac_cv_c_uint8_t+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
5666 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5677 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
5684 rm -f conftest.$ac_objext
5685 if { (ac_try="$ac_compile"
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compile") 2>conftest.er1
5693 grep -v '^ *+' conftest.er1 >conftest.err
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } && {
5698 test -z "$ac_c_werror_flag" ||
5699 test ! -s conftest.err
5700 } && test -s conftest.$ac_objext; then
5702 uint8_t) ac_cv_c_uint8_t=yes ;;
5703 *) ac_cv_c_uint8_t=$ac_type ;;
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 test "$ac_cv_c_uint8_t" != no && break
5717 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
5718 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
5719 case $ac_cv_c_uint8_t in #(
5723 cat >>confdefs.h <<\_ACEOF
5728 cat >>confdefs.h <<_ACEOF
5729 #define uint8_t $ac_cv_c_uint8_t
5735 cat >>confdefs.h <<\_ACEOF
5736 #define u_int8_t uint8_t
5742 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
5743 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
5744 if test "${ac_cv_type_u_int16_t+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 $ac_includes_default
5754 typedef u_int16_t ac__type_new_;
5758 if ((ac__type_new_ *) 0)
5760 if (sizeof (ac__type_new_))
5766 rm -f conftest.$ac_objext
5767 if { (ac_try="$ac_compile"
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_compile") 2>conftest.er1
5775 grep -v '^ *+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && {
5780 test -z "$ac_c_werror_flag" ||
5781 test ! -s conftest.err
5782 } && test -s conftest.$ac_objext; then
5783 ac_cv_type_u_int16_t=yes
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 ac_cv_type_u_int16_t=no
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5794 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
5795 if test $ac_cv_type_u_int16_t = yes; then
5800 { echo "$as_me:$LINENO: checking for uint16_t" >&5
5801 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_uint16_t+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
5807 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 $ac_includes_default
5818 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
5825 rm -f conftest.$ac_objext
5826 if { (ac_try="$ac_compile"
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_compile") 2>conftest.er1
5834 grep -v '^ *+' conftest.er1 >conftest.err
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } && {
5839 test -z "$ac_c_werror_flag" ||
5840 test ! -s conftest.err
5841 } && test -s conftest.$ac_objext; then
5843 uint16_t) ac_cv_c_uint16_t=yes ;;
5844 *) ac_cv_c_uint16_t=$ac_type ;;
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 test "$ac_cv_c_uint16_t" != no && break
5858 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
5859 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
5860 case $ac_cv_c_uint16_t in #(
5865 cat >>confdefs.h <<_ACEOF
5866 #define uint16_t $ac_cv_c_uint16_t
5872 cat >>confdefs.h <<\_ACEOF
5873 #define u_int16_t uint16_t
5879 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
5880 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
5881 if test "${ac_cv_type_u_int32_t+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 $ac_includes_default
5891 typedef u_int32_t ac__type_new_;
5895 if ((ac__type_new_ *) 0)
5897 if (sizeof (ac__type_new_))
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
5920 ac_cv_type_u_int32_t=yes
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_cv_type_u_int32_t=no
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5931 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
5932 if test $ac_cv_type_u_int32_t = yes; then
5937 { echo "$as_me:$LINENO: checking for uint32_t" >&5
5938 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
5939 if test "${ac_cv_c_uint32_t+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
5944 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5955 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1 >conftest.err
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_c_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5980 uint32_t) ac_cv_c_uint32_t=yes ;;
5981 *) ac_cv_c_uint32_t=$ac_type ;;
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 test "$ac_cv_c_uint32_t" != no && break
5995 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
5996 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
5997 case $ac_cv_c_uint32_t in #(
6001 cat >>confdefs.h <<\_ACEOF
6006 cat >>confdefs.h <<_ACEOF
6007 #define uint32_t $ac_cv_c_uint32_t
6013 cat >>confdefs.h <<\_ACEOF
6014 #define u_int32_t uint32_t
6020 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
6021 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
6022 if test "${ac_cv_type_u_int64_t+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6032 typedef u_int64_t ac__type_new_;
6036 if ((ac__type_new_ *) 0)
6038 if (sizeof (ac__type_new_))
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6061 ac_cv_type_u_int64_t=yes
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_cv_type_u_int64_t=no
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6072 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
6073 if test $ac_cv_type_u_int64_t = yes; then
6078 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6079 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6080 if test "${ac_cv_c_uint64_t+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
6085 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 $ac_includes_default
6096 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6121 uint64_t) ac_cv_c_uint64_t=yes ;;
6122 *) ac_cv_c_uint64_t=$ac_type ;;
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 test "$ac_cv_c_uint64_t" != no && break
6136 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
6137 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
6138 case $ac_cv_c_uint64_t in #(
6142 cat >>confdefs.h <<\_ACEOF
6147 cat >>confdefs.h <<_ACEOF
6148 #define uint64_t $ac_cv_c_uint64_t
6154 cat >>confdefs.h <<\_ACEOF
6155 #define u_int64_t uint64_t
6162 # see if ifaddrs.h is available
6164 for ac_header in ifaddrs.h
6166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 ac_res=`eval echo '${'$as_ac_Header'}'`
6174 { echo "$as_me:$LINENO: result: $ac_res" >&5
6175 echo "${ECHO_T}$ac_res" >&6; }
6177 # Is the header compilable?
6178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6187 #include <$ac_header>
6189 rm -f conftest.$ac_objext
6190 if { (ac_try="$ac_compile"
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6198 grep -v '^ *+' conftest.er1 >conftest.err
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
6206 ac_header_compiler=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 ac_header_compiler=no
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6216 echo "${ECHO_T}$ac_header_compiler" >&6; }
6218 # Is the header present?
6219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <$ac_header>
6229 if { (ac_try="$ac_cpp conftest.$ac_ext"
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6237 grep -v '^ *+' conftest.er1 >conftest.err
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } >/dev/null && {
6242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6243 test ! -s conftest.err
6245 ac_header_preproc=yes
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_header_preproc=no
6253 rm -f conftest.err conftest.$ac_ext
6254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6255 echo "${ECHO_T}$ac_header_preproc" >&6; }
6257 # So? What about this header?
6258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6264 ac_header_preproc=yes
6267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6280 ## --------------------------------- ##
6281 ## Report this to dhcp-users@isc.org ##
6282 ## --------------------------------- ##
6284 ) | sed "s/^/$as_me: WARNING: /" >&2
6287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 eval "$as_ac_Header=\$ac_header_preproc"
6294 ac_res=`eval echo '${'$as_ac_Header'}'`
6295 { echo "$as_me:$LINENO: result: $ac_res" >&5
6296 echo "${ECHO_T}$ac_res" >&6; }
6299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6300 cat >>confdefs.h <<_ACEOF
6301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6309 # figure out what IPv4 interface code to use
6311 for ac_header in linux/types.h
6313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_res=`eval echo '${'$as_ac_Header'}'`
6321 { echo "$as_me:$LINENO: result: $ac_res" >&5
6322 echo "${ECHO_T}$ac_res" >&6; }
6324 # Is the header compilable?
6325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 $ac_includes_default
6334 #include <$ac_header>
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest.$ac_objext; then
6353 ac_header_compiler=yes
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 ac_header_compiler=no
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6; }
6365 # Is the header present?
6366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <$ac_header>
6376 if { (ac_try="$ac_cpp conftest.$ac_ext"
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6384 grep -v '^ *+' conftest.er1 >conftest.err
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } >/dev/null && {
6389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6392 ac_header_preproc=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_header_preproc=no
6400 rm -f conftest.err conftest.$ac_ext
6401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6402 echo "${ECHO_T}$ac_header_preproc" >&6; }
6404 # So? What about this header?
6405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6411 ac_header_preproc=yes
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6427 ## --------------------------------- ##
6428 ## Report this to dhcp-users@isc.org ##
6429 ## --------------------------------- ##
6431 ) | sed "s/^/$as_me: WARNING: /" >&2
6434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 eval "$as_ac_Header=\$ac_header_preproc"
6441 ac_res=`eval echo '${'$as_ac_Header'}'`
6442 { echo "$as_me:$LINENO: result: $ac_res" >&5
6443 echo "${ECHO_T}$ac_res" >&6; }
6446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6447 cat >>confdefs.h <<_ACEOF
6448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6454 # needed for linux/filter.h on old systems
6456 { echo "$as_me:$LINENO: checking for linux/filter.h" >&5
6457 echo $ECHO_N "checking for linux/filter.h... $ECHO_C" >&6; }
6458 if test "${ac_cv_header_linux_filter_h+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6468 #ifdef HAVE_LINUX_TYPES_H
6469 #include <linux/types.h>
6473 #include <linux/filter.h>
6475 rm -f conftest.$ac_objext
6476 if { (ac_try="$ac_compile"
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } && {
6489 test -z "$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 } && test -s conftest.$ac_objext; then
6492 ac_cv_header_linux_filter_h=yes
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6497 ac_cv_header_linux_filter_h=no
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_filter_h" >&5
6503 echo "${ECHO_T}$ac_cv_header_linux_filter_h" >&6; }
6504 if test $ac_cv_header_linux_filter_h = yes; then
6509 if test -n "$DO_LPF"
6512 cat >>confdefs.h <<\_ACEOF
6517 if test "${ac_cv_header_sys_dlpi_h+set}" = set; then
6518 { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5
6519 echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; }
6520 if test "${ac_cv_header_sys_dlpi_h+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5
6524 echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; }
6526 # Is the header compilable?
6527 { echo "$as_me:$LINENO: checking sys/dlpi.h usability" >&5
6528 echo $ECHO_N "checking sys/dlpi.h usability... $ECHO_C" >&6; }
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6536 #include <sys/dlpi.h>
6538 rm -f conftest.$ac_objext
6539 if { (ac_try="$ac_compile"
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 ac_header_compiler=yes
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_header_compiler=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 echo "${ECHO_T}$ac_header_compiler" >&6; }
6567 # Is the header present?
6568 { echo "$as_me:$LINENO: checking sys/dlpi.h presence" >&5
6569 echo $ECHO_N "checking sys/dlpi.h presence... $ECHO_C" >&6; }
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <sys/dlpi.h>
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev/null && {
6591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6594 ac_header_preproc=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_header_preproc=no
6602 rm -f conftest.err conftest.$ac_ext
6603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 echo "${ECHO_T}$ac_header_preproc" >&6; }
6606 # So? What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&5
6610 echo "$as_me: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&5
6612 echo "$as_me: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&2;}
6613 ac_header_preproc=yes
6616 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: present but cannot be compiled" >&5
6617 echo "$as_me: WARNING: sys/dlpi.h: present but cannot be compiled" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: check for missing prerequisite headers?" >&5
6619 echo "$as_me: WARNING: sys/dlpi.h: check for missing prerequisite headers?" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: see the Autoconf documentation" >&5
6621 echo "$as_me: WARNING: sys/dlpi.h: see the Autoconf documentation" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: section \"Present But Cannot Be Compiled\"" >&5
6623 echo "$as_me: WARNING: sys/dlpi.h: section \"Present But Cannot Be Compiled\"" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&5
6625 echo "$as_me: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&5
6627 echo "$as_me: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&2;}
6629 ## --------------------------------- ##
6630 ## Report this to dhcp-users@isc.org ##
6631 ## --------------------------------- ##
6633 ) | sed "s/^/$as_me: WARNING: /" >&2
6636 { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5
6637 echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; }
6638 if test "${ac_cv_header_sys_dlpi_h+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_cv_header_sys_dlpi_h=$ac_header_preproc
6643 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5
6644 echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; }
6647 if test $ac_cv_header_sys_dlpi_h = yes; then
6652 if test -n "$DO_DLPI"
6655 cat >>confdefs.h <<\_ACEOF
6660 if test "${ac_cv_header_net_bpf_h+set}" = set; then
6661 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
6662 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
6663 if test "${ac_cv_header_net_bpf_h+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
6669 # Is the header compilable?
6670 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
6671 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6679 #include <net/bpf.h>
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest.$ac_objext; then
6698 ac_header_compiler=yes
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6703 ac_header_compiler=no
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6708 echo "${ECHO_T}$ac_header_compiler" >&6; }
6710 # Is the header present?
6711 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
6712 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
6713 cat >conftest.$ac_ext <<_ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 #include <net/bpf.h>
6721 if { (ac_try="$ac_cpp conftest.$ac_ext"
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null && {
6734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6737 ac_header_preproc=yes
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ac_header_preproc=no
6745 rm -f conftest.err conftest.$ac_ext
6746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6747 echo "${ECHO_T}$ac_header_preproc" >&6; }
6749 # So? What about this header?
6750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6752 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
6753 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
6755 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
6756 ac_header_preproc=yes
6759 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
6760 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
6761 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
6762 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
6763 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
6764 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
6765 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
6766 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
6767 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
6768 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
6769 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
6770 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
6772 ## --------------------------------- ##
6773 ## Report this to dhcp-users@isc.org ##
6774 ## --------------------------------- ##
6776 ) | sed "s/^/$as_me: WARNING: /" >&2
6779 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
6780 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
6781 if test "${ac_cv_header_net_bpf_h+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_cv_header_net_bpf_h=$ac_header_preproc
6786 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
6787 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
6790 if test $ac_cv_header_net_bpf_h = yes; then
6795 if test -n "$DO_BPF"
6798 cat >>confdefs.h <<\_ACEOF
6806 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6807 # use the same structures. We like to use 'struct lifconf' and 'struct
6808 # lifreq', but we'll use these other structures if they're present. HPUX
6809 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6812 { echo "$as_me:$LINENO: checking for struct lifnum" >&5
6813 echo $ECHO_N "checking for struct lifnum... $ECHO_C" >&6; }
6814 cat >conftest.$ac_ext <<_ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 #include <sys/types.h>
6821 #include <sys/socket.h>
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_compile") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest.$ac_objext; then
6850 { echo "$as_me:$LINENO: result: yes" >&5
6851 echo "${ECHO_T}yes" >&6; }
6853 cat >>confdefs.h <<\_ACEOF
6854 #define ISC_PLATFORM_HAVELIFNUM 1
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
6868 echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6; }
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 #include <sys/types.h>
6876 #include <net/if6.h>
6881 struct if_laddrconf a;
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6896 grep -v '^ *+' conftest.er1 >conftest.err
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 { echo "$as_me:$LINENO: result: yes" >&5
6905 echo "${ECHO_T}yes" >&6; }
6907 cat >>confdefs.h <<\_ACEOF
6908 #define ISC_PLATFORM_HAVEIF_LADDRCONF 1
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6915 { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 { echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
6922 echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6; }
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 #include <sys/types.h>
6930 #include <net/if6.h>
6935 struct if_laddrreq a;
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (ac_try="$ac_link"
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_link") 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_c_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest$ac_exeext &&
6958 $as_test_x conftest$ac_exeext; then
6959 { echo "$as_me:$LINENO: result: yes" >&5
6960 echo "${ECHO_T}yes" >&6; }
6962 cat >>confdefs.h <<\_ACEOF
6963 #define ISC_PLATFORM_HAVEIF_LADDRREQ 1
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 { echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6; }
6974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975 conftest$ac_exeext conftest.$ac_ext
6977 # Look for optional headers.
6982 for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h
6984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 ac_res=`eval echo '${'$as_ac_Header'}'`
6992 { echo "$as_me:$LINENO: result: $ac_res" >&5
6993 echo "${ECHO_T}$ac_res" >&6; }
6995 # Is the header compilable?
6996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6998 cat >conftest.$ac_ext <<_ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #include <$ac_header>
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7016 grep -v '^ *+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7024 ac_header_compiler=yes
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_header_compiler=no
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034 echo "${ECHO_T}$ac_header_compiler" >&6; }
7036 # Is the header present?
7037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <$ac_header>
7047 if { (ac_try="$ac_cpp conftest.$ac_ext"
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } >/dev/null && {
7060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7063 ac_header_preproc=yes
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_header_preproc=no
7071 rm -f conftest.err conftest.$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7073 echo "${ECHO_T}$ac_header_preproc" >&6; }
7075 # So? What about this header?
7076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7082 ac_header_preproc=yes
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7098 ## --------------------------------- ##
7099 ## Report this to dhcp-users@isc.org ##
7100 ## --------------------------------- ##
7102 ) | sed "s/^/$as_me: WARNING: /" >&2
7105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 eval "$as_ac_Header=\$ac_header_preproc"
7112 ac_res=`eval echo '${'$as_ac_Header'}'`
7113 { echo "$as_me:$LINENO: result: $ac_res" >&5
7114 echo "${ECHO_T}$ac_res" >&6; }
7117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7118 cat >>confdefs.h <<_ACEOF
7119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7127 # Solaris needs some libraries for functions
7128 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7129 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7130 if test "${ac_cv_search_socket+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 ac_func_search_save_LIBS=$LIBS
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7141 /* Override any GCC internal prototype to avoid an error.
7142 Use char because int might match the return type of a GCC
7143 builtin and then its argument prototype would still apply. */
7156 for ac_lib in '' socket; do
7157 if test -z "$ac_lib"; then
7158 ac_res="none required"
7161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (ac_try="$ac_link"
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_link") 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest$ac_exeext &&
7180 $as_test_x conftest$ac_exeext; then
7181 ac_cv_search_socket=$ac_res
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7191 if test "${ac_cv_search_socket+set}" = set; then
7195 if test "${ac_cv_search_socket+set}" = set; then
7198 ac_cv_search_socket=no
7201 LIBS=$ac_func_search_save_LIBS
7203 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7204 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7205 ac_res=$ac_cv_search_socket
7206 if test "$ac_res" != no; then
7207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7211 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7212 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7213 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 ac_func_search_save_LIBS=$LIBS
7217 cat >conftest.$ac_ext <<_ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7224 /* Override any GCC internal prototype to avoid an error.
7225 Use char because int might match the return type of a GCC
7226 builtin and then its argument prototype would still apply. */
7234 return inet_ntoa ();
7239 for ac_lib in '' nsl; do
7240 if test -z "$ac_lib"; then
7241 ac_res="none required"
7244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_link") 2>conftest.er1
7255 grep -v '^ *+' conftest.er1 >conftest.err
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } && {
7260 test -z "$ac_c_werror_flag" ||
7261 test ! -s conftest.err
7262 } && test -s conftest$ac_exeext &&
7263 $as_test_x conftest$ac_exeext; then
7264 ac_cv_search_inet_ntoa=$ac_res
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7274 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7278 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7281 ac_cv_search_inet_ntoa=no
7284 LIBS=$ac_func_search_save_LIBS
7286 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7287 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7288 ac_res=$ac_cv_search_inet_ntoa
7289 if test "$ac_res" != no; then
7290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7295 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
7296 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
7297 if test "${ac_cv_search_inet_aton+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 ac_func_search_save_LIBS=$LIBS
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7308 /* Override any GCC internal prototype to avoid an error.
7309 Use char because int might match the return type of a GCC
7310 builtin and then its argument prototype would still apply. */
7318 return inet_aton ();
7323 for ac_lib in '' socket nsl; do
7324 if test -z "$ac_lib"; then
7325 ac_res="none required"
7328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>conftest.er1
7339 grep -v '^ *+' conftest.er1 >conftest.err
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest$ac_exeext &&
7347 $as_test_x conftest$ac_exeext; then
7348 ac_cv_search_inet_aton=$ac_res
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7358 if test "${ac_cv_search_inet_aton+set}" = set; then
7362 if test "${ac_cv_search_inet_aton+set}" = set; then
7365 ac_cv_search_inet_aton=no
7368 LIBS=$ac_func_search_save_LIBS
7370 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
7371 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
7372 ac_res=$ac_cv_search_inet_aton
7373 if test "$ac_res" != no; then
7374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7378 cat >>confdefs.h <<\_ACEOF
7379 #define NEED_INET_ATON 1
7385 # Check for a standalone regex library.
7386 { echo "$as_me:$LINENO: checking for library containing regcomp" >&5
7387 echo $ECHO_N "checking for library containing regcomp... $ECHO_C" >&6; }
7388 if test "${ac_cv_search_regcomp+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_func_search_save_LIBS=$LIBS
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7399 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7414 for ac_lib in '' regex; do
7415 if test -z "$ac_lib"; then
7416 ac_res="none required"
7419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7421 rm -f conftest.$ac_objext conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_link") 2>conftest.er1
7430 grep -v '^ *+' conftest.er1 >conftest.err
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && {
7435 test -z "$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest$ac_exeext &&
7438 $as_test_x conftest$ac_exeext; then
7439 ac_cv_search_regcomp=$ac_res
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7449 if test "${ac_cv_search_regcomp+set}" = set; then
7453 if test "${ac_cv_search_regcomp+set}" = set; then
7456 ac_cv_search_regcomp=no
7459 LIBS=$ac_func_search_save_LIBS
7461 { echo "$as_me:$LINENO: result: $ac_cv_search_regcomp" >&5
7462 echo "${ECHO_T}$ac_cv_search_regcomp" >&6; }
7463 ac_res=$ac_cv_search_regcomp
7464 if test "$ac_res" != no; then
7465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7470 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
7471 { echo "$as_me:$LINENO: checking for library containing if_nametoindex" >&5
7472 echo $ECHO_N "checking for library containing if_nametoindex... $ECHO_C" >&6; }
7473 if test "${ac_cv_search_if_nametoindex+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 ac_func_search_save_LIBS=$LIBS
7477 cat >conftest.$ac_ext <<_ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7484 /* Override any GCC internal prototype to avoid an error.
7485 Use char because int might match the return type of a GCC
7486 builtin and then its argument prototype would still apply. */
7490 char if_nametoindex ();
7494 return if_nametoindex ();
7499 for ac_lib in '' ipv6; do
7500 if test -z "$ac_lib"; then
7501 ac_res="none required"
7504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (ac_try="$ac_link"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_link") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest$ac_exeext &&
7523 $as_test_x conftest$ac_exeext; then
7524 ac_cv_search_if_nametoindex=$ac_res
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7534 if test "${ac_cv_search_if_nametoindex+set}" = set; then
7538 if test "${ac_cv_search_if_nametoindex+set}" = set; then
7541 ac_cv_search_if_nametoindex=no
7544 LIBS=$ac_func_search_save_LIBS
7546 { echo "$as_me:$LINENO: result: $ac_cv_search_if_nametoindex" >&5
7547 echo "${ECHO_T}$ac_cv_search_if_nametoindex" >&6; }
7548 ac_res=$ac_cv_search_if_nametoindex
7549 if test "$ac_res" != no; then
7550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7555 # check for /dev/random (declares HAVE_DEV_RANDOM)
7556 { echo "$as_me:$LINENO: checking for /dev/random" >&5
7557 echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6; }
7558 if test "${ac_cv_file__dev_random+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 test "$cross_compiling" = yes &&
7562 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7563 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7564 { (exit 1); exit 1; }; }
7565 if test -r "/dev/random"; then
7566 ac_cv_file__dev_random=yes
7568 ac_cv_file__dev_random=no
7571 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5
7572 echo "${ECHO_T}$ac_cv_file__dev_random" >&6; }
7573 if test $ac_cv_file__dev_random = yes; then
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_DEV_RANDOM 1
7582 # see if there is a "sa_len" field in our interface information structure
7583 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7584 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7585 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <sys/socket.h>
7599 static struct sockaddr ac_aggr;
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_compile") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest.$ac_objext; then
7623 ac_cv_member_struct_sockaddr_sa_len=yes
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 cat >conftest.$ac_ext <<_ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 #include <sys/socket.h>
7639 static struct sockaddr ac_aggr;
7640 if (sizeof ac_aggr.sa_len)
7646 rm -f conftest.$ac_objext
7647 if { (ac_try="$ac_compile"
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7655 grep -v '^ *+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7663 ac_cv_member_struct_sockaddr_sa_len=yes
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_cv_member_struct_sockaddr_sa_len=no
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7677 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
7678 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7680 cat >>confdefs.h <<\_ACEOF
7687 # figure out pointer size
7688 { echo "$as_me:$LINENO: checking for struct iaddr *" >&5
7689 echo $ECHO_N "checking for struct iaddr *... $ECHO_C" >&6; }
7690 if test "${ac_cv_type_struct_iaddr_p+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7700 #include "includes/inet.h"
7704 typedef struct iaddr * ac__type_new_;
7708 if ((ac__type_new_ *) 0)
7710 if (sizeof (ac__type_new_))
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7725 grep -v '^ *+' conftest.er1 >conftest.err
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && {
7730 test -z "$ac_c_werror_flag" ||
7731 test ! -s conftest.err
7732 } && test -s conftest.$ac_objext; then
7733 ac_cv_type_struct_iaddr_p=yes
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7738 ac_cv_type_struct_iaddr_p=no
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iaddr_p" >&5
7744 echo "${ECHO_T}$ac_cv_type_struct_iaddr_p" >&6; }
7746 # The cast to long int works around a bug in the HP C Compiler
7747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7749 # This bug is HP SR number 8606223364.
7750 { echo "$as_me:$LINENO: checking size of struct iaddr *" >&5
7751 echo $ECHO_N "checking size of struct iaddr *... $ECHO_C" >&6; }
7752 if test "${ac_cv_sizeof_struct_iaddr_p+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 if test "$cross_compiling" = yes; then
7756 # Depending upon the size, compute the lo and hi bounds.
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7764 #include "includes/inet.h"
7768 typedef struct iaddr * ac__type_sizeof_;
7772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7779 rm -f conftest.$ac_objext
7780 if { (ac_try="$ac_compile"
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_compile") 2>conftest.er1
7788 grep -v '^ *+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } && {
7793 test -z "$ac_c_werror_flag" ||
7794 test ! -s conftest.err
7795 } && test -s conftest.$ac_objext; then
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 #include "includes/inet.h"
7809 typedef struct iaddr * ac__type_sizeof_;
7813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_hi=$ac_mid; break
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 ac_lo=`expr $ac_mid + 1`
7843 if test $ac_lo -le $ac_mid; then
7847 ac_mid=`expr 2 '*' $ac_mid + 1`
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7863 #include "includes/inet.h"
7867 typedef struct iaddr * ac__type_sizeof_;
7871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_compile") 2>conftest.er1
7887 grep -v '^ *+' conftest.er1 >conftest.err
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest.$ac_objext; then
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7904 #include "includes/inet.h"
7908 typedef struct iaddr * ac__type_sizeof_;
7912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_lo=$ac_mid; break
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 ac_hi=`expr '(' $ac_mid ')' - 1`
7942 if test $ac_mid -le $ac_hi; then
7946 ac_mid=`expr 2 '*' $ac_mid`
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 # Binary search between lo and hi bounds.
7963 while test "x$ac_lo" != "x$ac_hi"; do
7964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7972 #include "includes/inet.h"
7976 typedef struct iaddr * ac__type_sizeof_;
7980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7996 grep -v '^ *+' conftest.er1 >conftest.err
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_lo=`expr '(' $ac_mid ')' + 1`
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 ?*) ac_cv_sizeof_struct_iaddr_p=$ac_lo;;
8016 '') if test "$ac_cv_type_struct_iaddr_p" = yes; then
8017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *)
8018 See \`config.log' for more details." >&5
8019 echo "$as_me: error: cannot compute sizeof (struct iaddr *)
8020 See \`config.log' for more details." >&2;}
8021 { (exit 77); exit 77; }; }
8023 ac_cv_sizeof_struct_iaddr_p=0
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8034 #include "includes/inet.h"
8038 typedef struct iaddr * ac__type_sizeof_;
8039 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8040 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8047 FILE *f = fopen ("conftest.val", "w");
8050 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8052 long int i = longval ();
8053 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8055 fprintf (f, "%ld\n", i);
8059 unsigned long int i = ulongval ();
8060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8062 fprintf (f, "%lu\n", i);
8064 return ferror (f) || fclose (f) != 0;
8070 rm -f conftest$ac_exeext
8071 if { (ac_try="$ac_link"
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_link") 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8081 { (case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_try") 2>&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_cv_sizeof_struct_iaddr_p=`cat conftest.val`
8092 echo "$as_me: program exited with status $ac_status" >&5
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8097 if test "$ac_cv_type_struct_iaddr_p" = yes; then
8098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *)
8099 See \`config.log' for more details." >&5
8100 echo "$as_me: error: cannot compute sizeof (struct iaddr *)
8101 See \`config.log' for more details." >&2;}
8102 { (exit 77); exit 77; }; }
8104 ac_cv_sizeof_struct_iaddr_p=0
8107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8111 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_struct_iaddr_p" >&5
8112 echo "${ECHO_T}$ac_cv_sizeof_struct_iaddr_p" >&6; }
8116 cat >>confdefs.h <<_ACEOF
8117 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
8122 # Solaris does not have the msg_control or msg_controlen members in
8123 # in the msghdr structure unless you define:
8125 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
8127 # See the "standards" man page for details.
8129 # We check for the msg_control member, and if it is not found, we check
8130 # again with the appropriate defines added to the CFLAGS. (In order to
8131 # do this we have to remove the check from the cache, which is what the
8133 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
8134 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
8135 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8145 #include <sys/types.h>
8146 #include <sys/socket.h>
8152 static struct msghdr ac_aggr;
8153 if (ac_aggr.msg_control)
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_msghdr_msg_control=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8188 #include <sys/types.h>
8189 #include <sys/socket.h>
8195 static struct msghdr ac_aggr;
8196 if (sizeof ac_aggr.msg_control)
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8219 ac_cv_member_struct_msghdr_msg_control=yes
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 ac_cv_member_struct_msghdr_msg_control=no
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
8233 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
8234 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
8237 CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8238 CFLAGS="$CFLAGS -D__EXTENSIONS__"
8239 unset ac_cv_member_struct_msghdr_msg_control
8240 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
8241 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
8242 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.$ac_ext <<_ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8252 #include <sys/types.h>
8253 #include <sys/socket.h>
8259 static struct msghdr ac_aggr;
8260 if (ac_aggr.msg_control)
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 ac_cv_member_struct_msghdr_msg_control=yes
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8295 #include <sys/types.h>
8296 #include <sys/socket.h>
8302 static struct msghdr ac_aggr;
8303 if (sizeof ac_aggr.msg_control)
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8318 grep -v '^ *+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest.$ac_objext; then
8326 ac_cv_member_struct_msghdr_msg_control=yes
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 ac_cv_member_struct_msghdr_msg_control=no
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
8340 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
8341 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
8344 { { echo "$as_me:$LINENO: error: Missing msg_control member in
8345 msg_control structure." >&5
8346 echo "$as_me: error: Missing msg_control member in
8347 msg_control structure." >&2;}
8348 { (exit 1); exit 1; }; }
8357 # Check whether --with-libbind was given.
8358 if test "${with_libbind+set}" = set; then
8359 withval=$with_libbind; use_libbind="$withval"
8364 case "$use_libbind" in
8366 libbind="\${top_srcdir}/bind"
8369 libbind="\${top_srcdir}/bind"
8372 libbind="$use_libbind"
8378 # Check whether --with-ldap was given.
8379 if test "${with_ldap+set}" = set; then
8380 withval=$with_ldap; ldap=$withval
8386 # OpenLDAP with SSL support.
8388 # Check whether --with-ldapcrypto was given.
8389 if test "${with_ldapcrypto+set}" = set; then
8390 withval=$with_ldapcrypto; ldapcrypto=$withval
8396 # OpenLDAP support is disabled by default, if enabled then SSL support is an
8397 # extra optional that is also disabled by default. Enabling LDAP SSL support
8398 # implies enabling LDAP support.
8399 if test x$ldap = xyes || test x$ldapcrypto = xyes ; then
8400 { echo "$as_me:$LINENO: checking for library containing ldap_initialize" >&5
8401 echo $ECHO_N "checking for library containing ldap_initialize... $ECHO_C" >&6; }
8402 if test "${ac_cv_search_ldap_initialize+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 ac_func_search_save_LIBS=$LIBS
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8413 /* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8419 char ldap_initialize ();
8423 return ldap_initialize ();
8428 for ac_lib in '' ldap; do
8429 if test -z "$ac_lib"; then
8430 ac_res="none required"
8433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_link") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest$ac_exeext &&
8452 $as_test_x conftest$ac_exeext; then
8453 ac_cv_search_ldap_initialize=$ac_res
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8463 if test "${ac_cv_search_ldap_initialize+set}" = set; then
8467 if test "${ac_cv_search_ldap_initialize+set}" = set; then
8470 ac_cv_search_ldap_initialize=no
8473 LIBS=$ac_func_search_save_LIBS
8475 { echo "$as_me:$LINENO: result: $ac_cv_search_ldap_initialize" >&5
8476 echo "${ECHO_T}$ac_cv_search_ldap_initialize" >&6; }
8477 ac_res=$ac_cv_search_ldap_initialize
8478 if test "$ac_res" != no; then
8479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8482 { { echo "$as_me:$LINENO: error: *** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
8483 See \`config.log' for more details." >&5
8484 echo "$as_me: error: *** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
8485 See \`config.log' for more details." >&2;}
8486 { (exit 1); exit 1; }; }
8489 { echo "$as_me:$LINENO: checking for library containing ber_pvt_opt_on" >&5
8490 echo $ECHO_N "checking for library containing ber_pvt_opt_on... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8502 /* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8508 char ber_pvt_opt_on ();
8512 return ber_pvt_opt_on ();
8517 for ac_lib in '' lber; do
8518 if test -z "$ac_lib"; then
8519 ac_res="none required"
8522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest$ac_exeext &&
8541 $as_test_x conftest$ac_exeext; then
8542 ac_cv_search_ber_pvt_opt_on=$ac_res
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8552 if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then
8556 if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then
8559 ac_cv_search_ber_pvt_opt_on=no
8562 LIBS=$ac_func_search_save_LIBS
8564 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_pvt_opt_on" >&5
8565 echo "${ECHO_T}$ac_cv_search_ber_pvt_opt_on" >&6; }
8566 ac_res=$ac_cv_search_ber_pvt_opt_on
8567 if test "$ac_res" != no; then
8568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8571 { { echo "$as_me:$LINENO: error: *** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
8572 See \`config.log' for more details." >&5
8573 echo "$as_me: error: *** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
8574 See \`config.log' for more details." >&2;}
8575 { (exit 1); exit 1; }; }
8579 if test x$ldapcrypto = xyes ; then
8580 LDAP_CFLAGS="-DLDAP_CONFIGURATION -DLDAP_USE_SSL"
8583 LDAP_CFLAGS="-DLDAP_CONFIGURATION"
8588 # Append selected warning levels to CFLAGS before substitution (but after
8589 # AC_TRY_COMPILE & etc).
8590 CFLAGS="$CFLAGS $STD_CWARNINGS"
8592 # Try to add the bind include directory
8593 CFLAGS="$CFLAGS -I$libbind/include"
8596 { echo "$as_me:$LINENO: checking for flexible array members" >&5
8597 echo $ECHO_N "checking for flexible array members... $ECHO_C" >&6; }
8598 if test "${ac_cv_c_flexmember+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8610 struct s { int n; double d[]; };
8615 struct s *p = malloc (offsetof (struct s, d)
8616 + m * sizeof (double));
8618 return p->d != (double *) NULL;
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_compile") 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest.$ac_objext; then
8640 ac_cv_c_flexmember=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_c_flexmember=no
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 { echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
8651 echo "${ECHO_T}$ac_cv_c_flexmember" >&6; }
8652 if test $ac_cv_c_flexmember = yes; then
8654 cat >>confdefs.h <<\_ACEOF
8655 #define FLEXIBLE_ARRAY_MEMBER
8659 cat >>confdefs.h <<\_ACEOF
8660 #define FLEXIBLE_ARRAY_MEMBER 1
8666 ac_config_files="$ac_config_files Makefile client/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile dst/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile"
8668 cat >confcache <<\_ACEOF
8669 # This file is a shell script that caches the results of configure
8670 # tests run on this system so they can be shared between configure
8671 # scripts and configure runs, see configure's option --config-cache.
8672 # It is not useful on other systems. If it contains results you don't
8673 # want to keep, you may remove or edit it.
8675 # config.status only pays attention to the cache file if you give it
8676 # the --recheck option to rerun configure.
8678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8684 # The following way of writing the cache mishandles newlines in values,
8685 # but we know of no workaround that is simple, portable, and efficient.
8686 # So, we kill variables containing newlines.
8687 # Ultrix sh set writes to stderr and can't be redirected directly,
8688 # and sets the high bit in the cache file unless we assign to the vars.
8690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8691 eval ac_val=\$$ac_var
8695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8699 _ | IFS | as_nl) ;; #(
8700 *) $as_unset $ac_var ;;
8706 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8707 *${as_nl}ac_space=\ *)
8708 # `set' does not quote correctly, so add quotes (double-quote
8709 # substitution turns \\\\ into \\, and sed turns \\ into \).
8712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8715 # `set' quotes correctly as required by POSIX, so do not add quotes.
8716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8730 if test -w "$cache_file"; then
8731 test "x$cache_file" != "x/dev/null" &&
8732 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8733 echo "$as_me: updating cache $cache_file" >&6;}
8734 cat confcache >$cache_file
8736 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8737 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8743 # Let make expand exec_prefix.
8744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8746 DEFS=-DHAVE_CONFIG_H
8750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8751 # 1. Remove the extension, and $U if already installed.
8752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8753 ac_i=`echo "$ac_i" | sed "$ac_script"`
8754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8755 # will be set to the directory where LIBOBJS objects are built.
8756 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8757 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8761 LTLIBOBJS=$ac_ltlibobjs
8764 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8765 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8766 Usually this means the macro was only invoked conditionally." >&5
8767 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8768 Usually this means the macro was only invoked conditionally." >&2;}
8769 { (exit 1); exit 1; }; }
8771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8772 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8773 Usually this means the macro was only invoked conditionally." >&5
8774 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8775 Usually this means the macro was only invoked conditionally." >&2;}
8776 { (exit 1); exit 1; }; }
8778 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8779 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8780 Usually this means the macro was only invoked conditionally." >&5
8781 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8782 Usually this means the macro was only invoked conditionally." >&2;}
8783 { (exit 1); exit 1; }; }
8786 : ${CONFIG_STATUS=./config.status}
8787 ac_clean_files_save=$ac_clean_files
8788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8791 cat >$CONFIG_STATUS <<_ACEOF
8793 # Generated by $as_me.
8794 # Run this file to recreate the current configuration.
8795 # Compiler output produced by configure, useful for debugging
8796 # configure, is in config.log if it exists.
8801 SHELL=\${CONFIG_SHELL-$SHELL}
8804 cat >>$CONFIG_STATUS <<\_ACEOF
8805 ## --------------------- ##
8806 ## M4sh Initialization. ##
8807 ## --------------------- ##
8809 # Be more Bourne compatible
8810 DUALCASE=1; export DUALCASE # for MKS sh
8811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8814 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8815 # is contrary to our usage. Disable this feature.
8816 alias -g '${1+"$@"}'='"$@"'
8817 setopt NO_GLOB_SUBST
8819 case `(set -o) 2>/dev/null` in
8820 *posix*) set -o posix ;;
8829 # Avoid depending upon Character Ranges.
8830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8833 as_cr_digits='0123456789'
8834 as_cr_alnum=$as_cr_Letters$as_cr_digits
8836 # The user is always right.
8837 if test "${PATH_SEPARATOR+set}" != set; then
8838 echo "#! /bin/sh" >conf$$.sh
8839 echo "exit 0" >>conf$$.sh
8841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8849 # Support unset when possible.
8850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8858 # We need space, tab and new line, in precisely that order. Quoting is
8859 # there to prevent editors from complaining about space-tab.
8860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8861 # splitting by setting IFS to empty value.)
8866 # Find who we are. Look in the path if we contain no directory separator.
8868 *[\\/]* ) as_myself=$0 ;;
8869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir=.
8874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8880 # We did not find ourselves, most probably we were run as `sh COMMAND'
8881 # in which case we are not to be found in the path.
8882 if test "x$as_myself" = x; then
8885 if test ! -f "$as_myself"; then
8886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8887 { (exit 1); exit 1; }
8890 # Work around bugs in pre-3.0 UWIN ksh.
8891 for as_var in ENV MAIL MAILPATH
8892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8902 LC_TELEPHONE LC_TIME
8904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8905 eval $as_var=C; export $as_var
8907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8911 # Required to use basename.
8912 if expr a : '\(a\)' >/dev/null 2>&1 &&
8913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8920 as_basename=basename
8926 # Name of the executable.
8927 as_me=`$as_basename -- "$0" ||
8928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8929 X"$0" : 'X\(//\)$' \| \
8930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8932 sed '/^.*\/\([^/][^/]*\)\/*$/{
8953 test "x$as_lineno_1" != "x$as_lineno_2" &&
8954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8957 # uniformly replaced by the line number. The first 'sed' inserts a
8958 # line-number line after each line using $LINENO; the second 'sed'
8959 # does the real work. The second script uses 'N' to pair each
8960 # line-number line with the line containing $LINENO, and appends
8961 # trailing '-' during substitution so that $LINENO is not a special
8963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8964 # scripts with optimization help from Paolo Bonzini. Blame Lee
8965 # E. McMahon (1931-1989) for sed's syntax. :-)
8977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8981 chmod +x "$as_me.lineno" ||
8982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8983 { (exit 1); exit 1; }; }
8985 # Don't try to exec as it changes $[0], causing all sort of problems
8986 # (the dirname of $[0] is not the place where we might find the
8987 # original and so on. Autoconf is especially sensitive to this).
8989 # Exit status is that of the last command.
8994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9000 ECHO_C= ECHO_N= ECHO_T=
9003 case `echo 'x\c'` in
9004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9011 if expr a : '\(a\)' >/dev/null 2>&1 &&
9012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9018 rm -f conf$$ conf$$.exe conf$$.file
9019 if test -d conf$$.dir; then
9020 rm -f conf$$.dir/conf$$.file
9026 if ln -s conf$$.file conf$$ 2>/dev/null; then
9028 # ... but there are two gotchas:
9029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9031 # In both cases, we have to default to `cp -p'.
9032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9034 elif ln conf$$.file conf$$ 2>/dev/null; then
9039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9040 rmdir conf$$.dir 2>/dev/null
9042 if mkdir -p . 2>/dev/null; then
9045 test -d ./-p && rmdir ./-p
9049 if test -x / >/dev/null 2>&1; then
9052 if ls -dL / >/dev/null 2>&1; then
9059 if test -d "$1"; then
9065 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9066 ???[sx]*):;;*)false;;esac;fi
9070 as_executable_p=$as_test_x
9072 # Sed expression to map a string onto a valid CPP name.
9073 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9075 # Sed expression to map a string onto a valid variable name.
9076 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9081 # Save the log message, to keep $[0] and so on meaningful, and to
9082 # report actual input values of CONFIG_FILES etc. instead of their
9083 # values after options handling.
9085 This file was extended by DHCP $as_me 4.2.3-P2, which was
9086 generated by GNU Autoconf 2.61. Invocation command line was
9088 CONFIG_FILES = $CONFIG_FILES
9089 CONFIG_HEADERS = $CONFIG_HEADERS
9090 CONFIG_LINKS = $CONFIG_LINKS
9091 CONFIG_COMMANDS = $CONFIG_COMMANDS
9094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9099 cat >>$CONFIG_STATUS <<_ACEOF
9100 # Files that config.status was made for.
9101 config_files="$ac_config_files"
9102 config_headers="$ac_config_headers"
9103 config_commands="$ac_config_commands"
9107 cat >>$CONFIG_STATUS <<\_ACEOF
9109 \`$as_me' instantiates files from templates according to the
9110 current configuration.
9112 Usage: $0 [OPTIONS] [FILE]...
9114 -h, --help print this help, then exit
9115 -V, --version print version number and configuration settings, then exit
9116 -q, --quiet do not print progress messages
9117 -d, --debug don't remove temporary files
9118 --recheck update $as_me by reconfiguring in the same conditions
9119 --file=FILE[:TEMPLATE]
9120 instantiate the configuration file FILE
9121 --header=FILE[:TEMPLATE]
9122 instantiate the configuration header FILE
9124 Configuration files:
9127 Configuration headers:
9130 Configuration commands:
9133 Report bugs to <bug-autoconf@gnu.org>."
9136 cat >>$CONFIG_STATUS <<_ACEOF
9138 DHCP config.status 4.2.3-P2
9139 configured by $0, generated by GNU Autoconf 2.61,
9140 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9142 Copyright (C) 2006 Free Software Foundation, Inc.
9143 This config.status script is free software; the Free Software Foundation
9144 gives unlimited permission to copy, distribute and modify it."
9152 cat >>$CONFIG_STATUS <<\_ACEOF
9153 # If no file are specified by the user, then we need to provide default
9154 # value. By we need to know if files were specified by the user.
9160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9172 # Handling of the options.
9173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9175 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9176 echo "$ac_cs_version"; exit ;;
9177 --debug | --debu | --deb | --de | --d | -d )
9179 --file | --fil | --fi | --f )
9181 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9182 ac_need_defaults=false;;
9183 --header | --heade | --head | --hea )
9185 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9186 ac_need_defaults=false;;
9188 # Conflict between --help and --header
9189 { echo "$as_me: error: ambiguous option: $1
9190 Try \`$0 --help' for more information." >&2
9191 { (exit 1); exit 1; }; };;
9192 --help | --hel | -h )
9193 echo "$ac_cs_usage"; exit ;;
9194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9195 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9199 -*) { echo "$as_me: error: unrecognized option: $1
9200 Try \`$0 --help' for more information." >&2
9201 { (exit 1); exit 1; }; } ;;
9203 *) ac_config_targets="$ac_config_targets $1"
9204 ac_need_defaults=false ;;
9210 ac_configure_extra_args=
9212 if $ac_cs_silent; then
9214 ac_configure_extra_args="$ac_configure_extra_args --silent"
9218 cat >>$CONFIG_STATUS <<_ACEOF
9219 if \$ac_cs_recheck; then
9220 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9223 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9227 cat >>$CONFIG_STATUS <<\_ACEOF
9231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9232 ## Running $as_me. ##
9238 cat >>$CONFIG_STATUS <<_ACEOF
9242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9246 cat >>$CONFIG_STATUS <<\_ACEOF
9248 # Handling of arguments.
9249 for ac_config_target in $ac_config_targets
9251 case $ac_config_target in
9252 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9253 "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;;
9254 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9255 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
9256 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
9257 "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;;
9258 "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;;
9259 "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
9260 "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
9261 "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;;
9262 "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;;
9263 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
9264 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9266 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9268 { (exit 1); exit 1; }; };;
9273 # If the user did not use the arguments to specify the items to instantiate,
9274 # then the envvar interface is used. Set only those that are not.
9275 # We use the long form for the default assignment because of an extremely
9276 # bizarre bug on SunOS 4.1.3.
9277 if $ac_need_defaults; then
9278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9280 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9283 # Have a temporary directory for convenience. Make it in the build tree
9284 # simply because there is no reason against having it here, and in addition,
9285 # creating and moving files from /tmp can sometimes cause problems.
9286 # Hook for its removal unless debugging.
9287 # Note that there is a small window in which the directory will not be cleaned:
9288 # after its creation but before its name has been assigned to `$tmp'.
9292 trap 'exit_status=$?
9293 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9295 trap '{ (exit 1); exit 1; }' 1 2 13 15
9297 # Create a (secure) tmp directory for tmp files.
9300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9301 test -n "$tmp" && test -d "$tmp"
9304 tmp=./conf$$-$RANDOM
9305 (umask 077 && mkdir "$tmp")
9308 echo "$me: cannot create a temporary directory in ." >&2
9309 { (exit 1); exit 1; }
9313 # Set up the sed scripts for CONFIG_FILES section.
9316 # No need to generate the scripts if there are no CONFIG_FILES.
9317 # This happens for instance when ./config.status config.h
9318 if test -n "$CONFIG_FILES"; then
9325 for ac_last_try in false false false false false :; do
9326 cat >conf$$subs.sed <<_ACEOF
9327 SHELL!$SHELL$ac_delim
9328 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9329 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9330 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9331 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9332 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9333 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9334 exec_prefix!$exec_prefix$ac_delim
9335 prefix!$prefix$ac_delim
9336 program_transform_name!$program_transform_name$ac_delim
9337 bindir!$bindir$ac_delim
9338 sbindir!$sbindir$ac_delim
9339 libexecdir!$libexecdir$ac_delim
9340 datarootdir!$datarootdir$ac_delim
9341 datadir!$datadir$ac_delim
9342 sysconfdir!$sysconfdir$ac_delim
9343 sharedstatedir!$sharedstatedir$ac_delim
9344 localstatedir!$localstatedir$ac_delim
9345 includedir!$includedir$ac_delim
9346 oldincludedir!$oldincludedir$ac_delim
9347 docdir!$docdir$ac_delim
9348 infodir!$infodir$ac_delim
9349 htmldir!$htmldir$ac_delim
9350 dvidir!$dvidir$ac_delim
9351 pdfdir!$pdfdir$ac_delim
9352 psdir!$psdir$ac_delim
9353 libdir!$libdir$ac_delim
9354 localedir!$localedir$ac_delim
9355 mandir!$mandir$ac_delim
9357 ECHO_C!$ECHO_C$ac_delim
9358 ECHO_N!$ECHO_N$ac_delim
9359 ECHO_T!$ECHO_T$ac_delim
9361 build_alias!$build_alias$ac_delim
9362 host_alias!$host_alias$ac_delim
9363 target_alias!$target_alias$ac_delim
9364 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9365 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9366 INSTALL_DATA!$INSTALL_DATA$ac_delim
9367 am__isrc!$am__isrc$ac_delim
9368 CYGPATH_W!$CYGPATH_W$ac_delim
9369 PACKAGE!$PACKAGE$ac_delim
9370 VERSION!$VERSION$ac_delim
9371 ACLOCAL!$ACLOCAL$ac_delim
9372 AUTOCONF!$AUTOCONF$ac_delim
9373 AUTOMAKE!$AUTOMAKE$ac_delim
9374 AUTOHEADER!$AUTOHEADER$ac_delim
9375 MAKEINFO!$MAKEINFO$ac_delim
9376 install_sh!$install_sh$ac_delim
9377 STRIP!$STRIP$ac_delim
9378 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
9379 mkdir_p!$mkdir_p$ac_delim
9381 SET_MAKE!$SET_MAKE$ac_delim
9382 am__leading_dot!$am__leading_dot$ac_delim
9383 AMTAR!$AMTAR$ac_delim
9384 am__tar!$am__tar$ac_delim
9385 am__untar!$am__untar$ac_delim
9386 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
9387 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
9388 MAINT!$MAINT$ac_delim
9390 CFLAGS!$CFLAGS$ac_delim
9391 LDFLAGS!$LDFLAGS$ac_delim
9392 CPPFLAGS!$CPPFLAGS$ac_delim
9393 ac_ct_CC!$ac_ct_CC$ac_delim
9394 EXEEXT!$EXEEXT$ac_delim
9395 OBJEXT!$OBJEXT$ac_delim
9396 DEPDIR!$DEPDIR$ac_delim
9397 am__include!$am__include$ac_delim
9398 am__quote!$am__quote$ac_delim
9399 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
9400 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
9401 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9402 CCDEPMODE!$CCDEPMODE$ac_delim
9403 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
9404 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9407 EGREP!$EGREP$ac_delim
9408 RANLIB!$RANLIB$ac_delim
9409 byte_order!$byte_order$ac_delim
9410 ac_prefix_program!$ac_prefix_program$ac_delim
9411 LDAP_CFLAGS!$LDAP_CFLAGS$ac_delim
9412 LIBOBJS!$LIBOBJS$ac_delim
9413 LTLIBOBJS!$LTLIBOBJS$ac_delim
9416 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
9418 elif $ac_last_try; then
9419 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9420 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9421 { (exit 1); exit 1; }; }
9423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9427 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9428 if test -n "$ac_eof"; then
9429 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9430 ac_eof=`expr $ac_eof + 1`
9433 cat >>$CONFIG_STATUS <<_ACEOF
9434 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9438 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9439 s/^/s,@/; s/!/@,|#_!!_#|/
9442 s/'"$ac_delim"'$/,g/; t
9444 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9445 ' >>$CONFIG_STATUS <conf$$subs.sed
9446 rm -f conf$$subs.sed
9447 cat >>$CONFIG_STATUS <<_ACEOF
9454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9456 # trailing colons and then remove the whole line if VPATH becomes empty
9457 # (actually we leave an empty line to preserve line numbers).
9458 if test "x$srcdir" = x.; then
9459 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9463 s/^\([^=]*=[ ]*\):*/\1/
9469 cat >>$CONFIG_STATUS <<\_ACEOF
9470 fi # test -n "$CONFIG_FILES"
9473 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9476 :[FHLC]) ac_mode=$ac_tag; continue;;
9478 case $ac_mode$ac_tag in
9480 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9481 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9482 { (exit 1); exit 1; }; };;
9483 :[FH]-) ac_tag=-:-;;
9484 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9501 -) ac_f="$tmp/stdin";;
9502 *) # Look for the file first in the build tree, then in the source tree
9503 # (if the path is not absolute). The absolute path cannot be DOS-style,
9504 # because $ac_f cannot contain `:'.
9508 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9510 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9511 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9512 { (exit 1); exit 1; }; };;
9514 ac_file_inputs="$ac_file_inputs $ac_f"
9517 # Let's still pretend it is `configure' which instantiates (i.e., don't
9518 # use $as_me), people would be surprised to read:
9519 # /* config.h. Generated by config.status. */
9520 configure_input="Generated from "`IFS=:
9521 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9522 if test x"$ac_file" != x-; then
9523 configure_input="$ac_file. $configure_input"
9524 { echo "$as_me:$LINENO: creating $ac_file" >&5
9525 echo "$as_me: creating $ac_file" >&6;}
9529 *:-:* | *:-) cat >"$tmp/stdin";;
9534 ac_dir=`$as_dirname -- "$ac_file" ||
9535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9536 X"$ac_file" : 'X\(//\)[^/]' \| \
9537 X"$ac_file" : 'X\(//\)$' \| \
9538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9559 -*) as_dir=./$as_dir;;
9561 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9565 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9566 *) as_qdir=$as_dir;;
9568 as_dirs="'$as_qdir' $as_dirs"
9569 as_dir=`$as_dirname -- "$as_dir" ||
9570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9571 X"$as_dir" : 'X\(//\)[^/]' \| \
9572 X"$as_dir" : 'X\(//\)$' \| \
9573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9592 test -d "$as_dir" && break
9594 test -z "$as_dirs" || eval "mkdir $as_dirs"
9595 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9596 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9597 { (exit 1); exit 1; }; }; }
9601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9604 # A ".." for each directory in $ac_dir_suffix.
9605 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9606 case $ac_top_builddir_sub in
9607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9611 ac_abs_top_builddir=$ac_pwd
9612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9613 # for backward compatibility:
9614 ac_top_builddir=$ac_top_build_prefix
9617 .) # We are building in place.
9619 ac_top_srcdir=$ac_top_builddir_sub
9620 ac_abs_top_srcdir=$ac_pwd ;;
9621 [\\/]* | ?:[\\/]* ) # Absolute name.
9622 ac_srcdir=$srcdir$ac_dir_suffix;
9623 ac_top_srcdir=$srcdir
9624 ac_abs_top_srcdir=$srcdir ;;
9626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9627 ac_top_srcdir=$ac_top_build_prefix$srcdir
9628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9645 [\\/$]* | ?:[\\/]* ) ;;
9646 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9651 # Neutralize VPATH when `$srcdir' = `.'.
9652 # Shell code in configure.ac might set extrasub.
9653 # FIXME: do we really want to maintain this feature?
9654 cat >>$CONFIG_STATUS <<_ACEOF
9658 cat >>$CONFIG_STATUS <<\_ACEOF
9660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9661 s&@configure_input@&$configure_input&;t t
9662 s&@top_builddir@&$ac_top_builddir_sub&;t t
9663 s&@srcdir@&$ac_srcdir&;t t
9664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9665 s&@top_srcdir@&$ac_top_srcdir&;t t
9666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9667 s&@builddir@&$ac_builddir&;t t
9668 s&@abs_builddir@&$ac_abs_builddir&;t t
9669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9670 s&@INSTALL@&$ac_INSTALL&;t t
9671 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9672 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9677 -) cat "$tmp/out"; rm -f "$tmp/out";;
9678 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9687 # Transform confdefs.h into a sed script `conftest.defines', that
9688 # substitutes the proper values into config.h.in to produce config.h.
9689 rm -f conftest.defines conftest.tail
9690 # First, append a space to every undef/define line, to ease matching.
9691 echo 's/$/ /' >conftest.defines
9692 # Then, protect against being on the right side of a sed subst, or in
9693 # an unquoted here document, in config.status. If some macros were
9694 # called several times there might be several #defines for the same
9695 # symbol, which is useless. But do not sort them, since the last
9696 # AC_DEFINE must be honored.
9697 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9698 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9699 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9700 # PARAMS is the parameter list in the macro definition--in most cases, it's
9701 # just an empty string.
9702 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9703 ac_dB='\\)[ (].*,\\1define\\2'
9711 s/^[ ]*#[ ]*define[ ][ ]*//
9716 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9717 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9718 ' >>conftest.defines
9720 # Remove the space that was appended to ease matching.
9721 # Then replace #undef with comments. This is necessary, for
9722 # example, in the case of _POSIX_SOURCE, which is predefined and required
9723 # on some systems where configure will not decide to define it.
9724 # (The regexp can be short, since the line contains either #define or #undef.)
9726 s,^[ #]*u.*,/* & */,' >>conftest.defines
9728 # Break up conftest.defines:
9731 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9732 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9733 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9735 ac_in='$ac_file_inputs'
9736 ac_out='"$tmp/out1"'
9737 ac_nxt='"$tmp/out2"'
9741 # Write a here document:
9742 cat >>$CONFIG_STATUS <<_ACEOF
9743 # First, check the format of the line:
9744 cat >"\$tmp/defines.sed" <<\\CEOF
9745 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9746 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9750 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9752 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9753 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9754 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9755 grep . conftest.tail >/dev/null || break
9756 rm -f conftest.defines
9757 mv conftest.tail conftest.defines
9759 rm -f conftest.defines conftest.tail
9761 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9762 cat >>$CONFIG_STATUS <<\_ACEOF
9763 if test x"$ac_file" != x-; then
9764 echo "/* $configure_input */" >"$tmp/config.h"
9765 cat "$ac_result" >>"$tmp/config.h"
9766 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9767 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9768 echo "$as_me: $ac_file is unchanged" >&6;}
9771 mv "$tmp/config.h" $ac_file
9774 echo "/* $configure_input */"
9778 # Compute $ac_file's index in $config_headers.
9781 for _am_header in $config_headers :; do
9783 $_am_arg | $_am_arg:* )
9786 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9789 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9790 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9791 X"$_am_arg" : 'X\(//\)[^/]' \| \
9792 X"$_am_arg" : 'X\(//\)$' \| \
9793 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9811 s/.*/./; q'`/stamp-h$_am_stamp_count
9814 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9815 echo "$as_me: executing $ac_file commands" >&6;}
9820 case $ac_file$ac_mode in
9821 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9822 # Strip MF so we end up with the name of the file.
9823 mf=`echo "$mf" | sed -e 's/:.*$//'`
9824 # Check whether this is an Automake generated Makefile or not.
9825 # We used to match only the files named `Makefile.in', but
9826 # some people rename them; so instead we look at the file content.
9827 # Grep'ing the first line is not enough: some people post-process
9828 # each Makefile.in and add a new line on top of each file to say so.
9829 # Grep'ing the whole file is not good either: AIX grep has a line
9830 # limit of 2048, but all sed's we know have understand at least 4000.
9831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9832 dirpart=`$as_dirname -- "$mf" ||
9833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9834 X"$mf" : 'X\(//\)[^/]' \| \
9835 X"$mf" : 'X\(//\)$' \| \
9836 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9858 # Extract the definition of DEPDIR, am__include, and am__quote
9859 # from the Makefile without running `make'.
9860 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9861 test -z "$DEPDIR" && continue
9862 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9863 test -z "am__include" && continue
9864 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9865 # When using ansi2knr, U may be empty or an underscore; expand it
9866 U=`sed -n 's/^U = //p' < "$mf"`
9867 # Find all dependency output files, they are included files with
9868 # $(DEPDIR) in their names. We invoke sed twice because it is the
9869 # simplest approach to changing $(DEPDIR) to its actual value in the
9871 for file in `sed -n "
9872 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9873 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9874 # Make sure the directory exists.
9875 test -f "$dirpart/$file" && continue
9876 fdir=`$as_dirname -- "$file" ||
9877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878 X"$file" : 'X\(//\)[^/]' \| \
9879 X"$file" : 'X\(//\)$' \| \
9880 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9899 { as_dir=$dirpart/$fdir
9901 -*) as_dir=./$as_dir;;
9903 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9907 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9908 *) as_qdir=$as_dir;;
9910 as_dirs="'$as_qdir' $as_dirs"
9911 as_dir=`$as_dirname -- "$as_dir" ||
9912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9913 X"$as_dir" : 'X\(//\)[^/]' \| \
9914 X"$as_dir" : 'X\(//\)$' \| \
9915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9934 test -d "$as_dir" && break
9936 test -z "$as_dirs" || eval "mkdir $as_dirs"
9937 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9938 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9939 { (exit 1); exit 1; }; }; }
9940 # echo "creating $dirpart/$file"
9941 echo '# dummy' > "$dirpart/$file"
9950 { (exit 0); exit 0; }
9952 chmod +x $CONFIG_STATUS
9953 ac_clean_files=$ac_clean_files_save
9956 # configure is writing to config.log, and then calls config.status.
9957 # config.status does its own redirection, appending to config.log.
9958 # Unfortunately, on DOS this fails, as config.log is still kept open
9959 # by configure, so config.status won't be able to write to it; its
9960 # output is simply discarded. So we exec the FD to /dev/null,
9961 # effectively closing config.log, so it can be properly (re)opened and
9962 # appended to by config.status. When coming back to configure, we
9963 # need to make the FD available again.
9964 if test "$no_create" != yes; then
9966 ac_config_status_args=
9967 test "$silent" = yes &&
9968 ac_config_status_args="$ac_config_status_args --quiet"
9970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9973 # would make configure fail if this is the last instruction.
9974 $ac_cs_success || { (exit 1); exit 1; }