dnl --with-fish-functions-dir option used without path
CURL_CHECK_PKGCONFIG(fish)
if test "$PKGCONFIG" != "no" ; then
- FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
+ FISH_FUNCTIONS_DIR=`$PKGCONFIG --variable completionsdir fish`
else
FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
fi
dnl replace spaces with newlines
dnl sort the lines
dnl replace the newlines back to spaces
-SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
+if sort -f </dev/null >/dev/null 2>&1; then
+ SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort -f | tr '\012' ' '`
+else
+ SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
+fi
AC_SUBST(SUPPORT_FEATURES)
dnl For supported protocols in pkg-config file
CURL_GENERATE_CONFIGUREHELP_PM
+SUPPORT_PROTOCOLS_LOWER=`echo "$SUPPORT_PROTOCOLS" | tr A-Z a-z`
+
AC_MSG_NOTICE([Configured to build curl/libcurl:
Host setup: ${host}
HTTP3: ${curl_h3_msg}
ECH: ${curl_ech_msg}
WebSockets: ${curl_ws_msg}
- Protocols: ${SUPPORT_PROTOCOLS}
+ Protocols: ${SUPPORT_PROTOCOLS_LOWER}
Features: ${SUPPORT_FEATURES}
])
fi
AC_MSG_RESULT($r)
dnl lowercase and underscore instead of space
- tname=$(echo "ac_cv_sizeof_$1" | tr A-Z a-z | tr " " "_")
+ tname=`echo "ac_cv_sizeof_$1" | tr A-Z a-z | tr " " "_"`
eval "$tname=$r"
AC_DEFINE_UNQUOTED(TYPE, [$r], [Size of $1 in number of bytes])