File: mathlib.m4

package info (click to toggle)
harp 1.5%2Bdata-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,032 kB
  • sloc: xml: 286,510; ansic: 143,710; yacc: 1,910; python: 913; makefile: 600; lex: 574; sh: 69
file content (11 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
# ST_CHECK_LIB_M
# --------------
# Check whether we need to explicitly link with the math library (-lm)
AC_DEFUN([ST_CHECK_LIB_M],
         [AC_MSG_CHECKING([whether explicit linking with math library is needed])
AC_TRY_LINK([char sqrt();], [sqrt();], st_need_math_lib=no, st_need_math_lib=yes)
AC_MSG_RESULT([$st_need_math_lib])
if test $st_need_math_lib = yes ; then
  AC_CHECK_LIB([m], [sqrt])
fi
])# ST_CHECK_LIB