[Pcsclite-cvs-commit] r5117 - /trunk/PCSC/configure.in
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Aug 5 15:13:04 UTC 2010
Author: rousseau
Date: Thu Aug 5 15:13:02 2010
New Revision: 5117
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5117
Log:
"/reader.conf.d" is only appended to sysconfdir if no value of
sysconfdir is provided
Thanks to Patrice Angelini for the bug report
Modified:
trunk/PCSC/configure.in
Modified: trunk/PCSC/configure.in
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/configure.in?rev=5117&op=diff
==============================================================================
--- trunk/PCSC/configure.in (original)
+++ trunk/PCSC/configure.in Thu Aug 5 15:13:02 2010
@@ -325,9 +325,17 @@
AC_MSG_RESULT([plateform endianess : little endian])
fi
-# set sysconfdir to /etc instead of /usr/etc if prefix=/usr
-if test x${prefix} = x/usr; then
- sysconfdir="/etc"
+echo ${sysconfdir}
+
+# default value of sysconfdir
+if test x"${sysconfdir}" == x'${prefix}/etc'; then
+ # set sysconfdir to /etc instead of /usr/etc if prefix=/usr
+ if test x${prefix} = x/usr; then
+ sysconfdir="/etc"
+ fi
+
+ # add "/reader.conf.d" to the default value
+ sysconfdir="${sysconfdir}/reader.conf.d"
fi
# Setup dist stuff
@@ -339,7 +347,7 @@
AS_AC_EXPAND(sbindir_exp,$sbindir)
AS_AC_EXPAND(localstatedir_exp,$localstatedir)
-PCSCLITE_CONFIG_DIR="${sysconfdir_exp}/reader.conf.d"
+PCSCLITE_CONFIG_DIR="${sysconfdir_exp}"
AC_SUBST(PCSCLITE_CONFIG_DIR)
PCSCLITE_FEATURES="${PCSCLITE_FEATURES} configdir=${PCSCLITE_CONFIG_DIR}"
AC_DEFINE_UNQUOTED([PCSCLITE_FEATURES], ["${PCSCLITE_FEATURES}"], [Enabled PC/SC lite features])
More information about the Pcsclite-cvs-commit
mailing list