DyLP trunk
DylpConfig.h
Go to the documentation of this file.
00001 /*
00002   This file is part of the support library for the Dylp LP distribution.
00003 
00004         Copyright (C) 2005 -- 2007 Lou Hafer
00005 
00006         School of Computing Science
00007         Simon Fraser University
00008         Burnaby, B.C., V5A 1S6, Canada
00009         lou@cs.sfu.ca
00010 
00011   This code is licensed under the terms of the Eclipse Public License (EPL).
00012 
00013   Include file for the configuration of Dylp.
00014 
00015   On systems where the code is configured with the configure script (i.e.,
00016   compilation is always done with HAVE_CONFIG_H defined), this header file
00017   includes the automatically generated header file config_dylp.h, then
00018   undefines macros that might configure with other ProjConfig.h files.
00019 
00020   On systems that are compiled in other ways (e.g., with the Developer
00021   Studio), the header file configall_system.h is included to define those
00022   macros that depend on the operating system and the compiler, followed by
00023   the defines used for configuration of dylp. A user can modify the default
00024   settings by editing this file.
00025 */
00026 
00027 #ifndef __DYLPCONFIG_H__
00028 #define __DYLPCONFIG_H__
00029 
00030 #ifdef HAVE_CONFIG_H
00031 #include "config_dylp.h"
00032 
00033 /*
00034   Undefine macros that could conflict with those in other config.h files
00035 */
00036 
00037 #undef PACKAGE
00038 #undef PACKAGE_BUGREPORT
00039 #undef PACKAGE_NAME
00040 #undef PACKAGE_STRING
00041 #undef PACKAGE_TARNAME
00042 #undef PACKAGE_VERSION
00043 #undef VERSION
00044 
00045 #else /* HAVE_CONFIG_H */
00046 
00047 /*
00048   Include the COIN-wide system specific configure header (usually in
00049   BuildTools/inc).
00050 */
00051 
00052 //include "configall_system.h"
00053 #include <float.h>
00054 
00055 /*
00056   Dylp version. The quotes are part of the definition.
00057 */
00058 #define DYLP_VERSION "trunk"
00059 
00060 /*
00061   Defines specific to dylp.
00062 */
00063 
00064 /*
00065   Define to the C type corresponding to the C++ bool type. `char' is
00066   correct on many systems. The next most likely choice is int.
00067 */
00068 #define BOOL char
00069 
00070 /*
00071   Define to the debug sanity check level (0 is no test)
00072 */
00073 #define COIN_DYLP_CHECKLEVEL 0
00074 
00075 /*
00076   But dylp was developed long before COIN came into being, so if you really
00077   want the paranoid checks, define DYLP_PARANOIA. The value isn't important.
00078 */
00079 /* #define DYLP_PARANOIA 1 */
00080 
00081 /*
00082   Define to the debug verbosity level (0 is no output)
00083 */
00084 #define COIN_DYLP_VERBOSITY 0
00085 /*
00086   But dylp was developed long before COIN came into being, so if you
00087   want informational printing, DO NOT define DYLP_NDEBUG. The value isn't
00088   important.
00089 */
00090 /* #undef DYLP_NDEBUG 1 */
00091 
00092 /*
00093   Define this variable to enable dylp's statistics collection features.
00094 */
00095 #define DYLP_STATISTICS 1
00096 
00097 /*
00098   Define to 1 if the DyLP package is available.
00099 */
00100 #define COIN_HAS_DYLP 1
00101 
00102 /*
00103   Set to the full path directory name for the location of the error text
00104    message file dy_errmsgs.txt. This file is distributed with dylp source and
00105    not normally installed elsewhere. An absolute path to DyLP/src/Dylp/ is
00106    appropriate. The string should end with a directory separator ("/" or "\",
00107    depending on your system). The surrounding quotes are part of the
00108    definition. There is no good default; the value given here will work from
00109    the test directory, on a windows system, which seems the most likely
00110    environment to be using this part of DylpConfig.h.
00111 */
00112 #ifndef DYLP_ERRMSGDIR
00113 #define DYLP_ERRMSGDIR "..\\src\\Dylp\\"
00114 #endif
00115 
00116 /*
00117   Define this symbol if your system is `big-endian', i.e., the most significant
00118   byte of a multibyte quantity is stored in the lowest byte address. Intel x86
00119   systems are little-endian. SPARC and Motorola are big-endian.
00120 */
00121 /* #define WORDS_BIGENDIAN 1 */
00122 
00123 /*
00124   Define this symbol if the quiet_nan function exists. This function should
00125   return the bit pattern for IEEE quiet NaN.
00126 */
00127 /* #define DYLP_HAS_QUIET_NAN 1 */
00128 
00129 /*
00130   Define to be the name of the C function used to check that an IEEE floating
00131   point value is finite. Common possibilities are finite, _finite, and
00132   isfinite. _finite is correct for MSVC, which is the most likely place for
00133   this to be used.
00134 */
00135 #define DYLP_ISFINITE _finite
00136 
00137 /*
00138   Define to be the name of the C function used to check that an IEEE floating
00139   point value is NaN. Common possibilities are isnan and _isnan. _isnan for
00140   MSVC, as per _finite.
00141 */
00142 #define DYLP_ISNAN _isnan
00143 
00144 /*
00145   Define to 1 if sunmath.h exists. As you might guess, define this only on a
00146   Sun/Solaris system. And really, if you're building on Sun, why are you
00147   using this part of the configuration file? Run configure!
00148 */
00149 /* #define HAVE_SUNMATH_H 1 */
00150 
00151 #endif /* HAVE_CONFIG_H */
00152 
00153 #endif /*__DYLPCONFIG_H__*/
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines