mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
configure: use m4 macro to check for Orc
This commit is contained in:
parent
823a514161
commit
269686fe35
1 changed files with 3 additions and 26 deletions
29
configure.ac
29
configure.ac
|
@ -207,32 +207,7 @@ dnl GLib is required
|
|||
AG_GST_GLIB_CHECK([2.18])
|
||||
|
||||
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
|
||||
AM_CONDITIONAL(HAVE_ORC, test "x$HAVE_ORC" = "xyes")
|
||||
ORC_CHECK([0.4.5])
|
||||
|
||||
|
||||
dnl checks for gstreamer
|
||||
|
@ -1248,3 +1223,5 @@ sed \
|
|||
AC_OUTPUT
|
||||
|
||||
AG_GST_OUTPUT_PLUGINS
|
||||
ORC_OUTPUT
|
||||
|
||||
|
|
Loading…
Reference in a new issue