summaryrefslogtreecommitdiff
path: root/src/mapi/es1api/ABI-check
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/es1api/ABI-check')
-rwxr-xr-xsrc/mapi/es1api/ABI-check13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mapi/es1api/ABI-check b/src/mapi/es1api/ABI-check
index 0a867343c7..b9ae5efafd 100755
--- a/src/mapi/es1api/ABI-check
+++ b/src/mapi/es1api/ABI-check
@@ -9,12 +9,17 @@ set -eu
# or in extensions that are part of the ES 1.1 extension pack.
# (see http://www.khronos.org/registry/gles/specs/1.1/opengles_spec_1_1_extension_pack.pdf)
-if [ $(uname) == "Darwin" ]
-then
+case "$(uname)" in
+Darwin)
LIB=${1-es1api/.libs/libGLESv1_CM.dylib}
-else
+ ;;
+CYGWIN*)
+ LIB=${1-es1api/.libs/cygGLESv1_CM-1.dll}
+ ;;
+*)
LIB=${1-es1api/.libs/libGLESv1_CM.so.1}
-fi
+ ;;
+esac
if ! [ -f "$LIB" ]
then