ci: First phase of adding MingW support

This commit is contained in:
Bart Van Assche
2021-07-17 19:50:35 -07:00
parent cb4489776b
commit 8b4670db3e
5 changed files with 27 additions and 1 deletions

View File

@@ -19,10 +19,15 @@ case $host in
AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])])
AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])])
;;
*mingw*)
target_os_is_win32=true
;;
*)
;;
esac
AM_CONDITIONAL([TARGET_OS_IS_WIN32], [test x$target_os_is_win32 = xtrue])
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror],
[Disables building with -Werror by default])])