summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-10-14 10:47:13 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-10-23 14:05:39 +0200
commitf77805773f1cee4164569ecd92838cead36aac22 (patch)
tree419c5d38a0fe3c0510bcf2904fefe43552407b9a /m4
parent986ad88c284dd886510f13818665688f188dcb39 (diff)
build-sys: Set automake conditional in SPICE_CHECK_SMARTCARD
spice-server will use this.
Diffstat (limited to 'm4')
-rw-r--r--m4/spice-deps.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index 6c5f408..2ebdb23 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -33,8 +33,9 @@ AC_DEFUN([SPICE_CHECK_SYSDEPS], [
# Adds a --enable-smartcard switch in order to enable/disable smartcard
# support, and checks if the needed libraries are available. If found, it will
# return the flags to use in the SMARTCARD_CFLAGS and SMARTCARD_LIBS variables, and
-# it will define a USE_SMARTCARD preprocessor symbol.
-#----------------------
+# it will define a USE_SMARTCARD preprocessor symbol as well as a HAVE_SMARTCARD
+# Makefile conditional.
+----------------------
AC_DEFUN([SPICE_CHECK_SMARTCARD], [
AC_ARG_ENABLE([smartcard],
AS_HELP_STRING([--enable-smartcard=@<:@yes/no/auto@:>@],
@@ -52,6 +53,7 @@ AC_DEFUN([SPICE_CHECK_SMARTCARD], [
AC_DEFINE(USE_SMARTCARD, [1], [Define if supporting smartcard proxying])
fi
fi
+ AM_CONDITIONAL(HAVE_SMARTCARD, test "x$have_smartcard" = "xyes")
])