source: heimdal/trunk/cf/krb-struct-spwd.m4@ 4

Last change on this file since 4 was 1, checked in by Paul Smedley, 10 years ago

Initial commit of Heimdal 1.5.3

File size: 473 bytes
Line 
1dnl $Id$
2dnl
3dnl Test for `struct spwd'
4
5AC_DEFUN([AC_KRB_STRUCT_SPWD], [
6AC_MSG_CHECKING(for struct spwd)
7AC_CACHE_VAL(ac_cv_struct_spwd, [
8AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
9#include <pwd.h>
10#ifdef HAVE_SHADOW_H
11#include <shadow.h>
12#endif]],[[struct spwd foo;]])],
13[ac_cv_struct_spwd=yes],
14[ac_cv_struct_spwd=no])
15])
16AC_MSG_RESULT($ac_cv_struct_spwd)
17
18if test "$ac_cv_struct_spwd" = "yes"; then
19 AC_DEFINE(HAVE_STRUCT_SPWD, 1, [define if you have struct spwd])
20fi
21])
Note: See TracBrowser for help on using the repository browser.