From: Paul Eggert Date: Tue, 30 Sep 2003 19:34:28 +0000 (+0000) Subject: Look for --jobs, too. X-Git-Tag: AUTOCONF-2.57f~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c59dae7366dbc5784ce9521d27b753a64e000c5;p=thirdparty%2Fautoconf.git Look for --jobs, too. --- diff --git a/lib/Autom4te/XFile.pm b/lib/Autom4te/XFile.pm index 643d264e..459f7fa9 100644 --- a/lib/Autom4te/XFile.pm +++ b/lib/Autom4te/XFile.pm @@ -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: $!";