Bug 650622: Wrong suffix for CAIRO_SHARED_LIBRARY on OSX
authorJohn Ralls <jralls@ceridwen.us>
Thu, 19 May 2011 18:27:18 +0000 (11:27 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 19 May 2011 18:27:28 +0000 (11:27 -0700)
configure.ac

index fccad9c..16db3a7 100644 (file)
@@ -137,10 +137,24 @@ if test x$have_cairo = xyes; then
 fi
 
 if test x$have_cairo_gobject = xyes; then
-  CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
+  case "$host" in
+    *-*-darwin*)
+      CAIRO_SHARED_LIBRARY="libcairo-gobject.2.dylib"
+      ;;
+    *)
+      CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
+      ;;
+  esac
   CAIRO_GIR_PACKAGE="cairo-gobject"
 elif test x$have_cairo = xyes; then
-  CAIRO_SHARED_LIBRARY="libcairo.so.2"
+  case "$host" in
+    *-*-darwin*)
+      CAIRO_SHARED_LIBRARY="libcairo.2.dylib"
+      ;;
+    *)
+      CAIRO_SHARED_LIBRARY="libcairo.so.2"
+      ;;
+  esac
   CAIRO_GIR_PACKAGE="cairo"
 fi
 AC_SUBST(CAIRO_SHARED_LIBRARY)