forked from wolfSSL/wolfssl
Merge pull request #7603 from lealem47/detect_cut
Fix cut detection in configure.ac
This commit is contained in:
@ -9633,7 +9633,7 @@ echo "" >> $OPTION_FILE
|
|||||||
# note: cut requires an argument to exit with success.
|
# note: cut requires an argument to exit with success.
|
||||||
if colrm >/dev/null 2>&1 </dev/null; then
|
if colrm >/dev/null 2>&1 </dev/null; then
|
||||||
TRIM="colrm 3"
|
TRIM="colrm 3"
|
||||||
elif cut --version >/dev/null 2>&1 </dev/null; then
|
elif echo "" | cut -c1 >/dev/null 2>&1 </dev/null; then
|
||||||
TRIM="cut -c1-2"
|
TRIM="cut -c1-2"
|
||||||
else
|
else
|
||||||
AC_MSG_ERROR([Could not find colrm or cut to make options file])
|
AC_MSG_ERROR([Could not find colrm or cut to make options file])
|
||||||
|
Reference in New Issue
Block a user