[libbluray-devel] commit: Win32: do not try -dl in auto-dlopen mode (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue Aug 24 16:49:45 CEST 2010


libbluray | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 24 16:33:08 2010 +0200| [39f370fc5bbdcbe122ca10171313893c2f5756db] | committer: Jean-Baptiste Kempf 

Win32: do not try -dl in auto-dlopen mode

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=39f370fc5bbdcbe122ca10171313893c2f5756db
---

 configure.ac |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index c274bb6..f8a921e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -112,10 +112,14 @@ fi
 
 # dlopen check
 if [[ $use_dlopen_crypto_libs = "auto" ]]; 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"])],
-    [use_dlopen_crypto_libs="no"; AC_MSG_NOTICE($using_normal_linking)])
+  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"])],
+        [use_dlopen_crypto_libs="no"; AC_MSG_NOTICE($using_normal_linking)])
+  else
+         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)



More information about the libbluray-devel mailing list