#! /bin/sh

###  Uncomment the next line for debugging
# DEBUGDEF="-DDEBUG "

/bin/rm -rf i386_linux22
/bin/mkdir i386_linux22

if [ "$1" = "--autoconf" ]; then
        (cd src; \
                autoheader ; \
                autoconf configure.in >configure; \
                chmod a+rx configure \
        )
fi

cd build
# Use the following for K4
# CFLAGS="-g ${DEBUGDEF}" ../src/configure --enable-srclinks --disable-krb5

# Use the following for K5
CFLAGS="-g ${DEBUGDEF}" ../src/configure --enable-srclinks
gmake

# allow *binaries* to be seen by members of x509:friends

fs sa lib x509:friends rl
