annotate lwlib/lwlib-config.c @ 48:56c54cf7c5b6 r19-16b90

Import from CVS: tag r19-16b90
author cvs
date Mon, 13 Aug 2007 08:56:04 +0200
parents 9ee227acff29
children 131b0175ea99
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Flags indicating how lwlib was compiled.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1994 Lucid, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of the Lucid Widget Library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 The Lucid Widget Library is free software; you can redistribute it and/or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 modify it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 The Lucid Widget Library is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
19 Boston, MA 02111-1307, USA. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* This is a kludge to make sure emacs can only link against a version of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 lwlib that was compiled in the right way. Emacs references symbols which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 correspond to the way it thinks lwlib was compiled, and if lwlib wasn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 compiled in that way, then somewhat meaningful link errors will result.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 The alternatives to this range from obscure link errors, to obscure
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
26 runtime errors that look a lot like bugs. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #include "lwlib.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #include <X11/Xlib.h> /* to get XlibSpecificationRelease */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #ifdef NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #include <Xm/Xm.h> /* to get XmVersion */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 #if (XlibSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 int lwlib_uses_x11r4;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 #elif (XlibSpecificationRelease == 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 int lwlib_uses_x11r5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #elif (XlibSpecificationRelease == 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 int lwlib_uses_x11r6;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 int lwlib_uses_unknown_x11;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 #ifdef NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 int lwlib_uses_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 int lwlib_does_not_use_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 #if (XmVersion >= 1002)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 int lwlib_uses_motif_1_2;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 int lwlib_does_not_use_motif_1_2;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 #ifdef MENUBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 int lwlib_menubars_lucid;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 # ifdef MENUBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 int lwlib_menubars_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 int lwlib_does_not_support_menubars;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #ifdef SCROLLBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 int lwlib_scrollbars_lucid;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 # ifdef SCROLLBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 int lwlib_scrollbars_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 # ifdef SCROLLBARS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 int lwlib_scrollbars_athena;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 int lwlib_does_not_support_scrollbars;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #ifdef DIALOGS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 int lwlib_dialogs_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 # ifdef DIALOGS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 int lwlib_dialogs_athena;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 int lwlib_does_not_support_dialogs;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 int lwlib_uses_energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 int lwlib_does_not_use_energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 #endif