[vlc-devel] commit: configure: Fallback on hosts/`gcc -dumpmachine` if host doesn' t match a set of built contrib. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Dec 18 08:44:16 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Dec 18 08:39:17 2009 +0100| [b824035fbdc2116bbfef547067d49f90fe9efe7e] | committer: Pierre d'Herbemont 

configure: Fallback on hosts/`gcc -dumpmachine` if host doesn't match a set of built contrib.

Should fix your build if your host doesn't strictly match your gcc build machine.

Pointed-out-by: Rafaël Carré <rafael.carre at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b824035fbdc2116bbfef547067d49f90fe9efe7e
---

 configure.ac |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 90f7572..1cc4038 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,6 +126,11 @@ AC_ARG_WITH(contrib,
          topdir="`pwd`/$topdir"
       fi
       CONTRIB_DIR=${topdir}/extras/contrib/hosts/${host}
+      if ! test -d "$CONTRIB_DIR"
+      then
+        gccmachine=`$CC -dumpmachine`
+        CONTRIB_DIR=${topdir}/extras/contrib/hosts/${gccmachine}
+      fi
     fi
     AC_MSG_CHECKING([for libs in ${CONTRIB_DIR}])
   AS_IF([test -d ${CONTRIB_DIR}/lib],[




More information about the vlc-devel mailing list