From MAILER-DAEMON Fri Feb 04 23:40:24 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PlZwe-0003KI-2W
	for mharc-autoconf-commit@gnu.org; Fri, 04 Feb 2011 23:40:24 -0500
Received: from [140.186.70.92] (port=45762 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PlZwc-0003KC-4C
	for autoconf-commit@gnu.org; Fri, 04 Feb 2011 23:40:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PlZwa-0004yu-J7
	for autoconf-commit@gnu.org; Fri, 04 Feb 2011 23:40:21 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:47787
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PlZwa-0004yq-G8
	for autoconf-commit@gnu.org; Fri, 04 Feb 2011 23:40:20 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PlZwZ-0007MY-Pg
	for autoconf-commit@gnu.org; Sat, 05 Feb 2011 04:40:20 +0000
Received: from eggert by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PlZwW-0007S0-Rt
	for autoconf-commit@gnu.org; Sat, 05 Feb 2011 04:40:19 +0000
From: "Paul Eggert" <eggert@cs.ucla.edu>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: ce7ebea4e74d1e152f1ec6e5a44e3b1c0ca9c7a2
X-Git-Newrev: 46acbee4f8cb63d6656d2efd2025e6f99ee77e81
Message-Id: <E1PlZwW-0007S0-Rt@vcs-noshell.in.savannah.gnu.org>
Date: Sat, 05 Feb 2011 04:40:17 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-34-g46acbee
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 Feb 2011 04:40:23 -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=46acbee4f8cb63d6656d2efd2025e6f99ee77e81

The branch, master has been updated
       via  46acbee4f8cb63d6656d2efd2025e6f99ee77e81 (commit)
      from  ce7ebea4e74d1e152f1ec6e5a44e3b1c0ca9c7a2 (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 46acbee4f8cb63d6656d2efd2025e6f99ee77e81
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Fri Feb 4 20:38:07 2011 -0800

    autoconf: new macro AC_HEADER_CHECK_STDBOOL
    
    * NEWS: Document this.
    * doc/autoconf.texi (Particular Headers): Likewise.
    In example, don't assume a 'system.h' exists.
    * lib/autoconf/headers.m4 (AC_CHECK_HEADER_STDBOOL): New macro.
    Use it with AN_IDENTIFIER, since it's less heavyweight.
    Reindent to match gnulib, since that's a bit nicer.
    (AC_HEADER_STDBOOL): Reimplement in terms of it.

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

Summary of changes:
 ChangeLog               |   11 ++++
 NEWS                    |    3 +
 doc/autoconf.texi       |   33 +++++++++--
 lib/autoconf/headers.m4 |  135 +++++++++++++++++++++++++----------------------
 4 files changed, 113 insertions(+), 69 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b36aab1..6d65401 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+	autoconf: new macro AC_HEADER_CHECK_STDBOOL
+	* NEWS: Document this.
+	* doc/autoconf.texi (Particular Headers): Likewise.
+	In example, don't assume a 'system.h' exists.
+	* lib/autoconf/headers.m4 (AC_CHECK_HEADER_STDBOOL): New macro.
+	Use it with AN_IDENTIFIER, since it's less heavyweight.
+	Reindent to match gnulib, since that's a bit nicer.
+	(AC_HEADER_STDBOOL): Reimplement in terms of it.
+
 2011-01-29  Jim Warhol  <jrw@jwarhol.com>  (tiny change)
 
 	* doc/autoconf.texi (Introduction): Fix typo.
diff --git a/NEWS b/NEWS
index d00c312..c485f22 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ GNU Autoconf NEWS - User visible changes.
 ** AS_LITERAL_IF again treats '=' as a literal.  Regression introduced in
    2.66.
 
+** Macros
+
+- New macro AC_HEADER_CHECK_STDBOOL.
 
 * Noteworthy changes in release 2.68 (2010-09-22) [stable]
   Released by Eric Blake, based on git versions 2.67.*.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index b1ccb1a..6ad657e 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -5811,6 +5811,21 @@ AC_CHECK_HEADERS([X11/extensions/scrnsaver.h], [], [],
 These macros check for particular system header files---whether they
 exist, and in some cases whether they declare certain symbols.
 
+@defmac AC_CHECK_HEADER_STDBOOL
+@acindex{CHECK_HEADER_STDBOOL}
+@cvindex HAVE__BOOL
+@hdrindex{stdbool.h}
+@caindex header_stdbool_h
+Check whether @file{stdbool.h} exists and conforms to C99, and cache the
+result in the @code{ac_cv_header_stdbool_h} variable.  If the type
+@code{_Bool} is defined, define @code{HAVE__BOOL} to 1.
+
+This macro is intended for use by Gnulib (@pxref{Gnulib}) and other
+packages that supply a substitute @file{stdbool.h} on platforms lacking
+a conforming one.  The @code{AC_HEADER_STDBOOL} macro is better for code
+that explicitly checks for @file{stdbool.h}.
+@end defmac
+
 @defmac AC_HEADER_ASSERT
 @acindex{HEADER_ASSERT}
 @cvindex NDEBUG
@@ -5937,14 +5952,14 @@ New programs need not use this macro.
 @cvindex HAVE_STDBOOL_H
 @cvindex HAVE__BOOL
 @hdrindex{stdbool.h}
-@hdrindex{system.h}
 @caindex header_stdbool_h
 If @file{stdbool.h} exists and conforms to C99, define
 @code{HAVE_STDBOOL_H} to 1; if the type @code{_Bool} is defined, define
 @code{HAVE__BOOL} to 1.  To fulfill the C99 requirements, your
-@file{system.h} could contain the following code:
+program could contain the following code:
 
-@verbatim
+@example
+@group
 #ifdef HAVE_STDBOOL_H
 # include <stdbool.h>
 #else
@@ -5960,14 +5975,20 @@ typedef bool _Bool;
 # define true 1
 # define __bool_true_false_are_defined 1
 #endif
-@end verbatim
+@end group
+@end example
 
 Alternatively you can use the @samp{stdbool} package of Gnulib
-(@pxref{Gnulib}); it packages the above code into a replacement header
-and contains a few other bells and whistles.
+(@pxref{Gnulib}).  It simplifies your code so that it can say just
+@code{#include <stdbool.h>}, and it adds support for less-common
+platforms.
 
 This macro caches its result in the @code{ac_cv_header_stdbool_h}
 variable.
+
+This macro differs from @code{AC_CHECK_HEADER_STDBOOL} only in that it
+defines @code{HAVE_STDBOOL_H} whereas @code{AC_CHECK_HEADER_STDBOOL}
+does not.
 @end defmac
 
 @anchor{AC_HEADER_STDC}
diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4
index 75bdfef..4b02832 100644
--- a/lib/autoconf/headers.m4
+++ b/lib/autoconf/headers.m4
@@ -591,72 +591,81 @@ fi
 ])# AC_HEADER_STAT
 
 
-# AC_HEADER_STDBOOL
+# AC_CHECK_HEADER_STDBOOL
 # -----------------
 # Check for stdbool.h that conforms to C99.
-AN_IDENTIFIER([bool], [AC_HEADER_STDBOOL])
-AN_IDENTIFIER([true], [AC_HEADER_STDBOOL])
-AN_IDENTIFIER([false],[AC_HEADER_STDBOOL])
-AC_DEFUN([AC_HEADER_STDBOOL],
-[AC_CACHE_CHECK([for stdbool.h that conforms to C99],
-   [ac_cv_header_stdbool_h],
-   [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-      [[
-#include <stdbool.h>
-#ifndef bool
- "error: bool is not defined"
-#endif
-#ifndef false
- "error: false is not defined"
-#endif
-#if false
- "error: false is not 0"
-#endif
-#ifndef true
- "error: true is not defined"
-#endif
-#if true != 1
- "error: true is not 1"
-#endif
-#ifndef __bool_true_false_are_defined
- "error: __bool_true_false_are_defined is not defined"
-#endif
+AN_IDENTIFIER([bool], [AC_CHECK_HEADER_STDBOOL])
+AN_IDENTIFIER([true], [AC_CHECK_HEADER_STDBOOL])
+AN_IDENTIFIER([false],[AC_CHECK_HEADER_STDBOOL])
+AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
+  [AC_CACHE_CHECK([for stdbool.h that conforms to C99],
+     [ac_cv_header_stdbool_h],
+     [AC_COMPILE_IFELSE(
+        [AC_LANG_PROGRAM(
+           [[
+             #include <stdbool.h>
+             #ifndef bool
+              "error: bool is not defined"
+             #endif
+             #ifndef false
+              "error: false is not defined"
+             #endif
+             #if false
+              "error: false is not 0"
+             #endif
+             #ifndef true
+              "error: true is not defined"
+             #endif
+             #if true != 1
+              "error: true is not 1"
+             #endif
+             #ifndef __bool_true_false_are_defined
+              "error: __bool_true_false_are_defined is not defined"
+             #endif
+
+             struct s { _Bool s: 1; _Bool t; } s;
+
+             char a[true == 1 ? 1 : -1];
+             char b[false == 0 ? 1 : -1];
+             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
+             char d[(bool) 0.5 == true ? 1 : -1];
+             /* See body of main program for 'e'.  */
+             char f[(_Bool) 0.0 == false ? 1 : -1];
+             char g[true];
+             char h[sizeof (_Bool)];
+             char i[sizeof s.t];
+             enum { j = false, k = true, l = false * true, m = true * 256 };
+             /* The following fails for
+                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
+             _Bool n[m];
+             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
+             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
+             /* Catch a bug in an HP-UX C compiler.  See
+                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
+                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
+              */
+             _Bool q = true;
+             _Bool *pq = &q;
+           ]],
+           [[
+             bool e = &s;
+             *pq |= q;
+             *pq |= ! q;
+             /* Refer to every declared value, to avoid compiler optimizations.  */
+             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
+                     + !m + !n + !o + !p + !q + !pq);
+           ]])],
+        [ac_cv_header_stdbool_h=yes],
+        [ac_cv_header_stdbool_h=no])])
+   AC_CHECK_TYPES([_Bool])
+])# AC_CHECK_HEADER_STDBOOL
+
 
-	struct s { _Bool s: 1; _Bool t; } s;
-
-	char a[true == 1 ? 1 : -1];
-	char b[false == 0 ? 1 : -1];
-	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
-	char d[(bool) 0.5 == true ? 1 : -1];
-	/* See body of main program for 'e'.  */
-	char f[(_Bool) 0.0 == false ? 1 : -1];
-	char g[true];
-	char h[sizeof (_Bool)];
-	char i[sizeof s.t];
-	enum { j = false, k = true, l = false * true, m = true * 256 };
-	/* The following fails for
-	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
-	_Bool n[m];
-	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
-	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
-	/* Catch a bug in an HP-UX C compiler.  See
-	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
-	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
-	 */
-	_Bool q = true;
-	_Bool *pq = &q;
-      ]],
-      [[
-	bool e = &s;
-	*pq |= q;
-	*pq |= ! q;
-	/* Refer to every declared value, to avoid compiler optimizations.  */
-	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
-		+ !m + !n + !o + !p + !q + !pq);
-      ]])],
-      [ac_cv_header_stdbool_h=yes],
-      [ac_cv_header_stdbool_h=no])])
-AC_CHECK_TYPES([_Bool])
+# AC_HEADER_STDBOOL
+# -----------------
+# Define HAVE_STDBOOL_H if tdbool.h that conforms to C99.
+AC_DEFUN([AC_HEADER_STDBOOL],
+[AC_CHECK_HEADER_STDBOOL
 if test $ac_cv_header_stdbool_h = yes; then
   AC_DEFINE(HAVE_STDBOOL_H, 1, [Define to 1 if stdbool.h conforms to C99.])
 fi


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Mon Feb 07 18:02:30 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Pma6I-0007vp-0f
	for mharc-autoconf-commit@gnu.org; Mon, 07 Feb 2011 18:02:30 -0500
Received: from [140.186.70.92] (port=45170 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pma6E-0007ta-LW
	for autoconf-commit@gnu.org; Mon, 07 Feb 2011 18:02:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Pma6B-0005oa-Ob
	for autoconf-commit@gnu.org; Mon, 07 Feb 2011 18:02:25 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:60338
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Pma6B-0005oO-Kh
	for autoconf-commit@gnu.org; Mon, 07 Feb 2011 18:02:23 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Pma6B-0003Sz-Gr
	for autoconf-commit@gnu.org; Mon, 07 Feb 2011 23:02:23 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Pma6A-0007XP-SK
	for autoconf-commit@gnu.org; Mon, 07 Feb 2011 23:02:23 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 46acbee4f8cb63d6656d2efd2025e6f99ee77e81
X-Git-Newrev: 9e71645ffc703f8e3a5e201d7d1b02e390cc1661
Message-Id: <E1Pma6A-0007XP-SK@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 07 Feb 2011 23:02:22 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-35-g9e71645
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Feb 2011 23:02:28 -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=9e71645ffc703f8e3a5e201d7d1b02e390cc1661

The branch, master has been updated
       via  9e71645ffc703f8e3a5e201d7d1b02e390cc1661 (commit)
      from  46acbee4f8cb63d6656d2efd2025e6f99ee77e81 (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 9e71645ffc703f8e3a5e201d7d1b02e390cc1661
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Tue Feb 8 00:00:56 2011 +0100

    Rebuild menus in the manual.
    
    * doc/autoconf.texi: Rebuild menus using emacs ^C ^U ^A.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog         |    4 ++++
 doc/autoconf.texi |   34 +++++++++++++++++++++-------------
 2 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6d65401..1ef7b16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	* doc/autoconf.texi: Rebuild menus using emacs ^C ^U ^A.
+
 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
 
 	autoconf: new macro AC_HEADER_CHECK_STDBOOL
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 6ad657e..badf11d 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -340,7 +340,7 @@ Substitutions in Makefiles
 
 * Preset Output Variables::     Output variables that are always set
 * Installation Directory Variables::  Other preset output variables
-* Changed Directory Variables:: Warnings about @file{datarootdir}
+* Changed Directory Variables::  Warnings about @file{datarootdir}
 * Build Directories::           Supporting multiple concurrent compiles
 * Automatic Remaking::          Makefile rules for configuring
 
@@ -452,13 +452,6 @@ Programming in M4
 * Programming in M4sugar::      Convenient pure M4 macros
 * Debugging via autom4te::      Figuring out what M4 was doing
 
-Programming in M4sh
-
-* Common Shell Constructs::     Portability layer for common shell constructs
-* Polymorphic Variables::       Support for indirect variable names
-* Initialization Macros::       Macros to establish a sane shell environment
-* File Descriptor Macros::      File descriptor macros for input and output
-
 M4 Quotation
 
 * Active Characters::           Characters that change the behavior of M4
@@ -488,6 +481,13 @@ Programming in M4sugar
 * Set manipulation Macros::     Set manipulation in M4
 * Forbidden Patterns::          Catching unexpanded macros
 
+Programming in M4sh
+
+* Common Shell Constructs::     Portability layer for common shell constructs
+* Polymorphic Variables::       Support for indirect variable names
+* Initialization Macros::       Macros to establish a sane shell environment
+* File Descriptor Macros::      File descriptor macros for input and output
+
 Writing Autoconf Macros
 
 * Macro Definitions::           Basic format of an Autoconf macro
@@ -562,6 +562,14 @@ Portable C and C++ Programming
 * Floating Point Portability::  Portable floating-point arithmetic
 * Exiting Portably::            Exiting and the exit status
 
+Integer Overflow
+
+* Integer Overflow Basics::     Why integer overflow is a problem
+* Signed Overflow Examples::    Examples of code assuming wraparound
+* Optimization and Wraparound::  Optimizations that break uses of wraparound
+* Signed Overflow Advice::      Practical advice for signed overflow issues
+* Signed Integer Division::     @code{INT_MIN / -1} and @code{INT_MIN % -1}
+
 Manual Configuration
 
 * Specifying Target Triplets::  Specifying target triplets
@@ -2410,7 +2418,7 @@ makefiles.
 @menu
 * Preset Output Variables::     Output variables that are always set
 * Installation Directory Variables::  Other preset output variables
-* Changed Directory Variables:: Warnings about @file{datarootdir}
+* Changed Directory Variables::  Warnings about @file{datarootdir}
 * Build Directories::           Supporting multiple concurrent compiles
 * Automatic Remaking::          Makefile rules for configuring
 @end menu
@@ -20451,11 +20459,11 @@ signed integer remainder, the C standard requires overflow
 behavior that is commonly not implemented.
 
 @menu
-* Integer Overflow Basics::      Why integer overflow is a problem
-* Signed Overflow Examples::     Examples of code assuming wraparound
+* Integer Overflow Basics::     Why integer overflow is a problem
+* Signed Overflow Examples::    Examples of code assuming wraparound
 * Optimization and Wraparound::  Optimizations that break uses of wraparound
-* Signed Overflow Advice::       Practical advice for signed overflow issues
-* Signed Integer Division::      @code{INT_MIN / -1} and @code{INT_MIN % -1}
+* Signed Overflow Advice::      Practical advice for signed overflow issues
+* Signed Integer Division::     @code{INT_MIN / -1} and @code{INT_MIN % -1}
 @end menu
 
 @node Integer Overflow Basics


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Sat Feb 12 05:31:15 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PoCl1-0005eL-N3
	for mharc-autoconf-commit@gnu.org; Sat, 12 Feb 2011 05:31:15 -0500
Received: from [140.186.70.92] (port=39201 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PoCkz-0005aw-50
	for autoconf-commit@gnu.org; Sat, 12 Feb 2011 05:31:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PoCkx-0003mz-OT
	for autoconf-commit@gnu.org; Sat, 12 Feb 2011 05:31:12 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:58989
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PoCkx-0003mg-Lu
	for autoconf-commit@gnu.org; Sat, 12 Feb 2011 05:31:11 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PoCkx-00016I-A3
	for autoconf-commit@gnu.org; Sat, 12 Feb 2011 10:31:11 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PoCkw-000606-Fz
	for autoconf-commit@gnu.org; Sat, 12 Feb 2011 10:31:11 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 9e71645ffc703f8e3a5e201d7d1b02e390cc1661
X-Git-Newrev: cc2118d83698708c7c0334ad72f2cd03c4f81f0b
Message-Id: <E1PoCkw-000606-Fz@vcs-noshell.in.savannah.gnu.org>
Date: Sat, 12 Feb 2011 10:31:10 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-36-gcc2118d
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 12 Feb 2011 10:31:14 -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=cc2118d83698708c7c0334ad72f2cd03c4f81f0b

The branch, master has been updated
       via  cc2118d83698708c7c0334ad72f2cd03c4f81f0b (commit)
      from  9e71645ffc703f8e3a5e201d7d1b02e390cc1661 (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 cc2118d83698708c7c0334ad72f2cd03c4f81f0b
Author: Giulio Paci <giuliopaci@interfree.it>
Date:   Sat Feb 12 11:30:32 2011 +0100

    Fix detection of link flags for fort77 on GNU/Linux.
    
    * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Properly detect
    the fort77 (f2c wrapper) compiler verbose linking output flag.
    Fixes also AC_F77_LIBRARY_LDFLAGS and AC_F77_DUMMY_MAIN.
    * THANKS: Update.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog               |    9 +++++++++
 THANKS                  |    1 +
 lib/autoconf/fortran.m4 |   10 ++++++++++
 3 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1ef7b16..6f0b93d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-02-12  Giulio Paci  <giuliopaci@interfree.it>  (tiny change)
+	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Fix detection of link flags for fort77 on GNU/Linux.
+	* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Properly detect
+	the fort77 (f2c wrapper) compiler verbose linking output flag.
+	Fixes also AC_F77_LIBRARY_LDFLAGS and AC_F77_DUMMY_MAIN.
+	* THANKS: Update.
+
 2011-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	* doc/autoconf.texi: Rebuild menus using emacs ^C ^U ^A.
diff --git a/THANKS b/THANKS
index f0638bd..079be66 100644
--- a/THANKS
+++ b/THANKS
@@ -151,6 +151,7 @@ Greg A. Woods               woods@weird.com
 Greg Schafer                gschafer@zip.com.au
 Gregorio Guidi              ?
 Gregory Giannoni            sand@narguile.org
+Giulio Paci                 giuliopaci@interfree.it
 Guido Draheim               Guido.Draheim@gmx.de
 Guido Flohr                 gufl0000@stud.uni-sb.de
 Guido van Rossum            ?
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index bed9c96..d5afbb9 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -540,6 +540,16 @@ case $ac_[]_AC_LANG_ABBREV[]_v_output in
 	s/-ignore  *'[[^']]*'/ /g; s/-ignore  *\"[[^\"]]*\"/ /g
 	s/-def  *'[[^']]*'/ /g; s/-def  *\"[[^\"]]*\"/ /g"` ;;
 
+  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
+  *fort77*f2c*gcc*)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo "$ac_[]_AC_LANG_ABBREV[]_v_output" | sed -n '
+        /:[[	 ]]\+Running[[	 ]]\{1,\}"gcc"/{
+          /"-c"/d
+          /[[.]]c"*/d
+          s/^.*"gcc"/"gcc"/
+          s/"//gp
+        }'` ;;
+
   # If we are using Cray Fortran then delete quotes.
   *cft90*)
     ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/"//g'` ;;


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Tue Feb 15 16:22:48 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PpSMC-0003hj-6N
	for mharc-autoconf-commit@gnu.org; Tue, 15 Feb 2011 16:22:48 -0500
