|
|
1efbb3 |
From d011a6ae00ce9abd445d6d01ce9131a7b97ef5bc Mon Sep 17 00:00:00 2001
|
|
|
1efbb3 |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
1efbb3 |
Date: Tue, 3 Oct 2017 10:04:18 +0200
|
|
|
1efbb3 |
Subject: [PATCH] Allow disabling Emacs support
|
|
|
1efbb3 |
MIME-Version: 1.0
|
|
|
1efbb3 |
Content-Type: text/plain; charset=UTF-8
|
|
|
1efbb3 |
Content-Transfer-Encoding: 8bit
|
|
|
1efbb3 |
|
|
|
1efbb3 |
This patch adds --disable-emacs configure option to disable installing
|
|
|
1efbb3 |
LISP scripts for Emacs.
|
|
|
1efbb3 |
|
|
|
1efbb3 |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
1efbb3 |
---
|
|
|
1efbb3 |
configure.ac | 9 ++++++++-
|
|
|
1efbb3 |
src/Makefile.am | 2 ++
|
|
|
1efbb3 |
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
1efbb3 |
|
|
|
1efbb3 |
diff --git a/configure.ac b/configure.ac
|
|
|
1efbb3 |
index 649ddcd..a6dc9ff 100644
|
|
|
1efbb3 |
--- a/configure.ac
|
|
|
1efbb3 |
+++ b/configure.ac
|
|
|
1efbb3 |
@@ -50,7 +50,6 @@ AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
|
|
|
1efbb3 |
AM_GNU_GETTEXT(external)
|
|
|
1efbb3 |
AM_GNU_GETTEXT_VERSION(0.19.3)
|
|
|
1efbb3 |
AM_ICONV
|
|
|
1efbb3 |
-AM_PATH_LISPDIR
|
|
|
1efbb3 |
|
|
|
1efbb3 |
if test "$am_cv_func_iconv" != "yes"; then
|
|
|
1efbb3 |
AC_MSG_NOTICE([
|
|
|
1efbb3 |
@@ -100,6 +99,14 @@ AM_CONDITIONAL(JAVA, test "$enable_java" != "no")
|
|
|
1efbb3 |
AC_MSG_CHECKING([if implementation in Java should be built])
|
|
|
1efbb3 |
AC_MSG_RESULT($enable_java)
|
|
|
1efbb3 |
|
|
|
1efbb3 |
+# Check for Emacs
|
|
|
1efbb3 |
+AC_ARG_ENABLE(emacs, AC_HELP_STRING([--disable-emacs], [disable Emacs support]),
|
|
|
1efbb3 |
+ enable_emacs=$enableval, enable_emacs=yes)
|
|
|
1efbb3 |
+AM_CONDITIONAL(EMACS, test "$enable_emacs" != "no")
|
|
|
1efbb3 |
+if test "$enable_emacs" != "no"; then
|
|
|
1efbb3 |
+ AM_PATH_LISPDIR
|
|
|
1efbb3 |
+fi
|
|
|
1efbb3 |
+
|
|
|
1efbb3 |
# Check for C#
|
|
|
1efbb3 |
if test -n "$HAVE_CSHARPCOMP"; then
|
|
|
1efbb3 |
gt_CSHARPEXEC
|
|
|
1efbb3 |
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
|
1efbb3 |
index 6832c20..ec99560 100644
|
|
|
1efbb3 |
--- a/src/Makefile.am
|
|
|
1efbb3 |
+++ b/src/Makefile.am
|
|
|
1efbb3 |
@@ -20,7 +20,9 @@ AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
|
|
|
1efbb3 |
AM_CPPFLAGS = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/gl -I../gl
|
|
|
1efbb3 |
AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\"
|
|
|
1efbb3 |
|
|
|
1efbb3 |
+if EMACS
|
|
|
1efbb3 |
dist_lisp_DATA = punycode.el idna.el
|
|
|
1efbb3 |
+endif
|
|
|
1efbb3 |
|
|
|
1efbb3 |
bin_PROGRAMS = idn
|
|
|
1efbb3 |
idn_SOURCES = idn.c
|
|
|
1efbb3 |
--
|
|
|
1efbb3 |
2.13.6
|
|
|
1efbb3 |
|