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

ChangeLog
m4/strtoull.m4
modules/strtoull

index 7e94d6366d1b736a6d1592f4dbfe99c07926fe50..9f8fcbd706f84e8b6f549cc289c570f8f4a255be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       strtoull: Move AC_LIBOBJ invocations to module description.
+       * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
+       from here...
+       * modules/strtoull (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        strtoll: Move AC_LIBOBJ invocations to module description.
index abf607fd7b1000cd09a0aaaf0b43a9c046f8c932..57ef75423df807bfc8fd115f845f63988f2c92fb 100644 (file)
@@ -1,4 +1,4 @@
-# strtoull.m4 serial 6
+# strtoull.m4 serial 7
 dnl Copyright (C) 2002, 2004, 2006, 2008-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,
@@ -11,10 +11,9 @@ AC_DEFUN([gl_FUNC_STRTOULL],
   dnl unless the type 'unsigned long long int' exists.
   AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
-    AC_REPLACE_FUNCS([strtoull])
+    AC_CHECK_FUNCS([strtoull])
     if test $ac_cv_func_strtoull = no; then
       HAVE_STRTOULL=0
-      gl_PREREQ_STRTOULL
     fi
   fi
 ])
index 97ce1fd850f8067795a2a94f66411266808ce85e..6bb66fea225ea145ff029e7ae48438ba463c30a9 100644 (file)
@@ -13,6 +13,10 @@ stdlib
 
 configure.ac:
 gl_FUNC_STRTOULL
+if test $HAVE_STRTOULL = 0; then
+  AC_LIBOBJ([strtoull])
+  gl_PREREQ_STRTOULL
+fi
 gl_STDLIB_MODULE_INDICATOR([strtoull])
 
 Makefile.am: