From 5ad71286b776d93dca7753d0ac8e7eef3a7ff2f9 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sun, 28 Jan 2007 21:44:21 +0000 Subject: [PATCH] Fix relocation support detection that was broken with autoconf-2.60. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15457 57a11ea4-9604-0410-9ed3-97b8803252fd --- macros/binreloc.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macros/binreloc.m4 b/macros/binreloc.m4 index 071e49e176..61e241025c 100644 --- a/macros/binreloc.m4 +++ b/macros/binreloc.m4 @@ -20,8 +20,10 @@ AC_DEFUN([AM_BINRELOC], AC_CHECK_FILE([/proc/self/maps]) AC_CACHE_CHECK([whether everything is installed to the same prefix], [br_cv_valid_prefixes], [ + # datarootdir variables was introduced with autoconf-2.60 if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \ - "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \ + \( "$datadir" = '${prefix}/share' -o \( "$datadir" = '${datarootdir}' -a "$datarootdir" = '${prefix}/share' \) \) -a \ + "$libdir" = '${exec_prefix}/lib' -a \ "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc' then br_cv_valid_prefixes=yes