Diff

Differences From Artifact [ff26968020]:

To Artifact [f1a98b3eb3]:


   181    181   if ! test "${pincommand}" = 'no'; then
   182    182   	AC_DEFINE_UNQUOTED(CACKEY_PIN_COMMAND_DEFAULT, [$pincommand], [Command to run to prompt user for PIN])
   183    183   fi
   184    184   
   185    185   if ! test "${pincommandxonly}" = 'no'; then
   186    186   	AC_DEFINE_UNQUOTED(CACKEY_PIN_COMMAND_XONLY_DEFAULT, [$pincommandxonly], [Command to run to prompt user for PIN only if DISPLAY environment variable is set])
   187    187   fi
          188  +
          189  +AC_ARG_WITH(readers-include-only, AC_HELP_STRING([--with-readers-include-only=<string>], [Specify a string to match in a reader to include it, all other readers will be excluded.  The user may override this with the CACKEY_READERS_INCLUDE_ONLY environment variable.]), [
          190  +	readers_include_only="${withval}"
          191  +], [
          192  +	readers_include_only="no"
          193  +])
          194  +
          195  +AC_ARG_WITH(readers-exclude, AC_HELP_STRING([--with-readers-exclude=<string>], [Specify a string to match in a reader to exclude it, all other readers will be included.  The user may override this with the CACKEY_READERS_EXCLUDE environment variable.]), [
          196  +	readers_exclude="${withval}"
          197  +], [
          198  +	readers_exclude="no"
          199  +])
          200  +
          201  +if ! test "${readers_include_only}" = 'no'; then
          202  +	AC_DEFINE_UNQUOTED(CACKEY_READERS_INCLUDE_ONLY_DEFAULT, [$readers_include_only], [Substring to match to include readers])
          203  +fi
          204  +
          205  +if ! test "${readers_exclude}" = 'no'; then
          206  +	AC_DEFINE_UNQUOTED(CACKEY_READERS_EXCLUDE_DEFAULT, [$readers_exclude], [Substring to match to exclude readers])
          207  +fi
   188    208   
   189    209   dnl Set version script, to limit the scope of symbols
   190    210   DC_SETVERSIONSCRIPT(libcackey.vers, libcackey.syms)
   191    211   
   192    212   dnl Upate LDFLAGS to include setting the run-time linker path to the same as our compile-time linker
   193    213   DC_SYNC_RPATH
   194    214   
   195    215   dnl If we updated LIBOBJS, update SHLIBOBJS -- must be last.
   196    216   DC_SYNC_SHLIBOBJS
   197    217   
   198    218   dnl Produce Makefile
   199    219   AC_OUTPUT(Makefile libcackey.syms)