* configure.in: Fix the dependency of ACCT_TOOLS_SETUID on

USE_PAM. Build failed with --without-libpam.
This commit is contained in:
nekral-guest 2008-09-07 20:40:41 +00:00
parent f91b828708
commit 70c9eeff05
2 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Fix the dependency of ACCT_TOOLS_SETUID on
USE_PAM. Build failed with --without-libpam.
2008-09-07 Nicolas François <nicolas.francois@centraliens.net> 2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c, configure.in: Check for the presence of * libmisc/copydir.c, configure.in: Check for the presence of

View File

@ -230,7 +230,7 @@ AC_ARG_ENABLE(account-tools-setuid,
*) AC_MSG_ERROR(bad value ${enableval} for --enable-account-tools-setuid) *) AC_MSG_ERROR(bad value ${enableval} for --enable-account-tools-setuid)
;; ;;
esac], esac],
[enable_acct_tools_setuid="yes"] [enable_acct_tools_setuid="maybe"]
) )
AC_ARG_WITH(audit, AC_ARG_WITH(audit,
@ -431,14 +431,20 @@ else
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
fi fi
if test "$enable_acct_tools_setuid" = "yes"; then if test "$enable_acct_tools_setuid" != "no"; then
if test "$with_libpam" != "yes"; then if test "$with_libpam" != "yes"; then
if test "$enable_acct_tools_setuid" = "yes"; then
AC_MSG_ERROR(PAM support is required for --enable-account-tools-setuid) AC_MSG_ERROR(PAM support is required for --enable-account-tools-setuid)
else
enable_acct_tools_setuid="no"
fi fi
fi
if "$enable_acct_tools_setuid" = "yes"; then
AC_DEFINE(ACCT_TOOLS_SETUID, AC_DEFINE(ACCT_TOOLS_SETUID,
1, 1,
[Define if account management tools should be installed setuid and authenticate the callers]) [Define if account management tools should be installed setuid and authenticate the callers])
fi fi
fi
AM_CONDITIONAL(ACCT_TOOLS_SETUID, test "x$enable_acct_tools_setuid" = "xyes") AM_CONDITIONAL(ACCT_TOOLS_SETUID, test "x$enable_acct_tools_setuid" = "xyes")
AC_SUBST(LIBSKEY) AC_SUBST(LIBSKEY)