From: Bruno Haible Date: Sun, 27 Nov 2011 13:10:32 +0000 (+0100) Subject: Speed up configure a bit. X-Git-Tag: v0.18.2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc85c0c6887c7713442d17f8f6eb9e28fe5ea3f;p=thirdparty%2Fgettext.git Speed up configure a bit. --- 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])