[m-dev.] diff: AS configure bug in 0.9

Tyson Dowd trd at cs.mu.OZ.AU
Wed Dec 22 19:30:08 AEDT 1999


Hi,

Here's a fix for that configure bug in 0.9.  I'll commit it right now
on the version-0_9_x branch and the main development line.

===================================================================


Estimated hours taken: 0.75

Fix a bug that was causing configure to substitute the wrong value for
AS if it was run a second time.

configure.in:
	Move setting AS to after the test.  If we set it during the test
	we won't set AS if we don't perform the test (for example, if we
	get the value of the test from config.cache).


Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.197
diff -u -r1.197 configure.in
--- configure.in	1999/11/30 02:18:33	1.197
+++ configure.in	1999/12/22 08:13:08
@@ -1798,10 +1798,14 @@
 	fi
 	rm -f conftest*
 else
-	AS="gcc -c -x assembler-with-cpp"
+	mercury_cv_asm_does_full_preprocessing="no"
+	AC_MSG_RESULT(no)	
 fi
 ])
 AC_MSG_RESULT($mercury_cv_asm_does_full_preprocessing)	
+if test $mercury_cv_asm_does_full_preprocessing = "no"; then
+	AS="gcc -c -x assembler-with-cpp"
+fi
 AC_SUBST(AS)
 #-----------------------------------------------------------------------------#
 AC_MSG_CHECKING(whether structure assignment conflicts with global registers)


-- 
The quantum sort: 
	while (!sorted) { do_nothing(); }
Tyson Dowd   <tyson at tyse.net>   http://tyse.net/
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list