From efc85c0c6887c7713442d17f8f6eb9e28fe5ea3f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 27 Nov 2011 14:10:32 +0100 Subject: [PATCH] Speed up configure a bit. --- gettext-tools/ChangeLog | 7 +++++++ gettext-tools/configure.ac | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index 2003338e0..627c0f5d8 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,10 @@ +2011-11-27 Bruno Haible + + Speed up configure a bit. + * configure.ac: Don't invoke AM_PATH_LISPDIR if the user specified + --without-emacs. + Based on a patch by DJ Lucas . + 2011-06-03 Bruno Haible Update after gl_PROG_ANSI_CXX changed in gnulib. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 81037b3a7..8db84d362 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -288,7 +288,6 @@ dnl Check for nm output filter that yields the exported symbols. gt_GLOBAL_SYMBOL_PIPE dnl Check for Emacs and where to install .elc files. -AM_PATH_LISPDIR dnl Sometimes Emacs is badly installed. Allow the user to work around it. AC_ARG_WITH([emacs], [ --without-emacs do not use Emacs, don't install po-mode], @@ -301,6 +300,11 @@ if test "$EMACS" != no; then EMACS=no fi fi +dnl If $EMACS = no, we won't install any Emacs Lisp (*.el) files, +dnl therefore it's useless to determine $(lispdir). +if test "$EMACS" != no; then + AM_PATH_LISPDIR +fi aclocaldir='${datadir}/aclocal' AC_SUBST([aclocaldir]) -- 2.47.2