[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    PATCH: repair aclocal.m4 dlopen check
From:       Marc Espie <espie () nerim ! net>
Date:       2002-03-17 1:06:20
[Download RAW message or body]

There are some platforms where dlopen resides in libc (most OpenBSD
platforms)
I believe that further checks do hide the problem in many cases (libtool
stuff, or code not depending on HAVE_DLFCN), but I was tripped by it very 
badly in konq-e.

--- aclocal.m4.orig	Sun Mar 17 02:01:53 2002
+++ aclocal.m4	Sun Mar 17 02:02:08 2002
@@ -3492,6 +3492,11 @@ LIBDL="-ldl"
 ac_cv_have_dlfcn=yes
 ])
 
+AC_CHECK_LIB(c, dlopen, [
+LIBDL=""
+ac_cv_have_dlfcn=yes
+])
+
 AC_CHECK_LIB(dld, shl_unload, [
 LIBDL="-ldld"
 ac_cv_have_shload=yes
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic