make sure we build, even if libxml2 could not be found.

This commit is contained in:
Mathieu Lacage
2009-03-09 19:40:29 +01:00
parent 8b0f4e7212
commit ebaaeb1403

View File

@@ -1,11 +1,14 @@
#include "config-store.h"
#include "xml-config.h"
#include "raw-text-config.h"
#include "ns3/string.h"
#include "ns3/log.h"
#include "ns3/simulator.h"
#include "ns3/enum.h"
#include "ns3/attribute-list.h"
#include "ns3/contrib-config.h"
#ifdef HAVE_LIBXML2
#include "xml-config.h"
#endif
#include <string>
#include <fstream>
@@ -58,6 +61,7 @@ ConfigStore::ConfigStore ()
{
ObjectBase::ConstructSelf (AttributeList ());
#ifdef HAVE_LIBXML2
if (m_fileFormat == ConfigStore::XML)
{
if (m_mode == ConfigStore::SAVE)
@@ -73,7 +77,9 @@ ConfigStore::ConfigStore ()
m_file = new NoneFileConfig ();
}
}
else if (m_fileFormat == ConfigStore::RAW_TEXT)
else
#endif /* HAVE_LIBXML2 */
if (m_fileFormat == ConfigStore::RAW_TEXT)
{
if (m_mode == ConfigStore::SAVE)
{