[vlc-commits] configure: don't force mingw hacks on Windows, when using a different compiler

Steve Lhomme git at videolan.org
Fri Feb 5 19:09:54 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at gmail.com> | Sat Jan 30 09:26:28 2016 +0100| [6c8a2eb2852416eaaf27477cad85ab4057e40034] | committer: Jean-Baptiste Kempf

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

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c8a2eb2852416eaaf27477cad85ab4057e40034
---

 configure.ac |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/configure.ac b/configure.ac
index e848d72..39347c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -465,6 +465,12 @@ dnl
 dnl checks for mingw
 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
     AC_MSG_CHECKING(for broken mingw-runtime)
     AC_PREPROC_IFELSE([AC_LANG_SOURCE([
@@ -496,6 +502,9 @@ dnl Check for broken versions of mingw-runtime compatability library
             [VLC_ADD_LIBS([libvlccore],[-lmingwex])])
     )
     VLC_RESTORE_FLAGS
+    ], [
+        AC_MSG_RESULT([Not compiling with mingw])
+    ])
 
     dnl Check for fnative-struct or mms-bitfields support for mingw32
     VLC_SAVE_FLAGS



More information about the vlc-commits mailing list