[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/release-0.4.5] Make our configure.ac script use the portable `=` comparison



commit aebd0a4080559a5c24e580ddf50e5b5c8ff1cc29
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Feb 17 12:36:23 2021 -0500

    Make our configure.ac script use the portable `=` comparison
    
    Back in 0.4.5.1-alpha we added an `==` comparison, which isn't
    portable.
    
    Fixes bug #40298; bugfix on 0.4.5.1-alpha.
---
 changes/bug40298 | 3 +++
 configure.ac     | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/changes/bug40298 b/changes/bug40298
new file mode 100644
index 0000000000..8b8b0bbc12
--- /dev/null
+++ b/changes/bug40298
@@ -0,0 +1,3 @@
+  o Minor bugfixes (portability):
+    - Fix a non-portable usage of "==" with "test" in the configure script.
+      Fixes bug 40298; bugfix on 0.4.5.1-alpha.
diff --git a/configure.ac b/configure.ac
index a8d95e49eb..e8775a98f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1144,7 +1144,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM([[
 ]])])], [openssl_ver_mismatch=no], [
    # This is a kludge to figure out whether compilation failed, or whether
    # running the program failed.
-   if test "$ac_retval" == "1"; then
+   if test "$ac_retval" = "1"; then
       openssl_ver_mismatch=inconclusive
    else
       openssl_ver_mismatch=yes



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits