// $Id: odbc.mpb 1577 2009-05-07 15:44:53Z elliott_c $

project {
  specific(prop:windows) {
    // Out of the box, Windows supports ODBC since ODBC originated
    // on Windows. We, however, need to ensure that UnixODBC and
    // iODBC are not enabled. We may be able to drop the 'avoids'
    // statement.
    avoids += unixodbc iodbc
    lit_libs += odbc32 odbcbcp odbcCP32
  }
}

//=============================================================================
// Non-Windows support

feature(unixodbc) {
  // Support for UnixODBC (http://www.unixodbc.org). This is one
  // variant of porting ODBC to non-Windows systems.
  avoids += iodbc

  libpaths += $(UNIXODBC_ROOT)/lib
  includes += $(UNIXODBC_ROOT)/include

  lit_libs += odbc odbcinst
}

feature(iodbc) {
  // Support for UnixODBC (http://www.iodbc.org). This is one
  // variant of porting ODBC to non-Windows systems.
  avoids += unixodbc

  libpaths += $(IODBC_ROOT)/lib
  includes += $(IODBC_ROOT)/include

  lit_libs += iodbc iodbcinst
}
