[GTK] Make libsecret optional
https://bugs.webkit.org/show_bug.cgi?id=113821
Reviewed by Gustavo Noronha Silva.
.:
Add a configuration option to disable credential storage and thus remove
the libsecret dependency. This should make it possible to build WebKit 2.x
on Windows again.
* Source/autotools/FindDependencies.m4: Only look for libsecret if credential storage is active.
* Source/autotools/PrintBuildConfiguration.m4: Print whether or not credential storage is active.
* Source/autotools/ReadCommandLineArguments.m4: Added an option to control credential storage.
* Source/autotools/SetupAutoconfHeader.m4: Expose credential storage setting to code.
Source/WebCore:
Don't try to use libsecret if credential storage is disabled.
* platform/gtk/GRefPtrGtk.cpp: Protect libsecret sections.
* platform/gtk/GRefPtrGtk.h: Ditto.
* platform/network/gtk/CredentialBackingStore.cpp: Ditto.
git-svn-id: svn://svn.chromium.org/blink/trunk@147499 bbb929c8-8fbe-4397-9dbb-9b2b20218538
9 files changed