13 February 2014

This is an approved src.alt for 447.dealII in CPU2006 v1.2.

This src.alt allows 447.dealII to be built with Microsoft Visual Studio
2013, other compilers that use its STL header files, or any compiler that
requires explicit inclusion of the algorithm header file to get a prototype
for the std::max function.

Note that building with Microsoft Visual Studio will also require use of
the cxx11_make_pair src.alt, available from the same location as this
src.alt.

To apply the src.alt, unpack the tar file in the top level of the CPU2006
directory.  The following sequence of commands should accomplish this:

$ /bin/sh
$ cd <CPU2006 dir>
$ . ./shrc
$ go top
$ specxz -dc <src.alt tarball> | spectar -xvf -

Please replace the items in angle brackets ( <> ) as appropriate.

To have the src.alt applied during compilation, please add the following
stanza to your config file:

447.dealII:
srcalt = max_prototype
CXXPORTABILITY = -DSPEC_NEED_ALGORITHM

Because this src.alt adds a new flag, in order to avoid having
"-DSPEC_NEED_ALGORITHM" marked as an "unknown" flag, it is necessary
to update the flags files in your distribution.  You can do this by running

$ runspec --newflags

For more information on this option, see

  http://www.spec.org/cpu2006/Docs/runspec.html#newflags

Information on setting HTTP proxies is at

  http://www.spec.org/cpu2006/Docs/runspec.html#http_proxy

This src.alt adds an include of the algorithm header file to the
quadrature_lib.cc file to get a prototype for the std::max function.

Please address any questions about this src.alt to cpu2006support@spec.org.
