1f08c3bdfSopenharmony_cidnl 2f08c3bdfSopenharmony_cidnl Copyright (c) Linux Test Project, 2014 3f08c3bdfSopenharmony_cidnl 4f08c3bdfSopenharmony_cidnl This program is free software; you can redistribute it and/or modify 5f08c3bdfSopenharmony_cidnl it under the terms of the GNU General Public License as published by 6f08c3bdfSopenharmony_cidnl the Free Software Foundation; either version 2 of the License, or 7f08c3bdfSopenharmony_cidnl (at your option) any later version. 8f08c3bdfSopenharmony_cidnl 9f08c3bdfSopenharmony_cidnl This program is distributed in the hope that it will be useful, 10f08c3bdfSopenharmony_cidnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11f08c3bdfSopenharmony_cidnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 12f08c3bdfSopenharmony_cidnl the GNU General Public License for more details. 13f08c3bdfSopenharmony_cidnl 14f08c3bdfSopenharmony_cidnl You should have received a copy of the GNU General Public License 15f08c3bdfSopenharmony_cidnl along with this program; if not, write to the Free Software 16f08c3bdfSopenharmony_cidnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17f08c3bdfSopenharmony_cidnl 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_cidnl 20f08c3bdfSopenharmony_cidnl LTP_CHECK_EXP10 21f08c3bdfSopenharmony_cidnl --------------- 22f08c3bdfSopenharmony_cidnl 23f08c3bdfSopenharmony_ciAC_DEFUN([LTP_CHECK_EXP10],[ 24f08c3bdfSopenharmony_ciAH_TEMPLATE(HAVE_EXP10, 25f08c3bdfSopenharmony_ci[Define to 1 if you have 'exp10' function.]) 26f08c3bdfSopenharmony_ciAC_MSG_CHECKING([for exp10]) 27f08c3bdfSopenharmony_cibackup_ldlibs="$LIBS" 28f08c3bdfSopenharmony_ciLIBS+=" -lm" 29f08c3bdfSopenharmony_ciAC_TRY_LINK([#define _GNU_SOURCE 30f08c3bdfSopenharmony_ci #include <math.h>], 31f08c3bdfSopenharmony_ci [ 32f08c3bdfSopenharmony_ci volatile float val; 33f08c3bdfSopenharmony_ci exp10(val); 34f08c3bdfSopenharmony_ci ], 35f08c3bdfSopenharmony_ci AC_DEFINE(HAVE_EXP10) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 36f08c3bdfSopenharmony_ciLIBS="$backup_ldlibs" 37f08c3bdfSopenharmony_ci]) 38