<div dir="ltr"><div>Fix configure's .NET library version test.</div><div><br></div><div>m4/mercury.m4:</div><div><span class="" style="white-space:pre">  </span>Check for a CLI interpreter *before* working out what</div>
<div><span class="" style="white-space:pre">    </span>C# compiler to use.</div><div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">   </span>If we have a CLI interpreter, then use that to run the</div>
<div><span class="" style="white-space:pre">    </span>test program we build for determining the .NET library version.</div><div><span class="" style="white-space:pre">    </span>(Previously, we just tried to execute the .exe directly and this</div>
<div><span class="" style="white-space:pre">    </span>didn't work on non-Windows systems.)</div><div><br></div><div><span class="" style="white-space:pre">  </span>Delete an unused variable.</div><div><br></div><div>Julien.</div>
<div><br></div><div>diff --git a/m4/mercury.m4 b/m4/mercury.m4</div><div>index 2435bc1..19cb0af 100644</div><div>--- a/m4/mercury.m4</div><div>+++ b/m4/mercury.m4</div><div>@@ -247,6 +247,14 @@ AC_MSG_RESULT([$mercury_cv_microsoft_dotnet])</div>
<div> ILASM=`basename "$ILASM"`</div><div> GACUTIL=`basename "$GACUTIL"`</div><div> </div><div>+# Check for the assembly linker.</div><div>+# ilalink is the DotGNU assembly linker.</div><div>+AC_PATH_PROGS([MS_AL], [al ilalink])</div>
<div>+MS_AL=`basename "$MS_AL"`</div><div>+</div><div>+# Check for an implementation of the Common Language Infrastructure.</div><div>+AC_PATH_PROGS([CLI_INTERPRETER], [mono])</div><div>+</div><div> # Check for the C# (C sharp) compiler.</div>
<div> # mcs is the Mono C# compiler targetting all runtimes</div><div> # dmcs is the Mono C# compiler targeting the 4.0 runtime</div><div>@@ -324,7 +332,7 @@ EOF</div><div> <span class="" style="white-space:pre">        </span>if</div>
<div> <span class="" style="white-space:pre">           </span>echo $CSC conftest.cs >&AC_FD_CC 2>&1 && \</div><div> <span class="" style="white-space:pre">                  </span>$CSC conftest.cs  >&AC_FD_CC 2>&1 && \</div>
<div>-<span class="" style="white-space:pre">                   </span>./conftest > conftest.out 2>&1</div><div>+<span class="" style="white-space:pre">                  </span>$CLI_INTERPRETER ./conftest.exe > conftest.out 2>&1</div>
<div> <span class="" style="white-space:pre">   </span>then</div><div> <span class="" style="white-space:pre">              </span>mercury_cv_microsoft_dotnet_library_version=`cat conftest.out`</div><div> <span class="" style="white-space:pre">            </span>AC_MSG_RESULT([$mercury_cv_microsoft_dotnet_library_version])</div>
<div>@@ -341,15 +349,6 @@ EOF</div><div> fi</div><div> MS_DOTNET_LIBRARY_VERSION=$mercury_cv_microsoft_dotnet_library_version</div><div> </div><div>-# Check for the assembly linker.</div><div>-# ilalink is the DotGNU assembly linker.</div>
<div>-AC_PATH_PROGS([MS_AL], [al ilalink])</div><div>-MS_AL=`basename "$MS_AL"`</div><div>-</div><div>-# Check for an implementation of the Common Language Infrastructure.</div><div>-AC_PATH_PROGS([CLI_INTERPRETER], [mono])</div>
<div>-MONO=`basename "$CLI_INTERPRETER"`</div><div>-</div><div> AC_SUBST([ILASM])</div><div> AC_SUBST([GACUTIL])</div><div> AC_SUBST([CSC])</div><div><br></div></div>