if [ -z "${SAGE_LOCAL}" ]; then
    echo >&2 "Error: SAGE_LOCAL undefined - exiting..."
    echo >&2 "Maybe run 'sage -sh'?"
    exit 1
fi

cd src/

sage-python23 configure.py
if [ $? -ne 0 ]
then
    echo "Configuration of sip failed"
    exit 1
fi

${MAKE}
if [ $? -ne 0 ]
then
    echo "Build of sip failed"
exit 1
fi

${MAKE} install
if [ $? -ne 0 ]
then
    echo "Installation of sip failed"
    exit 1
fi
