]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
install: fix reinstallation of driverless and foomatic-rip 157/head
authorCarlos Santos <unixmania@gmail.com>
Wed, 18 Sep 2019 23:50:44 +0000 (20:50 -0300)
committerCarlos Santos <unixmania@gmail.com>
Wed, 18 Sep 2019 23:58:49 +0000 (20:58 -0300)
Use "ln -s -r -f" to ensure that existing symlinks are overritten.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
m4/ac_ln_srf.m4

index 03191400e5b7170ef51a9ada75cb8fe262e9e914..204b343971de91519cf0ade5ae5566adbdcb3113 100644 (file)
@@ -57,7 +57,7 @@ else
 fi
 if (echo >conf$$.file) 2>/dev/null; then
   if ln -s -r conf$$.file conf$$ 2>/dev/null; then
-    as_ln_srf='ln -s -r'
+    as_ln_srf='ln -s -r -f'
   elif ln -s conf$$.file conf$$ 2>/dev/null; then
     as_ln_srf='./ln-srf'
     # ... but there are two gotchas:
@@ -81,9 +81,9 @@ rmdir conf$$.dir 2>/dev/null
 # AC_PROG_LN_SRF
 # --------------------------------
 AC_DEFUN([AC_PROG_LN_SRF],
-[AC_MSG_CHECKING([whether ln -s -r works])
+[AC_MSG_CHECKING([whether ln -s -r -f works])
 AC_SUBST([LN_SRF], [$as_ln_srf])dnl
-if test "$LN_SRF" = "ln -s -r"; then
+if test "$LN_SRF" = "ln -s -r -f"; then
   AC_MSG_RESULT([yes])
 else
   AC_MSG_RESULT([no, using $LN_SRF])