]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make our configure.ac script use the portable `=` comparison
authorNick Mathewson <nickm@torproject.org>
Wed, 17 Feb 2021 17:36:23 +0000 (12:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 17 Feb 2021 17:36:23 +0000 (12:36 -0500)
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 [new file with mode: 0644]
configure.ac

diff --git a/changes/bug40298 b/changes/bug40298
new file mode 100644 (file)
index 0000000..8b8b0bb
--- /dev/null
@@ -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.
index a8d95e49ebd9ceef2bc88faa8f778feb6e509d74..e8775a98f7c14b880620512eb93a82ccae556f4d 100644 (file)
@@ -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