diff --git a/configure.in b/configure.in
index e4800b3..d1472f0 100644
--- a/configure.in
+++ b/configure.in
@@ -17,7 +17,7 @@ AC_CANONICAL_SYSTEM
PACKAGENAME=mrw-c++
m4_define(x_major, 3)
m4_define(x_minor, 2)
-m4_define(x_least, 3)
+m4_define(x_least, 4)
# copy M4 to shell
MAJOR=x_major
@@ -95,6 +95,11 @@ AC_ARG_ENABLE(dot,
[ --disable-dot disable dot graphic tools for documentation],
[have_dot="$enableval"])
test "$enableval" = "yes" && HAVE_DOT="YES" || HAVE_DOT="NO";
+AC_ARG_ENABLE(doxygen,
+ [ --disable-doxygen disable build of documentation],
+ [have_doxygen="$enableval"])
+test "$enableval" = "yes" && HAVE_DOXYGEN="YES" || HAVE_DOXYGEN="NO";
+AM_CONDITIONAL(HAVE_DOXYGEN, test "$enableval" = "yes")
AC_ARG_ENABLE(dir,
[ --disable-dir disable POSIX directory access],
[have_dir="$enableval"])
@@ -186,6 +191,7 @@ AM_PATH_CPPUNIT([1.0.0], [have_cppunit="yes"], [have_cppunit="no"])
# export macros
AC_SUBST(HAVE_DOT)
+AC_SUBST(HAVE_DOXYGEN)
AC_SUBST(THREADS)
AC_SUBST(PACKAGENAME)
AC_SUBST(AM_CXXFLAGS)
@@ -206,6 +212,9 @@ if test "$have_dot" = "no"; then
AC_MSG_WARN([Missing program dot!
- when you rebild documentation with make doc, there are no generated images
- there are precompiled derived files in the distribution]); fi
+if test "$have_doxygen" = "no"; then
+AC_MSG_WARN([Disabled doxygen!
+ - documentation will not be built]); fi
if test "$have_cppunit" = "no"; then
AC_MSG_WARN([Missing cppunit development library!
- you cannot check the library using "make check"
diff --git a/mrw-c++.spec.in b/mrw-c++.spec.in
index acf39e9..000de40 100644
--- a/mrw-c++.spec.in
+++ b/mrw-c++.spec.in
@@ -10,7 +10,7 @@
##
# rpmbuild -bb --clean @PACKAGENAME@.spec
-BuildRequires: gcc-c++ doxygen graphviz cppunit-devel boost-devel log4cxx-devel freefont te_latex
+BuildRequires: gcc-c++ doxygen graphviz cppunit-devel boost-devel log4cxx-devel freefont te_latex ghostscript-library tetex
Summary: MRW's C++ Class Library, facilities for modern C++ programming
Name: @PACKAGENAME@
Version: @MAJOR@.@MINOR@.@LEAST@
diff --git a/mrw/makefile.am b/mrw/makefile.am
index dd4ace4..e084988 100644
--- a/mrw/makefile.am
+++ b/mrw/makefile.am
@@ -22,9 +22,11 @@ CLEANFILES = doxygen.errors functiontrace_test.log \
examplesdir = $(pkgdatadir)/examples
dist_examples_DATA = $(top_srcdir)/mrw/examples/*
htmldir = $(pkgdatadir)/doc/html
-html_DATA = $(top_builddir)/doc/html/index.html
pdfdir = $(pkgdatadir)/doc/pdf
+if HAVE_DOXYGEN
+html_DATA = $(top_builddir)/doc/html/index.html
dist_pdf_DATA = $(top_builddir)/doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
+endif
lib_LTLIBRARIES = libmrw.la
if HAVE_BOOST_THREAD
@@ -385,14 +387,17 @@ $(html_DATA): doxyfile *.[ch]pp $(deps) style.css head.html foot.html
@test -f $(top_builddir)/doc/html/hintergrund.png || \
cp $(srcdir)/hintergrund.png \
$(top_builddir)/doc/html
- doxygen doxyfile
+ doxygen doxyfile || \
+ ( echo "**** ERROR in Doxygen ****" && cat doxygen.errors && false )
if PEDANTIC
test \! -s doxygen.errors
endif
$(top_builddir)/doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf: doxyfile *.[ch]pp $(deps) $(html_DATA)
cd $(top_builddir)/doc/latex && make && \
- mv refman.pdf @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
+ mv refman.pdf @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf || \
+ ( echo "**** ERROR in Doxygen-PDF ****" && \
+ cat refman.log && false )
clean-local:
- rm doxygen.err libmrw.doxytag
diff --git a/mrw/mrw.hpp.in b/mrw/mrw.hpp.in
index 40c7e81..06705fe 100644
--- a/mrw/mrw.hpp.in
+++ b/mrw/mrw.hpp.in
@@ -73,7 +73,7 @@
-# ./configure && make all install
- Source RPM Packages:
- @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.src.rpm
- - Installation:
sudo rpmbuild --rebuild @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.src.rpm
+ - Installation:@n sudo rpmbuild --rebuild @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.src.rpm
- Requirements to build from source:
- boost: http://boost.org
- cppunit: http://cppunit.sf.net
@@ -85,19 +85,19 @@
- Binary
- Binary RPM Packages (built on i586/SuSE):
- @PACKAGENAME@-minimal-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- - Minimal runtime package without debugging support.
Does not depend on boost and log4cxx and ltdl.
To be used e.g. with [[:Computer:Linux:Programme:Videorekorder]]
- - Installation:
rpm -Uvh @PACKAGENAME@-minimal-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
+ - Minimal runtime package without debugging support.@n Does not depend on boost and log4cxx and ltdl.@n To be used e.g. with [[:Computer:Linux:Programme:Videorekorder]]
+ - Installation:@n rpm -Uvh @PACKAGENAME@-minimal-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- Full runtime library, no multithreading.
- - Installation:
rpm -Uvh @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
+ - Installation:@n rpm -Uvh @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- @PACKAGENAME@-mt-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- Full runtime library, with multithreading support.
- - Installation:
rpm -Uvh @PACKAGENAME@-mt-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
+ - Installation:@n rpm -Uvh @PACKAGENAME@-mt-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- @PACKAGENAME@-devel-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- The package for developers.
- - Installation:
rpm -Uvh @PACKAGENAME@-devel-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
+ - Installation:@n rpm -Uvh @PACKAGENAME@-devel-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm
- Requirements:
- - Boost thread library for multi threading:
http://boost.org
+ - Boost thread library for multi threading:@n http://boost.org
- log4cxx for automated tracing and function traces:
- http://logging.apache.org/log4cxx
- RPM: log4cxx-0.9.7-3.i386.rpm