diff --git a/ccmain/adaptions.cpp b/ccmain/adaptions.cpp index ddeb647c1..3eff06faf 100644 --- a/ccmain/adaptions.cpp +++ b/ccmain/adaptions.cpp @@ -18,6 +18,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #ifdef __UNIX__ #include diff --git a/ccmain/charcut.cpp b/ccmain/charcut.cpp index f4ff4816e..d277a31ee 100644 --- a/ccmain/charcut.cpp +++ b/ccmain/charcut.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "charcut.h" #include "imgs.h" diff --git a/ccmain/charsample.cpp b/ccmain/charsample.cpp index 009d21a44..ecd2a58b5 100644 --- a/ccmain/charsample.cpp +++ b/ccmain/charsample.cpp @@ -18,6 +18,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include #include diff --git a/ccmain/control.cpp b/ccmain/control.cpp index e64356073..f66efabb2 100644 --- a/ccmain/control.cpp +++ b/ccmain/control.cpp @@ -18,6 +18,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "mainblk.h" #include diff --git a/ccmain/matmatch.cpp b/ccmain/matmatch.cpp index 1c35397f0..b8e799b9e 100644 --- a/ccmain/matmatch.cpp +++ b/ccmain/matmatch.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include #include diff --git a/ccmain/pgedit.cpp b/ccmain/pgedit.cpp index 6bd73eeef..08989f755 100755 --- a/ccmain/pgedit.cpp +++ b/ccmain/pgedit.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "pgedit.h" #include diff --git a/ccmain/reject.cpp b/ccmain/reject.cpp index 4cbe7f6bd..4a81b040b 100644 --- a/ccmain/reject.cpp +++ b/ccmain/reject.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "tessvars.h" #ifdef __UNIX__ diff --git a/ccmain/varabled.cpp b/ccmain/varabled.cpp index 6e74b81c7..1497934bc 100644 --- a/ccmain/varabled.cpp +++ b/ccmain/varabled.cpp @@ -19,6 +19,12 @@ // // The variables editor is used to edit all the variables used within // tesseract from the ui. + +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #ifndef GRAPHICS_DISABLED #include "varabled.h" diff --git a/ccstruct/callcpp.cpp b/ccstruct/callcpp.cpp index 966befd90..9982747b8 100644 --- a/ccstruct/callcpp.cpp +++ b/ccstruct/callcpp.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "errcode.h" #ifdef __UNIX__ diff --git a/ccstruct/coutln.cpp b/ccstruct/coutln.cpp index 504f316e4..c001c078e 100644 --- a/ccstruct/coutln.cpp +++ b/ccstruct/coutln.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include #ifdef __UNIX__ diff --git a/ccstruct/labls.cpp b/ccstruct/labls.cpp index 31d31c62b..af01c30c3 100644 --- a/ccstruct/labls.cpp +++ b/ccstruct/labls.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "hpdsizes.h" #include "labls.h" diff --git a/ccstruct/lmedsq.cpp b/ccstruct/lmedsq.cpp index 6d230f672..cf3fc2dad 100644 --- a/ccstruct/lmedsq.cpp +++ b/ccstruct/lmedsq.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include #include "statistc.h" diff --git a/ccstruct/ocrrow.cpp b/ccstruct/ocrrow.cpp index b6c66dec3..60c80ae60 100644 --- a/ccstruct/ocrrow.cpp +++ b/ccstruct/ocrrow.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "ocrrow.h" #include "blobbox.h" diff --git a/ccstruct/pdblock.cpp b/ccstruct/pdblock.cpp index 3004f6eb3..1ae597673 100644 --- a/ccstruct/pdblock.cpp +++ b/ccstruct/pdblock.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include #include "blckerr.h" diff --git a/ccstruct/polyblk.cpp b/ccstruct/polyblk.cpp index c2a51a2e4..8d5d40650 100644 --- a/ccstruct/polyblk.cpp +++ b/ccstruct/polyblk.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include #include diff --git a/ccstruct/polyblob.cpp b/ccstruct/polyblob.cpp index d4a568eb6..6299fcebd 100644 --- a/ccstruct/polyblob.cpp +++ b/ccstruct/polyblob.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "varable.h" #include "ocrrow.h" diff --git a/ccstruct/poutline.cpp b/ccstruct/poutline.cpp index b433ec473..5fea76ed3 100644 --- a/ccstruct/poutline.cpp +++ b/ccstruct/poutline.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "poutline.h" diff --git a/ccstruct/quspline.cpp b/ccstruct/quspline.cpp index 2ae8880b1..fc2d688d7 100644 --- a/ccstruct/quspline.cpp +++ b/ccstruct/quspline.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "memry.h" #include "quadlsq.h" diff --git a/ccstruct/rect.cpp b/ccstruct/rect.cpp index 1c922928e..ab3d6c15f 100644 --- a/ccstruct/rect.cpp +++ b/ccstruct/rect.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" //precompiled headers #include "rect.h" diff --git a/ccstruct/statistc.cpp b/ccstruct/statistc.cpp index 1f4d75a63..6ef5260da 100644 --- a/ccstruct/statistc.cpp +++ b/ccstruct/statistc.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" //precompiled headers #include #include diff --git a/ccstruct/stepblob.cpp b/ccstruct/stepblob.cpp index 408102f05..518537d82 100644 --- a/ccstruct/stepblob.cpp +++ b/ccstruct/stepblob.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "stepblob.h" diff --git a/ccstruct/werd.cpp b/ccstruct/werd.cpp index fde39974e..73c98fa4e 100644 --- a/ccstruct/werd.cpp +++ b/ccstruct/werd.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "blckerr.h" #include "linlsq.h" diff --git a/ccutil/debugwin.cpp b/ccutil/debugwin.cpp index 2401350b1..9ab21936a 100644 --- a/ccutil/debugwin.cpp +++ b/ccutil/debugwin.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" //precompiled headers #include #include "debugwin.h" diff --git a/ccutil/tprintf.cpp b/ccutil/tprintf.cpp index 67eeffdb8..bc195f83b 100644 --- a/ccutil/tprintf.cpp +++ b/ccutil/tprintf.cpp @@ -16,6 +16,12 @@ ** limitations under the License. * **********************************************************************/ + +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" //precompiled headers #include #include diff --git a/classify/adaptmatch.cpp b/classify/adaptmatch.cpp index fc8712b63..e729639e9 100644 --- a/classify/adaptmatch.cpp +++ b/classify/adaptmatch.cpp @@ -19,6 +19,11 @@ /**---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------**/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include #include "adaptmatch.h" #include "normfeat.h" diff --git a/classify/intmatcher.cpp b/classify/intmatcher.cpp index e5892bbcf..c57bc4397 100644 --- a/classify/intmatcher.cpp +++ b/classify/intmatcher.cpp @@ -19,6 +19,11 @@ /**---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------**/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "intmatcher.h" #include "intproto.h" #include "tordvars.h" diff --git a/classify/intproto.cpp b/classify/intproto.cpp index a7a22397f..4a28d980c 100644 --- a/classify/intproto.cpp +++ b/classify/intproto.cpp @@ -18,6 +18,11 @@ /**---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------**/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "helpers.h" #include "intproto.h" #include "picofeat.h" diff --git a/textord/alignedblob.cpp b/textord/alignedblob.cpp index 75320c590..ce4706c74 100644 --- a/textord/alignedblob.cpp +++ b/textord/alignedblob.cpp @@ -17,6 +17,11 @@ // /////////////////////////////////////////////////////////////////////// +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "alignedblob.h" #include "ndminx.h" diff --git a/textord/colfind.cpp b/textord/colfind.cpp index 69ddbe93a..8ef12ca00 100644 --- a/textord/colfind.cpp +++ b/textord/colfind.cpp @@ -18,6 +18,11 @@ // /////////////////////////////////////////////////////////////////////// +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #ifdef _MSC_VER #pragma warning(disable:4244) // Conversion warnings #endif diff --git a/textord/drawedg.cpp b/textord/drawedg.cpp index 3ca6686fd..311bbd9d5 100644 --- a/textord/drawedg.cpp +++ b/textord/drawedg.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "drawedg.h" diff --git a/textord/drawtord.cpp b/textord/drawtord.cpp index 13e96ae38..efc887802 100644 --- a/textord/drawtord.cpp +++ b/textord/drawtord.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "pithsync.h" #include "topitch.h" diff --git a/textord/edgblob.cpp b/textord/edgblob.cpp index 0bc0e09b8..c6c359774 100644 --- a/textord/edgblob.cpp +++ b/textord/edgblob.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "scanedg.h" #include "drawedg.h" diff --git a/textord/edgloop.cpp b/textord/edgloop.cpp index 4db3d6f61..26ae8202e 100644 --- a/textord/edgloop.cpp +++ b/textord/edgloop.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "scanedg.h" #include "drawedg.h" diff --git a/textord/fpchop.cpp b/textord/fpchop.cpp index 77e805e67..082f74940 100644 --- a/textord/fpchop.cpp +++ b/textord/fpchop.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #ifdef __UNIX__ #include diff --git a/textord/makerow.cpp b/textord/makerow.cpp index 54161714f..7b6ad00ca 100644 --- a/textord/makerow.cpp +++ b/textord/makerow.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #ifdef __UNIX__ #include diff --git a/textord/oldbasel.cpp b/textord/oldbasel.cpp index 2c8a6826c..88b4ec855 100644 --- a/textord/oldbasel.cpp +++ b/textord/oldbasel.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "statistc.h" #include "quadlsq.h" diff --git a/textord/strokewidth.cpp b/textord/strokewidth.cpp index 694d9ef66..b2e29d485 100644 --- a/textord/strokewidth.cpp +++ b/textord/strokewidth.cpp @@ -17,6 +17,11 @@ // /////////////////////////////////////////////////////////////////////// +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #ifdef _MSC_VER #pragma warning(disable:4244) // Conversion warnings #endif diff --git a/textord/tabfind.cpp b/textord/tabfind.cpp index fdd297d8b..f6d99221b 100644 --- a/textord/tabfind.cpp +++ b/textord/tabfind.cpp @@ -17,6 +17,11 @@ // /////////////////////////////////////////////////////////////////////// +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "tabfind.h" #include "alignedblob.h" #include "blobbox.h" diff --git a/textord/tabvector.cpp b/textord/tabvector.cpp index 6b9e7828b..d7b834e39 100644 --- a/textord/tabvector.cpp +++ b/textord/tabvector.cpp @@ -17,6 +17,11 @@ // /////////////////////////////////////////////////////////////////////// +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #ifdef _MSC_VER #pragma warning(disable:4244) // Conversion warnings #endif diff --git a/textord/topitch.cpp b/textord/topitch.cpp index 00d942e86..6fd12c777 100644 --- a/textord/topitch.cpp +++ b/textord/topitch.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #ifdef __UNIX__ #include diff --git a/textord/tordmain.cpp b/textord/tordmain.cpp index 6dcc6bb62..c47decda3 100644 --- a/textord/tordmain.cpp +++ b/textord/tordmain.cpp @@ -16,6 +16,11 @@ ** limitations under the License. * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #ifdef __UNIX__ #include diff --git a/textord/tospace.cpp b/textord/tospace.cpp index 61a0df914..c3a4fbacc 100644 --- a/textord/tospace.cpp +++ b/textord/tospace.cpp @@ -1,3 +1,8 @@ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "tovars.h" #include "drawtord.h" diff --git a/textord/wordseg.cpp b/textord/wordseg.cpp index 245510516..571e7e796 100644 --- a/textord/wordseg.cpp +++ b/textord/wordseg.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #ifdef __UNIX__ #include diff --git a/viewer/scrollview.cpp b/viewer/scrollview.cpp index 338580966..1711d8aee 100644 --- a/viewer/scrollview.cpp +++ b/viewer/scrollview.cpp @@ -18,6 +18,11 @@ /////////////////////////////////////////////////////////////////////// // +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #ifndef GRAPHICS_DISABLED // This class contains the main ScrollView-logic, // e.g. parsing & sending messages, images etc. diff --git a/viewer/svmnode.cpp b/viewer/svmnode.cpp index f46dc13ae..88a8e9ac4 100644 --- a/viewer/svmnode.cpp +++ b/viewer/svmnode.cpp @@ -24,6 +24,12 @@ // menu structure there. // A SVMenuNode can both be used in the context_ of popup menus as well as // menu bars. + +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "svmnode.h" #ifndef GRAPHICS_DISABLED diff --git a/viewer/svutil.cpp b/viewer/svutil.cpp index 131d9f388..d6f6a2b89 100644 --- a/viewer/svutil.cpp +++ b/viewer/svutil.cpp @@ -20,6 +20,11 @@ // SVUtil contains the SVSync and SVNetwork classes, which are used for // thread/process creation & synchronization and network connection. +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #ifndef GRAPHICS_DISABLED #include "svutil.h" diff --git a/wordrec/bestfirst.cpp b/wordrec/bestfirst.cpp index c28d10f94..4105abae5 100644 --- a/wordrec/bestfirst.cpp +++ b/wordrec/bestfirst.cpp @@ -26,6 +26,12 @@ /*---------------------------------------------------------------------- I n c l u d e s ---------------------------------------------------------------------*/ + +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include #include "bestfirst.h" diff --git a/wordrec/chop.cpp b/wordrec/chop.cpp index 7b228b262..c463e0c50 100644 --- a/wordrec/chop.cpp +++ b/wordrec/chop.cpp @@ -26,6 +26,12 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ + +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "chop.h" #include "outlines.h" #include "olutil.h" diff --git a/wordrec/chopper.cpp b/wordrec/chopper.cpp index 0add2e354..c0e2077b9 100644 --- a/wordrec/chopper.cpp +++ b/wordrec/chopper.cpp @@ -26,6 +26,12 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ + +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include #include "chopper.h" diff --git a/wordrec/drawfx.cpp b/wordrec/drawfx.cpp index 049d8ca8c..f71dec66f 100644 --- a/wordrec/drawfx.cpp +++ b/wordrec/drawfx.cpp @@ -17,6 +17,11 @@ * **********************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "mfcpch.h" #include "debugwin.h" #include "werd.h" diff --git a/wordrec/findseam.cpp b/wordrec/findseam.cpp index e50694374..d79caf7de 100644 --- a/wordrec/findseam.cpp +++ b/wordrec/findseam.cpp @@ -25,6 +25,11 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "findseam.h" #include "gradechop.h" #include "olutil.h" diff --git a/wordrec/makechop.cpp b/wordrec/makechop.cpp index b38174fb9..cd4d40b5c 100644 --- a/wordrec/makechop.cpp +++ b/wordrec/makechop.cpp @@ -25,6 +25,12 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ + +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "makechop.h" #include "render.h" #include "structures.h" diff --git a/wordrec/metrics.cpp b/wordrec/metrics.cpp index 16660866f..7fc717810 100644 --- a/wordrec/metrics.cpp +++ b/wordrec/metrics.cpp @@ -25,6 +25,11 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "metrics.h" #include "bestfirst.h" #include "associate.h" diff --git a/wordrec/pieces.cpp b/wordrec/pieces.cpp index a94f512fe..492f7118e 100644 --- a/wordrec/pieces.cpp +++ b/wordrec/pieces.cpp @@ -25,6 +25,11 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "pieces.h" #include "blobs.h" diff --git a/wordrec/plotedges.cpp b/wordrec/plotedges.cpp index c33a86f8f..9dc0b748e 100644 --- a/wordrec/plotedges.cpp +++ b/wordrec/plotedges.cpp @@ -22,6 +22,11 @@ ** limitations under the License. * *********************************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #ifdef __UNIX__ #include #endif diff --git a/wordrec/plotseg.cpp b/wordrec/plotseg.cpp index d311281e9..583f4ab29 100644 --- a/wordrec/plotseg.cpp +++ b/wordrec/plotseg.cpp @@ -25,6 +25,11 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "plotseg.h" #include "callcpp.h" #include "scrollview.h" diff --git a/wordrec/render.cpp b/wordrec/render.cpp index 489d36a3d..684d02711 100644 --- a/wordrec/render.cpp +++ b/wordrec/render.cpp @@ -22,6 +22,11 @@ ** limitations under the License. * *********************************************************************************/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include "render.h" #include "blobs.h" diff --git a/wordrec/wordclass.cpp b/wordrec/wordclass.cpp index 8dafb111a..1633bcc9e 100644 --- a/wordrec/wordclass.cpp +++ b/wordrec/wordclass.cpp @@ -25,6 +25,11 @@ /*---------------------------------------------------------------------- I N C L U D E S ----------------------------------------------------------------------*/ +// Include automatically generated configuration file if running autoconf. +#ifdef HAVE_CONFIG_H +#include "config_auto.h" +#endif + #include #ifdef __UNIX__ #include