You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2012/01/26 06:46:05 UTC
svn commit: r1236043 - in /trafficserver/traffic/trunk: INSTALL configure.ac
Author: jpeach
Date: Thu Jan 26 05:46:04 2012
New Revision: 1236043
URL: http://svn.apache.org/viewvc?rev=1236043&view=rev
Log:
TS-1082: Fix optimizer flags detection.
If the builder specifies optimizer flags, don't flip the default
to -O3. Tidy up INSTALL a bit and document how to set the optimizer
flags.
Modified:
trafficserver/traffic/trunk/INSTALL
trafficserver/traffic/trunk/configure.ac
Modified: trafficserver/traffic/trunk/INSTALL
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/INSTALL?rev=1236043&r1=1236042&r2=1236043&view=diff
==============================================================================
--- trafficserver/traffic/trunk/INSTALL (original)
+++ trafficserver/traffic/trunk/INSTALL Thu Jan 26 05:46:04 2012
@@ -1,72 +1,75 @@
-APACHE TRAFFIC SERVER INSTALLATION
+APACHE TRAFFIC SERVER UNIX QUICKSTART
+-------------------------------------
- Quick Start - Unix
- -----------------
+For complete installation documentation, see the on-line documentation at
- For complete installation documentation, see the on-line documentation at
+ http://trafficserver.apache.org/docs
- http://trafficserver.apache.org/docs.html
+BUILD AND INSTALLATION
+----------------------
- Configure & Build:
- Source (SVN)
- $ autoreconf -i # generate the configure script and Makefile.in files
-
- On Linux, OSX and FreeBSD:
- $ ./configure [--prefix=PREFIX]
- $ make
-
- On OpenSolaris:
- $ ./configure [--prefix=PREFIX] CC=/usr/bin/gcc-4.3.2 CXX=/usr/bin/g++-4.3.2
- $ make
-
- Next set the cluster interface in 'records.config'
- On Linux: e.g
- CONFIG proxy.config.cluster.ethernet_interface STRING eth0
- On OSX: e.g
- CONFIG proxy.config.cluster.ethernet_interface STRING en0
- on FreeBSD: e.g.
- CONFIG proxy.config.cluster.ethernet_interface STRING em0
- On OpenSolaris e.g.
- CONFIG proxy.config.cluster.ethernet_interface STRING e1000g0
+Configure & Build from source:
+ $ autoreconf -i # generate the configure script and Makefile.in files
- To install:
+On Linux, OSX and FreeBSD:
+ $ ./configure [--prefix=PREFIX]
+ $ make
+
+On OpenSolaris:
+ $ ./configure [--prefix=PREFIX]
+ $ gmake
+
+To install:
$ sudo make install
- To start Traffic Server process stack (TC, TM, TS):
- On Linux:
- $ sudo PREFIX/bin/trafficserver start
+* Replace PREFIX with the filesystem path under which Traffic Server
+ should be installed. Default PREFIX is "/usr/local" (without the
+ quotes).
+
+* If you want to build using different layout see the config.layout
+ file for possible alternatives. You can create your own layout
+ and enable it with ./configure --enable-layout=ID, where ID is
+ the layout name you have created.
+
+* The easiest way to find all of the configuration flags
+ for Traffic Server is to run ./configure --help.
+
+To build the examples in example directory use
+ $ make examples
+
+To installl the examples inside current layout libexecdir use the
+ $ sudo make install-examples
+
+By default the build will use the highest level of compiler
+optimization. To alter this, specify your own optimizer flags at
+configuration time:
- On FreeBSD, OSX and OpenSolaris:
- $ sudo PREFIX/bin/traffic_cop
+ $ ./configure CXXFLAGS=-Os CFLAGS=-Os
- NOTES: * Replace PREFIX with the filesystem path under which
- Traffic Server should be installed. Default PREFIX
- is "/usr/local" (without the quotes).
+INITIAL CONFIGURATION
- * If you want to build using different layout see the config.layout
- file for possible alternatives. You can create your own layout and
- enable it with ./configure --enable-layout=ID, where ID is the
- layout name you have created.
+Next set the cluster interface in 'records.config'. The network
+interface name will vary depending on the host operating system.
- * The easiest way to find all of the configuration flags
- for Traffic Server is to run ./configure --help.
+For example:
+ Linux: CONFIG proxy.config.cluster.ethernet_interface STRING eth0
+ OS X: CONFIG proxy.config.cluster.ethernet_interface STRING en0
+ FreeBSD: CONFIG proxy.config.cluster.ethernet_interface STRING em0
+ OpenSolaris: CONFIG proxy.config.cluster.ethernet_interface STRING e1000g0
- * To build the examples in example directory use
- $ make examples
- To installl the examples inside current layout libexecdir
- use the
- $ sudo make install-examples
+To start the Traffic Server process stack (TC, TM, TS):
+ $ sudo PREFIX/bin/trafficserver start
- Postscript
- ----------
+INSTALLATION HELP
- The Apache Traffic Server group cannot field user's installation questions.
- There are many valuable forums to help you get started. Please refer your
- questions to the appropriate forum, such as the Users Mailing List at
+The Apache Traffic Server group cannot field user's installation
+questions. There are many valuable forums to help you get started.
+Please refer your questions to the appropriate forum, such as the
+Users Mailing List at
- http://cwiki.apache.org/confluence/display/TS/Traffic+Server
+ http://cwiki.apache.org/confluence/display/TS/Traffic+Server
- Thanks for using the Apache Traffic Server, version 2.1.
+Thanks for using the Apache Traffic Server, version 3.
- The Apache Software Foundation
- http://www.apache.org/
+ The Apache Software Foundation
+ http://www.apache.org/
Modified: trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/configure.ac?rev=1236043&r1=1236042&r2=1236043&view=diff
==============================================================================
--- trafficserver/traffic/trunk/configure.ac (original)
+++ trafficserver/traffic/trunk/configure.ac Thu Jan 26 05:46:04 2012
@@ -529,16 +529,20 @@ AC_ARG_VAR([PERL], [full path of Perl ex
CFLAGS="${REAL_CFLAGS}"
CXXFLAGS="${REAL_CXXFLAGS}"
-AC_MSG_CHECKING([checking whether to auto-set compile optimizing flags])
-has_optimizer_flags=`$as_echo "$CFLAGS $CXXFLAGS" | ${AWK} '/-x?O.?/{print "no"}'`
+# Check for GNU-style -On and for Solaris Studio style -xOn.
+AC_MSG_CHECKING([checking whether to auto-set compiler optimization flags])
+has_optimizer_flags=`echo "$CFLAGS $CXXFLAGS" | ${AWK} '$0 !~ /-x?O.?/{print "no"}'`
AS_IF([test "x${has_optimizer_flags}" = "xno"],
- [ optimizing_flags='' ],
[
- has_optimizer_flags='yes'
optimizing_flags='-O3'
+ AC_MSG_RESULT([yes ${optimizing_flags}])
+ ],
+ [
+ has_optimizer_flags='yes'
+ optimizing_flags=''
+ AC_MSG_RESULT([no])
]
)
-AC_MSG_RESULT([${has_optimizer_flags} ${optimizing_flags}])
base_cc=`basename $CC`
# These are shortcuts used in combination for the compiler options below