From 4dd159b42cda3c9fdf8e1f81f20d7ec51170f59a Mon Sep 17 00:00:00 2001 From: Bruno Tarquini Date: Sat, 28 Nov 2009 12:54:44 +0100 Subject: [PATCH] autotools: add --enable-site-packages option This option allows the installation of pyfiles in PYTHON/site-packages/gajim instead of DATADIR/gajim/src which is a quality policy for some distributions. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 98c3e9d3f..eb9a8992f 100644 --- a/configure.ac +++ b/configure.ac @@ -56,7 +56,18 @@ AC_SUBST(ACLOCAL_AMFLAGS) AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) AC_SUBST([PYTHON_INCLUDES]) +dnl **** +dnl enable installation in python-2.x/site-packages/gajim +dnl **** +AC_ARG_ENABLE(site-packages, + [AS_HELP_STRING([--enable-site-packages], + [install gajim sources in PYTHONDIR/site-packages/gajim +instead of DATADIR/gajim/src.])] +, +AC_SUBST([gajim_srcdir], [\${pkgpythondir}]) +, AC_SUBST([gajim_srcdir], [\${datadir}/\${PACKAGE}/src]) +) AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}") AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")