diff options
| author | Glenn Morris | 2012-07-12 20:19:10 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-12 20:19:10 -0400 |
| commit | dbee57935d2ca614c6ec052f1f26a4c67bc7eaa8 (patch) | |
| tree | 32abf593240c74ce9679e35ecb22b35e7c047bf0 | |
| parent | 6de0e799032b36bed7f7aa066a60d6c5ff9066b6 (diff) | |
| download | emacs-dbee57935d2ca614c6ec052f1f26a4c67bc7eaa8.tar.gz emacs-dbee57935d2ca614c6ec052f1f26a4c67bc7eaa8.zip | |
Move ULIMIT_BREAK_VALUE from src/s to configure
* configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s.
* src/s/gnu-linux.h, src/s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 16 | ||||
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 6 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 3 |
5 files changed, 22 insertions, 9 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s. | ||
| 4 | |||
| 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> | 5 | 2012-07-12 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA | 7 | * configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA |
diff --git a/configure.ac b/configure.ac index 24ad6b59f57..90016de779b 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3545,6 +3545,7 @@ case $opsys in | |||
| 3545 | esac | 3545 | esac |
| 3546 | 3546 | ||
| 3547 | 3547 | ||
| 3548 | AH_TEMPLATE(ULIMIT_BREAK_VALUE, [Undocumented.]) | ||
| 3548 | AH_TEMPLATE(TAB3, [Undocumented.]) | 3549 | AH_TEMPLATE(TAB3, [Undocumented.]) |
| 3549 | 3550 | ||
| 3550 | case $opsys in | 3551 | case $opsys in |
| @@ -3555,10 +3556,25 @@ case $opsys in | |||
| 3555 | AC_DEFINE(TAB3, OXTABS) | 3556 | AC_DEFINE(TAB3, OXTABS) |
| 3556 | ;; | 3557 | ;; |
| 3557 | 3558 | ||
| 3559 | gnu-linux | gnu-kfreebsd ) | ||
| 3560 | dnl libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared | ||
| 3561 | dnl library, we cannot get the maximum address for brk. | ||
| 3562 | AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ | ||
| 3563 | #ifndef __i386__ | ||
| 3564 | # error "not i386" | ||
| 3565 | #endif | ||
| 3566 | ]], [[]])], AC_DEFINE(ULIMIT_BREAK_VALUE, [(32*1024*1024)]), []) | ||
| 3567 | ;; | ||
| 3568 | |||
| 3558 | hpux*) | 3569 | hpux*) |
| 3559 | AC_DEFINE(RUN_TIME_REMAP, 1, [Define if emacs.c needs to call | 3570 | AC_DEFINE(RUN_TIME_REMAP, 1, [Define if emacs.c needs to call |
| 3560 | run_time_remap; for HPUX.]) | 3571 | run_time_remap; for HPUX.]) |
| 3561 | ;; | 3572 | ;; |
| 3573 | |||
| 3574 | irix6-5) | ||
| 3575 | dnl Ulimit(UL_GMEMLIM) is busted... | ||
| 3576 | AC_DEFINE(ULIMIT_BREAK_VALUE, [0x14000000]) | ||
| 3577 | ;; | ||
| 3562 | esac | 3578 | esac |
| 3563 | 3579 | ||
| 3564 | 3580 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 4f08d108f5d..c66b38147ff 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * s/gnu-linux.h, s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE. | ||
| 4 | |||
| 3 | * process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION. | 5 | * process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION. |
| 4 | * s/darwin.h (MIN_PTY_KERNEL_VERSION): Remove single-use macro. | 6 | * s/darwin.h (MIN_PTY_KERNEL_VERSION): Remove single-use macro. |
| 5 | 7 | ||
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 569b69f574b..30bdf0407be 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -57,9 +57,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 57 | #else | 57 | #else |
| 58 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | 58 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE |
| 59 | #endif | 59 | #endif |
| 60 | |||
| 61 | #ifdef __i386__ | ||
| 62 | /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */ | ||
| 63 | /* we cannot get the maximum address for brk */ | ||
| 64 | # define ULIMIT_BREAK_VALUE (32*1024*1024) | ||
| 65 | #endif | ||
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 39ac59a00c2..a8923d230d2 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -30,9 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | char *_getpty(); | 30 | char *_getpty(); |
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||
| 33 | /* Ulimit(UL_GMEMLIM) is busted... */ | ||
| 34 | #define ULIMIT_BREAK_VALUE 0x14000000 | ||
| 35 | |||
| 36 | #undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */ | 33 | #undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */ |
| 37 | 34 | ||
| 38 | #undef TIOCSIGSEND /* defined in usg5-4-common.h */ | 35 | #undef TIOCSIGSEND /* defined in usg5-4-common.h */ |