0
|
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
|
14
|
17 along with XEmacs; see the file COPYING. If not, write to
|
12
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
0
|
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
|
14
|
26 runtime errors that look a lot like bugs. */
|
0
|
27
|
|
28 #include "lwlib.h"
|
|
29
|
|
30 #include <X11/Xlib.h> /* to get XlibSpecificationRelease */
|
|
31 #ifdef NEED_MOTIF
|
|
32 #include <Xm/Xm.h> /* to get XmVersion */
|
|
33 #endif
|
|
34
|
|
35 #if (XlibSpecificationRelease == 4)
|
|
36 int lwlib_uses_x11r4;
|
|
37 #elif (XlibSpecificationRelease == 5)
|
|
38 int lwlib_uses_x11r5;
|
|
39 #elif (XlibSpecificationRelease == 6)
|
|
40 int lwlib_uses_x11r6;
|
|
41 #else
|
|
42 int lwlib_uses_unknown_x11;
|
|
43 #endif
|
|
44
|
|
45 #ifdef NEED_MOTIF
|
|
46 int lwlib_uses_motif;
|
|
47 #else
|
|
48 int lwlib_does_not_use_motif;
|
|
49 #endif
|
|
50
|
|
51 #if (XmVersion >= 1002)
|
|
52 int lwlib_uses_motif_1_2;
|
|
53 #else
|
|
54 int lwlib_does_not_use_motif_1_2;
|
|
55 #endif
|
|
56
|
|
57 #ifdef MENUBARS_LUCID
|
|
58 int lwlib_menubars_lucid;
|
|
59 #else
|
|
60 # ifdef MENUBARS_MOTIF
|
|
61 int lwlib_menubars_motif;
|
|
62 # else
|
|
63 int lwlib_does_not_support_menubars;
|
|
64 # endif
|
|
65 #endif
|
|
66
|
|
67 #ifdef SCROLLBARS_LUCID
|
|
68 int lwlib_scrollbars_lucid;
|
|
69 #else
|
|
70 # ifdef SCROLLBARS_MOTIF
|
|
71 int lwlib_scrollbars_motif;
|
|
72 # else
|
|
73 # ifdef SCROLLBARS_ATHENA
|
|
74 int lwlib_scrollbars_athena;
|
|
75 # else
|
|
76 int lwlib_does_not_support_scrollbars;
|
|
77 # endif
|
|
78 # endif
|
|
79 #endif
|
|
80
|
|
81 #ifdef DIALOGS_MOTIF
|
|
82 int lwlib_dialogs_motif;
|
|
83 #else
|
|
84 # ifdef DIALOGS_ATHENA
|
|
85 int lwlib_dialogs_athena;
|
|
86 # else
|
|
87 int lwlib_does_not_support_dialogs;
|
|
88 # endif
|
|
89 #endif
|
|
90
|
|
91 #ifdef ENERGIZE
|
|
92 int lwlib_uses_energize;
|
|
93 #else
|
|
94 int lwlib_does_not_use_energize;
|
|
95 #endif
|