summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-09-05 12:07:28 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-09-05 12:07:28 +0200
commitd3d9acf829af1b0bd867367138d3a7ba2b2675a9 (patch)
tree5a1f2a33b3c0be15e03c57ef30535af5b0104525 /m4
parentca1c867ac96a3bdb83f2bc4cb2081e2a0deb1a16 (diff)
orc: Add --compat $ORC_REQ to the orcc commandlines
This allows orcc to always use the latest features of the required orc version instead of always generating code that would still work with 0.4.5 or even earlier.
Diffstat (limited to 'm4')
-rw-r--r--m4/orc.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/orc.m4 b/m4/orc.m4
index f6355ff..d7abd81 100644
--- 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