Index: configure.ac
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/configure.ac,v
retrieving revision 1.674
diff -u -r1.674 configure.ac
--- configure.ac	1 Mar 2007 18:50:00 -0000	1.674
+++ configure.ac	4 Mar 2007 04:24:19 -0000
@@ -484,7 +484,12 @@
 dnl *** pango ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_PANGO, true)
 AG_GST_CHECK_FEATURE(PANGO, [Pango font rendering], pango, [
-  AG_GST_PKG_CHECK_MODULES(PANGO, pango pangoft2)
+  AG_GST_PKG_CHECK_MODULES(PANGO, pango pangocairo)
+  PKG_CHECK_MODULES(PANGO, pangocairo >= 1.15.4, HAVE_PANGO_VERTICAL_WRITING=yes, HAVE_PANGO_VERTICAL_WRITING=no)
+  if test "x$HAVE_PANGO_VERTICAL_WRITING" = xyes; then
+    PANGO_VERTICAL_WRITING_CFLAGS="-DHAVE_PANGO_VERTICAL_WRITING"
+  fi
+  AC_SUBST(PANGO_VERTICAL_WRITING_CFLAGS)
 ])
 
 dnl *** theora ***
Index: ext/pango/Makefile.am
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/ext/pango/Makefile.am,v
retrieving revision 1.6
diff -u -r1.6 Makefile.am
--- ext/pango/Makefile.am	11 Jun 2006 14:08:54 -0000	1.6
+++ ext/pango/Makefile.am	4 Mar 2007 04:24:19 -0000
@@ -16,7 +16,8 @@
         $(GST_PLUGINS_BASE_CFLAGS) \
 	$(GST_BASE_CFLAGS) \
 	$(GST_CFLAGS) \
-	$(PANGO_CFLAGS)
+	$(PANGO_CFLAGS) \
+	$(PANGO_VERTICAL_WRITING_CFLAGS) 
 libgstpango_la_LIBADD = \
 	$(GST_BASE_LIBS) \
 	$(GST_LIBS) \
