Hi David,

On 27.12.2010 22:32, David Long wrote:

Please keep the discussion on list.

Thanks for your help to point me to apr and apr-util.

Do you know the config switch for ldap support in apr-util?

On Apache websie, it says.
# Build and install apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install

# Build and install apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install

Latest APR ist 1.4.2, latest APR-UTIl ist 1.3.10, see http://apr.apache.org/.

To learn about possible configure flags it always is a good idea to run

./configure --help

If you do that for apr-util, you would see e.g.

...
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
...
  --with-lber=library     lber library to use
  --with-ldap-include=path  path to ldap include files with trailing slash
  --with-ldap-lib=path    path to ldap lib file
  --with-ldap=library     ldap library to use
...

Yes, the help output could be a bit more explicit, but to build apr-util with ldap support based on the OS provided ldap libraries, you would simply add "--with-ldap" to the apr-util confugure flags.

# Configure httpd
cd ../../
./configure --with-apr=/usr/local/apr-httpd/ 
--with-apr-util=/usr/local/apr-util-httpd/

Here you have to choose the apr and apr-util paths where you instaled the new apr resp. apr-util.

It doesn't tell me how to build for ldap support.

Is it just "--enable-ldap --enable-authnz-ldap"?

Yes.

Also in httpd configure, Will I still need --prefix=/www/apache2? Or 
/usr/local/apr-httpd is my apache home directory.

You don't need it, but you might want it. It tells the build process, into which directory you want to install the result. Same when calling configure for apr and apr-util.

Regards,

Rainer

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to