Home | History | Annotate | Line # | Download | only in cf
krb-struct-spwd.m4 revision 1.1
      1  1.1  elric dnl $Id: krb-struct-spwd.m4,v 1.1 2011/04/13 18:14:32 elric Exp $
      2  1.1  elric dnl
      3  1.1  elric dnl Test for `struct spwd'
      4  1.1  elric 
      5  1.1  elric AC_DEFUN([AC_KRB_STRUCT_SPWD], [
      6  1.1  elric AC_MSG_CHECKING(for struct spwd)
      7  1.1  elric AC_CACHE_VAL(ac_cv_struct_spwd, [
      8  1.1  elric AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
      9  1.1  elric #include <pwd.h>
     10  1.1  elric #ifdef HAVE_SHADOW_H
     11  1.1  elric #include <shadow.h>
     12  1.1  elric #endif]],[[struct spwd foo;]])],
     13  1.1  elric [ac_cv_struct_spwd=yes],
     14  1.1  elric [ac_cv_struct_spwd=no])
     15  1.1  elric ])
     16  1.1  elric AC_MSG_RESULT($ac_cv_struct_spwd)
     17  1.1  elric 
     18  1.1  elric if test "$ac_cv_struct_spwd" = "yes"; then
     19  1.1  elric   AC_DEFINE(HAVE_STRUCT_SPWD, 1, [define if you have struct spwd])
     20  1.1  elric fi
     21  1.1  elric ])
     22