title: Building log4cxx with APR
body: <p>I need to build the <a href="http://logging.apache.org/log4cxx" rel="nofollow">log4cxx</a> library on a SuSE linux system where I am not root. The package manager, zypper, apparently does not know about log4cxx.</p>
  
  <p>I download log4cxx and <a href="http://logging.apache.org/log4cxx/building/autotools.html" rel="nofollow">try to build with autotools</a></p>
  
  <pre><code>./configure
  
  checking for APR... no
  configure: error: APR could not be located. Please use the --with-apr option.
  </code></pre>
  
  <p>I then search for <code>libapr</code>:</p>
  
  <pre><code>find / -name libapr*
  
  /usr/share/doc/packages/libapr-util1
  /usr/share/doc/packages/libapr1
  /usr/lib64/libaprutil-1.so.0.3.12
  /usr/lib64/libapr-1.so.0.4.5
  /usr/lib64/libaprutil-1.so.0
  /usr/lib64/libapr-1.so.0
  </code></pre>
  
  <p>So I try</p>
  
  <pre><code>./configure --with-apr=/usr/lib64/libapr-1.so.0
  
  configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
  </code></pre>
  
  <p>The same for <code>--with-apr=/usr/lib64/libapr-1.so.0.4.5</code> and <code>--with-apr=/usr/lib64/</code>. </p>
  
  <p>Which file does <code>./configure</code> look for? What does <code>--with-apr</code> expect? Is one of the two <code>*.so.*</code> files the needed library? </p>