From 7abc7a587b3167f3c6439e51f0f39f6ae66a98bc Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 25 Jun 2025 12:58:10 +0200 Subject: [PATCH] gh-131591: Make --without-remote-debug work The feature is checked using `defined(Py_REMOTE_DEBUG)`; defining the macro (even as `0`) enables it. --- configure | 3 --- configure.ac | 2 -- 2 files changed, 5 deletions(-) diff --git a/configure b/configure index 8334e247c3e1bb..50223d81cd976e 100755 --- a/configure +++ b/configure @@ -29933,9 +29933,6 @@ printf "%s\n" "#define Py_REMOTE_DEBUG 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else - -printf "%s\n" "#define Py_REMOTE_DEBUG 0" >>confdefs.h - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi diff --git a/configure.ac b/configure.ac index 82fb2d8c492d48..f58e16c774f4aa 100644 --- a/configure.ac +++ b/configure.ac @@ -7168,8 +7168,6 @@ if test "$with_remote_debug" = yes; then [Define if you want to enable remote debugging support.]) AC_MSG_RESULT([yes]) else - AC_DEFINE([Py_REMOTE_DEBUG], [0], - [Define if you want to enable remote debugging support.]) AC_MSG_RESULT([no]) fi