$OpenBSD: patch-configure_ac,v 1.8 2014/12/13 18:58:38 kili Exp $

Hardcoded -dl.

--- configure.ac.orig	Fri Jun 20 22:29:03 2014
+++ configure.ac	Thu Dec 11 22:08:27 2014
@@ -241,7 +241,7 @@ if test "x$gc_ok" = "xyes" && test "x$cross_compiling"
 			# include <gc.h>
 			#endif
 			#include <stdio.h>
-			extern unsigned GC_version;
+			unsigned GC_version = GC_get_version();
 			int main(void){
 				unsigned min = ((6 << 16) | (4 << 8) | 0);
 				printf("%d.%d.%d ",GC_version >> 16, (GC_version >> 8) & 0xFF, GC_version & 0xFF);
@@ -593,6 +593,11 @@ if test "x$popplernewercolorspaceapi" = "xyes"; then
 	AC_DEFINE(POPPLER_EVEN_NEWER_COLOR_SPACE_API, 1, [Use even newer color space API from Poppler >= 0.26.0])
 fi
 
+PKG_CHECK_MODULES(POPPLER_REALLY_NEWEWST_COLOR_SPACE_API, poppler >= 0.29.0, popplernewestcolorspaceapi=yes, popplernewestcolorspaceapi=no)
+if test "x$popplernewestcolorspaceapi" = "xyes"; then
+	AC_DEFINE(POPPLER_REALLY_NEWEST_COLOR_SPACE_API, 1, [Use really newest color space API from Poppler >= 0.29.0])
+fi
+
 # Poppler's b604a008 commit changes this
 AC_MSG_CHECKING([whether Poppler's GfxPatch no longer uses GfxColor])
 popplergfxcolor="no"
@@ -757,7 +762,7 @@ if test "x$cairo_pdf" = "xyes"; then
 fi
 
 dnl Shouldn't we test for libpng and libz?
-INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lxml2 -ldl"
+INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lxml2 $lt_cv_dlopen_libs"
 if test "x$openmp_ok" = "xyes"; then
 	INKSCAPE_LIBS="$INKSCAPE_LIBS -lgomp"
 fi
