]> git.sesse.net Git - vlc/commitdiff
* configure.ac: Fixed the contrib path in the general case.
authorChristophe Massiot <massiot@videolan.org>
Thu, 11 Aug 2005 13:37:50 +0000 (13:37 +0000)
committerChristophe Massiot <massiot@videolan.org>
Thu, 11 Aug 2005 13:37:50 +0000 (13:37 +0000)
configure.ac

index 7de9d8f361b87c7a616ddcd298ed1bfdd5e6d1ba..59001528e9aabd912e739d88064ec0464300cf1d 100644 (file)
@@ -73,7 +73,11 @@ AC_C_INLINE
 dnl
 dnl  Check for the contrib directory
 dnl
-topdir="`pwd`"
+topdir="`dirname $0`"
+if test "`echo \"$topdir\" | cut -c 1`" != "/"; then
+  topdir="`pwd`/$topdir"
+fi
+
 if test -d ${topdir}/extras/contrib/lib; then
   export PATH=${topdir}/extras/contrib/bin:$PATH
   CPPFLAGS="${CPPFLAGS} -I${topdir}/extras/contrib/include"