Adding upstream version 4.01+dfsg.
[syslinux-debian/hramrach.git] / win32 / find-mingw.sh
blob7a4491cdfb63c60e598a2080ddb494204e2b67a8
1 #!/bin/sh
3 cc="$1"
5 for prefix in \
6 mingw- \
7 i386-pc-mingw32- \
8 i486-pc-mingw32- \
9 i586-pc-mingw32- \
10 i686-pc-mingw32- \
11 i386-pc-mingw32msvc- \
12 i486-pc-mingw32msvc- \
13 i586-pc-mingw32msvc- \
14 i686-pc-mingw32msvc- \
15 i386-mingw32- \
16 i486-mingw32- \
17 i586-mingw32- \
18 i686-mingw32- \
19 i386-mingw32msvc- \
20 i486-mingw32msvc- \
21 i586-mingw32msvc- \
22 i686-mingw32msvc-; do
23 if "${prefix}${cc}" -v > /dev/null 2>&1; then
24 echo "$prefix"
25 exit 0
27 done
29 # No prefix, no idea what to do now...
30 echo missing-
31 exit 1