projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use double parens on AC_CHECK_MEMBERS
[gnulib.git]
/
m4
/
lib-check.m4
diff --git
a/m4/lib-check.m4
b/m4/lib-check.m4
index
bf49153
..
5b13f01
100644
(file)
--- a/
m4/lib-check.m4
+++ b/
m4/lib-check.m4
@@
-1,8
+1,8
@@
-#serial
1
+#serial
2
dnl Misc lib-related macros for fileutils, sh-utils, textutils.
dnl Misc lib-related macros for fileutils, sh-utils, textutils.
-AC_DEFUN(jm_
MACROS
,
+AC_DEFUN(jm_
LIB_CHECK
,
[
# Check for libypsec.a on Dolphin M88K machines.
[
# Check for libypsec.a on Dolphin M88K machines.
@@
-42,8
+42,10
@@
AC_DEFUN(jm_MACROS,
# shadow passwords.
AC_SEARCH_LIBS(getspnam, [shadow sec])
# 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.
# SCO-ODT-3.0 is reported to need -lufc for crypt.
# NetBSD needs -lcrypt for crypt.