Discussion:
[Swig-devel] PCRE2 Compatibility?
Nathan
2015-04-09 23:45:16 UTC
Permalink
"All new future features will be to PCRE2, not the original PCRE 8.x series"
http://www.pcre.org/

"if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then"
./configure
It's not looking for PCRE2
William S Fulton
2015-04-10 20:50:47 UTC
Permalink
Post by Nathan
"All new future features will be to PCRE2, not the original PCRE 8.x series"
http://www.pcre.org/
"if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then"
./configure
It's not looking for PCRE2
I've not heard of anyone testing SWIG with PCRE2. If you'd like to
enable this support, can you find out if the api/headers we are using
are compatible? If so, patches to support PCRE2 are welcome.
Presumably there is something equivalent to pcre-config for PCRE2.

William
Vadim Zeitlin
2015-04-11 18:15:48 UTC
Permalink
On Fri, 10 Apr 2015 21:50:47 +0100 William S Fulton <***@fultondesigns.co.uk> wrote:

WSF> On 10 April 2015 at 00:45, Nathan <***@hotmail.com> wrote:
WSF> > "All new future features will be to PCRE2, not the original PCRE 8.x series"
WSF> > http://www.pcre.org/
WSF> >
WSF> > "if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then"
WSF> > ./configure
WSF> > It's not looking for PCRE2
WSF>
WSF> I've not heard of anyone testing SWIG with PCRE2. If you'd like to
WSF> enable this support, can you find out if the api/headers we are using
WSF> are compatible? If so, patches to support PCRE2 are welcome.
WSF> Presumably there is something equivalent to pcre-config for PCRE2.

FWIW the release announcement[*] of PCRE2 says

You should treat this as a new project, not just a drastic update to PCRE1.

so it would have to be supported in parallel with PCRE, not instead of it.
Notably, all functions have "pcre2_" prefix instead of "pcre_", so at least
superficial changes to the code, and not just configure, would be needed.

Regards,
VZ

[*] https://lists.exim.org/lurker/message/20150105.162835.0666407a.en.html
Loading...