1 # UCW Library configuration system: documentation requirements
2 # (c) 2008 Michal Vaner <vorner@ucw.cz>
4 package UCW::Configure::Doc;
10 if (!IsGiven("CONFIG_DOC") || IsSet("CONFIG_DOC")) {
11 Test("HAVE_ASCII_DOC", "Checking for AsciiDoc", sub {
12 my $version = `asciidoc --version 2>&1`;
13 return "none" if !defined $version || $version eq "";
14 my( $vnum ) = $version =~ / (\d+\.\S*)$/;
18 my( $major ) = Get("HAVE_ASCII_DOC") =~ /^(\d+)/;
19 if (defined $major && $major >= 7) {
22 if (IsGiven("CONFIG_DOC")) {
23 Fail("Need asciidoc >= 7\n");
25 Warn("Need asciidoc >= 7 to build documentation\n");