From: Robert Millan Date: Sun, 21 Sep 2003 12:51:38 +0000 (+0000) Subject: * libtool.m4: Add GNU/KNetBSD support. X-Git-Tag: release-1-5-2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc486ac2fc78488d522401dd8ddccf0cbd40bfbe;p=thirdparty%2Flibtool.git * libtool.m4: Add GNU/KNetBSD support. * ltdl.m4: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 4c26a54e3..f20259e3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-09-21 Robert Millan + + * libtool.m4: Add GNU/KNetBSD support. + * ltdl.m4: Likewise. + 2003-09-10 Peter O'Gorman * mdemo2/configure.ac: Use AC_LIBTOOL_DLOPEN. diff --git a/libtool.m4 b/libtool.m4 index e5c3a935b..8b387602b 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -1457,6 +1457,18 @@ linux*) dynamic_linker='GNU/Linux ld.so' ;; +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + netbsd*) version_type=sunos need_lib_prefix=no diff --git a/ltdl.m4 b/ltdl.m4 index d7c1f41df..e93b969e3 100644 --- a/ltdl.m4 +++ b/ltdl.m4 @@ -142,10 +142,8 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], # If you are looking for one http://www.opendarwin.org/projects/dlcompat libltdl_cv_sys_dlopen_deplibs=yes ;; - kfreebsd*-gnu) - libltdl_cv_sys_dlopen_deplibs=yes - ;; - gnu*) + gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) + # GNU and its variants, using gnu ld.so (Glibc) libltdl_cv_sys_dlopen_deplibs=yes ;; hpux10*|hpux11*) @@ -161,9 +159,6 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], # 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 ;;