From: Martin Mares Date: Mon, 3 Nov 2008 18:10:32 +0000 (+0100) Subject: Configure: Some versions of asciidoc print the version number to stderr. X-Git-Tag: holmes-import~213 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=12e10fc577b5fabdd7cacb7b848a34810aba31bd;p=libucw.git Configure: Some versions of asciidoc print the version number to stderr. --- diff --git a/ucw/perl/UCW/Configure/Doc.pm b/ucw/perl/UCW/Configure/Doc.pm index 24e771d0..b1a701b4 100644 --- a/ucw/perl/UCW/Configure/Doc.pm +++ b/ucw/perl/UCW/Configure/Doc.pm @@ -9,7 +9,7 @@ use warnings; if (!IsGiven("CONFIG_DOC") || IsSet("CONFIG_DOC")) { Test("HAVE_ASCII_DOC", "Checking for AsciiDoc", sub { - my $version = `asciidoc --version`; + my $version = `asciidoc --version 2>&1`; return "none" if !defined $version || $version eq ""; my( $vnum ) = $version =~ / (\d+\.\S*)$/; return $vnum;