summaryrefslogtreecommitdiff
path: root/bin/envinfo.cpp
blob: 8d25afd91a75705d1c0d0e3c56ea9d769b4df006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// $Id$

#include "ace/ACE.h"

ACE_RCSID(bin, envinfo, "$Id$")

int
main (int, ASYS_TCHAR *[])
{
  cerr << "ACE: "
       << ACE::major_version() << "."
       << ACE::minor_version() << "."
       << ACE::beta_version() << "\n";

  struct utsname uname;
  ACE_OS::uname(&uname);
  cerr << "OS: "
       << uname.sysname << " "
       << uname.release << "\n";

  cerr << "Compiler: "
       << ACE::compiler_name() << " "
       << ACE::compiler_major_version() << "."
       << ACE::compiler_minor_version() << "."
       << ACE::compiler_beta_version() << "\n";

  return 0;
}