EpetraExt_ConfigDefs.h

Go to the documentation of this file.
00001 
00002 //@HEADER
00003 // ***********************************************************************
00004 // 
00005 //     EpetraExt: Epetra Extended - Linear Algebra Services Package
00006 //                 Copyright (2001) Sandia Corporation
00007 // 
00008 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00009 // license for use of this work by or on behalf of the U.S. Government.
00010 // 
00011 // This library is free software; you can redistribute it and/or modify
00012 // it under the terms of the GNU Lesser General Public License as
00013 // published by the Free Software Foundation; either version 2.1 of the
00014 // License, or (at your option) any later version.
00015 //  
00016 // This library is distributed in the hope that it will be useful, but
00017 // WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019 // Lesser General Public License for more details.
00020 //  
00021 // You should have received a copy of the GNU Lesser General Public
00022 // License along with this library; if not, write to the Free Software
00023 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00024 // USA
00025 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00026 // 
00027 // ***********************************************************************
00028 //@HEADER
00029 
00030 #ifndef EPETRAEXT_CONFIGDEFS_H
00031 #define EPETRAEXT_CONFIGDEFS_H
00032 
00033 #ifndef __cplusplus
00034 #define __cplusplus
00035 #endif
00036 
00037 #ifdef HAVE_CONFIG_H
00038 
00039 /*
00040  * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to
00041  * be undef'd here to avoid warnings when this file is included from another package.
00042  * KL 11/25/02
00043  */
00044 #ifdef PACKAGE
00045 #undef PACKAGE
00046 #endif
00047 
00048 #ifdef PACKAGE_NAME
00049 #undef PACKAGE_NAME
00050 #endif
00051 
00052 #ifdef PACKAGE_BUGREPORT
00053 #undef PACKAGE_BUGREPORT
00054 #endif
00055 
00056 #ifdef PACKAGE_STRING
00057 #undef PACKAGE_STRING
00058 #endif
00059 
00060 #ifdef PACKAGE_TARNAME
00061 #undef PACKAGE_TARNAME
00062 #endif
00063 
00064 #ifdef PACKAGE_VERSION
00065 #undef PACKAGE_VERSION
00066 #endif
00067 
00068 #ifdef VERSION
00069 #undef VERSION
00070 #endif
00071 
00072 #include <EpetraExt_config.h>
00073 
00074 #ifdef HAVE_CSTDLIB
00075 #include <cstdlib>
00076 #elif defined(HAVE_STDLIB_H)
00077 #include <stdlib.h>
00078 #endif
00079 
00080 #ifdef HAVE_CSTDIO
00081 #include <cstdio>
00082 #endif
00083 #if defined(HAVE_STDIO_H)
00084 #include <stdio.h>
00085 #endif
00086 
00087 #ifdef HAVE_CASSERT
00088 #include <cassert>
00089 #elif defined(HAVE_ASSERT_H)
00090 #include <assert.h>
00091 #endif
00092 
00093 #ifdef HAVE_STRING
00094 #include <string>
00095 #elif defined(HAVE_STRING_H)
00096 #include <string.h>
00097 #endif
00098 
00099 #ifdef HAVE_IOSTREAM
00100 #include <iostream>
00101 #elif defined(HAVE_IOSTREAM_H)
00102 #include <iostream.h>
00103 #endif
00104 
00105 #ifdef HAVE_ALGORITHM
00106 #include <algorithm>
00107 #elif defined(HAVE_ALGO_H)
00108 #include <algo.h>
00109 #elif defined(HAVE_ALGORITHM_H)
00110 #include <algorithm.h>
00111 #endif
00112 
00113 /* Every line that begins with 'using' should eventually be dependent
00114    on some check within the configure script */
00115 
00116 #ifndef TFLOP
00117 
00118 #ifdef HAVE_CMATH
00119 #include <cmath>
00120 #else
00121 #include <math.h>
00122 #endif
00123 
00124 using namespace std;
00125 
00126 #else /* TFLOP defined */
00127 
00128 #ifdef HAVE_IOMANIP
00129 #include <iomanip>
00130 #else
00131 #include <iomanip.h>
00132 #endif
00133 
00134 #ifdef HAVE_STRING
00135 using std::string;
00136 #endif
00137 
00138 #ifdef HAVE_IOSTREAM
00139 using std::istream;
00140 using std::ostream;
00141 using std::cerr;
00142 using std::cout;
00143 using std::endl;
00144 #endif
00145 
00146 #endif
00147 
00148 /*-----------------------------------------------------------------------
00149   Must refine the following up to #else HAVE_CONFIG_H is not defined
00150   -----------------------------------------------------------------------*/
00151 
00152 #else /*HAVE_CONFIG_H is not defined*/
00153 
00154 #ifndef __cplusplus
00155 #define __cplusplus
00156 #endif
00157 
00158 #if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT)
00159 
00160 #include <stdlib.h>
00161 #include <stdio.h>
00162 #include <assert.h>
00163 #include <iostream>
00164 #include <math.h>
00165 #include <string>
00166 using namespace std;
00167 
00168 #elif defined(TFLOP)
00169 
00170 #include <stdlib.h>
00171 #include <stdio.h>
00172 #include <assert.h>
00173 #include <string>
00174 using std::string;
00175 #include <iostream>
00176 #include <iomanip>
00177 using std::istream;
00178 using std::ostream;
00179 using std::cerr;
00180 using std::cout;
00181 using std::endl;
00182 
00183 #else
00184 
00185 #include <cstdlib>
00186 #include <cstdio>
00187 #include <cassert>
00188 #include <iostream>
00189 #include <cmath>
00190 #include <string>
00191 using namespace std;
00192 
00193 #endif
00194 
00195 #endif
00196 
00197 #endif /* EPETRAEXT_CONFIGDEFS_H */

Generated on Thu Sep 18 12:31:43 2008 for EpetraExt by doxygen 1.3.9.1