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.67-71-g


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.67-71-gb99695d
Date: Fri, 17 Sep 2010 15:57: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=b99695da259535240b5f86ae8f073efd30786869

The branch, master has been updated
       via  b99695da259535240b5f86ae8f073efd30786869 (commit)
       via  12d158217c3f4c235ab5bedd188d3907f925f142 (commit)
      from  a1ef66bc18cc0ea8d7cc7af0e1857670c9a1417f (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 b99695da259535240b5f86ae8f073efd30786869
Author: Bruno Haible <address@hidden>
Date:   Fri Sep 17 09:56:27 2010 -0600

    docs: mark several macros obsolete
    
    * doc/autoconf.texi (Particular Functions): Mark AC_FUNC_ERROR_AT_LINE,
    AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_MKTIME, AC_FUNC_STRTOD
    as obsolete and refer to Gnulib.
    * NEWS: Mention the change.
    
    Signed-off-by: Eric Blake <address@hidden>

commit 12d158217c3f4c235ab5bedd188d3907f925f142
Author: Bruno Haible <address@hidden>
Date:   Fri Sep 17 09:50:34 2010 -0600

    AC_FUNC_STRNLEN: more realistic cross-compilation guess
    
    * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): Require
    AC_CANONICAL_HOST. When cross-compiling, guess it works everywhere
    except on AIX.
    
    Signed-off-by: Eric Blake <address@hidden>

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

Summary of changes:
 ChangeLog                 |   13 +++++++++++++
 NEWS                      |    9 +++++++++
 doc/autoconf.texi         |   12 ++++++++++++
 lib/autoconf/functions.m4 |    7 ++++++-
 4 files changed, 40 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7710302..82185b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2010-09-17  Bruno Haible  <address@hidden>
+
+       docs: mark several macros obsolete
+       * doc/autoconf.texi (Particular Functions): Mark AC_FUNC_ERROR_AT_LINE,
+       AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_MKTIME, AC_FUNC_STRTOD
+       as obsolete and refer to Gnulib.
+       * NEWS: Mention the change.
+
+       AC_FUNC_STRNLEN: more realistic cross-compilation guess
+       * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): Require
+       AC_CANONICAL_HOST. When cross-compiling, guess it works everywhere
+       except on AIX.
+
 2010-09-16  Eric Blake  <address@hidden>
 
        m4sh: fix today's AS_BOX regression
diff --git a/NEWS b/NEWS
index f24b94c..65013c7 100644
--- a/NEWS
+++ b/NEWS
@@ -33,6 +33,15 @@ GNU Autoconf NEWS - User visible changes.
 
 ** AC_FC_LIBRARY_LDFLAGS now tolerates output from newer gfortran.
 
+** Newly obsolete macros
+   The following macros have been marked obsolete.  New programs
+   should use the corresponding Gnulib modules.  Gnulib not only
+   detects a larger set of portability problems with these functions,
+   but also provides complete workarounds.
+
+     AC_FUNC_ERROR_AT_LINE  AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
+     AC_FUNC_MKTIME  AC_FUNC_STRTOD
+
 
 * Major changes in Autoconf 2.67 (2010-07-21) [stable]
   Released by Eric Blake, based on git versions 2.66.*.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 8471525..6424302 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -4905,6 +4905,9 @@ If the @code{error_at_line} function is not found, 
require an
 
 The result of this macro is cached in the @code{ac_cv_lib_error_at_line}
 variable.
+
+The @code{AC_FUNC_ERROR_AT_LINE} macro is obsolescent.  New programs
+should use Gnulib's @code{error} module.  @xref{Gnulib}.
 @end defmac
 
 @defmac AC_FUNC_FNMATCH
@@ -5146,6 +5149,9 @@ If @code{lstat} behaves properly, define
 
 The result of this macro is cached in the
 @code{ac_cv_func_lstat_dereferences_slashed_symlink} variable.
+
+The @code{AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK} macro is obsolescent.
+New programs should use Gnulib's @code{lstat} module.  @xref{Gnulib}.
 @end defmac
 
 @defmac AC_FUNC_MALLOC
@@ -5235,6 +5241,9 @@ Posix standard and should be the inverse of
 
 The result of this macro is cached in the
 @code{ac_cv_func_working_mktime} variable.
+
+The @code{AC_FUNC_MKTIME} macro is obsolescent.  New programs should
+use Gnulib's @code{mktime} module.  @xref{Gnulib}.
 @end defmac
 
 @anchor{AC_FUNC_MMAP}
@@ -5414,6 +5423,9 @@ variable @code{POW_LIB} to the extra library needed.
 
 This macro caches its result in the @code{ac_cv_func_strtod} variable
 and depends upon the result in the @code{ac_cv_func_pow} variable.
+
+The @code{AC_FUNC_STRTOD} macro is obsolescent.  New programs should
+use Gnulib's @code{strtod} module.  @xref{Gnulib}.
 @end defmac
 
 @defmac AC_FUNC_STRTOLD
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 235def3..f03991b 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -1673,6 +1673,7 @@ LIBS="-lintl $LIBS"])])dnl
 AN_FUNCTION([strnlen], [AC_FUNC_STRNLEN])
 AC_DEFUN([AC_FUNC_STRNLEN],
 [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])dnl
+AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 AC_CACHE_CHECK([for working strnlen], ac_cv_func_strnlen_working,
 [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [[
 #define S "foobar"
@@ -1692,7 +1693,11 @@ AC_CACHE_CHECK([for working strnlen], 
ac_cv_func_strnlen_working,
 ]])],
               [ac_cv_func_strnlen_working=yes],
               [ac_cv_func_strnlen_working=no],
-              [ac_cv_func_strnlen_working=no])])
+              [# Guess no on AIX systems, yes otherwise.
+               case "$host_os" in
+                 aix*) ac_cv_func_strnlen_working=no;;
+                 *)    ac_cv_func_strnlen_working=yes;;
+               esac])])
 test $ac_cv_func_strnlen_working = no && AC_LIBOBJ([strnlen])
 ])# AC_FUNC_STRNLEN
 


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

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