Fix header ifdef check for config-post.h in VPATH build

We must do a substring match, not an exact match since
there can be an arbitrary virtual path prepended.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé committed 2018-12-14 14:08:51 +00:00
1 parent 0aadf5ffe2
commit 1fb73537d7
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ while (<>) {
}
if ($mistake ||
$ARGV eq "config-post.h" ||
$ARGV =~ /config-post\.h$/ ||
$ARGV =~ /vbox_(CAPI|XPCOM)/) {
$state = $STATE_EOF;
next;