Commit afc5d209 authored by Gildas Bazin's avatar Gildas Bazin

* configure.ac.in: fix for the mingw32 build. We check if we need to explicitly
   link with the mingwex library (needed for dirent support with new mingw32
   runtimes).
parent 02e29e1c
...@@ -156,6 +156,15 @@ AM_CONDITIONAL(HAVE_WIN32, test "x${SYS}" = "xmingw32") ...@@ -156,6 +156,15 @@ AM_CONDITIONAL(HAVE_WIN32, test "x${SYS}" = "xmingw32")
AC_MSG_CHECKING(for suffix of libraries) AC_MSG_CHECKING(for suffix of libraries)
AC_MSG_RESULT(${LIBEXT}) AC_MSG_RESULT(${LIBEXT})
dnl Check for the need to include the mingwex lib for mingw32
if test x$SYS = xmingw32
then
AC_CHECK_LIB(mingwex,opendir,
AC_CHECK_LIB(mingw32,opendir,LDFLAGS_vlc="${LDFLAGS_vlc}",
LDFLAGS_vlc="${LDFLAGS_vlc} -lmingwex")
)
fi
dnl Check for fnative-struct or mms-bitfields support for mingw32 dnl Check for fnative-struct or mms-bitfields support for mingw32
if test x$SYS = xmingw32 if test x$SYS = xmingw32
then then
......
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