[libbluray-devel] Fixed configure option "--with-dlopen-crypto-libs=yes" when building with mingw
npzacs
git at videolan.org
Thu Jun 30 13:50:16 CEST 2011
libbluray | branch: master | npzacs <npzacs at gmail.com> | Thu Jun 30 14:42:48 2011 +0300| [f00ecbc302e5422b5e9d1daa45ad1b874acb0f41] | committer: npzacs
Fixed configure option "--with-dlopen-crypto-libs=yes" when building with mingw
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f00ecbc302e5422b5e9d1daa45ad1b874acb0f41
---
configure.ac | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index b0d1b80..316ad47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,10 +129,14 @@ if [[ $use_dlopen_crypto_libs = "auto" ]]; then
AC_DEFINE([DLOPEN_CRYPTO_LIBS], [1], ["Define to 1 if dlopening crypto libs"])
fi
elif [[ $use_dlopen_crypto_libs = "yes" ]]; then
- AC_CHECK_LIB([dl], [dlopen],
- [DLOPEN_LDFLAGS="-ldl"; AC_MSG_NOTICE($using_dlopen_crypto_libs)
- AC_DEFINE([DLOPEN_CRYPTO_LIBS], [1], ["Define to 1 if dlopening crypto libs"])],
- [AC_MSG_ERROR($library_not_found)])
+ if test "${SYS}" != "mingw32" ; then
+ AC_CHECK_LIB([dl], [dlopen],
+ [DLOPEN_LDFLAGS="-ldl"; AC_MSG_NOTICE($using_dlopen_crypto_libs)
+ AC_DEFINE([DLOPEN_CRYPTO_LIBS], [1], ["Define to 1 if dlopening crypto libs"])],
+ [AC_MSG_ERROR($library_not_found)])
+ else
+ AC_DEFINE([DLOPEN_CRYPTO_LIBS], [1], ["Define to 1 if dlopening crypto libs"])
+ fi
else
AC_CHECK_LIB([aacs], [aacs_open],,
[AC_MSG_ERROR($library_not_found)])
More information about the libbluray-devel
mailing list