summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKovensky <diogomfranco@gmail.com>2010-08-02 01:21:51 -0300
committerUoti Urpala <uau@mplayer2.org>2012-02-29 23:49:43 +0200
commit75bc1591e8be6c4f39e67dcaff8f1564ff4ffd02 (patch)
treea0319c0346aab04c750fedee6b002a33dffd055d /configure
parent0c2a302948d7e2ca5938e19bdc6c66649c7b6a34 (diff)
downloadmpv-75bc1591e8be6c4f39e67dcaff8f1564ff4ffd02.tar.bz2
mpv-75bc1591e8be6c4f39e67dcaff8f1564ff4ffd02.tar.xz
configure: fix target triplet check for mingw targets
mingw32 and mingw64's recommended triplets are i686-pc-mingw32 / x86_64-w64-mingw32, neither has mingw32 in the middle.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure34
1 files changed, 19 insertions, 15 deletions
diff --git a/configure b/configure
index f59b1b5a73..b28b38d6d5 100755
--- a/configure
+++ b/configure
@@ -1268,21 +1268,25 @@ if test -z "$_target" ; then
;;
esac
else # if test -z "$_target"
- system_name=$(echo $_target | cut -d '-' -f 2)
- case "$(echo $system_name | tr A-Z a-z)" in
- linux) system_name=Linux ;;
- freebsd) system_name=FreeBSD ;;
- gnu/kfreebsd) system_name=FreeBSD ;;
- netbsd) system_name=NetBSD ;;
- bsd/os) system_name=BSD/OS ;;
- openbsd) system_name=OpenBSD ;;
- dragonfly) system_name=DragonFly ;;
- sunos) system_name=SunOS ;;
- qnx) system_name=QNX ;;
- morphos) system_name=MorphOS ;;
- amigaos) system_name=AmigaOS ;;
- mingw32*) system_name=MINGW32 ;;
- esac
+ for i in 2 3; do
+ system_name=$(echo $_target | cut -d '-' -f $i)
+ case "$(echo $system_name | tr A-Z a-z)" in
+ linux) system_name=Linux ;;
+ freebsd) system_name=FreeBSD ;;
+ gnu/kfreebsd) system_name=FreeBSD ;;
+ netbsd) system_name=NetBSD ;;
+ bsd/os) system_name=BSD/OS ;;
+ openbsd) system_name=OpenBSD ;;
+ dragonfly) system_name=DragonFly ;;
+ sunos) system_name=SunOS ;;
+ qnx) system_name=QNX ;;
+ morphos) system_name=MorphOS ;;
+ amigaos) system_name=AmigaOS ;;
+ mingw32*) system_name=MINGW32 ;;
+ *) continue ;;
+ esac
+ break
+ done
# We need to convert underscores so that values like k6-2 and pentium-mmx can be passed
host_arch=$(echo $_target | cut -d '-' -f 1)
if test $(echo $host_arch) != "x86_64" ; then