Releasing debian version 4.06+dfsg-2.
[syslinux-debian/hramrach.git] / win64 / find-mingw64.sh
blobc2e42cd7df65d90285a8c706cf37a4be0e751b3d
1 #!/bin/sh
3 cc="$1"
5 for prefix in \
6 mingw64- \
7 x86_64-pc-mingw64- \
8 x86_64-pc-mingw64msvc- \
9 x86_64-pc-mingw32- \
10 x86_64-pc-mingw32msvc- \
11 x86_64-mingw64- \
12 x86_64-mingw64msvc- \
13 x86_64-mingw32- \
14 x86_64-mingw32msvc- \
15 x86_64-w64-mingw32- \
16 x86_64-w64-mingw32msvc- \
17 amd64-pc-mingw64- \
18 amd64-pc-mingw64msvc- \
19 amd64-pc-mingw32- \
20 amd64-pc-mingw32msvc- \
21 amd64-mingw64- \
22 amd64-mingw64msvc- \
23 amd64-mingw32- \
24 amd64-mingw32msvc- \
25 amd64-w64-mingw32- \
26 amd64-w64-mingw32msvc- \
27 ; do
28 if "${prefix}${cc}" -v > /dev/null 2>&1; then
29 echo "$prefix"
30 exit 0
32 done
34 # No prefix, no idea what to do now...
35 echo missing-
36 exit 1