[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Mac port
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: Emacs Mac port |
Date: |
Fri, 25 Oct 2013 09:56:56 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Thu, 24 Oct 2013 19:18:57 +0900, YAMAMOTO Mitsuharu <address@hidden>
>>>>> said:
>> Everything went well except it no longer linked to libxml2. Any
>> idea how to make it work again? Without libxml2 shr.el is pretty
>> useless. Thanks in advance.
> I didn't notice that. Thanks for spotting this.
> It seems that the standard include files are no longer in the
> /usr/include directory on OS X 10.9. An immediate workaround would
> be to run the configure script as:
> CPPFLAGS=-I"`xcrun --show-sdk-path`"/usr/include/libxml2 ./configure
> --with-mac
Below is the patch for configure{.ac,}.
YAMAMOTO Mitsuharu
address@hidden
=== modified file 'configure.ac'
*** configure.ac 2013-09-21 09:48:19 +0000
--- configure.ac 2013-10-25 00:25:37 +0000
***************
*** 2820,2833 ****
# Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
SAVE_CPPFLAGS="$CPPFLAGS"
! CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
AC_CHECK_HEADER(libxml/HTMLparser.h,
[AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, ,
[#include <libxml/HTMLparser.h>])])
CPPFLAGS="$SAVE_CPPFLAGS"
if test "${HAVE_LIBXML2}" = "yes"; then
LIBXML2_LIBS="-lxml2"
! LIBXML2_CFLAGS="-I/usr/include/libxml2"
fi
fi
if test "${HAVE_LIBXML2}" = "yes"; then
--- 2820,2834 ----
# Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
SAVE_CPPFLAGS="$CPPFLAGS"
! sdkdir="`xcrun --show-sdk-path 2> /dev/null`"
! CPPFLAGS="$CPPFLAGS -I${sdkdir}/usr/include/libxml2"
AC_CHECK_HEADER(libxml/HTMLparser.h,
[AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, ,
[#include <libxml/HTMLparser.h>])])
CPPFLAGS="$SAVE_CPPFLAGS"
if test "${HAVE_LIBXML2}" = "yes"; then
LIBXML2_LIBS="-lxml2"
! LIBXML2_CFLAGS="-I${sdkdir}/usr/include/libxml2"
fi
fi
if test "${HAVE_LIBXML2}" = "yes"; then
=== modified file 'configure'
*** configure 2013-09-21 09:48:19 +0000
--- configure 2013-10-25 00:31:48 +0000
***************
*** 13238,13244 ****
# Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
SAVE_CPPFLAGS="$CPPFLAGS"
! CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h"
"ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
if test "x$ac_cv_header_libxml_HTMLparser_h" = xyes; then :
ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER"
"ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
--- 13238,13245 ----
# Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
SAVE_CPPFLAGS="$CPPFLAGS"
! sdkdir="`xcrun --show-sdk-path 2> /dev/null`"
! CPPFLAGS="$CPPFLAGS -I${sdkdir}/usr/include/libxml2"
ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h"
"ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
if test "x$ac_cv_header_libxml_HTMLparser_h" = xyes; then :
ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER"
"ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
***************
*** 13253,13259 ****
CPPFLAGS="$SAVE_CPPFLAGS"
if test "${HAVE_LIBXML2}" = "yes"; then
LIBXML2_LIBS="-lxml2"
! LIBXML2_CFLAGS="-I/usr/include/libxml2"
fi
fi
if test "${HAVE_LIBXML2}" = "yes"; then
--- 13254,13260 ----
CPPFLAGS="$SAVE_CPPFLAGS"
if test "${HAVE_LIBXML2}" = "yes"; then
LIBXML2_LIBS="-lxml2"
! LIBXML2_CFLAGS="-I${sdkdir}/usr/include/libxml2"
fi
fi
if test "${HAVE_LIBXML2}" = "yes"; then