]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Include flac afh only if libogg is available.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 14 Sep 2015 18:08:19 +0000 (20:08 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 15 Sep 2015 02:51:00 +0000 (04:51 +0200)
In configure.ac we have

AC_DEFUN([NEED_FLAC_OBJECTS], [{
test "$HAVE_OGG" = 'yes' -a "$HAVE_FLAC" = 'yes'
}])

In particular, we do not include the flac audio format handler on
systems where libflac is installed but libogg is not. In afh_common.c,
however, we only check for HAVE_FLAC. This results in a build failure
on those systems.

Fix this by modifying the check in afh_common.c to match the check
in configure.ac.

afh_common.c

index 08bcde90697ec251c50ebd58abaf5f7ddf3ecff0..eb0813df1cb10d16512fd6a863d7c50cb24cba43 100644 (file)
@@ -64,7 +64,7 @@ static struct audio_format_handler afl[] = {
        },
        {
                .name = "flac",
-#ifdef HAVE_FLAC
+#if defined(HAVE_OGG) && defined(HAVE_FLAC)
                .init = flac_afh_init,
 #endif
        },