# HG changeset patch # User John D # Date 1478160488 14400 # Node ID 724749afb8b525684de96709b28da352c6396eff # Parent 016aa52965bb79a2c31f0d2eda5ee7e9edde265d Makefile.in: check if have version of octave and warn if cant find it (Bug #49503) * Makefile.in: in check-requirements, verify and warn if do not have correct octave diff -r 016aa52965bb -r 724749afb8b5 Makefile.in --- a/Makefile.in Thu Nov 03 09:35:20 2016 -0700 +++ b/Makefile.in Thu Nov 03 04:08:08 2016 -0400 @@ -602,6 +602,11 @@ $(STAMP_DIR)/check-requirements: $(MAKEFILE) @echo '[check requirements]' $(foreach REQUIREMENT,$(REQUIREMENTS),$(call CHECK_REQUIREMENT,$(REQUIREMENT))) +ifneq ($(MXE_NATIVE_BUILD),yes) + @if ! octave --version | head -1 | grep ' \($($(OCTAVE_TARGET)_VERSION)\)$$' >/dev/null; then \ + echo "Warning - could not find native build version $($(OCTAVE_TARGET)_VERSION) of octave - some packages may fail, but continuing"; \ + fi +endif @[ -d '$(STAMP_DIR)' ] || mkdir -p '$(STAMP_DIR)' @if test "$(USE_SYSTEM_GCC)" = yes; then \ $(INSTALL) -d '$(BUILD_TOOLS_PREFIX)/bin' ; \