[vlc-devel] commit: Check if we can link to libgcrypt ( Rafaël Carré )
git version control
git at videolan.org
Thu Oct 15 23:44:40 CEST 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Oct 15 23:33:22 2009 +0200| [ed1959d2bbe0b2a479265c065220835e908bb3d7] | committer: Rafaël Carré
Check if we can link to libgcrypt
make --disable-libgcrypt mandatory if (a recent enough) libgcrypt was not found
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed1959d2bbe0b2a479265c065220835e908bb3d7
---
configure.ac | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index 159196e..edc5f44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4594,18 +4594,21 @@ AC_ARG_ENABLE(libgcrypt,
[ --disable-libgcrypt gcrypt support (default enabled)])
AS_IF([test "${enable_libgcrypt}" != "no"], [
AC_CHECK_DECL([GCRYCTL_SET_THREAD_CBS], [
- libgcrypt-config --version >/dev/null || AC_MSG_ERROR(
- [gcrypt.h present but libgcrypt-config could not be found])
- have_libgcrypt="yes"
- GCRYPT_CFLAGS="`libgcrypt-config --cflags`"
- GCRYPT_LIBS="`libgcrypt-config --libs`"
- ], [
- AS_IF([test "${enable_libgcrypt}"], [
- AC_MSG_ERROR([libgcrypt version 1.1.94 or higher not found.])
+ libgcrypt-config --version >/dev/null || \
+ AC_MSG_ERROR([gcrypt.h present but libgcrypt-config could not be found])
+ AC_CHECK_LIB(gcrypt, gcry_control, [
+ have_libgcrypt="yes"
+ GCRYPT_CFLAGS="`libgcrypt-config --cflags`"
+ GCRYPT_LIBS="`libgcrypt-config --libs`"
+ ], [
+ AC_MSG_ERROR([libgcrypt not found. Install libgcrypt or use --disable-libgcrypt. Have a nice day.])
])
- have_libgcrypt="no"
- ], [#include <gcrypt.h>])
+ ], [
+ AC_MSG_ERROR([libgcrypt version 1.1.94 or higher not found. Install libgcrypt or use --disable-libgcrypt. Have a nice day.])
+ ], [#include <gcrypt.h>]
+ )
])
+
if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"; then
AS_IF([test "${have_libgcrypt}" = "yes"],[
VLC_ADD_LIBS([rtp stream_out_rtp], [${GCRYPT_LIBS}])
More information about the vlc-devel
mailing list