TEST_NT hack and OpenBSD
Bruno Haible <[email protected]>
| Newsgroups | gmane.lisp.clisp.devel |
|---|---|
| Message-ID | <1534747.7MnligARkz@omega> |
Hi Sam,
On OpenBSD 7 the usual /usr/bin/make gives a syntax error with
clisp's generated Makefile, on this line:
.SHELL: name=sh path=$(SHELL)
(Syntax error at 'name=sh'.)
This comes from makemake.in:
# netbsd make ignores the SHELL macro, so we need to use a special
# target to tell it to respect our shell setting
# this is important because if configure uses bash and detects TEST_NT=yes,
# but make uses sh that does not support "test -nt", modules will not build
case "$host_os" in
*bsd*) echol '.SHELL: name=sh path=$(SHELL)' ;;
esac
The comments indicate that this is to make TEST_NT work across different shells.
But
1) 'test file1 -nt -file2' is not standardized by POSIX [1], therefore better
not rely on it.
2) I don't see anything that uses it.
So I propose to remove this SHELL hack, remove the TEST_NT invocation, and
remove the test.m4 file.
Or, if I overlooked something and it is still needed, limit it to
*freebsd* and *netbsd*.
Bruno
[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel