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.56k stars 109 forks source link

configure: == operator is not portable #402

Closed moubctez closed 2 months ago

moubctez commented 2 months ago

In configure script, the == operator is not portable (not all sh-based shells accept it).

Fix:

--- configure.orig  2024-06-04 15:10:47.211941639 +0000
+++ configure
@@ -11057,7 +11057,7 @@ fi

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-static" >&5
 printf %s "checking for --enable-static... " >&6; }
-if test "x$enable_static" == "xyes"; then
+if test "x$enable_static" = "xyes"; then
   CFLAGS="$CFLAGS -static"
   LDFLAGS="$LDFLAGS -static"
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
genivia-inc commented 2 months ago

Thanks for catching this from PR #401