2 dnl Checks whether we're building for MinGW, and defines appropriate stuff
4 dnl Most importantly, AM_CODITIONALs MINGW
5 AC_DEFUN([GEANY_CHECK_MINGW],
9 AC_CHECK_LIB([iberty], [fnmatch], [],
10 [AC_MSG_ERROR([fnmatch does not present in libiberty. You need to update it, read http://www.geany.org/Support/CrossCompile for details.])])
11 AC_DEFINE([WIN32], [1], [we are cross compiling for WIN32])
13 GEANY_CHECK_SOCKET([yes])
14 AM_CONDITIONAL([MINGW], true)
17 AM_CONDITIONAL([MINGW], false)