aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-04-27 00:02:12 -0700
committerGlenn Morris2010-04-27 00:02:12 -0700
commitc6ea2936cc41ada03967fc7b89c49b012e44aceb (patch)
tree3be1a4c350b1d0e7e7b69d9b524478513e6361c1 /src
parent7dd7fbb97528d964a25566a55b590a5a5774809b (diff)
downloademacs-c6ea2936cc41ada03967fc7b89c49b012e44aceb.tar.gz
emacs-c6ea2936cc41ada03967fc7b89c49b012e44aceb.zip
Move MOTIF_LIBW to autoconf.
* configure.in (HAVE_MOTIF_2_1): Remove unused variable. (LIBXP): No longer substitute in Makefiles. (MOTIF_LIBW): New output variable. Move system-specific settings here from src/s files. * src/Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW. (MOTIF_LIBW): Set with configure, not cpp. * s/aix4-2.h (LIB_MOTIF): * s/gnu-linux.h (LIB_MOTIF): * s/unixware.h (LIB_MOTIF): Move to configure.in. * admin/CPP-DEFINES: Remove LIB_MOTIF.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/Makefile.in7
-rw-r--r--src/s/aix4-2.h5
-rw-r--r--src/s/gnu-linux.h3
-rw-r--r--src/s/unixware.h8
5 files changed, 10 insertions, 21 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 53d11c87a63..41d0fb414f7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12010-04-27 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4 (MOTIF_LIBW): Set with configure, not cpp.
5 * s/aix4-2.h (LIB_MOTIF):
6 * s/gnu-linux.h (LIB_MOTIF):
7 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8
12010-04-27 Dan Nicolaescu <dann@ics.uci.edu> 92010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2 10
3 Reduce CPP usage. 11 Reduce CPP usage.
diff --git a/src/Makefile.in b/src/Makefile.in
index e1933a37388..5b4426686d0 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -86,13 +86,13 @@ GCONF_LIBS = @GCONF_LIBS@
86 86
87GTK_OBJ=@GTK_OBJ@ 87GTK_OBJ=@GTK_OBJ@
88 88
89LIBXP=@LIBXP@
90LIBXSM=@LIBXSM@ 89LIBXSM=@LIBXSM@
91 90
92XMENU_OBJ=@XMENU_OBJ@ 91XMENU_OBJ=@XMENU_OBJ@
93XOBJ=@XOBJ@ 92XOBJ=@XOBJ@
94 93
95LUCID_LIBW=@LUCID_LIBW@ 94LUCID_LIBW=@LUCID_LIBW@
95MOTIF_LIBW=@MOTIF_LIBW@
96 96
97LIBSOUND= @LIBSOUND@ 97LIBSOUND= @LIBSOUND@
98CFLAGS_SOUND= @CFLAGS_SOUND@ 98CFLAGS_SOUND= @CFLAGS_SOUND@
@@ -256,11 +256,6 @@ LIBXMENU=
256 256
257#ifdef USE_X_TOOLKIT 257#ifdef USE_X_TOOLKIT
258# define @X_TOOLKIT_TYPE@ 258# define @X_TOOLKIT_TYPE@
259# ifdef LIB_MOTIF
260MOTIF_LIBW= LIB_MOTIF $(LIBXP)
261# else
262MOTIF_LIBW= -lXm $(LIBXP)
263# endif
264LIBW=$(@X_TOOLKIT_TYPE@_LIBW) 259LIBW=$(@X_TOOLKIT_TYPE@_LIBW)
265 260
266#ifdef HAVE_X11XTR6 261#ifdef HAVE_X11XTR6
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 32bc67bfd46..c14835531df 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -135,9 +135,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
135#define POSIX_SIGNALS 135#define POSIX_SIGNALS
136#undef sigmask 136#undef sigmask
137 137
138/* olson@mcs.anl.gov says -li18n is needed by -lXm. */
139#define LIB_MOTIF -lXm -li18n
140
141#ifndef HAVE_LIBXMU 138#ifndef HAVE_LIBXMU
142#define LIBXMU 139#define LIBXMU
143 140
@@ -148,7 +145,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
148/* On AIX Emacs uses the gmalloc.c malloc implementation. But given 145/* On AIX Emacs uses the gmalloc.c malloc implementation. But given
149 the way this system works, libc functions that return malloced 146 the way this system works, libc functions that return malloced
150 memory use the libc malloc implementation. Calling xfree or 147 memory use the libc malloc implementation. Calling xfree or
151 xrealloc on the results of such functions results in a crash. 148 xrealloc on the results of such functions results in a crash.
152 149
153 One solution for this could be to define SYSTEM_MALLOC here, but 150 One solution for this could be to define SYSTEM_MALLOC here, but
154 that does not currently work on this system. 151 that does not currently work on this system.
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 3d470032efc..948f96a1e40 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -197,9 +197,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
197 anyone's still using Emacs on those. --fx 2002-12-14 */ 197 anyone's still using Emacs on those. --fx 2002-12-14 */
198/* #define C_SWITCH_SYSTEM -D_BSD_SOURCE */ 198/* #define C_SWITCH_SYSTEM -D_BSD_SOURCE */
199 199
200/* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */
201#define LIB_MOTIF -lXm -lXpm
202
203#ifdef HAVE_LIBNCURSES 200#ifdef HAVE_LIBNCURSES
204#define TERMINFO 201#define TERMINFO
205#define LIBS_TERMCAP -lncurses 202#define LIBS_TERMCAP -lncurses
diff --git a/src/s/unixware.h b/src/s/unixware.h
index 27fd41b7416..d019b8bba80 100644
--- a/src/s/unixware.h
+++ b/src/s/unixware.h
@@ -59,14 +59,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
59/* Use libw.a along with X11R6 Xt. */ 59/* Use libw.a along with X11R6 Xt. */
60#define NEED_LIBW 60#define NEED_LIBW
61 61
62/* ryanr@ellingtn.ftc.nrcs.usda.gov (Richard Anthony Ryan) says -lXimp
63 is needed in UNIX_SV ... 4.2 1.1.2. */
64#define LIB_MOTIF -lXm -lXimp
65
66/* arch-tag: 9bbfcfc1-19be-45a1-9699-af57b87da2c6
67 (do not change this comment) */
68
69
70/* Data type of load average, as read out of kmem. */ 62/* Data type of load average, as read out of kmem. */
71 63
72#define LOAD_AVE_TYPE long 64#define LOAD_AVE_TYPE long