1
0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-11-23 04:51:59 +01:00

Check if pkg-config is valid before checking for libs

This commit is contained in:
Alexandre Oliveira 2020-11-02 19:37:26 +01:00 committed by Drew DeVault
parent c036a43801
commit 4134dc1b4a

@ -85,6 +85,11 @@ find_library() {
name="$1"
pc="$2"
printf "Checking for %s... " "$name"
if ! command -v pkg-config >/dev/null
then
printf "ERROR: pkg-config not found\n"
return 1
fi
if ! pkg-config "$pc" 2>/dev/null
then
printf "NOT FOUND\n"