From xemacs-m  Sun Jul 20 23:51:31 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id XAA24272
	for <xemacs-beta@xemacs.org>; Sun, 20 Jul 1997 23:51:30 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.6/8.8.6) id VAA02230;
	Sun, 20 Jul 1997 21:55:00 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: 19.15 installation bugs
References: <199703242146.QAA08470@anthem.CNRI.Reston.Va.US>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: "Barry A. Warsaw"'s message of "Mon, 24 Mar 1997 16:46:26 -0500"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 20 Jul 1997 21:54:59 -0700
Message-ID: <m2g1t980nw.fsf@altair.xemacs.org>
Lines: 47
X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta15) - "Berlin"

Barry A Warsaw <bwarsaw@CNRI.Reston.VA.US> writes:

> XEmacs has long had bugs when installing if you've configured with
> prefix != exec_prefix.  I use the following values for our particular
> site:

> 	--prefix=/depot/gnu

> 	--exec-prefix=/depot/gnu/plat

As near as I can tell, the code intended to implement --prefix for
finding the architecture independent directories is completely broken.
It only appears to work for /usr/local by accident and I'm not sure
it's worth fixing.  Making two manual links seems to cure the symptoms.

The following might work in the pre19.16 tree (it looks like it should
looking at the vanilla 19.15 Makefile.in.  Those of you who wish to
see a 19.16 release, please try this out by passing configure
`--prefix=/tmp/junk1 --exec-prefix=/tmp/junk2' or somewhere separate
to make sure it works.  It appears to work fine on a 20.3 tree.

1997-07-20  SL Baur  <steve@altair.xemacs.org>

	* Makefile.in (install-arch-indep): Create required links when
	prefixdir != execdir.

Index: Makefile.in
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/Makefile.in,v
retrieving revision 1.20
diff -u -r1.20 Makefile.in
--- Makefile.in	1997/07/19 22:10:50	1.20
+++ Makefile.in	1997/07/21 04:34:53
@@ -414,6 +414,13 @@
 	    ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \
 	    chmod 0644 ${mandir}/$${page}${manext} ; \
 	  done
+	if test ! -d ${prefix}/bin; then \
+		$(LN_S) ${exec_prefix}/bin ${prefix}/bin; \
+	fi
+	if test ! -d ${prefix}/lib/xemacs-${version}/${configuration}; then \
+		${LN_S} ${exec_prefix}/lib/xemacs-${version}/${configuration} \
+			${prefix}/lib/xemacs-${version}/${configuration}; \
+	fi
 	@echo "If you would like to save approximately 15M of disk space, do"
 	@echo "make gzip-el"
 	@echo "or you may run "

