]> git.sesse.net Git - vlc/commitdiff
Forcefully set PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR for pkgconfig only if these...
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 30 Jan 2007 18:45:47 +0000 (18:45 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 30 Jan 2007 18:45:47 +0000 (18:45 +0000)
extras/contrib/bootstrap

index d454970eee005f10cc53ee14ac7d74ff23342f18..f85af4de9fb2cde57b85daf4f77b74017539f2d1 100755 (executable)
@@ -146,7 +146,14 @@ case $HOST in
         ;;
     *)
             if test "$HOST" = "$BUILD"; then
-                echo "PKG_CONFIG_LIBDIR = /usr/lib/pkgconfig" >> config.mak
+               if test -d "/usr/lib/pkgconfig"; then
+                   if test -z "$PKG_CONFIG_PATH"; then
+                       echo "PKG_CONFIG_PATH = /usr/lib/pkgconfig" >> config.mak
+                   fi
+                   if test -z "$PKG_CONFIG_LIBDIR"; then
+                       echo "PKG_CONFIG_LIBDIR = /usr/lib/pkgconfig" >> config.mak
+                   fi
+               fi
             fi
             # Try to match distribution
             if test -f /etc/fedora-release; then