From 567fb2d4ff1270a3c425688bd410edadc12428a2 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 26 Aug 2008 17:06:43 +0200 Subject: Fix build with recent ffmpeg Add a check of pkgconfig libavcodec in configure script. Since the header file was moved to , its location has to be checked in configure, too. Signed-off-by: Takashi Iwai --- rate-lavc/Makefile.am | 3 ++- rate-lavc/rate_lavcrate.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'rate-lavc') diff --git a/rate-lavc/Makefile.am b/rate-lavc/Makefile.am index ca5b5d8..126cfcf 100644 --- a/rate-lavc/Makefile.am +++ b/rate-lavc/Makefile.am @@ -2,7 +2,8 @@ asound_module_rate_lavcrate_LTLIBRARIES = libasound_module_rate_lavcrate.la asound_module_rate_lavcratedir = @ALSA_PLUGIN_DIR@ -AM_CFLAGS = -Wall -g @ALSA_CFLAGS@ @AVCODEC_CFLAGS@ +AM_CFLAGS = -Wall -g @ALSA_CFLAGS@ @AVCODEC_CFLAGS@ \ + -DAVCODEC_HEADER="@AVCODEC_HEADER@" AM_LDFLAGS = -module -avoid-version -export-dynamic -no-undefined libasound_module_rate_lavcrate_la_SOURCES = rate_lavcrate.c diff --git a/rate-lavc/rate_lavcrate.c b/rate-lavc/rate_lavcrate.c index ce48495..ea2e2f5 100644 --- a/rate-lavc/rate_lavcrate.c +++ b/rate-lavc/rate_lavcrate.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include AVCODEC_HEADER #include "gcd.h" static int filter_size = 16; -- cgit