From fb6cec99188f49c244f0ef8a49cff5a53363a3a5 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 19 May 2007 20:29:34 +0000
Subject: [PATCH] Fix syntax error in test.

---
 ChangeLog    | 5 +++++
 m4/frexp.m4  | 4 ++--
 m4/frexpl.m4 | 6 +++---
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 167b468126..00a6f6769f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+	* m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
+	* m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
+
 2007-05-19  Bruno Haible  <bruno@clisp.org>
 
 	* lib/float_.h: New file.
diff --git a/m4/frexp.m4 b/m4/frexp.m4
index d423f2c2c0..8e93322352 100644
--- a/m4/frexp.m4
+++ b/m4/frexp.m4
@@ -1,4 +1,4 @@
-# frexp.m4 serial 2
+# frexp.m4 serial 3
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -84,8 +84,8 @@ int main()
         return 1;
     }
   /* Test on infinite numbers.  */
+  x = 1.0 / 0.0;
   {
-    x = 1.0 / 0.0;
     int exp;
     double y = frexp (x, &exp);
     if (y != x)
diff --git a/m4/frexpl.m4 b/m4/frexpl.m4
index 883218123c..4db1c02898 100644
--- a/m4/frexpl.m4
+++ b/m4/frexpl.m4
@@ -1,4 +1,4 @@
-# frexpl.m4 serial 3
+# frexpl.m4 serial 4
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -108,16 +108,16 @@ int main()
 {
   volatile long double x;
   /* Test on finite numbers.  */
+  x = 16.0L;
   {
     int exp = -9999;
-    x = 16.0L;
     frexpl (x, &exp);
     if (exp != 5)
       return 1;
   }
   /* Test on infinite numbers.  */
+  x = 1.0L / 0.0L;
   {
-    x = 1.0L / 0.0L;
     int exp;
     long double y = frexpl (x, &exp);
     if (y != x)
-- 
2.39.5