LocalSetup.pp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. //
  2. // LocalSetup.pp
  3. //
  4. // This file contains further instructions to set up the DTOOL package
  5. // when using ppremake. In particular, it creates the dtool_config.h
  6. // file based on the user's selected configure variables. This script
  7. // need not execute when BUILD_TYPE is "autoconf"; in this case, the
  8. // dtool_config.h file will automatically be correctly generated by
  9. // configure.
  10. //
  11. #print
  12. #print Configuring support for the following optional third-party packages:
  13. #if $[HAVE_OPENSSL]
  14. #print + OpenSSL
  15. #else
  16. #print - Did not find OpenSSL
  17. #endif
  18. #if $[HAVE_JPEG]
  19. #print + libjpeg
  20. #else
  21. #print - Did not find libjpeg
  22. #endif
  23. #if $[HAVE_PNG]
  24. #print + libpng
  25. #else
  26. #print - Did not find libpng
  27. #endif
  28. #if $[HAVE_TIFF]
  29. #print + libtiff
  30. #else
  31. #print - Did not find libtiff
  32. #endif
  33. #if $[HAVE_TAR]
  34. #print + libtar
  35. #else
  36. #print - Did not find libtar
  37. #endif
  38. #if $[HAVE_FFTW]
  39. #print + fftw
  40. #else
  41. #print - Did not find fftw
  42. #endif
  43. #if $[HAVE_SQUISH]
  44. #print + squish
  45. #else
  46. #print - Did not find squish
  47. #endif
  48. #if $[HAVE_CG]
  49. #print + Nvidia Cg High Level Shading Language
  50. #else
  51. #print - Did not find Nvidia Cg High Level Shading Language
  52. #endif
  53. #if $[HAVE_CGGL]
  54. #print + Cg OpenGL API
  55. #else
  56. #print - Did not find Cg OpenGL API
  57. #endif
  58. #if $[HAVE_CGDX8]
  59. #print + Cg DX8 API
  60. #else
  61. #print - Did not find Cg DX8 API
  62. #endif
  63. #if $[HAVE_CGDX9]
  64. #print + Cg DX9 API
  65. #else
  66. #print - Did not find Cg DX9 API
  67. #endif
  68. #if $[HAVE_CGDX10]
  69. #print + Cg DX10 API
  70. #else
  71. #print - Did not find Cg DX10 API
  72. #endif
  73. #if $[HAVE_VRPN]
  74. #print + VRPN
  75. #else
  76. #print - Did not find VRPN
  77. #endif
  78. #if $[HAVE_ZLIB]
  79. #print + zlib
  80. #else
  81. #print - Did not find zlib
  82. #endif
  83. #if $[HAVE_RAD_MSS]
  84. #print + Miles Sound System
  85. #else
  86. #print - Did not find Miles Sound System
  87. #endif
  88. #if $[HAVE_FMODEX]
  89. #print + FMOD Ex sound library
  90. #else
  91. #print - Did not find FMOD Ex sound library
  92. #endif
  93. #if $[HAVE_OPENAL]
  94. #print + OpenAL sound library
  95. #else
  96. #print - Did not find OpenAL sound library
  97. #endif
  98. #if $[HAVE_PHYSX]
  99. #print + Ageia PhysX
  100. #else
  101. #print - Did not find Ageia PhysX
  102. #endif
  103. #if $[HAVE_SPEEDTREE]
  104. #print + SpeedTree
  105. #else
  106. #print - Did not find SpeedTree
  107. #endif
  108. #if $[HAVE_GTK]
  109. #print + gtk+-2
  110. #else
  111. #print - Did not find gtk+-2
  112. #endif
  113. #if $[HAVE_FREETYPE]
  114. #print + Freetype
  115. #else
  116. #print - Did not find Freetype
  117. #endif
  118. #if $[HAVE_WX]
  119. #print + WxWidgets
  120. #else
  121. #print - Did not find WxWidgets
  122. #endif
  123. #if $[HAVE_FLTK]
  124. #print + FLTK
  125. #else
  126. #print - Did not find FLTK
  127. #endif
  128. #if $[HAVE_GL]
  129. #print + OpenGL
  130. #else
  131. #print - Did not find OpenGL
  132. #endif
  133. #if $[HAVE_GLES]
  134. #print + OpenGL ES 1
  135. #else
  136. #print - Did not find OpenGL ES 1
  137. #endif
  138. #if $[HAVE_GLES2]
  139. #print + OpenGL ES 2
  140. #else
  141. #print - Did not find OpenGL ES 2
  142. #endif
  143. #if $[HAVE_DX8]
  144. #print + DirectX8
  145. #else
  146. #print - Did not find DirectX8
  147. #endif
  148. #if $[HAVE_DX9]
  149. #print + DirectX9
  150. #else
  151. #print - Did not find DirectX9
  152. #endif
  153. #if $[HAVE_TINYDISPLAY]
  154. #print + Tinydisplay
  155. #else
  156. #print - Not building Tinydisplay
  157. #endif
  158. //#if $[HAVE_SDL]
  159. //#print + SDL
  160. //#else
  161. //#print - Did not find SDL
  162. //#endif
  163. #if $[HAVE_X11]
  164. #print + X11
  165. #else
  166. #print - Did not find X11
  167. #endif
  168. #if $[HAVE_MESA]
  169. #print + Mesa
  170. #else
  171. #print - Did not find Mesa
  172. #endif
  173. #if $[HAVE_OPENCV]
  174. #print + OpenCV
  175. #else
  176. #print - Did not find OpenCV
  177. #endif
  178. #if $[HAVE_FFMPEG]
  179. #if $[HAVE_SWSCALE]
  180. #print + FFMPEG, with libswscale
  181. #else
  182. #print + FFMPEG
  183. #endif
  184. #else
  185. #print - Did not find FFMPEG
  186. #endif
  187. #if $[HAVE_ODE]
  188. #print + ODE
  189. #else
  190. #print - Did not find ODE
  191. #endif
  192. #if $[HAVE_AWESOMIUM]
  193. #print + AWESOMIUM
  194. #else
  195. #print - Did not find AWESOMIUM
  196. #endif
  197. #if $[HAVE_MAYA]
  198. #print + OpenMaya
  199. #else
  200. #print - Did not find OpenMaya
  201. #endif
  202. #if $[HAVE_FCOLLADA]
  203. #print + FCollada
  204. #else
  205. #print - Did not find FCollada
  206. #endif
  207. #if $[or $[HAVE_COLLADA14DOM],$[HAVE_COLLADA15DOM]]
  208. #print + COLLADA DOM
  209. #else
  210. #print - Did not find COLLADA DOM
  211. #endif
  212. #if $[HAVE_ASSIMP]
  213. #print + Assimp
  214. #else
  215. #print - Did not find Assimp
  216. #endif
  217. #if $[HAVE_ARTOOLKIT]
  218. #print + ARToolKit
  219. #else
  220. #print - Did not find ARToolKit
  221. #endif
  222. #print
  223. #if $[and $[HAVE_INTERROGATE],$[HAVE_PYTHON]]
  224. #print Compilation will generate Python interfaces.
  225. #else
  226. #print Configuring Panda WITHOUT Python interfaces.
  227. #endif
  228. #if $[HAVE_THREADS]
  229. #if $[SIMPLE_THREADS]
  230. #print Compilation will include simulated threading support.
  231. #else
  232. #if $[DO_PIPELINING]
  233. #print Compilation will include full, pipelined threading support.
  234. #else
  235. #print Compilation will include nonpipelined threading support.
  236. #endif
  237. #endif
  238. #else
  239. #print Configuring Panda without threading support.
  240. #endif
  241. #print
  242. #print See dtool_config.h for more details about the specified configuration.
  243. #print
  244. // We don't include the ppremake version in the first comment line of
  245. // the output to dtool_config.h, below, to minimize unnecessary
  246. // complete rebuilds due to an updated ppremake version.
  247. #output dtool_config.h notouch
  248. #format straight
  249. /* dtool_config.h. Generated automatically by $[PPREMAKE] from $[SOURCEFILE]. */
  250. /* Debug / non-debug symbols. OPTIMIZE = $[OPTIMIZE] */
  251. #if $[<= $[OPTIMIZE],2]
  252. #define _DEBUG 1
  253. #elif $[= $[OPTIMIZE],4]
  254. #define NDEBUG 1
  255. #endif
  256. $[cdefine _DEBUG]
  257. $[cdefine NDEBUG]
  258. /* Define if we have Python installed. */
  259. $[cdefine HAVE_PYTHON]
  260. $[cdefine USE_DEBUG_PYTHON]
  261. /* Define if we have Python as a framework (Mac OS X). */
  262. $[cdefine PYTHON_FRAMEWORK]
  263. /* Define if we have RAD game tools, Miles Sound System installed. */
  264. $[cdefine HAVE_RAD_MSS]
  265. /* Define if we have FMODex installed. */
  266. $[cdefine HAVE_FMODEX]
  267. /* Define if we have OpenAL installed. */
  268. $[cdefine HAVE_OPENAL]
  269. /* Define if we have Freetype 2.0 or better available. */
  270. $[cdefine HAVE_FREETYPE]
  271. /* Define if we are using SpeedTree. */
  272. $[cdefine HAVE_SPEEDTREE]
  273. /* Define if we want to compile in a default font. */
  274. $[cdefine COMPILE_IN_DEFAULT_FONT]
  275. /* Define if we have Maya available. */
  276. $[cdefine HAVE_MAYA]
  277. $[cdefine MAYA_PRE_5_0]
  278. /* Define if we have SoftImage available. */
  279. $[cdefine HAVE_SOFTIMAGE]
  280. /* Define if we have FCollada available. */
  281. $[cdefine HAVE_FCOLLADA]
  282. /* Define if we have ARToolKit available. */
  283. $[cdefine HAVE_ARTOOLKIT]
  284. /* Define if we have OpenSSL installed. */
  285. $[cdefine HAVE_OPENSSL]
  286. $[cdefine REPORT_OPENSSL_ERRORS]
  287. /* Define if we have libjpeg installed. */
  288. $[cdefine HAVE_JPEG]
  289. $[cdefine PHAVE_JPEGINT_H]
  290. /* Define to build video-for-linux. */
  291. $[cdefine HAVE_VIDEO4LINUX]
  292. /* Define if we have libpng installed. */
  293. $[cdefine HAVE_PNG]
  294. /* Define if we have libtiff installed. */
  295. $[cdefine HAVE_TIFF]
  296. /* Define if we want to build these other image file formats. */
  297. $[cdefine HAVE_SGI_RGB]
  298. $[cdefine HAVE_TGA]
  299. $[cdefine HAVE_IMG]
  300. $[cdefine HAVE_SOFTIMAGE_PIC]
  301. $[cdefine HAVE_BMP]
  302. $[cdefine HAVE_PNM]
  303. /* Define if we have libtar installed. */
  304. $[cdefine HAVE_TAR]
  305. /* Define if we have libfftw installed. */
  306. $[cdefine HAVE_FFTW]
  307. /* Define if we have libsquish installed. */
  308. $[cdefine HAVE_SQUISH]
  309. /* Define if we have Berkeley DB installed. */
  310. $[cdefine HAVE_BDB]
  311. /* Define if we have VRPN installed. */
  312. $[cdefine HAVE_VRPN]
  313. /* Define if we have HELIX installed. */
  314. $[cdefine HAVE_HELIX]
  315. /* Define if we have CG installed. */
  316. $[cdefine HAVE_CG]
  317. /* Define if we have CGGL installed. */
  318. $[cdefine HAVE_CGGL]
  319. /* Define if we have CGDX8 installed. */
  320. $[cdefine HAVE_CGDX8]
  321. /* Define if we have CGDX9 installed. */
  322. $[cdefine HAVE_CGDX9]
  323. /* Define if we have CGDX10 installed. */
  324. $[cdefine HAVE_CGDX10]
  325. /* Define for dxerr.h instead of dxerr9.h. */
  326. $[cdefine USE_GENERIC_DXERR_LIBRARY]
  327. /* Define if we have zlib installed. */
  328. $[cdefine HAVE_ZLIB]
  329. /* Define if we have OpenGL installed and want to build for GL. */
  330. $[cdefine HAVE_GL]
  331. #if HAVE_GL
  332. # define MIN_GL_VERSION_MAJOR $[word 1,$[MIN_GL_VERSION]]
  333. # define MIN_GL_VERSION_MINOR $[word 2,$[MIN_GL_VERSION]]
  334. #endif
  335. /* Define if we have OpenGL ES installed and want to build for GLES. */
  336. $[cdefine HAVE_GLES]
  337. /* Define if we have OpenGL ES installed and want to build for GLES2. */
  338. $[cdefine HAVE_GLES2]
  339. /* Define if we have OpenCV installed and want to build for OpenCV. */
  340. $[cdefine HAVE_OPENCV]
  341. /* Define if we have FFMPEG installed and want to build for FFMPEG. */
  342. $[cdefine HAVE_FFMPEG]
  343. $[cdefine HAVE_SWSCALE]
  344. /* Define if we have ODE installed and want to build for ODE. */
  345. $[cdefine HAVE_ODE]
  346. /* Define if we have AWESOMIUM installed and want to build for AWESOMIUM. */
  347. $[cdefine HAVE_AWESOMIUM]
  348. /* Define if we have Mesa installed and want to build mesadisplay. */
  349. $[cdefine HAVE_MESA]
  350. $[cdefine MESA_MGL]
  351. #if HAVE_MESA
  352. # define MIN_MESA_VERSION_MAJOR $[word 1,$[MIN_MESA_VERSION]]
  353. # define MIN_MESA_VERSION_MINOR $[word 2,$[MIN_MESA_VERSION]]
  354. #endif
  355. /* Define if we have GLX installed and want to build for GLX. */
  356. $[cdefine HAVE_GLX]
  357. /* Define if we have EGL installed and want to build for EGL. */
  358. $[cdefine HAVE_EGL]
  359. /* Define if we have Windows-GL installed and want to build for Wgl. */
  360. $[cdefine HAVE_WGL]
  361. /* Define if we have DirectX installed and want to build for DX. */
  362. $[cdefine HAVE_DX8]
  363. /* Define if we have DirectX installed and want to build for DX. */
  364. $[cdefine HAVE_DX9]
  365. /* The choice of generic vs. the specific dxerr library largely
  366. depends on which SDK you have installed. */
  367. $[cdefine USE_GENERIC_DXERR_LIBRARY]
  368. /* Define if we want to build tinydisplay. */
  369. $[cdefine HAVE_TINYDISPLAY]
  370. /* Define if we have the SDL library. */
  371. $[cdefine HAVE_SDL]
  372. /* Define if we have X11. */
  373. $[cdefine HAVE_X11]
  374. /* Define if we have the XFree86-DGA extension. */
  375. $[cdefine HAVE_XF86DGA]
  376. /* Define if we have the XRandR extension. */
  377. $[cdefine HAVE_XRANDR]
  378. /* Define if we have the XCursor extension. */
  379. $[cdefine HAVE_XCURSOR]
  380. /* Define if we want to compile the threading code. */
  381. $[cdefine HAVE_THREADS]
  382. /* Define if we want to use fast, user-space simulated threads. */
  383. $[cdefine SIMPLE_THREADS]
  384. /* Define if SIMPLE_THREADS should be implemented with the OS-provided
  385. threading layer (if available). */
  386. $[cdefine OS_SIMPLE_THREADS]
  387. /* Define to enable deadlock detection, mutex recursion checks, etc. */
  388. $[cdefine DEBUG_THREADS]
  389. /* Define to implement mutexes and condition variables via a user-space spinlock. */
  390. $[cdefine MUTEX_SPINLOCK]
  391. /* Define to enable the PandaFileStream implementation of pfstream etc. */
  392. $[cdefine USE_PANDAFILESTREAM]
  393. /* Define if we want to compile the net code. */
  394. $[cdefine HAVE_NET]
  395. /* Define if we want to compile the egg code. */
  396. $[cdefine HAVE_EGG]
  397. /* Define if we want to compile the audio code. */
  398. $[cdefine HAVE_AUDIO]
  399. /* Define if we have bison and flex available. */
  400. $[cdefine HAVE_BISON]
  401. /* Define if we want to use PStats. */
  402. $[cdefine DO_PSTATS]
  403. /* Define if we want to type-check downcasts. */
  404. $[cdefine DO_DCAST]
  405. /* Define if we want to provide collision system recording and
  406. visualization tools. */
  407. $[cdefine DO_COLLISION_RECORDING]
  408. /* Define if we want to enable track-memory-usage. */
  409. $[cdefine DO_MEMORY_USAGE]
  410. /* Define if we want to enable min-lag and max-lag. */
  411. $[cdefine SIMULATE_NETWORK_DELAY]
  412. /* Define if we want to allow immediate mode OpenGL rendering. */
  413. $[cdefine SUPPORT_IMMEDIATE_MODE]
  414. /* Define if we want to compile in support for pipelining. */
  415. $[cdefine DO_PIPELINING]
  416. /* Define if we want to keep Notify debug messages around, or undefine
  417. to compile them out. */
  418. $[cdefine NOTIFY_DEBUG]
  419. /* Define if we want to export template classes from the DLL. Only
  420. makes sense to MSVC++. */
  421. $[cdefine EXPORT_TEMPLATES]
  422. /* Define if we are linking PANDAPHYSX in with PANDA. */
  423. $[cdefine LINK_IN_PHYSX]
  424. /* The compiled-in character(s) to expect to separate different
  425. components of a path list (e.g. $PRC_PATH). */
  426. # define DEFAULT_PATHSEP "$[DEFAULT_PATHSEP]"
  427. /* Many of the prc variables are exported by
  428. dtool/src/prc/prc_parameters.h.pp, instead of here. Only those prc
  429. variables that must be visible outside of the prc directory are
  430. exported here. */
  431. /* The filename that specifies the public keys to import into
  432. config. */
  433. # define PRC_PUBLIC_KEYS_FILENAME "$[unixfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  434. #if $[PRC_PUBLIC_KEYS_FILENAME]
  435. # define PRC_PUBLIC_KEYS_INCLUDE "$[osfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  436. #endif
  437. /* Define if you want to save the descriptions for ConfigVariables. */
  438. $[cdefine PRC_SAVE_DESCRIPTIONS]
  439. /* Define if your processor stores words with the most significant
  440. byte first (like Motorola and SPARC, unlike Intel and VAX). */
  441. $[cdefine WORDS_BIGENDIAN]
  442. /* Define if the C++ compiler uses namespaces. */
  443. $[cdefine HAVE_NAMESPACE]
  444. /* Define if fstream::open() accepts a third parameter for umask. */
  445. $[cdefine HAVE_OPEN_MASK]
  446. /* Define if some header file defines wchar_t. */
  447. $[cdefine HAVE_WCHAR_T]
  448. /* Define if the <string> header file defines wstring. */
  449. $[cdefine HAVE_WSTRING]
  450. /* Define if the C++ compiler supports the typename keyword. */
  451. $[cdefine HAVE_TYPENAME]
  452. /* Define if we can trust the compiler not to insert extra bytes in
  453. structs between base structs and derived structs. */
  454. $[cdefine SIMPLE_STRUCT_POINTERS]
  455. /* Define if we have Dinkumware STL installed. */
  456. $[cdefine HAVE_DINKUM]
  457. /* Define if we have STL hash_map etc. available */
  458. $[cdefine HAVE_STL_HASH]
  459. /* Define if we have a gettimeofday() function. */
  460. $[cdefine HAVE_GETTIMEOFDAY]
  461. /* Define if gettimeofday() takes only one parameter. */
  462. $[cdefine GETTIMEOFDAY_ONE_PARAM]
  463. /* Define if you have the getopt function. */
  464. $[cdefine HAVE_GETOPT]
  465. /* Define if you have the getopt_long_only function. */
  466. $[cdefine HAVE_GETOPT_LONG_ONLY]
  467. /* Define if getopt appears in getopt.h. */
  468. $[cdefine PHAVE_GETOPT_H]
  469. /* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
  470. $[cdefine IOCTL_TERMINAL_WIDTH]
  471. /* Do the system headers define a "streamsize" typedef? */
  472. $[cdefine HAVE_STREAMSIZE]
  473. /* Do the system headers define key ios typedefs like ios::openmode
  474. and ios::fmtflags? */
  475. $[cdefine HAVE_IOS_TYPEDEFS]
  476. /* Define if the C++ iostream library defines ios::binary. */
  477. $[cdefine HAVE_IOS_BINARY]
  478. /* Can we safely call getenv() at static init time? */
  479. $[cdefine STATIC_INIT_GETENV]
  480. /* Can we read the file /proc/self/[*] to determine our
  481. environment variables at static init time? */
  482. $[cdefine HAVE_PROC_SELF_EXE]
  483. $[cdefine HAVE_PROC_SELF_MAPS]
  484. $[cdefine HAVE_PROC_SELF_ENVIRON]
  485. $[cdefine HAVE_PROC_SELF_CMDLINE]
  486. $[cdefine HAVE_PROC_CURPROC_FILE]
  487. $[cdefine HAVE_PROC_CURPROC_MAP]
  488. $[cdefine HAVE_PROC_CURPROC_CMDLINE]
  489. /* Do we have a global pair of argc/argv variables that we can read at
  490. static init time? Should we prototype them? What are they called? */
  491. $[cdefine HAVE_GLOBAL_ARGV]
  492. $[cdefine PROTOTYPE_GLOBAL_ARGV]
  493. $[cdefine GLOBAL_ARGV]
  494. $[cdefine GLOBAL_ARGC]
  495. /* Define if you have the <io.h> header file. */
  496. $[cdefine PHAVE_IO_H]
  497. /* Define if you have the <iostream> header file. */
  498. $[cdefine PHAVE_IOSTREAM]
  499. /* Define if you have the <malloc.h> header file. */
  500. $[cdefine PHAVE_MALLOC_H]
  501. /* Define if you have the <sys/malloc.h> header file. */
  502. $[cdefine PHAVE_SYS_MALLOC_H]
  503. /* Define if you have the <alloca.h> header file. */
  504. $[cdefine PHAVE_ALLOCA_H]
  505. /* Define if you have the <locale.h> header file. */
  506. $[cdefine PHAVE_LOCALE_H]
  507. /* Define if you have the <string.h> header file. */
  508. $[cdefine PHAVE_STRING_H]
  509. /* Define if you have the <stdlib.h> header file. */
  510. $[cdefine PHAVE_STDLIB_H]
  511. /* Define if you have the <limits.h> header file. */
  512. $[cdefine PHAVE_LIMITS_H]
  513. /* Define if you have the <minmax.h> header file. */
  514. $[cdefine PHAVE_MINMAX_H]
  515. /* Define if you have the <sstream> header file. */
  516. $[cdefine PHAVE_SSTREAM]
  517. /* Define if you have the <new> header file. */
  518. $[cdefine PHAVE_NEW]
  519. /* Define if you have the <sys/types.h> header file. */
  520. $[cdefine PHAVE_SYS_TYPES_H]
  521. /* Define if you have the <sys/time.h> header file. */
  522. $[cdefine PHAVE_SYS_TIME_H]
  523. /* Define if you have the <unistd.h> header file. */
  524. $[cdefine PHAVE_UNISTD_H]
  525. /* Define if you have the <utime.h> header file. */
  526. $[cdefine PHAVE_UTIME_H]
  527. /* Define if you have the <glob.h> header file. */
  528. $[cdefine PHAVE_GLOB_H]
  529. /* Define if you have the <dirent.h> header file. */
  530. $[cdefine PHAVE_DIRENT_H]
  531. /* Define if you have the <drfftw.h> header file. */
  532. $[cdefine PHAVE_DRFFTW_H]
  533. /* Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  534. interface)? */
  535. $[cdefine PHAVE_SYS_SOUNDCARD_H]
  536. /* Do we have <ucontext.h> (and therefore makecontext() /
  537. swapcontext())? */
  538. $[cdefine PHAVE_UCONTEXT_H]
  539. /* Do we have <linux/input.h> ? This enables us to use raw mouse input. */
  540. $[cdefine PHAVE_LINUX_INPUT_H]
  541. /* Do we have <stdint.h>? */
  542. $[cdefine PHAVE_STDINT_H]
  543. /* Do we have RTTI (and <typeinfo>)? */
  544. $[cdefine HAVE_RTTI]
  545. /* Do we have Posix threads? */
  546. $[cdefine HAVE_POSIX_THREADS]
  547. /* Is the code being compiled with the Tau profiler's instrumentor? */
  548. $[cdefine USE_TAU]
  549. /* Define if needed to have 64-bit file i/o */
  550. $[cdefine __USE_LARGEFILE64]
  551. /* Which memory allocation scheme should we use? */
  552. #define USE_MEMORY_DLMALLOC
  553. #define USE_MEMORY_PTMALLOC2
  554. #define USE_MEMORY_MALLOC
  555. #define USE_MEMORY_NOWRAPPERS
  556. #if $[ALTERNATIVE_MALLOC]
  557. #if $[and $[WIN32_PLATFORM], $[HAVE_THREADS], $[not $[SIMPLE_THREADS]]]
  558. // A fast thread-safe alternative implementation, but which only
  559. // seems to be a good choice on Windows. (It crashes on Linux and
  560. // isn't thread-safe on OSX).
  561. #set USE_MEMORY_PTMALLOC2 1
  562. #else
  563. // A faster, but non-thread-safe, alternative implementation.
  564. // When threading support is compiled in, we use a global mutex to
  565. // protect it.
  566. #set USE_MEMORY_DLMALLOC 1
  567. #endif
  568. #else
  569. #if $[DO_MEMORY_USAGE]
  570. // Redefine new and delete to malloc(), and also provide hooks for
  571. // the benefit of the MemoryUsage class.
  572. #set USE_MEMORY_MALLOC 1
  573. #else
  574. // Don't redefine new and delete at all.
  575. #set USE_MEMORY_NOWRAPPERS 1
  576. #endif
  577. #endif
  578. $[cdefine USE_MEMORY_DLMALLOC]
  579. $[cdefine USE_MEMORY_PTMALLOC2]
  580. $[cdefine USE_MEMORY_MALLOC]
  581. $[cdefine USE_MEMORY_NOWRAPPERS]
  582. // To activate the DELETED_CHAIN macros.
  583. $[cdefine USE_DELETED_CHAIN]
  584. // If we are to build the native net interfaces.
  585. $[cdefine WANT_NATIVE_NET]
  586. /* Turn off warnings for using scanf and such */
  587. #if $[or $[eq $[USE_COMPILER],MSVC9], $[eq $[USE_COMPILER],MSVC9x64]]
  588. #print Will ignore CRT_SECURE warnings for MSVC9
  589. $[cdefine _CRT_SECURE_NO_WARNINGS]
  590. # pragma warning( disable : 4996 4275 4267 4099 4049 4013 4005 )
  591. #endif
  592. /* Can we define a modern-style STL allocator? */
  593. $[cdefine USE_STL_ALLOCATOR]
  594. /* Static linkage instead of the normal dynamic linkage? */
  595. $[cdefine LINK_ALL_STATIC]
  596. /* Define to compile the plugin code. */
  597. $[cdefine HAVE_P3D_PLUGIN]
  598. /* Platform-identifying defines. */
  599. $[cdefine IS_OSX]
  600. $[cdefine IS_LINUX]
  601. $[cdefine IS_FREEBSD]
  602. $[cdefine BUILD_IPHONE]
  603. $[cdefine UNIVERSAL_BINARIES]
  604. #if $[DTOOL_PLATFORM]
  605. # define DTOOL_PLATFORM "$[DTOOL_PLATFORM]"
  606. #endif
  607. #end dtool_config.h