From 0aab6f2536812fad6ca357d199b48b261d0041b6 Mon Sep 17 00:00:00 2001 From: Marco Barisione Date: Thu, 1 Aug 2013 15:37:28 +0100 Subject: configure.ac: allow to overwrite where to install data files --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 587bba7d..bdb7d27a 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,22 @@ fi AC_SUBST(LDFLAGS) +# ----------------------------------------------------------- +# Allow to overwrite where to install icons and other data +# files +# ----------------------------------------------------------- +AC_ARG_WITH([pkgdatadir], + AS_HELP_STRING([--with-pkgdatadir], + [set a different directory where to install the icon]),, + with_pkgdatadir=) + +if test x"$with_pkgdatadir" != x"" ; then + real_pkgdatadir="${with_pkgdatadir}" +else + real_pkgdatadir="${datarootdir}/${PACKAGE_NAME}" +fi +AC_SUBST(real_pkgdatadir) + # ----------------------------------------------------------- # Pkg-Config dependency checks # ----------------------------------------------------------- @@ -327,6 +343,7 @@ Configure summary: Compiler Flags..............: ${CFLAGS} ${ERROR_CFLAGS} Linker Flags................: ${LDFLAGS} Prefix......................: ${prefix} + Data directory .............: ${real_pkgdatadir} Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS} Unreleased version checks...: ${enable_unreleased_checks} -- cgit v1.2.1