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