tools: add more checks for devel packages
PATCH 1/1 tools: add more checks for devel packages
On different systems I ran into different build failures that can be made more understandable by adding appropriate -devel package installation checks.
All files must be given exec permission after applying the patch.
Signed-off-by Jan Beulich <[email protected]>
tools/check/check_crypto_lib new file +11 -0
@@ -0,0 +1,11 @@ +#!/bin/bash +# CHECK-BUILD CHECK-INSTALL + +function error { + echo + echo " *** Check for crypto library FAILED" + exit 1 +} + +set -e +ldconfig -p | grep -q libcrypto.so || error
tools/check/check_openssl_devel new file +11 -0
@@ -0,0 +1,11 @@ +#!/bin/bash +# CHECK-BUILD + +function error { + echo + echo " *** Check for openssl headers FAILED" + exit 1 +} + +set -e +[ -e /usr/include/openssl/md5.h ] || error
tools/check/check_x11_devel new file +11 -0
@@ -0,0 +1,11 @@ +#!/bin/bash +# CHECK-BUILD + +function error { + echo + echo " *** Check for x11 headers FAILED" + exit 1 +} + +set -e +[ -e /usr/include/X11/keysymdef.h ] || error