author Mike Hommey <>
Tue, 23 Feb 2016 09:42:40 +0900
changeset 702117 5f3620f268e780fd39cec144cde6c3ae5835ac2f
parent 699720 05c436617515d28ecc42e760a5c3f28fe04f095e
permissions -rw-r--r--
Bug 1250294 - Make configure a Python script that invokes the old

dnl Because adding a configure file in the tree is going to conflict with
dnl existing configure files in people's (and automation) work trees, and
dnl because some automation jobs are still running autoconf and configure
dnl "manually", this file is actually an m4 file that is processed by
dnl autoconf, but doesn't call any autoconf macros. The `divert` line
dnl below ensures the script that follows is output by autoconf.

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

which python2.7 > /dev/null && exec python2.7 "$TOPSRCDIR/" "$@" || exec python "$TOPSRCDIR/" "$@"