Bugzilla Bug 321230: don't link with libdl on BeOS. The patch is NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorwtchang%redhat.com
Thu, 22 Dec 2005 22:45:32 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 3519 8301d7c410d23e4624d18ec993e6f2cfd3732bd7
parent 3517 1f61f9287738ec2a4504c80f842f68c0dc3c10bb
child 3522 19d10b4231464e890ce9b2e28a3ad975d92516cd
push idunknown
push userunknown
push dateunknown
bugs321230
Bugzilla Bug 321230: don't link with libdl on BeOS. The patch is contributed by Christian Biesinger <cbiesinger@gmx.at>. r=wtc. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
configure
configure.in
--- a/configure
+++ b/configure
@@ -4975,17 +4975,17 @@ EOF
    
 esac
 
 if test -z "$SKIP_LIBRARY_CHECKS"; then
 
 
 
 case $target in
-*-darwin*)
+*-darwin*|*-beos*)
     ;;
 *)
     echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 echo "configure:4988: checking for dlopen in -ldl" >&5
 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
--- a/configure.in
+++ b/configure.in
@@ -2121,19 +2121,20 @@ dnl AC_CHECK_LIB(rt, main)
 dnl AC_CHECK_LIB(socket, main)
 dnl AC_CHECK_LIB(svld, main)
 dnl AC_CHECK_LIB(thread, main)
 dnl AC_CHECK_LIB(vms_jackets, main)
 
 
 dnl We don't want anything to link with libdl even if it's present on OS X, 
 dnl since it's not used and not part of the default installation.
+dnl The same goes for BeOS.
 
 case $target in
-*-darwin*)
+*-darwin*|*-beos*)
     ;;
 *)
     AC_CHECK_LIB(dl, dlopen,
         AC_CHECK_HEADER(dlfcn.h,
             OS_LIBS="-ldl $OS_LIBS"))
     ;;
 esac