=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/configure,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** src/usr.bin/sudo/Attic/configure 2007/10/17 04:26:04 1.30 --- src/usr.bin/sudo/Attic/configure 2007/10/25 16:08:12 1.31 *************** *** 13674,13679 **** --- 13674,13684 ---- #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF + case "$OS" in + freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil" + ;; + esac + fi done *************** *** 14068,14077 **** #include #if TIME_WITH_SYS_TIME # include - # include - #else - # include #endif typedef struct timespec ac__type_new_; int --- 14073,14080 ---- #include #if TIME_WITH_SYS_TIME # include #endif + #include typedef struct timespec ac__type_new_; int *************** *** 14121,14126 **** --- 14124,14196 ---- fi + { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 + echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } + if test "${ac_cv_type_struct_in6_addr+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + #include + #include + + typedef struct in6_addr ac__type_new_; + int + main () + { + if ((ac__type_new_ *) 0) + return 0; + if (sizeof (ac__type_new_)) + return 0; + ; + return 0; + } + _ACEOF + rm -f conftest.$ac_objext + if { (ac_try="$ac_compile" + case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; + esac + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_struct_in6_addr=yes + else + echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_struct_in6_addr=no + fi + + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5 + echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; } + if test $ac_cv_type_struct_in6_addr = yes; then + + cat >>confdefs.h <<_ACEOF + #define HAVE_STRUCT_IN6_ADDR 1 + _ACEOF + + cat >>confdefs.h <<\_ACEOF + #define HAVE_IN6_ADDR 1 + _ACEOF + + fi + { echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } if test "${sudo_cv_type_size_t+set}" = set; then *************** *** 20535,20547 **** LIBS="$_LIBS" fi - if test ${with_logincap-'no'} = "yes"; then - case "$OS" in - freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil" - ;; - esac - fi - if test ${with_AFS-'no'} = "yes"; then # looks like the "standard" place for AFS libs is /usr/afsws/lib --- 20605,20610 ---- *************** *** 23245,23250 **** --- 23308,23315 ---- ;; esac fi + +