Genivia / ugrep

NEW ugrep 6.5: a more powerful, ultra fast, user-friendly, compatible grep. Includes a TUI, Google-like Boolean search with AND/OR/NOT, fuzzy search, hexdumps, searches (nested) archives (zip, 7z, tar, pax, cpio), compressed files (gz, Z, bz2, lzma, xz, lz4, zstd, brotli), pdfs, docs, and more
https://ugrep.com
BSD 3-Clause "New" or "Revised" License
2.57k stars 109 forks source link

Portability fix for configure.ac #323

Closed moubctez closed 9 months ago

moubctez commented 9 months ago

Not all shells support == comparison. Here's the fix:

--- configure.ac.orig   2023-11-26 08:00:21.469877676 +0000
+++ configure.ac
@@ -83,7 +83,7 @@ AC_ARG_WITH(bzip3,
   [with_bzip3_library="$withval"],
   [with_bzip3_library=""])
 if test "x$with_bzip3_library" != "x"; then
-  if test "x$with_bzip3" == "xyes"; then
+  if test "x$with_bzip3" = "xyes"; then
     unset with_bzip3
   fi
   AX_CHECK_BZIP3LIB([], [echo "optional libbzip3 not found: install if you want ugrep -z to decompress .bz3 files"])
genivia-inc commented 9 months ago

Thank you!