aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-06-29 19:48:54 -0700
committerGlenn Morris2010-06-29 19:48:54 -0700
commit6259c2ec7ae4b60f59d5101c8c544d15a90540a3 (patch)
treee0680ee34ce375d77f41226081a616a3f1f762e1 /src
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.
Diffstat (limited to 'src')
-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
10 files changed, 12 insertions, 35 deletions
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