428
|
1 /* Flags indicating how lwlib was compiled.
|
|
2 Copyright (C) 1994 Lucid, Inc.
|
|
3
|
|
4 This file is part of the Lucid Widget Library.
|
|
5
|
|
6 The Lucid Widget Library is free software; you can redistribute it and/or
|
|
7 modify it under the terms of the GNU General Public License as published by
|
|
8 the Free Software Foundation; either version 2, or (at your option)
|
|
9 any later version.
|
|
10
|
|
11 The Lucid Widget Library is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 GNU General Public License for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
|
21 /* This is a kludge to make sure emacs can only link against a version of
|
|
22 lwlib that was compiled in the right way. Emacs references symbols which
|
|
23 correspond to the way it thinks lwlib was compiled, and if lwlib wasn't
|
|
24 compiled in that way, then somewhat meaningful link errors will result.
|
|
25 The alternatives to this range from obscure link errors, to obscure
|
|
26 runtime errors that look a lot like bugs. */
|
|
27
|
|
28 #include <config.h>
|
|
29 #include "lwlib.h"
|
|
30
|
|
31 #include <X11/Xlib.h> /* to get XlibSpecificationRelease */
|
|
32 #ifdef NEED_MOTIF
|
|
33 #include <Xm/Xm.h> /* to get XmVersion */
|
|
34 #endif
|
|
35
|
|
36 #if (XlibSpecificationRelease == 4)
|
|
37 int lwlib_uses_x11r4;
|
|
38 #elif (XlibSpecificationRelease == 5)
|
|
39 int lwlib_uses_x11r5;
|
|
40 #elif (XlibSpecificationRelease == 6)
|
|
41 int lwlib_uses_x11r6;
|
|
42 #else
|
|
43 int lwlib_uses_unknown_x11;
|
|
44 #endif
|
|
45
|
|
46 #ifdef NEED_MOTIF
|
|
47 int lwlib_uses_motif;
|
|
48 #else
|
|
49 int lwlib_does_not_use_motif;
|
|
50 #endif
|
|
51
|
|
52 #if (XmVersion >= 1002)
|
|
53 int lwlib_uses_motif_1_2;
|
|
54 #else
|
|
55 int lwlib_does_not_use_motif_1_2;
|
|
56 #endif
|
|
57
|
|
58 #ifdef LWLIB_MENUBARS_LUCID
|
|
59 int lwlib_menubars_lucid;
|
|
60 #else
|
|
61 # ifdef LWLIB_MENUBARS_MOTIF
|
|
62 int lwlib_menubars_motif;
|
|
63 # else
|
|
64 int lwlib_does_not_support_menubars;
|
|
65 # endif
|
|
66 #endif
|
|
67
|
|
68 #ifdef LWLIB_SCROLLBARS_LUCID
|
|
69 int lwlib_scrollbars_lucid;
|
|
70 #else
|
|
71 # ifdef LWLIB_SCROLLBARS_MOTIF
|
|
72 int lwlib_scrollbars_motif;
|
|
73 # else
|
|
74 # ifdef LWLIB_SCROLLBARS_ATHENA
|
|
75 int lwlib_scrollbars_athena;
|
|
76 # else
|
|
77 int lwlib_does_not_support_scrollbars;
|
|
78 # endif
|
|
79 # endif
|
|
80 #endif
|
|
81
|
|
82 #ifdef LWLIB_DIALOGS_MOTIF
|
|
83 int lwlib_dialogs_motif;
|
|
84 #else
|
|
85 # ifdef LWLIB_DIALOGS_ATHENA
|
|
86 int lwlib_dialogs_athena;
|
|
87 # else
|
|
88 int lwlib_does_not_support_dialogs;
|
|
89 # endif
|
|
90 #endif
|
|
91
|
|
92 #ifdef LWLIB_WIDGETS_MOTIF
|
|
93 int lwlib_widgets_motif;
|
|
94 #else
|
|
95 # ifdef LWLIB_WIDGETS_ATHENA
|
|
96 int lwlib_widgets_athena;
|
|
97 # else
|
|
98 int lwlib_does_not_support_widgets;
|
|
99 # endif
|
|
100 #endif
|