[network-manager-applet/lr/pkcs11: 4/9] gcrconf



commit 76092c37d628d33d1fec68d627a663ed89de2a85
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Sun Feb 19 13:14:52 2017 +0000

    gcrconf

 configure.ac |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a390dc7..f6ec24a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,18 @@ else
 fi
 AM_CONDITIONAL(WITH_JANSSON, test "${with_team}" != "no")
 
+dnl Gcr for PKCS#11 certificate picker
+AC_ARG_WITH(gcr, AS_HELP_STRING([--with-gcr], [Enable PKCS#11 certificate chooser (default: yes)]))
+if (test "${with_gcr}" == "no"); then
+    AC_DEFINE(WITH_GCR, 0, [Define if Gcr is available])
+else
+    PKG_CHECK_MODULES(GCR,
+                      [gcr-3 >= 3.20],,
+                      AC_MSG_ERROR([gcr is needed for certificate chooser. Use --without-gcr to build 
without it.]))
+    AC_DEFINE(WITH_GCR, 1, [Define if Gcr is available])
+fi
+AM_CONDITIONAL(WITH_GCR, test "${with_gcr}" != "no")
+
 dnl Check for gobject introspection
 GOBJECT_INTROSPECTION_CHECK([0.9.6])
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]