diff options
| author | Alan Third | 2018-01-01 15:44:24 +0000 |
|---|---|---|
| committer | Alan Third | 2018-01-07 20:34:18 +0000 |
| commit | 9a220bbd94f427279dd1130f9fe6524f8a012ef2 (patch) | |
| tree | 1454cb92f41bf09fdc61556bc9149ddd93e0c93c | |
| parent | 703ac3ea1c1ce381f385469a0e88bc29d3fe83c2 (diff) | |
| download | emacs-9a220bbd94f427279dd1130f9fe6524f8a012ef2.tar.gz emacs-9a220bbd94f427279dd1130f9fe6524f8a012ef2.zip | |
Fix build issues on macOS (bug#29931)
* configure.ac: On darwin add check for Homebrew texinfo install, and
fix incorrect quoting of libxml2 includes.
| -rw-r--r-- | configure.ac | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 4c2644b11d4..c574d7dd0d1 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1267,6 +1267,14 @@ esac | |||
| 1267 | AC_SUBST([PAXCTL_dumped]) | 1267 | AC_SUBST([PAXCTL_dumped]) |
| 1268 | AC_SUBST([PAXCTL_notdumped]) | 1268 | AC_SUBST([PAXCTL_notdumped]) |
| 1269 | 1269 | ||
| 1270 | # Makeinfo on macOS is ancient, check whether there is a more recent | ||
| 1271 | # version installed by Homebrew. | ||
| 1272 | AC_CHECK_PROG(HAVE_BREW, [brew], [yes]) | ||
| 1273 | if test -n "$HAVE_BREW"; then | ||
| 1274 | AC_PATH_PROG([MAKEINFO], [makeinfo], [], | ||
| 1275 | [`brew --prefix texinfo 2>/dev/null`/bin$PATH_SEPARATOR$PATH]) | ||
| 1276 | fi | ||
| 1277 | |||
| 1270 | ## Require makeinfo >= 4.13 (last of the 4.x series) to build the manuals. | 1278 | ## Require makeinfo >= 4.13 (last of the 4.x series) to build the manuals. |
| 1271 | if test "${MAKEINFO:=makeinfo}" != "no"; then | 1279 | if test "${MAKEINFO:=makeinfo}" != "no"; then |
| 1272 | case `($MAKEINFO --version) 2>/dev/null` in | 1280 | case `($MAKEINFO --version) 2>/dev/null` in |
| @@ -3881,13 +3889,13 @@ if test "${with_xml2}" != "no"; then | |||
| 3881 | xcsdkdir="" ;; | 3889 | xcsdkdir="" ;; |
| 3882 | esac | 3890 | esac |
| 3883 | fi | 3891 | fi |
| 3884 | CPPFLAGS="$CPPFLAGS -I$xcsdkdir/usr/include/libxml2" | 3892 | CPPFLAGS="$CPPFLAGS -isystem${xcsdkdir}/usr/include/libxml2" |
| 3885 | AC_CHECK_HEADER(libxml/HTMLparser.h, | 3893 | AC_CHECK_HEADER(libxml/HTMLparser.h, |
| 3886 | [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, , | 3894 | [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, , |
| 3887 | [#include <libxml/HTMLparser.h>])]) | 3895 | [#include <libxml/HTMLparser.h>])]) |
| 3888 | CPPFLAGS="$SAVE_CPPFLAGS" | 3896 | CPPFLAGS="$SAVE_CPPFLAGS" |
| 3889 | if test "${HAVE_LIBXML2}" = "yes"; then | 3897 | if test "${HAVE_LIBXML2}" = "yes"; then |
| 3890 | LIBXML2_CFLAGS="-I'$xcsdkdir/usr/include/libxml2'" | 3898 | LIBXML2_CFLAGS="-isystem${xcsdkdir}/usr/include/libxml2" |
| 3891 | LIBXML2_LIBS="-lxml2" | 3899 | LIBXML2_LIBS="-lxml2" |
| 3892 | fi | 3900 | fi |
| 3893 | fi | 3901 | fi |