annotate lwlib/lwlib-config.c @ 217:d44af0c54775 r20-4b7

Import from CVS: tag r20-4b7
author cvs
date Mon, 13 Aug 2007 10:08:34 +0200
parents 6b37e6ddd302
children f220cc83d72e
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
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
19 Boston, MA 02111-1307, USA. */
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 14
diff changeset
20
0
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
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
26 runtime errors that look a lot like bugs. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 80
diff changeset
28 #include <config.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #include "lwlib.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #include <X11/Xlib.h> /* to get XlibSpecificationRelease */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #ifdef NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #include <Xm/Xm.h> /* to get XmVersion */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #if (XlibSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 int lwlib_uses_x11r4;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #elif (XlibSpecificationRelease == 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 int lwlib_uses_x11r5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #elif (XlibSpecificationRelease == 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 int lwlib_uses_x11r6;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 int lwlib_uses_unknown_x11;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 #ifdef NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 int lwlib_uses_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 int lwlib_does_not_use_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #if (XmVersion >= 1002)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 int lwlib_uses_motif_1_2;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 int lwlib_does_not_use_motif_1_2;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #ifdef MENUBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 int lwlib_menubars_lucid;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 # ifdef MENUBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 int lwlib_menubars_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 int lwlib_does_not_support_menubars;
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 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #ifdef SCROLLBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 int lwlib_scrollbars_lucid;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 # ifdef SCROLLBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 int lwlib_scrollbars_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 # ifdef SCROLLBARS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 int lwlib_scrollbars_athena;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 int lwlib_does_not_support_scrollbars;
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 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 #ifdef DIALOGS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 int lwlib_dialogs_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 # ifdef DIALOGS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 int lwlib_dialogs_athena;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 int lwlib_does_not_support_dialogs;
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 #endif