annotate libquadmath/acinclude.m4 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 561a7518be6b
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 dnl ----------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 dnl This whole bit snagged from libgfortran.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 sinclude(../libtool.m4)
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 dnl The lines below arrange for aclocal not to bring an installed
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 dnl libtool.m4 into aclocal.m4, while still arranging for automake to
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 dnl add a definition of LIBTOOL to Makefile.in.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 ifelse(,,,[AC_SUBST(LIBTOOL)
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 AC_DEFUN([AM_PROG_LIBTOOL])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 AC_DEFUN([AC_LIBTOOL_DLOPEN])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 AC_DEFUN([AC_PROG_LD])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 ])
111
kono
parents: 68
diff changeset
13
kono
parents: 68
diff changeset
14 dnl Check whether POSIX's signgam is defined in math.h.
kono
parents: 68
diff changeset
15 AC_DEFUN([LIBQUAD_CHECK_MATH_H_SIGNGAM], [
kono
parents: 68
diff changeset
16 AC_CACHE_CHECK([whether the math.h includes POSIX's signgam],
kono
parents: 68
diff changeset
17 libgfor_cv_have_math_h_signgam, [
kono
parents: 68
diff changeset
18 save_CFLAGS="$CFLAGS"
kono
parents: 68
diff changeset
19 CFLAGS="$CFLAGS -Werror"
kono
parents: 68
diff changeset
20 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
kono
parents: 68
diff changeset
21 #include <math.h>
kono
parents: 68
diff changeset
22 void foo(void) { signgam = 1; }]], [])],
kono
parents: 68
diff changeset
23 libgfor_cv_have_math_h_signgam=yes,
kono
parents: 68
diff changeset
24 libgfor_cv_have_math_h_signgam=no)
kono
parents: 68
diff changeset
25 CFLAGS="$save_CFLAGS"])
kono
parents: 68
diff changeset
26 if test $libgfor_cv_have_math_h_signgam = yes; then
kono
parents: 68
diff changeset
27 AC_DEFINE(HAVE_MATH_H_SIGNGAM, 1,
kono
parents: 68
diff changeset
28 [Define to 1 if the math.h includes POSIX's signgam.])
kono
parents: 68
diff changeset
29 fi])