strtoul: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 12:08:12 +0000 (14:08 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:57 +0000 (00:06 +0200)
* m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
* modules/strtoul (configure.ac): ... to here.

ChangeLog
m4/strtoul.m4
modules/strtoul

index 0b67636..5ab0c71 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       strtoul: Move AC_LIBOBJ invocations to module description.
+       * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
+       * modules/strtoul (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        strtol: Move AC_LIBOBJ invocations to module description.
        * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
        AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
index 06979d1..0f80e33 100644 (file)
@@ -1,4 +1,4 @@
-# strtoul.m4 serial 4
+# strtoul.m4 serial 5
 dnl Copyright (C) 2002, 2006, 2009-2011 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,5 +6,5 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_STRTOUL],
 [
-  AC_REPLACE_FUNCS([strtoul])
+  AC_CHECK_FUNCS([strtoul])
 ])
index dc2b50b..7f3139c 100644 (file)
@@ -16,6 +16,9 @@ Depends-on:
 
 configure.ac:
 gl_FUNC_STRTOUL
+if test $ac_cv_func_strtoul = no; then
+  AC_LIBOBJ([strtoul])
+fi
 
 Makefile.am: