DSPSR: Building for multiple architectures/compilers

When compiling the DSPSR source code, the location of the build directory is arbitrary. That is, your present working directory need not necessarily be the top of the source code tree when you run configure and make.

This fact enables the DSPSR software to be compiled on multiple architectures or with different compilers using the same source code tree. You simply create a separate build directory for each architecture/compiler combination and change to this directory before running configure and make.

For example, suppose that the software has been unpacked into the $HOME/dspsr-3.1 directory, and that you wish to compile the software twice, once using the GNU compiler collection, and once using the Intel compilers. Create two separate build directories, e.g. $HOME/gnu and $HOME/intel.

To compile with GNU:

cd $HOME/gnu
$HOME/dspsr-3.1/configure --prefix=$PWD
make
make install
To compile with the Intel compilers:
cd $HOME/intel
setenv CXX icc
setenv CC icc
setenv F77 ifort
$HOME/dspsr-3.1/configure --prefix=$PWD
make
make install
In each case, the final step installs the DSPSR software into sub-directories of the current build directory.