Hi Mike,

Doing ./configure on a RH8 box I get the following:
checking libxslt/transform.h presence... yes
configure: WARNING: libxslt/transform.h: present but cannot be compiled
configure: WARNING: libxslt/transform.h:     check for missing
prerequisite headers?
configure: WARNING: libxslt/transform.h: see the Autoconf documentation
configure: WARNING: libxslt/transform.h:     section "Present But Cannot
Be Compiled"
configure: WARNING: libxslt/transform.h: proceeding with the
preprocessor's result
configure: WARNING: libxslt/transform.h: in the future, the compiler
will take precedence
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to wine-devel@winehq.org ##
configure: WARNING:     ## ------------------------------------ ##

The problem looks to come from my transform.h needing xsltInternals.h
being included first.

I added an #ifdef HAVE_LIBXSLT_PATTERN_H include to the AC_CHECK_HEADERS
which defines HAVE_LIBXSLT, as that file does #include
"xsltInternals.h". I don't think we should directly include
xsltInternals.h. Could you please comment if the attached patch is
correct or not? I'll send it to wine-patches if acceptable.

Thank you,
Vincent
Index: configure
===================================================================
RCS file: /home/wine/wine/configure,v
retrieving revision 1.703
diff -u -p -r1.703 configure
--- configure	3 Sep 2005 15:43:53 -0000	1.703
+++ configure	8 Sep 2005 23:08:03 -0000
@@ -8930,7 +8930,10 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-$ac_includes_default
+#ifdef HAVE_LIBXSLT_PATTERN_H
+# include <libxslt/pattern.h>
+#endif
+
 #include <$ac_header>
 _ACEOF
 rm -f conftest.$ac_objext
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.403
diff -u -p -r1.403 configure.ac
--- configure.ac	3 Sep 2005 15:43:53 -0000	1.403
+++ configure.ac	8 Sep 2005 23:08:04 -0000
@@ -469,7 +469,10 @@ then
             [AC_DEFINE(HAVE_LIBXSLT, 1, [Define if you have the libxslt library])
              XSLTLIBS="$ac_xslt_libs"
              XSLTINCL="$ac_xslt_cflags"],,$ac_xslt_libs)
-        ])
+        ],,
+[#ifdef HAVE_LIBXSLT_PATTERN_H
+# include <libxslt/pattern.h>
+#endif])
     CPPFLAGS="$ac_save_CPPFLAGS"
 fi
 


Reply via email to