mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 12:40:07 +01:00
configure.ac: add a toggle to enable the special coverity options
Coverity tries to supply system headers and fails badly at it. A bunch of _Float... sizes are pulled in by math.h but not provided anywhere. So as a workaround, let's add an option to explicitly enable coverity support that simply #defines those types to ones we do know about and let's go on hoping it'll eventually work. See the equivalent addition to libinput in commit 8178339b5baa717. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
25cddcecd3
commit
9fec3228fb
1 changed files with 21 additions and 0 deletions
21
configure.ac
21
configure.ac
|
|
@ -126,6 +126,26 @@ AC_SUBST([GCOV_CFLAGS])
|
||||||
AC_SUBST([GCOV_LDFLAGS])
|
AC_SUBST([GCOV_LDFLAGS])
|
||||||
AC_MSG_RESULT([$enable_gcov])
|
AC_MSG_RESULT([$enable_gcov])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to build with coverity support])
|
||||||
|
AC_ARG_ENABLE([coverity],
|
||||||
|
[AS_HELP_STRING([--enable-coverity],
|
||||||
|
[Whether to build with coverity support (default: disabled)])],
|
||||||
|
[],
|
||||||
|
[enable_coverity=no],
|
||||||
|
)
|
||||||
|
AS_IF([test "x$enable_coverity" != "xno"],
|
||||||
|
[
|
||||||
|
AC_DEFINE([_Float128], [__uint128_t], [Override for coverity])
|
||||||
|
AC_DEFINE([_Float32], [int], [Override for coverity])
|
||||||
|
AC_DEFINE([_Float32x], [int], [Override for coverity])
|
||||||
|
AC_DEFINE([_Float64], [long], [Override for coverity])
|
||||||
|
AC_DEFINE([_Float64x], [long], [Override for coverity])
|
||||||
|
enable_coverity=yes
|
||||||
|
],
|
||||||
|
)
|
||||||
|
AC_MSG_RESULT([$enable_coverity])
|
||||||
|
|
||||||
|
|
||||||
AM_PATH_PYTHON([2.6])
|
AM_PATH_PYTHON([2.6])
|
||||||
|
|
||||||
# nm to check for leaking symbols in the static library
|
# nm to check for leaking symbols in the static library
|
||||||
|
|
@ -163,5 +183,6 @@ AC_MSG_RESULT([
|
||||||
Build documentation ${have_doxygen}
|
Build documentation ${have_doxygen}
|
||||||
Enable unit-tests ${HAVE_CHECK}
|
Enable unit-tests ${HAVE_CHECK}
|
||||||
Enable profiling ${enable_gcov}
|
Enable profiling ${enable_gcov}
|
||||||
|
Enable coverity support ${enable_coverity}
|
||||||
Static library symbol check ${static_symbol_leaks_test}
|
Static library symbol check ${static_symbol_leaks_test}
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue