trying to work around the compilation problem on HP-UX Daniel

* config.h.in configure.in xmlmodule.c: trying to work around
  the compilation problem on HP-UX
Daniel
diff --git a/ChangeLog b/ChangeLog
index b6a91ea..51a6dcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jan 13 12:24:09 CET 2005 Daniel Veillard <daniel@veillard.com>
+
+	* config.h.in configure.in xmlmodule.c: trying to work around
+	  the compilation problem on HP-UX
+
 Wed Jan 12 22:03:33 CET 2005 Daniel Veillard <daniel@veillard.com>
 
 	* pattern.c: fixed the fixed size array structure problem reported by
diff --git a/config.h.in b/config.h.in
index a7b6eeb..141486d 100644
--- a/config.h.in
+++ b/config.h.in
@@ -43,6 +43,9 @@
 /* Have dlopen based dso */
 #undef HAVE_DLOPEN
 
+/* Define to 1 if you have the <dl.h> header file. */
+#undef HAVE_DL_H
+
 /* Define to 1 if you have the <errno.h> header file. */
 #undef HAVE_ERRNO_H
 
diff --git a/configure.in b/configure.in
index 77a4943..192dfae 100644
--- a/configure.in
+++ b/configure.in
@@ -388,6 +388,8 @@
 # include <arpa/nameser.h>
 # endif
 ])
+AC_CHECK_HEADERS([dl.h])
+AC_CHECK_HEADERS([dlfcn.h])
 
 
 echo Checking libraries
diff --git a/xmlmodule.c b/xmlmodule.c
index 318497b..fcd4c33 100644
--- a/xmlmodule.c
+++ b/xmlmodule.c
@@ -191,8 +191,9 @@
 }
 
 #ifdef HAVE_DLOPEN
-
+#ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
+#endif
 
 /**
  * xmlModulePlatformOpen:
@@ -239,7 +240,9 @@
 #endif /* HAVE_DLOPEN */
 
 #ifdef HAVE_SHLLOAD             /* HAVE_SHLLOAD */
-
+#ifdef HAVE_DL_H
+#include <dl.h>
+#endif
 /*
  * xmlModulePlatformOpen:
  * returns a handle on success, and zero on error.