aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-04-29 18:36:42 -0700
committerGlenn Morris2010-04-29 18:36:42 -0700
commit7eb1ac33ed4ecb150dd0755292c2d74fb36400e3 (patch)
tree0c368ed07d2a9b4c73f2b458986f7c8528a4df64
parent517d086b62543b90b17ceb3ae26c2ca273f7ac94 (diff)
downloademacs-7eb1ac33ed4ecb150dd0755292c2d74fb36400e3.tar.gz
emacs-7eb1ac33ed4ecb150dd0755292c2d74fb36400e3.zip
Replace some cpp with autoconf.
* configure.in (OTHER_OBJ): New output variable. * src/Makefile.in (mallocobj): Remove. (otherobj): Simplify using @OTHER_OBJ@.
-rw-r--r--ChangeLog4
-rw-r--r--configure.in11
-rw-r--r--src/ChangeLog3
-rw-r--r--src/Makefile.in19
4 files changed, 22 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 464049bb0da..9bdf50b5965 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12010-04-30 Glenn Morris <rgm@gnu.org>
2
3 * configure.in (OTHER_OBJ): New output variable.
4
12010-04-28 Glenn Morris <rgm@gnu.org> 52010-04-28 Glenn Morris <rgm@gnu.org>
2 6
3 * configure.in (CYGWIN_OBJ): New output variable. 7 * configure.in (CYGWIN_OBJ): New output variable.
diff --git a/configure.in b/configure.in
index 93cd86affb2..db8402a4055 100644
--- a/configure.in
+++ b/configure.in
@@ -2928,9 +2928,18 @@ if test "${REL_ALLOC}" = "yes" ; then
2928 buffer space.]) 2928 buffer space.])
2929fi 2929fi
2930 2930
2931
2932OTHER_OBJ="\$(gmallocobj) \$(rallocobj)"
2933if test "$opsys" = "cygwin"; then
2934 CYGWIN_OBJ="sheap.o"
2935 ## Cygwin differs because of its unexec().
2936 OTHER_OBJ="$OTHER_OBJ lastfile.o"
2937else
2931CYGWIN_OBJ= 2938CYGWIN_OBJ=
2932test "$opsys" = "cygwin" && CYGWIN_OBJ="sheap.o" 2939 OTHER_OBJ="lastfile.o $OTHER_OBJ"
2940fi
2933AC_SUBST(CYGWIN_OBJ) 2941AC_SUBST(CYGWIN_OBJ)
2942AC_SUBST(OTHER_OBJ)
2934 2943
2935AH_TOP([/* GNU Emacs site configuration template file. 2944AH_TOP([/* GNU Emacs site configuration template file.
2936 Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, 2945 Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005,
diff --git a/src/ChangeLog b/src/ChangeLog
index e758fdb55f8..8fe14886af9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12010-04-30 Glenn Morris <rgm@gnu.org> 12010-04-30 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (mallocobj): Remove.
4 (otherobj): Simplify using @OTHER_OBJ@.
5
3 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o) 6 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o): 7 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5 Don't bother making nsgui.h dependency platform-specific. 8 Don't bother making nsgui.h dependency platform-specific.
diff --git a/src/Makefile.in b/src/Makefile.in
index 8c7c7a4e29e..c49543b181c 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -435,7 +435,6 @@ termcapobj = tparam.o
435 435
436 436
437#ifndef SYSTEM_MALLOC 437#ifndef SYSTEM_MALLOC
438
439#ifndef DOUG_LEA_MALLOC 438#ifndef DOUG_LEA_MALLOC
440gmallocobj = gmalloc.o 439gmallocobj = gmalloc.o
441#endif 440#endif
@@ -443,20 +442,12 @@ gmallocobj = gmalloc.o
443#ifdef REL_ALLOC 442#ifdef REL_ALLOC
444rallocobj = ralloc.o 443rallocobj = ralloc.o
445#endif 444#endif
445#endif /* !SYSTEM_MALLOC */
446 446
447mallocobj = $(gmallocobj) $(rallocobj) vm-limit.o 447/* List of object files that make-docfile should not be told about. */
448 448/* OTHER_OBJ = $(gmallocobj) $(rallocobj), with trailing/leading
449#endif /* SYSTEM_MALLOC */ 449 lastfile.o on Cygwin/other. */
450 450otherobj= $(termcapobj) @OTHER_OBJ@ vm-limit.o $(WIDGET_OBJ) $(LIBOBJS)
451
452/* define otherobj as list of object files that make-docfile
453 should not be told about. */
454#ifdef CYGWIN
455/* Cygwin differs because of its unexec(). */
456otherobj= $(termcapobj) $(gmallocobj) $(rallocobj) lastfile.o vm-limit.o $(WIDGET_OBJ) $(LIBOBJS)
457#else
458otherobj= $(termcapobj) lastfile.o $(mallocobj) $(WIDGET_OBJ) $(LIBOBJS)
459#endif
460 451
461#ifdef HAVE_MOUSE 452#ifdef HAVE_MOUSE
462#define MOUSE_SUPPORT ${lispsource}mouse.elc \ 453#define MOUSE_SUPPORT ${lispsource}mouse.elc \