Disable use of wxSecretStore with wxGTK1

libsecret is for GTK+ 2+ only and can't be used with GTK+ 1.
This commit is contained in:
Vadim Zeitlin
2018-07-09 00:24:35 +02:00
parent a74058a958
commit 2034f6683b
2 changed files with 10 additions and 15 deletions

View File

@@ -5419,7 +5419,10 @@ dnl ---------------------------------------------------------------------------
if test "$wxUSE_SECRETSTORE" = "yes"; then
dnl The required APIs are always available under MSW and OS X but we must
dnl have GNOME libsecret under Unix to be able to compile this class.
if test "$wxUSE_MSW" != "1" -a "$wxUSE_OSX_COCOA" != 1; then
if test "$WXGTK1" = "1"; then
AC_MSG_WARN([libsecret is incompatible with GTK+ 1, disabled])
wxUSE_SECRETSTORE=no
elif test "$wxUSE_MSW" != "1" -a "$wxUSE_OSX_COCOA" != 1; then
PKG_CHECK_MODULES(LIBSECRET, [libsecret-1],
[
CXXFLAGS="$LIBSECRET_CFLAGS $CXXFLAGS"