autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix use of 'conftestval'


From: Tim Van Holder
Subject: Fix use of 'conftestval'
Date: Sat, 20 Jan 2001 11:54:39 +0100

'conftestval' resolves to 'conftest' on DOS; this can cause
problems with other tests (that might create or remove
'conftest'). So use conftest.val instead.

2001-01-20  Tim Van Holder  <address@hidden>

        * aclang.m4 (AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C)): Use
        conftest.val, not conftestval.
        * acgeneral.m4 (_AC_COMPUTE_INT_RUN, _AC_COMPUTE_INT):
        Likewise.

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.112
diff -u -r1.112 aclang.m4
--- aclang.m4   2001/01/19 14:03:14     1.112
+++ aclang.m4   2001/01/20 10:42:55
@@ -326,7 +326,7 @@
 # AC_LANG_INT_SAVE(PROLOGUE, EXPRESSION)
 # --------------------------------------
 # Produce a program that saves the runtime evaluation of the integer
-# EXPRESSION into `conftestval'.
+# EXPRESSION into `conftest.val'.
 AC_DEFUN([AC_LANG_INT_SAVE],
 [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
 
@@ -417,7 +417,7 @@
 # inclusion of `stdio.h'.
 m4_define([AC_LANG_INT_SAVE(C)],
 [AC_LANG_PROGRAM([m4_default([$1], address@hidden:@include <stdio.h>])],
-[FILE *f = fopen ("conftestval", "w");
+[FILE *f = fopen ("conftest.val", "w");
 if (!f)
   exit (1);
 fprintf (f, "%d", ($2));
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.667
diff -u -r1.667 acgeneral.m4
--- acgeneral.m4        2001/01/19 14:35:06     1.667
+++ acgeneral.m4        2001/01/20 10:42:58
@@ -3109,7 +3140,7 @@
 # Store the evaluation of the integer EXPRESSION in VARIABLE.
 m4_define([_AC_COMPUTE_INT_RUN],
 [AC_RUN_IFELSE([AC_LANG_INT_SAVE([$3], [$1])],
-               [$2=`cat conftestval`], [$4])])
+               [$2=`cat conftest.val`], [$4])])
 
 
 # _AC_COMPUTE_INT(EXPRESSION, VARIABLE, INCLUDES, IF-FAILS)
@@ -3120,7 +3151,7 @@
 else
   _AC_COMPUTE_INT_RUN([$1], [$2], [$3], [$4])
 fi
-rm -f conftestval[]dnl
+rm -f conftest.val[]dnl
 ])# _AC_COMPUTE_INT
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]