trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wanderingb...@apache.org
Subject git commit: TS-1230 configure has an option for overriding ARG_MAX
Date Mon, 30 Apr 2012 21:59:17 GMT
Updated Branches:
  refs/heads/master 9c0f0ef94 -> a3c543a64


TS-1230 configure has an option for overriding ARG_MAX


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/a3c543a6
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/a3c543a6
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/a3c543a6

Branch: refs/heads/master
Commit: a3c543a64c55f8827763bcf3ed9453fcf793966e
Parents: 9c0f0ef
Author: Bart Wyatt <wanderingbort@apache.org>
Authored: Mon Apr 30 16:57:28 2012 -0500
Committer: Bart Wyatt <wanderingbort@apache.org>
Committed: Mon Apr 30 16:57:28 2012 -0500

----------------------------------------------------------------------
 CHANGES      |    3 +++
 configure.ac |   15 +++++++++++----
 2 files changed, 14 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a3c543a6/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 1819e0d..ce98586 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 3.1.4
+  *) [TS-1230] added a paramter to the configure script to allow overriding
+   the calculated ARG_MAX value
+
   *) [TS-1208] enable check_memory() in traffic_cop for Linux
 
   *) [TS-1217] cop cleanup, remove unused variables & defines

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a3c543a6/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 7160aed..9247075 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1031,10 +1031,17 @@ TS_CHECK_TCMALLOC
 #
 # Determine ARG_MAX
 # Default to 2048 if we cannot resolve ARG_MAX for some reason
-arg_max="`getconf ARG_MAX`"
-if test "x${arg_max}" = x ; then
- arg_max=2048
-fi
+AC_ARG_WITH([arg_max],
+  [AS_HELP_STRING([--with-arg-max=[ARG_MAX]],[override the computed maxmium argument length])],
+  [
+  arg_max="$withval"
+  ],[
+  arg_max="`getconf ARG_MAX`"
+  if test "x${arg_max}" = x ; then
+    arg_max=2048
+  fi
+  ]
+)
 AC_SUBST(arg_max)
 
 #


Mime
View raw message