Commit 6c8a2eb2 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

configure: don't force mingw hacks on Windows, when using a different compiler

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7b6b7427
...@@ -465,6 +465,12 @@ dnl ...@@ -465,6 +465,12 @@ dnl
dnl checks for mingw dnl checks for mingw
AS_IF([test "${SYS}" = "mingw32"], [ AS_IF([test "${SYS}" = "mingw32"], [
AC_PREPROC_IFELSE([AC_LANG_SOURCE([
#if !defined(__MINGW32__)
# error Not compiling with mingw
#endif
])], [
dnl Check for broken versions of mingw-runtime compatability library dnl Check for broken versions of mingw-runtime compatability library
AC_MSG_CHECKING(for broken mingw-runtime) AC_MSG_CHECKING(for broken mingw-runtime)
AC_PREPROC_IFELSE([AC_LANG_SOURCE([ AC_PREPROC_IFELSE([AC_LANG_SOURCE([
...@@ -496,6 +502,9 @@ dnl Check for broken versions of mingw-runtime compatability library ...@@ -496,6 +502,9 @@ dnl Check for broken versions of mingw-runtime compatability library
[VLC_ADD_LIBS([libvlccore],[-lmingwex])]) [VLC_ADD_LIBS([libvlccore],[-lmingwex])])
) )
VLC_RESTORE_FLAGS VLC_RESTORE_FLAGS
], [
AC_MSG_RESULT([Not compiling with mingw])
])
dnl Check for fnative-struct or mms-bitfields support for mingw32 dnl Check for fnative-struct or mms-bitfields support for mingw32
VLC_SAVE_FLAGS VLC_SAVE_FLAGS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment