From c27a2db54f2e73ad6ffa24ffe0d897d527922dd9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Aug 2025 09:04:23 +0200 Subject: [PATCH] curl-config: remove X prefix use That shellcheck now annoyingly and uselessly complains about. Closes #18158 --- curl-config.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curl-config.in b/curl-config.in index 31ea30b24a..ce23519c33 100644 --- a/curl-config.in +++ b/curl-config.in @@ -141,7 +141,7 @@ while test "$#" -gt 0; do ;; --cflags) - if test "X@includedir@" = 'X/usr/include'; then + if test "@includedir@" = '/usr/include'; then echo '@LIBCURL_PC_CFLAGS@' else echo "@LIBCURL_PC_CFLAGS@ -I@includedir@" @@ -149,12 +149,12 @@ while test "$#" -gt 0; do ;; --libs) - if test "X@libdir@" != 'X/usr/lib' -a "X@libdir@" != 'X/usr/lib64'; then + if test "@libdir@" != '/usr/lib' -a "@libdir@" != '/usr/lib64'; then curllibdir="-L@libdir@ " else curllibdir='' fi - if test 'X@ENABLE_SHARED@' = 'Xno'; then + if test '@ENABLE_SHARED@' = 'no'; then echo "${curllibdir}-lcurl @LIBCURL_PC_LIBS_PRIVATE@" else echo "${curllibdir}-lcurl" @@ -166,7 +166,7 @@ while test "$#" -gt 0; do ;; --static-libs) - if test 'X@ENABLE_STATIC@' != 'Xno'; then + if test '@ENABLE_STATIC@' != 'no'; then echo "@libdir@/libcurl.@libext@ @LIBCURL_PC_LDFLAGS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@" else echo 'curl was built with static libraries disabled' >&2 -- 2.47.3