]> git.sesse.net Git - vlc/commitdiff
configure: Detect fat contribs.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 31 Dec 2009 18:33:06 +0000 (19:33 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 1 Jan 2010 17:44:14 +0000 (18:44 +0100)
configure.ac

index ea8f366aff871173c0bf7c7c2152eca099dfe80f..4315d2b4a39e7676a4325f1949c7368c7f69fbe0 100644 (file)
@@ -125,11 +125,15 @@ AC_ARG_WITH(contrib,
       if test "`echo \"$topdir\" | cut -c 1`" != "/"; then
          topdir="`pwd`/$topdir"
       fi
-      CONTRIB_DIR=${topdir}/extras/contrib/hosts/${host}
+      CONTRIB_DIR=${topdir}/extras/contrib/hosts/fat
       if ! test -d "$CONTRIB_DIR"
       then
-        gccmachine=`$CC -dumpmachine`
-        CONTRIB_DIR=${topdir}/extras/contrib/hosts/${gccmachine}
+          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
     fi
     AC_MSG_CHECKING([for libs in ${CONTRIB_DIR}])