0d0c8b54236ee1d0e2a5dc92032c337043036230
[openwrt/staging/nbd.git] / package / libs / wolfssl / patches / 001-fix-detection-of-cut-tool-in-configure.ac.patch
1 From 41d248461bd9ad44193a4806ecb5361513e8944e Mon Sep 17 00:00:00 2001
2 From: jordan <jordan@wolfssl.com>
3 Date: Tue, 27 Jun 2023 13:18:25 -0500
4 Subject: [PATCH] fix detection of cut tool in configure.ac
5
6 ---
7 configure.ac | 5 +++--
8 1 file changed, 3 insertions(+), 2 deletions(-)
9
10 --- a/configure.ac
11 +++ b/configure.ac
12 @@ -8723,10 +8723,11 @@ echo "extern \"C\" {" >> $OPTION_FILE
13 echo "#endif" >> $OPTION_FILE
14 echo "" >> $OPTION_FILE
15
16 -# check for supported command to trim option with
17 +# Check for supported command to trim option with.
18 +# note: cut requires an argument to exit with success.
19 if colrm >/dev/null 2>&1 </dev/null; then
20 TRIM="colrm 3"
21 -elif cut >/dev/null 2>&1 </dev/null; then
22 +elif cut --version >/dev/null 2>&1 </dev/null; then
23 TRIM="cut -c1-2"
24 else
25 AC_MSG_ERROR([Could not find colrm or cut to make options file])