ftello: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 7 May 2011 11:37:56 +0000 (13:37 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Jun 2011 11:05:49 +0000 (13:05 +0200)
* m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
(gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
here...
* modules/ftello (configure.ac): ... to here.

ChangeLog
m4/ftello.m4
modules/ftello

index 21c341f..c908033 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
+       ftello: Respect rules for use of AC_LIBOBJ.
+       * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
+       (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
+       here...
+       * modules/ftello (configure.ac): ... to here.
+
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
        fseeko: Simplify.
        * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
        (gl_FUNC_FSEEKO): Inline it here.
index 599f8f2..10cf429 100644 (file)
@@ -1,4 +1,4 @@
-# ftello.m4 serial 9
+# ftello.m4 serial 10
 dnl Copyright (C) 2007-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,
@@ -124,12 +124,4 @@ main (void)
       esac
     fi
   fi
-  if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
-    gl_REPLACE_FTELLO
-  fi
-])
-
-AC_DEFUN([gl_REPLACE_FTELLO],
-[
-  AC_LIBOBJ([ftello])
 ])
index b042e84..6cce847 100644 (file)
@@ -17,6 +17,9 @@ AC_REQUIRE([AC_FUNC_FSEEKO])
 
 configure.ac:
 gl_FUNC_FTELLO
+if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
+  AC_LIBOBJ([ftello])
+fi
 gl_STDIO_MODULE_INDICATOR([ftello])
 
 Makefile.am: