Skip to content

Commit d50769d

Browse files
stweilzdenop
authored andcommitted
autogen: Report missing requirements (#1394)
* autogen: Report missing autoconf-archive autoconf-archive is required, but users often missed that requirement. The script now detects and reports missing autoconf-archive and removes the incomplete generated configure script. Signed-off-by: Stefan Weil <sw@weilnetz.de> * autogen: Report missing pkg-config pkg-config is required. The script now detects and reports missing pkg-config and removes the incomplete generated configure script. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 023e1b3 commit d50769d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

autogen.sh

+14
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ automake --add-missing --copy --warnings=all || bail_out
113113
echo "Running autoconf"
114114
autoconf || bail_out
115115

116+
if grep -q AX_CHECK_COMPILE_FLAG configure; then
117+
# The generated configure is invalid because autoconf-archive is unavailable.
118+
rm configure
119+
echo "Missing autoconf-archive. Check the build requirements."
120+
bail_out
121+
fi
122+
123+
if grep -q PKG_CHECK_MODULES configure; then
124+
# The generated configure is invalid because pkg-confg is unavailable.
125+
rm configure
126+
echo "Missing pkg-config. Check the build requirements."
127+
bail_out
128+
fi
129+
116130
echo ""
117131
echo "All done."
118132
echo "To build the software now, do something like:"

0 commit comments

Comments
 (0)