$NetBSD: patch-ab,v 1.10 2021/06/24 14:41:23 adam Exp $ Remove a feeble attempt at providing ABI compatibility for the C++ portion of the PCRE library. Relying on the C++ compiler to crunch symbols in a particular way is platform dependent at best, and the comments indicate that this was done for OSX. Also, the test misfired on SunOS leading to breakage (PR pkg/38768). --- configure.orig 2021-06-15 15:52:52.000000000 +0000 +++ configure @@ -19291,6 +19291,8 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +# XXX pkgsrc +if false; then # Older versions of pcre defined pcrecpp::no_arg, but in new versions # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility, @@ -19334,6 +19336,9 @@ rm -f core conftest.err conftest.$ac_obj done LDFLAGS="$OLD_LDFLAGS" +# XXX pkgsrc +fi + # We could be more clever here, given we're doing AC_SUBST with this # (eg set a var to be the name of the include file we want). But we're not # so it's easy to change back to 'regular' autoconf vars if we needed to. @@ -20637,6 +20642,10 @@ elif test "$enable_pcretest_libreadline" printf "%s\n" "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h +else + +LIBREADLINE= + fi