configure.ac: improve path handling in out-of-tree build
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 27 Jan 2011 21:25:13 +0000 (22:25 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 10 Jan 2012 11:09:28 +0000 (12:09 +0100)
That is, handle the srcdir being given by a relative path as well as
an absolute path by using autotools provided absolute path.

configure.ac

index 6756f0a..ab03994 100644 (file)
@@ -379,7 +379,7 @@ else
      if test -z "$srcdir" -o "$srcdir" = .; then
        confcmd=./configure
      else
-       confcmd="$origdir"/"$ac_top_srcdir"/gst-libs/ext/libav/configure
+       confcmd="$ac_abs_top_srcdir"/gst-libs/ext/libav/configure
      fi
 
      AS_MKDIR_P(["$ac_top_build_prefix"gst-libs/ext/libav])