configure: Add orc check
This commit is contained in:
parent
44c911d255
commit
d9817d5ec0
@ -53,6 +53,13 @@ This file lists supporting libraries for which gst-plugins contains plugins,
|
|||||||
as well as their minimum version. You can find the corresponding plugins in
|
as well as their minimum version. You can find the corresponding plugins in
|
||||||
ext/(library)
|
ext/(library)
|
||||||
|
|
||||||
|
Package: Orc
|
||||||
|
Version: >= 0.4.5
|
||||||
|
Recommended: 0.4.latest
|
||||||
|
URL: http://code.entropywave.com/orc
|
||||||
|
DebianPackage: liborc-0.4-dev
|
||||||
|
Notes: Used by many plugins for accelerating processing
|
||||||
|
|
||||||
Package: GTK+
|
Package: GTK+
|
||||||
Version: >= 2.0
|
Version: >= 2.0
|
||||||
Recommended: >= 2.2
|
Recommended: >= 2.2
|
||||||
|
28
configure.ac
28
configure.ac
@ -210,7 +210,35 @@ dnl liboil is required
|
|||||||
PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.8, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
|
PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.8, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
|
||||||
if test "x$HAVE_LIBOIL" != "xyes"; then
|
if test "x$HAVE_LIBOIL" != "xyes"; then
|
||||||
AC_ERROR([liboil-0.3.8 or later is required])
|
AC_ERROR([liboil-0.3.8 or later is required])
|
||||||
|
|
||||||
|
dnl Orc
|
||||||
|
AC_ARG_ENABLE(orc,
|
||||||
|
AC_HELP_STRING([--enable-orc],[use Orc if installed]),
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) enable_orc=yes ;;
|
||||||
|
no) enable_orc=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-orc) ;;
|
||||||
|
esac
|
||||||
|
],
|
||||||
|
[enable_orc=yes]) dnl Default value
|
||||||
|
|
||||||
|
ORC_REQ=0.4.5
|
||||||
|
if test "x$enable_orc" = "xyes" ; then
|
||||||
|
PKG_CHECK_MODULES(ORC, orc-0.4 >= $ORC_REQ, [
|
||||||
|
AC_DEFINE(HAVE_ORC, 1, [Use Orc])
|
||||||
|
ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
|
||||||
|
AC_SUBST(ORCC)
|
||||||
|
HAVE_ORC=yes
|
||||||
|
], [
|
||||||
|
AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
|
||||||
|
HAVE_ORC=no
|
||||||
|
])
|
||||||
|
else
|
||||||
|
AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
|
||||||
|
HAVE_ORC=no
|
||||||
fi
|
fi
|
||||||
|
AM_CONDITIONAL(HAVE_ORC, test "x$HAVE_ORC" = "xyes")
|
||||||
|
|
||||||
|
|
||||||
dnl checks for gstreamer
|
dnl checks for gstreamer
|
||||||
dnl uninstalled is selected preferentially -- see pkg-config(1)
|
dnl uninstalled is selected preferentially -- see pkg-config(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user