[FFmpeg-devel] [PATCH] configure: add check for pkg-config return value
Mon Feb 28 12:02:09 CET 2011
On date Thursday 2011-02-24 22:36:27 +0000, M?ns Rullg?rd encoded:
> Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
> > Add check_pkgconfig_flags() function. This ensures that the result of
> > pkg-config is correct. Avoid spurious success during configuration,
> > which may lead to compilation errors.
> > In particular prevents the compilation error I was getting with
> > --enable-librtmp --enable-libopencv, which was due to a missing
> > libssl.
> > ---
> > configure | 15 +++++++++++----
> > 1 files changed, 11 insertions(+), 4 deletions(-)
> This is more convoluted than it needs to be. I'd also like to know
> exactly why the link test didn't fail for you before adding workarounds.
Simplified and updated.
Note: I'm not sure /dev/null is portable (what about MinGW/CygWin?).
I already explained on irc the reason of the failure, it was due to a
pkg-config limitation (pkg-config flags only reflect the condition of
the system when a package was installed), but an additional check
can't hurt too much and it saves the time wasted on debugging the
consequential misconfiguration/compilation problems.
FFmpeg = Fostering and Forgiving Majestic Puritan Elastic Gem
More information about the ffmpeg-devel