From 375ce7a7faf2d3416d490793f30f50ebee2ea9e3 Mon Sep 17 00:00:00 2001 From: 0xOZ Date: Wed, 20 Sep 2023 08:33:25 +0300 Subject: [PATCH] trying to fix build for android devices --- configure.ac | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 058342f5f16..0bc3c5d3b37 100644 --- a/configure.ac +++ b/configure.ac @@ -1153,14 +1153,20 @@ dnl ====================================================================== CLIENTLIBS= -# Add -levdev linker -AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ -#ifdef LINUX_SYSTEM +AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ]], + [[ + + ]])], + [ + AC_MSG_RESULT([yes]) + CLIENTLIBS="$CLIENTLIBS -levdev" + ], + [ + AC_MSG_RESULT([no]) + ] + ) + -#endif -]], [])], [ - CLIENTLIBS="${CLIENTLIBS} -levdev" -]) SAH_CHECK_LIB([m],[sin], [ AC_DEFINE([HAVE_LIBM],[1],[Define to 1 if you have the math library])