aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-08-02 19:56:23 +0100
committerGravatar Sadie Powell2025-08-02 19:56:23 +0100
commitba0709d308db0fb1c97a3e90387498da24a564e9 (patch)
treef66e8e03323744c6a3fd49b5e961369f3a4e3cf7
parentRelease v4.8.0. (diff)
Fix parsing template values in ifdef/ifndef.
-rw-r--r--make/configure.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/configure.pm b/make/configure.pm
index 1a419a5a8..bb3414abd 100644
--- a/make/configure.pm
+++ b/make/configure.pm
@@ -299,11 +299,11 @@ sub parse_templates($$$) {
push @lines, "#${indent}undef $value";
}
} elsif ($name eq 'ifdef') {
- if ($name =~ /^(\S+)\s+(.+)/ && $settings{$1}) {
+ if ($value =~ /^(\S+)\s+(.+)/ && $settings{$1}) {
push @lines, $indent . $2;
}
} elsif ($name eq 'ifndef') {
- if ($3 =~ /^(\S+)\s+(.+)/ && !$settings{$1}) {
+ if ($value =~ /^(\S+)\s+(.+)/ && !$settings{$1}) {
push @lines, $indent . $2;
}
} elsif ($name eq 'mode') {