Config.osx.pp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. //
  2. // Config.osx.pp
  3. //
  4. // This file defines some custom config variables for the osx
  5. // platform. It makes some initial guesses about compiler features,
  6. // etc.
  7. //
  8. //#define PYTHON_IPATH /Library/Frameworks/Python.framework/Headers
  9. //#define PYTHON_LPATH /Library/Frameworks/Python.framework/Headers
  10. #define PYTHON_IPATH /Library/Frameworks/Python.framework/Headers
  11. #define HAVE_PYTHON 1
  12. #define PYTHON_FRAMEWORK Python
  13. // What additional flags should we pass to interrogate?
  14. #define SYSTEM_IGATE_FLAGS -D__ppc__ -D__const=const -Dvolatile -D__BIG_ENDIAN__ -D__inline__=inline -D__GNUC__
  15. #define HAVE_GL 1
  16. #define IS_OSX 1
  17. //#define ZLIB_IPATH /usr/include
  18. //#define ZLIB_LPATH /usr/lib/
  19. //#define ZLIB_LIBS libz.dylib
  20. #define HAVE_ZLIB 1
  21. #define HAVE_JPEG 1
  22. #define HAVE_FREETYPE 1
  23. #define PNG_IPATH /opt/local/include
  24. #define PNG_LPATH /opt/local/lib
  25. #define PNG_LIBS png
  26. //#define HAVE_PNG 1
  27. #define HAVE_OPENSSL 1
  28. // Is libfftw installed, and where?
  29. #define FFTW_IPATH /opt/local/include
  30. #define FFTW_LPATH /opt/local/lib
  31. #define FFTW_LIBS drfftw dfftw
  32. //#define HAVE_FFTW 1
  33. #define TIFF_IPATH /opt/local/include
  34. #define TIFF_LPATH /opt/local/lib
  35. // Is the platform big-endian (like an SGI workstation) or
  36. // little-endian (like a PC)? Define this to the empty string to
  37. // indicate little-endian, or nonempty to indicate big-endian.
  38. #define WORDS_BIGENDIAN 1
  39. // Does the C++ compiler support namespaces?
  40. #define HAVE_NAMESPACE 1
  41. // Does the C++ compiler support ios::binary?
  42. #define HAVE_IOS_BINARY 1
  43. // How about the typename keyword?
  44. #define HAVE_TYPENAME 1
  45. // Will the compiler avoid inserting extra bytes in structs between a
  46. // base struct and its derived structs? It is safe to define this
  47. // false if you don't know, but if you know that you can get away with
  48. // this you may gain a tiny performance gain by defining this true.
  49. // If you define this true incorrectly, you will get lots of
  50. // assertion failures on execution.
  51. #define SIMPLE_STRUCT_POINTERS
  52. // Do we have a gettimeofday() function?
  53. #define HAVE_GETTIMEOFDAY 1
  54. // Does gettimeofday() take only one parameter?
  55. #define GETTIMEOFDAY_ONE_PARAM
  56. // Do we have getopt() and/or getopt_long_only() built into the
  57. // system?
  58. #define HAVE_GETOPT 1
  59. #define HAVE_GETOPT_LONG_ONLY
  60. // Are the above getopt() functions defined in getopt.h, or somewhere else?
  61. #define HAVE_GETOPT_H 1
  62. // Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
  63. #define IOCTL_TERMINAL_WIDTH 1
  64. // Do the system headers define a "streamsize" typedef? How about the
  65. // ios::binary enumerated value? And other ios typedef symbols like
  66. // ios::openmode and ios::fmtflags?
  67. #define HAVE_STREAMSIZE 1
  68. #define HAVE_IOS_BINARY 1
  69. #define HAVE_IOS_TYPEDEFS 1
  70. // Can we safely call getenv() at static init time?
  71. #define STATIC_INIT_GETENV 1
  72. // Can we read the file /proc/self/environ to determine our
  73. // environment variables at static init time?
  74. #define HAVE_PROC_SELF_ENVIRON 1
  75. // Do we have a global pair of argc/argv variables that we can read at
  76. // static init time? Should we prototype them? What are they called?
  77. #define HAVE_GLOBAL_ARGV
  78. #define PROTOTYPE_GLOBAL_ARGV
  79. #define GLOBAL_ARGV __Argv
  80. #define GLOBAL_ARGC __Argc
  81. // Can we read the file /proc/self/cmdline to determine our
  82. // command-line arguments at static init time?
  83. #define HAVE_PROC_SELF_CMDLINE
  84. // Should we include <iostream> or <iostream.h>? Define HAVE_IOSTREAM
  85. // to nonempty if we should use <iostream>, or empty if we should use
  86. // <iostream.h>.
  87. #define HAVE_IOSTREAM 1
  88. // Do we have a true stringstream class defined in <sstream>?
  89. #define HAVE_SSTREAM 1
  90. // Does fstream::open() require a third parameter, specifying the
  91. // umask? Versions of gcc prior to 3.2 had this.
  92. #define HAVE_OPEN_MASK
  93. // Do the compiler or system libraries define wchar_t for you?
  94. #define HAVE_WCHAR_T 1
  95. // Does <string> define the typedef wstring? Most do, but for some
  96. // reason, versions of gcc before 3.0 didn't do this.
  97. #define HAVE_WSTRING 1
  98. // Do we have <new>?
  99. #define HAVE_NEW 1
  100. // Do we have <io.h>?
  101. #define HAVE_IO_H
  102. // Do we have <malloc.h>?
  103. #define HAVE_MALLOC_H 1
  104. // Do we have <alloca.h>?
  105. #define HAVE_ALLOCA_H 1
  106. // Do we have <locale.h>?
  107. #define HAVE_LOCALE_H 1
  108. // Do we have <minmax.h>?
  109. #define HAVE_MINMAX_H
  110. // Do we have <sys/types.h>?
  111. #define HAVE_SYS_TYPES_H 1
  112. #define HAVE_SYS_TIME_H 1
  113. // Do we have <unistd.h>?
  114. #define HAVE_UNISTD_H 1
  115. // Do we have <utime.h>?
  116. #define HAVE_UTIME_H 1
  117. // Do we have <dirent.h>?
  118. #define HAVE_DIRENT_H 1
  119. // Do we have <glob.h> (and do we want to use it instead of dirent.h)?
  120. #define HAVE_GLOB_H 1
  121. // Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  122. // interface)?
  123. #define HAVE_SYS_SOUNDCARD_H 1
  124. // Do we have RTTI (and <typeinfo>)?
  125. #define HAVE_RTTI 1
  126. // Must global operator new and delete functions throw exceptions?
  127. #define GLOBAL_OPERATOR_NEW_EXCEPTIONS 1
  128. // What is the syntax of the STL allocator declaration? See
  129. // LocalSetup.pp for allowable values.
  130. #define STL_ALLOCATOR MODERN
  131. // The dynamic library file extension (usually .so .dll or .dylib):
  132. #define DYNAMIC_LIB_EXT .dylib
  133. #define BUNDLE_EXT .so