]> git.eshelyaron.com Git - emacs.git/commitdiff
Move ULIMIT_BREAK_VALUE from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Fri, 13 Jul 2012 00:19:10 +0000 (20:19 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 13 Jul 2012 00:19:10 +0000 (20:19 -0400)
* 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.

ChangeLog
configure.ac
src/ChangeLog
src/s/gnu-linux.h
src/s/irix6-5.h

index 59f9981bc3fdfb63f3eba8af88d5cf204536c378..0132571d2e0f755aefa0f139ef1460963789b5b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-13  Glenn Morris  <rgm@gnu.org>
+
+       * configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s.
+
 2012-07-12  Glenn Morris  <rgm@gnu.org>
 
        * configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA
index 24ad6b59f571e15794a1726374366efd7e1dbfb8..90016de779b9eb925abb58ee479b81fc5dd8fff7 100644 (file)
@@ -3545,6 +3545,7 @@ case $opsys in
 esac
 
 
+AH_TEMPLATE(ULIMIT_BREAK_VALUE, [Undocumented.])
 AH_TEMPLATE(TAB3, [Undocumented.])
 
 case $opsys in
@@ -3555,10 +3556,25 @@ case $opsys in
     AC_DEFINE(TAB3, OXTABS)
     ;;
 
+  gnu-linux | gnu-kfreebsd )
+    dnl libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared
+    dnl library, we cannot get the maximum address for brk.
+    AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
+#ifndef __i386__
+# error "not i386"
+#endif
+      ]], [[]])], AC_DEFINE(ULIMIT_BREAK_VALUE, [(32*1024*1024)]), [])
+    ;;
+
   hpux*)
     AC_DEFINE(RUN_TIME_REMAP, 1, [Define if emacs.c needs to call
       run_time_remap; for HPUX.])
     ;;
+
+  irix6-5)
+    dnl Ulimit(UL_GMEMLIM) is busted...
+    AC_DEFINE(ULIMIT_BREAK_VALUE, [0x14000000])
+    ;;
 esac
 
 
index 4f08d108f5d8e5795cdbebbc8d5b9da7aa37ddd9..c66b38147fffa8179c425f4c9a08f6ba95d180d9 100644 (file)
@@ -1,5 +1,7 @@
 2012-07-13  Glenn Morris  <rgm@gnu.org>
 
+       * s/gnu-linux.h, s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE.
+
        * process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION.
        * s/darwin.h (MIN_PTY_KERNEL_VERSION): Remove single-use macro.
 
index 569b69f574b8a8b8e3a6774b752629deb7719f1c..30bdf0407be25876549cbee099e1bffe2aa47e9d 100644 (file)
@@ -57,9 +57,3 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #else
 #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE
 #endif
-
-#ifdef __i386__
-/* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
-/* we cannot get the maximum address for brk */
-# define ULIMIT_BREAK_VALUE (32*1024*1024)
-#endif
index 39ac59a00c2a4bf26b2e7a706a70eb0ebff5b1c0..a8923d230d2c37d58c805af1408c2e3b9d3ad45e 100644 (file)
@@ -30,9 +30,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 char *_getpty();
 #endif
 
-/* Ulimit(UL_GMEMLIM) is busted...  */
-#define ULIMIT_BREAK_VALUE 0x14000000
-
 #undef SA_RESTART     /* not the same as defining BROKEN_SA_RESTART */
 
 #undef TIOCSIGSEND             /* defined in usg5-4-common.h */