No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / krb-struct-spwd.m4
blob93f64ecd54e055cdae00316d1856d1b565c8cabc
1 dnl $Heimdal: krb-struct-spwd.m4 14166 2004-08-26 12:35:42Z joda $
2 dnl $NetBSD$
3 dnl
4 dnl Test for `struct spwd'
6 AC_DEFUN([AC_KRB_STRUCT_SPWD], [
7 AC_MSG_CHECKING(for struct spwd)
8 AC_CACHE_VAL(ac_cv_struct_spwd, [
9 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
10 #include <pwd.h>
11 #ifdef HAVE_SHADOW_H
12 #include <shadow.h>
13 #endif]],[[struct spwd foo;]])],
14 [ac_cv_struct_spwd=yes],
15 [ac_cv_struct_spwd=no])
17 AC_MSG_RESULT($ac_cv_struct_spwd)
19 if test "$ac_cv_struct_spwd" = "yes"; then
20   AC_DEFINE(HAVE_STRUCT_SPWD, 1, [define if you have struct spwd])