1 AC_DEFUN([rk_FRAMEWORK_SECURITY], [
3 AC_MSG_CHECKING([for framework security])
4 AC_CACHE_VAL(rk_cv_framework_security,
6 if test "$rk_cv_framework_security" != yes; then
8 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
9 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <Security/Security.h>
11 [[SecKeychainSearchRef searchRef;
12 SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
13 CFRelease(&searchRef);
14 ]])],[rk_cv_framework_security=yes])
19 if test "$rk_cv_framework_security" = yes; then
20 AC_DEFINE(HAVE_FRAMEWORK_SECURITY, 1, [Have -framework Security])
25 AM_CONDITIONAL(FRAMEWORK_SECURITY, test "$rk_cv_framework_security" = yes)
27 if test "$rk_cv_framework_security" = yes; then
28 AC_NEED_PROTO([#include <Security/Security.h>],SecKeyGetCSPHandle)