[LTP] [RFC PATCH v2 4/7] realtime/m4: Simplify exp10 check

Petr Vorel pvorel@suse.cz
Wed Jan 26 13:35:44 CET 2022


Yes, uclibc-ng still haven't defined exp10, thus still needed.

Link: https://github.com/linux-test-project/ltp/issues/13

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
New in v2

 testcases/realtime/configure.ac    |  4 ++--
 testcases/realtime/m4/ltp-exp10.m4 | 37 ------------------------------
 2 files changed, 2 insertions(+), 39 deletions(-)
 delete mode 100644 testcases/realtime/m4/ltp-exp10.m4

diff --git a/testcases/realtime/configure.ac b/testcases/realtime/configure.ac
index e483caf0d2..6f50f1490f 100644
--- a/testcases/realtime/configure.ac
+++ b/testcases/realtime/configure.ac
@@ -35,8 +35,8 @@ else
 	AC_MSG_RESULT(no)
 fi
 
-REALTIME_CHECK_PRIO_INHERIT
+AC_CHECK_LIB([m], [exp10], [AC_DEFINE([HAVE_EXP10], 1, [Define to 1 if you have exp10 function])])
 
-LTP_CHECK_EXP10
+REALTIME_CHECK_PRIO_INHERIT
 
 AC_OUTPUT
diff --git a/testcases/realtime/m4/ltp-exp10.m4 b/testcases/realtime/m4/ltp-exp10.m4
deleted file mode 100644
index 3d2320a206..0000000000
--- a/testcases/realtime/m4/ltp-exp10.m4
+++ /dev/null
@@ -1,37 +0,0 @@
-dnl
-dnl Copyright (c) Linux Test Project, 2014
-dnl
-dnl This program is free software;  you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 2 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY;  without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
-dnl the GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program;  if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-dnl
-
-dnl
-dnl LTP_CHECK_EXP10
-dnl ---------------
-dnl
-AC_DEFUN([LTP_CHECK_EXP10],[
-AH_TEMPLATE(HAVE_EXP10,
-[Define to 1 if you have 'exp10' function.])
-AC_MSG_CHECKING([for exp10])
-backup_ldlibs="$LIBS"
-LIBS+=" -lm"
-AC_TRY_LINK([#define _GNU_SOURCE
-             #include <math.h>],
-            [
-             volatile float val;
-             exp10(val);
-            ],
-             AC_DEFINE(HAVE_EXP10) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
-LIBS="$backup_ldlibs"
-])
-- 
2.34.1



More information about the ltp mailing list