From xemacs-m  Sun Jul 27 17:59:38 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 RAA15873
	for <xemacs-beta@xemacs.org>; Sun, 27 Jul 1997 17:59:37 -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 TAA19804; Sun, 27 Jul 1997 19:03:50 -0400 (EDT)
Received: from tomorrow.eng.ecf.teradyne.com. (tomorrow.ecf.teradyne.com [131.101.192.7]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id AAA02903; Mon, 28 Jul 1997 00:59:01 +0200 (MET DST)
Received: by tomorrow.eng.ecf.teradyne.com. (SMI-8.6/SMI-SVR4)
	id AAA07286; Mon, 28 Jul 1997 00:58:58 +0200
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=ISO-8859-1
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 28 Jul 1997 00:58:57 +0200
In-Reply-To: Martin Buchholz's message of "Sun, 13 Jul 1997 04:43:21 -0700"
Message-ID: <rxsyb6srtji.fsf@tomorrow.ecf.teradyne.com>
Lines: 64
X-Mailer: Gnus v5.4.63/XEmacs 20.3(beta14) - "Vienna"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by xemacs.org id RAA15882

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

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

    AA> With the `xemacs-build-report' module I'm working on, I face
    AA> the following problem:

    AA> The user may have built XEmacs outside the srcdir using the
    AA> --srcdir option to configure.

    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
    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) ...

Hello Martin,

curiosity surprised the cat!

I take it `Berlin' is really 23.94-b122, and not 20.3-b15 ;-)

The value I get for the 'srcdir key is $srcdir. What did I miss?
Please see the attached file for how I used maphash to access the
config keys and values.

The value in config-value-file is "/export/home/xemacs-20.3-b15", which 
is where I built `Berlin'.

Thanks for providing access to config information!

Regards,

Adrian

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

    Martin> Martin



-- 
                            Adrian Aichner
                        Applications Engineer
  Teradyne GmbH
  Semiconductor Test Group    Telephone +49/89/41861(0)-208
  Dingolfinger Strae 2       Fax       +49/89/41861-217
  D-81673 MNCHEN             E-mail    aichner@ecf.teradyne.com

