From d790a3ad609feff06d36b77eac58bd1c0ab9eae8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 8 Mar 2005 16:08:38 +0000 Subject: [PATCH] (show_version): In the version page output all of the modules which support has been compiled in for. This will make tracking down certain problems much quicker. --- config.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/config.cc b/config.cc index 8f4c6e9e..3dda62de 100644 --- a/config.cc +++ b/config.cc @@ -1,4 +1,5 @@ #include "config.h" +#include "acconf.h" #include "option.h" #include "quotes.h" #include "walk.h" @@ -342,7 +343,7 @@ void parse_ledger_data(journal_t * journal, parser_t * cache_parser, } if (entry_count == 0) - throw error("Please specify ledger file using -f," + throw error("Please specify ledger file using -f" " or LEDGER_FILE environment variable."); VALIDATE(journal->valid()); @@ -351,12 +352,20 @@ void parse_ledger_data(journal_t * journal, parser_t * cache_parser, static void show_version(std::ostream& out) { out << "Ledger " << ledger::version << ", the command-line accounting tool"; -#ifdef USE_BOOST_PYTHON - out << " (Python support enabled)"; -#endif - out << "\n\nCopyright (c) 2003-2004, John Wiegley. All rights reserved.\n\n\ + out << "\n\nCopyright (c) 2003-2005, John Wiegley. All rights reserved.\n\n\ This program is made available under the terms of the BSD Public License.\n\ See LICENSE file included with the distribution for details and disclaimer.\n"; + out << "\n(modules: gmp, pcre"; +#ifdef USE_BOOST_PYTHON + out << ", python"; +#endif +#ifdef HAVE_XMLPARSE + out << ", xml"; +#endif +#ifdef HAVE_LIBOFX + out << ", ofx"; +#endif + out << ")\n"; } void option_full_help(std::ostream& out)