aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Williams <taaparthur@disroot.org>2024-04-25 23:31:50 -0700
committerJens Axboe <axboe@kernel.dk>2024-04-26 08:29:15 -0600
commit380d12d0f5d68be09ccc6151ccca3e15857b16fa (patch)
tree6bd0ea5339998d4da7a967fad02160b335707d29
parente11e6175ca0f0c0a2d579534136710ad2ddc4577 (diff)
downloadliburing-380d12d0f5d68be09ccc6151ccca3e15857b16fa.tar.gz
Fix portability issues in configure script
The configure script failed on my setup because of the invalid printf directive "%" and for use of the unportable "echo -e". These have been replaced with more portable options. Signed-off-by: Arthur Williams <taaparthur@disroot.org> Link: https://lore.kernel.org/r/20240426063150.27949-1-taaparthur@disroot.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 052920df..f6b590b8 100755
--- a/configure
+++ b/configure
@@ -519,9 +519,9 @@ print_config "CXX" "$cxx"
# generate io_uring_version.h
# Reset MAKEFLAGS
MAKEFLAGS=
-MAKE_PRINT_VARS="include Makefile.common\nprint-%: ; @echo \$(\$*)\n"
-VERSION_MAJOR=$(env echo -e "$MAKE_PRINT_VARS" | make -s --no-print-directory -f - print-VERSION_MAJOR)
-VERSION_MINOR=$(env echo -e "$MAKE_PRINT_VARS" | make -s --no-print-directory -f - print-VERSION_MINOR)
+MAKE_PRINT_VARS="include Makefile.common\nprint-%%: ; @echo \$(\$*)\n"
+VERSION_MAJOR=$(printf "$MAKE_PRINT_VARS" | make -s --no-print-directory -f - print-VERSION_MAJOR)
+VERSION_MINOR=$(printf "$MAKE_PRINT_VARS" | make -s --no-print-directory -f - print-VERSION_MINOR)
io_uring_version_h="src/include/liburing/io_uring_version.h"
cat > $io_uring_version_h << EOF
/* SPDX-License-Identifier: MIT */