check libxc version supplied with LIBXC_VERSION

This commit is contained in:
edoapra 2022-11-10 11:16:18 -08:00
parent 3967ab238d
commit b723e9d2f6
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -12,6 +12,14 @@ if [ $# -eq 0 ]; then
else
VERSION=$1
fi
VERSION_MAJOR=$(echo $VERSION | cut -d . -f 1)
if [[ "$VERSION_MAJOR" -lt 4 ]]; then
echo
echo "LIBXC unsupported version " "$VERSION"
echo "please use 4.0.0 and later versions"
echo
exit 1
fi
TGZ=libxc-${VERSION}.tar.gz
if [ `check_tgz $TGZ` == 1 ]; then
echo "using existing $TGZ"