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.64-38-g


From: Ralf Wildenhues
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.64-38-gb4113eb
Date: Sun, 13 Sep 2009 08:09: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=b4113eba0c42054a7caf6377a57b28cfd775381d

The branch, master has been updated
       via  b4113eba0c42054a7caf6377a57b28cfd775381d (commit)
       via  52531c3002567bb368201227abe78af3fa32ad97 (commit)
       via  105fd64d1c94f4bd1e0fb0ba13f4a2a5631a4c72 (commit)
      from  0ccf0c1022a6b8f38945b47327f1fbfbd0b81804 (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 b4113eba0c42054a7caf6377a57b28cfd775381d
Author: Ralf Wildenhues <address@hidden>
Date:   Sun Sep 13 10:05:10 2009 +0200

    Improve autotest testsuite summary message.
    
    * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
    only if not $at_debug_p.  Always hint at the per-test output.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit 52531c3002567bb368201227abe78af3fa32ad97
Author: Ralf Wildenhues <address@hidden>
Date:   Sun Sep 13 10:03:51 2009 +0200

    Four new autoupdate tests, expected failures.
    
    * tests/tools.at (autoupdating macros recursively)
    (autoupdating with m4@&address@hidden, autoupdating with AC_REQUIRE)
    (autoupdating with complex quoting): New tests.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit 105fd64d1c94f4bd1e0fb0ba13f4a2a5631a4c72
Author: Ralf Wildenhues <address@hidden>
Date:   Sun Sep 13 10:02:43 2009 +0200

    Fix description of AC_CHECK_LIB regarding other deplibs.
    
    * doc/autoconf.texi (Libraries): Library linking may not fail
    even without missing additional libs.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

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

Summary of changes:
 ChangeLog               |   15 +++++++
 doc/autoconf.texi       |    6 +-
 lib/autotest/general.m4 |   23 +++++-----
 tests/tools.at          |  104 +++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 134 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9173cb3..0eb3373 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2009-09-13  Ralf Wildenhues  <address@hidden>
+
+       Improve autotest testsuite summary message.
+       * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
+       only if not $at_debug_p.  Always hint at the per-test output.
+
+       Four new autoupdate tests, expected failures.
+       * tests/tools.at (autoupdating macros recursively)
+       (autoupdating with m4@&address@hidden, autoupdating with AC_REQUIRE)
+       (autoupdating with complex quoting): New tests.
+
+       Fix description of AC_CHECK_LIB regarding other deplibs.
+       * doc/autoconf.texi (Libraries): Library linking may not fail
+       even without missing additional libs.
+
 2009-09-12  Eric Blake  <address@hidden>
 
        Track recent copyright assignments.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 4764559..72ebde0 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -4317,9 +4317,9 @@ detection of libraries.
 If linking with @var{library} results in unresolved symbols that would
 be resolved by linking with additional libraries, give those libraries
 as the @var{other-libraries} argument, separated by spaces:
-e.g., @option{-lXt -lX11}.  Otherwise, this macro fails to detect
-that @var{library} is present, because linking the test program
-always fails with unresolved symbols.  The @var{other-libraries} argument
+e.g., @option{-lXt -lX11}.  Otherwise, this macro may fail to detect
+that @var{library} is present, because linking the test program can
+fail with unresolved symbols.  The @var{other-libraries} argument
 should be limited to cases where it is desirable to test for one library
 in the presence of another that is not already in @code{LIBS}.
 
diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index ad342e8..2c164b5 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -1564,22 +1564,23 @@ else
   AS_BOX([$as_me.log was created.])
 
   echo
-  AS_ECHO(["Please send \`${at_testdir+${at_testdir}/}$as_me.log' ]dnl
-[and all information you think might help:
+  if $at_debug_p; then
+    at_msg='per-test log files'
+  else
+    at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
+  fi
+  AS_ECHO(["Please send $at_msg and all information you think might help:
 
    To: <AT_PACKAGE_BUGREPORT>
    Subject: @<:@AT_PACKAGE_STRING@:>@ $as_me: dnl
 $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}dnl
 $at_xpass_list${at_xpass_list:+ passed unexpectedly}
+
+You may investigate any problem if you feel able to do so, in which
+case the test suite provides a good starting point.  Its output may
+be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
 "])
-  if test $at_debug_p = false; then
-    echo
-    echo 'You may investigate any problem if you feel able to do so, in which'
-    echo 'case the test suite provides a good starting point.  Its output may'
-    AS_ECHO(["be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."])
-    echo
-  fi
-    exit 1
+  exit 1
 fi
 
 exit 0
@@ -1595,7 +1596,7 @@ m4_divert([KILL])
 
 # _AT_ARG_OPTION(OPTIONS,HELP-TEXT,[ARGS],[ACTION-IF-GIVEN],
 #                [ACTION-IF-NOT-GIVEN])
-# ---------------------------------------------------------------------------
+# ----------------------------------------------------------
 # Internal implementation of AT_ARG_OPTION & AT_ARG_OPTION_ARG
 m4_defun([_AT_ARG_OPTION],
 [m4_divert_once([HELP_OTHER],
diff --git a/tests/tools.at b/tests/tools.at
index 6034981..20a0f43 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -890,6 +890,31 @@ AT_CHECK([[grep 'NEW(\[0, 0], *\[0])' configure.ac]], 0, 
[ignore], [ignore])
 AT_CLEANUP
 
 
+# autoupdating macros recursively
+# -------------------------------
+
+AT_SETUP([autoupdating macros recursively])
+
+AT_XFAIL_IF([:])
+
+AT_DATA([configure.ac],
+[[AC_INIT
+AC_PROG_CC
+AC_TRY_COMPILE([], [choke me], [echo bogus1],
+              [AC_TRY_COMPILE([], [return 0;], [echo good], [echo bogus2])])
+AC_OUTPUT
+]])
+
+# Checking `autoupdate'.
+AT_CHECK_AUTOUPDATE
+AT_CHECK([grep changequote configure.ac], [1])
+AT_CHECK([grep TRY_COMPILE configure.ac], [1])
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE
+
+AT_CLEANUP
+
+
 # autoupdating AC_HELP_STRING
 # ---------------------------
 AT_SETUP([autoupdating AC_HELP_STRING])
@@ -944,6 +969,85 @@ AT_CHECK_CONFIGURE([], [], [], [ignore])
 AT_CLEANUP
 
 
+# autoupdating with m4_pushdef
+# ----------------------------
+AT_SETUP([autoupdating with m4@&address@hidden)
+
+AT_XFAIL_IF([:])
+
+touch foo.in
+AT_DATA([configure.ac],
+[[AC_INIT
+AC_PROG_CC
+# temporarily override this macro
+m4@&address@hidden([AC_MSG_RESULT_UNQUOTED], [:])
+AC_C_BIGENDIAN
+m4@&address@hidden([AC_MSG_RESULT_UNQUOTED])
+AC_OUTPUT
+]])
+
+# Checking `autoupdate'.
+AT_CHECK_AUTOUPDATE([], [], [], [ignore])
+AT_CHECK([grep changequote configure.ac], [1])
+AT_CHECK([grep [pushdef.*AC_MSG_RESULT_UNQUOTED] configure.ac], [0], [ignore])
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([], [], [], [ignore])
+
+AT_CLEANUP
+
+
+# autoupdating with AC_REQUIRE
+# ----------------------------
+AT_SETUP([autoupdating with AC_REQUIRE])
+
+AT_XFAIL_IF([:])
+
+AT_DATA([configure.ac],
+[[AC_DEFUN([MACRO],
+[AC_REQUIRE([AC_DECL_SYS_SIGLIST])
+AC_CHECK_DECLS([_sys_siglist], [], [], [#include <signal.h>])
+])
+
+AC_INIT
+MACRO
+AC_OUTPUT
+]])
+
+# Checking `autoupdate'.
+AT_CHECK_AUTOUPDATE([], [], [], [ignore])
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([], [], [], [ignore])
+
+AT_CLEANUP
+
+
+# autoupdating with complex quoting
+# ---------------------------------
+AT_SETUP([autoupdating with complex quoting])
+
+AT_XFAIL_IF([:])
+
+AT_DATA([configure.ac],
+[[m4_define([MACRO],
+[[#define STRING "hello, world\n"
+]])
+
+AC_INIT
+AC_TRY_COMPILE([#include <stdio.h>
+              ]MACRO[], [printf (STRING);],
+              [], [AS_EXIT([1])])
+AC_OUTPUT
+]])
+
+# Checking `autoupdate'.
+AT_CHECK_AUTOUPDATE([], [], [], [ignore])
+AT_CHECK_AUTOCONF
+AT_CHECK([grep MACRO configure], [1])
+AT_CHECK_CONFIGURE([], [], [], [ignore])
+
+AT_CLEANUP
+
+
 # autoupdating AC_LANG_SAVE
 # -------------------------
 AT_SETUP([autoupdating AC_LANG_SAVE])


hooks/post-receive
-- 
GNU Autoconf source repository




reply via email to

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