]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): add cases and comments for
authorRobert Boehne <rboehne@ricardo-us.com>
Tue, 17 Jul 2001 20:17:38 +0000 (20:17 +0000)
committerRobert Boehne <rboehne@gnu.org>
Tue, 17 Jul 2001 20:17:38 +0000 (20:17 +0000)
more platforms, including AIX, Digital/Tru64 UNIX and IRIX.

ChangeLog
ltdl.m4

index a969e389c409a943377b5f45b6ab2801d63e1776..2b0b44e2131b9dd0896dbce7c1658bd514f1f0d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-16  Robert Boehne  <rboehne@ricardo-us.com>, Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
+
+       * ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): add cases and comments for
+       more platforms, including AIX, Digital/Tru64 UNIX and IRIX.
 2001-07-16  Gary V. Vaughan  <gary@gnu.org>
 
        * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Fix ia64 AIX
diff --git a/ltdl.m4 b/ltdl.m4
index 164ee169e2acce206fea4f8b8b1354f359809c7d..c0a793d84ea34b5c2c075258d30f0f5a44aa9d37 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -70,15 +70,58 @@ AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS],
 [AC_REQUIRE([AC_CANONICAL_HOST])
 AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
        libltdl_cv_sys_dlopen_deplibs, [dnl
-       # PORTME does your system automatically load deplibs for dlopen()?
+       # PORTME does your system automatically load deplibs for dlopen?
+       # or its logical equivalent (e.g. shl_load for HP-UX < 11)
+       # For now, we just catch OSes we know something about -- in the
+       # future, we'll try test this programmatically.
        libltdl_cv_sys_dlopen_deplibs=unknown
        case "$host_os" in
+       aix3*|aix4.1.*|aix4.2.*)
+         # Unknown whether this is true for these versions of AIX, but
+         # we want this `case' here to explicitly catch those versions.
+         libltdl_cv_sys_dlopen_deplibs=unknown
+         ;;
+       aix[45]*)
+         libltdl_cv_sys_dlopen_deplibs=yes
+         ;;
+       irix[12345]*|irix6.[01]*)
+         # Catch all versions of IRIX before 6.2, and indicate that we don't
+         # know how it worked for any of those versions.
+         libltdl_cv_sys_dlopen_deplibs=unknown
+         ;;
+       irix*)
+         # The case above catches anything before 6.2, and it's known that
+         # at 6.2 and later dlopen does load deplibs.
+         libltdl_cv_sys_dlopen_deplibs=yes
+         ;;
        linux*)
          libltdl_cv_sys_dlopen_deplibs=yes
          ;;
        netbsd*)
          libltdl_cv_sys_dlopen_deplibs=yes
          ;;
+       osf[1234]*)
+         # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
+         # it did *not* use an RPATH in a shared library to find objects the
+         # library depends on, so we explictly say `no'.
+         libltdl_cv_sys_dlopen_deplibs=no
+         ;;
+       osf5.0|osf5.0a|osf5.1)
+         # dlopen *does* load deplibs and with the right loader patch applied
+         # it even uses RPATH in a shared library to search for shared objects
+         # that the library depends on, but there's no easy way to know if that
+         # patch is installed.  Since this is the case, all we can really
+         # say is unknown -- it depends on the patch being installed.  If
+         # it is, this changes to `yes'.  Without it, it would be `no'.
+         libltdl_cv_sys_dlopen_deplibs=unknown
+         ;;
+       osf*)
+         # the two cases above should catch all versions of osf <= 5.1.  Read
+         # the comments above for what we know about them.
+         # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
+         # is used to find them so we can finally say `yes'.
+         libltdl_cv_sys_dlopen_deplibs=yes
+         ;;
        solaris*)
          libltdl_cv_sys_dlopen_deplibs=yes
          ;;