mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix MacOSX keyring test in configure to work and make gnc-keyring.c compile if it does.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18999 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
fe6d35d6bf
commit
6d6a1eac8a
11
configure.in
11
configure.in
@ -1081,15 +1081,16 @@ esac
|
||||
|
||||
###-----------------------------------------------------------------------
|
||||
## Find a suitable password store
|
||||
|
||||
if test x$host_os = xdarwin
|
||||
then
|
||||
|
||||
case $host_os in
|
||||
darwin*)
|
||||
AC_DEFINE(HAVE_OSX_KEYCHAIN,1,[System has an OS X Key chain])
|
||||
else
|
||||
;;
|
||||
*)
|
||||
PKG_CHECK_MODULES(GNOME_KEYRING, gnome-keyring-1 >= "0.6",
|
||||
[AC_DEFINE(HAVE_GNOME_KEYRING,1,[System has gnome-keyring 0.6 or better])],
|
||||
[AC_DEFINE(HAVE_NO_KEYRING,1,[System has no suitable keyring service])])
|
||||
fi
|
||||
esac
|
||||
### ----------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE( efence,
|
||||
|
@ -30,7 +30,10 @@
|
||||
#include <gnome-keyring.h>
|
||||
#endif
|
||||
#ifdef HAVE_OSX_KEYCHAIN
|
||||
# if 0
|
||||
/* FIXME The OSX part hasn't been tested yet */
|
||||
#include <SecKeychain.h>
|
||||
# endif /* 0 */
|
||||
#endif
|
||||
|
||||
/* This static indicates the debugging module that this .o belongs to. */
|
||||
@ -60,7 +63,7 @@ void gnc_keyring_set_password (const gchar *access_method,
|
||||
}
|
||||
#endif /* HAVE_GNOME_KEYRING */
|
||||
#ifdef HAVE_OSX_KEYCHAIN
|
||||
# ifdef 0
|
||||
# if 0
|
||||
/* FIXME The OSX part hasn't been tested yet */
|
||||
OSStatus status;
|
||||
SecKeychainItemRef *itemRef = NULL;
|
||||
@ -113,7 +116,7 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
|
||||
GnomeKeyringNetworkPasswordData *found;
|
||||
#endif
|
||||
#ifdef HAVE_OSX_KEYCHAIN
|
||||
# ifdef 0
|
||||
# if 0
|
||||
/* FIXME The OSX part hasn't been tested yet */
|
||||
void *password_data;
|
||||
UInt32 password_length;
|
||||
@ -146,7 +149,7 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
|
||||
gnome_keyring_network_password_list_free(found_list);
|
||||
#endif /* HAVE_GNOME_KEYRING */
|
||||
#ifdef HAVE_OSX_KEYCHAIN
|
||||
# ifdef 0
|
||||
# if 0
|
||||
/* FIXME The OSX part hasn't been tested yet */
|
||||
void *password_data;
|
||||
UInt32 password_length;
|
||||
|
Loading…
Reference in New Issue
Block a user