fopen: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 7 May 2011 10:15:25 +0000 (12:15 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:05:59 +0000 (00:05 +0200)
* m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
invocations from here...
* modules/fopen (configure.ac): ... to here.

ChangeLog
m4/fopen.m4
modules/fopen

index 16aed5e..e59b004 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
+       fopen: Move AC_LIBOBJ invocations to module description.
+       * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
+       invocations from here...
+       * modules/fopen (configure.ac): ... to here.
+
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
        fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
        * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
        gl_FUNC_FNMATCH_POSIX.
index 8407ed4..4e19b29 100644 (file)
@@ -1,4 +1,4 @@
-# fopen.m4 serial 7
+# fopen.m4 serial 8
 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,
@@ -52,10 +52,6 @@ changequote([,])dnl
       REPLACE_FOPEN=1
       ;;
   esac
-  if test $REPLACE_FOPEN = 1; then
-    AC_LIBOBJ([fopen])
-    gl_PREREQ_FOPEN
-  fi
 ])
 
 # Prerequisites of lib/fopen.c.
index 2177a3b..13799e9 100644 (file)
@@ -11,6 +11,10 @@ unistd          [test $REPLACE_FOPEN = 1]
 
 configure.ac:
 gl_FUNC_FOPEN
+if test $REPLACE_FOPEN = 1; then
+  AC_LIBOBJ([fopen])
+  gl_PREREQ_FOPEN
+fi
 gl_STDIO_MODULE_INDICATOR([fopen])
 
 Makefile.am: