configure: Fix gperf length parameter determination

gperf is not actually a build dependency as the generated files are
shipped in the tarball.  So the type depends on the gperf version on
the host that ran gperf and created the tarball, which might not be
the same as that on the actual build host, and gperf might not even
be installed there, leaving the type undetermined.

Fixes: e0e4322973 ("configure: Detect type of length parameter for gperf generated function")
This commit is contained in:
Tobias Brunner
2017-10-02 17:21:42 +02:00
parent 7dd29ab4ed
commit 0ae19f0ced
12 changed files with 39 additions and 15 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ if test -x "$GPERF"; then
[AC_MSG_ERROR([unable to determine gperf len type])]
)]
)
AC_DEFINE_UNQUOTED([GPERF_LEN_TYPE], [$GPERF_LEN_TYPE], [gperf len type])
AC_SUBST(GPERF_LEN_TYPE)
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])