mkvtoolnix/ac/mingw.m4
Moritz Bunkus 34754808de Use configure's 'host' variable for mingw detection
Otherwise a real mingw on Windows may not be detected correctly.
2009-12-20 12:15:42 +01:00

31 lines
513 B
Plaintext

dnl
dnl Check for mingw
dnl
AC_CACHE_CHECK([if being compiled with mingw32],
[ac_cv_mingw32],[
case $host in
*mingw*)
ac_cv_mingw32=yes
;;
*)
ac_cv_mingw32=no
;;
esac])
if test "x$ac_cv_mingw32" = "xyes"; then
export MINGW=1
MINGW_GUIAPP=-mwindows
LIBMTXCOMMONDLL=1
EXEEXT=.exe
AC_CHECK_TOOL(WINDRES, windres, :)
else
LIBMTXCOMMONDLL=0
fi
AC_SUBST(MINGW)
AC_SUBST(MINGW_LIBS)
AC_SUBST(MINGW_GUIAPP)
AC_SUBST(LIBMTXCOMMONDLL)
AC_SUBST(EXEEXT)