changed .swf to .flash.
[swftools.git] / m4 / mingw.m4
1 AC_DEFUN(RFX_CHECK_MING,
2 [
3 AC_CANONICAL_HOST
4 AC_EXEEXT
5
6 AC_MSG_CHECKING([for target system])
7 CYGWIN=
8 MINGW=
9 case $host_os in
10     *cygwin* ) CYGWIN=yes;;
11     *mingw* ) MINGW=yes;;
12 esac
13
14 AR=ar
15 if test "x$CXX" == "xi586-mingw32msvc-g++"; then
16 #fix for the debian distribution of mingw
17     if test -x "/usr/i586-mingw32msvc/bin/ar";then
18         AR="/usr/i586-mingw32msvc/bin/ar"
19     fi
20     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
21         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
22     fi
23 fi
24 AC_SUBST(AR)
25
26 dnl Checks for system services
27
28 if test "x${CYGWIN}" = "xyes"; then
29     AC_DEFINE_UNQUOTED(CYGWIN, 1)
30     AC_MSG_RESULT(cygwin)
31 else
32     if test "x${MINGW}" = "xyes"; then
33         AC_DEFINE_UNQUOTED(MINGW, 1)
34         WIN32=1
35         AC_DEFINE_UNQUOTED(WIN32, 1)
36         LIBS="$LIBS -lws2_32"
37         AC_MSG_RESULT(mingw)
38     else
39         LINUX=1
40         export LINUX
41         AC_DEFINE_UNQUOTED(LINUX, 1)
42         AC_MSG_RESULT()
43     fi
44 fi
45 ])