sim: Use autotools for libpcsc-lite linkage
diff --git a/configure.ac b/configure.ac
index 7fc72fd..80e2bcc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,16 @@
dnl Generate the output
AC_CONFIG_HEADER(config.h)
+AC_ARG_ENABLE([pcsc], [AS_HELP_STRING([--disable-pcsc], [Build without PC/SC support])],
+ [
+ osmo_ac_have_pcsc=$enableval
+ ],
+ [
+ PKG_CHECK_MODULES(PCSC, libpcsclite)
+ osmo_ac_have_pcsc="yes"
+ ])
+AM_CONDITIONAL(ENABLE_PCSC, test "x$osmo_ac_have_pcsc" = "xyes")
+
AC_ARG_ENABLE(talloc,
[AS_HELP_STRING(
[--disable-talloc],