]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Look for --jobs, too.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Sep 2003 19:34:28 +0000 (19:34 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Sep 2003 19:34:28 +0000 (19:34 +0000)
lib/Autom4te/XFile.pm

index 643d264ee6a48acfac4b2d012b861d4d813d2936..459f7fa91e8fc04a362f011491847be62bb102be 100644 (file)
@@ -225,7 +225,7 @@ sub lock
   # However, if the invoker is using "make -j", the problem is not harmless,
   # so report it in that case.  Admittedly this is a bit of a hack.
   if (!flock ($fh, $mode)
-      && (!$!{ENOLCK} || " $ENV{'MAKEFLAGS'} " =~ / -j /))
+      && (!$!{ENOLCK} || " $ENV{'MAKEFLAGS'}" =~ / (-j|--jobs)/))
     {
       my $file = $fh->name;
       fatal "cannot lock $file with mode $mode: $!";