Jean-Rene Cormier writes:
I'm trying to compile Courier-IMAP and install it in a temp
directory somewhere else on the system so I can just pack it up and copy
it on another system. But if I use prefix=/temp/dir in the ./configure
when I install it on another system it looks for files installed in
/temp/dir.
According to INSTALL, keep your prefix as it should be on the final system. And,
to
paste the INSTALL text, DESTDIR is your friend on your test system:
Installation
su yourself to root, if you want to do a live install, then run make install or
make
install-strip to install Courier. If you use the GNU version of make, and you
would
like to see which files Courier installs and where, don't su yourself to root,
but
set the make variable named DESTDIR. For example:
make install DESTDIR=/var/tmp/courier-inst
The contents of DESTDIR are prepended to the name of every file installed, so if
--
prefix was set to /usr/lib/courier, the files will be installed in
/var/tmp/courier-
inst/usr/lib/courier. This only works if you use GNU make.