diff --git a/Makefile.am b/Makefile.am
index 000ec6f0..d733b503 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,6 +3,7 @@ SUBDIRS = ccstruct ccutil classify cube cutil dict image neural_networks/runtime
#SUBDIRS += po
#AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
#endif
+ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \
aclocal.m4 config configure.ac runautoconf tesseract.spec contrib
@@ -10,13 +11,9 @@ EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \
#EXTRA_DIST = doc/html doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.pdf doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.ps.gz
dist-hook:
-# Need to remove CVS directories from directories
+# Need to remove .svn directories from directories
# added using EXTRA_DIST. $(distdir)/tessdata would in
# theory suffice.
- rm -rf `find $(distdir) -name CVS`
rm -rf `find $(distdir) -name .svn`
rm -rf `find $(distdir) -name .deps`
-# Also remove extra files not needed in a distribution
-# rm -rf `find $(distdir) -name configure.ac`
- rm -rf `find $(distdir) -name acinclude.m4`
-# rm -rf `find $(distdir) -name aclocal.m4`
+ rm -rf `find $(distdir) -name Makefile.in`
diff --git a/runautoconf b/runautoconf
index 8b29b79e..d3f1c978 100755
--- a/runautoconf
+++ b/runautoconf
@@ -67,7 +67,7 @@ autoheader -f || bail_out
# they are copied from the system so they can be used in a distribution.
echo "Running automake --add-missing --copy"
-automake --add-missing -c > /dev/null || bail_out
+automake --add-missing -c -Wno-portability > /dev/null || bail_out
# --- Step 5: Generate configure and include/miaconfig.h from:
# . configure.ac
diff --git a/tessdata/Makefile.am b/tessdata/Makefile.am
index 914d4439..07b482fd 100644
--- a/tessdata/Makefile.am
+++ b/tessdata/Makefile.am
@@ -1,6 +1,6 @@
datadir = @datadir@/tessdata
-data_DATA = *.traineddata \
- *.cube.*
+data_DATA = $(wildcard *.traineddata) \
+ $(wildcard *.cube.*)
SUBDIRS = configs tessconfigs
diff --git a/vs2008/ccmain.vcproj b/vs2008/ccmain.vcproj
index 5377d654..30ceb3d9 100644
--- a/vs2008/ccmain.vcproj
+++ b/vs2008/ccmain.vcproj
@@ -47,7 +47,7 @@
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
- WarningLevel="3"
+ WarningLevel="4"
DebugInformationFormat="4"
/>
-
-
-
-
-
-
-
-
-
-
-
@@ -800,10 +769,6 @@
RelativePath="..\ccutil\clst.h"
>
-
-
diff --git a/vs2008/classify.vcproj b/vs2008/classify.vcproj
index b5355b3b..6e96d6b8 100644
--- a/vs2008/classify.vcproj
+++ b/vs2008/classify.vcproj
@@ -1,7 +1,7 @@
@@ -229,7 +229,7 @@
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
BrowseInformation="0"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
/>
@@ -140,7 +140,7 @@
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
BrowseInformation="0"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
/>
@@ -251,7 +251,7 @@
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
/>
@@ -231,7 +231,7 @@
StringPooling="true"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
/>
-
-
diff --git a/vs2008/viewer.vcproj b/vs2008/viewer.vcproj
index b5732545..5430ff16 100644
--- a/vs2008/viewer.vcproj
+++ b/vs2008/viewer.vcproj
@@ -1,7 +1,7 @@
@@ -240,7 +240,7 @@
UsePrecompiledHeader="0"
PrecompiledHeaderThrough=""
PrecompiledHeaderFile=""
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
/>
-
@@ -176,7 +175,6 @@
-
diff --git a/vs2010/ccmain.vcxproj.filters b/vs2010/ccmain.vcxproj.filters
index 1330c022..a2f5593e 100644
--- a/vs2010/ccmain.vcxproj.filters
+++ b/vs2010/ccmain.vcxproj.filters
@@ -102,9 +102,6 @@
Header Files
-
- Header Files
-
Header Files
@@ -308,9 +305,6 @@
Source Files
-
- Source Files
-
Source Files
diff --git a/vs2010/ccutil.vcxproj b/vs2010/ccutil.vcxproj
index bd96c021..cae9eda2 100644
--- a/vs2010/ccutil.vcxproj
+++ b/vs2010/ccutil.vcxproj
@@ -17,7 +17,6 @@
-
@@ -43,7 +42,6 @@
-
diff --git a/vs2010/ccutil.vcxproj.filters b/vs2010/ccutil.vcxproj.filters
index 53d163a8..bded7661 100644
--- a/vs2010/ccutil.vcxproj.filters
+++ b/vs2010/ccutil.vcxproj.filters
@@ -66,9 +66,6 @@
Source Files
-
- Source Files
-
Source Files
@@ -107,9 +104,6 @@
Header Files
-
- Header Files
-
Header Files
diff --git a/vs2010/unicharset_extractor.vcproj b/vs2010/unicharset_extractor.vcproj
index 98505dda..b2391d5e 100644
--- a/vs2010/unicharset_extractor.vcproj
+++ b/vs2010/unicharset_extractor.vcproj
@@ -351,10 +351,6 @@
RelativePath="..\ccutil\clst.h"
>
-
-
diff --git a/vs2010/unicharset_extractor.vcxproj b/vs2010/unicharset_extractor.vcxproj
index 2a4c4501..a88e1080 100644
--- a/vs2010/unicharset_extractor.vcxproj
+++ b/vs2010/unicharset_extractor.vcxproj
@@ -207,7 +207,6 @@
-
diff --git a/vs2010/unicharset_extractor.vcxproj.filters b/vs2010/unicharset_extractor.vcxproj.filters
index 87679f60..3f648fc6 100644
--- a/vs2010/unicharset_extractor.vcxproj.filters
+++ b/vs2010/unicharset_extractor.vcxproj.filters
@@ -38,9 +38,6 @@
Header Files
-
- Header Files
-
Header Files