Added HAVE_OSX_SECKEYCHAIN.
diff --git a/config.h.in b/config.h.in
index 7d5216d..afe71b3 100644
--- a/config.h.in
+++ b/config.h.in
@@ -30,6 +30,9 @@
/* 1 if have memset in memory.h. */
#undef HAVE_MEMSET
+/* 1 if have OSX SecKeychain. */
+#undef HAVE_OSX_SECKEYCHAIN
+
/* Have the SQLITE3 library */
#undef HAVE_SQLITE3
diff --git a/configure b/configure
index 103a7dc..ed7f612 100755
--- a/configure
+++ b/configure
@@ -16425,6 +16425,46 @@
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX SecKeychain" >&5
+$as_echo_n "checking for OSX SecKeychain... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <CoreFoundation/CoreFoundation.h>
+ #include <Security/Security.h>
+ #include <CoreServices/CoreServices.h>
+ void test() { SecKeychainRef x; }
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSX_SECKEYCHAIN 1
+_ACEOF
+
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSX_SECKEYCHAIN 0
+_ACEOF
+
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
diff --git a/configure.ac b/configure.ac
index 3fda705..6cab8b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,6 +109,20 @@
AC_DEFINE_UNQUOTED([HAVE_STDINT], 0, [1 if have stdint.h.])
])
+AC_MSG_CHECKING([for OSX SecKeychain])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[#include <CoreFoundation/CoreFoundation.h>]]
+ [[#include <Security/Security.h>]]
+ [[#include <CoreServices/CoreServices.h>]]
+ [[void test() { SecKeychainRef x; }]])
+], [
+ AC_MSG_RESULT([yes])
+ AC_DEFINE_UNQUOTED([HAVE_OSX_SECKEYCHAIN], 1, [1 if have OSX SecKeychain.])
+], [
+ AC_MSG_RESULT([no])
+ AC_DEFINE_UNQUOTED([HAVE_OSX_SECKEYCHAIN], 0, [1 if have OSX SecKeychain.])
+])
+
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)