From 05399ca7d51a010fe29a87353acc1a588b08d647 Mon Sep 17 00:00:00 2001 From: Stefan Nuxoll Date: Wed, 18 May 2016 19:49:42 -0600 Subject: [PATCH] Added --with-pluginsdir to configure script * Updated autoconf script to optionally accept a --with-pluginsdir argument to set a custom PLUGINSDIR path --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 27ad0c2f..a89c06b9 100644 --- a/configure.ac +++ b/configure.ac @@ -29,13 +29,19 @@ AM_PATH_PYTHON(2.3) dnl check for where to install our python stuff PYVER=[`$PYTHON -c "import sys ; print sys.version[:3]"`] +AC_ARG_WITH([pluginsdir], + AS_HELP_STRING([--with-pluginsdir], [Set custom global plugin directory]), + [], + [with_pluginsdir=none]) + dnl This is the best way of installing in an arch-independent location for now AS_AC_EXPAND(PYTHONLIBDIR, "\${exec_prefix}/lib/python$PYVER/site-packages") AC_MSG_NOTICE(Installing python code in $PYTHONLIBDIR) AC_SUBST(PYTHONLIBDIR) -AS_AC_EXPAND(PLUGINSDIR, "\${libdir}/morituri/plugins") +AS_IF([test "x$with_pluginsdir" != "xnone"], [AS_AC_EXPAND(PLUGINSDIR, "$with_pluginsdir")], + [test "x$with_pluginsdir" = "xnone"], [AS_AC_EXPAND(PLUGINSDIR, "\${libdir}/morituri/plugins")]) AC_MSG_NOTICE(Setting plugins directory to $PLUGINSDIR) dnl get git revision for installed.py.in