6506N/AFix warnings from perl-5.22 about deprecated regex syntax.
6506N/APatch from upstream bug report:
6506N/A- if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/)
6506N/A+ if ($str =~ /^(.*)\$\{?([A-Z_]+)}?(.*)$/)
6506N/A- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
6506N/A- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
6506N/A- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
6506N/A- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
6506N/A+ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
6506N/A+ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
6506N/A+ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
6506N/A+ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
6506N/A if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)[,]?([^,\)]+)?/m)
6506N/A $bugurl =~ s/\(+$//g if (defined $bugurl);
6506N/A- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
6506N/A- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
6506N/A- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
6506N/A- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
6506N/A- $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\${?\w+}?/);
6506N/A+ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
6506N/A+ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
6506N/A+ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
6506N/A+ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
6506N/A+ $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$\{?\w+}?/);
6506N/A # \s makes this not work, why?