diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl
index f6fe38d2de..81145a2dac 100644
--- a/build/bakefiles/config.bkl
+++ b/build/bakefiles/config.bkl
@@ -173,6 +173,7 @@ compiled .lib files and setup.h under the lib/ toplevel directory.
+
@@ -210,6 +211,7 @@ it if SHARED=1 unless you know what you are doing.
+
diff --git a/build/bakefiles/files.bkl b/build/bakefiles/files.bkl
index 6648f8ac43..e238a68d5e 100644
--- a/build/bakefiles/files.bkl
+++ b/build/bakefiles/files.bkl
@@ -2044,6 +2044,12 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
src/msw/helpbest.cpp
+
+ src/html/chm.cpp
+
+
+ src/html/chm.cpp
+
$(HTML_SRC_PLATFORM)
diff --git a/build/bakefiles/monolithic.bkl b/build/bakefiles/monolithic.bkl
index d67fed5f40..80b1ba7fc1 100644
--- a/build/bakefiles/monolithic.bkl
+++ b/build/bakefiles/monolithic.bkl
@@ -17,6 +17,7 @@
WXMAKINGDLL
$(MONOLIB_SRC)
$(EXTRALIBS_XML)
+ $(EXTRALIBS_HTML)
$(EXTRALIBS_ODBC)
$(ALL_HEADERS)
diff --git a/build/bakefiles/multilib.bkl b/build/bakefiles/multilib.bkl
index 2b8881e559..3f0c11451d 100644
--- a/build/bakefiles/multilib.bkl
+++ b/build/bakefiles/multilib.bkl
@@ -148,6 +148,7 @@
$(HTML_SRC)
coredll
basedll
+ $(EXTRALIBS_HTML)
$(HTML_HDR)
diff --git a/build/bakefiles/wxwin.py b/build/bakefiles/wxwin.py
index 3aa425cd0a..5c1483e3bc 100644
--- a/build/bakefiles/wxwin.py
+++ b/build/bakefiles/wxwin.py
@@ -41,6 +41,7 @@ LIBS_GUI = ['core', 'adv', 'html', 'gl', 'dbgrid']
EXTRALIBS = {
'gl' : '$(EXTRALIBS_OPENGL)',
'xml' : '$(EXTRALIBS_XML)',
+ 'html' : '$(EXTRALIBS_HTML)',
'odbc' : '$(EXTRALIBS_ODBC)',
}
diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h
index afbb474124..4d5fd211a2 100644
--- a/include/wx/chkconf.h
+++ b/include/wx/chkconf.h
@@ -403,6 +403,19 @@
# endif
#endif /* !defined(wxUSE_HTML) */
+#ifndef wxUSE_LIBMSPACK
+# ifndef __UNIX__
+ /* set to 0 on platforms that don't have libmspack */
+# define wxUSE_LIBMSPACK 0
+# else
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_LIBMSPACK must be defined."
+# else
+# define wxUSE_LIBMSPACK 0
+# endif
+# endif
+#endif /* !defined(wxUSE_LIBMSPACK) */
+
#ifndef wxUSE_ICO_CUR
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_ICO_CUR must be defined."
diff --git a/setup.h.in b/setup.h.in
index da237db11f..2b70d2484b 100644
--- a/setup.h.in
+++ b/setup.h.in
@@ -784,6 +784,10 @@
* Use MS HTML Help controller (win32)
*/
#define wxUSE_MS_HTML_HELP 0
+/*
+ * Use MS HTML Help via libmspack (Unix)
+ */
+#define wxUSE_LIBMSPACK 0
/*
* Use iostream.h rather than iostream