Permalink
Browse files

build: Pre-generate old-configure

This avoids a build-time dependency on autoconf 2.13. Generated with:
autoconf213 --localdir=js/src js/src/old-configure.in >js/src/old-configure

Since this is a git checkout, in a fresh checkout the mtimes will not
reflect when each file was modified. Touch the configure script as soon
as the whole build process starts, in order to avoid spurious errors due
to files being newer than other files. Also, don't refresh old-configure
during the build process if we are in a git checkout.
  • Loading branch information...
1 parent 21d7d2c commit 740bc5d9d66433370ba4137d03390d5ee21f26b4 @ptomato committed Jul 17, 2017
Showing with 10,953 additions and 0 deletions.
  1. +3 −0 build/moz.configure/old.configure
  2. +2 −0 js/src/configure
  3. +10,948 −0 js/src/old-configure
@@ -98,6 +98,9 @@ def prepare_configure(old_configure, mozconfig, autoconf, build_env, shell,
else:
refresh = False
+ if exists(os.path.join(build_env.topsrcdir, '.git')):
+ refresh = False
+
if refresh:
log.info('Refreshing %s with %s', old_configure, autoconf)
script = subprocess.check_output([
View
@@ -1,5 +1,7 @@
#!/bin/sh
+touch $0 # this is a git checkout, mtimes are not reliable
+
SRCDIR=$(dirname $0)
TOPSRCDIR="$SRCDIR"/../..
export OLD_CONFIGURE="$SRCDIR"/old-configure
Oops, something went wrong.

0 comments on commit 740bc5d

Please sign in to comment.