From 3e8009ffca5d435a708c08a7325e2dca075477ac Mon Sep 17 00:00:00 2001 From: "R.Ramkumar" Date: Tue, 4 Jul 2006 22:07:34 +0000 Subject: configure.ac: fix configure failing with newer faad2 Patch-by: R.Ramkumar : > MPD's configure seems to fail with newer versions of faad2 (Atleast > mine from CVS does, I don't know how long this has been a problem > for). MPD checks for faacDecInit2 which has been #define'd to > NeAACDecInit2, and hence AC_CHECK_LIB fails. I am enclosing a patch > which checks for the latter as a fallback. Hope that fixes things :) This looks reasonable, but I haven't tested it myself [normalperson] git-svn-id: https://svn.musicpd.org/mpd/trunk@4297 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8f0ead775..7e84f7fcc 100644 --- a/configure.ac +++ b/configure.ac @@ -369,6 +369,10 @@ if test x$enable_aac = xyes; then fi if test x$enable_aac = xyes; then AC_CHECK_LIB(faad,faacDecInit2,[MPD_LIBS="$MPD_LIBS $FAAD_LIBS";MPD_CFLAGS="$MPD_CFLAGS $FAAD_CFLAGS";MP4FF_SUBDIR="mp4ff";MP4FF_LIB="mp4ff/libmp4ff.la"],enable_aac=no) + if test x$enable_aac = xno; then + enable_aac=yes + AC_CHECK_LIB(faad,NeAACDecInit2,[MPD_LIBS="$MPD_LIBS $FAAD_LIBS";MPD_CFLAGS="$MPD_CFLAGS $FAAD_CFLAGS";MP4FF_SUBDIR="mp4ff";MP4FF_LIB="mp4ff/libmp4ff.la"],enable_aac=no) + fi fi if test x$enable_aac = xyes; then AC_MSG_CHECKING(that FAAD2 uses buffer and bufferlen) -- cgit v1.2.3