New_Package Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
New_Package_ConfigDefs.h
Go to the documentation of this file.
1 
2 //@HEADER
3 /*
4 ************************************************************************
5 
6  New_Package Example Package
7  Copyright (2004) Sandia Corporation
8 
9 Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
10 license for use of this work by or on behalf of the U.S. Government.
11 
12 This library is free software; you can redistribute it and/or modify
13 it under the terms of the GNU Lesser General Public License as
14 published by the Free Software Foundation; either version 2.1 of the
15 License, or (at your option) any later version.
16 
17 This library is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
21 
22 You should have received a copy of the GNU Lesser General Public
23 License along with this library; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
25 USA
26 Questions? Contact Michael A. Heroux (maherou@sandia.gov)
27 
28 ************************************************************************
29 */
30 //@HEADER
31 
32 #ifndef NEW_PACKAGE_CONFIGDEFS_H
33 #define NEW_PACKAGE_CONFIGDEFS_H
34 
35 #ifndef __cplusplus
36 #define __cplusplus
37 #endif
38 
39 /*
40  * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to
41  * be undef'd here to avoid warnings when this file is included from another package.
42  * KL 11/25/02
43  */
44 #ifdef PACKAGE
45 #undef PACKAGE
46 #endif
47 
48 #ifdef PACKAGE_NAME
49 #undef PACKAGE_NAME
50 #endif
51 
52 #ifdef PACKAGE_BUGREPORT
53 #undef PACKAGE_BUGREPORT
54 #endif
55 
56 #ifdef PACKAGE_STRING
57 #undef PACKAGE_STRING
58 #endif
59 
60 #ifdef PACKAGE_TARNAME
61 #undef PACKAGE_TARNAME
62 #endif
63 
64 #ifdef PACKAGE_VERSION
65 #undef PACKAGE_VERSION
66 #endif
67 
68 #ifdef VERSION
69 #undef VERSION
70 #endif
71 
72 #include <New_Package_config.h>
73 
74 #ifdef HAVE_MPI
75 #ifndef EPETRA_MPI
76 #define EPETRA_MPI
77 #endif
78 #endif
79 
80 #ifdef HAVE_CSTDLIB
81 #include <cstdlib>
82 #else
83 #include <stdlib.h>
84 #endif
85 
86 #ifdef HAVE_CSTDIO
87 #include <cstdio>
88 #else
89 #include <stdio.h>
90 #endif
91 
92 #ifdef HAVE_CASSERT
93 #include <cassert>
94 #else
95 #include <assert.h>
96 #endif
97 
98 #ifdef HAVE_STRING
99 #include <string>
100 #else
101 #include <string.h>
102 #endif
103 
104 #ifdef HAVE_IOSTREAM
105 #include <iostream>
106 #else
107 #include <iostream.h>
108 #endif
109 
110 /* Every line that begins with 'using' should eventually be dependent
111  on some check within the configure script */
112 
113 
114 #ifndef TFLOP
115 #ifdef HAVE_CMATH
116 #include <cmath>
117 #else
118 #include <math.h>
119 #endif
120 using namespace std;
121 #else /* TFLOP defined */
122 #ifdef HAVE_IOMANIP
123 #include <iomanip>
124 #else
125 #include <iomanip.h>
126 #endif
127 #ifdef HAVE_STRING
128 using std::string;
129 #endif
130 #ifdef HAVE_IOSTREAM
131 using std::istream;
132 using std::ostream;
133 using std::cerr;
134 using std::cout;
135 using std::endl;
136 #endif
137 #endif
138 
139 // Define DefultTracebackMode (HAVE_WARNING_MESSAGES and HAVE_FATAL_MESSAGES can be defined
140 // via the configure script command line)
141 
142 #endif /* NEW_PACKAGE_CONFIGDEFS_H */