added SUDO_CHECK_SHADOW
This commit is contained in:
16
aclocal.m4
vendored
16
aclocal.m4
vendored
@@ -1,4 +1,5 @@
|
|||||||
dnl Local m4 macors for autoconf (used by sudo)
|
dnl Local m4 macors for autoconf (used by sudo)
|
||||||
|
snl XXX - should cache values in all cases!!!
|
||||||
dnl
|
dnl
|
||||||
dnl checks for programs
|
dnl checks for programs
|
||||||
|
|
||||||
@@ -110,6 +111,20 @@ else
|
|||||||
fi
|
fi
|
||||||
])dnl
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl check for shadow passwords
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(SUDO_CHECK_SHADOW, [AC_MSG_CHECKING(for shadow passwords)
|
||||||
|
AC_TRY_RUN([#include <pwd.h>
|
||||||
|
int main() {
|
||||||
|
struct passwd *pwd;
|
||||||
|
pwd = getpwuid(getuid());
|
||||||
|
return(!(pwd->pw_passwd == (char *) 0 || (pwd->pw_passwd[0] && pwd->pw_passwd [1] == '\0'))); }
|
||||||
|
], AC_MSG_RESULT(yes)
|
||||||
|
[$1], AC_MSG_RESULT(no)
|
||||||
|
[$2])])
|
||||||
|
|
||||||
|
dnl
|
||||||
dnl
|
dnl
|
||||||
dnl check for fullly working void
|
dnl check for fullly working void
|
||||||
dnl
|
dnl
|
||||||
@@ -118,6 +133,7 @@ AC_TRY_COMPILE(, [void *foo;
|
|||||||
foo = (void *)0; foo += 0;], AC_DEFINE(VOID, void)
|
foo = (void *)0; foo += 0;], AC_DEFINE(VOID, void)
|
||||||
AC_MSG_RESULT(yes), AC_DEFINE(VOID, char)
|
AC_MSG_RESULT(yes), AC_DEFINE(VOID, char)
|
||||||
AC_MSG_RESULT(no))])
|
AC_MSG_RESULT(no))])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl SUDO_CHECK_TYPE(TYPE, DEFAULT)
|
dnl SUDO_CHECK_TYPE(TYPE, DEFAULT)
|
||||||
dnl XXX - should require the check for unistd.h...
|
dnl XXX - should require the check for unistd.h...
|
||||||
|
Reference in New Issue
Block a user