From: Richard Kreckel Date: Fri, 15 Aug 2003 01:27:01 +0000 (+0000) Subject: * acinclude.m4 (GINAC_CHECK_ERRORS): exit with non-zero return value on error. X-Git-Tag: release_1-2-0~143 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=ab021d2a352417bf01b01ce37fb351b4a73f735d;hp=856927275e5e527071fa6a00b7eba3a5287b44cd * acinclude.m4 (GINAC_CHECK_ERRORS): exit with non-zero return value on error. Thus, debian/rules and similar environments can easily probe the return value of configure and forego a hopeless compilation effort. This has been the cause of much pain and suffering for the poor Debian m68k build daemon. --- diff --git a/acinclude.m4 b/acinclude.m4 index 4b5cd720..3f64fdb5 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -74,7 +74,7 @@ ginac_warning_txt="$ginac_warning_txt ginac_warning=yes]) dnl Usage: GINAC_CHECK_ERRORS -dnl (preferably to be put at end of configure.in) +dnl (must be put at end of configure.in, because it exits on error) dnl This macro displays a warning message if GINAC_ERROR or GINAC_WARNING dnl has occured previously. AC_DEFUN(GINAC_CHECK_ERRORS,[ @@ -90,12 +90,13 @@ if test "x${ginac_error}" = "xyes"; then echo "deleting cache ${cache_file}" rm -f $cache_file fi - else - if test x$ginac_warning = xyes; then - echo "=== The following minor problems have been detected by configure." - echo "=== Please check the messages below before running \"make\"." - echo "=== (see the section 'Common Problems' in the INSTALL file)" - echo "$ginac_warning_txt" - fi + exit 1 +else + if test "x${ginac_warning}" = "xyes"; then + echo "=== The following minor problems have been detected by configure." + echo "=== Please check the messages below before running \"make\"." + echo "=== (see the section 'Common Problems' in the INSTALL file)" + echo "$ginac_warning_txt" + fi echo "Configuration of GiNaC $VERSION done. Now type \"make\"." fi])