Config.FreeBSD.pp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. //
  2. // Config.FreeBSD.pp
  3. //
  4. // This file defines some custom config variables for the FreeBSD
  5. // platform. It makes some initial guesses about compiler features,
  6. // etc.
  7. //
  8. // *******************************************************************
  9. // NOTE: you should not attempt to copy this file verbatim as your own
  10. // personal Config.pp file. Instead, you should start with an empty
  11. // Config.pp file, and add lines to it when you wish to override
  12. // settings given in here. In the normal ppremake system, this file
  13. // will always be read first, and then your personal Config.pp file
  14. // will be read later, which gives you a chance to override the
  15. // default settings found in this file. However, if you start by
  16. // copying the entire file, it will be difficult to tell which
  17. // settings you have customized, and it will be difficult to upgrade
  18. // to a subsequent version of Panda.
  19. // *******************************************************************
  20. #define IS_FREEBSD 1
  21. // What additional flags should we pass to interrogate?
  22. #define SYSTEM_IGATE_FLAGS -D__i386__ -D__const=const -D__LITTLE_ENDIAN__ -D__inline__=inline -D__GNUC__
  23. // Is the platform big-endian (like an SGI workstation) or
  24. // little-endian (like a PC)? Define this to the empty string to
  25. // indicate little-endian, or nonempty to indicate big-endian.
  26. #define WORDS_BIGENDIAN
  27. // Does the C++ compiler support namespaces?
  28. #define HAVE_NAMESPACE 1
  29. // Does the C++ compiler support ios::binary?
  30. #define HAVE_IOS_BINARY 1
  31. // How about the typename keyword?
  32. #define HAVE_TYPENAME 1
  33. // Will the compiler avoid inserting extra bytes in structs between a
  34. // base struct and its derived structs? It is safe to define this
  35. // false if you don't know, but if you know that you can get away with
  36. // this you may gain a tiny performance gain by defining this true.
  37. // If you define this true incorrectly, you will get lots of
  38. // assertion failures on execution.
  39. #define SIMPLE_STRUCT_POINTERS
  40. // Do we have a gettimeofday() function?
  41. #define HAVE_GETTIMEOFDAY 1
  42. // Does gettimeofday() take only one parameter?
  43. #define GETTIMEOFDAY_ONE_PARAM
  44. // Do we have getopt() and/or getopt_long_only() built into the
  45. // system?
  46. #define HAVE_GETOPT 1
  47. #define HAVE_GETOPT_LONG_ONLY
  48. // Are the above getopt() functions defined in getopt.h, or somewhere else?
  49. #define HAVE_GETOPT_H 1
  50. // Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
  51. #define IOCTL_TERMINAL_WIDTH 1
  52. // Do the system headers define a "streamsize" typedef? How about the
  53. // ios::binary enumerated value? And other ios typedef symbols like
  54. // ios::openmode and ios::fmtflags?
  55. #define HAVE_STREAMSIZE 1
  56. #define HAVE_IOS_BINARY 1
  57. #define HAVE_IOS_TYPEDEFS 1
  58. // Can we safely call getenv() at static init time?
  59. #define STATIC_INIT_GETENV 1
  60. // Can we read the file /proc/self/environ to determine our
  61. // environment variables at static init time?
  62. #define HAVE_PROC_SELF_ENVIRON
  63. // Do we have a global pair of argc/argv variables that we can read at
  64. // static init time? Should we prototype them? What are they called?
  65. #define HAVE_GLOBAL_ARGV
  66. #define PROTOTYPE_GLOBAL_ARGV
  67. #define GLOBAL_ARGV
  68. #define GLOBAL_ARGC
  69. // Can we read the file /proc/self/cmdline to determine our
  70. // command-line arguments at static init time?
  71. #define HAVE_PROC_SELF_CMDLINE
  72. // Should we include <iostream> or <iostream.h>? Define HAVE_IOSTREAM
  73. // to nonempty if we should use <iostream>, or empty if we should use
  74. // <iostream.h>.
  75. #define HAVE_IOSTREAM 1
  76. // Do we have a true stringstream class defined in <sstream>?
  77. #define HAVE_SSTREAM 1
  78. // Does fstream::open() require a third parameter, specifying the
  79. // umask? Versions of gcc prior to 3.2 had this.
  80. #define HAVE_OPEN_MASK
  81. // Do the compiler or system libraries define wchar_t for you?
  82. #define HAVE_WCHAR_T 1
  83. // Does <string> define the typedef wstring? Most do, but for some
  84. // reason, versions of gcc before 3.0 didn't do this.
  85. #define HAVE_WSTRING 1
  86. // Do we have <new>?
  87. #define HAVE_NEW 1
  88. // Do we have <io.h>?
  89. #define HAVE_IO_H
  90. // Do we have <malloc.h>?
  91. //#define HAVE_MALLOC_H
  92. #define HAVE_SYS_MALLOC_H 1
  93. // Do we have <alloca.h>?
  94. #define HAVE_ALLOCA_H
  95. // Do we have <locale.h>?
  96. #define HAVE_LOCALE_H 1
  97. // Do we have <minmax.h>?
  98. #define HAVE_MINMAX_H
  99. // Do we have <sys/types.h>?
  100. #define HAVE_SYS_TYPES_H 1
  101. #define HAVE_SYS_TIME_H 1
  102. // Do we have <unistd.h>?
  103. #define HAVE_UNISTD_H 1
  104. // Do we have <utime.h>?
  105. #define HAVE_UTIME_H 1
  106. // Do we have <dirent.h>?
  107. #define HAVE_DIRENT_H 1
  108. // Do we have <glob.h> (and do we want to use it instead of dirent.h)?
  109. #define HAVE_GLOB_H 1
  110. // Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  111. // interface)?
  112. #define HAVE_SYS_SOUNDCARD_H 1
  113. // Do we have <ucontext.h> (and therefore makecontext() / swapcontext())?
  114. #define HAVE_UCONTEXT_H
  115. // Do we have RTTI (and <typeinfo>)?
  116. #define HAVE_RTTI 1
  117. #define HAVE_POSIX_THREADS 1
  118. // Modern versions of gcc do support the latest STL allocator
  119. // definitions.
  120. #define USE_STL_ALLOCATOR 1
  121. // The dynamic library file extension (usually .so .dll or .dylib):
  122. #define DYNAMIC_LIB_EXT .so
  123. #define PYTHON_IPATH /usr/local/include/python2.4
  124. #define PYTHON_LPATH /usr/local/lib/python2.4
  125. #define SSL_IPATH /usr/local/openssl
  126. //#define SSL_097 1
  127. #define JPEG_IPATH /usr/local/include
  128. #define JPEG_LPATH /usr/local/lib
  129. #define PNG_IPATH /usr/local/include
  130. #define PNG_LPATH /usr/local/lib
  131. #define TIFF_IPATH /usr/local/include
  132. #define TIFF_LPATH /usr/local/lib
  133. #define CC ccache cc
  134. #define CXX ccache c++
  135. //#define LOCAL_INCS /usr/local/include
  136. //#define LOCAL_LIBS /usr/local/lib
  137. //#defer ipath $[ipath] /usr/local/include
  138. //#defer lpath $[lpath] /usr/local/lib
  139. #defer EXTRA_IPATH $[EXTRA_IPATH] /usr/local/include
  140. #defer EXTRA_LPATH $[EXTRA_LPATH] /usr/local/lib
  141. //#defer alt_ipath $[alt_ipath] /usr/local/include
  142. //#defer alt_lpath $[alt_lpath] /usr/local/lib