From 18bcc8ab6214e92539370eb3c5b601f18def4dde Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 14 Nov 2014 15:06:09 +0100 Subject: pcsc: Allow to disable the PCSC dependency * PCSC is enabled by default * --enable-pcsc is enabling it * --disable-pcscis disabling it * Fix the makefile of the utilities to not build pcsc and use the right header files/libraries. --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 80e2bccb..ef74932b 100644 --- a/configure.ac +++ b/configure.ac @@ -84,13 +84,15 @@ AC_CONFIG_HEADER(config.h) AC_ARG_ENABLE([pcsc], [AS_HELP_STRING([--disable-pcsc], [Build without PC/SC support])], [ - osmo_ac_have_pcsc=$enableval + enable_pcsc=$enableval ], [ - PKG_CHECK_MODULES(PCSC, libpcsclite) - osmo_ac_have_pcsc="yes" + enable_pcsc="yes" ]) -AM_CONDITIONAL(ENABLE_PCSC, test "x$osmo_ac_have_pcsc" = "xyes") +if test "x$enable_pcsc" = "xyes" ; then + PKG_CHECK_MODULES(PCSC, libpcsclite) +fi +AM_CONDITIONAL(ENABLE_PCSC, test "x$enable_pcsc" = "xyes") AC_ARG_ENABLE(talloc, [AS_HELP_STRING( -- cgit v1.2.3