[m-rev.] diff: conf_h_copy

Zoltan Somogyi zs at csse.unimelb.edu.au
Wed Sep 21 14:58:10 AEST 2011


configure.in:
	Don't leave temp files used during configuration lying around.

Zoltan.

Index: configure.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/configure.in,v
retrieving revision 1.591
diff -u -b -r1.591 configure.in
--- configure.in	15 Sep 2011 16:14:33 -0000	1.591
+++ configure.in	21 Sep 2011 04:56:48 -0000
@@ -5295,11 +5295,8 @@
 AC_SUBST(TESTS_MDB_INIT_DIR)
 AC_SUBST(TESTS_MDB_DOC)
 
-# The references to $conf_h_copy and $had_old_conf_h below are in code that
-# autoconf puts into a subshell, so we must export them.
 conf_h_copy=/tmp/mercury_conf.h.$$
-# trap "rm -f $conf_h_copy" 0 1 2 3 13 15
-export conf_h_copy
+trap "rm -f $conf_h_copy" 0 1 2 3 13 15
 if test -f runtime/mercury_conf.h
 then
     /bin/rm -f $conf_h_copy
@@ -5308,6 +5305,9 @@
 else
     had_old_conf_h=false
 fi
+# The references to $conf_h_copy and $had_old_conf_h below are in code that
+# autoconf puts into a subshell, so we must export them.
+export conf_h_copy
 export had_old_conf_h
 
 executable_output_files='
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list