summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-11-22 12:06:25 +0100
committerDavid Schleef <ds@schleef.org>2011-05-17 10:19:32 -0700
commit3489c6b030c3a800aa8815bbe45325aee5c7d536 (patch)
tree4ae996ae9cf9cdc89bfb6683e2057aa45ce65732
parent0f6a4d45886d64b244d57403609f0377b58cc7fb (diff)
orc: Check for Orc
-rw-r--r--configure.ac32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2defbd4..48c83e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -599,6 +599,38 @@ if test $enable_timers = yes ; then
fi
AC_SUBST(PIXMAN_TIMERS)
+dnl ==============================================
+dnl Orc
+
+AC_ARG_ENABLE(orc,
+ [AC_HELP_STRING([--disable-orc],
+ [enable Orc backend [default=yes]])],
+ [enable_orc=$enableval], [enable_orc=auto])
+
+PKG_PROG_PKG_CONFIG
+if test $enable_orc = auto ; then
+ PKG_CHECK_EXISTS([orc-0.4], [enable_orc=yes], [enable_orc=no])
+fi
+if test $enable_orc = yes ; then
+ PKG_CHECK_MODULES(ORC, [orc-0.4])
+fi
+
+if test $enable_orc = yes ; then
+ ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
+ if test "x$ORCC" = x ; then
+ ORCC=orcc
+ fi
+ AC_SUBST(ORCC)
+ AC_DEFINE(USE_ORC, 1, [use Orc])
+fi
+AM_CONDITIONAL(USE_ORC, [test "x$enable_orc" = xyes])
+
+DEP_CFLAGS="$DEP_CFLAGS $ORC_CFLAGS"
+DEP_LIBS="$DEP_LIBS $ORC_LIBS"
+AC_SUBST(ORC_CFLAGS)
+AC_SUBST(ORC_LIBS)
+
+
dnl ===================================
dnl GTK+