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