2007-01-24 Bruno Haible <bruno@clisp.org>
authorBruno Haible <bruno@clisp.org>
Thu, 25 Jan 2007 03:25:54 +0000 (03:25 +0000)
committerBruno Haible <bruno@clisp.org>
Thu, 25 Jan 2007 03:25:54 +0000 (03:25 +0000)
        Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
        <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
        * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
        * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
        gl_FUNC_FTS_CORE.
        (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
        * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
        AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
        * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
        * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
        * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
        gl_FUNC_FCHOWNAT.
        * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
        gl_FUNC_STRFTIME.
        * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
        Reported by Ralf Wildenhues.

ChangeLog
m4/argp.m4
m4/fts.m4
m4/lstat.m4
m4/memcmp.m4
m4/mktime.m4
m4/openat.m4
m4/strftime.m4
m4/strtod.m4

index d7486b4020dba76c9ff4ecb18b9b5389228a359c..33b079b2b1c1bcf7d997a173d7c3afdefa226a0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2007-01-24  Bruno Haible  <bruno@clisp.org>
+
+       Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
+       <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
+       * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
+       * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
+       gl_FUNC_FTS_CORE.
+       (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
+       * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
+       AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
+       * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
+       * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
+       * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
+       gl_FUNC_FCHOWNAT.
+       * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
+       gl_FUNC_STRFTIME.
+       * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
+       Reported by Ralf Wildenhues.
+
 2007-01-24  Bruno Haible  <bruno@clisp.org>
 
        Drop AC_REQUIRE calls that are redundant with the module dependencies.
index 5c42139556d766dd28a3627c92deda75333daf68..77f1510c8d1354d69223ca17737cca0914bbb781 100644 (file)
@@ -1,5 +1,5 @@
-# argp.m4 serial 7
-dnl Copyright (C) 2003-2006 Free Software Foundation, Inc.
+# argp.m4 serial 8
+dnl Copyright (C) 2003-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -9,7 +9,10 @@ AC_DEFUN([gl_ARGP],
   AC_REQUIRE([AC_C_INLINE])
   AC_REQUIRE([AC_C_RESTRICT])
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
-  AC_REQUIRE([gl_GETOPT_SUBSTITUTE])
+  dnl argp-parse.c depends on GNU getopt internals, therefore use GNU getopt
+  dnl always.
+  gl_GETOPT_SUBSTITUTE
+  dnl Note: gl_GETOPT_SUBSTITUTE does AC_LIBOBJ(getopt), AC_LIBOBJ(getopt1).
 
   AC_CHECK_DECL([program_invocation_name],
                 [AC_DEFINE(HAVE_DECL_PROGRAM_INVOCATION_NAME, 1,
index ae6c469961611094dfcfb5cfb70c1d4f231659ff..cceb48fbea78d08b554b04fbb9fd3f8531a80662 100644 (file)
--- a/m4/fts.m4
+++ b/m4/fts.m4
@@ -1,4 +1,4 @@
-#serial 12
+#serial 13
 dnl Copyright (C) 2005-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,12 +6,12 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_FTS],
 [
-  AC_REQUIRE([gl_FUNC_FTS_CORE])
+  gl_FUNC_FTS_CORE
 ])
 
 AC_DEFUN([gl_FUNC_FTS_LGPL],
 [
-  AC_REQUIRE([gl_FUNC_FTS_CORE])
+  gl_FUNC_FTS_CORE
 ])
 
 AC_DEFUN([gl_FUNC_FTS_CORE],
@@ -21,7 +21,7 @@ AC_DEFUN([gl_FUNC_FTS_CORE],
   AC_LIBOBJ([fts])
 
   dnl Prerequisites of lib/fts.c.
-  AC_REQUIRE([gl_FUNC_OPENAT])
+  gl_FUNC_OPENAT
 
   # Checks for header files.
   AC_CHECK_HEADERS_ONCE([sys/param.h])dnl
index 2d458577155d55b67fa08c6e8fd668f4e6f70ac1..b9777a6a88f079ccc05658197cfae80c3d5043fc 100644 (file)
@@ -1,6 +1,6 @@
-#serial 15
+#serial 16
 
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
 # Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
@@ -11,7 +11,7 @@ dnl From Jim Meyering.
 
 AC_DEFUN([gl_FUNC_LSTAT],
 [
-  AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
+  AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
   dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ(lstat).
   :
 ])
index 58faf0bd2aa448cba0786e9d97c66b0fafbfaee7..099b141b2c1e985a6bcfac1324ef09ecc37ace05 100644 (file)
@@ -1,12 +1,13 @@
-# memcmp.m4 serial 11
-dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# memcmp.m4 serial 12
+dnl Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_MEMCMP],
 [
-  AC_REQUIRE([AC_FUNC_MEMCMP])
+  AC_FUNC_MEMCMP
+  dnl Note: AC_FUNC_MEMCMP does AC_LIBOBJ(memcmp).
   if test $ac_cv_func_memcmp_working = no; then
     AC_DEFINE(memcmp, rpl_memcmp,
       [Define to rpl_memcmp if the replacement function should be used.])
index 44e30bac2aaaae676c527abfab2c1c478e5afb28..cec7bc3ffd84ba5be088af7f6e8a5bf06db03125 100644 (file)
@@ -1,4 +1,4 @@
-#serial 11
+#serial 12
 dnl Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -211,7 +211,8 @@ fi
 
 AC_DEFUN([gl_FUNC_MKTIME],
 [
-  AC_REQUIRE([AC_FUNC_MKTIME])
+  AC_FUNC_MKTIME
+  dnl Note: AC_FUNC_MKTIME does AC_LIBOBJ(mktime).
   if test $ac_cv_func_working_mktime = no; then
     AC_DEFINE(mktime, rpl_mktime,
       [Define to rpl_mktime if the replacement function should be used.])
index 6d21bc485a24c3498cc121d796de78fbc1b383a4..313dc6f7f5ce5229ecd2ce6b0d878fce4fabb909 100644 (file)
@@ -1,4 +1,4 @@
-#serial 14
+#serial 15
 # See if we need to use our replacement for Solaris' openat et al functions.
 
 dnl Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
@@ -24,7 +24,7 @@ AC_DEFUN([gl_FUNC_OPENAT],
       [Define to rpl_ if the openat replacement function should be used.])
     gl_PREREQ_OPENAT;;
   esac
-  AC_REQUIRE([gl_FUNC_FCHOWNAT])
+  gl_FUNC_FCHOWNAT
 ])
 
 # gl_FUNC_FCHOWNAT_DEREF_BUG([ACTION-IF-BUGGY[, ACTION-IF-NOT_BUGGY]])
index 81e7cc65e221ed56bdcc870d6d94514f6bc480fd..70b537894de21829fcf52c5042a8459335dbb6f6 100644 (file)
@@ -1,4 +1,4 @@
-#serial 28
+#serial 29
 
 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 # 2006, 2007 Free Software Foundation, Inc.
@@ -10,7 +10,8 @@
 # Written by Jim Meyering and Paul Eggert.
 
 AC_DEFUN([gl_FUNC_GNU_STRFTIME],
-[AC_REQUIRE([gl_FUNC_STRFTIME])dnl
+[
+  gl_FUNC_STRFTIME
 ])
 
 # These are the prerequisite macros for GNU's strftime.c replacement.
index 80a1d7dff5a1a2b6409acd25b82fe72577deb02e..1de2f2fb97a0d294b57ce0df3adc9f1a74eb81e5 100644 (file)
@@ -1,12 +1,13 @@
-# strtod.m4 serial 5
-dnl Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
+# strtod.m4 serial 6
+dnl Copyright (C) 2002, 2003, 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_STRTOD],
 [
-  AC_REQUIRE([AC_FUNC_STRTOD])
+  AC_FUNC_STRTOD
+  dnl Note: AC_FUNC_STRTOD does AC_LIBOBJ(strtod).
   if test $ac_cv_func_strtod = no; then
     AC_DEFINE(strtod, rpl_strtod,
       [Define to rpl_strtod if the replacement function should be used.])