From: Bruno Haible <bruno@clisp.org>
Date: Sat, 7 May 2011 10:15:25 +0000 (+0200)
Subject: fopen: Move AC_LIBOBJ invocations to module description.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4aa7fe91e3fa0e763e05ca9038c28d970928e4f;p=pspp

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.
---

diff --git a/ChangeLog b/ChangeLog
index 16aed5e272..e59b0047af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
diff --git a/m4/fopen.m4 b/m4/fopen.m4
index 8407ed4862..4e19b291e3 100644
--- a/m4/fopen.m4
+++ b/m4/fopen.m4
@@ -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.
diff --git a/modules/fopen b/modules/fopen
index 2177a3bf95..13799e987e 100644
--- a/modules/fopen
+++ b/modules/fopen
@@ -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: