Skip to content

Commit 693f5d1

Browse files
committed
configure.ac add --enable-piv-sm option with default disabled
See: https://github.com/OpenSC/OpenSC/pull/2053/files#r1267395675 On branch PIV-4-extensions Changes to be committed: modified: configure.ac
1 parent f0cf38d commit 693f5d1

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

configure.ac

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,13 @@ AC_ARG_ENABLE(
259259
[enable_sm="yes"]
260260
)
261261

262+
AC_ARG_ENABLE(
263+
[piv-sm],
264+
[AS_HELP_STRING([--enable-piv-sm],[enable SM in PIV card driver linkage @<:@disabled@:>@])],
265+
,
266+
[enable_piv_sm="no"]
267+
)
268+
262269
AC_ARG_ENABLE(
263270
[man],
264271
[AS_HELP_STRING([--disable-man],[disable installation of manuals @<:@enabled for none Windows@:>@])],
@@ -854,6 +861,10 @@ else
854861
OPENPACE_LIBS=""
855862
fi
856863

864+
if test "${enable_piv_sm}" = "yes"; then
865+
AC_DEFINE([ENABLE_PIV_SM], [1], [Enable PIV SM])
866+
fi
867+
857868
if test "${enable_openct}" = "yes"; then
858869
PKG_CHECK_MODULES(
859870
[OPENCT],

etc/opensc.conf.example.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ app default {
237237
# piv_max_object_size = 16384;
238238
# May be set via environment: PIV_MAX_OBJECT_SIZE=16384
239239

240-
# *NOTE* The following are only useble if OpenSC is built with CPPFLAGS=-DENABLE_PIV_SM
240+
# *NOTE* The following are only useble if OpenSC is configured with --enable-piv-sm
241241
# The names and locations are likely to change in the future
242242
# See: https://github.com/OpenSC/OpenSC/pull/2053/files#r1267388721
243243

0 commit comments

Comments
 (0)