From 4c1f149dbeffb8f2d4dc0b3c85aef34b5cfff557 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 1 Feb 2004 19:21:01 +0000 Subject: add check for new function Original commit message from CVS: add check for new function --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 25a828ed..a1c697c4 100644 --- a/configure.ac +++ b/configure.ac @@ -1349,6 +1349,23 @@ GST_CHECK_FEATURE(VORBIS, [vorbis plug-in], vorbisenc vorbisdec, [ XIPH_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no) AS_SCRUB_INCLUDE(VORBIS_CFLAGS) ]) +if test "x$HAVE_VORBIS" = "xyes"; then + ac_cflags_save="$CFLAGS" + CFLAGS="-Wall -Werror" + AC_COMPILE_IFELSE( + AC_LANG_PROGRAM([ +#include + ],[ +vorbis_dsp_state *v; + +vorbis_synthesis_restart (v); + ]), HAVE_VSR=yes, HAVE_VSR=no) + if test "x$HAVE_VSR" = "xyes"; then + AC_DEFINE_UNQUOTED(HAVE_VORBIS_SYNTHESIS_RESTART, 1, + [defined if vorbis_synthesis_restart is present]) + fi + CFLAGS="$ac_cflags_save" +fi dnl *** XVID *** translit(dnm, m, l) AM_CONDITIONAL(USE_XVID, true) -- cgit