config.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. /* config.h. Generated from configh.in by configure. */
  2. /*
  3. * "$Id: configh.in 6462 2008-10-19 01:42:35Z fabien $"
  4. *
  5. * Configuration file for the Fast Light Tool Kit (FLTK).
  6. * @configure_input@
  7. *
  8. * Copyright 1998-2007 by Bill Spitzak and others.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Library General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2 of the License, or (at your option) any later version.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Library General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Library General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  23. * USA.
  24. *
  25. * Please report all bugs and problems on the following page:
  26. *
  27. * http://www.fltk.org/str.php
  28. */
  29. /*
  30. * Where to find files...
  31. */
  32. #define FLTK_DATADIR ""
  33. #define FLTK_DOCDIR ""
  34. /*
  35. * BORDER_WIDTH:
  36. *
  37. * Thickness of FL_UP_BOX and FL_DOWN_BOX. Current 1,2, and 3 are
  38. * supported.
  39. *
  40. * 3 is the historic FLTK look.
  41. * 2 is the default and looks like Microsoft Windows, KDE, and Qt.
  42. * 1 is a plausible future evolution...
  43. *
  44. * Note that this may be simulated at runtime by redefining the boxtypes
  45. * using Fl::set_boxtype().
  46. */
  47. #define BORDER_WIDTH 2
  48. /*
  49. * HAVE_GL:
  50. *
  51. * Do you have OpenGL? Set this to 0 if you don't have or plan to use
  52. * OpenGL, and FLTK will be smaller.
  53. */
  54. #define HAVE_GL 1
  55. /*
  56. * HAVE_GL_GLU_H:
  57. *
  58. * Do you have the OpenGL Utility Library header file?
  59. * (many broken Mesa RPMs do not...)
  60. */
  61. #define HAVE_GL_GLU_H 1
  62. /*
  63. * HAVE_GLXGETPROCADDRESSARB:
  64. *
  65. * Do you have the OpenGL glXGetProcAddressARB() function?
  66. */
  67. #define HAVE_GLXGETPROCADDRESSARB 1
  68. /*
  69. * USE_COLORMAP:
  70. *
  71. * Setting this to zero will save a good deal of code (especially for
  72. * fl_draw_image), but FLTK will only work on TrueColor visuals.
  73. */
  74. #define USE_COLORMAP 0
  75. #if __linux
  76. /*
  77. * HAVE_XINERAMA
  78. *
  79. * Do we have the Xinerama library to support multi-head displays?
  80. */
  81. #define HAVE_XINERAMA 0
  82. /*
  83. * USE_XFT
  84. *
  85. * Use the new Xft library to draw anti-aliased text.
  86. */
  87. #define USE_XFT 1
  88. //#undef USE_XFT
  89. /*
  90. * HAVE_XDBE:
  91. *
  92. * Do we have the X double-buffer extension?
  93. */
  94. // seb: Disabled to remedy occasional black flickering on resize.
  95. // skid: TODO: fix clipping of windowclient and reenable
  96. #define HAVE_XDBE 0
  97. /*
  98. * USE_XDBE:
  99. *
  100. * Actually try to use the double-buffer extension?
  101. */
  102. #define USE_XDBE HAVE_XDBE
  103. /*
  104. * USE_QUARTZ:
  105. *
  106. * Use Quartz instead of Quickdraw on Apple Mac OS X machines.
  107. * FLTK was originally ported to Quickdraw which is no longer
  108. * supported by Apple. If USE_QUARTZ is defined, FLTK will be
  109. * compiled using Quartz instead. This flag has no meaning on
  110. * other operating systems.
  111. */
  112. /* #undef __APPLE_QUARTZ__ */
  113. /* #undef __APPLE_QD__ */
  114. /*
  115. * USE_X11
  116. *
  117. * Should we use X11 for the current platform
  118. *
  119. */
  120. #define USE_X11 1
  121. /*
  122. * HAVE_OVERLAY:
  123. *
  124. * Use the X overlay extension? FLTK will try to use an overlay
  125. * visual for Fl_Overlay_Window, the Gl_Window overlay, and for the
  126. * menus. Setting this to zero will remove a substantial amount of
  127. * code from FLTK. Overlays have only been tested on SGI servers!
  128. */
  129. #define HAVE_OVERLAY 0
  130. /*
  131. * HAVE_GL_OVERLAY:
  132. *
  133. * It is possible your GL has an overlay even if X does not. If so,
  134. * set this to 1.
  135. */
  136. #define HAVE_GL_OVERLAY HAVE_OVERLAY
  137. #if defined(__GLIBC_PREREQ)
  138. #if __GLIBC_PREREQ(2, 10)
  139. #define HAVE_SCANDIR_POSIX 1
  140. #endif
  141. #endif
  142. #elif __APPLE__
  143. #define USE_QUARTZ 1
  144. #define __APPLE_QUARTZ__ 1
  145. #define __APPLE_COCOA__ 1
  146. #endif
  147. /*
  148. * WORDS_BIGENDIAN:
  149. *
  150. * Byte order of your machine: 1 = big-endian, 0 = little-endian.
  151. */
  152. #define WORDS_BIGENDIAN 0
  153. /*
  154. * U16, U32, U64:
  155. *
  156. * Types used by fl_draw_image. One of U32 or U64 must be defined.
  157. * U16 is optional but FLTK will work better with it!
  158. */
  159. #define U16 unsigned short
  160. #define U32 unsigned
  161. /* #undef U64 */
  162. /*
  163. * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H, HAVE_SCANDIR:
  164. *
  165. * Where is <dirent.h> (used only by fl_file_chooser and scandir).
  166. */
  167. #define HAVE_DIRENT_H 1
  168. /* #undef HAVE_SYS_NDIR_H */
  169. /* #undef HAVE_SYS_DIR_H */
  170. /* #undef HAVE_NDIR_H */
  171. #if __linux || __APPLE__
  172. #define HAVE_SCANDIR 1
  173. #else
  174. #undef HAVE_SCANDIR
  175. #endif
  176. /*
  177. * Possibly missing sprintf-style functions:
  178. */
  179. #define HAVE_VSNPRINTF 1
  180. #define HAVE_SNPRINTF 1
  181. /*
  182. * String functions and headers...
  183. */
  184. #define HAVE_STRINGS_H 1
  185. #define HAVE_STRCASECMP 1
  186. /* #undef HAVE_STRLCAT */
  187. /* #undef HAVE_STRLCPY */
  188. /*
  189. * Do we have POSIX locale support?
  190. */
  191. #define HAVE_LOCALE_H 1
  192. #define HAVE_LOCALECONV 1
  193. /*
  194. * HAVE_SYS_SELECT_H:
  195. *
  196. * Whether or not select() call has its own header file.
  197. */
  198. #define HAVE_SYS_SELECT_H 1
  199. /*
  200. * HAVE_SYS_STDTYPES_H:
  201. *
  202. * Whether or not we have the <sys/stdtypes.h> header file.
  203. */
  204. /* #undef HAVE_SYS_STDTYPES_H */
  205. /*
  206. * USE_POLL:
  207. *
  208. * Use the poll() call provided on Linux and Irix instead of select()
  209. */
  210. #define USE_POLL 0
  211. /*
  212. * Do we have various image libraries?
  213. */
  214. #define HAVE_LIBPNG 1
  215. #define HAVE_LIBZ 1
  216. #undef HAVE_LIBJPEG
  217. /*
  218. * USE_CAIRO
  219. *
  220. * Do we have the cairo library available and want extended cairo use in fltk ?
  221. * will implies to link cairo.lib in all fltk based apps.
  222. */
  223. /* #undef USE_CAIRO */
  224. /*
  225. * HAVE_CAIRO
  226. *
  227. * Do we have the cairo library available?
  228. */
  229. /* #undef HAVE_CAIRO */
  230. /*
  231. * Which header file do we include for libpng?
  232. */
  233. #define HAVE_PNG_H 1
  234. /* #undef HAVE_LIBPNG_PNG_H */
  235. /*
  236. * Do we have the png_xyz() functions?
  237. */
  238. #define HAVE_PNG_GET_VALID 1
  239. #define HAVE_PNG_SET_TRNS_TO_ALPHA 1
  240. /*
  241. * Do we have POSIX threading?
  242. */
  243. #define HAVE_PTHREAD 1
  244. #define HAVE_PTHREAD_H 1
  245. /*
  246. * Do we have the ALSA library?
  247. */
  248. /* #undef HAVE_ALSA_ASOUNDLIB_H */
  249. /*
  250. * Do we have the long long type?
  251. */
  252. #define HAVE_LONG_LONG 1
  253. #ifdef HAVE_LONG_LONG
  254. # define FLTK_LLFMT "%lld"
  255. # define FLTK_LLCAST (long long)
  256. #else
  257. # define FLTK_LLFMT "%ld"
  258. # define FLTK_LLCAST (long)
  259. #endif /* HAVE_LONG_LONG */
  260. /*
  261. * Do we have the strtoll() function?
  262. */
  263. #define HAVE_STRTOLL 1
  264. #ifndef HAVE_STRTOLL
  265. # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
  266. #endif /* !HAVE_STRTOLL */
  267. /*
  268. * Do we have the dlsym() function and header?
  269. */
  270. #define HAVE_DLFCN_H 1
  271. #define HAVE_DLSYM 1
  272. /*
  273. * End of "$Id: configh.in 6462 2008-10-19 01:42:35Z fabien $".
  274. */