Skip to content

Commit

Permalink
Make error message from ./bootstrap.sh less confusing.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf committed Aug 11, 2015
1 parent 4518361 commit 4c70b64
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ do_cmd() {
}

test -f configure.ac || die "No configure.ac found."
which pkg-config > /dev/null || die "ERROR: pkg-config not found. Install pkg-config and run $0 again"

# Generate aclocal.m4 for use by autoconf
do_cmd $ACLOCAL $ACLOCAL_FLAGS
Expand All @@ -31,12 +32,6 @@ do_cmd $AUTOHEADER $AUTOHEADER_FLAGS
# Generate configure
do_cmd $AUTOCONF $AUTOCONF_FLAGS

if grep PKG_CHECK_MODULES configure > /dev/null
then
rm configure
die "ERROR: pkg-config not found. Install pkg-config and run $0 again"
fi

# Copy config.sub, config.guess, install.sh, ...
# This will complain that we don't use automake, let's just ignore that
do_cmd $AUTOMAKE $AUTOMAKE_FLAGS || true
Expand Down

0 comments on commit 4c70b64

Please sign in to comment.