ROSE 0.11.145.147
rose_paths.h
1#ifndef ROSE_PATHS_H
2#define ROSE_PATHS_H
3
4// DQ (4/21/2009): If this is not set then set it here.
5// For most of ROSE usage this is set in sage3.h, but initial
6// construction or ROSETTA used to generate ROSE requires
7// it as well.
8#if !defined(_FILE_OFFSET_BITS)
9 #define _FILE_OFFSET_BITS 64
10#endif
11
12// PP (7/1/19): Solaris in 32bit uses _FILE_OFFSET_BITS 32
13#if !defined(__sun)
14// DQ (4/21/2009): This must be set before sys/stat.h is included by any other header file.
15// Use of _FILE_OFFSET_BITS macro is required on 32-bit systems to control the size of "struct stat"
16#if !(defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64))
17 #error "The _FILE_OFFSET_BITS macro should be set before any sys/stat.h is included by any other header file!"
18#endif
19#endif /* __sun */
20
21#include <string>
22#include "rosedll.h"
23
24ROSE_UTIL_API extern const std::string ROSE_GFORTRAN_PATH;
25ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_TOP_SRCDIR;
26ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_TOP_BUILDDIR;
27ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_PREFIX;
28ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_DATADIR;
29ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_BINDIR;
30ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_INCLUDEDIR;
31ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_INFODIR;
32ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_LIBDIR;
33ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_LIBEXECDIR;
34ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_LOCALSTATEDIR;
35ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_MANDIR;
36
37ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_ABSOLUTE_PATH_TOP_SRCDIR;
38
39/* Additional interesting data to provide */
40ROSE_UTIL_API extern const std::string ROSE_CONFIGURE_DATE;
41ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_BUILD_OS;
42ROSE_UTIL_API extern const std::string ROSE_AUTOMAKE_BUILD_CPU;
43ROSE_UTIL_API extern const std::string ROSE_OFP_VERSION_STRING;
44
60extern const unsigned long ROSE_NUMERIC_VERSION;
61
62
63// DQ (5/2/2009): This is temporary while we work out the details of the new Graph IR nodes.
64// #define USING_GRAPH_IR_NODES_FOR_BACKWARD_COMPATABILITY 0
65
66//#ifdef ROSE_USE_NEW_GRAPH_NODES
67//#ifndef ROSE_USING_GRAPH_IR_NODES_FOR_BACKWARD_COMPATABILITY
68//#warning "ROSE_USING_GRAPH_IR_NODES_FOR_BACKWARD_COMPATABILITY IS NOT SET"
69//#endif
70//#endif
71
72
73#endif /* ROSE_PATHS_H */
74