autoconf-patches
[Top][All Lists]
Advanced

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

Cleanup on AC_MSG_ERROR


From: Pavel Roskin
Subject: Cleanup on AC_MSG_ERROR
Date: Mon, 23 Oct 2000 15:07:22 -0700 (PDT)

Hello!

AC_MSG_ERROR is almost always called "unexpectedly", i.e. inside tests, so it's
a good idea to clean temporary files before exiting.

This patch is needed to make my next patch to the testsuite work on systems e.g.
without Fortran 77 compiler.

Temporary files shouldn't be used for debugging. Either config.log should be
used, or (in very hard cases) configure should be edited to copy temporary files
at a known point. So please don't worry about too many rm's - they will never
have to be conditional.

Regards,
Pavel Roskin

____________________
Index: ChangeLog
--- ChangeLog   Mon Oct 23 15:31:14 2000
+++ ChangeLog   Mon Oct 23 18:06:43 2000
@@ -1 +1,6 @@
+2000-10-23  Pavel Roskin  <address@hidden>
+
+       * acgeneral.m4 (AC_MSG_ERROR): Clean up temporary files before
+       exit.
+
 2000-10-23  Akim Demaille  <address@hidden>
Index: acgeneral.m4
--- acgeneral.m4        Mon Oct 23 15:31:14 2000
+++ acgeneral.m4        Mon Oct 23 17:16:59 2000
@@ -2869,7 +2869,9 @@
 # AC_MSG_ERROR(ERROR, [EXIT-STATUS = 1])
 # --------------------------------------
 define([AC_MSG_ERROR],
-[{ _AC_ECHO([configure: error: $1], 2); exit m4_default([$2], 1); }])
+[{ _AC_ECHO([configure: error: $1], 2)
+rm -f conftest* confdefs.h
+exit m4_default([$2], 1); }])
 
 
 # AU::AC_CHECKING(FEATURE)
____________________





reply via email to

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