[m-dev.] diff: update configure.in to work with MSVC
Peter Ross
petdr at cs.mu.OZ.AU
Fri Jun 23 17:17:15 AEST 2000
On Fri, Jun 23, 2000 at 06:50:52AM +1000, Fergus Henderson wrote:
> On 22-Jun-2000, Peter Ross <petdr at cs.mu.OZ.AU> wrote:
> > configure.in:
> > When testing for a usable mercury compiler, strip any carriage
> > returns from the output string.
> > If compiling under Windows use hlc.gc for the default grade and
> > don't build the libraries in any other grades (as those grades aren't
> > supported yet).
>
> Is that parenthetical comment correct?
> Why aren't the none.* grades supported?
>
Note the work yet, I fully intend to get the none.* grades compiling,
but unfortunately they don't compile yet.
> > Index: configure.in
> > ===================================================================
> > RCS file: /home/mercury1/repository/mercury/configure.in,v
> > retrieving revision 1.209
> > diff -u -r1.209 configure.in
> > --- configure.in 2000/06/16 16:37:02 1.209
> > +++ configure.in 2000/06/22 13:24:04
> > @@ -104,7 +104,7 @@
> > echo $BOOTSTRAP_MC conftest >&AC_FD_CC 2>&1 &&
> > $BOOTSTRAP_MC --high-level-code conftest \
> > </dev/null >&AC_FD_CC 2>&1 &&
> > - test "`./conftest 2>&1`" = "Hello, world"
> > + test "`./conftest 2>&1 | tr -d '\015'`" = "Hello, world"
>
> I suggest using `\r' rather than `\015'.
>
> > @@ -1766,9 +1770,16 @@
> > # add `hlc' (--high-level-code, i.e. MLDS back-end) grade
> > LIBGRADES="$LIBGRADES hlc.gc"
> >
> > +# If we are using the MS compiler currently the only interesting grade
> > +# is hlc.gc, which is what we install by default.
> > +if test $ac_microsoft = yes; then
> > + LIBGRADES=
> > +fi
>
> That comment is wrong. The grades `none.gc.tr.debug',
> `none.gc.prof', etc. are interesting, because they let
> the user do debugging, profiling (for test coverage analysis),
> trailing, etc.
>
> For that reason, it would make sense to install those grades
> in addition to hlc.gc.
>
I will, as soon as I can get them compiling.
Pete
--------------------------------------------------------------------------
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