mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 12:53:00 -05:00
[config] Make gperf/antlr maintainer tools, support distcheck
Updated configure to allow gperf/antlr to be missing if products are in distribution (allows option of building w/o those tools) Removed circular dependency of antlr products on clean Added missing ffmpeg-compat.h header (correct dist) Include gperf/antlr products in dist gperf/antlr products removed with maintainer-clean Support vpath builds, distcheck passes Added support for non-verbose builds
This commit is contained in:
35
configure.ac
35
configure.ac
@@ -16,25 +16,26 @@ AM_PROG_CC_C_O
|
||||
LT_INIT([disable-static])
|
||||
|
||||
AC_CHECK_PROG(GPERF, [gperf], [gperf])
|
||||
if test "x$GPERF" = x; then
|
||||
AC_MSG_ERROR([GNU gperf not found, please install it])
|
||||
fi
|
||||
AC_SUBST(GPERF)
|
||||
AS_IF([test -z "$GPERF"],
|
||||
[AS_IF([test -f "$srcdir/src/dmap_fields_hash.h"],
|
||||
[AM_MISSING_PROG([GPERF], [gperf])
|
||||
AC_MSG_NOTICE([
|
||||
|
||||
GNU gperf not found, but it's output appears to be present.
|
||||
If you modify any gperf or ANTLR grammer files, you will need to install it.
|
||||
])],
|
||||
[AC_MSG_ERROR([GNU gperf required and not found, please install it.])])])
|
||||
|
||||
AC_CHECK_PROG(ANTLR, [antlr3], [antlr3])
|
||||
if test "x$ANTLR" = x; then
|
||||
if test -d $srcdir/src/pregen; then
|
||||
for f in $srcdir/src/pregen/*; do
|
||||
bf=`basename $f`
|
||||
ln -sf pregen/$bf $srcdir/src/$bf
|
||||
done
|
||||
AC_MSG_NOTICE([antlr3 wrapper not found, using pre-generated files])
|
||||
else
|
||||
AC_MSG_ERROR([antlr3 wrapper not found and pre-generated files not available])
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(ANTLR)
|
||||
AM_CONDITIONAL(COND_ANTLR, test "x$ANTLR" != x)
|
||||
AS_IF([test -z "$ANTLR"],
|
||||
[AS_IF([test -f "$srcdir/src/SMARTPLLexer.h"],
|
||||
[AM_MISSING_PROG([ANTLR], [antlr3])
|
||||
AC_MSG_NOTICE([
|
||||
|
||||
antlr3 not found, but it's output appears to be present.
|
||||
If you modify any ANTLR grammer files (.g), you will need to install it.
|
||||
])],
|
||||
[AC_MSG_ERROR([antlr3 wrapper required and not found, please install it.])])])
|
||||
|
||||
AM_CPPFLAGS="-D_LARGEFILE_SOURCE -Wall"
|
||||
AC_SUBST([AM_CPPFLAGS])
|
||||
|
||||
Reference in New Issue
Block a user