autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.66-11-g


From: Ralf Wildenhues
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.66-11-g2fd37d5
Date: Mon, 19 Jul 2010 18:03:45 +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=2fd37d5d0ac2c4f85ba17ab32e52a855e3d002c4

The branch, master has been updated
       via  2fd37d5d0ac2c4f85ba17ab32e52a855e3d002c4 (commit)
      from  bccd0d35fb047008c0d9c055f936967f00b348da (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 2fd37d5d0ac2c4f85ba17ab32e52a855e3d002c4
Author: Ralf Wildenhues <address@hidden>
Date:   Mon Jul 19 19:59:19 2010 +0200

    Allow inspecting AC_PREPROC_IFELSE output in true branch.
    
    * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): Redirect
    preprocessor output to conftest.i rather than /dev/null.
    (_AC_PREPROC_IFELSE): Remove conftest.i in the postprocessing.
    * tests/compile.at (Order of user actions and cleanup): Extend
    test in the ACTION-IF-TRUE branch.
    * doc/autoconf.texi (Running the Preprocessor): Document new
    feature.
    * NEWS: Update.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

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

Summary of changes:
 ChangeLog               |   10 ++++++++++
 NEWS                    |    3 +++
 doc/autoconf.texi       |    3 ++-
 lib/autoconf/general.m4 |    4 ++--
 tests/compile.at        |    4 ++--
 5 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 01a854a..43aebcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2010-07-19  Ralf Wildenhues  <address@hidden>
 
+       Allow inspecting AC_PREPROC_IFELSE output in true branch.
+       * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): Redirect
+       preprocessor output to conftest.i rather than /dev/null.
+       (_AC_PREPROC_IFELSE): Remove conftest.i in the postprocessing.
+       * tests/compile.at (Order of user actions and cleanup): Extend
+       test in the ACTION-IF-TRUE branch.
+       * doc/autoconf.texi (Running the Preprocessor): Document new
+       feature.
+       * NEWS: Update.
+
        Fix AC_FC_LIBRARY_LDFLAGS detection for BlueGene xlf -qipa.
        * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
        '-link', added spuriously when -qipa is used with the XL
diff --git a/NEWS b/NEWS
index a022881..97c5495 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,9 @@ GNU Autoconf NEWS - User visible changes.
 
 ** New macro AC_FC_LINE_LENGTH to accept long Fortran source code lines.
 
+** AC_PREPROC_IFELSE now keeps the preprocessed output in the conftest.i
+   file for inspection by the commands in the ACTION-IF-TRUE argument.
+
 * Major changes in Autoconf 2.66 (2010-07-02) [stable]
   Released by Eric Blake, based on git versions 2.65.*.
 
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 4202108..be7e3ef 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -8900,7 +8900,8 @@ This macro uses @code{CPPFLAGS}, but not @code{CFLAGS}, 
because
 preprocessors.
 
 It is customary to report unexpected failures with
address@hidden
address@hidden  If needed, @var{action-if-true} can further access
+the preprocessed output in the file @file{conftest.i}.
 @end defmac
 
 For instance:
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index fc4905b..5706d69 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -2461,7 +2461,7 @@ AC_DEFUN([AC_RUN_LOG],
 # Shell function body for _AC_PREPROC_IFELSE.
 m4_define([_AC_PREPROC_IFELSE_BODY],
 [  AS_LINENO_PUSH([$[]1])
-  AS_IF([_AC_DO_STDERR([$ac_cpp conftest.$ac_ext]) >/dev/null && {
+  AS_IF([_AC_DO_STDERR([$ac_cpp conftest.$ac_ext]) > conftest.i && {
         test -z 
"$ac_[]_AC_LANG_ABBREV[]_preproc_warn_flag$ac_[]_AC_LANG_ABBREV[]_werror_flag" 
||
         test ! -s conftest.err
        }],
@@ -2486,7 +2486,7 @@ AC_DEFUN([_AC_PREPROC_IFELSE],
   [$0_BODY])]dnl
 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])]dnl
 [AS_IF([ac_fn_[]_AC_LANG_ABBREV[]_try_cpp "$LINENO"], [$2], [$3])
-rm -f conftest.err[]m4_ifval([$1], [ conftest.$ac_ext])[]dnl
+rm -f conftest.err conftest.i[]m4_ifval([$1], [ conftest.$ac_ext])[]dnl
 ])# _AC_PREPROC_IFELSE
 
 # AC_PREPROC_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
diff --git a/tests/compile.at b/tests/compile.at
index b26d810..e3e4e07 100644
--- a/tests/compile.at
+++ b/tests/compile.at
@@ -294,8 +294,8 @@ AT_DATA([configure.ac],
 [[AC_INIT
 AC_PROG_CC
 
-AC_PREPROC_IFELSE([AC_LANG_PROGRAM([int ok;], [])],
-                 [test -f conftest.err || AS_EXIT([1])],
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([int grepme;], [])],
+                 [{ test -f conftest.err && grep grepme conftest.i; } || 
AS_EXIT([1])],
                  [AS_EXIT([1])])
 AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#define 12 34 /*], [])],
                  [AS_EXIT([1])],


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

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