Perl and PHP bindings check doesn't work with SWIG 4
SWIG 4 is closed to final release and I trying to rebuild all its dependencies in Fedora.
I tried to rebuild graphviz with prepared SWIG 4 and I found that Perl and PHP extension are not built. It is caused, because check in configure.ac failed. The reason is that the list of options in help changed:
- '-perl' was replaced by '-perl5', both are valid, but only the '-perl5' is listed in help
- '-php5' was removed, because PHP 5 is not supported now
- if language option is not valid, the error message will be 'No target language specified'
I have prepared patch for Fedora, which should work for SWIG 3.0.12 and also 4.0, you can found it here