# Neutralize unwarranted environment settings that might interfere with
# our Makefiles.
-ifdef SUBDIRS
- ifneq "$(origin SUBDIRS)" "file"
- ifneq "$(origin SUBDIRS)" "command line"
- SUBDIRS :=
- endif
- endif
+ifeq ($(call am.vars.is-undef,SUBDIRS),yes)
+ SUBDIRS :=
endif
# CDPATH is only useful in interactive usage, and should never be exported
define am.test-suite.handle-suffix
-# FIXME: This will pick up the default from the environment; are we sure
-# FIXME: we want that?
-$$(call am__tpfx,$1)LOG_DRIVER ?= $(SHELL) $(am.conf.aux-dir)/test-driver
+ifeq ($$(call am.vars.is-undef,$$(call am__tpfx,$1)LOG_DRIVER),yes)
+$$(call am__tpfx,$1)LOG_DRIVER = $(SHELL) $(am.conf.aux-dir)/test-driver
+endif
%.log %.trs: %$1 $$($$(call am__tpfx,$1)LOG_DEPENDENCIES)
@$$(call am.test-suite.runtest,$$(call am__tpfx,$1))
endef # am.test-suite.handle-suffix
-# FIXME: this will pick up the default from the environment; are we sure
-# FIXME: we want that?
-TEST_EXTENSIONS ?= .test
+ifeq ($(call am.vars.is-undef,TEST_EXTENSIONS),yes)
+ TEST_EXTENSIONS := .test
+endif
+
$(foreach e,$(filter-out .%,$(TEST_EXTENSIONS)),\
$(call am.error,invalid test extension: '$e'))
$(foreach e,$(TEST_EXTENSIONS), \