[tor-commits] [tor/master] Use AC_LANG_SOURCE

dgoulet at torproject.org dgoulet at torproject.org
Wed Oct 7 13:00:52 UTC 2020


commit 9ad525604e274b4bc5264db37b1049da3d39ddac
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Sep 23 10:53:09 2020 -0400

    Use AC_LANG_SOURCE
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index a14b6d6e21..9b65a869f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1094,7 +1094,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 dnl Let's see if we have a version mismatch between includes and libs.
 AC_MSG_CHECKING([for significant mismatch between openssl headers and libraries])
 ac_retval=foo
-AC_RUN_IFELSE(AC_LANG_PROGRAM([[
+AC_RUN_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM([[
  #include <openssl/opensslv.h>
  #include <openssl/crypto.h>
 ]], [[
@@ -1103,7 +1103,7 @@ AC_RUN_IFELSE(AC_LANG_PROGRAM([[
   unsigned long linking = OpenSSL_version_num() & mask;
   unsigned long running = OPENSSL_VERSION_NUMBER & mask;
   return !(linking==running);
-]]), [openssl_ver_mismatch=no], [
+]])])], [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





More information about the tor-commits mailing list