From 665faa1622cabb382ce0a4755b0d17c3e9af0d3a Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Mon, 8 Jul 2013 05:51:32 +0000 Subject: allows gtest-config.in to work with an absoulte path for @top_srcdir@. h/t to Jimi Xenidis for reporting the issue and the fix. --- scripts/gtest-config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/gtest-config.in b/scripts/gtest-config.in index 9c726385..780f8432 100755 --- a/scripts/gtest-config.in +++ b/scripts/gtest-config.in @@ -209,7 +209,7 @@ if test "${this_bindir}" = "${this_bindir%${bindir}}"; then # The path to the script doesn't end in the bindir sequence from Autoconf, # assume that we are in a build tree. build_dir=`dirname ${this_bindir}` - src_dir=`cd ${this_bindir}/@top_srcdir@; pwd -P` + src_dir=`cd ${this_bindir}; cd @top_srcdir@; pwd -P` # TODO(chandlerc@google.com): This is a dangerous dependency on libtool, we # should work to remove it, and/or remove libtool altogether, replacing it -- cgit v1.2.3