spf_template gnu &&
spf_url home  'http://apr.apache.org/' &&
spf_url watch 'http://apr.apache.org/download.cgi' &&
spf_url src \
  "http://www.apache.org/dist/apr/apr-util-${spf_version?}.tar.bz2" &&
spf_depend apr &&
spf_depend expat &&
spf_depend e2fsprogs  degree optional &&
spf_depend cyrus-sasl degree optional &&
spf_depend openldap   degree optional &&
spf_depend gdbm       degree optional &&
spf_depend db         degree optional &&
spf_depend sqlite     degree optional &&
spf_depend openssl    degree optional &&
spf_args configure --with-apr="${spf_path_conf?}"/apr/prefix &&
spf_args configure --with-expat="${spf_path_conf?}"/expat/prefix &&
spf_template_gnu_do_before_configure() {
  if test -d "${spf_path_conf?}"/openldap/.; then
    spf_args configure --with-ldap-include="${spf_path_conf?}"/openldap/include &&
    spf_args configure --with-ldap-lib="${spf_path_conf?}"/openldap/library &&
    spf_args configure --with-ldap=ldap
  else :
  fi &&
  if test -d "${spf_path_conf?}"/gdbm/.
    then spf_args configure --with-gdbm="${spf_path_conf?}"/gdbm/prefix
    else :
  fi &&
  if test -d "${spf_path_conf?}"/db/.
    then spf_args configure --with-berkeley-db="${spf_path_conf?}"/db/prefix
    else :
  fi &&
  if test -d "${spf_path_conf?}"/sqlite/.
    then spf_args configure --with-sqlite3="${spf_path_conf?}"/sqlite/prefix
    else :
  fi &&
  prj_x2 prj_set APRUTIL_LDFLAGS "${spf_args_ld?}"
} &&
spf_template_gnu_do_before_check() {
  prj_x2 prj_set TZ UTC0 &&
  if test -d "${spf_path_compile?}"/conf/openssl/.; then
    prj_x2 prj_append LD_LIBRARY_PATH \
      "${spf_path_compile?}"/conf/openssl/library
  else :
  fi
} &&
spf_tested_version 1.3.11 &&
spf_tested_version 1.3.10 &&
spf_tested_version 1.3.9 &&
spf_tested_version 1.3.8 &&
spf_tested_version 1.3.4 &&
spf_tested_version 1.3.2 &&
spf_tested_version 1.2.12 &&
spf_tested_version 1.2.10 &&
spf_tested_version 1.2.8

