Denys,
After some digging with the help of our admin, we observed that all
versions of
test that I might have been using know about the lt operator. So, we
payed more
attention to the configure file.
We observed that the problem came from the fact that the dash in the
front of th
e lt operator disapeard when test was evaluated. So we wrapped it into
quotes (i
.e., '-lt'). We did the same for the gt operator.
After getting rid of this problem we observed another one. That is, the
variable
EMULATE_CXXFLAGS was not well defined.
Instead of writing:
EMULATE_CXXFLAGS=
write:
EMULATE_CXXFLAGS=""
export EMULATE_CXXFLAGS
I can tell you that after these changes I could build mozart (1.2.5).
The conclusion: this may be a problem (or feature of test) on solaris.
However,
the syntax might have not been respected, since I had no problems
compiling moza
rt (1.2.4) which employed test with arithmetic operators.
Valentin
Denys Duchier wrote:
>
> valentin@info.ucl.ac.be (Valentin Mesaros) writes:
>
> > I saw that you force the shell to sh.
>
> actually, we don't do that. it is done by autoconf. but indeed, if
> your /bin/sh is a broken shell then there is a problem. I can't think
> off hand of a work around. maybe something will occur to me later.
>
> could you try to invoke /bin/sh interactively and see what kind of
> test you get with it.
>
> > How can I check that I have the right path except by running 'which
> > test' in the corresponding shell?
>
> yes, which test will work unless test is built into the shell in which
> case the shell might not tell you that. you should run a few trials by
> hand to see how your test behaves in /bin/sh.
>
> if absolutely nothing else works. Here is a one-liner that edits all
> configure files and replaces /bin/sh by /usr/local/bin/bash (use
> whatever is needed for you).
>
> perl -n -i -e 'if (m|^#! /bin/sh|) { print "#! /usr/local/bin/bash\n"; } else { print; }' -- `find . -name configure -print`
>
> Cheers,
>
> --
> Dr. Denys Duchier
> Iquipe Calligramme
> LORIA, Nancy, FRANCE
> -
> Please send submissions to hackers@mozart-oz.org
> and administriva mail to hackers-request@mozart-oz.org.
> The Mozart Oz web site is at http://www.mozart-oz.org/.
-
Please send submissions to hackers@mozart-oz.org
and administriva mail to hackers-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.