]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix header ifdef check for config-post.h in VPATH build
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 14 Dec 2018 14:07:08 +0000 (14:07 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 14 Dec 2018 14:08:51 +0000 (14:08 +0000)
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>
build-aux/header-ifdef.pl

index 74b4c0246b953ee781f1630519f442a45efaf58f..ccabf14055d869bce1261361e376b469e0bc0426 100644 (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;