Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!convex!convex!gstiehl From: gstiehl@convex.convex.COM (Greg Stiehl) Newsgroups: comp.windows.x Subject: Re: R5 wish Message-ID: <1991Jun04.133705.15431@convex.com> Date: 4 Jun 91 13:37:05 GMT References: <30242@hydra.gatech.EDU> <100920323@hpcvlx.cv.hp.com> Sender: usenet@convex.com (news access account) Reply-To: gstiehl@convex.com Organization: CONVEX Computer Corp, Graphics Software Lines: 54 Nntp-Posting-Host: pixel.convex.com tomg@hpcvlx.cv.hp.com (Thomas J. Gilg) writes: > > Simple setup: > > /usr/bin/X11 -> /usr/X11/bin > /usr/include/X11 -> /usr/X11/include > /usr/lib/X11 -> /usr/X11/lib This is exactly how we do it. And you don't *have* to change the imake files to get this, either. Just: # make install DESTDIR=/usr/X11 # mv /usr/X11/usr/bin/X11 /usr/X11/bin # mv /usr/X11/usr/include/X11 /usr/X11/include # mv /usr/X11/usr/lib/X11 /usr/X11/lib # mv /usr/X11/usr/lib/*.a /usr/X11/lib ## clean up # rm -r /usr/X11/usr ## link the directories into /usr # ln -s /usr/X11/bin /usr/bin/X11 # ln -s /usr/X11/include /usr/include/X11 # ln -s /usr/X11/lib /usr/lib/X11 ## and if you don't want to make everyone do a -L/usr/X11/lib # ln -s /usr/X11/lib/*.a /usr/lib If you can help it, I would highly recomend that you *don't* link all the libraries into /usr/lib (the last line). For that matter, I wouldn't do any of the links into /usr. Just force everyone to use -L/usr/X11/lib -I/usr/X11/include. Of course, for those of us who have customers that expect things to always be in the same place... #ifdef WISH This does have one problem. X want to find things (like app-defaults) in /usr/lib/X11. This can be changed at compile time, but (as far as I know) it can't be changed at run time. It would be trivial to add a XLIBDIR environment variable that could also be set to /usr/X11/lib. If fact, the best thing would be to have a XLIBDIRPATH, that could be set to a number of directories (separated by colons). #endif /* WISH */ The really neat thing about this, is that /usr/X11 can be a link to something else. This is really nice for trying new releases. -greg. ---- Greg Stiehl (gstiehl@convex.com) Graphics Software Convex Computer Corp.