acinclude.m4 1.1 KB

123456789101112131415161718192021222324252627282930
  1. dnl ----------------------------------------------------------------------
  2. dnl This whole bit snagged from libgfortran.
  3. sinclude(../libtool.m4)
  4. dnl The lines below arrange for aclocal not to bring an installed
  5. dnl libtool.m4 into aclocal.m4, while still arranging for automake to
  6. dnl add a definition of LIBTOOL to Makefile.in.
  7. ifelse(,,,[AC_SUBST(LIBTOOL)
  8. AC_DEFUN([AM_PROG_LIBTOOL])
  9. AC_DEFUN([AC_LIBTOOL_DLOPEN])
  10. AC_DEFUN([AC_PROG_LD])
  11. ])
  12. dnl Check whether POSIX's signgam is defined in math.h.
  13. AC_DEFUN([LIBQUAD_CHECK_MATH_H_SIGNGAM], [
  14. AC_CACHE_CHECK([whether the math.h includes POSIX's signgam],
  15. libgfor_cv_have_math_h_signgam, [
  16. save_CFLAGS="$CFLAGS"
  17. CFLAGS="$CFLAGS -Werror"
  18. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  19. #include <math.h>
  20. void foo(void) { signgam = 1; }]], [])],
  21. libgfor_cv_have_math_h_signgam=yes,
  22. libgfor_cv_have_math_h_signgam=no)
  23. CFLAGS="$save_CFLAGS"])
  24. if test $libgfor_cv_have_math_h_signgam = yes; then
  25. AC_DEFINE(HAVE_MATH_H_SIGNGAM, 1,
  26. [Define to 1 if the math.h includes POSIX's signgam.])
  27. fi])