mirror of https://github.com/wolfSSL/wolfssl.git
fix detection of cut tool in configure.ac
parent
9a4237ee88
commit
41d248461b
|
@ -8723,10 +8723,11 @@ echo "extern \"C\" {" >> $OPTION_FILE
|
||||||
echo "#endif" >> $OPTION_FILE
|
echo "#endif" >> $OPTION_FILE
|
||||||
echo "" >> $OPTION_FILE
|
echo "" >> $OPTION_FILE
|
||||||
|
|
||||||
# check for supported command to trim option with
|
# Check for supported command to trim option with.
|
||||||
|
# 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 >/dev/null 2>&1 </dev/null; then
|
elif cut --version >/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])
|
||||||
|
|
Loading…
Reference in New Issue