From 8d3ef3a4cac7e8c40806fb55cba50fa6da306fc7 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 14 Aug 2006 20:14:41 +0000 Subject: [PATCH] LYX_CHECK_ERRORS: exit with status 1 if there is an error git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14680 a592a061-630c-0410-9148-cb99ea01b6c8 --- config/lyxinclude.m4 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 5b872b432b..4767cdb64f 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -73,6 +73,14 @@ LYX_ERROR([Cannot find $1. Please check that the $2 library dnl Usage: LYX_CHECK_ERRORS Displays a warning message if a LYX_ERROR dnl has occured previously. AC_DEFUN([LYX_CHECK_ERRORS],[ +if test x$lyx_warning = xyes; then +cat <