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

ChangeLog
m4/fpurge.m4
modules/fpurge

index 0815397403cbb21bfb863ab53fdd7917d71f763f..520b5733982fe030fa7dc517150747db1cf3b0ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
+       fpurge: Move AC_LIBOBJ invocations to module description.
+       * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
+       invocations from here...
+       * modules/fpurge (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
        fpending: Move AC_LIBOBJ invocations to module description.
index a62c2fef298eee0236b4f54906a4cf0ba608c217..234f563f864739338f8e66e95c93ae38c4919e5d 100644 (file)
@@ -1,4 +1,4 @@
-# fpurge.m4 serial 6
+# fpurge.m4 serial 7
 dnl Copyright (C) 2007, 2009-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,6 +11,7 @@ AC_DEFUN([gl_FUNC_FPURGE],
   AC_CHECK_FUNCS_ONCE([__fpurge])
   AC_CHECK_DECLS([fpurge], , , [[#include <stdio.h>]])
   if test "x$ac_cv_func_fpurge" = xyes; then
+    HAVE_FPURGE=1
     # Detect BSD bug.  Only cygwin 1.7 is known to be immune.
     AC_CACHE_CHECK([whether fpurge works], [gl_cv_func_fpurge_works],
       [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
@@ -34,10 +35,9 @@ AC_DEFUN([gl_FUNC_FPURGE],
       [gl_cv_func_fpurge_works='guessing no'])])
     if test "x$gl_cv_func_fpurge_works" != xyes; then
       REPLACE_FPURGE=1
-      AC_LIBOBJ([fpurge])
     fi
   else
-    AC_LIBOBJ([fpurge])
+    HAVE_FPURGE=0
   fi
   if test "x$ac_cv_have_decl_fpurge" = xno; then
     HAVE_DECL_FPURGE=0
index 6cebcff1c74862e4d02e2af267854a03bf37b3a8..241abeb2f6bfd5198f875b176fe931a56ca609df 100644 (file)
@@ -11,6 +11,9 @@ stdio
 
 configure.ac:
 gl_FUNC_FPURGE
+if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
+  AC_LIBOBJ([fpurge])
+fi
 gl_STDIO_MODULE_INDICATOR([fpurge])
 
 Makefile.am: