Commit 1d96f5aa authored by Daniel Veillard's avatar Daniel Veillard

applied 2 patches from Albert Chin for module portability Daniel

* xmlmodule.c configure.in: applied 2 patches from Albert Chin for
  module portability
Daniel
parent dbf7bfed
Fri Oct 28 10:36:10 CEST 2005 Daniel Veillard <daniel@veillard.com>
* xmlmodule.c configure.in: applied 2 patches from Albert Chin for
module portability
Fri Oct 28 10:24:39 CEST 2005 Daniel Veillard <daniel@veillard.com>
* error.c: fixing a portability problem on some old Unices with
......
......@@ -724,18 +724,34 @@ if test "$with_modules" != "no" ; then
])
;;
*)
MODULE_EXTENSION=".so"
AC_CHECK_LIB(dld, shl_load, [
AC_CHECK_FUNC(shl_load, libxml_have_shl_load=yes, [
AC_CHECK_LIB(dld, shl_load, [
MODULE_PLATFORM_LIBS="-ldld"
libxml_have_shl_load=yes], [
AC_CHECK_FUNC(dlopen, libxml_have_dlopen=yes, [
AC_CHECK_LIB(dl, dlopen, [
MODULE_PLATFORM_LIBS="-ldl"
libxml_have_dlopen=yes])])])])
if test "${libxml_have_shl_load}" = "yes"; then
MODULE_EXTENSION=".sl"
WITH_MODULES=1
MODULE_PLATFORM_LIBS="-ldld"
AC_DEFINE([HAVE_SHLLOAD], [], [Have shl_load based dso])
])
fi
AC_CHECK_LIB(dl, dlopen, [
if test "${libxml_have_dlopen}" = "yes"; then
case "${host}" in
*-*-hpux* )
MODULE_EXTENSION=".sl"
;;
* )
MODULE_EXTENSION=".so"
;;
esac
WITH_MODULES=1
MODULE_PLATFORM_LIBS="-ldl"
AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso])
])
fi
;;
esac
fi
......
......@@ -277,7 +277,7 @@ xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
int rc;
errno = 0;
rc = shl_findsym(handle, name, TYPE_PROCEDURE, symbol);
rc = shl_findsym(&handle, name, TYPE_PROCEDURE, symbol);
if ((-1 == rc) && (0 == errno)) {
rc = shl_findsym(handle, name, TYPE_DATA, symbol);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment