7366N/AAutomatically enable the pidgin-gnome-keyring plugin so that account
7366N/Apasswords can be saved in the system keyring rather than as cleartext
7366N/ASee PSARC/2016/385 for more details.
7366N/AThis patch will not be submitted upsteam.
5089N/A+dnl #######################################################################
5089N/A+dnl # Check for gnome-keyring
5089N/A+dnl #--enable-gnome-keyring=(yes|no)
5089N/A+dnl #######################################################################
5089N/A+AC_ARG_ENABLE(gnome-keyring,
7366N/A+AC_HELP_STRING([--enable-gnome-keyring],
7366N/A+ [use gnome keyring for storing password [default=no]]),,
5089N/A+if test "x$enable_gnome_keyring" = "xyes"; then
5089N/A+ PKG_CHECK_MODULES(GAIM_KEYRING,
5089N/A+ AC_DEFINE(GAIM_ENABLE_KEYRING, [], [Set if we should use gnome-keyring]))
5089N/A AC_MSG_CHECKING(for me pot o' gold)
5089N/A AC_CHECK_FUNCS(gethostid lrand48 timegm)
7366N/A+ /* Potentially load the gnome keyring plugin here because we need to
7366N/A+ * have had a couple signals registered by purple_accounts_init() first.
7366N/A+ purple_plugin_load_gnome_keyring_plugin();
7366N/A purple_savedstatuses_init();
7366N/A void purple_plugin_action_free(PurplePluginAction *action);
7366N/A+ * Potentially load the gnome keyring plugin.
7366N/A+void purple_plugin_load_gnome_keyring_plugin(void);
7366N/A+static PurplePlugin *gnome_keyring_plugin = NULL;
7366N/A static GList *search_paths = NULL;
7366N/A static GList *plugins = NULL;
7366N/A static GList *loaded_plugins = NULL;
7366N/A gboolean (*purple_init_plugin)(PurplePlugin *);
7366N/A+ gboolean is_gnome_keyring = FALSE;
7366N/A purple_debug_misc("plugins", "probing %s\n", filename);
7366N/A g_return_val_if_fail(filename != NULL, NULL);
7366N/A /* If this plugin has already been probed then exit */
7366N/A basename = purple_plugin_get_basename(filename);
7366N/A plugin = purple_plugins_find_with_basename(basename);
7366N/A+ if (!strcmp(basename, "gnome-keyring"))
7366N/A+ purple_debug_misc("plugins", "setting gnome_keyring_plugin.\n");
7366N/A+ gnome_keyring_plugin = plugin;
7366N/A+purple_plugin_load_gnome_keyring_plugin()
7366N/A+ purple_debug_misc("plugins", "purple_plugin_load_gnome_keyring_plugin called.\n");
7366N/A+ if (gnome_keyring_plugin != NULL) {
7366N/A+ purple_debug_misc("plugins", "purple_plugin_load_gnome_keyring_plugin: calling purple_plugin_load.\n");
7366N/A+ purple_plugin_load(gnome_keyring_plugin);