diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-10-07 20:10:45 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-10-07 20:10:45 +0000 |
commit | 19b84cd45f5be52401edae5852df4c889e832979 (patch) | |
tree | c4caa6e58b1fade69f7ae4f5f92b5e15c2470b04 /m4/_xine.m4 | |
parent | fd99af790c0f3fe36373553870a301c39e34bf12 (diff) | |
download | xine-lib-19b84cd45f5be52401edae5852df4c889e832979.tar.gz xine-lib-19b84cd45f5be52401edae5852df4c889e832979.tar.bz2 |
Add ogg/vorbis checks. Change divxdecore checks.
CVS patchset: 760
CVS date: 2001/10/07 20:10:45
Diffstat (limited to 'm4/_xine.m4')
-rw-r--r-- | m4/_xine.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/m4/_xine.m4 b/m4/_xine.m4 index d73cabd40..a738fd732 100644 --- a/m4/_xine.m4 +++ b/m4/_xine.m4 @@ -1,4 +1,32 @@ dnl +dnl Check for divx4. +dnl AC_CHECK_DIVX4([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]) +AC_DEFUN([AC_CHECK_DIVX4], + [ + ac_save_LIBS="$LIBS" + + DIVX4_LIBS="$DIVX4_LIBS -lstdc++" + LIBS="$DIVX4_LIBS" + + AC_CHECK_HEADER(decore.h, + [ no_divx4=no; + AC_CHECK_LIB(divxdecore, decore, no_divx4=no, no_divx4=yes) ] + , no_divx4=yes) + + LIBS="$ac_save_LIBS" + + if test x"$no_divx4" = "xno" ; then + DIVX4_LIBS="$DIVX4_LIBS -ldivxdecore" + AC_SUBST(DIVX4_LIBS) + ifelse([$1], , :, [$1]) + else + DIVX4_LIBS="" + AC_SUBST(DIVX4_LIBS) + ifelse([$2], , :, [$2]) + fi +]) + +dnl dnl Check for minimum version of libtool dnl AC_PREREQ_LIBTOOL([MINIMUM VERSION],[ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]) AC_DEFUN([AC_PREREQ_LIBTOOL], |