11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 ################################################################################
27 # Setup libraries and functionalities needed to test the JDK.
28 ################################################################################
29
30 # Minimum supported versions
31 JTREG_MINIMUM_VERSION=7.5.2
32 GTEST_MINIMUM_VERSION=1.14.0
33
34 ################################################################################
35 #
36 # Setup and check for gtest framework source files
37 #
38 AC_DEFUN_ONCE([LIB_TESTS_SETUP_GTEST],
39 [
40 AC_ARG_WITH(gtest, [AS_HELP_STRING([--with-gtest],
41 [specify prefix directory for the gtest framework])])
42
43 if test "x${with_gtest}" != x; then
44 AC_MSG_CHECKING([for gtest])
45 if test "x${with_gtest}" = xno; then
46 AC_MSG_RESULT([no, disabled])
47 elif test "x${with_gtest}" = xyes; then
48 AC_MSG_RESULT([no, error])
49 AC_MSG_ERROR([--with-gtest must have a value])
50 else
51 if ! test -s "${with_gtest}/googletest/include/gtest/gtest.h"; then
|
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 ################################################################################
27 # Setup libraries and functionalities needed to test the JDK.
28 ################################################################################
29
30 # Minimum supported versions
31 JTREG_MINIMUM_VERSION=7.5.1
32 GTEST_MINIMUM_VERSION=1.14.0
33
34 ################################################################################
35 #
36 # Setup and check for gtest framework source files
37 #
38 AC_DEFUN_ONCE([LIB_TESTS_SETUP_GTEST],
39 [
40 AC_ARG_WITH(gtest, [AS_HELP_STRING([--with-gtest],
41 [specify prefix directory for the gtest framework])])
42
43 if test "x${with_gtest}" != x; then
44 AC_MSG_CHECKING([for gtest])
45 if test "x${with_gtest}" = xno; then
46 AC_MSG_RESULT([no, disabled])
47 elif test "x${with_gtest}" = xyes; then
48 AC_MSG_RESULT([no, error])
49 AC_MSG_ERROR([--with-gtest must have a value])
50 else
51 if ! test -s "${with_gtest}/googletest/include/gtest/gtest.h"; then
|