]> granicus.if.org Git - p11-kit/commitdiff
By default use /etc/pkcs11 for system configs and not ${prefix}
authorStef Walter <stefw@collabora.co.uk>
Thu, 9 Jun 2011 09:03:16 +0000 (11:03 +0200)
committerStef Walter <stefw@collabora.co.uk>
Thu, 9 Jun 2011 09:03:16 +0000 (11:03 +0200)
 * Packagers can override this with the --with-pkcs11-dir configure arg.

configure.ac

index 91c4bef0a04f4ac78ad25a05bc33760d19b55c72..9b8bb5746d7dc0bec2d341afa829df980c752820 100644 (file)
@@ -41,8 +41,13 @@ GTK_DOC_CHECK([1.15])
 # --------------------------------------------------------------------
 # PKCS#11 Directories
 
-p11_system_conf="$sysconfdir/pkcs11/pkcs11.conf"
-p11_system_modules="$sysconfdir/pkcs11/modules"
+AC_ARG_WITH([pkcs11-dir],
+            [AS_HELP_STRING([--with-pkcs11-dir], [Change PKCS#11 system config directory])],
+            [pkcs11_dir=$withval],
+            [pkcs11_dir=/etc/pkcs11])
+
+p11_system_conf="$pkcs11_dir/pkcs11.conf"
+p11_system_modules="$pkcs11_dir/modules"
 p11_user_conf="~/.pkcs11/pkcs11.conf"
 p11_user_modules="~/.pkcs11/modules"
 
@@ -160,3 +165,11 @@ AC_CONFIG_FILES([Makefile
        tools/Makefile
 ])
 AC_OUTPUT
+
+AC_MSG_NOTICE([build options:
+
+    System Global Config:     $p11_system_conf
+    User Global Config:       $p11_user_conf
+    System Module Directory:  $p11_system_modules
+    User Module Directory:    $p11_user_modules
+])
\ No newline at end of file