[rhythmbox] build: ensure uninstalled paths are absolute



commit b1677340c2b92986b4726f0f4ccbcc1ae9ba9aef
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Jun 13 21:59:41 2016 +1000

    build: ensure uninstalled paths are absolute
    
    This means you can run srcdir != builddir builds from the shell directory
    like nature intended, rather than from the root of the source tree.

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fa598f4..3914a36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -457,8 +457,8 @@ AC_ARG_ENABLE(uninstalled-build,
 if test x"$enable_uninstalled" = xyes; then
        AC_DEFINE(USE_UNINSTALLED_DIRS, 1, [Define to look for files in source tree locations])
 fi
-ROOT_UNINSTALLED_DIR="`dirname $0`"
-AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_DIR,"`dirname $0`/$srcdir/data",[path to source data dir])
+ROOT_UNINSTALLED_DIR=$( cd $( dirname $0 ) && pwd )
+AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_DIR,"$ROOT_UNINSTALLED_DIR/data",[path to source data dir])
 AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_BUILDDIR,"`pwd`/data",[path to built source data dir])
 AC_DEFINE_UNQUOTED(METADATA_UNINSTALLED_DIR,"`pwd`/metadata",[path to metadata build dir])
 AC_SUBST(ROOT_UNINSTALLED_DIR)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]