[network-manager-libreswan/th/vpn-editor-split-bgo766623: 10/18] build: use stable libsecret-1 instead of libsecret-unstable
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-libreswan/th/vpn-editor-split-bgo766623: 10/18] build: use stable libsecret-1 instead of libsecret-unstable
- Date: Wed, 18 May 2016 19:03:14 +0000 (UTC)
commit 4e63fec0e3d80962100e8b4f34bb8d0ece3d713f
Author: Thomas Haller <thaller redhat com>
Date: Tue May 10 13:20:39 2016 +0200
build: use stable libsecret-1 instead of libsecret-unstable
auth-dialog/main.c | 1 -
configure.ac | 6 +++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 92030dd..2d122d3 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -26,7 +26,6 @@
#include <errno.h>
#include <string.h>
-#define SECRET_API_SUBJECT_TO_CHANGE
#include <libsecret/secret.h>
#include <nma-vpn-password-dialog.h>
diff --git a/configure.ac b/configure.ac
index 19ee0a6..2e33003 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,7 +76,11 @@ if test x"$with_gnome" != xno; then
GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4"
PKG_CHECK_MODULES(LIBNMA, libnma >= 1.1.0)
- PKG_CHECK_MODULES(LIBSECRET, libsecret-unstable)
+ PKG_CHECK_MODULES(LIBSECRET, libsecret-1 >= 0.18, [], [
+ dnl We use the secret service API that went stable in 0.18
+ PKG_CHECK_MODULES(LIBSECRET, libsecret-unstable)
+ LIBSECRET_CFLAGS="$LIBSECRET_CFLAGS -DSECRET_API_SUBJECT_TO_CHANGE"
+ ])
if test x"$with_libnm_glib" != xno; then
PKG_CHECK_MODULES(LIBNM_GTK, libnm-gtk >= 1.1.0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]