From dadb47c6870e1b93e32ffb5e755ab23b4651a23d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 27 Jan 2014 13:54:49 +0100 Subject: [PATCH] flac: Try to link also without -logg. If libflac was compiled without ogg support, the build system should include flac even if libogg is not installed. Currently this does not work because the autoconf test tries to link with -logg, so it always fails if libogg is not available. Fix this by trying both with and without libogg. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 087002dd..b456b53d 100644 --- a/configure.ac +++ b/configure.ac @@ -580,7 +580,11 @@ if test -n "$with_flac_libs"; then LDFLAGS="$LDFLAGS $flac_libs" fi AC_CHECK_HEADER(FLAC/stream_decoder.h, [], have_flac=no) -AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_file], [], have_flac=no, -logg -lm) +AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_file], [], [ + # nope, try again with -logg + AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_file], [], + have_flac=no, -lm -logg) + ], -lm) if test "$have_flac" = "yes"; then AC_DEFINE(HAVE_FLAC, 1, define to 1 if you want to build the flacdec filter) AC_SUBST(flac_cppflags) -- 2.39.2