Building with G++ on Darwin breaks when either AVX, AVX2, or SSE4.1
compiler option is set, unless G++ is actually CLANG.
This commit allows to build with G++, by asking G++ to delegate assembly
to the clang integrated assembler, instead of the GNU one.
Commit f9157fd91d changed the rules for
the documentation, so make always tried to build it and failed if
asciidoc was missing since that commit.
Now configure tests whether asciidoc is available and builds the
documentation conditionally. It also reports that to the user.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
That macro disables automated updates when configure.ac or a Makefile.am
changes. Normally those updates are wanted because users typically
forget running ./autogen.sh.
See also the GNU documentation why AM_MAINTAINER_MODE should not be used:
https://www.gnu.org/software/automake/manual/html_node/maintainer_002dmode.html
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* classify/adaptive: Fix warnings from Doxygen
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* classify/clusttool: Fix warnings from Doxygen and remove wrong API function
Remove the function ReadProtoStyle because it did not match
the documentation. It was only used locally.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* classify/cutoffs: Fix warnings from Doxygen
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* classify/intproto: Fix warnings from Doxygen
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* classify/normmatch: Fix warnings from Doxygen
Signed-off-by: Stefan Weil <sw@weilnetz.de>
As Tesseract now uses semantic versioning, the old method to calculate
the library version was no longer valid.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
The method is called with a float argument several times, and the
previous implementation which only supported a double argument
resulted in type conversions and compiler warnings.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
AX_SPLIT_VERSION only works after AM_INIT_AUTOMAKE, so that macro had
to be moved.
GENERIC_MAJOR_VERSION, GENERIC_MINOR_VERSION and GENERIC_MICRO_VERSION
are now set automatically and can be used in further processing.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* training: Remove unneeded CPPFLAGS
The training code does not need vs2010/port.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* unittest: Remove unneeded CPPFLAGS
The unittest code does not need vs2010/port.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This fixes a compiler warning. The variable is unused since commit
0e95e2ca87.
Remove also a related code comment.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This fixes a warning from clang:
arch/dotproductavx.cpp:94:51: warning:
unexpected token in pragma diagnostic [-Wunknown-pragmas]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix CID 1164532 'Constant' variable guards dead code
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix CID 1164594 Argument cannot be negative
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix CID 1164597 Argument cannot be negative
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix CID 1366447 Argument cannot be negative
Fix also the data type for current_pos, as ftell returns a long value.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix CID 1270404 Arguments in wrong order
This does not change the code, but should help Coverity Scan to see
that the argument order is as intended.
Signed-off-by: Stefan Weil <sw@weilnetz.de>