mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-26 15:40:06 +01:00
configure.ac: Always check for C++ compiler
Even though libinput uses no C++, it should be supported to include libinput.h from C++. Therefore a build test ensuring this possibility exist. However, since we can not conditionally invoke AC_PROG_CXX in configure.ac just do it always. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
07750ef798
commit
32e513226c
1 changed files with 1 additions and 3 deletions
|
|
@ -26,6 +26,7 @@ AM_SILENT_RULES([yes])
|
|||
|
||||
# Check for programs
|
||||
AC_PROG_CC_C99
|
||||
AC_PROG_CXX # Only used by build C++ test
|
||||
|
||||
# Initialize libtool
|
||||
LT_PREREQ([2.2])
|
||||
|
|
@ -75,9 +76,6 @@ fi
|
|||
if test "x$build_tests" = "xyes" -a "x$HAVE_CHECK" = "xno"; then
|
||||
AC_MSG_ERROR([Cannot build tests, check is missing])
|
||||
fi
|
||||
if test "x$build_tests" = "xyes"; then
|
||||
AC_PROG_CXX
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(BUILD_TESTS, [test "x$build_tests" = "xyes"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue