php8: pass configure hints for snmp extension
authorMichael Heimpold <[email protected]>
Sun, 27 Apr 2025 14:18:02 +0000 (16:18 +0200)
committerMichael Heimpold <[email protected]>
Thu, 1 May 2025 13:40:26 +0000 (15:40 +0200)
The 'snmp' extension module uses net-snmp as library, but fails
to detect whether the library uses openssl when cross-compiling.
Pass the according autoconf variables as hint - net-snmp is not
using openssl at the moment as defined in the Makefile.

Signed-off-by: Michael Heimpold <[email protected]>
lang/php8/Makefile

index d52ef54e4576e12644f597fa3057b11e9c81d1ac..6aa2f565c8706d496b9fba4e4cdb7bd4eda9fc47 100644 (file)
@@ -396,6 +396,9 @@ endif
 
 ifneq ($(SDK)$(CONFIG_PACKAGE_php8-mod-snmp),)
   CONFIGURE_ARGS+= --with-snmp=shared,"$(STAGING_DIR)/usr"
+  CONFIGURE_VARS+= \
+    ac_cv_have_decl_usmHMAC192SHA256AuthProtocol=no \
+    ac_cv_have_decl_usmHMAC384SHA512AuthProtocol=no
 else
   CONFIGURE_ARGS+= --without-snmp
 endif