diff options
author | Karel Zak | 2017-08-30 11:30:41 +0200 |
---|---|---|
committer | Karel Zak | 2017-08-30 11:30:41 +0200 |
commit | 49a3d609ed9a4071761bc228ff3f76dc69f954b0 (patch) | |
tree | 8c3c6ed2c029ea49bb615a2cc0385341e1fecdde /configure.ac | |
parent | chsh: remove local /etc/shells parsing in favour of getusershell(3) (diff) | |
download | kernel-qcow2-util-linux-49a3d609ed9a4071761bc228ff3f76dc69f954b0.tar.gz kernel-qcow2-util-linux-49a3d609ed9a4071761bc228ff3f76dc69f954b0.tar.xz kernel-qcow2-util-linux-49a3d609ed9a4071761bc228ff3f76dc69f954b0.zip |
build-sys: define dependence between chsh and getusershell
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 592bd587e..1dccb420c 100644 --- a/configure.ac +++ b/configure.ac @@ -445,6 +445,7 @@ AC_CHECK_FUNCS([inotify_init1], [have_inotify_init1=yes]) AC_CHECK_FUNCS([open_memstream], [have_open_memstream=yes],[have_open_memstream=no]) AC_CHECK_FUNCS([reboot], [have_reboot=yes],[have_reboot=no]) AC_CHECK_FUNCS([updwtmpx updwtmpx], [have_gnu_utmpx=yes], [have_gnu_utmpx=no]) +AC_CHECK_FUNCS([getusershell], [have_getusershell=yes],[have_getusershell=no]) AM_CONDITIONAL([HAVE_OPENAT], [test "x$have_openat" = xyes]) @@ -1813,6 +1814,7 @@ AC_ARG_ENABLE([chfn-chsh], ) UL_BUILD_INIT([chfn_chsh]) UL_REQUIRES_HAVE([chfn_chsh], [shadow_h], [shadow.h header]) +UL_REQUIRES_HAVE([chfn_chsh], [getusershell], [getusershell function]) AS_IF([test "x$enable_chfn_chsh_password" = xyes -o "x$have_user" = xyes], [ UL_REQUIRES_HAVE([chfn_chsh], [security_pam_appl_h], [PAM header file]) |