diff: bugfix for configure.in

Tyson Richard DOWD trd at cs.mu.oz.au
Wed Jul 16 17:02:55 AEST 1997


Estimated hours taken: 0.2

Fix a bug in the configure script.

configure.in:
	If `mmc' doesn't make sure the cached value for `mmc' isn't used 
	when looking for `mc'.

Index: configure.in
===================================================================
RCS file: /home/staff/zs/imp/mercury/configure.in,v
retrieving revision 1.96
diff -u -r1.96 configure.in
--- configure.in	1997/07/15 08:04:10	1.96
+++ configure.in	1997/07/16 06:55:59
@@ -98,9 +98,9 @@
 # XXX This is only temporary.
 if test "$BOOTSTRAP_MC" = ""; then
 MERCURY_MSG("still looking for an already installed Mercury compiler to bootstrap with...")
-AC_PATH_PROG(BOOTSTRAP_MC,mc)
-if test "$BOOTSTRAP_MC" != ""; then
-	AC_MSG_CHECKING(whether $BOOTSTRAP_MC works and is sufficiently recent)
+AC_PATH_PROG(BOOTSTRAP_MC_2,mc)
+if test "$BOOTSTRAP_MC_2" != ""; then
+	AC_MSG_CHECKING(whether $BOOTSTRAP_MC_2 works and is sufficiently recent)
 	cat > conftest.m << EOF
 		% this module contains features which didn't work in
 		% previous versions of the Mercury compiler
@@ -115,17 +115,18 @@
 		main --> io__write_string("Hello, world\n").
 EOF
 	if
-		 echo $BOOTSTRAP_MC conftest >&AC_FD_CC 2>&1 &&
-		 $BOOTSTRAP_MC conftest </dev/null >&AC_FD_CC 2>&1 &&
+		 echo $BOOTSTRAP_MC_2 conftest >&AC_FD_CC 2>&1 &&
+		 $BOOTSTRAP_MC_2 conftest </dev/null >&AC_FD_CC 2>&1 &&
 		 test "`./conftest 2>&1`" = "Hello, world"
 	then
 		AC_MSG_RESULT(yes)
 	else
-		BOOTSTRAP_MC=
+		BOOTSTRAP_MC_2=
 		AC_MSG_RESULT(no)
 	fi
 	rm -f conftest*
 fi
+BOOTSTRAP_MC=$BOOTSTRAP_MC_2
 fi
 #-----------------------------------------------------------------------------#
 MERCURY_MSG("looking for GNU Make...")

-- 
       Tyson Dowd           # 4.4: People keep saying the behavior is undefined,
                            # but I just tried it on an ANSI-conforming compiler
     trd at cs.mu.oz.au        # and got the results I expected.
http://www.cs.mu.oz.au/~trd # A: They were wrong. Flame them mercilessly. C-IAQ



More information about the developers mailing list