I've messed this up. I *do* get the test statement to fail, but
it carries on anyway, because of the leading - sign. I've done this:
brains hgs 29 %> rcsdiff -u !$
rcsdiff -u Makefile
===================================================================
RCS file: Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- /tmp/T083aiz6 Wed Jun 25 12:19:34 2008
+++ Makefile Wed Jun 25 12:19:29 2008
@@ -1742,6 +1742,7 @@
-if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
fi
+ -echo "YIKES: NON-SOLARIS TEST NEXT"
-if test $(VIMTARGET) != vim -a ! -e vim; then \
ln -s $(VIMTARGET) vim; \
fi
brains hgs 30 %> cd ..
brains hgs 31 %> gmake check
which helped me find:
link.sh: Linked fine with a few libraries removed
gmake[2]: Leaving directory `/export/home/Scratch/hgs/vim72a/src'
if test -n "" -a -f po/Makefile; then \
cd po; gmake -f Makefile check VIM=../vim; \
fi
echo "YIKES: NON-SOLARIS TEST NEXT"
YIKES: NON-SOLARIS TEST NEXT
if test vim != vim -a ! -e vim; then \
ln -s vim vim; \
fi
/bin/sh: test: argument expected
gmake[1]: [test] Error 1 (ignored)
cd testdir; gmake -f Makefile gui VIMPROG=../vim
so I've reproduced this.
I can't find a GNU autoconf macro to test for test, preferring a GNU
version. That would usually work. I found this:
http://www.koders.com/noncode/fid1C9AA0D12BF4232D7ED2DE50745B7AB78FC8F839.aspx
but AC_PROG_TEST depends on AC_PATH_PROG_VERIFY, which depends on
the existence of a working test.
I'm at the limits of how I can help now.
Furthermore, I've confirmed your other results below.:
On Wed, 25 Jun 2008, Vladimir Marek wrote:
> > > ================================== make test
> > > ===================================
[...]
> > > if test vim != vim -a ! -e vim; then \
> > > ln -s vim vim; \
> > > fi
> > > /bin/sh: test: argument expected
> > > make[1]: [test] Error 1 (ignored)
> > > ================================================================================
>
>
> > I don't get that on Solaris 9 sparc.
> > I'm using GNU make, don't know if that makes a difference to you.
>
> The make itself won't be difference, the shell used by the make program
> is.
Yes, I thought it would pick bash, but it seems not.
>
> $ /bin/sh -c '[ -e /bin/ls ] && echo exists'
> /bin/sh: test: argument expected
/bin/sh: test: argument expected
> $ /bin/bash -c '[ -e /bin/ls ] && echo exists'
> exists
exists
> $ /bin/ksh -c '[ -e /bin/ls ] && echo exists'
> exists
exists
OK, all the same as yours. What's happening here?
>
> mine src/Makefile contains
>
> SHELL = /bin/sh
Same as yours. I definitely don't see the message you got. I could
post you a Typescript file, but it's big, and not very entertaining.
I get ALL TESTS DONE, with no complaints about errors.
>
> What does yours ?
>
> --
> Vlad
>
Hugh
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---