version 1.10, 2002/01/17 01:03:21 |
version 1.11, 2002/01/23 23:03:24 |
|
|
dnl |
dnl |
dnl Process this file with GNU autoconf to produce a configure script. |
dnl Process this file with GNU autoconf to produce a configure script. |
dnl $Sudo: configure.in,v 1.346 2002/01/16 23:37:34 millert Exp $ |
dnl $Sudo: configure.in,v 1.348 2002/01/22 02:01:09 millert Exp $ |
dnl |
dnl |
dnl Copyright (c) 1994-1996,1998-2002 Todd C. Miller <Todd.Miller@courtesan.com> |
dnl Copyright (c) 1994-1996,1998-2002 Todd C. Miller <Todd.Miller@courtesan.com> |
dnl |
dnl |
|
|
esac |
esac |
], AC_MSG_RESULT(no)) |
], AC_MSG_RESULT(no)) |
|
|
|
AC_ARG_ENABLE(setreuid, |
|
[ --disable-setreuid Don't try to use the setreuid() function], |
|
[ case "$enableval" in |
|
no) BROKEN_SETREUID=1 |
|
;; |
|
*) ;; |
|
esac |
|
]) |
|
|
AC_MSG_CHECKING(whether to disable use of POSIX saved ids) |
AC_MSG_CHECKING(whether to disable use of POSIX saved ids) |
AC_ARG_ENABLE(saved-ids, |
AC_ARG_ENABLE(saved-ids, |
[ --disable-saved-ids Don't try to use POSIX saved ids], |
[ --disable-saved-ids Don't try to use POSIX saved ids], |
|
|
test -n "$mansectform" || mansectform=4 |
test -n "$mansectform" || mansectform=4 |
;; |
;; |
*-*-bsdi*) |
*-*-bsdi*) |
|
BROKEN_SETREUID=yes |
# Use shlicc for BSD/OS [23].x unless asked to do otherwise |
# Use shlicc for BSD/OS [23].x unless asked to do otherwise |
if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then |
if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then |
case "$OSREV" in |
case "$OSREV" in |
|
|
fi |
fi |
;; |
;; |
*-*-freebsd*) |
*-*-freebsd*) |
|
# FreeBSD has a real setreuid(2) starting with 2.1 and |
|
# backported to 2.0.5. We just take 2.1 and above... |
|
case "`echo $host_os | sed 's/^freebsd\([[0-9\.]]*\).*$/\1/'`" in |
|
0.*|1.*|2.0*) |
|
BROKEN_SETREUID=yes |
|
;; |
|
esac |
if test "$with_logincap" = "yes"; then |
if test "$with_logincap" = "yes"; then |
SUDO_LIBS="${SUDO_LIBS} -lutil" |
SUDO_LIBS="${SUDO_LIBS} -lutil" |
fi |
fi |
|
|
fi |
fi |
;; |
;; |
*-*-*netbsd*) |
*-*-*netbsd*) |
BROKEN_SETREUID=yes |
# NetBSD has a real setreuid(2) starting with 1.3.2 |
|
case "`echo $host_os | sed 's/^netbsd\([[0-9\.]]*\).*$/\1/'`" in |
|
0.9*|1.[012]*|1.3|1.3.1) |
|
BROKEN_SETREUID=yes |
|
;; |
|
esac |
if test "$CHECKSHADOW" = "true"; then |
if test "$CHECKSHADOW" = "true"; then |
CHECKSHADOW="false" |
CHECKSHADOW="false" |
fi |
fi |
|
|
AC_CHECK_FUNCS(setreuid) |
AC_CHECK_FUNCS(setreuid) |
fi |
fi |
if test X"$with_interfaces" != X"no"; then |
if test X"$with_interfaces" != X"no"; then |
AC_CHECK_FUNCS(getifaddrs) |
AC_CHECK_FUNCS(getifaddrs, AC_CHECK_FUNCS(freeifaddrs)) |
fi |
fi |
if test -n "$SECUREWARE"; then |
if test -n "$SECUREWARE"; then |
AC_CHECK_FUNCS(bigcrypt set_auth_parameters initprivs) |
AC_CHECK_FUNCS(bigcrypt set_auth_parameters initprivs) |