summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-05-07 12:48:09 +0200
committerBruno Haible <bruno@clisp.org>2011-06-16 00:06:00 +0200
commite0def6d9787459937cfb07d5e5ed9b0703a55b23 (patch)
treedc6f598c6114a460f639a47a5b77b2b06821d127
parentee6855ea0843b56e6d9c3d6abde368ab22e5befe (diff)
downloadgnulib-e0def6d9787459937cfb07d5e5ed9b0703a55b23.tar.gz
freopen: Move AC_LIBOBJ invocations to module description.
* m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN invocations from here... * modules/freopen (configure.ac): ... to here.
-rw-r--r--ChangeLog7
-rw-r--r--m4/freopen.m44
-rw-r--r--modules/freopen4
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 30a32c8cce..137725760f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-05-07 Bruno Haible <bruno@clisp.org>
+ freopen: Move AC_LIBOBJ invocations to module description.
+ * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
+ invocations from here...
+ * modules/freopen (configure.ac): ... to here.
+
+2011-05-07 Bruno Haible <bruno@clisp.org>
+
free: Move AC_LIBOBJ invocations to module description.
* m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
invocations from here...
diff --git a/m4/freopen.m4 b/m4/freopen.m4
index 37476e0097..c981a11fb4 100644
--- a/m4/freopen.m4
+++ b/m4/freopen.m4
@@ -1,4 +1,4 @@
-# freopen.m4 serial 2
+# freopen.m4 serial 3
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,
@@ -11,8 +11,6 @@ AC_DEFUN([gl_FUNC_FREOPEN],
case "$host_os" in
mingw* | pw*)
REPLACE_FREOPEN=1
- AC_LIBOBJ([freopen])
- gl_PREREQ_FREOPEN
;;
esac
])
diff --git a/modules/freopen b/modules/freopen
index 5c556e4e05..8704c04f4c 100644
--- a/modules/freopen
+++ b/modules/freopen
@@ -10,6 +10,10 @@ stdio
configure.ac:
gl_FUNC_FREOPEN
+if test $REPLACE_FREOPEN = 1; then
+ AC_LIBOBJ([freopen])
+ gl_PREREQ_FREOPEN
+fi
gl_STDIO_MODULE_INDICATOR([freopen])
Makefile.am: