1178825SdfrAC_DEFUN([rk_FRAMEWORK_SECURITY], [ 2178825Sdfr 3178825SdfrAC_MSG_CHECKING([for framework security]) 4178825SdfrAC_CACHE_VAL(rk_cv_framework_security, 5178825Sdfr[ 6178825Sdfrif test "$rk_cv_framework_security" != yes; then 7178825Sdfr ac_save_LIBS="$LIBS" 8178825Sdfr LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation" 9178825Sdfr AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <Security/Security.h> 10178825Sdfr]], 11178825Sdfr[[SecKeychainSearchRef searchRef; 12178825SdfrSecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef); 13178825SdfrCFRelease(&searchRef); 14178825Sdfr]])],[rk_cv_framework_security=yes]) 15178825Sdfr LIBS="$ac_save_LIBS" 16178825Sdfrfi 17178825Sdfr]) 18178825Sdfr 19178825Sdfrif test "$rk_cv_framework_security" = yes; then 20178825Sdfr AC_DEFINE(HAVE_FRAMEWORK_SECURITY, 1, [Have -framework Security]) 21178825Sdfr AC_MSG_RESULT(yes) 22178825Sdfrelse 23178825Sdfr AC_MSG_RESULT(no) 24178825Sdfrfi 25178825SdfrAM_CONDITIONAL(FRAMEWORK_SECURITY, test "$rk_cv_framework_security" = yes) 26178825Sdfr 27178825Sdfrif test "$rk_cv_framework_security" = yes; then 28178825Sdfr AC_NEED_PROTO([#include <Security/Security.h>],SecKeyGetCSPHandle) 29178825Sdfrfi 30178825Sdfr 31178825Sdfr]) 32