2010-03-03 11:38:51 +03:00
######
2006-04-29 16:39:19 +04:00
AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h )
2007-07-03 10:17:39 +04:00
case "$host_os" in
*linux*)
2010-03-09 13:14:50 +03:00
if test x"$MERGED_BUILD" != x"1"; then
2010-02-28 23:02:00 +03:00
SMB_BUILD_LIBRARY(nss_winbind,
2008-12-16 12:06:04 +03:00
[../nsswitch/winbind_nss_linux.o],
2008-03-28 02:44:14 +03:00
[LIBWINBIND-CLIENT])
2010-03-09 14:24:59 +03:00
SMB_MAKE_SETTINGS([nss_winbind_VERSION = 2])
SMB_MAKE_SETTINGS([nss_winbind_SOVERSION = 2])
2010-03-09 13:14:50 +03:00
fi
2007-07-03 10:17:39 +04:00
;;
*)
;;
esac
2010-03-03 11:38:51 +03:00
#####
#####
#All the pam requirement tests are regrouped here
#It is mandatory not to remove them otherwise it will break badly the source4/auth part
AC_CHECK_HEADERS(security/pam_appl.h)
AC_CHECK_LIB_EXT(pam, PAM_LIBS, pam_start)
# This part is need for the compilation
AC_CHECK_HEADERS(security/pam_modules.h pam/pam_modules.h,,,[[
#if HAVE_SECURITY_PAM_APPL_H
#include <security/pam_appl.h>
#endif
#if HAVE_PAM_PAM_APPL_H
#include <pam/pam_appl.h>
#endif
]])
SMB_EXT_LIB(PAM, $PAM_LIBS)
if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then
SMB_ENABLE(PAM,YES)
2010-03-03 11:38:51 +03:00
if test x"$MERGED_BUILD" != x"1"; then
SMB_BUILD_LIBRARY(pam_winbind,[../nsswitch/pam_winbind.o],
[LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER PAM],
[-DLOCALEDIR=\\\"${datarootdir}/locale\\\"],
[],
[../nsswitch/pam_winbind.\$(SHLIBEXT)])
fi
2010-03-03 11:38:51 +03:00
fi
#####