default_install &&

# APR_BRANCH replaces APR_VERSION; remove APR_VERSION in May, 2005
    # fix build chain
    FIX_PATH_REGEX='s|/usr/src/apr-[^/"]*|/usr/share/apache2|' &&
    sedit $FIX_PATH_REGEX $INSTALL_ROOT/usr/bin/apr-config &&
    sedit $FIX_PATH_REGEX $INSTALL_ROOT/usr/share/apache2/build/apr_rules.mk &&
    ln -fns build/libtool $INSTALL_ROOT/usr/share/apache2/libtool
cd build &&
cp -fv                \
  apr_common.m4       \
  config.guess        \
  config.sub          \
  find_apr.m4         \
  install.sh          \
  make_exports.awk    \
  make_var_export.awk \
  mkdir.sh            \
  PrintPath           \
  $INSTALL_ROOT/usr/share/apache2/build/ &&

# in APR 1.x, gen-build.py is needed to build from latest source
if [[ -f gen-build.py ]]; then
  cp -fv gen-build.py $INSTALL_ROOT/usr/share/apache2/build/
fi
