[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking Emacs with libxml2
From: |
Andreas Schwab |
Subject: |
Re: Linking Emacs with libxml2 |
Date: |
Wed, 08 Sep 2010 21:10:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Lars Magne Ingebrigtsen <address@hidden> writes:
> +### Use libxml2 (-lxml2) if available
> +HAVE_LIBXML2=no
> +LIBXML2_LIBS=
> +if test -n xml2-config; then
What's the point of this test?
> + LIBXML2_CFLAGS="`xml2-config --cflags`"
> + SAVE_CFLAGS="$CFLAGS"
> + CFLAGS="$LIBXML2_CFLAGS $CFLAGS"
> + AC_CHECK_HEADER(libxml/xmlversion.h,
> + [AC_CHECK_LIB(xml2, htmlReadMemory, HAVE_LIBXML2=yes, , -lxml2)])
Please use PKG_CHECK_MODULES.
> + result = Fcons (Fintern (build_string (node->name),
> + Vobarray),
intern (node->name)
> + ibeg = CHAR_TO_BYTE (XFASTINT (Fpoint_min ()));
> + iend = CHAR_TO_BYTE (XFASTINT (Fpoint_max ()));
> + move_gap_both (XFASTINT (Fpoint_min ()), ibeg);
> + while (ibeg < iend) {
> + *s++ = *(BYTE_POS_ADDR (ibeg));
> + ibeg++;
> + }
Lisp_Object s = make_buffer_string (BEGV, ZV, 0);
> + doc = htmlReadMemory (string, strlen(string), "", "utf-8", 0);
SDATA (s), SBYTES (s)
Note that the internal encoding is utf-8-emacs which is different from
utf-8 in details.
> Or an autoconf one, for that matter. ./configure finds the stuff it's
> looking for, but I get this warning:
>
> -------
> address@hidden ~/src/emacs/trunk]$ ./configure | grep xml
> checking libxml/xmlversion.h usability... yes
> checking libxml/xmlversion.h presence... no
> configure: WARNING: libxml/xmlversion.h: accepted by the compiler, rejected
> by the preprocessor!
> configure: WARNING: libxml/xmlversion.h: proceeding with the compiler's result
> checking for libxml/xmlversion.h... yes
> checking for htmlReadMemory in -lxml2... yes
> -------
>
> I'm not sure what that means...
Look at config.log.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Linking Emacs with libxml2, (continued)
- Re: Linking Emacs with libxml2, joakim, 2010/09/06
- Re: Linking Emacs with libxml2, Jason Rumney, 2010/09/06
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/06
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Andreas Schwab, 2010/09/08
- Re: Linking Emacs with libxml2, Stefan Monnier, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, joakim, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2,
Andreas Schwab <=
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Andreas Schwab, 2010/09/08
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08
- Re: Linking Emacs with libxml2, Stefan Monnier, 2010/09/09
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/09
- Re: Linking Emacs with libxml2, Stefan Monnier, 2010/09/09
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/09
- Re: Linking Emacs with libxml2, Andreas Schwab, 2010/09/10