configure: sort feature list, lowercase protocols, use backticks
- sort features case-insensitively to match `curl -V` and cmake. `sort -f` is POSIX, but check if it's available anyway. - make protocols lowercase to match `curl -V` and cmake. - replace two outlier `$()` with backticks. Closes #14117
This commit is contained in:
parent
4ff7f5163f
commit
59bc9a1d44
12
configure.ac
12
configure.ac
@ -3544,7 +3544,7 @@ case "$OPT_FISH_FPATH" in
|
|||||||
dnl --with-fish-functions-dir option used without path
|
dnl --with-fish-functions-dir option used without path
|
||||||
CURL_CHECK_PKGCONFIG(fish)
|
CURL_CHECK_PKGCONFIG(fish)
|
||||||
if test "$PKGCONFIG" != "no" ; then
|
if test "$PKGCONFIG" != "no" ; then
|
||||||
FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
|
FISH_FUNCTIONS_DIR=`$PKGCONFIG --variable completionsdir fish`
|
||||||
else
|
else
|
||||||
FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
|
FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
|
||||||
fi
|
fi
|
||||||
@ -4858,7 +4858,11 @@ fi
|
|||||||
dnl replace spaces with newlines
|
dnl replace spaces with newlines
|
||||||
dnl sort the lines
|
dnl sort the lines
|
||||||
dnl replace the newlines back to spaces
|
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)
|
AC_SUBST(SUPPORT_FEATURES)
|
||||||
|
|
||||||
dnl For supported protocols in pkg-config file
|
dnl For supported protocols in pkg-config file
|
||||||
@ -5011,6 +5015,8 @@ AC_OUTPUT
|
|||||||
|
|
||||||
CURL_GENERATE_CONFIGUREHELP_PM
|
CURL_GENERATE_CONFIGUREHELP_PM
|
||||||
|
|
||||||
|
SUPPORT_PROTOCOLS_LOWER=`echo "$SUPPORT_PROTOCOLS" | tr A-Z a-z`
|
||||||
|
|
||||||
AC_MSG_NOTICE([Configured to build curl/libcurl:
|
AC_MSG_NOTICE([Configured to build curl/libcurl:
|
||||||
|
|
||||||
Host setup: ${host}
|
Host setup: ${host}
|
||||||
@ -5057,7 +5063,7 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
|
|||||||
HTTP3: ${curl_h3_msg}
|
HTTP3: ${curl_h3_msg}
|
||||||
ECH: ${curl_ech_msg}
|
ECH: ${curl_ech_msg}
|
||||||
WebSockets: ${curl_ws_msg}
|
WebSockets: ${curl_ws_msg}
|
||||||
Protocols: ${SUPPORT_PROTOCOLS}
|
Protocols: ${SUPPORT_PROTOCOLS_LOWER}
|
||||||
Features: ${SUPPORT_FEATURES}
|
Features: ${SUPPORT_FEATURES}
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
@ -5004,7 +5004,7 @@ $2
|
|||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($r)
|
AC_MSG_RESULT($r)
|
||||||
dnl lowercase and underscore instead of space
|
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"
|
eval "$tname=$r"
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(TYPE, [$r], [Size of $1 in number of bytes])
|
AC_DEFINE_UNQUOTED(TYPE, [$r], [Size of $1 in number of bytes])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user