Bug 707593 - Clean up makefile generation in js/src configure; r=ted
authorEd Morley <bmo@edmorley.co.uk>
Thu, 08 Dec 2011 20:02:25 +0000
changeset 82295 19d325115037d6d012e2fdb3281f09a1dca305ad
parent 82294 c19c975a825af0dd3149695c6577b9c0bb7344ae
child 82296 758a0ae33484d5c8c9086055524c15eece0440c8
push id3954
push userbmo@edmorley.co.uk
push dateThu, 08 Dec 2011 20:16:23 +0000
treeherdermozilla-inbound@fe8612e51e8a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs707593
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 707593 - Clean up makefile generation in js/src configure; r=ted * Adds the omitted js/src/analysis-tests/Makefile * Adds conditionals to prevent makefiles being generated where they won't be used
js/src/configure.in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -5324,28 +5324,44 @@ AC_OUTPUT_MAKE_DEFS()
 MOZ_DEFINES=$DEFS
 AC_SUBST(MOZ_DEFINES)
 rm -f confdefs.h
 mv confdefs.h.save confdefs.h
 
 MAKEFILES="
   Makefile
   shell/Makefile
-  jsapi-tests/Makefile
-  tests/Makefile
   config/Makefile
   config/autoconf.mk
   config/expandlibs_config.py
-  config/mkdepend/Makefile
 "
 
-if test -n "$JS_NATIVE_EDITLINE"; then
-   MAKEFILES="$MAKEFILES
-editline/Makefile
-"
+if test "$JS_NATIVE_EDITLINE"; then
+  MAKEFILES="$MAKEFILES
+    editline/Makefile
+  "
+fi
+
+if test ! "$COMPILER_DEPEND" -a ! "$MOZ_NATIVE_MAKEDEPEND"; then
+  MAKEFILES="$MAKEFILES
+    config/mkdepend/Makefile
+  "
+fi
+
+if test "$ENABLE_TESTS"; then
+  MAKEFILES="$MAKEFILES
+    jsapi-tests/Makefile
+    tests/Makefile
+  "
+fi
+
+if test "$DEHYDRA_PATH"; then
+  MAKEFILES="$MAKEFILES
+    analysis-tests/Makefile
+  "
 fi
 
 dnl
 dnl Run a perl script to quickly create the makefiles.
 dnl If it succeeds, it outputs a shell command to set CONFIG_FILES
 dnl   for the files it cannot handle correctly. This way, config.status
 dnl   will handle these files.
 dnl If it fails, nothing is set and config.status will run as usual.