diff options
| author | Glenn Morris | 2010-05-17 19:30:13 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-17 19:30:13 -0700 |
| commit | be4ff9dad8bf43251f78f58a9ce86cf8bb153300 (patch) | |
| tree | b61fdf0af5566b9a1fde833b4beb05df4e4be863 | |
| parent | 5b5262f4da935f37376c548e31e234bf2073ebef (diff) | |
| download | emacs-be4ff9dad8bf43251f78f58a9ce86cf8bb153300.tar.gz emacs-be4ff9dad8bf43251f78f58a9ce86cf8bb153300.zip | |
Define some malloc objects with configure, not cpp.
* configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables.
* config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc.
* src/Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
(gmallocobj, vmlimitobj): Replace with previous two variables.
(otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
* msdos/sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o.
(VMLIMIT_OBJ): Edit to vm-limit.o.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | config.bat | 6 | ||||
| -rw-r--r-- | configure.in | 11 | ||||
| -rw-r--r-- | msdos/ChangeLog | 5 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/Makefile.in | 23 |
7 files changed, 44 insertions, 14 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc. | ||
| 4 | * configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables. | ||
| 5 | |||
| 1 | 2010-05-17 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-05-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * Makefile.in (src): Provide the name of the VCS file that witnesses | 8 | * Makefile.in (src): Provide the name of the VCS file that witnesses |
diff --git a/config.bat b/config.bat index 953c5d64b12..35fef44b582 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -201,6 +201,12 @@ sed -f ../msdos/sed1x.inp <makefile.tmp >Makefile | |||
| 201 | rm -f makefile.tmp | 201 | rm -f makefile.tmp |
| 202 | :src5 | 202 | :src5 |
| 203 | 203 | ||
| 204 | if "%sys_malloc%" == "" goto src5a | ||
| 205 | sed -e "/^GMALLOC_OBJ *=/s/gmalloc.o//" <Makefile >makefile.tmp | ||
| 206 | sed -e "/^VMLIMIT_OBJ *=/s/vm-limit.o//" <makefile.tmp >Makefile | ||
| 207 | rm -f makefile.tmp | ||
| 208 | :src5a | ||
| 209 | |||
| 204 | if "%nodebug%" == "" goto src6 | 210 | if "%nodebug%" == "" goto src6 |
| 205 | sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp | 211 | sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp |
| 206 | sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile | 212 | sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile |
diff --git a/configure.in b/configure.in index e667a5f1e05..86d3db67361 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1592,11 +1592,20 @@ AC_CACHE_CHECK(whether __after_morecore_hook exists, | |||
| 1592 | if test $emacs_cv_var___after_morecore_hook = no; then | 1592 | if test $emacs_cv_var___after_morecore_hook = no; then |
| 1593 | doug_lea_malloc=no | 1593 | doug_lea_malloc=no |
| 1594 | fi | 1594 | fi |
| 1595 | |||
| 1595 | if test "${system_malloc}" = "yes"; then | 1596 | if test "${system_malloc}" = "yes"; then |
| 1596 | GNU_MALLOC=no | 1597 | GNU_MALLOC=no |
| 1597 | GNU_MALLOC_reason=" | 1598 | GNU_MALLOC_reason=" |
| 1598 | (The GNU allocators don't work with this system configuration.)" | 1599 | (The GNU allocators don't work with this system configuration.)" |
| 1600 | GMALLOC_OBJ= | ||
| 1601 | VMLIMIT_OBJ= | ||
| 1602 | else | ||
| 1603 | test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o | ||
| 1604 | VMLIMIT_OBJ=vm-limit.o | ||
| 1599 | fi | 1605 | fi |
| 1606 | AC_SUBST(GMALLOC_OBJ) | ||
| 1607 | AC_SUBST(VMLIMIT_OBJ) | ||
| 1608 | |||
| 1600 | if test "$doug_lea_malloc" = "yes" ; then | 1609 | if test "$doug_lea_malloc" = "yes" ; then |
| 1601 | if test "$GNU_MALLOC" = yes ; then | 1610 | if test "$GNU_MALLOC" = yes ; then |
| 1602 | GNU_MALLOC_reason=" | 1611 | GNU_MALLOC_reason=" |
| @@ -3208,7 +3217,7 @@ if test "$opsys" = "cygwin"; then | |||
| 3208 | else | 3217 | else |
| 3209 | CYGWIN_OBJ= | 3218 | CYGWIN_OBJ= |
| 3210 | PRE_ALLOC_OBJ=lastfile.o | 3219 | PRE_ALLOC_OBJ=lastfile.o |
| 3211 | POST_ALLOC_OBJ="\$(vmlimitobj)" | 3220 | POST_ALLOC_OBJ="\$(VMLIMIT_OBJ)" |
| 3212 | fi | 3221 | fi |
| 3213 | AC_SUBST(CYGWIN_OBJ) | 3222 | AC_SUBST(CYGWIN_OBJ) |
| 3214 | AC_SUBST(PRE_ALLOC_OBJ) | 3223 | AC_SUBST(PRE_ALLOC_OBJ) |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index 6763fcd6878..4ce549cfd8b 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o. | ||
| 4 | (VMLIMIT_OBJ): Edit to vm-limit.o. | ||
| 5 | |||
| 1 | 2010-05-17 Glenn Morris <rgm@gnu.org> | 6 | 2010-05-17 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * sed1v2.inp (OLDXMENU_DEPS): Edit to empty. | 8 | * sed1v2.inp (OLDXMENU_DEPS): Edit to empty. |
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index ac088cdcf86..906d558ed75 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -116,6 +116,8 @@ s/\.h\.in/.h-in/ | |||
| 116 | /^OLDXMENU *=/s/@OLDXMENU@// | 116 | /^OLDXMENU *=/s/@OLDXMENU@// |
| 117 | /^LIBXMENU *=/s/@LIBXMENU@// | 117 | /^LIBXMENU *=/s/@LIBXMENU@// |
| 118 | /^LIBX_OTHER *=/s/@LIBX_OTHER@// | 118 | /^LIBX_OTHER *=/s/@LIBX_OTHER@// |
| 119 | /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/ | ||
| 120 | /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/ | ||
| 119 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ | 121 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ |
| 120 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ | 122 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ |
| 121 | /^UNEXEC_OBJ *=/s/@unexec@/unexec.o/ | 123 | /^UNEXEC_OBJ *=/s/@unexec@/unexec.o/ |
diff --git a/src/ChangeLog b/src/ChangeLog index eedd0474dc2..bb5d7e6d427 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-05-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure. | ||
| 4 | (gmallocobj, vmlimitobj): Replace with previous two variables. | ||
| 5 | (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ. | ||
| 6 | |||
| 1 | 2010-05-17 Glenn Morris <rgm@gnu.org> | 7 | 2010-05-17 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * Makefile.in (OLDXMENU_DEPS): New, set by configure. | 9 | * Makefile.in (OLDXMENU_DEPS): New, set by configure. |
diff --git a/src/Makefile.in b/src/Makefile.in index 571fbf5b1b1..ff3726df6f8 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -401,28 +401,25 @@ SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ | |||
| 401 | w32.o w32console.o w32fns.o w32heap.o w32inevt.o \ | 401 | w32.o w32console.o w32fns.o w32heap.o w32inevt.o \ |
| 402 | w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_OBJ) | 402 | w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_OBJ) |
| 403 | 403 | ||
| 404 | gmallocobj = | 404 | /* gmalloc.o if !SYSTEM_MALLOC && !DOUG_LEA_MALLOC, else empty. */ |
| 405 | rallocobj = | 405 | GMALLOC_OBJ=@GMALLOC_OBJ@ |
| 406 | vmlimitobj = | 406 | |
| 407 | #ifndef SYSTEM_MALLOC | 407 | /* vm-limit.o if !SYSTEM_MALLOC, else empty. */ |
| 408 | #ifndef DOUG_LEA_MALLOC | 408 | VMLIMIT_OBJ=@VMLIMIT_OBJ@ |
| 409 | gmallocobj = gmalloc.o | ||
| 410 | #endif | ||
| 411 | 409 | ||
| 412 | #ifdef REL_ALLOC | 410 | #if defined (REL_ALLOC) && ! defined (SYSTEM_MALLOC) |
| 413 | rallocobj = ralloc.o | 411 | rallocobj = ralloc.o |
| 412 | #else | ||
| 413 | rallocobj = | ||
| 414 | #endif | 414 | #endif |
| 415 | 415 | ||
| 416 | vmlimitobj = vm-limit.o | ||
| 417 | #endif /* !SYSTEM_MALLOC */ | ||
| 418 | |||
| 419 | /* Empty on Cygwin, lastfile.o elsewhere. */ | 416 | /* Empty on Cygwin, lastfile.o elsewhere. */ |
| 420 | PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ | 417 | PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ |
| 421 | /* lastfile.o vm-limit.o on Cygwin, $vmlimitobj elsewhere. */ | 418 | /* lastfile.o vm-limit.o on Cygwin, $VMLIMIT_OBJ elsewhere. */ |
| 422 | POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ | 419 | POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ |
| 423 | 420 | ||
| 424 | /* List of object files that make-docfile should not be told about. */ | 421 | /* List of object files that make-docfile should not be told about. */ |
| 425 | otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ | 422 | otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(rallocobj) \ |
| 426 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) | 423 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) |
| 427 | 424 | ||
| 428 | /* This is the platform-specific list of Lisp files loaded into the | 425 | /* This is the platform-specific list of Lisp files loaded into the |