diff --git a/build/autoconf/hooks.m4 b/build/autoconf/hooks.m4 index 64661dc7e849..37d563189d47 100644 --- a/build/autoconf/hooks.m4 +++ b/build/autoconf/hooks.m4 @@ -24,3 +24,7 @@ define([AC_OUTPUT_SUBDIRS], _MOZ_AC_OUTPUT_SUBDIRS($1) MOZ_CONFIG_LOG_TRAP ]) + +dnl Print error messages in config.log as well as stderr +define([AC_MSG_ERROR], +[{ echo "configure: error: $1" 1>&2; echo "configure: error: $1" 1>&5; exit 1; }]) diff --git a/js/src/build/autoconf/hooks.m4 b/js/src/build/autoconf/hooks.m4 index 64661dc7e849..37d563189d47 100644 --- a/js/src/build/autoconf/hooks.m4 +++ b/js/src/build/autoconf/hooks.m4 @@ -24,3 +24,7 @@ define([AC_OUTPUT_SUBDIRS], _MOZ_AC_OUTPUT_SUBDIRS($1) MOZ_CONFIG_LOG_TRAP ]) + +dnl Print error messages in config.log as well as stderr +define([AC_MSG_ERROR], +[{ echo "configure: error: $1" 1>&2; echo "configure: error: $1" 1>&5; exit 1; }])