From: Bruno H. <br...@cl...> - 2017-03-11 01:45:04
|
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 |