changeset 2231:53f2c5e990f9

Clean up some kludgy old shadow password tests.
author Jim Meyering <jim@meyering.net>
date Sun, 30 Jan 2000 16:48:19 +0000
parents d7cbccae7e0b
children 4a06ed43360d
files m4/lib-check.m4
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/m4/lib-check.m4
+++ b/m4/lib-check.m4
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
 
 dnl Misc lib-related macros for fileutils, sh-utils, textutils.
 
@@ -42,8 +42,10 @@
   # shadow passwords.
   AC_SEARCH_LIBS(getspnam, [shadow sec])
 
-  AC_EGREP_HEADER(sp_pwdp, shadow.h,
-		  AC_CHECK_FUNC(getspnam, AC_DEFINE(HAVE_SHADOW_H)))
+  # Requirements for su.c.
+  AC_CHECK_MEMBERS(struct passwd.sp_pwdp)
+  AC_CHECK_FUNCS(getspnam)
+  AC_CHECK_HEADERS(shadow.h)
 
   # SCO-ODT-3.0 is reported to need -lufc for crypt.
   # NetBSD needs -lcrypt for crypt.