Browse Source

[build] check for xxhash in more ways

pkg-config libxxhash.pc might not be provided with xxhash < 0.7.3

x-ref:
  "Update build-dep for xxhash [...]"
  https://salsa.debian.org/debian/lighttpd/-/merge_requests/29
master
Glenn Strauss 2 months ago
parent
commit
5e711068e4
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      configure.ac

+ 7
- 1
configure.ac View File

@ -1204,7 +1204,13 @@ if test "$WITH_XXHASH" != no; then
CPPFLAGS="$CPPFLAGS -I$WITH_XXHASH"
else
PKG_CHECK_MODULES([XXHASH], [libxxhash], [], [
AC_MSG_ERROR([xxhash not found, install it or build without --with-xxhash])
AC_CHECK_LIB([xxhash], [XXH_versionNumber],
[XXHASH_LIBS=-lxxhash],
[AC_MSG_ERROR([xxhash not found, install it or build without --with-xxhash])]
)
AC_CHECK_HEADERS([xxhash.h], [],
[AC_MSG_ERROR([xxhash not found, install it or build without --with-xxhash])]
)
])
fi


Loading…
Cancel
Save