Differences From
Artifact [9a7cfcd810]:
149 149 ], [
150 150 dodcertsonhwslots=no
151 151 ])
152 152
153 153 if ! test "${dodcertsonhwslots}" = 'no'; then
154 154 AC_DEFINE(CACKEY_CARD_SLOT_INCLUDE_EXTRA_CERTS, [1], [Specify that DoD certificates should be made available on hardware token slots])
155 155 fi
156 +
157 +dnl Option to hard-code a command to run to request a PIN (enabling protected authentication path)
158 +AC_ARG_WITH(pin-command, AC_HELP_STRING([--with-pin-command=<command>], [Specify a command to run to request a PIN from the user. The user may override this with the CACKEY_PIN_COMMAND environment variable.]), [
159 + pincommand="${withval}"
160 +], [
161 + pincommand="no"
162 +])
163 +
164 +if ! test "${pincommand}" = 'no'; then
165 + AC_DEFINE_UNQUOTED(CACKEY_PIN_COMMAND_DEFAULT, [$pincommand], [Command to run to prompt user for PIN])
166 +fi
156 167
157 168 dnl Set version script, to limit the scope of symbols
158 169 DC_SETVERSIONSCRIPT(libcackey.vers, libcackey.syms)
159 170
160 171 dnl Upate LDFLAGS to include setting the run-time linker path to the same as our compile-time linker
161 172 DC_SYNC_RPATH
162 173
163 174 dnl If we updated LIBOBJS, update SHLIBOBJS -- must be last.
164 175 DC_SYNC_SHLIBOBJS
165 176
166 177 dnl Produce Makefile
167 178 AC_OUTPUT(Makefile libcackey.syms)