Imported Upstream version 1.4
[debian/gzip] / m4 / fpurge.m4
index 4dba2ec0bef34a7c04af9be0b6fb01aab8310a42..d97e89762e6375c02d9d9793f80dc3208570d16d 100644 (file)
@@ -1,5 +1,5 @@
 # fpurge.m4 serial 6
-dnl Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -15,21 +15,21 @@ AC_DEFUN([gl_FUNC_FPURGE],
     AC_CACHE_CHECK([whether fpurge works], [gl_cv_func_fpurge_works],
       [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
 ]], [FILE *f = fopen ("conftest.txt", "w+");
-       if (!f) return 1;
-       if (fputc ('a', f) != 'a') return 2;
-       rewind (f);
-       if (fgetc (f) != 'a') return 3;
-       if (fgetc (f) != EOF) return 4;
-       if (fpurge (f) != 0) return 5;
-       if (putc ('b', f) != 'b') return 6;
-       if (fclose (f) != 0) return 7;
-       if ((f = fopen ("conftest.txt", "r")) == NULL) return 8;
-       if (fgetc (f) != 'a') return 9;
-       if (fgetc (f) != 'b') return 10;
-       if (fgetc (f) != EOF) return 11;
-       if (fclose (f) != 0) return 12;
-       if (remove ("conftest.txt") != 0) return 13;
-       return 0;])],
+        if (!f) return 1;
+        if (fputc ('a', f) != 'a') return 2;
+        rewind (f);
+        if (fgetc (f) != 'a') return 3;
+        if (fgetc (f) != EOF) return 4;
+        if (fpurge (f) != 0) return 5;
+        if (putc ('b', f) != 'b') return 6;
+        if (fclose (f) != 0) return 7;
+        if ((f = fopen ("conftest.txt", "r")) == NULL) return 8;
+        if (fgetc (f) != 'a') return 9;
+        if (fgetc (f) != 'b') return 10;
+        if (fgetc (f) != EOF) return 11;
+        if (fclose (f) != 0) return 12;
+        if (remove ("conftest.txt") != 0) return 13;
+        return 0;])],
       [gl_cv_func_fpurge_works=yes], [gl_cv_func_fpurge_works=no],
       [gl_cv_func_fpurge_works='guessing no'])])
     if test "x$gl_cv_func_fpurge_works" != xyes; then