]> git.lyx.org Git - features.git/commitdiff
LYX_CHECK_ERRORS: exit with status 1 if there is an error
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 14 Aug 2006 20:14:41 +0000 (20:14 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 14 Aug 2006 20:14:41 +0000 (20:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14680 a592a061-630c-0410-9148-cb99ea01b6c8

config/lyxinclude.m4

index 5b872b432b3d9d0716e04d18c0e555654c3937df..4767cdb64fa646659eb6a2ccae4bc82ed8f0c6e4 100644 (file)
@@ -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 <<EOF
+=== The following minor problems have been detected by configure.
+=== Please check the messages below before running 'make'.
+=== (see the section 'Problems' in the INSTALL file)
+$lyx_warning_txt
+EOF
+fi
 if test x$lyx_error = xyes; then
 cat <<EOF
 **** The following problems have been detected by configure.
@@ -81,16 +89,9 @@ cat <<EOF
 $lyx_error_txt
 $lyx_warning_txt
 EOF
+exit 1
 else
 
-if test x$lyx_warning = xyes; then
-cat <<EOF
-=== The following minor problems have been detected by configure.
-=== Please check the messages below before running 'make'.
-=== (see the section 'Problems' in the INSTALL file)
-$lyx_warning_txt
-EOF
-fi
 cat <<EOF
 Configuration of LyX was successful.
 Type 'make' to compile the program,