From 280dbce37e406a0cdc0df27c7937e52985bdfe98 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 26 Nov 2022 20:24:15 +0100 Subject: [PATCH] Restore configure tests disabled by GTK1 support removal The changes of fb4f0b590c (Remove wxGTK1 port and GPE support, 2022-10-16) accidentally disabled several checks that were supposed to be done when using wxGTK, notably for GTK print library. This was due to WXGTK2 not being defined any longer and is fixed now by replacing the tests for it with tests for wxUSE_GTK (as WXGTK2 used to mean "any GTK version other than 1", and not "GTK version 2"). Closes #22994. --- configure | 16 ++++------------ configure.in | 16 ++++------------ 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/configure b/configure index 30952104da..7b066ebda7 100755 --- a/configure +++ b/configure @@ -35658,11 +35658,7 @@ if test "$wxUSE_DEBUG_FLAG" = "no" ; then WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0" if test "$wxUSE_GTK" = 1 ; then - if test "$WXGTK2" = 1 ; then - CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS" - else - CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" - fi + CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS" fi fi @@ -36929,7 +36925,7 @@ if test "$wxUSE_SOUND" = "yes"; then SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" fi -if test "$WXGTK2" = 1; then +if test "$wxUSE_GTK" = 1; then if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then if test "$wxUSE_GTKPRINT" = "yes" ; then @@ -41123,12 +41119,8 @@ TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'` case "$TOOLKIT" in GTK) TOOLKIT_DESC="GTK+" - if test "$WXGTK2" = 1; then - if test "$WXGTK3" = 1; then - TOOLKIT_DESC="$TOOLKIT_DESC ${TOOLKIT_VERSION}" - else - TOOLKIT_DESC="$TOOLKIT_DESC 2" - fi + if test "$wxUSE_GTK" = 1; then + TOOLKIT_DESC="$TOOLKIT_DESC ${TOOLKIT_VERSION}" if test "$wxUSE_GTKPRINT" = "yes" ; then TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing"; fi diff --git a/configure.in b/configure.in index d7b4e58537..7787c0ad21 100644 --- a/configure.in +++ b/configure.in @@ -4778,11 +4778,7 @@ if test "$wxUSE_DEBUG_FLAG" = "no" ; then WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0" if test "$wxUSE_GTK" = 1 ; then - if test "$WXGTK2" = 1 ; then - CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS" - else - CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" - fi + CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS" fi fi @@ -5215,7 +5211,7 @@ if test "$wxUSE_SOUND" = "yes"; then SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" fi -if test "$WXGTK2" = 1; then +if test "$wxUSE_GTK" = 1; then if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then if test "$wxUSE_GTKPRINT" = "yes" ; then @@ -7763,12 +7759,8 @@ AC_SUBST(USE_DPI_AWARE_MANIFEST) case "$TOOLKIT" in GTK) TOOLKIT_DESC="GTK+" - if test "$WXGTK2" = 1; then - if test "$WXGTK3" = 1; then - TOOLKIT_DESC="$TOOLKIT_DESC ${TOOLKIT_VERSION}" - else - TOOLKIT_DESC="$TOOLKIT_DESC 2" - fi + if test "$wxUSE_GTK" = 1; then + TOOLKIT_DESC="$TOOLKIT_DESC ${TOOLKIT_VERSION}" if test "$wxUSE_GTKPRINT" = "yes" ; then TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing"; fi