I'm trying to compile courier-authlib from scratch with authldap to use
the latest version of openldap.  This has been compiled from source and
lives at

/usr/local/include/ldap.h
/usr/local/lib/libldap-2.3.so.0.2.8

However, there is also a distribution installed version of openldap at

/usr/include/ldap.h
/usr/lib/libldap_r-2.2.so.7.0.22

How can I craft a configure line to find the /usr/local version before
the /usr?

Various combinations of

 env CXXFLAGS="-I/usr/local/include -I/usr/include"
CPPFLAGS="-I/usr/local/include -I/usr/include"
LDFLAGS="-L/usr/local/lib -I/usr/lib" ./configure --prefix=/usr
--sysconfdir=/etc --with-redhat --with-mailuser=qmailvirtual
--with-mailgroup=qmailvirtual --without-authpam --without-authpwd
--without-authshadow --without-authvchkpw --without-authpgsql
--without-authmysql --without-authcustom --without-authpipe

don't work and ldd always says it is linked against /usr/lib version of
openldap.

Apologies if this is a FAQ or I've missed the obvious.  Google has
failed me on this question.

Kind regards
Damian


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to