10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-12-22 20:33:32 +01:00
qmcchem/install/scripts/install_zmq.sh

30 lines
792 B
Bash
Raw Normal View History

2015-12-18 22:25:32 +01:00
#!/bin/bash -x
TARGET=zmq
function _install()
{
LIBVERSION=4
2015-12-18 22:53:27 +01:00
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
2015-12-18 22:25:32 +01:00
set +u
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":./
set -e
set -u
cd "${BUILD}"
./configure --without-libsodium
make -j 8
cd -
2015-12-18 22:53:27 +01:00
rm -f -- "${QMCCHEM_PATH}"/lib/libzmq.{a,so,so.$LIBVERSION}
# cp "${BUILD}"/.libs/libzmq.a "${QMCCHEM_PATH}"/lib/
# cp "${BUILD}"/.libs/libzmq.so "${QMCCHEM_PATH}"/lib/libzmq.so.$LIBVERSION
cp "${BUILD}"/src/.libs/libzmq.a "${QMCCHEM_PATH}"/lib/
cp "${BUILD}"/src/.libs/libzmq.so "${QMCCHEM_PATH}"/lib/libzmq.so.$LIBVERSION
cp "${BUILD}"/include/{zmq,zmq_utils}.h "${QMCCHEM_PATH}"/lib/
cd "${QMCCHEM_PATH}"/lib
2015-12-18 22:25:32 +01:00
ln libzmq.so.$LIBVERSION libzmq.so || cp libzmq.so.$LIBVERSION libzmq.so
cd -
return 0
}
source scripts/build.sh