summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann.secondary@googlemail.com>2011-08-30 21:48:32 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-30 21:53:24 -0400
commit8d6d6bd8bd86aa54cb425241df54bec72e12383e (patch)
tree70e41fa6d385dea555754a2a4dfdc6ea5435c0cb /autogen.sh
parent01a87c102fe6bdaf3aa48a0ba17219e6e0983c4c (diff)
Fix to create autogen.lastrun for a single argument case.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 6135d17a8611..a37953cb81b6 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -139,7 +139,7 @@ if (defined $ENV{NOCONFIGURE}) {
} else {
# Save autogen.lastrun only if we did get some arguments on the command-line
if (@ARGV) {
- if ($#cmdline_args > 0) {
+ if (scalar(@cmdline_args) > 0) {
# print "writing args to autogen.lastrun\n";
my $fh;
open ($fh, ">autogen.lastrun") || die "can't open autogen.lastrun: $!";