1 AC_DEFUN([rk_FRAMEWORK_COREFOUNDATION], [
3 AC_MSG_CHECKING([for framework CoreFoundation])
4 AC_CACHE_VAL(rk_cv_framework_corefoundation,
6 if test "$rk_cv_framework_corefoundation" != yes; then
8 LIBS="$ac_save_LIBS -framework CoreFoundation"
9 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <CoreFoundation/CoreFoundation.h>
13 url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 *)
14 path, strlen(path), FALSE);
16 ]])],[rk_cv_framework_corefoundation=yes])
21 if test "$rk_cv_framework_corefoundation" = yes; then
22 AC_DEFINE(HAVE_FRAMEWORK_COREFOUNDATION, 1, [Have -framework CoreFoundation])
27 AM_CONDITIONAL(FRAMEWORK_COREFOUNDATION, test "$rk_cv_framework_corefoundation" = yes)