summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-10-08 20:27:21 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-10-08 20:27:21 +0000
commit9db74666f2412cc81e7e30c4d3ffddad2d131dea (patch)
tree7e14c99aa6ecca40e6a785f9551b944dc9cc97c8
parente85aa6d782154439b7a629134a65c7e70a777f43 (diff)
downloadxine-lib-9db74666f2412cc81e7e30c4d3ffddad2d131dea.tar.gz
xine-lib-9db74666f2412cc81e7e30c4d3ffddad2d131dea.tar.bz2
remove unused xvid.m4, change configure replacement into a Makefile variable
(you never know who might want to override it) CVS patchset: 7019 CVS date: 2004/10/08 20:27:21
-rw-r--r--m4/Makefile.am5
-rw-r--r--m4/xvid.m4102
2 files changed, 2 insertions, 105 deletions
diff --git a/m4/Makefile.am b/m4/Makefile.am
index 5274e73b0..66d9fb606 100644
--- a/m4/Makefile.am
+++ b/m4/Makefile.am
@@ -1,7 +1,7 @@
include $(top_srcdir)/misc/Makefile.common
if INSTALL_M4
-m4datadir = @ACLOCAL_DIR@
+m4datadir = $(ACLOCAL_DIR)
else
m4datadir = $(datadir)/aclocal
endif
@@ -38,5 +38,4 @@ EXTRA_DIST = \
speex.m4 \
theora.m4 \
xine.m4 \
- _xine.m4 \
- xvid.m4
+ _xine.m4
diff --git a/m4/xvid.m4 b/m4/xvid.m4
deleted file mode 100644
index a348d354c..000000000
--- a/m4/xvid.m4
+++ /dev/null
@@ -1,102 +0,0 @@
-# Configure paths for libxvidcore
-# Tomas Kovar <tomask@mac.com> 03-31-2002
-# Stolen from ogg.m4
-
-dnl AM_PATH_XVID([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Test for libxvidcore, and define XVID_CFLAGS and XVID_LIBS
-dnl
-AC_DEFUN([AM_PATH_XVID],
-[dnl
-dnl Get the cflags and libraries
-dnl
-AC_ARG_WITH(xvid-prefix, AC_HELP_STRING([--with-xvid-prefix=DIR], [prefix where XviD is installed (optional)]), xvid_prefix="$withval", xvid_prefix="")
-AC_ARG_ENABLE(xvidtest, AC_HELP_STRING([--disable-xvidtest], [do not try to compile and run a test XviD program]), enable_xvidtest=$enableval, enable_xvidtest=yes)
-
- if test x$xvid_prefix != x ; then
- xvid_args="$xvid_args --prefix=$xvid_prefix"
- XVID_CFLAGS="-I$xvid_prefix/include"
- XVID_LIBS="-L$xvid_prefix/$XINE_LIBNAME"
- fi
-
- XVID_LIBS="$XVID_LIBS -lxvidcore"
-
- AC_MSG_CHECKING(for XviD)
- no_xvid=""
-
-
- if test "x$enable_xvidtest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $XVID_CFLAGS"
- LIBS="$LIBS $XVID_LIBS"
-dnl
-dnl Now check if the installed XviD is sufficiently new.
-dnl
- rm -f conf.xvidtest
- AC_TRY_RUN([
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <xvid.h>
-
-int main ()
-{
- XVID_INIT_PARAM xinit;
- system("touch conf.xvidtest");
-
- xinit.cpu_flags = 0;
- xvid_init(NULL, 0, &xinit, NULL);
-
- if (xinit.api_version == API_VERSION) {
- return 0;
- } else {
- printf ("Header file and library are out of sync. Header file supports\n"
- "version %d.%d API and shared library supports version %d.%d API.\n",
- API_VERSION >> 16, API_VERSION & 0xFFFF,
- xinit.api_version >> 16, xinit.api_version & 0xFFFF);
- return 1;
- }
-}
-
-],, no_xvid=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
-
- if test "x$no_xvid" = x ; then
- AC_MSG_RESULT(yes)
- ifelse([$1], , :, [$1])
- else
- AC_MSG_RESULT(no)
- if test -f conf.xvidtest ; then
- :
- else
- echo "*** Could not run XviD test program, checking why..."
- CFLAGS="$CFLAGS $XVID_CFLAGS"
- LIBS="$LIBS $XVID_LIBS"
- AC_TRY_LINK([
-#include <stdio.h>
-#include <xvid.h>
-], [ return 0; ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding XviD or finding the wrong"
- echo "*** version of XviD. If it is not finding XviD, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means XviD was incorrectly installed." ])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- XVID_CFLAGS=""
- XVID_LIBS=""
- ifelse([$2], , :, [$2])
- fi
- AC_SUBST(XVID_CFLAGS)
- AC_SUBST(XVID_LIBS)
- rm -f conf.xvidtest
-])