[at-spi2-core] Place result of check for dlopen() into a variable so we can add it to the linker



commit 0b29829cf534cfbbd443a8007e9dcb02212980b7
Author: Kjartan Maraas <kmaraas gnome org>
Date:   Fri Aug 20 19:10:00 2010 +0200

    Place result of check for dlopen() into a variable so we can add it to the linker

 configure.ac |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0cee763..44fe6cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,7 +48,16 @@ PKG_CHECK_MODULES(GOBJ, [gobject-2.0 >= 2.0.0])
 AC_SUBST(GOBJ_LIBS)
 AC_SUBST(GOBJ_CFLAGS)
 
-AC_CHECK_LIB(dl, dlopen)
+# --------------------------------------------------------------------
+# Find DL functionality
+
+AC_CHECK_LIB(c, dlopen, DL_LIBS="",
+        AC_CHECK_LIB(dl, dlopen, DL_LIBS="-ldl",
+                AC_MSG_ERROR([Could not find a library with the dlopen function])
+        )
+)
+
+AC_SUBST(DL_LIBS)
 
 AC_PATH_XTRA
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]