autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-237-


From: Paolo Bonzini
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-237-gc32b3ca
Date: Mon, 08 Dec 2008 21:13:44 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=c32b3caff4182601f52ca84af00c7a9b5ba4f22e

The branch, master has been updated
       via  c32b3caff4182601f52ca84af00c7a9b5ba4f22e (commit)
      from  fb069ddf299107885435573544279c07df9d0b50 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c32b3caff4182601f52ca84af00c7a9b5ba4f22e
Author: Paolo Bonzini <address@hidden>
Date:   Mon Dec 8 22:12:20 2008 +0100

    Fix AC_HEADER_ASSERT not to treat --enable-assert and --disable-assert the 
same.
    
    * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog               |    6 ++++++
 lib/autoconf/headers.m4 |   12 ++++++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a250ee2..8a18ebf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-06  William Pursell  <address@hidden>  (tiny change)
+
+       Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
+       treat --enable-assert and --disable-assert equivalently.
+       * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
+
 2008-12-05  William Pursell  <address@hidden>  (tiny change)
 
        Fix some typos and grammatical errors in documentation.
diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4
index f4a4528..7b3b9d3 100644
--- a/lib/autoconf/headers.m4
+++ b/lib/autoconf/headers.m4
@@ -435,10 +435,14 @@ AC_DEFUN([AC_HEADER_ASSERT],
 [
   AC_MSG_CHECKING([whether to enable assertions])
   AC_ARG_ENABLE([assert],
-    [  --disable-assert        turn off assertions],
-    [AC_MSG_RESULT([no])
-     AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])],
-    [AC_MSG_RESULT(yes)])
+    [AS_HELP_STRING([--disable-assert], [turn off assertions])],
+    [AS_IF([test "x$enableval" = xno],
+      [AC_DEFINE([NDEBUG], [1], [Define to 1 if assertions should be 
disabled.]),
+      [test "x$enableval" != xyes],
+      AC_MSG_WARN([invalid argument supplied to --enable-assert.])
+      [enable_assert=no]
+  ])])
+  AC_MSG_RESULT([$enable_assert])
 ])
 
 


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

[Prev in Thread] Current Thread [Next in Thread]