#!/bin/sh -v
CC='gcc -g -O'
export CC
T=i586-cygnus-win32
(cd $T; make clean)
cat $T-cacheadd > $T/config.cache
sh krb5/etc/buildcns5full --disable-xdm $T
# skip ss, pty, send-pr
perl -pi~ -e 's/ss profile  pty send-pr/profile/ if /^SUBDIRS/' $T/util/Makefile
# skip kdb
perl -pi~ -e 's/kdb// if /^SUBDIRS/' $T/lib/Makefile
perl -pi~ -e 's/kdc admin kadmin kadmin.v4 krb524 slave// if /^SUBDIRS/' $T/Makefile
sh krb5/etc/buildcns5full --disable-xdm $T --noconfig
