1 /* Flags indicating how lwlib was compiled.
2 Copyright (C) 1994 Lucid, Inc.
4 This file is part of the Lucid Widget Library.
6 The Lucid Widget Library is free software: you can redistribute it
7 and/or modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation, either version 3 of the
9 License, or (at your option) any later version.
11 The Lucid Widget Library is distributed in the hope that it will be
12 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 /* This is a kludge to make sure emacs can only link against a version of
20 lwlib that was compiled in the right way. Emacs references symbols which
21 correspond to the way it thinks lwlib was compiled, and if lwlib wasn't
22 compiled in that way, then somewhat meaningful link errors will result.
23 The alternatives to this range from obscure link errors, to obscure
24 runtime errors that look a lot like bugs. */
29 #include <X11/Xlib.h> /* to get XlibSpecificationRelease */
31 #include <Xm/Xm.h> /* to get XmVersion */
32 #endif /* NEED_MOTIF */
34 #if (XlibSpecificationRelease == 4)
36 #elif (XlibSpecificationRelease == 5)
38 #elif (XlibSpecificationRelease == 6)
41 int lwlib_uses_unknown_x11;
46 #if (XmVersion >= 1002 )
47 int lwlib_uses_motif_1_2;
49 int lwlib_does_not_use_motif_1_2;
52 int lwlib_does_not_use_motif;
53 int lwlib_does_not_use_motif_1_2;
54 #endif /* NEED_MOTIF */
56 #ifdef LWLIB_MENUBARS_LUCID
57 int lwlib_menubars_lucid;
59 # ifdef LWLIB_MENUBARS_MOTIF
60 int lwlib_menubars_motif;
62 int lwlib_does_not_support_menubars;
66 #ifdef LWLIB_SCROLLBARS_LUCID
67 int lwlib_scrollbars_lucid;
69 # ifdef LWLIB_SCROLLBARS_MOTIF
70 int lwlib_scrollbars_motif;
72 # ifdef LWLIB_SCROLLBARS_ATHENA
73 int lwlib_scrollbars_athena;
75 int lwlib_does_not_support_scrollbars;
80 #ifdef LWLIB_DIALOGS_MOTIF
81 int lwlib_dialogs_motif;
83 # ifdef LWLIB_DIALOGS_ATHENA
84 int lwlib_dialogs_athena;
86 int lwlib_does_not_support_dialogs;
90 #ifdef LWLIB_WIDGETS_MOTIF
91 int lwlib_widgets_motif;
93 # ifdef LWLIB_WIDGETS_ATHENA
94 int lwlib_widgets_athena;
96 int lwlib_does_not_support_widgets;