From 7da337fcb23c8f0ed26e155a7564ac8cd014c901 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Mon, 23 Sep 2024 11:17:54 -0400 Subject: [PATCH] PHPC-2452: Warn if --with-openssl-dir is used (#1677) --- scripts/autotools/libmongoc/CheckSSL.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/autotools/libmongoc/CheckSSL.m4 b/scripts/autotools/libmongoc/CheckSSL.m4 index faf1190b2..c1a18d931 100644 --- a/scripts/autotools/libmongoc/CheckSSL.m4 +++ b/scripts/autotools/libmongoc/CheckSSL.m4 @@ -26,6 +26,10 @@ PHP_ARG_WITH([openssl-dir], [auto], [no]) +if test "$PHP_OPENSSL_DIR" != "auto"; then + AC_MSG_WARN([Using --with-openssl-dir is deprecated and will be removed in a future version.]) +fi + AS_IF([test "$PHP_MONGODB_SSL" = "openssl" -o "$PHP_MONGODB_SSL" = "auto"],[ found_openssl="no"