#!/bin/sh

SRCDIR=$(dirname $0)
TOPSRCDIR="$SRCDIR"/../..
export OLD_CONFIGURE="$SRCDIR"/old-configure

set -- "$@" --enable-project=js

if test -z "$PYTHON"; then
	if which python2.7 >/dev/null; then
		PYTHON=python2.7
	else
		PYTHON=python
	fi
fi

exec "$PYTHON" "$TOPSRCDIR/configure.py" "$@"
