-AC_SUBST(PYGOBJECT_REQ, 2.11.2)
-
-dnl check for pygobject (optional, used in the bindings)
-PKG_CHECK_MODULES(PYGOBJECT, pygobject-2.0 >= $PYGOBJECT_REQ,
- [
- HAVE_PYGOBJECT="yes"
- ],
- [
- HAVE_PYGOBJECT="no"
- ])
-AC_SUBST(PYGOBJECT_CFLAGS)
-
-dnl check for gst-python
-PKG_CHECK_MODULES(PYGST, gst-python-0.10,
- [
- HAVE_PYGST="yes"
- ],
- [
- HAVE_PYGST="no"
- ])
-
-if test "x$HAVE_PYGST" = "xyes"; then
- PYGST_DEFSDIR=`pkg-config gst-python-0.10 --variable=defsdir`
-fi
-AC_SUBST(PYGST_DEFSDIR, $PYGST_DEFSDIR)
-
-if test "x$HAVE_PYTHON_HEADERS" = "xyes" -a \
- "x$HAVE_PYGOBJECT" = "xyes" -a \
- "x$HAVE_PYGST" = "xyes"; then
- HAVE_PYTHON_BINDINGS="yes"
-else
- HAVE_PYTHON_BINDINGS="no"
-fi
-
-AM_CONDITIONAL(WITH_PYTHON, [test "x$HAVE_PYTHON_BINDINGS" = "xyes"])
-
-dnl Check for vala
-PKG_CHECK_EXISTS([vala-1.0], [HAVE_VALA="yes"], [HAVE_VALA="no"])
-
-AM_CONDITIONAL(WITH_VALA, [test "x$HAVE_VALA" = "xyes"])
-
-AC_ARG_WITH([vapidir],
- AS_HELP_STRING([--with-vapidir], [Define where to install the VAPI files]))
-
-if test "x$HAVE_VALA" = "xyes"; then
- if test "x$with_vapidir" = "x"; then
- VAPIDIR="`pkg-config --variable vapidir vala-1.0`"
- else
- VAPIDIR="$with_vapidir"
- fi
-fi
-AC_SUBST(VAPIDIR)
-