orc: Add --compat $ORC_REQ to the orcc commandlines
[platform/upstream/gst-common.git] / m4 / orc.m4
index 99ca52f..d7abd81 100644 (file)
--- a/m4/orc.m4
+++ b/m4/orc.m4
@@ -5,7 +5,7 @@ dnl ORC_CHECK([REQUIRED_VERSION])
 
 AC_DEFUN([ORC_CHECK],
 [
-  ORC_REQ=ifelse([$1], , "0.4.5", [$1])
+  ORC_REQ=ifelse([$1], , "0.4.6", [$1])
 
   AC_ARG_ENABLE(orc,
   AC_HELP_STRING([--enable-orc],[use Orc if installed]),
@@ -23,6 +23,8 @@ AC_DEFUN([ORC_CHECK],
       AC_DEFINE(HAVE_ORC, 1, [Use Orc])
       ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
       AC_SUBST(ORCC)
+      ORCC_FLAGS="--compat $ORC_REQ"
+      AC_SUBST(ORCC_FLAGS)
       HAVE_ORC=yes
     ], [
       if test "x$enable_orc" = "xyes" ; then
@@ -39,7 +41,7 @@ AC_DEFUN([ORC_CHECK],
 
 ]))
 
-AC_DEFUN([ORC_NOTICE],
+AC_DEFUN([ORC_OUTPUT],
 [
   if test "$HAVE_ORC" = yes ; then
     printf "configure: *** Orc acceleration enabled.\n"