configure: check whether gperf is compatible

closes #337
master
rofl0r 2021-02-13 09:53:55 +00:00
parent adad565c03
commit 4147e917d6
1 changed files with 7 additions and 0 deletions

View File

@ -210,7 +210,14 @@ AH_TEMPLATE([HAVE_GPERF],
[Whether you have gperf installed for faster config parsing.])
if test "x$GPERF" != "x" -a "x$GPERF" != "xno" ; then
AS_ECHO_N(["checking whether gperf is recent enough... "])
if "$GPERF" < src/conf-tokens.gperf >/dev/null 2>&1 ; then
AS_ECHO("yes")
AC_DEFINE(HAVE_GPERF)
else
AM_CONDITIONAL(HAVE_GPERF, false)
AS_ECHO("no")
fi
fi
AC_CONFIG_FILES([