Commit 6372b374 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Make use of libgcrypt configurable.

parent bfa762d4
...@@ -1617,7 +1617,7 @@ then ...@@ -1617,7 +1617,7 @@ then
fi fi
AC_ARG_ENABLE(switcher, AC_ARG_ENABLE(switcher,
[ --enable-switcher Stream-out switcher plugin (default disabled)]) [ --enable-switcher Stream-out switcher plugin (default disabled)])
dnl Check for libshout dnl Check for libshout
AC_ARG_ENABLE(shout, AC_ARG_ENABLE(shout,
...@@ -5409,13 +5409,21 @@ AS_IF([test "${enable_gnutls}" != "no"], [ ...@@ -5409,13 +5409,21 @@ AS_IF([test "${enable_gnutls}" != "no"], [
]) ])
]) ])
dnl Workaround for cross-compiling since AM_PATH_LIBGRYPT doesn't dectect dnl
dnl it and looks for libgcrypt headers in the wrong place. dnl libgcrypt
if test "${host_cpu}" = "${build_cpu}" dnl
AC_ARG_ENABLE(libgcrypt,
[ --enable-libgcrypt libgcrypts support (default enabled)])
if test "${enable_libgcrypt}" != "no" -a "${enable_gnutls}" != "no"i
then then
AM_PATH_LIBGCRYPT([1:1.1.94], [have_libgcrypt="yes"], [have_libgcrypt="no"]) dnl Workaround for cross-compiling since AM_PATH_LIBGRYPT doesn't dectect
else dnl it and looks for libgcrypt headers in the wrong place.
AC_CHECK_HEADERS(gcrypt.h,have_libgcrypt="yes",have_libgcrypt="no") if test "${host_cpu}" = "${build_cpu}"
then
AM_PATH_LIBGCRYPT([1:1.1.94], [have_libgcrypt="yes"], [have_libgcrypt="no"])
else
AC_CHECK_HEADERS(gcrypt.h,have_libgcrypt="yes",have_libgcrypt="no")
fi
fi fi
AM_CONDITIONAL([HAVE_LIBGCRYPT], [test "${have_libgcrypt}" = "yes"]) AM_CONDITIONAL([HAVE_LIBGCRYPT], [test "${have_libgcrypt}" = "yes"])
......
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