summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/cairo/src/check-link.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/cairo/cairo/src/check-link.c')
-rw-r--r--gfx/cairo/cairo/src/check-link.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gfx/cairo/cairo/src/check-link.c b/gfx/cairo/cairo/src/check-link.c
new file mode 100644
index 0000000000..2d943d644c
--- /dev/null
+++ b/gfx/cairo/cairo/src/check-link.c
@@ -0,0 +1,17 @@
+#include <cairo.h>
+#include <stdio.h>
+
+int
+main (void)
+{
+ printf ("Check linking to the just built cairo library\n");
+ if (cairo_version () == CAIRO_VERSION) {
+ return 0;
+ } else {
+ fprintf (stderr,
+ "Error: linked to cairo version %s instead of %s\n",
+ cairo_version_string (),
+ CAIRO_VERSION_STRING);
+ return 1;
+ }
+}