Received: from [140.186.70.92] (port=53548 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PpSM9-0003gY-Ga
	for autoconf-commit@gnu.org; Tue, 15 Feb 2011 16:22:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpSM8-0001va-1x
	for autoconf-commit@gnu.org; Tue, 15 Feb 2011 16:22:45 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:34053
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpSM7-0001vR-VT
	for autoconf-commit@gnu.org; Tue, 15 Feb 2011 16:22:44 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpSM7-0007rv-Ni
	for autoconf-commit@gnu.org; Tue, 15 Feb 2011 21:22:43 +0000
Received: from ericb by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpSM7-0002zk-8d
	for autoconf-commit@gnu.org; Tue, 15 Feb 2011 21:22:43 +0000
From: "Eric Blake" <eblake@redhat.com>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: cc2118d83698708c7c0334ad72f2cd03c4f81f0b
X-Git-Newrev: e5fb1ec281e5bcd37d686bb7ce4994a7b4fee65d
Message-Id: <E1PpSM7-0002zk-8d@vcs-noshell.in.savannah.gnu.org>
Date: Tue, 15 Feb 2011 21:22:43 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-37-ge5fb1ec
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 15 Feb 2011 21:22:46 -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=e5fb1ec281e5bcd37d686bb7ce4994a7b4fee65d

The branch, master has been updated
       via  e5fb1ec281e5bcd37d686bb7ce4994a7b4fee65d (commit)
      from  cc2118d83698708c7c0334ad72f2cd03c4f81f0b (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 e5fb1ec281e5bcd37d686bb7ce4994a7b4fee65d
Author: Eric Blake <eblake@redhat.com>
Date:   Tue Feb 15 14:22:11 2011 -0700

    doc: fix debug advice typo
    
    * doc/autoconf.texi (Debugging): Put shell option in right place.
    Reported by Reuben Thomas.
    
    Signed-off-by: Eric Blake <eblake@redhat.com>

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

Summary of changes:
 ChangeLog         |    6 ++++++
 doc/autoconf.texi |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6f0b93d..fbfbc53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-15  Eric Blake  <eblake@redhat.com>
+
+	doc: fix debug advice typo
+	* doc/autoconf.texi (Debugging): Put shell option in right place.
+	Reported by Reuben Thomas.
+
 2011-02-12  Giulio Paci  <giuliopaci@interfree.it>  (tiny change)
 	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index badf11d..5be070c 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -25464,7 +25464,7 @@ failed.
 Debugging @command{configure} script execution may be done by sprinkling
 pairs of @code{set -x} and @code{set +x} into the shell script before
 and after the region that contains a bug.  Running the whole script with
-@samp{@var{shell} ./configure -vx 2>&1 | tee @var{log-file}} with a decent
+@samp{@var{shell} -vx ./configure 2>&1 | tee @var{log-file}} with a decent
 @var{shell} may work, but produces lots of output.  Here, it can help to
 search for markers like @samp{checking for} a particular test in the
 @var{log-file}.


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Wed Feb 16 04:30:02 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Ppdhy-0004gX-5X
	for mharc-autoconf-commit@gnu.org; Wed, 16 Feb 2011 04:30:02 -0500
Received: from [140.186.70.92] (port=53677 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Ppdhu-0004fr-9g
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 04:30:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppdhs-0001fO-TK
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 04:29:58 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:49806
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppdhs-0001fD-RQ
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 04:29:56 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppdhs-0007jy-H6
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 09:29:56 +0000
Received: from eggert by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppdhr-0007xl-MR
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 09:29:56 +0000
From: "Paul Eggert" <eggert@cs.ucla.edu>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: e5fb1ec281e5bcd37d686bb7ce4994a7b4fee65d
X-Git-Newrev: cdef0d2dad57f92301cb4baf782f8c24b01d5f1d
Message-Id: <E1Ppdhr-0007xl-MR@vcs-noshell.in.savannah.gnu.org>
Date: Wed, 16 Feb 2011 09:29:56 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-38-gcdef0d2
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Feb 2011 09:30:00 -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=cdef0d2dad57f92301cb4baf782f8c24b01d5f1d

The branch, master has been updated
       via  cdef0d2dad57f92301cb4baf782f8c24b01d5f1d (commit)
      from  e5fb1ec281e5bcd37d686bb7ce4994a7b4fee65d (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 cdef0d2dad57f92301cb4baf782f8c24b01d5f1d
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Wed Feb 16 01:29:40 2011 -0800

    autoconf: tune long long tests, particularly for c99
    
    This change is imported from gnulib.
    * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
    or running anything if c99, or if unsigned long long int does not
    work.  In either case, we know the answer without further tests.
    Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
    it at most once, and use its results for both long long int and
    unsigned long long int.  This is more likely to be efficient in
    the common case where the program wants to check for both long
    long int and unsigned long long int.
    (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
    since the answer is already known.

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

Summary of changes:
 ChangeLog             |   16 ++++++++++
 lib/autoconf/types.m4 |   74 ++++++++++++++++++++++++++----------------------
 2 files changed, 56 insertions(+), 34 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fbfbc53..79b9058 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+	autoconf: tune long long tests, particularly for c99
+
+	This change is imported from gnulib.
+	* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
+	or running anything if c99, or if unsigned long long int does not
+	work.  In either case, we know the answer without further tests.
+	Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
+	it at most once, and use its results for both long long int and
+	unsigned long long int.  This is more likely to be efficient in
+	the common case where the program wants to check for both long
+	long int and unsigned long long int.
+	(AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
+	since the answer is already known.
+
 2011-02-15  Eric Blake  <eblake@redhat.com>
 
 	doc: fix debug advice typo
diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4
index 6583cb0..166aeb5 100644
--- a/lib/autoconf/types.m4
+++ b/lib/autoconf/types.m4
@@ -500,37 +500,40 @@ AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
 # ---------------------
 AC_DEFUN([AC_TYPE_LONG_LONG_INT],
 [
+  AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
   AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
-    [AC_LINK_IFELSE(
-       [_AC_TYPE_LONG_LONG_SNIPPET],
-       [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
-	dnl If cross compiling, assume the bug isn't important, since
-	dnl nobody cross compiles for this platform as far as we know.
-	AC_RUN_IFELSE(
-	  [AC_LANG_PROGRAM(
-	     [[@%:@include <limits.h>
-	       @%:@ifndef LLONG_MAX
-	       @%:@ define HALF \
-			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
-	       @%:@ define LLONG_MAX (HALF - 1 + HALF)
-	       @%:@endif]],
-	     [[long long int n = 1;
-	       int i;
-	       for (i = 0; ; i++)
-		 {
-		   long long int m = n << i;
-		   if (m >> i != n)
-		     return 1;
-		   if (LLONG_MAX / 2 < m)
-		     break;
-		 }
-	       return 0;]])],
-	  [ac_cv_type_long_long_int=yes],
-	  [ac_cv_type_long_long_int=no],
-	  [ac_cv_type_long_long_int=yes])],
-       [ac_cv_type_long_long_int=no])])
+     [ac_cv_type_long_long_int=yes
+      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
+	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
+	if test $ac_cv_type_long_long_int = yes; then
+	  dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
+	  dnl If cross compiling, assume the bug is not important, since
+	  dnl nobody cross compiles for this platform as far as we know.
+	  AC_RUN_IFELSE(
+	    [AC_LANG_PROGRAM(
+	       [[@%:@include <limits.h>
+		 @%:@ifndef LLONG_MAX
+		 @%:@ define HALF \
+			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
+		 @%:@ define LLONG_MAX (HALF - 1 + HALF)
+		 @%:@endif]],
+	       [[long long int n = 1;
+		 int i;
+		 for (i = 0; ; i++)
+		   {
+		     long long int m = n << i;
+		     if (m >> i != n)
+		       return 1;
+		     if (LLONG_MAX / 2 < m)
+		       break;
+		   }
+		 return 0;]])],
+	    [],
+	    [ac_cv_type_long_long_int=no])
+	fi
+      fi])
   if test $ac_cv_type_long_long_int = yes; then
-    AC_DEFINE([HAVE_LONG_LONG_INT], 1,
+    AC_DEFINE([HAVE_LONG_LONG_INT], [1],
       [Define to 1 if the system has the type `long long int'.])
   fi
 ])
@@ -542,12 +545,15 @@ AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
 [
   AC_CACHE_CHECK([for unsigned long long int],
     [ac_cv_type_unsigned_long_long_int],
-    [AC_LINK_IFELSE(
-       [_AC_TYPE_LONG_LONG_SNIPPET],
-       [ac_cv_type_unsigned_long_long_int=yes],
-       [ac_cv_type_unsigned_long_long_int=no])])
+    [ac_cv_type_unsigned_long_long_int=yes
+     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
+       AC_LINK_IFELSE(
+	 [_AC_TYPE_LONG_LONG_SNIPPET],
+	 [],
+	 [ac_cv_type_unsigned_long_long_int=no])
+     fi])
   if test $ac_cv_type_unsigned_long_long_int = yes; then
-    AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
+    AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
       [Define to 1 if the system has the type `unsigned long long int'.])
   fi
 ])


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Wed Feb 16 10:57:03 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PpjkV-0001l9-35
	for mharc-autoconf-commit@gnu.org; Wed, 16 Feb 2011 10:57:03 -0500
Received: from [140.186.70.92] (port=47669 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PpjkQ-0001l0-6f
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 10:57:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpjkO-0000b9-QP
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 10:56:58 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:37753
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpjkO-0000b2-ND
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 10:56:56 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpjkN-0003pt-UO
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 15:56:56 +0000
Received: from ericb by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PpjkM-00018b-UK
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 15:56:55 +0000
From: "Eric Blake" <eblake@redhat.com>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: cdef0d2dad57f92301cb4baf782f8c24b01d5f1d
X-Git-Newrev: 721899937032c51f86c68c5147cc3998eec60a67
Message-Id: <E1PpjkM-00018b-UK@vcs-noshell.in.savannah.gnu.org>
Date: Wed, 16 Feb 2011 15:56:55 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-39-g7218999
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Feb 2011 15:57:02 -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=721899937032c51f86c68c5147cc3998eec60a67

The branch, master has been updated
       via  721899937032c51f86c68c5147cc3998eec60a67 (commit)
      from  cdef0d2dad57f92301cb4baf782f8c24b01d5f1d (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 721899937032c51f86c68c5147cc3998eec60a67
Author: Matt Kraai <kraai@ftbfs.org>
Date:   Wed Feb 16 04:58:53 2011 -0800

    docs: fix some typos
    
    * doc/autoconf.texi (testsuite Scripts): Fix typos.
    * THANKS: Update.
    
    Signed-off-by: Eric Blake <eblake@redhat.com>

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

Summary of changes:
 ChangeLog         |    6 ++++++
 THANKS            |    1 +
 doc/autoconf.texi |    6 +++---
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 79b9058..d883c62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-16  Matt Kraai  <kraai@ftbfs.org>  (tiny change)
+
+	docs: fix some typos
+	* doc/autoconf.texi (testsuite Scripts): Fix typos.
+	* THANKS: Update.
+
 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
 
 	autoconf: tune long long tests, particularly for c99
diff --git a/THANKS b/THANKS
index 079be66..a3ee752 100644
--- a/THANKS
+++ b/THANKS
@@ -265,6 +265,7 @@ Martin Mokrejs              mmokrejs@natur.cuni.cz
 Martin Wilck                martin@tropos.de
 Martyn Johnson              Martyn.Johnson@cl.cam.ac.uk
 Matěj Týč                   matej.tyc@gmail.com
+Matt Kraai                  kraai@ftbfs.org
 Matteo Frigo                ?
 Matthew D. Langston         langston@SLAC.Stanford.EDU
 Matthew Mueller             donut@azstarnet.com
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 5be070c..20d23f1 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -24027,7 +24027,7 @@ the installer's end.
 Each test of the validation suite should be part of some test group.  A
 @dfn{test group} is a sequence of interwoven tests that ought to be
 executed together, usually because one test in the group creates data
-files than a later test in the same group needs to read.  Complex test
+files that a later test in the same group needs to read.  Complex test
 groups make later debugging more tedious.  It is much better to
 keep only a few tests per test group.  Ideally there is only one test
 per test group.
@@ -24045,7 +24045,7 @@ identification of the package, is automatically included if found.
 A convenient alternative consists in moving all the global issues
 (local Autotest macros, elementary health checking, and @code{AT_INIT}
 invocation) into the file @code{local.at}, and making
-@file{testsuite.at} be a simple list of @code{m4_include} of sub test
+@file{testsuite.at} be a simple list of @code{m4_include}s of sub test
 suites.  In such case, generating the whole test suite or pieces of it
 is only a matter of choosing the @command{autom4te} command line
 arguments.
@@ -24078,7 +24078,7 @@ It often happens in practice that individual tests in the validation
 suite need to get information coming out of the configuration process.
 Some of this information, common for all validation suites, is provided
 through the file @file{atconfig}, automatically created by
-@code{AC_CONFIG_TESTDIR}.  For configuration informations which your
+@code{AC_CONFIG_TESTDIR}.  For configuration information which your
 testing environment specifically needs, you might prepare an optional
 file named @file{atlocal.in}, instantiated by @code{AC_CONFIG_FILES}.
 The configuration process produces @file{atconfig} and @file{atlocal}


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Wed Feb 16 11:03:44 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Ppjqy-0006TN-Lp
	for mharc-autoconf-commit@gnu.org; Wed, 16 Feb 2011 11:03:44 -0500
Received: from [140.186.70.92] (port=47836 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Ppjqv-0006S6-J2
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 11:03:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppjqu-0001mu-Fs
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 11:03:41 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:59203
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppjqu-0001mo-D0
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 11:03:40 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppjqt-0003tu-9S
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 16:03:39 +0000
Received: from ericb by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Ppjqs-00025B-5G
	for autoconf-commit@gnu.org; Wed, 16 Feb 2011 16:03:39 +0000
From: "Eric Blake" <eblake@redhat.com>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 721899937032c51f86c68c5147cc3998eec60a67
X-Git-Newrev: 528040485276f1e83b0c53ae759cab4ab9246d04
Message-Id: <E1Ppjqs-00025B-5G@vcs-noshell.in.savannah.gnu.org>
Date: Wed, 16 Feb 2011 16:03:38 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-40-g5280404
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Feb 2011 16:03:42 -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=528040485276f1e83b0c53ae759cab4ab9246d04

The branch, master has been updated
       via  528040485276f1e83b0c53ae759cab4ab9246d04 (commit)
      from  721899937032c51f86c68c5147cc3998eec60a67 (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 528040485276f1e83b0c53ae759cab4ab9246d04
Author: Patrick Welche <prlw1@cam.ac.uk>
Date:   Wed Feb 16 15:51:22 2011 +0000

    docs: fix a typo
    
    * doc/autoconf.texi (Generic Structures): Fix typo.

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

Summary of changes:
 ChangeLog         |    5 +++++
 doc/autoconf.texi |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d883c62..bbf29cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-16  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
+
+	docs: fix a typo
+	* doc/autoconf.texi (Generic Structures): Fix typo.
+
 2011-02-16  Matt Kraai  <kraai@ftbfs.org>  (tiny change)
 
 	docs: fix some typos
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 20d23f1..d62ec9b 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -6572,7 +6572,7 @@ AC_CHECK_MEMBER(struct top.middle.bot)
 @end example
 
 This macro caches its result in the
-@code{av_cv_member_@var{aggregate}_@var{member}} variable, with
+@code{ac_cv_member_@var{aggregate}_@var{member}} variable, with
 characters not suitable for a variable name mapped to underscores.
 @end defmac
 


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Fri Feb 18 12:49:21 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PqUSH-0007Ep-Ir
	for mharc-autoconf-commit@gnu.org; Fri, 18 Feb 2011 12:49:21 -0500
Received: from [140.186.70.92] (port=36358 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PqUSF-0007Ea-Ib
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 12:49:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUSE-0001jR-JZ
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 12:49:19 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:41907
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUSE-0001jH-HL
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 12:49:18 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUSD-00052V-Tr
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 17:49:18 +0000
Received: from ericb by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUSD-0005aR-O5
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 17:49:17 +0000
From: "Eric Blake" <eblake@redhat.com>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 528040485276f1e83b0c53ae759cab4ab9246d04
X-Git-Newrev: 5d1fd3630946d3ac2a98f87a8558e83b8e1588cb
Message-Id: <E1PqUSD-0005aR-O5@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 18 Feb 2011 17:49:17 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-41-g5d1fd36
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Feb 2011 17:49:20 -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=5d1fd3630946d3ac2a98f87a8558e83b8e1588cb

The branch, master has been updated
       via  5d1fd3630946d3ac2a98f87a8558e83b8e1588cb (commit)
      from  528040485276f1e83b0c53ae759cab4ab9246d04 (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 5d1fd3630946d3ac2a98f87a8558e83b8e1588cb
Author: Eric Blake <eblake@redhat.com>
Date:   Fri Feb 18 10:41:56 2011 -0700

    long long: don't abort configure when cross-compiling
    
    * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Provide no-op
    cross-compiling fallback; fixing regression from 2011-02-16.
    
    Signed-off-by: Eric Blake <eblake@redhat.com>

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

Summary of changes:
 ChangeLog             |    6 ++++++
 lib/autoconf/types.m4 |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bbf29cf..f46eb6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-18  Eric Blake  <eblake@redhat.com>
+
+	long long: don't abort configure when cross-compiling
+	* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Provide no-op
+	cross-compiling fallback; fixing regression from 2011-02-16.
+
 2011-02-16  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
 
 	docs: fix a typo
diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4
index 166aeb5..c47884c 100644
--- a/lib/autoconf/types.m4
+++ b/lib/autoconf/types.m4
@@ -529,7 +529,8 @@ AC_DEFUN([AC_TYPE_LONG_LONG_INT],
 		   }
 		 return 0;]])],
 	    [],
-	    [ac_cv_type_long_long_int=no])
+	    [ac_cv_type_long_long_int=no],
+	    [:])
 	fi
       fi])
   if test $ac_cv_type_long_long_int = yes; then


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Fri Feb 18 13:11:08 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PqUnM-0006MM-AV
	for mharc-autoconf-commit@gnu.org; Fri, 18 Feb 2011 13:11:08 -0500
Received: from [140.186.70.92] (port=38496 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PqUnJ-0006Jt-CW
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 13:11:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUnI-00012W-4g
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 13:11:05 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:60049
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUnI-00012R-1c
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 13:11:04 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUnH-0005LP-NN
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 18:11:03 +0000
Received: from ericb by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PqUnG-0000Hl-GH
	for autoconf-commit@gnu.org; Fri, 18 Feb 2011 18:11:03 +0000
From: "Eric Blake" <eblake@redhat.com>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 5d1fd3630946d3ac2a98f87a8558e83b8e1588cb
X-Git-Newrev: f9fb23548804e962be8ce619e7fcec62299c100e
Message-Id: <E1PqUnG-0000Hl-GH@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 18 Feb 2011 18:11:02 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-42-gf9fb235
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Feb 2011 18:11:06 -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=f9fb23548804e962be8ce619e7fcec62299c100e

The branch, master has been updated
       via  f9fb23548804e962be8ce619e7fcec62299c100e (commit)
      from  5d1fd3630946d3ac2a98f87a8558e83b8e1588cb (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 f9fb23548804e962be8ce619e7fcec62299c100e
Author: Eric Blake <eblake@redhat.com>
Date:   Fri Feb 18 11:08:08 2011 -0700

    docs: document fourth argument of AC_RUN_IFELSE better
    
    * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Make synopsis show
    that the default is configure failure.  Rework the text about
    proper use of the fourth argument.
    
    Signed-off-by: Eric Blake <eblake@redhat.com>

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

Summary of changes:
 ChangeLog         |    5 +++++
 doc/autoconf.texi |   39 +++++++++++++++++++++++----------------
 2 files changed, 28 insertions(+), 16 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f46eb6f..0bd0b78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-02-18  Eric Blake  <eblake@redhat.com>
 
+	docs: document fourth argument of AC_RUN_IFELSE better
+	* doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Make synopsis show
+	that the default is configure failure.  Rework the text about
+	proper use of the fourth argument.
+
 	long long: don't abort configure when cross-compiling
 	* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Provide no-op
 	cross-compiling fallback; fixing regression from 2011-02-16.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index d62ec9b..a08208f 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -9176,7 +9176,7 @@ cross-compiling.
 
 @anchor{AC_RUN_IFELSE}
 @defmac AC_RUN_IFELSE (@var{input}, @ovar{action-if-true}, @
-  @ovar{action-if-false}, @ovar{action-if-cross-compiling})
+  @ovar{action-if-false}, @dvar{action-if-cross-compiling, AC_MSG_FAILURE})
 @acindex{RUN_IFELSE}
 If @var{program} compiles and links successfully and returns an exit
 status of 0 when executed, run shell commands @var{action-if-true}.
@@ -9188,30 +9188,37 @@ compilation flags of the current language (@pxref{Language Choice}).
 Additionally, @var{action-if-true} can run @command{./conftest$EXEEXT}
 for further testing.
 
-If the compiler being used does not produce executables that run on the
-system where @command{configure} is being run, then the test program is
-not run.  If the optional shell commands @var{action-if-cross-compiling}
-are given, they are run instead.  Otherwise, @command{configure} prints
-an error message and exits.
-
 In the @var{action-if-false} section, the failing exit status is
 available in the shell variable @samp{$?}.  This exit status might be
 that of a failed compilation, or it might be that of a failed program
 execution.
 
+If the compiler being used does not produce executables that run on the
+system where @command{configure} is being run, then the test program is
+not run.  If the optional shell commands @var{action-if-cross-compiling}
+are given, those commands are run instead; typically these commands
+provide pessimistic defaults that allow cross-compilation to work even
+if the guess was wrong.  If the fourth argument is empty or omitted, but
+cross-compilation is detected, then @command{configure} prints an error
+message and exits.  If you want your package to be useful in a
+cross-compilation scenario, you @emph{should} provide a non-empty
+@var{action-if-cross-compiling} clause, as well as wrap the
+@code{AC_RUN_IFELSE} compilation inside an @code{AC_CACHE_CHECK}
+(@pxref{Caching Results}) which allows the user to override the
+pessimistic default if needed.
+
 It is customary to report unexpected failures with
 @code{AC_MSG_FAILURE}.
 @end defmac
 
-Try to provide a pessimistic default value to use when cross-compiling
-makes runtime tests impossible.  You do this by passing the optional
-last argument to @code{AC_RUN_IFELSE}.  @command{autoconf} prints a
-warning message when creating @command{configure} each time it
-encounters a call to @code{AC_RUN_IFELSE} with no
-@var{action-if-cross-compiling} argument given.  You may ignore the
-warning, though users cannot configure your package for
-cross-compiling.  A few of the macros distributed with Autoconf produce
-this warning message.
+@command{autoconf} prints a warning message when creating
+@command{configure} each time it encounters a call to
+@code{AC_RUN_IFELSE} with no @var{action-if-cross-compiling} argument
+given.  If you are not concerned about users configuring your package
+for cross-compilation, you may ignore the warning.  A few of the macros
+distributed with Autoconf produce this warning message; but if this is a
+problem for you, please report it as a bug, along with an appropriate
+pessimistic guess to use instead.
 
 To configure for cross-compiling you can also choose a value for those
 parameters based on the canonical system name (@pxref{Manual


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Sun Feb 20 14:30:05 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PrEyr-0001pN-Ag
	for mharc-autoconf-commit@gnu.org; Sun, 20 Feb 2011 14:30:05 -0500
Received: from [140.186.70.92] (port=59933 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PrDdK-0006ki-Sc
	for autoconf-commit@gnu.org; Sun, 20 Feb 2011 13:03:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrDVr-0003fO-Jf
	for autoconf-commit@gnu.org; Sun, 20 Feb 2011 12:56:04 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:60873
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrDVr-0003fK-Gp
	for autoconf-commit@gnu.org; Sun, 20 Feb 2011 12:56:03 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrDVr-0004Nj-5Q
	for autoconf-commit@gnu.org; Sun, 20 Feb 2011 17:56:03 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrDVq-0002or-A8
	for autoconf-commit@gnu.org; Sun, 20 Feb 2011 17:56:03 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: f9fb23548804e962be8ce619e7fcec62299c100e
X-Git-Newrev: ce791e5a957f3bb7787a804423482f9c708a698e
Message-Id: <E1PrDVq-0002or-A8@vcs-noshell.in.savannah.gnu.org>
Date: Sun, 20 Feb 2011 17:56:02 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-43-gce791e5
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 Feb 2011 19:30:03 -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=ce791e5a957f3bb7787a804423482f9c708a698e

The branch, master has been updated
       via  ce791e5a957f3bb7787a804423482f9c708a698e (commit)
      from  f9fb23548804e962be8ce619e7fcec62299c100e (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 ce791e5a957f3bb7787a804423482f9c708a698e
Author: Christian Rössel <christian.roessel@gmx.de>
Date:   Sun Feb 20 18:24:23 2011 +0100

    Fix OpenMP flag detection for various Fortran compilers.
    
    * lib/autoconf/c.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
    OpenMP-conditional compilation construct, to force compile
    failure with missing OpenMP flag.
    (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
    * THANKS: Update.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog         |   10 ++++++++++
 THANKS            |    1 +
 lib/autoconf/c.m4 |   13 +++++++++++--
 3 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0bd0b78..52d4cac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-02-20  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
+	    Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
+
+	Fix OpenMP flag detection for various Fortran compilers.
+	* lib/autoconf/c.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
+	OpenMP-conditional compilation construct, to force compile
+	failure with missing OpenMP flag.
+	(AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
+	* THANKS: Update.
+
 2011-02-18  Eric Blake  <eblake@redhat.com>
 
 	docs: document fourth argument of AC_RUN_IFELSE better
diff --git a/THANKS b/THANKS
index a3ee752..d397327 100644
--- a/THANKS
+++ b/THANKS
@@ -257,6 +257,7 @@ Mark Hessling               mark@rexx.org
 Mark Kettenis               kettenis@gnu.org
 Markku Savela               msa@msa.tte.vtt.fi
 Markus Oberhumer            markus.oberhumer@jk.uni-linz.ac.at
+Markus Geimer               m.geimer@fz-juelich.de
 Martin Buchholz             martin@xemacs.org
 Martin Costabel             costabel@wanadoo.fr
 Martin Frydl                martin@systinet.com
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 871e1c9..89e6b49 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1957,7 +1957,14 @@ m4_copy([_AC_LANG_OPENMP(C)], [_AC_LANG_OPENMP(C++)])
 # _AC_LANG_OPENMP(Fortran 77)
 # ---------------------------
 m4_define([_AC_LANG_OPENMP(Fortran 77)],
-[AC_LANG_FUNC_LINK_TRY([omp_get_num_threads])])
+[
+      program main
+      implicit none
+!$    integer tid
+      tid = 42
+      call omp_set_num_threads(2)
+      end
+])
 
 # _AC_LANG_OPENMP(Fortran)
 # ------------------------
@@ -1992,12 +1999,14 @@ AC_DEFUN([AC_OPENMP],
 	  dnl   SGI C, PGI C         -mp
 	  dnl   Tru64 Compaq C       -omp
 	  dnl   IBM C (AIX, Linux)   -qsmp=omp
+          dnl   Cray CCE             -homp
+          dnl   NEC SX               -Popenmp
 	  dnl If in this loop a compiler is passed an option that it doesn't
 	  dnl understand or that it misinterprets, the AC_LINK_IFELSE test
 	  dnl will fail (since we know that it failed without the option),
 	  dnl therefore the loop will continue searching for an option, and
 	  dnl no output file called 'penmp' or 'mp' is created.
-	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
+	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp -Popenmp; do
 	    ac_save_[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
 	    _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $ac_option"
 	    AC_LINK_IFELSE([_AC_LANG_OPENMP],


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Mon Feb 21 15:26:07 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PrcKd-0002ob-7U
	for mharc-autoconf-commit@gnu.org; Mon, 21 Feb 2011 15:26:07 -0500
Received: from [140.186.70.92] (port=40070 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PrcKY-0002n3-TP
	for autoconf-commit@gnu.org; Mon, 21 Feb 2011 15:26:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrcKW-00037J-TC
	for autoconf-commit@gnu.org; Mon, 21 Feb 2011 15:26:02 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:49970
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrcKW-00037F-RK
	for autoconf-commit@gnu.org; Mon, 21 Feb 2011 15:26:00 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrcKW-0005z1-Bs
	for autoconf-commit@gnu.org; Mon, 21 Feb 2011 20:26:00 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PrcKU-0005NX-PA
	for autoconf-commit@gnu.org; Mon, 21 Feb 2011 20:26:00 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: ce791e5a957f3bb7787a804423482f9c708a698e
X-Git-Newrev: 67b4182579092fbc41bb72d44d979199f31690f7
Message-Id: <E1PrcKU-0005NX-PA@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 21 Feb 2011 20:25:59 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-44-g67b4182
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Feb 2011 20:26:06 -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=67b4182579092fbc41bb72d44d979199f31690f7

The branch, master has been updated
       via  67b4182579092fbc41bb72d44d979199f31690f7 (commit)
      from  ce791e5a957f3bb7787a804423482f9c708a698e (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 67b4182579092fbc41bb72d44d979199f31690f7
Author: Ian Lance Taylor <iant@google.com>
Date:   Tue Oct 12 12:26:39 2010 -0700

    Add support for the Go programming language.
    
    * lib/autoconf/go.m4: New file.
    * lib/autoconf/autoconf.m4: Include autoconf/go.m4.
    * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Add go.m4.
    * lib/freeze.mk (autoconf_m4f_dependencies): Add
    $(src_libdir)/autoconf/go.m4.
    * doc/autoconf.texi: Rebuild menus.
    (Preset Output Variables): Mention Go.  Document GOFLAGS.
    (Libraries): Mention Go.
    (Go Compiler): New subsection.
    (Language Choice): Mention Go.
    (Generating Sources): Likewise.
    (Running the Preprocessor): Likewise.
    * tests/go.at: New file.
    * tests/suite.at: Include go.at and acgo.at.
    * tests/local.at (_AT_CHECK_ENV): Add GOC and GOFLAGS.
    * tests/Makefile.am (TESTSUITE_GENERATED_AT): Add
    $(srcdir)/acgo.at.
    (TESTSUITE_HAND_AT): Add go.at.
    (AUTOCONF_FILES): Add $(autoconfdir)/go.m4.
    * NEWS: Update.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog                |   23 ++++++
 NEWS                     |    3 +
 doc/autoconf.texi        |   57 +++++++++++++---
 lib/autoconf/Makefile.am |    2 +-
 lib/autoconf/autoconf.m4 |    1 +
 lib/autoconf/go.m4       |  177 ++++++++++++++++++++++++++++++++++++++++++++++
 lib/freeze.mk            |    1 +
 tests/Makefile.am        |    4 +-
 tests/go.at              |   35 +++++++++
 tests/local.at           |    1 +
 tests/suite.at           |    2 +
 11 files changed, 295 insertions(+), 11 deletions(-)
 create mode 100644 lib/autoconf/go.m4
 create mode 100644 tests/go.at

diff --git a/ChangeLog b/ChangeLog
index 52d4cac..00c13f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2011-02-21  Ian Lance Taylor  <iant@google.com>
+
+	* lib/autoconf/go.m4: New file.
+	* lib/autoconf/autoconf.m4: Include autoconf/go.m4.
+	* lib/autoconf/Makefile.am (dist_autoconflib_DATA): Add go.m4.
+	* lib/freeze.mk (autoconf_m4f_dependencies): Add
+	$(src_libdir)/autoconf/go.m4.
+	* doc/autoconf.texi: Rebuild menus.
+	(Preset Output Variables): Mention Go.  Document GOFLAGS.
+	(Libraries): Mention Go.
+	(Go Compiler): New subsection.
+	(Language Choice): Mention Go.
+	(Generating Sources): Likewise.
+	(Running the Preprocessor): Likewise.
+	* tests/go.at: New file.
+	* tests/suite.at: Include go.at and acgo.at.
+	* tests/local.at (_AT_CHECK_ENV): Add GOC and GOFLAGS.
+	* tests/Makefile.am (TESTSUITE_GENERATED_AT): Add
+	$(srcdir)/acgo.at.
+	(TESTSUITE_HAND_AT): Add go.at.
+	(AUTOCONF_FILES): Add $(autoconfdir)/go.m4.
+	* NEWS: Update.
+
 2011-02-20  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
 	    Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
 
diff --git a/NEWS b/NEWS
index c485f22..3edebd8 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ GNU Autoconf NEWS - User visible changes.
 
 * Noteworthy changes in release ?.? (????-??-??) [?]
 
+** Support for the Go programming language has been added.  The new macro
+   AC_LANG_GO sets variables GOC and GOFLAGS.
+
 ** AS_LITERAL_IF again treats '=' as a literal.  Regression introduced in
    2.66.
 
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index a08208f..b011316 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -413,6 +413,7 @@ Compilers and Preprocessors
 * Objective C++ Compiler::      Likewise
 * Erlang Compiler and Interpreter::  Likewise
 * Fortran Compiler::            Likewise
+* Go Compiler::                 Likewise
 
 Writing Tests
 
@@ -2605,7 +2606,7 @@ programs to test for Fortran 77 features.
 Options for the linker.  If it is not set
 in the environment when @command{configure} runs, the default value is empty.
 @command{configure} uses this variable when linking programs to test for
-C, C++, Objective C, Objective C++, and Fortran features.
+C, C++, Objective C, Objective C++, Fortran, and Go features.
 
 This variable's contents should contain options like @option{-s} and
 @option{-L} that affect only the behavior of the linker.  Please see the
@@ -2623,7 +2624,7 @@ Don't use this variable to pass library names
 but some Autoconf macros may prepend extra libraries to this variable if
 those libraries are found and provide necessary functions, see
 @ref{Libraries}.  @command{configure} uses this variable when linking
-programs to test for C, C++, Objective C, Objective C++, and Fortran
+programs to test for C, C++, Objective C, Objective C++, Fortran, and Go
 features.
 @end defvar
 
@@ -2641,6 +2642,13 @@ Debugging and optimization options for the Objective C++ compiler.  It
 acts like @code{CXXFLAGS}, but for Objective C++ instead of C++.
 @end defvar
 
+@defvar GOFLAGS
+@evindex GOFLAGS
+@ovindex GOFLAGS
+Debugging and optimization options for the Go compiler.  It acts like
+@code{CFLAGS}, but for Go instead of C.
+@end defvar
+
 @defvar builddir
 @ovindex builddir
 Rigorously equal to @samp{.}.  Added for symmetry only.
@@ -4435,8 +4443,8 @@ a variable name mapped to underscores.
 @section Library Files
 @cindex Library, checking
 
-The following macros check for the presence of certain C, C++, or Fortran
-library archive files.
+The following macros check for the presence of certain C, C++, Fortran,
+or Go library archive files.
 
 @anchor{AC_CHECK_LIB}
 @defmac AC_CHECK_LIB (@var{library}, @var{function}, @
@@ -6989,6 +6997,7 @@ compiling.
 * Objective C++ Compiler::      Likewise
 * Erlang Compiler and Interpreter::  Likewise
 * Fortran Compiler::            Likewise
+* Go Compiler::                 Likewise
 @end menu
 
 @node Specific Compiler Characteristics
@@ -8238,6 +8247,32 @@ message).
 @end defmac
 
 
+@node Go Compiler
+@subsection Go Compiler Characteristics
+@cindex Go
+
+Autoconf provides basic support for the Go programming language when
+using the @code{gccgo} compiler (there is currently no support for the
+@code{6g} and @code{8g} compilers).
+
+@defmac AC_PROG_GO (@ovar{compiler-search-list})
+Find the Go compiler to use.  Check whether the environment variable
+@code{GOC} is set; if so, then set output variable @code{GOC} to its
+value.
+
+Otherwise, if the macro is invoked without an argument, then search for
+a Go compiler named @code{gccgo}.  If it is not found, then as a last
+resort set @code{GOC} to @code{gccgo}.
+
+This macro may be invoked with an optional first argument which, if
+specified, must be a blank-separated list of Go compilers to search for.
+
+If output variable @code{GOFLAGS} was not already set, set it to
+@option{-g -O2}.  If your package does not like this default,
+@code{GOFLAGS} may be set before @code{AC_PROG_GO}.
+@end defmac
+
+
 @node System Services
 @section System Services
 
@@ -8628,6 +8663,10 @@ Do compilation tests using @code{OBJCXX} and @code{OBJCXXCPP} and use
 extension @file{.mm} for test programs.  Use compilation flags:
 @code{CPPFLAGS} with @code{OBJCXXCPP}, and both @code{CPPFLAGS} and
 @code{OBJCXXFLAGS} with @code{OBJCXX}.
+
+@item Go
+Do compilation tests using @code{GOC} and use extension @file{.go} for
+test programs.  Use compilation flags @code{GOFLAGS}.
 @end table
 @end defmac
 
@@ -8871,9 +8910,9 @@ on a system with @command{gcc} installed, results in:
 const char hw[] = "Hello, World\n";
 @end example
 
-When the test language is Fortran or Erlang, the @code{AC_DEFINE} definitions
-are not automatically translated into constants in the source code by this
-macro.
+When the test language is Fortran, Erlang, or Go, the @code{AC_DEFINE}
+definitions are not automatically translated into constants in the
+source code by this macro.
 
 @defmac AC_LANG_PROGRAM (@var{prologue}, @var{body})
 @acindex{LANG_PROGRAM}
@@ -8995,8 +9034,8 @@ temptation of following the easiest path.
 Nevertheless, if you need to run the preprocessor, then use
 @code{AC_PREPROC_IFELSE}.
 
-The macros described in this section cannot be used for tests in Erlang or
-Fortran, since those languages require no preprocessor.
+The macros described in this section cannot be used for tests in Erlang,
+Fortran, or Go, since those languages require no preprocessor.
 
 @anchor{AC_PREPROC_IFELSE}
 @defmac AC_PREPROC_IFELSE (@var{input}, @ovar{action-if-true}, @
diff --git a/lib/autoconf/Makefile.am b/lib/autoconf/Makefile.am
index ed2d4e9..6390590 100644
--- a/lib/autoconf/Makefile.am
+++ b/lib/autoconf/Makefile.am
@@ -22,7 +22,7 @@ dist_autoconflib_DATA = \
 	general.m4 status.m4 oldnames.m4 specific.m4 \
 	autoheader.m4 autoupdate.m4 autotest.m4 autoscan.m4 \
 	lang.m4 c.m4 erlang.m4 fortran.m4 \
-	functions.m4 headers.m4 types.m4 libs.m4 programs.m4
+	functions.m4 go.m4 headers.m4 types.m4 libs.m4 programs.m4
 
 nodist_autoconflib_DATA = autoconf.m4f
 CLEANFILES = $(nodist_autoconflib_DATA)
diff --git a/lib/autoconf/autoconf.m4 b/lib/autoconf/autoconf.m4
index 32a6248..897639c 100644
--- a/lib/autoconf/autoconf.m4
+++ b/lib/autoconf/autoconf.m4
@@ -42,6 +42,7 @@ m4_include([autoconf/lang.m4])
 m4_include([autoconf/c.m4])
 m4_include([autoconf/erlang.m4])
 m4_include([autoconf/fortran.m4])
+m4_include([autoconf/go.m4])
 m4_include([autoconf/functions.m4])
 m4_include([autoconf/headers.m4])
 m4_include([autoconf/types.m4])
diff --git a/lib/autoconf/go.m4 b/lib/autoconf/go.m4
new file mode 100644
index 0000000..0539d99
--- /dev/null
+++ b/lib/autoconf/go.m4
@@ -0,0 +1,177 @@
+# This file is part of Autoconf.                       -*- Autoconf -*-
+# Go language support.
+# Copyright (C) 2011 Free Software Foundation, Inc.
+
+# This file is part of Autoconf.  This program is free
+# software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# Under Section 7 of GPL version 3, you are granted additional
+# permissions described in the Autoconf Configure Script Exception,
+# version 3.0, as published by the Free Software Foundation.
+#
+# You should have received a copy of the GNU General Public License
+# and a copy of the Autoconf Configure Script Exception along with
+# this program; see the files COPYINGv3 and COPYING.EXCEPTION
+# respectively.  If not, see <http://www.gnu.org/licenses/>.
+
+# Go support contributed by Ian Lance Taylor.
+
+# This currently only supports gccgo, not 6g/8g/5g.
+
+# ------------------- #
+# Language selection.
+# ------------------- #
+
+# AC_LANG(Go)
+# -----------
+AC_LANG_DEFINE([Go], [go], [GO], [GOC], [],
+[ac_ext=go
+ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD'
+ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AS_MESSAGE_LOG_FD'
+ac_compiler_gnu=yes
+])
+
+# AC_LANG_GO
+# ----------
+AU_DEFUN([AC_LANG_GO], [AC_LANG(Go)])
+
+# ------------------- #
+# Producing programs.
+# ------------------- #
+
+# AC_LANG_PROGRAM(Go)([PROLOGUE], [BODY])
+# ---------------------------------------
+m4_define([AC_LANG_PROGRAM(Go)],
+[package main
+$1
+func main() {
+$2
+}])
+
+# _AC_LANG_IO_PROGRAM(Go)
+# -----------------------
+# Produce source that performs I/O.
+m4_define([_AC_LANG_IO_PROGRAM(Go)],
+[AC_LANG_PROGRAM([import ( "fmt"; "os" )],
+[f, err := os.Open("conftest.out", os.O_CREATE|os.O_WRONLY, 0777)
+ if err != nil {
+	fmt.Println(err)
+	os.Exit(1)
+ }
+ if err = f.Close(); err != nil {
+	fmt.Println(err)
+	os.Exit(1)
+ }
+ os.Exit(0)
+])])
+
+# AC_LANG_CALL(Go)(PROLOGUE, FUNCTION)
+# ------------------------------------
+# Avoid conflicting decl of main.
+m4_define([AC_LANG_CALL(Go)],
+[AC_LANG_PROGRAM([$1
+m4_if([$2], [main], ,
+[func $2()])],[$2()])])
+
+# AC_LANG_FUNC_LINK_TRY(Go)(FUNCTION)
+# -----------------------------------
+# Try to link a program which calls FUNCTION.
+m4_define([AC_LANG_FUNC_LINK_TRY(Go)],
+[AC_LANG_PROGRAM(
+[func $1() int
+var f = $1
+], [return f()])])
+
+# AC_LANG_BOOL_COMPILE_TRY(Go)(PROLOGUE, EXPRESSION)
+# --------------------------------------------------
+# Return a program which is valid if EXPRESSION is nonzero.
+m4_define([AC_LANG_BOOL_COMPILE_TRY(Go)],
+[AC_LANG_PROGRAM([$1], [var test_array @<:@1 - 2 * !($2)@:>@int
+test_array @<:@0@:>@ = 0
+])])
+
+# AC_LANG_INT_SAVE(Go)(PROLOGUE, EXPRESSION)
+# ------------------------------------------
+m4_define([AC_LANG_INT_SAVE(Go)],
+[AC_LANG_PROGRAM([$1
+import (
+	"fmt"
+	"os"
+)
+],
+[f, err := os.Open("conftest.val", os.O_CREATE|os.O_WRONLY, 0777)
+ if err != nil {
+	os.Exit(1)
+ }
+ if $2 < 0 {
+	int64 i = int64($2)
+	if i != $2 {
+		os.Exit(1)
+	}
+	if _, err := fmt.Print(f, i); err != nil {
+		os.Exit(1)
+	}
+ } else {
+	uint64 i = uint64($2)
+	if i != $2 {
+		os.Exit(1)
+	}
+	if _, err := fmt.Print(f, i); err != nil {
+		os.Exit(1)
+	}
+ }
+ if err = f.Close(); err != nil {
+	os.Exit(1)
+ }
+ os.Exit(0);
+])])
+
+# ---------------------- #
+# Looking for compilers. #
+# ---------------------- #
+
+# AC_LANG_COMPILER(Go)
+# --------------------
+AC_DEFUN([AC_LANG_COMPILER(Go)],
+[AC_REQUIRE([AC_PROG_GO])])
+
+# AC_PROG_GO
+# ----------
+AN_MAKEVAR([GOC], [AC_PROG_GO])
+AN_PROGRAM([gccgo], [AC_PROG_GO])
+AC_DEFUN([AC_PROG_GO],
+[AC_LANG_PUSH(Go)dnl
+AC_ARG_VAR([GOC],   [Go compiler command])dnl
+AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
+_AC_ARG_VAR_LDFLAGS()dnl
+m4_ifval([$1],
+      [AC_CHECK_TOOLS(GOC, [$1])],
+[AC_CHECK_TOOL(GOC, gccgo)
+if test -z "$GOC"; then
+  if test -n "$ac_tool_prefix"; then
+    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [$ac_tool_prefix}gccgo])
+  fi
+fi
+if test -z "$GOC"; then
+  AC_CHECK_PROG(GOC, gccgo, gccgo, , , false)
+fi
+])
+
+# Provide some information about the compiler.
+_AS_ECHO_LOG([checking for _AC_LANG compiler version])
+set X $ac_compile
+ac_compiler=$[2]
+_AC_DO_LIMIT([$ac_compiler --version >&AS_MESSAGE_LOG_FD])
+m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
+m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
+GOFLAGS="-g -O2"
+AC_LANG_POP(Go)dnl
+])# AC_PROG_GO
diff --git a/lib/freeze.mk b/lib/freeze.mk
index 31a946e..bf7de4d 100644
--- a/lib/freeze.mk
+++ b/lib/freeze.mk
@@ -88,6 +88,7 @@ autoconf_m4f_dependencies =			\
 	$(src_libdir)/autoconf/c.m4		\
 	$(src_libdir)/autoconf/fortran.m4	\
 	$(src_libdir)/autoconf/erlang.m4	\
+	$(src_libdir)/autoconf/go.m4		\
 	$(src_libdir)/autoconf/functions.m4	\
 	$(src_libdir)/autoconf/headers.m4	\
 	$(src_libdir)/autoconf/types.m4		\
diff --git a/tests/Makefile.am b/tests/Makefile.am
index d068a10..265a749 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -84,6 +84,7 @@ TESTSUITE_GENERATED_AT = \
 	$(srcdir)/aclang.at \
 	$(srcdir)/acc.at \
 	$(srcdir)/acfortran.at \
+	$(srcdir)/acgo.at \
 	$(srcdir)/acgeneral.at \
 	$(srcdir)/acstatus.at \
 	$(srcdir)/acautoheader.at \
@@ -99,7 +100,7 @@ TESTSUITE_HAND_AT = \
 	suite.at \
 	m4sugar.at m4sh.at autotest.at \
 	base.at tools.at torture.at \
-	compile.at c.at erlang.at fortran.at \
+	compile.at c.at erlang.at fortran.at go.at \
 	semantics.at \
 	autoscan.at \
 	foreign.at
@@ -169,6 +170,7 @@ AUTOCONF_FILES = $(autoconfdir)/general.m4 \
 		 $(autoconfdir)/c.m4 \
 		 $(autoconfdir)/erlang.m4 \
 		 $(autoconfdir)/fortran.m4 \
+		 $(autoconfdir)/go.m4 \
 		 $(autoconfdir)/headers.m4 \
 		 $(autoconfdir)/libs.m4 \
 		 $(autoconfdir)/types.m4 \
diff --git a/tests/go.at b/tests/go.at
new file mode 100644
index 0000000..6bad32d
--- /dev/null
+++ b/tests/go.at
@@ -0,0 +1,35 @@
+#							-*- Autotest -*-
+
+AT_BANNER([Go low level compiling and utility macros.])
+
+# Copyright (C) 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
+# Since the macros which compile are required by most tests, check
+# them first.  But remember that looking for a compiler is even more
+# primitive, so check those first.
+
+
+## ------------- ##
+## Go Compiler.  ##
+## ------------- ##
+
+AT_CHECK_MACRO([Go],
+[[AC_LANG(Go)
+AC_LANG_COMPILER
+]])
diff --git a/tests/local.at b/tests/local.at
index 8e20ec3..bfd124f 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -307,6 +307,7 @@ if test -f state-env.before && test -f state-env.after; then
       [ERLANG_LIB_DIR_.*|ERLANG_LIB_VER_.*|ERLANG_INSTALL_LIB_DIR],
       [ERLANG_INSTALL_LIB_DIR_.*|ERLANG_ERTS_VER|OBJC|OBJCPP|OBJCFLAGS],
       [OBJCXX|OBJCXXCPP|OBJCXXFLAGS],
+      [GOC|GOFLAGS],
       [OPENMP_CFLAGS],
       [LIBS|LIB@&t@OBJS|LTLIBOBJS|LDFLAGS],
       [INSTALL(_(DATA|PROGRAM|SCRIPT))?],
diff --git a/tests/suite.at b/tests/suite.at
index 24685a0..9a23d60 100644
--- a/tests/suite.at
+++ b/tests/suite.at
@@ -52,6 +52,8 @@ m4_include([acc.at])
 m4_include([fortran.at])
 m4_include([acfortran.at])
 m4_include([erlang.at])
+m4_include([go.at])
+m4_include([acgo.at])
 
 # Checking that AC_CHECK_FOO macros work properly.
 m4_include([semantics.at])


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Sun Feb 27 01:03:27 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PtZj5-0000FN-K0
	for mharc-autoconf-commit@gnu.org; Sun, 27 Feb 2011 01:03:27 -0500
Received: from [140.186.70.92] (port=36846 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PtZj2-0000FB-Aw
	for autoconf-commit@gnu.org; Sun, 27 Feb 2011 01:03:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PtZj1-0005To-7A
	for autoconf-commit@gnu.org; Sun, 27 Feb 2011 01:03:24 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:51425
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PtZj1-0005Tj-4P
	for autoconf-commit@gnu.org; Sun, 27 Feb 2011 01:03:23 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PtZj0-0002V3-UR
	for autoconf-commit@gnu.org; Sun, 27 Feb 2011 06:03:23 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PtZj0-0003jw-P4
	for autoconf-commit@gnu.org; Sun, 27 Feb 2011 06:03:22 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: autoconf-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 67b4182579092fbc41bb72d44d979199f31690f7
X-Git-Newrev: e143d9ce7cd79631900bb596e365a1d531aa4e82
Message-Id: <E1PtZj0-0003jw-P4@vcs-noshell.in.savannah.gnu.org>
Date: Sun, 27 Feb 2011 06:03:22 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-45-ge143d9c
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 27 Feb 2011 06:03:25 -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=e143d9ce7cd79631900bb596e365a1d531aa4e82

The branch, master has been updated
       via  e143d9ce7cd79631900bb596e365a1d531aa4e82 (commit)
      from  67b4182579092fbc41bb72d44d979199f31690f7 (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 e143d9ce7cd79631900bb596e365a1d531aa4e82
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sat Feb 26 08:19:36 2011 +0100

    config.status: do not quote $SHELL when rerunning configure.
    
    * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Allow
    $SHELL to contain more than one word, when rerunning configure,
    for debugging purposes like CONFIG_SHELL='/bin/sh -x'.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog              |    7 +++++++
 lib/autoconf/status.m4 |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 00c13f0..bf72bd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	config.status: do not quote $SHELL when rerunning configure.
+	* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Allow
+	$SHELL to contain more than one word, when rerunning configure,
+	for debugging purposes like CONFIG_SHELL='/bin/sh -x'.
+
 2011-02-21  Ian Lance Taylor  <iant@google.com>
 
 	* lib/autoconf/go.m4: New file.
diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4
index a1a857b..46a0341 100644
--- a/lib/autoconf/status.m4
+++ b/lib/autoconf/status.m4
@@ -1542,7 +1542,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 dnl Check this before opening the log, to avoid a bug on MinGW,
 dnl which prohibits the recursive instance from truncating an open log.
 if \$ac_cs_recheck; then
-  set X '$SHELL' '$[0]' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+  set X $SHELL '$[0]' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   shift
   \AS_ECHO(["running CONFIG_SHELL=$SHELL \$[*]"]) >&AS_MESSAGE_FD
   CONFIG_SHELL='$SHELL'


hooks/post-receive
-- 
GNU Autoconf source repository


