Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!kodak!ispd-newsserver!ism.isc.com!ico!attc!marbru From: marbru@attc.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Problems with X11 (tree) in non-standard location Message-ID: <1289@attc.UUCP> Date: 22 Mar 91 00:59:01 GMT Reply-To: marbru@auto-trol.com (better ...sunpeaks!auto-trol!marbru) () Organization: Auto-trol Technology, Denver Lines: 43 I am still having problems with the non-standard X11 installation. I need to have my X11 directory tree completely separate from anything else. Using a shared resource (a server), I can't use the common approach of creating links in /usr/local. Building X11 withe DESTDIR=mypath was easy and worked as expected. The problem is making anything that DEPENDS on MIT X11 (such as Wcl, Dirt...) using that non-standard X11 location. I did the obvious thing (and I got advice to do that). Modified my site.def to include definitions for my non-standard directories, such as BinDir, UsrLibDir, IncRoot, ManDirectoryRoot etc. using the following approach: #ifndef BinDir #define BinDir $(DESTDIR)/usr/local/bin/X11 #endif But I was still running into probles with make Makefiles target insisting on looking up Imake templates in standard -I/usr/local/lib/X11/config. I found that the whole problem is due to template definition: DESTDIR = DestDir However, putting macro DestDir=... on make command line was not enough, as the imake for subdirectories does not propagate it down. I ended up modifying the Imake.tmpl as follows: 649c649,650 < IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) --- > IMAKE_CMD = $(IMAKE) -DUseInstalled -DDestDir=$(DESTDIR) \ > -I$(IRULESRC) $(IMAKE_DEFINES) This finally did the job of making makefiles in subdirectories. However, beeing a really novice Imake user, I hope there is a cleaner solution to my problem (one that does not require Imake.tmpl changes). Any help ? -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky {...}sunpeaks!auto-trol!marbru (303) 252-2499 (sometimes also: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404