In the previous commit to change all chomp to a more flexible regexp,
Configure was forgotten. This completes the change.
Reviewed-by: Andy Polyakov <appro@openssl.org>
# centered information gathering the reading configdata.pm
#
while (<IN>) {
# centered information gathering the reading configdata.pm
#
while (<IN>) {
if (/^CONFIGURE_ARGS=\s*(.*)\s*/) {
# Older form, we split the string and hope for the best
@argvcopy = split /\s+/, $_;
if (/^CONFIGURE_ARGS=\s*(.*)\s*/) {
# Older form, we split the string and hope for the best
@argvcopy = split /\s+/, $_;
my $lineiterator = shift;
my $target_kind = $1;
while (defined $lineiterator->()) {
my $lineiterator = shift;
my $target_kind = $1;
while (defined $lineiterator->()) {
if (/^\s*ENDRAW\[((?:\\.|[^\\\]])+)\]\s*$/) {
die "ENDRAW doesn't match BEGINRAW"
if $1 ne $target_kind;
if (/^\s*ENDRAW\[((?:\\.|[^\\\]])+)\]\s*$/) {
die "ENDRAW doesn't match BEGINRAW"
if $1 ne $target_kind;
my $saved_line = "";
$_ = "";
while (<$fh>) {
my $saved_line = "";
$_ = "";
while (<$fh>) {
if (defined $line_concat) {
$_ = $line_concat->($saved_line, $_);
$saved_line = "";
if (defined $line_concat) {
$_ = $line_concat->($saved_line, $_);
$saved_line = "";
my $saved_line = "";
$_ = "";
while (defined($_ = shift @array)) {
my $saved_line = "";
$_ = "";
while (defined($_ = shift @array)) {
if (defined $line_concat) {
$_ = $line_concat->($saved_line, $_);
$saved_line = "";
if (defined $line_concat) {
$_ = $line_concat->($saved_line, $_);
$saved_line = "";
my %collectors = @_;
while(defined($_ = $lineiterator->())) {
my %collectors = @_;
while(defined($_ = $lineiterator->())) {
my $found = 0;
foreach my $re (keys %collectors) {
if ($re ne "OTHERWISE" && /$re/) {
my $found = 0;
foreach my $re (keys %collectors) {
if ($re ne "OTHERWISE" && /$re/) {