anchor.diff: -{ stdenv, fetchurl, apr, expat
  +{ stdenv, fetchurl, makeWrapper, apr, expat, gnused
   , sslSupport ? true, openssl
   , bdbSupport ? false, db4
   , ldapSupport ? true, openldap
  
positive.code: assert sslSupport -> openssl != null;
  assert bdbSupport -> db4 != null;
  assert ldapSupport -> openldap != null;
  
  stdenv.mkDerivation rec {
    name = "apr-util-1.5.3";
  
negative.code:     ${stdenv.lib.optionalString ldapSupport "--with-ldap"}
    '';
  
    propagatedBuildInputs = [ makeWrapper apr expat ]
      ++ optional sslSupport openssl
      ++ optional bdbSupport db4
      ++ optional ldapSupport openldap;
  
    # Give apr1 access to sed for runtime invocations
    postInstall = ''
      wrapProgram $out/bin/apu-1-config --prefix PATH : "${gnused}/bin"
    '';
  
    enableParallelBuilding = true;
  
  