From xemacs-m  Sun Jul 13 09:14:07 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA14888
	for <xemacs-beta@xemacs.org>; Sun, 13 Jul 1997 09:14:07 -0500 (CDT)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id KAA04872; Sun, 13 Jul 1997 10:18:16 -0400 (EDT)
Received: (from aichner@localhost) by engine.ecf.teradyne.com (8.7.1/8.7.1) id QAA24221; Sun, 13 Jul 1997 16:13:32 +0200 (MET DST)
To: Martin Buchholz <mrb@Eng.Sun.COM>
Cc: xemacs-beta@xemacs.org
Subject: Re: How to determine build-dir within running XEmacs?
References: <rxszprrme68.fsf@ecf.teradyne.com> <199707131143.EAA02550@xemacs.eng.sun.com>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 13 Jul 1997 16:13:31 +0200
In-Reply-To: Martin Buchholz's message of "Sun, 13 Jul 1997 04:43:21 -0700"
Message-ID: <rxshgdzavlg.fsf@ecf.teradyne.com>
Lines: 37
X-Mailer: Gnus v5.4.62/XEmacs 20.3(beta11) - "Stockholm"

>>>>> "Martin" == Martin Buchholz <mrb@Eng.Sun.COM> writes:

>>>>> "AA" == Adrian Aichner <aichner@ecf.teradyne.com> writes:

    AA> How can I access the value of the building location, where
    AA> `Installation' and make-output files the user may create are
    AA> located, from within XEmacs?

    Martin> configure should (will?) be enhanced so that all the

That would (will?) be great!

    Martin> AC_SUBST's and AC_DEFINE's are captured in a config.el
    Martin> file which gets put.....uhmmm, not into the normal lisp
    Martin> hierarchy, but into exec-directory (where else?).  Then
    Martin> elisp code that wanted access to this information could
    Martin> just do:

    Martin> (let ((load-path (list exec-directory))) (require
    Martin> 'config))

    Martin> config.el could look like this:

    Martin> (defvar config-hashtable (make-hashtable 100)) (puthash
    Martin> 'srcdir "/xemacs-23.94-b122" config-hashtable) (puthash
    Martin> 'HAVE_TERMIOS t) ...

    Martin> Oops... Didn't I say I wasn't going to do any more
    Martin> configure enhancements for a while?

Yes, but breaking a promise isn't always a bad thing to do ;->

    Martin> Martin

Regards,

Adrian

