From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add --enable-locallisppath option to configure.in Date: Thu, 19 May 2005 01:33:15 +0200 Message-ID: <87d5ro9kjo.fsf@xs4all.nl> References: <87u0l9mynh.fsf@marant.org> <87is1pmtmx.fsf@marant.org> <87oeb8o1bj.fsf@marant.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1116460673 2744 80.91.229.2 (18 May 2005 23:57:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 23:57:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 19 01:57:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYYPh-0002lS-Ab for ged-emacs-devel@m.gmane.org; Thu, 19 May 2005 01:57:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYYSE-0005P1-8E for ged-emacs-devel@m.gmane.org; Wed, 18 May 2005 19:59:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DYYHh-0007Mi-NL for emacs-devel@gnu.org; Wed, 18 May 2005 19:49:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DYYD5-0005o7-He for emacs-devel@gnu.org; Wed, 18 May 2005 19:44:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYYD4-0005dV-Du for emacs-devel@gnu.org; Wed, 18 May 2005 19:44:18 -0400 Original-Received: from [194.109.24.31] (helo=smtp-vbr11.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DYYAX-0000Zl-Ro for emacs-devel@gnu.org; Wed, 18 May 2005 19:41:42 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr11.xs4all.nl (8.12.11/8.12.11) with ESMTP id j4INXGun029959; Thu, 19 May 2005 01:33:17 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DYY2O-0003he-00; Thu, 19 May 2005 01:33:16 +0200 Original-To: =?iso-8859-1?Q?J=E9r=F4me?= Marant In-Reply-To: <87oeb8o1bj.fsf@marant.org> (=?iso-8859-1?Q?J=E9r=F4me?= Marant's message of "Wed, 18 May 2005 20:07:12 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 69 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37317 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37317 Hi J=E9r=F4me, > Would anybody be kind to either consider or reject this small patch or > maybe propose a better way to achieve the goal? > I haven't read any comment so far. > > (Here is an update) > > Thanks in advance. > > J=E9r=F4me Marant writes: > >> J=E9r=F4me Marant writes: >> >>> Hi, >>> >>> Currently, only the configure script generates epaths, by calling the >>> 'epaths-force' target of the Makefile. >>> >>> However, it is not possible to customize the value of the >>> locallisppath variable in order to include it in epaths at >>> configure-time, which makes necessary to re-run 'make epaths-force' >>> with a customized locallisppath. >>> >>> The following patch adds a --enable-locallisppath option for this >>> purpose. It attemps to follow the --enable-* options semantic: >> >> This one should be better: > > diff -ur emacs.orig/ChangeLog emacs/ChangeLog > --- emacs.orig/ChangeLog 2005-05-10 22:28:12.000000000 +0200 > +++ emacs/ChangeLog 2005-05-18 20:01:34.388771568 +0200 > @@ -1,3 +1,7 @@ > +2005-05-11 Jerome Marant > + > + * configure.in: Add --enable-locallisppath. > + > 2005-05-07 J=E9r=F4me Marant >=20=20 > * make-dist: Remove references to makefile.nt and makefile.def. > diff -ur emacs.orig/configure.in emacs/configure.in > --- emacs.orig/configure.in 2005-04-23 19:02:09.000000000 +0200 > +++ emacs/configure.in 2005-05-18 20:02:51.733013456 +0200 > @@ -142,6 +142,16 @@ > fi > AC_SUBST(MAINT) >=20=20 > +AC_ARG_ENABLE(locallisppath, > +[ --enable-locallisppath=3DPATH > + directories Emacs should search for lisp files > + specific to this site], > +if test "${enableval}" =3D "no"; then > + locallisppath=3D > +elif test "${enableval}" !=3D "yes"; then > + locallisppath=3D${enableval} > +fi) > + > #### Make srcdir absolute, if it isn't already. It's important to > #### avoid running the path through pwd unnecessarily, since pwd can > #### give you automounter prefixes, which can go away. We do all this Could you explain what you want to accomplish? It seems to me that you want to be able to _add_ a dir to locallisppath. However, when you do "./configure --enable-locallisppath=3D/my/dir", you _replace_ the default value of locallisppath (which is '${datadir}/emacs/${version}/site-lisp:'\ '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim') with /my/dir. Lute.