1 #include <cairo.h>
2 #include <stdio.h>
3 
4 int
main(void)5 main (void)
6 {
7   printf ("Check linking to the just built cairo library\n");
8   if (cairo_version () == CAIRO_VERSION) {
9     return 0;
10   } else {
11     fprintf (stderr,
12 	     "Error: linked to cairo version %s instead of %s\n",
13 	     cairo_version_string (),
14 	     CAIRO_VERSION_STRING);
15     return 1;
16   }
17 }
18