[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3856) prefix showing up in man pages



On Jul 11, 2005, at 7:19 PM, Quanah Gibson-Mount wrote:
> Here's something to think on:
>
> You can build with a given prefix (this is what I do), that is  
> different than where you install the software with make install.   
> This is what I do:
>
> ./configure --prefix=/usr/local
>
> etc,
>
> make depend
> make
>
> then, when I go to install, I do:
>
> make install prefix=/usr/local/stow/openldap-<version>
>
> Now, for everything *but* the man pages, libtool seems to know what  
> to do correctly here (thinks are linked against /usr/local/lib for  
> libraries, etc.  I get the same problem you do as far as the man  
> page declarations at the top.  I bet, however, there's a way to use  
> the configure generated prefix over the prefix supplied at make  
> install time.
>
> In looking at the man pages, it substitutes "LIBEXECDIR" for the  
> path. *Maybe* putting prefix in there instead would solve it, I do  
> not know. That, or add a new variable to the makefile to use for  
> substitution instead.

The other wrinkle is that in the case of the ETCDIR and  
LOCALSTATEDIR, we install into /private/etc/openldap and /private/var/ 
db/openldap but want these to show up as /etc/openldap and /var/db/ 
openldap in the man pages.

I think your suggestion of adding new variables for this is probably  
the way to go (in combination with making the distinction between the  
prefix and the installprefix).

-Jason