[FFmpeg-devel] [PATCH] configure: Use libgcrypt-config if available
James Almer
jamrial at gmail.com
Fri Jan 8 21:40:18 CET 2016
On 12/29/2015 7:47 PM, Ricardo Constantino wrote:
> Signed-off-by: Ricardo Constantino <wiiaboo at gmail.com>
> ---
> configure | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index c986aba..d639b8d 100755
> --- a/configure
> +++ b/configure
> @@ -5396,7 +5396,6 @@ enabled avisynth && { { check_lib2 "windows.h" LoadLibrary; } ||
> enabled chromaprint && require chromaprint chromaprint.h chromaprint_get_version -lchromaprint
> enabled decklink && { check_header DeckLinkAPI.h || die "ERROR: DeckLinkAPI.h header not found"; }
> enabled frei0r && { check_header frei0r.h || die "ERROR: frei0r.h header not found"; }
> -enabled gcrypt && require2 gcrypt gcrypt.h gcry_mpi_new -lgcrypt
> enabled gmp && require2 gmp gmp.h mpz_export -lgmp
> enabled gnutls && require_pkg_config gnutls gnutls/gnutls.h gnutls_global_init
> enabled ladspa && { check_header ladspa.h || die "ERROR: ladspa.h header not found"; }
> @@ -5555,6 +5554,17 @@ if enabled libdc1394; then
> enable libdc1394_1; } ||
> die "ERROR: No version of libdc1394 found "
> fi
> +
> +if enabled gcrypt; then
> + GCRYPT_CONFIG="${cross_prefix}libgcrypt-config"
> + if "${GCRYPT_CONFIG}" --version > /dev/null 2>&1; then
> + gcrypt_libs=$("${GCRYPT_CONFIG}" --libs)
> + require2 gcrypt gcrypt.h gcry_mpi_new $gcrypt_libs
Shouldn't this also check libgcrypt-config --cflags? Assuming
the library is in an unusual path, the above will look for
the header in whatever include path configure was using by
then and either fail or include the wrong headers.
> + else
> + require2 gcrypt gcrypt.h gcry_mpi_new -lgcrypt
> + fi
> +fi
> +
> if ! disabled sdl; then
> SDL_CONFIG="${cross_prefix}sdl-config"
> if check_pkg_config sdl SDL_events.h SDL_PollEvent; then
>
More information about the ffmpeg-devel
mailing list