Index: /trunk/FACT++/configure
===================================================================
--- /trunk/FACT++/configure	(revision 10229)
+++ /trunk/FACT++/configure	(revision 10230)
@@ -18120,5 +18120,5 @@
 
 if test "x$want_boost" = "xyes"; then
-	boost_lib_version_req=1.42
+	boost_lib_version_req=1.40
 	boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
 	boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
Index: /trunk/FACT++/configure.ac
===================================================================
--- /trunk/FACT++/configure.ac	(revision 10229)
+++ /trunk/FACT++/configure.ac	(revision 10230)
@@ -120,5 +120,5 @@
 ######################################################################
 
-AX_BOOST_BASE([1.42], [],
+AX_BOOST_BASE([1.40], [],
    [
       echo "Error! The boost C++ libraries are not properly installed." 
Index: /trunk/FACT++/src/Configuration.cc
===================================================================
--- /trunk/FACT++/src/Configuration.cc	(revision 10229)
+++ /trunk/FACT++/src/Configuration.cc	(revision 10230)
@@ -264,8 +264,9 @@
 #include "Configuration.h"
 
+#include <fstream>
 #include <iostream>
 
 #include <boost/regex.hpp>
-#include <boost/filesystem.hpp>
+//#include <boost/filesystem.hpp>
 #include <boost/program_options.hpp>
 
@@ -759,4 +760,5 @@
 //!    - describe what happens in a more general way
 //!    - print a waring when no default coonfig file is read
+//!    - proper handling and error messages if files not available
 //
 const po::variables_map &Configuration::Parse(int argc, char **argv)
@@ -829,10 +831,12 @@
     const bool checkf    = !getfiles.count("dont-check-files") && !getfiles.count("dont-check");
     const bool defaulted = getfiles.count("default") && getfiles["default"].defaulted();
-    const bool exists    = boost::filesystem::exists(fDefaultFile);
-
+    //const bool exists    = boost::filesystem::exists(fDefaultFile);
+
+    ifstream indef(fDefaultFile.c_str());
+    // ===> FIXME: Proper handling of missing file or wrong file name
     const po::parsed_options parsed_defaultfile =
-        !exists && defaulted ?
+        !indef && defaulted ?
         po::parsed_options(&opt_configfile) :
-        po::parse_config_file<char>(fDefaultFile.c_str(), opt_configfile, !checkf);
+        po::parse_config_file<char>(indef, opt_configfile, !checkf);
 
     // ------------------------ (6) --------------------------
@@ -840,5 +844,5 @@
     if (getfiles.count("print-default") || getfiles.count("print-all"))
     {
-        if (!exists && defaulted)
+        if (!indef && defaulted)
             cout << "No configuration file by --default option specified." << endl;
         else
@@ -861,9 +865,9 @@
     }
 
-    //        cout << "PRIO : " << fPriorityFile << endl;
-
+    ifstream inpri(fPriorityFile.c_str());
+    // ===> FIXME: Proper handling of missing file or wrong file name
     const po::parsed_options parsed_priorityfile =
         fPriorityFile.empty() ? po::parsed_options(&opt_configfile) :
-        po::parse_config_file<char>(fPriorityFile.c_str(), opt_configfile, !checkf);
+        po::parse_config_file<char>(inpri, opt_configfile, !checkf);
 
     // ------------------------ (8) --------------------------
@@ -888,6 +892,4 @@
     po::store(parsed_defaultfile,  getdatabase);
 
-    //        cout << "NODB : " << getdatabase.count("no-database") << endl;
-
     if (getdatabase.count("database") && !getdatabase.count("no-database"))
     {
@@ -896,5 +898,4 @@
     }
 
-    //        cout << "DB   : " << fDatabase << endl;
     const bool checkdb = !getdatabase.count("dont-check-database") && !getdatabase.count("dont-check");
 
Index: /trunk/FACT++/src/argv.cc
===================================================================
--- /trunk/FACT++/src/argv.cc	(revision 10229)
+++ /trunk/FACT++/src/argv.cc	(revision 10230)
@@ -149,8 +149,10 @@
     catch (std::exception &e)
     {
+#if BOOST_VERSION > 104000
         po::multiple_occurrences *MO = dynamic_cast<po::multiple_occurrences*>(&e);
         if (MO)
             cout << "Error: " << e.what() << " of '" << MO->get_option_name() << "' option." << endl;
         else
+#endif
             cout << "Error: " << e.what() << endl;
         cout << endl;
Index: /trunk/FACT++/src/dclient5.cc
===================================================================
--- /trunk/FACT++/src/dclient5.cc	(revision 10229)
+++ /trunk/FACT++/src/dclient5.cc	(revision 10230)
@@ -491,8 +491,10 @@
     catch (std::exception &e)
     {
+#if BOOST_VERSION > 104000
         po::multiple_occurrences *MO = dynamic_cast<po::multiple_occurrences*>(&e);
         if (MO)
             cout << "Error: " << e.what() << " of '" << MO->get_option_name() << "' option." << endl;
         else
+#endif
             cout << "Error: " << e.what() << endl;
         cout << endl;
Index: /trunk/FACT++/src/test3.cc
===================================================================
--- /trunk/FACT++/src/test3.cc	(revision 10229)
+++ /trunk/FACT++/src/test3.cc	(revision 10230)
@@ -62,8 +62,10 @@
     catch (std::exception &e)
     {
+#if BOOST_VERSION > 104000
         po::multiple_occurrences *MO = dynamic_cast<po::multiple_occurrences*>(&e);
         if (MO)
             cout << "Error: " << e.what() << " of '" << MO->get_option_name() << "' option." << endl;
         else
+#endif
             cout << "Error: " << e.what() << endl;
         cout << endl;
