]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: cleanup BUILD_LOGIN_UTILS
authorKarel Zak <kzak@redhat.com>
Thu, 27 Oct 2011 14:28:35 +0000 (16:28 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Nov 2011 11:32:50 +0000 (12:32 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/TODO
configure.ac

index 583a96aface8be42c03ab266d93eeb9702a684e5..69ac92a17d4810466d128ceffd0771cd17678567 100644 (file)
@@ -150,6 +150,8 @@ login-utils:
 -----------
 
  - use err() and warn() macros rather than fprintf(stderr, ...)
+ - (!) merge newgrp from shadow-utils
+ - (!) enable login utils by default
 
 libblkid
 --------
index cceb54b62a3c4234fe6800f06e7e20abe5e9e6c6..9a161684dd8f25d10ed6aed76cafd2008c0e32a4 100644 (file)
@@ -172,6 +172,7 @@ AC_CHECK_HEADERS(
        sys/user.h \
        sys/swap.h \
        sys/resource.h \
+       security/pam_misc.h \
        linux/raw.h \
        unistd.h ])
 
@@ -182,6 +183,7 @@ AC_CHECK_HEADERS([langinfo.h],
 dnl Convert some ac_cv_header_* variables to have_*
 dnl
 have_linux_raw_h=$ac_cv_header_linux_raw_h
+have_security_pam_misc_h=$ac_cv_header_security_pam_misc_h
 
 
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
@@ -906,12 +908,9 @@ AC_ARG_ENABLE([login-utils],
   AS_HELP_STRING([--enable-login-utils], [build chfn, chsh, login, newgrp, vipw]),
   [], enable_login_utils=no
 )
-AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$enable_login_utils" = xyes)
-
-if test "x$enable_login_utils" = xyes; then
-  AC_CHECK_HEADERS([security/pam_misc.h], [],
-    [AC_MSG_ERROR([login-utils enabled, but security/pam_misc.h not found])])
-fi
+build_login_utils=yes
+UL_REQUIRES_HAVE([login_utils], [security_pam_misc_h], [PAM header file])
+AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$build_login_utils" = xyes)
 
 
 AC_ARG_WITH([selinux],