Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lekshmideepu committed Aug 7, 2015
1 parent 871c5d8 commit 2cf7691
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,26 @@ set -x

./autogen.sh

#openmpi
export LD_LIBRARY_PATH="/usr/lib/openmpi/lib:$LD_LIBRARY_PATH"
export CPATH="/usr/lib/openmpi/include:$CPATH"
export PATH="/usr/include/mpi:$PATH"
if [ "$xMPI" = "1" ] ; then
#openmpi
export LD_LIBRARY_PATH="/usr/lib/openmpi/lib:$LD_LIBRARY_PATH"
export CPATH="/usr/lib/openmpi/include:$CPATH"
export PATH="/usr/include/mpi:$PATH"

CONFIGURE_MPI=""
else
CONFIGURE_MPI="--disable-mpi"
fi

if [ "$xInSource" = "InSource+" ] ; then
CONFIGURE="./configure"
else
MUSIC_VPATH=build
mkdir "$MUSIC_VPATH"
cd "$MUSIC_VPATH"
CONFIGURE="../configure"
fi
#if [ "$xInSource" = "InSource+" ] ; then

# CONFIGURE="./configure"
#else
MUSIC_VPATH=build
mkdir "$MUSIC_VPATH"
cd "$MUSIC_VPATH"
CONFIGURE="../configure"
#fi

MUSIC_RESULT=result
mkdir "$MUSIC_RESULT"
Expand Down

0 comments on commit 2cf7691

Please sign in to comment.