]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
install: support old ln versions without the -r option 154/head
authorCarlos Santos <unixmania@gmail.com>
Tue, 17 Sep 2019 01:22:37 +0000 (22:22 -0300)
committerCarlos Santos <unixmania@gmail.com>
Wed, 18 Sep 2019 11:53:01 +0000 (08:53 -0300)
commit1fa09312860cdee342a0afc9423c9d3c411bbbae
tree796a5938910ffde22fbca0afcdb02cf23c5b05ad
parent6f3e37dcc3b160a927664652e6f9dba89c61f0ee
install: support old ln versions without the -r option

Oldish enterprise-class Linux distributions have outdated versions of
coreutils whose ln command do not support the -r option. Also non-Linux
systems like FreeBSD don't support that option. Use a shell script that
mimics the missing functionality.

The script creates minimalist relative paths, like ln -r does, but in
order to simplify the logic, it requires that the arguments be absolute
paths and do not end with '/'. This is enough for our purposes.

Add configuration logic to detect if ln supports the -r option, based on
the logic used by Autoconf to check if ln supports the -s option.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Makefile.am
configure.ac
ln-srf [new file with mode: 0755]
m4/ac_ln_srf.m4 [new file with mode: 0644]