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 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)
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.
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. */
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. */
31 #include <X11/Xlib.h> /* to get XlibSpecificationRelease */
33 #include <Xm/Xm.h> /* to get XmVersion */
36 #if (XlibSpecificationRelease == 4)
38 #elif (XlibSpecificationRelease == 5)
40 #elif (XlibSpecificationRelease == 6)
43 int lwlib_uses_unknown_x11;
49 int lwlib_does_not_use_motif;
52 #if (XmVersion >= 1002)
53 int lwlib_uses_motif_1_2;
55 int lwlib_does_not_use_motif_1_2;
58 #ifdef LWLIB_MENUBARS_LUCID
59 int lwlib_menubars_lucid;
61 # ifdef LWLIB_MENUBARS_MOTIF
62 int lwlib_menubars_motif;
64 int lwlib_does_not_support_menubars;
68 #ifdef LWLIB_SCROLLBARS_LUCID
69 int lwlib_scrollbars_lucid;
71 # ifdef LWLIB_SCROLLBARS_MOTIF
72 int lwlib_scrollbars_motif;
74 # ifdef LWLIB_SCROLLBARS_ATHENA
75 int lwlib_scrollbars_athena;
77 int lwlib_does_not_support_scrollbars;
82 #ifdef LWLIB_DIALOGS_MOTIF
83 int lwlib_dialogs_motif;
85 # ifdef LWLIB_DIALOGS_ATHENA
86 int lwlib_dialogs_athena;
88 int lwlib_does_not_support_dialogs;
92 #ifdef LWLIB_WIDGETS_MOTIF
93 int lwlib_widgets_motif;
95 # ifdef LWLIB_WIDGETS_ATHENA
96 int lwlib_widgets_athena;
98 int lwlib_does_not_support_widgets;