]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/configure.in: check for dld.h
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 22 Feb 1999 19:24:55 +0000 (19:24 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 22 Feb 1999 19:24:55 +0000 (19:24 +0000)
* libltdl/ltdl.c: include dld.h
(dld_open) it's spelled memory_error, not no_memory_error
Reported by Stefan Burstroem <f94sbu@efd.lth.se>

ChangeLog
libltdl/configure.in
libltdl/ltdl.c

index 5b2a3f919e353a738daa4e2263f8c36165ed22c8..918be46dc6bb84f95a9a316bafecff7329fb6e9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libltdl/configure.in: check for dld.h
+       * libltdl/ltdl.c: include dld.h
+       (dld_open) it's spelled memory_error, not no_memory_error
+       Reported by Stefan Burstroem <f94sbu@efd.lth.se>
+       
        * ltmain.in: fix typos in my last change (s/ocmpile/compile/)
 
 1999-02-21  Thomas Tanner  <tanner@gmx.de>
index 391367d967824829ceeba57585300208ed1f2522..3785958af628b75f9fc9f1726a61b9da85a7b9f9 100644 (file)
@@ -82,7 +82,7 @@ AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/",
   [Define to the sub-directory in which libtool stores uninstalled libraries. ])
 
 AC_HEADER_STDC
-AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h)
+AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h)
 AC_CHECK_HEADERS(string.h strings.h, break)
 AC_CHECK_FUNCS(strdup strchr strrchr index rindex)
 
index 228126bfbfd7d86ab8136da10780664598887cc3..9f08672b83b99cfedee851c41cb796ac389b53ed 100644 (file)
@@ -407,6 +407,10 @@ shl = { LTDL_TYPE_TOP, 0, shl_init, shl_exit,
 
 /* dynamic linking with dld */
 
+#if HAVE_DLD_H
+#include <dld.h>
+#endif
+
 static int
 dld_init ()
 {
@@ -426,7 +430,7 @@ dld_open (handle, filename)
 {
        handle->handle = strdup(filename);
        if (!handle->handle) {
-               last_error = no_memory_error;
+               last_error = memory_error;
                return 1;
        }
        if (dld_link(filename) != 0) {