# Build mod_jk and isapi_redirect
#

install -m 755 -d "$RPM_BUILD_ROOT$_sbindir"
install -m 755 -d "$RPM_BUILD_ROOT$_confdir/httpd/conf"

EXTLIBPATH="$RPM_ROOT_DIR/$_lib"
EXTINCPATH="$RPM_ROOT_DIR/include"
export EXTLIBPATH
export EXTINCPATH
$__make PREFIX=$RPM_BUILD_ROOT$_prefix install

pushd native/iis
touch pcre/PRE64PRA.H
a=$_arch_win
test ".$a" = .i386 && a=x86
$__perl -pi -e 's/kernel32.lib//g' pcre/pcre.$a
$__make -f Makefile.$a
install -m 755 Release_$a/isapi_redirect.dll "$RPM_BUILD_ROOT$_sbindir/isapi_redirect.dll"
popd
for i in mod_jk.conf.sample workers.properties.sample
do
    install -m 644 $_sourcedir/$i "$RPM_BUILD_ROOT$_confdir/httpd/conf/"
done

files="$_libdir $_sbindir $_confdir"
files_doc="LICENSE NOTICE native/README.txt"
