From 0cb2f24fe084544c27801b692f210d9db73fcf95 Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Thu, 15 May 2003 20:45:08 +0000 Subject: [PATCH 1/1] Added --with-libmpeg2-prefix= option to support cross-compiling for arm-target. --- configure.ac.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure.ac.in b/configure.ac.in index d199c6aaee..e7b0e01f93 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -1851,6 +1851,21 @@ then AC_MSG_RESULT(no) AC_MSG_ERROR([cannot find ${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a, make sure you compiled libmpeg2 in ${with_libmpeg2_tree}]) fi + elif test "x${with_libmpeg2_prefix}" != "x" + then + # check for cross-compiling + AC_ARG_WITH(libmpeg2-prefix, + [ --with-libmpeg2-prefix=PATH path to installed libmpeg2 (needed for cross-compiling), + e.g use as: + --with-libmpeg2-prefix=/usr/local/arm/2.95.3/arm-linux/usr)],[],[]) + if test "x${with_libmpeg2_prefix}" != "xno" -a "x${with_libmpeg2_prefix}" != "x" + then + AC_MSG_CHECKING(for libmpeg2.a in ${with_libmpeg2_prefix}) + AC_MSG_RESULT(${with_libmpeg2_prefix}/lib/libmpeg2.a) + PLUGINS="${PLUGINS} libmpeg2" + LDFLAGS_libmpeg2="${LDFLAGS_libmpeg2} -L${with_libmpeg2_prefix}/lib -lmpeg2" + CFLAGS_libmpeg2="${CFLAGS_libmpeg2} -I${with_libmpeg2_prefix}/include" + fi else AC_CHECK_HEADERS(mpeg2dec/mpeg2.h, [ AC_MSG_CHECKING(for libmpeg2 version >= 0.3.2) -- 2.39.2