リビジョン | d9a4c83b863d32a86f82ff0c4d3c99d639cc52c5 (tree) |
---|---|
日時 | 2015-03-17 00:51:37 |
作者 | H.J. Lu <hjl.tools@gmai...> |
コミッター | H.J. Lu |
Sync isl.m4 with GCC tree
* isl.m4: Sync with GCC tree.
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2015-03-16 H.J. Lu <hongjiu.lu@intel.com> |
2 | 2 | |
3 | + * isl.m4: Sync with GCC tree. | |
4 | + | |
5 | +2015-03-16 H.J. Lu <hongjiu.lu@intel.com> | |
6 | + | |
3 | 7 | Sync with GCC |
4 | 8 | 2015-02-18 Thomas Schwinge <thomas@codesourcery.com> |
5 | 9 |
@@ -68,6 +68,8 @@ AC_DEFUN([ISL_INIT_FLAGS], | ||
68 | 68 | ENABLE_ISL_CHECK=no |
69 | 69 | AC_MSG_WARN([using in-tree ISL, disabling version check]) |
70 | 70 | fi |
71 | + | |
72 | + isllibs="${isllibs} -lisl" | |
71 | 73 | ] |
72 | 74 | ) |
73 | 75 |
@@ -90,20 +92,9 @@ AC_DEFUN([ISL_REQUESTED], | ||
90 | 92 | ] |
91 | 93 | ) |
92 | 94 | |
93 | -# _ISL_CHECK_CT_PROG(MAJOR, MINOR) | |
94 | -# -------------------------------------------- | |
95 | -# Helper for verifying ISL compile time version. | |
96 | -m4_define([_ISL_CHECK_CT_PROG],[AC_LANG_PROGRAM( | |
97 | - [#include <isl/version.h> | |
98 | - #include <string.h>], | |
99 | - [if (strncmp (isl_version (), "isl-$1.$2", strlen ("isl-$1.$2")) != 0) | |
100 | - return 1; | |
101 | - ])]) | |
102 | - | |
103 | -# ISL_CHECK_VERSION ISL_CHECK_VERSION (MAJOR, MINOR) | |
95 | +# ISL_CHECK_VERSION ISL_CHECK_VERSION () | |
104 | 96 | # ---------------------------------------------------------------- |
105 | -# Test the found ISL to be exact of version MAJOR.MINOR and at least | |
106 | -# REVISION. | |
97 | +# Test that ISL contains functionality added to the minimum expected version. | |
107 | 98 | AC_DEFUN([ISL_CHECK_VERSION], |
108 | 99 | [ |
109 | 100 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
@@ -115,11 +106,10 @@ AC_DEFUN([ISL_CHECK_VERSION], | ||
115 | 106 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" |
116 | 107 | LIBS="${_isl_saved_LIBS} -lisl" |
117 | 108 | |
118 | - AC_MSG_CHECKING([for version $1.$2 of ISL]) | |
119 | - AC_RUN_IFELSE([_ISL_CHECK_CT_PROG($1,$2)], | |
109 | + AC_MSG_CHECKING([for compatible ISL]) | |
110 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <isl/val.h>]], [[;]])], | |
120 | 111 | [gcc_cv_isl=yes], |
121 | - [gcc_cv_isl=no], | |
122 | - [gcc_cv_isl=yes]) | |
112 | + [gcc_cv_isl=no]) | |
123 | 113 | AC_MSG_RESULT([$gcc_cv_isl]) |
124 | 114 | |
125 | 115 | CFLAGS=$_isl_saved_CFLAGS |