File: log10f.m4

package info (click to toggle)
gnulib 20120404%2Bstable-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 61,868 kB
  • sloc: ansic: 236,709; sh: 21,911; cpp: 1,533; yacc: 1,251; perl: 776; makefile: 296; lisp: 271; java: 5
file content (28 lines) | stat: -rw-r--r-- 838 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# log10f.m4 serial 2
dnl Copyright (C) 2011-2012 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_FUNC_LOG10F],
[
  AC_REQUIRE([gl_MATH_H_DEFAULTS])
  AC_REQUIRE([gl_FUNC_LOG10])

  dnl Persuade glibc <math.h> to declare log10f().
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])

  dnl Test whether log10f() exists. Assume that log10f(), if it exists, is
  dnl defined in the same library as log10().
  save_LIBS="$LIBS"
  LIBS="$LIBS $LOG10_LIBM"
  AC_CHECK_FUNCS([log10f])
  LIBS="$save_LIBS"
  if test $ac_cv_func_log10f = yes; then
    LOG10F_LIBM="$LOG10_LIBM"
  else
    HAVE_LOG10F=0
    LOG10F_LIBM="$LOG10_LIBM"
  fi
  AC_SUBST([LOG10F_LIBM])
])