diff options
author | Benjamin Otte <otte@gnome.org> | 2004-04-26 18:03:19 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2004-04-26 18:03:19 +0000 |
commit | ee54469b81592a750617f1a33a636a3765d02d14 (patch) | |
tree | 6135c30e6ea233d950dfac2e8eaaabbc3474e733 | |
parent | 6fe75fc2d80f627ee38cdbc94d40a8a99dbb0511 (diff) | |
download | gst-plugins-bad-ee54469b81592a750617f1a33a636a3765d02d14.tar.gz gst-plugins-bad-ee54469b81592a750617f1a33a636a3765d02d14.tar.bz2 gst-plugins-bad-ee54469b81592a750617f1a33a636a3765d02d14.zip |
configure.ac: detect faad correctly as non-working if it's indeed non-working
Original commit message from CVS:
* configure.ac:
detect faad correctly as non-working if it's indeed non-working
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 15 |
2 files changed, 14 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2004-04-26 Benjamin Otte <otte@gnome.org> + + * configure.ac: + detect faad correctly as non-working if it's indeed non-working + 2004-04-26 Thomas Vander Stichele <thomas at apestaart dot org> * Makefile.am: diff --git a/configure.ac b/configure.ac index fd895173..b0f3c07e 100644 --- a/configure.ac +++ b/configure.ac @@ -865,16 +865,19 @@ GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [ dnl **** Free AAC Decoder (FAAD) **** translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true) GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [ - GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h, FAAD_LIBS="-lfaad -lm") - AC_MSG_CHECKING([Checking for FAAD >= 2]) - AC_TRY_COMPILE([ + HAVE_FAAD="yes" + GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h, FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no") + if test $HAVE_FAAD = "yes"; then + AC_MSG_CHECKING([Checking for FAAD >= 2]) + AC_TRY_COMPILE([ #include <faad.h> #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE) #error Not faad2 #endif - ], [ return 0; ], - [ HAVE_FAAD="yes" && AC_MSG_RESULT(yes)], - [ HAVE_FAAD="no" && AC_MSG_RESULT(no)]) + ], [ return 0; ], + [ HAVE_FAAD="yes" && AC_MSG_RESULT(yes)], + [ HAVE_FAAD="no" && AC_MSG_RESULT(no)]) + fi; AS_SCRUB_INCLUDE(FAAD_CFLAGS) AC_SUBST(FAAD_LIBS) ]) |