comparison make/autoconf/lib-tests.m4 @ 51872:0ce279d8c9cd

8207941: javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on machines without Arial font [testbug] Reviewed-by: goetz, psadhukhan
author mbaesken
date Tue, 24 Jul 2018 09:27:42 +0200
parents
children 16609197022c
comparison
equal deleted inserted replaced
-1:000000000000 0:997abc05c7fb
1 #
2 # Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
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 #
28 # Check for graalunit libs, needed for running graalunit tests.
29 #
30 AC_DEFUN_ONCE([LIB_TESTS_SETUP_GRAALUNIT],
31 [
32 AC_ARG_WITH(graalunit-lib, [AS_HELP_STRING([--with-graalunit-lib],
33 [specify location of 3rd party libraries used by Graal unit tests])])
34
35 GRAALUNIT_LIB=
36 if test "x${with_graalunit_lib}" != x; then
37 AC_MSG_CHECKING([for graalunit libs])
38 if test "x${with_graalunit_lib}" = xno; then
39 AC_MSG_RESULT([disabled, graalunit tests can not be run])
40 elif test "x${with_graalunit_lib}" = xyes; then
41 AC_MSG_RESULT([not specified])
42 AC_MSG_ERROR([You must specify the path to 3rd party libraries used by Graal unit tests])
43 else
44 GRAALUNIT_LIB="${with_graalunit_lib}"
45 if test ! -d "${GRAALUNIT_LIB}"; then
46 AC_MSG_RESULT([no])
47 AC_MSG_ERROR([Could not find graalunit 3rd party libraries as specified. (${with_graalunit_lib})])
48 else
49 AC_MSG_RESULT([$GRAALUNIT_LIB])
50 fi
51 fi
52 fi
53
54 BASIC_FIXUP_PATH([GRAALUNIT_LIB])
55 AC_SUBST(GRAALUNIT_LIB)
56 ])
57