]> granicus.if.org Git - graphviz/commitdiff
check pangocairo available before allowing lasi
authorJohn Ellson <ellson@research.att.com>
Thu, 31 Jan 2013 21:19:43 +0000 (16:19 -0500)
committerJohn Ellson <ellson@research.att.com>
Thu, 31 Jan 2013 21:19:43 +0000 (16:19 -0500)
configure.ac

index 98019f9e59385c5c926131a0ada4ccb3cdc7b396..2f43f6665d9d924e0fcde2ac53f193581c0cdd15 100644 (file)
@@ -2209,15 +2209,19 @@ AC_ARG_WITH(lasi,
 if test "x$with_lasi" != "xyes"; then
   use_lasi="No (disabled)"
 else
-  PKG_CHECK_MODULES(LASI, [lasi],[
-    use_lasi="Yes"
-    AC_DEFINE_UNQUOTED(HAVE_LASI,1,
-      [Define if you have the lasi library])
-    AC_SUBST([LASI_CFLAGS])
-    AC_SUBST([LASI_LIBS])
-  ],[
-    use_lasi="No (lasi library not available)"
-  ])
+  if test "x$use_pangocairo" != "xYes"; then
+    use_lasi="No (missing pangocairo support)"
+  else
+    PKG_CHECK_MODULES(LASI, [lasi],[
+      use_lasi="Yes"
+      AC_DEFINE_UNQUOTED(HAVE_LASI,1,
+        [Define if you have the lasi library])
+      AC_SUBST([LASI_CFLAGS])
+      AC_SUBST([LASI_LIBS])
+    ],[
+      use_lasi="No (lasi library not available)"
+    ])
+  fi
 fi
 AM_CONDITIONAL(WITH_LASI, [test "x$use_lasi" == "xYes"])