mkvtoolnix/ac/mingw.m4
2021-03-20 13:56:55 +01:00

36 lines
676 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
EXEEXT=.exe
case $host in
*x86_64*mingw*) MINGW_PROCESSOR_ARCH=amd64 ;;
*) MINGW_PROCESSOR_ARCH=x86 ;;
esac
AC_CHECK_TOOL(WINDRES, windres, :)
fi
AC_SUBST(MINGW)
AC_SUBST(MINGW_LIBS)
AC_SUBST(MINGW_GUIAPP)
AC_SUBST(MINGW_PROCESSOR_ARCH)
AC_SUBST(EXEEXT)
if test "x$ac_cv_mingw32" = "xyes"; then
AC_PATH_PROG(CONVERT, convert)
fi