I am trying to compile openLDAP. I am running on RH9.
I have openSSL and Berkeley DB installed in non standard locations (which I will remember not to do next time around) and I am trying to set the CPPFLAGS and LDFLAGS environment variables to point to the necessary locations. When I use this, it works fine:
env CPPFLAGS=-I/usr/local/bdb/include LDFLAGS=-L/usr/local/bdb/lib ./configure --with-crypt --with-bdb
And fine with this too:
env CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib ./configure --with-crypt --with-tls --enable-bdb=no
However, I am completely lost as to how I should combine both statements to got both tls and dbd compiled in. I have tried things such as:
env CPPFLAGS=-I/usr/local/bdb/include:/usr/local/ssl/include LDFLAGS=-L/usr/local/bdb/lib:/usr/local/ssl/lib ./configure --with-crypt --with-bdb --with-tls
But with no luck. Could anyone help me out on the syntax for this. I have a feeling that this question will be simple to anyone who has more linux experience than me.