Skip to content

Commit

Permalink
btrfs-progs: autogen: add check for pkg-config
Browse files Browse the repository at this point in the history
Configure uses pkg-config, this should be at least checked at the
autogen time.

Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kdave committed Sep 7, 2015
1 parent a608d60 commit 22edaa7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@ test -f btrfs.c || {
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to generate btrfs-progs build system."
echo
echo
DIE=1
}

(pkg-config --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have pkg-config installed to use btrfs-progs build system."
echo "The pkg-config utility was not found in the standard location, set"
echo "the PKG_CONFIG/PKG_CONFIG_PATH/PKG_CONFIG_LIBDIR variables at the"
echo "configure time."
echo
}

if test "$DIE" -eq 1; then
exit 1
fi
Expand Down

0 comments on commit 22edaa7

Please sign in to comment.