--- rxvt-unicode/configure 2021/11/07 14:13:40 1.169 +++ rxvt-unicode/configure 2023/01/02 17:16:42 1.175 @@ -4355,11 +4355,11 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_cxx11+y} +if test ${ac_cv_prog_cxx_11+y} then : printf %s "(cached) " >&6 else $as_nop - ac_cv_prog_cxx_cxx11=no + ac_cv_prog_cxx_11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4401,11 +4401,11 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_cxx98+y} +if test ${ac_cv_prog_cxx_98+y} then : printf %s "(cached) " >&6 else $as_nop - ac_cv_prog_cxx_cxx98=no + ac_cv_prog_cxx_98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4729,10 +4729,6 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test "$ac_prog_cxx_stdcxx" != cxx11; then - as_fn_error $? "the compiler does not support C++11" "$LINENO" 5 -fi - LINKER="$CXX" if test x$GCC = xyes && test x$GXX = xyes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 @@ -5086,7 +5082,15 @@ if test x$GXX = xyes; then if test $support_warnings = yes; then save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" + for warning in \ + -Wall \ + -Wno-parentheses \ + -Wno-reorder \ + -Wno-sign-compare \ + -Wno-unused-value \ + ; do + CXXFLAGS="$CXXFLAGS $warning" + done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6842,8 +6846,8 @@ - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty" >&5 -printf %s "checking for libptytty... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty (using pkg-config)" >&5 +printf %s "checking for libptytty (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`" PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`" @@ -6870,8 +6874,8 @@ if test x$support_pixbuf = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5 -printf %s "checking for gdk-pixbuf-2.0... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0 (using pkg-config)" >&5 +printf %s "checking for gdk-pixbuf-2.0 (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" @@ -6900,8 +6904,8 @@ if test x$support_startup_notification = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5 -printf %s "checking for libstartup-notification-1.0... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0 (using pkg-config)" >&5 +printf %s "checking for libstartup-notification-1.0 (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" @@ -6926,8 +6930,8 @@ if test x$support_frills = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 -printf %s "checking for xmu... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu (using pkg-config)" >&5 +printf %s "checking for xmu (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" XMU_LIBS="`$PKG_CONFIG --libs xmu`" @@ -7461,8 +7465,8 @@ if test x$support_xft = xyes || test x$support_image = xyes; then rxvt_have_xrender=no - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5 -printf %s "checking for xrender... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender (using pkg-config)" >&5 +printf %s "checking for xrender (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" @@ -7504,8 +7508,8 @@ if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5 -printf %s "checking for fontconfig xft... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft (using pkg-config)" >&5 +printf %s "checking for fontconfig xft (using pkg-config)... " >&6; } if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" @@ -7828,6 +7832,28 @@ + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xext (using pkg-config)" >&5 +printf %s "checking for xext (using pkg-config)... " >&6; } + if test $PKG_CONFIG != no && $PKG_CONFIG --exists xext; then + XEXT_CFLAGS="`$PKG_CONFIG --cflags xext`" + XEXT_LIBS="`$PKG_CONFIG --libs xext`" + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } + : + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + + as_fn_error $? "unable to find xext, required for perl" "$LINENO" 5 + + fi + + + X_LIBS="$XEXT_LIBS $X_LIBS" + CPPFLAGS="$CPPFLAGS $XEXT_CFLAGS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 printf %s "checking for $PERL suitability... " >&6; } if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then