[PATCH 1/2] Add plugins' configuration directory from autotools
- From: Joaquim Rocha <jrocha igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 1/2] Add plugins' configuration directory from autotools
- Date: Tue, 15 Jun 2010 19:14:33 +0200
---
configure.ac | 9 +++++++++
src/Makefile.am | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 050b844..f12d58e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,12 +65,21 @@ if test $libdir = "\${exec_prefix}/lib" ; then
libdir="$prefix/lib"
fi
+if test $datadir = "NONE" ; then
+ datadir="$prefix/share"
+fi
+
# Plugins directory
GRL_PLUGINS_DIR="${libdir}/${GRL_NAME}"
AC_SUBST(GRL_PLUGINS_DIR)
AC_DEFINE_UNQUOTED(GRL_PLUGINS_DIR, "$GRL_PLUGINS_DIR", [Plugins directory])
+# Plugins configuration directory
+
+GRL_PLUGINS_CONF_DIR="${datadir}/${PACKAGE_NAME}/plugins"
+AC_SUBST(GRL_PLUGINS_CONF_DIR)
+
# ----------------------------------------------------------
# UNINSTALLED SUPPORT
# ----------------------------------------------------------
diff --git a/src/Makefile.am b/src/Makefile.am
index 7a7564a..d0bb5f9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,6 +5,8 @@
#
# Copyright (C) 2010 Igalia S.L. All rights reserved.
+INCLUDES = -DGRL_PLUGINS_CONF_DIR=\""$(GRL_PLUGINS_CONF_DIR)"\"
+
SUBDIRS = . tests
lib_LTLIBRARIES = lib GRL_NAME@.la
--
1.7.0.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]