1 AC_DEFUN(RFX_CHECK_MING,
6 AC_MSG_CHECKING([for target system])
10 *cygwin* ) CYGWIN=yes;;
15 if test "x$MINGW" == "xyes"; 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"
20 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
21 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
23 #fix for the gentoo distribution of mingw
24 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
25 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
27 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
28 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
30 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
31 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
36 dnl Checks for system services
38 if test "x${CYGWIN}" = "xyes"; then
39 AC_DEFINE_UNQUOTED(CYGWIN, 1)
42 if test "x${MINGW}" = "xyes"; then
43 AC_DEFINE_UNQUOTED(MINGW, 1)
45 AC_DEFINE_UNQUOTED(WIN32, 1)
51 AC_DEFINE_UNQUOTED(LINUX, 1)