X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=configure.ac;h=e6bd59a5aaf2cf37ac5fe29f608fa6cfd20011bf;hp=6a862273b93c48d94e8437b42f9d8fe2df28c8af;hb=94cf335f2ec8f4e19250b873aba7ee4eddd7c0d2;hpb=f6b4fd086473f179295386fb47fd422f47015d16 diff --git a/configure.ac b/configure.ac index 6a86227..e6bd59a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([pam_pcsc_cr], 0.9.2) +AC_INIT([pam_pcsc_cr], 0.9.4) AC_CONFIG_SRCDIR([pam_pcsc_cr.c]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE @@ -28,13 +28,14 @@ AC_CHECK_HEADERS([security/pam_modules.h security/pam_ext.h], [], [], [ ]) AC_CHECK_LIB([pam], [pam_start]) AC_CHECK_FUNCS([pam_get_authtok]) +pamdir=/lib/${host_cpu}-${host_os}/security AC_ARG_WITH(pam-dir, - [ --with-pam-dir=DIR path to install the PAM module (/lib/security)], + [ --with-pam-dir=DIR path to install the PAM module (${pamdir})], [PAMDIR="$withval"], [ case $prefix in -*/_inst) PAMDIR='${exec_prefix}/lib/security' ;; -*) PAMDIR=/lib/security ;; +*/_inst) PAMDIR="${prefix}${pamdir}" ;; +*) PAMDIR=${pamdir} ;; esac ]) AC_SUBST(PAMDIR)