summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-11-27 14:10:32 +0100
committerBruno Haible <bruno@clisp.org>2011-11-27 14:10:32 +0100
commitefc85c0c6887c7713442d17f8f6eb9e28fe5ea3f (patch)
tree06d4f9c5d8a3fe892912681c0c0f75ef5e9b653b
parent69881b2a05c4a1dfa6fbb77146aa4885625fcff3 (diff)
downloadgettext-efc85c0c6887c7713442d17f8f6eb9e28fe5ea3f.tar.gz
Speed up configure a bit.
-rw-r--r--gettext-tools/ChangeLog7
-rw-r--r--gettext-tools/configure.ac6
2 files changed, 12 insertions, 1 deletions
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 <bruno@clisp.org>
+
+ 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 <dj@linuxfromscratch.org>.
+
2011-06-03 Bruno Haible <bruno@clisp.org>
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])