mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
configure.ac: Check that patch supports --no-backup-if-mismatch
BSD patch does not support --no-backup-if-mismatch. When we detect patch check that it supports the option we use. Fixes: #1577 Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
parent
584e57e888
commit
ade8c04d14
@ -169,6 +169,12 @@ CTNG_CPU_COUNT
|
||||
|
||||
CTNG_PATH_TOOL_REQ([PATCH], [gpatch patch], [patch])
|
||||
|
||||
# Ensure the detected patch supports --no-backup-if-mismatch (BSD patch does not)
|
||||
AC_MSG_CHECKING([whether patch supports --no-backup-if-mismatch])
|
||||
AS_IF([$PATCH --no-backup-if-mismatch </dev/null >/dev/null 2>&1],
|
||||
AC_MSG_RESULT([yes]),
|
||||
AC_MSG_ERROR([$PATCH does not support --no-backup-if-mismatch]))
|
||||
|
||||
# We need a bash that is >= 3.1
|
||||
CTNG_PROG_VERSION_REQ_STRICT([BASH_SHELL],
|
||||
[GNU bash >= 3.1],
|
||||
|
Loading…
x
Reference in New Issue
Block a user