Example
-------
# export LDFLAGS CPPFLAGS
# unset LD_LIBRARY_PATH
# LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/lib"
# LDFLAGS="$LDFLAGS -R/usr/local/ssl/lib:/usr/local/lib"
# CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/include"
Download the latest stable source code from http://www.openldap.org/
In this example, we install openldap 2.1.22 but do not want the openLDAP server (slapd).
So we need to explicitly disable it.
# gunzip openldap-2.1.22.tgz
# tar -xvf openldap-2.1.22.tar
# cd openldap-2.1.22
# ./configure --with-tls --disable-slapd
# make depend
# make
# make install