#!/bin/sh

THIS_OBJ=`pwd`
cd ..
TEST_ROOT=`pwd`
THIS_INST=`pwd`/inst/httpd-2.0
THIS_SRC=`pwd`/httpd-2.0

cd ${THIS_SRC}
./buildconf --with-apr=${TEST_ROOT}/apr-0.9            \
            --with-apr-util=${TEST_ROOT}/apr-util-0.9
cd ${THIS_OBJ}

../httpd-2.0/configure --enable-dav --enable-so --prefix=${THIS_INST}     \
            --with-apr=${TEST_ROOT}/inst/apr-0.9/bin/apr-config           \
            --with-apr-util=${TEST_ROOT}/inst/apr-util-0.9/bin/apu-config \
            "$@"
