aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-06-29 19:48:54 -0700
committerGlenn Morris2010-06-29 19:48:54 -0700
commit6259c2ec7ae4b60f59d5101c8c544d15a90540a3 (patch)
treee0680ee34ce375d77f41226081a616a3f1f762e1
parenta2f043d3d72cbbc0ad64fb271a9f0545791100ec (diff)
downloademacs-6259c2ec7ae4b60f59d5101c8c544d15a90540a3.tar.gz
emacs-6259c2ec7ae4b60f59d5101c8c544d15a90540a3.zip
Remove some cpp that is internal to configure.in.
* configure.in (C_OPTIMIZE_SWITCH, CANNOT_DUMP, SYSTEM_MALLOC): (USE_MMAP_FOR_BUFFERS, C_WARNING_SWITCH): Set with shell, not cpp. (LIBX): Remove, just use -lX11 in the one place this was used. (cannot_dump): Replace with CANNOT_DUMP. * src/Makefile.in (CANNOT_DUMP): Update for configure name change. * src/s/freebsd.h (USE_MMAP_FOR_BUFFERS): * src/s/irix6-5.h (USE_MMAP_FOR_BUFFERS): * src/s/darwin.h (SYSTEM_MALLOC): * src/s/sol2-10.h (SYSTEM_MALLOC): Move to configure. * src/m/alpha.h: Remove old comment. * src/s/aix4-2.h: Update comment. * src/s/template.h: Remove USE_MMAP_FOR_BUFFERS. * msdos/sed1v2.inp (CANNOT_DUMP): Update for configure name change. * admin/CPP-DEFINES: Remove USE_MMAP_FOR_BUFFERS, CANNOT_DUMP. * etc/DEBUG: Update SYSTEM_MALLOC and CANNOT_DUMP references. Some re-filling.
-rw-r--r--ChangeLog7
-rw-r--r--admin/CPP-DEFINES2
-rw-r--r--configure.in83
-rw-r--r--etc/DEBUG29
-rw-r--r--msdos/ChangeLog4
-rw-r--r--msdos/sed1v2.inp2
-rw-r--r--src/ChangeLog9
-rw-r--r--src/Makefile.in2
-rw-r--r--src/m/alpha.h13
-rw-r--r--src/m/template.h5
-rw-r--r--src/s/aix4-2.h4
-rw-r--r--src/s/darwin.h3
-rw-r--r--src/s/freebsd.h4
-rw-r--r--src/s/irix6-5.h2
-rw-r--r--src/s/sol2-10.h2
-rw-r--r--src/s/template.h3
16 files changed, 70 insertions, 104 deletions
diff --git a/ChangeLog b/ChangeLog
index 03efce05e12..2c3aeec2020 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12010-06-30 Glenn Morris <rgm@gnu.org>
2
3 * configure.in (C_OPTIMIZE_SWITCH, CANNOT_DUMP, SYSTEM_MALLOC):
4 (USE_MMAP_FOR_BUFFERS, C_WARNING_SWITCH): Set with shell, not cpp.
5 (LIBX): Remove, just use -lX11 in the one place this was used.
6 (cannot_dump): Replace with CANNOT_DUMP.
7
12010-06-28 Jan Djärv <jan.h.d@swipnet.se> 82010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2 9
3 * configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY, 10 * configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY,
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES
index 4425b79edeb..db96443ad48 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -60,10 +60,8 @@ NARROWPROTO
60SEPCHAR 60SEPCHAR
61SIGTYPE 61SIGTYPE
62SYSTEM_TYPE 62SYSTEM_TYPE
63USE_MMAP_FOR_BUFFERS
64 63
65** Machine specific macros, decribed in detail in src/m/template.h 64** Machine specific macros, decribed in detail in src/m/template.h
66CANNOT_DUMP
67EXPLICIT_SIGN_EXTEND 65EXPLICIT_SIGN_EXTEND
68LOAD_AVE_CVT 66LOAD_AVE_CVT
69LOAD_AVE_TYPE 67LOAD_AVE_TYPE
diff --git a/configure.in b/configure.in
index d941bbc17d8..6fcea08bb63 100644
--- a/configure.in
+++ b/configure.in
@@ -710,14 +710,13 @@ then
710 CC="$NON_GNU_CC" 710 CC="$NON_GNU_CC"
711fi 711fi
712 712
713if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x 713if test x$GCC = xyes; then
714then 714 C_OPTIMIZE_SWITCH=-O2
715 CC="$CC $GCC_TEST_OPTIONS" 715 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
716fi 716else
717 717 dnl FIXME? unused.
718if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x 718 C_OPTIMIZE_SWITCH=-O
719then 719 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
720 CC="$CC $NON_GCC_TEST_OPTIONS"
721fi 720fi
722 721
723dnl checks for Unix variants 722dnl checks for Unix variants
@@ -863,43 +862,11 @@ echo '
863#include "'${srcdir}'/src/'${opsysfile}'" 862#include "'${srcdir}'/src/'${opsysfile}'"
864#include "'${srcdir}'/src/'${machfile}'" 863#include "'${srcdir}'/src/'${machfile}'"
865 864
866configure___ LIBX=-lX11
867
868#ifdef CANNOT_DUMP
869configure___ cannot_dump=yes
870#else
871configure___ cannot_dump=no
872#endif
873
874#ifdef SYSTEM_MALLOC
875configure___ system_malloc=yes
876#else
877configure___ system_malloc=no
878#endif
879
880#ifdef USE_MMAP_FOR_BUFFERS
881configure___ use_mmap_for_buffers=yes
882#else
883configure___ use_mmap_for_buffers=no
884#endif
885
886#ifndef C_OPTIMIZE_SWITCH
887#ifdef __GNUC__
888#define C_OPTIMIZE_SWITCH -O2
889#else
890#define C_OPTIMIZE_SWITCH -O
891#endif
892#endif
893
894#ifndef C_WARNINGS_SWITCH
895#define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
896#endif
897
898#ifdef THIS_IS_CONFIGURE 865#ifdef THIS_IS_CONFIGURE
899 866
900/* Get the CFLAGS for tests in configure. */ 867/* Get the CFLAGS for tests in configure. */
901#ifdef __GNUC__ 868#ifdef __GNUC__
902configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' 869configure___ CFLAGS=-g ${C_OPTIMIZE_SWITCH} '${SPECIFIED_CFLAGS}'
903#else 870#else
904configure___ CFLAGS='${SPECIFIED_CFLAGS}' 871configure___ CFLAGS='${SPECIFIED_CFLAGS}'
905#endif 872#endif
@@ -908,7 +875,7 @@ configure___ CFLAGS='${SPECIFIED_CFLAGS}'
908 875
909/* Get the CFLAGS for real compilation. */ 876/* Get the CFLAGS for real compilation. */
910#ifdef __GNUC__ 877#ifdef __GNUC__
911configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}' 878configure___ REAL_CFLAGS=-g ${C_OPTIMIZE_SWITCH} ${C_WARNINGS_SWITCH} ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
912#else 879#else
913configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}' 880configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
914#endif 881#endif
@@ -932,7 +899,18 @@ fi]
932rm ${tempcname} 899rm ${tempcname}
933 900
934 901
935AC_SUBST(cannot_dump) 902dnl Not used by any currently supported platform.
903dnl The function dump-emacs will not be defined and temacs will do
904dnl (load "loadup") automatically unless told otherwise.
905CANNOT_DUMP=no
906case "$opsys" in
907 your-opsys-here)
908 CANNOT_DUMP=yes
909 AC_DEFINE(CANNOT_DUMP, 1, [Define if Emacs cannot be dumped on your system.])
910 ;;
911esac
912AC_SUBST(CANNOT_DUMP)
913
936 914
937UNEXEC_OBJ=unexelf.o 915UNEXEC_OBJ=unexelf.o
938case "$opsys" in 916case "$opsys" in
@@ -1647,7 +1625,16 @@ if test $emacs_cv_var___after_morecore_hook = no; then
1647 doug_lea_malloc=no 1625 doug_lea_malloc=no
1648fi 1626fi
1649 1627
1628
1629dnl See comments in aix4-2.h about maybe using system malloc there.
1630system_malloc=no
1631case "$opsys" in
1632 ## darwin ld insists on the use of malloc routines in the System framework.
1633 darwin|sol2-10) system_malloc=yes ;;
1634esac
1635
1650if test "${system_malloc}" = "yes"; then 1636if test "${system_malloc}" = "yes"; then
1637 AC_DEFINE(SYSTEM_MALLOC, 1, [Define to use system malloc.])
1651 GNU_MALLOC=no 1638 GNU_MALLOC=no
1652 GNU_MALLOC_reason=" 1639 GNU_MALLOC_reason="
1653 (The GNU allocators don't work with this system configuration.)" 1640 (The GNU allocators don't work with this system configuration.)"
@@ -1681,12 +1668,14 @@ if test x"${REL_ALLOC}" = x; then
1681 REL_ALLOC=${GNU_MALLOC} 1668 REL_ALLOC=${GNU_MALLOC}
1682fi 1669fi
1683 1670
1684dnl For now, need to use an explicit `#define USE_MMAP_FOR_BUFFERS 1' 1671use_mmap_for_buffers=no
1685dnl the system configuration file (s/*.h) to turn the use of mmap 1672case "$opsys" in
1686dnl in the relocating allocator on. 1673 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
1674esac
1687 1675
1688AC_FUNC_MMAP 1676AC_FUNC_MMAP
1689if test $use_mmap_for_buffers = yes; then 1677if test $use_mmap_for_buffers = yes; then
1678 AC_DEFINE(USE_MMAP_FOR_BUFFERS, 1, [Define to use mmap to allocate buffer text.])
1690 REL_ALLOC=no 1679 REL_ALLOC=no
1691fi 1680fi
1692 1681
@@ -1741,7 +1730,7 @@ REAL_CPPFLAGS="$CPPFLAGS"
1741if test "${HAVE_X11}" = "yes"; then 1730if test "${HAVE_X11}" = "yes"; then
1742 DEFS="$C_SWITCH_X_SITE $DEFS" 1731 DEFS="$C_SWITCH_X_SITE $DEFS"
1743 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" 1732 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
1744 LIBS="$LIBX $LIBS" 1733 LIBS="-lX11 $LIBS"
1745 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" 1734 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
1746 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" 1735 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
1747 1736
diff --git a/etc/DEBUG b/etc/DEBUG
index b4272929bae..6fd5b412f4c 100644
--- a/etc/DEBUG
+++ b/etc/DEBUG
@@ -5,9 +5,8 @@ Copyright (C) 1985, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
5See the end of the file for license conditions. 5See the end of the file for license conditions.
6 6
7 7
8[People who debug Emacs on Windows using Microsoft debuggers 8[People who debug Emacs on Windows using Microsoft debuggers should
9should read the Windows-specific section near the end of this 9read the Windows-specific section near the end of this document.]
10document.]
11 10
12** When you debug Emacs with GDB, you should start it in the directory 11** When you debug Emacs with GDB, you should start it in the directory
13where the executable was made. That directory has a .gdbinit file 12where the executable was made. That directory has a .gdbinit file
@@ -50,8 +49,7 @@ On modern POSIX systems, you can override that with this command:
50 handle SIGINT stop nopass 49 handle SIGINT stop nopass
51 50
52After this `handle' command, SIGINT will return control to GDB. If 51After this `handle' command, SIGINT will return control to GDB. If
53you want the C-g to cause a QUIT within Emacs as well, omit the 52you want the C-g to cause a QUIT within Emacs as well, omit the `nopass'.
54`nopass'.
55 53
56A technique that can work when `handle SIGINT' does not is to store 54A technique that can work when `handle SIGINT' does not is to store
57the code for some character into the variable stop_character. Thus, 55the code for some character into the variable stop_character. Thus,
@@ -443,10 +441,9 @@ It is necessary to refer to the file `nmout' to convert
443numeric addresses into symbols and vice versa. 441numeric addresses into symbols and vice versa.
444 442
445It is useful to be running under a window system. 443It is useful to be running under a window system.
446Then, if Emacs becomes hopelessly wedged, you can create 444Then, if Emacs becomes hopelessly wedged, you can create another
447another window to do kill -9 in. kill -ILL is often 445window to do kill -9 in. kill -ILL is often useful too, since that
448useful too, since that may make Emacs dump core or return 446may make Emacs dump core or return to adb.
449to adb.
450 447
451 448
452** Debugging incorrect screen updating. 449** Debugging incorrect screen updating.
@@ -483,16 +480,14 @@ suitable for Unix and GNU systems, to build such a debugging version:
483Building Emacs like that activates many assertions which scrutinize 480Building Emacs like that activates many assertions which scrutinize
484display code operation more than Emacs does normally. (To see the 481display code operation more than Emacs does normally. (To see the
485code which tests these assertions, look for calls to the `xassert' 482code which tests these assertions, look for calls to the `xassert'
486macros.) Any assertion that is reported to fail should be 483macros.) Any assertion that is reported to fail should be investigated.
487investigated.
488 484
489Building with GLYPH_DEBUG defined also defines several helper 485Building with GLYPH_DEBUG defined also defines several helper
490functions which can help debugging display code. One such function is 486functions which can help debugging display code. One such function is
491`dump_glyph_matrix'. If you run Emacs under GDB, you can print the 487`dump_glyph_matrix'. If you run Emacs under GDB, you can print the
492contents of any glyph matrix by just calling that function with the 488contents of any glyph matrix by just calling that function with the
493matrix as its argument. For example, the following command will print 489matrix as its argument. For example, the following command will print
494the contents of the current matrix of the window whose pointer is in 490the contents of the current matrix of the window whose pointer is in `w':
495`w':
496 491
497 (gdb) p dump_glyph_matrix (w->current_matrix, 2) 492 (gdb) p dump_glyph_matrix (w->current_matrix, 2)
498 493
@@ -621,13 +616,9 @@ Emacs compiled with such packages might not run without some hacking,
621because Emacs replaces the system's memory allocation functions with 616because Emacs replaces the system's memory allocation functions with
622its own versions, and because the dumping process might be 617its own versions, and because the dumping process might be
623incompatible with the way these packages use to track allocated 618incompatible with the way these packages use to track allocated
624memory. Here are some of the changes you might find necessary 619memory. Here are some of the changes you might find necessary:
625(SYSTEM-NAME and MACHINE-NAME are the names of your OS- and
626CPU-specific headers in the subdirectories of `src'):
627 620
628 - In src/s/SYSTEM-NAME.h add "#define SYSTEM_MALLOC". 621 - Edit configure, to set system_malloc and CANNOT_DUMP to "yes".
629
630 - In src/m/MACHINE-NAME.h add "#define CANNOT_DUMP"
631 622
632 - Configure with a different --prefix= option. If you use GCC, 623 - Configure with a different --prefix= option. If you use GCC,
633 version 2.7.2 is preferred, as some malloc debugging packages 624 version 2.7.2 is preferred, as some malloc debugging packages
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index 71d2acbc928..287f568438f 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,3 +1,7 @@
12010-06-30 Glenn Morris <rgm@gnu.org>
2
3 * sed1v2.inp (CANNOT_DUMP): Update for configure name change.
4
12010-06-26 Eli Zaretskii <eliz@gnu.org> 52010-06-26 Eli Zaretskii <eliz@gnu.org>
2 6
3 * mainmake.v2 (version): Use emacs_version[] in src/emacs.c 7 * mainmake.v2 (version): Use emacs_version[] in src/emacs.c
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index 8f7c06cfd8c..eef9ea80b79 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -116,7 +116,7 @@ s/\.h\.in/.h-in/
116/^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ 116/^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
117/^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ 117/^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
118/^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexec.o/ 118/^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexec.o/
119/^CANNOT_DUMP *=/s/@cannot_dump@/no/ 119/^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
120/^DEPFLAGS *=/s/@DEPFLAGS@// 120/^DEPFLAGS *=/s/@DEPFLAGS@//
121/^MKDEPDIR *=/s/@MKDEPDIR@// 121/^MKDEPDIR *=/s/@MKDEPDIR@//
122/^version *=/s/@[^@\n]*@// 122/^version *=/s/@[^@\n]*@//
diff --git a/src/ChangeLog b/src/ChangeLog
index 12af1e6908a..dc0dd35e632 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12010-06-30 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (CANNOT_DUMP): Update for configure name change.
4
5 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7 * s/darwin.h (SYSTEM_MALLOC):
8 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
9
12010-06-29 Jan Djärv <jan.h.d@swipnet.se> 102010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2 11
3 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode. 12 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
diff --git a/src/Makefile.in b/src/Makefile.in
index b2fec7eb085..0f8294fd030 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -283,7 +283,7 @@ START_FILES = @START_FILES@
283 283
284UNEXEC_OBJ = @UNEXEC_OBJ@ 284UNEXEC_OBJ = @UNEXEC_OBJ@
285 285
286CANNOT_DUMP=@cannot_dump@ 286CANNOT_DUMP=@CANNOT_DUMP@
287 287
288DEPDIR=deps 288DEPDIR=deps
289## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty. 289## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty.
diff --git a/src/m/alpha.h b/src/m/alpha.h
index c57fd0d9821..a7e4fa6b07b 100644
--- a/src/m/alpha.h
+++ b/src/m/alpha.h
@@ -47,19 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
47/* Convert that into an integer that is 100 for a load average of 1.0 */ 47/* Convert that into an integer that is 100 for a load average of 1.0 */
48#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) 48#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
49 49
50/* GNU malloc and the relocating allocator do not work together
51 with X. [Who wrote that?] */
52
53/* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the
54 system and the gnu malloc system work with "alpha-dec-osf3.0" and
55 "alpha-dec-osf3.2". */
56
57/* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both
58 mallocs work with "alpha-dec-osf2.0", but I daren't break anything
59 right now. Feel free to play if you want. */
60
61/* #define SYSTEM_MALLOC */
62
63#ifdef __ELF__ 50#ifdef __ELF__
64 51
65#if !defined(GNU_LINUX) && !defined(__NetBSD__) 52#if !defined(GNU_LINUX) && !defined(__NetBSD__)
diff --git a/src/m/template.h b/src/m/template.h
index 3beac1a7808..0b149411a0a 100644
--- a/src/m/template.h
+++ b/src/m/template.h
@@ -39,11 +39,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
39/* Convert that into an integer that is 100 for a load average of 1.0 */ 39/* Convert that into an integer that is 100 for a load average of 1.0 */
40#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) 40#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
41 41
42/* Define CANNOT_DUMP on machines where unexec does not work.
43 Then the function dump-emacs will not be defined
44 and temacs will do (load "loadup") automatically unless told otherwise. */
45#define CANNOT_DUMP
46
47/* Define VIRT_ADDR_VARIES if the virtual addresses of 42/* Define VIRT_ADDR_VARIES if the virtual addresses of
48 pure and impure space as loaded can vary, and even their 43 pure and impure space as loaded can vary, and even their
49 relative order cannot be relied on. 44 relative order cannot be relied on.
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 48f43126fd9..cf06f9befe0 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -89,8 +89,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
89 memory use the libc malloc implementation. Calling xfree or 89 memory use the libc malloc implementation. Calling xfree or
90 xrealloc on the results of such functions results in a crash. 90 xrealloc on the results of such functions results in a crash.
91 91
92 One solution for this could be to define SYSTEM_MALLOC here, but 92 One solution for this could be to define SYSTEM_MALLOC in configure,
93 that does not currently work on this system. 93 but that does not currently work on this system.
94 94
95 It is possible to completely override the malloc implementation on 95 It is possible to completely override the malloc implementation on
96 AIX, but that involves putting the malloc functions in a shared 96 AIX, but that involves putting the malloc functions in a shared
diff --git a/src/s/darwin.h b/src/s/darwin.h
index 5c8db1242e1..cd1f9384833 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -114,9 +114,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
114/* System uses OXTABS instead of the expected TAB3. (Copied from bsd386.h.) */ 114/* System uses OXTABS instead of the expected TAB3. (Copied from bsd386.h.) */
115#define TAB3 OXTABS 115#define TAB3 OXTABS
116 116
117/* Darwin ld insists on the use of malloc routines in the System framework. */
118#define SYSTEM_MALLOC
119
120/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ 117/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
121#define HAVE_SOCKETS 118#define HAVE_SOCKETS
122 119
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index f8d88342621..9082935db07 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -67,9 +67,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
67/* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */ 67/* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */
68#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS 68#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
69 69
70/* Define USE_MMAP_FOR_BUFFERS to let Emacs use mmap(2) to allocate
71 buffer text. This overrides REL_ALLOC. */
72#define USE_MMAP_FOR_BUFFERS 1
73
74/* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb 70/* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb
75 (do not change this comment) */ 71 (do not change this comment) */
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index 1691daa6615..e2b18b2ec2b 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -85,8 +85,6 @@ char *_getpty();
85 85
86#define NARROWPROTO 1 86#define NARROWPROTO 1
87 87
88#define USE_MMAP_FOR_BUFFERS 1
89
90#if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */ 88#if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */
91#define _LP64 /* lisp.h takes care of the rest */ 89#define _LP64 /* lisp.h takes care of the rest */
92#endif /* _MIPS_SZLONG */ 90#endif /* _MIPS_SZLONG */
diff --git a/src/s/sol2-10.h b/src/s/sol2-10.h
index 7441eaa0210..fd7f30021ea 100644
--- a/src/s/sol2-10.h
+++ b/src/s/sol2-10.h
@@ -2,8 +2,6 @@
2 2
3#include "sol2-6.h" 3#include "sol2-6.h"
4 4
5#define SYSTEM_MALLOC
6
7/* This is used in list_system_processes. */ 5/* This is used in list_system_processes. */
8#define HAVE_PROCFS 1 6#define HAVE_PROCFS 1
9 7
diff --git a/src/s/template.h b/src/s/template.h
index 694a1046566..67ed13e6180 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -108,9 +108,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
108 is not ':', #define this to be the appropriate character constant. */ 108 is not ':', #define this to be the appropriate character constant. */
109/* #define SEPCHAR ':' */ 109/* #define SEPCHAR ':' */
110 110
111/* Define this if the system can use mmap for buffer text allocation. */
112/* #define USE_MMAP_FOR_BUFFERS 1 */
113
114/* ============================================================ */ 111/* ============================================================ */
115 112
116/* Here, add any special hacks needed to make Emacs work on this 113/* Here, add any special hacks needed to make Emacs work on this