Tue, 28 May 2019 18:50:01 +0200
8218020: Fix version number in mesa.md 3rd party legal file
Reviewed-by: clanger
erikj@459 | 1 | # |
erikj@459 | 2 | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
erikj@459 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
erikj@459 | 4 | # |
erikj@459 | 5 | # This code is free software; you can redistribute it and/or modify it |
erikj@459 | 6 | # under the terms of the GNU General Public License version 2 only, as |
erikj@459 | 7 | # published by the Free Software Foundation. Oracle designates this |
erikj@459 | 8 | # particular file as subject to the "Classpath" exception as provided |
erikj@459 | 9 | # by Oracle in the LICENSE file that accompanied this code. |
erikj@459 | 10 | # |
erikj@459 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
erikj@459 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
erikj@459 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
erikj@459 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
erikj@459 | 15 | # accompanied this code). |
erikj@459 | 16 | # |
erikj@459 | 17 | # You should have received a copy of the GNU General Public License version |
erikj@459 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
erikj@459 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
erikj@459 | 20 | # |
erikj@459 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
erikj@459 | 22 | # or visit www.oracle.com if you need additional information or have any |
erikj@459 | 23 | # questions. |
erikj@459 | 24 | # |
erikj@459 | 25 | |
erikj@459 | 26 | AC_DEFUN_ONCE([SRCDIRS_SETUP_TOPDIRS], |
erikj@459 | 27 | [ |
ihse@839 | 28 | # Where are the sources. Any of these can be overridden |
ihse@839 | 29 | # using --with-override-corba and the likes. |
ihse@839 | 30 | LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" |
ihse@839 | 31 | CORBA_TOPDIR="$SRC_ROOT/corba" |
ihse@839 | 32 | JAXP_TOPDIR="$SRC_ROOT/jaxp" |
ihse@839 | 33 | JAXWS_TOPDIR="$SRC_ROOT/jaxws" |
ihse@839 | 34 | HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" |
ihse@839 | 35 | NASHORN_TOPDIR="$SRC_ROOT/nashorn" |
ihse@839 | 36 | JDK_TOPDIR="$SRC_ROOT/jdk" |
ihse@839 | 37 | AC_SUBST(LANGTOOLS_TOPDIR) |
ihse@839 | 38 | AC_SUBST(CORBA_TOPDIR) |
ihse@839 | 39 | AC_SUBST(JAXP_TOPDIR) |
ihse@839 | 40 | AC_SUBST(JAXWS_TOPDIR) |
ihse@839 | 41 | AC_SUBST(HOTSPOT_TOPDIR) |
ihse@839 | 42 | AC_SUBST(NASHORN_TOPDIR) |
ihse@839 | 43 | AC_SUBST(JDK_TOPDIR) |
erikj@459 | 44 | ]) |
erikj@459 | 45 | |
erikj@459 | 46 | |
erikj@459 | 47 | AC_DEFUN_ONCE([SRCDIRS_SETUP_ALTERNATIVE_TOPDIRS], |
erikj@459 | 48 | [ |
erikj@459 | 49 | |
ihse@839 | 50 | ############################################################################### |
ihse@839 | 51 | # |
ihse@839 | 52 | # Pickup additional source for a component from outside of the source root |
ihse@839 | 53 | # or override source for a component. |
ihse@839 | 54 | # |
ihse@839 | 55 | AC_ARG_WITH(add-source-root, [AS_HELP_STRING([--with-add-source-root], |
ihse@839 | 56 | [for each and every source directory, look in this additional source root for |
ihse@839 | 57 | the same directory; if it exists and have files in it, include it in the build])]) |
erikj@459 | 58 | |
ihse@839 | 59 | AC_ARG_WITH(override-source-root, [AS_HELP_STRING([--with-override-source-root], |
ihse@839 | 60 | [for each and every source directory, look in this override source root for |
ihse@839 | 61 | the same directory; if it exists, use that directory instead and |
ihse@839 | 62 | ignore the directory in the original source root])]) |
erikj@459 | 63 | |
ihse@839 | 64 | AC_ARG_WITH(adds-and-overrides, [AS_HELP_STRING([--with-adds-and-overrides], |
ihse@839 | 65 | [use the subdirs 'adds' and 'overrides' in the specified directory as |
ihse@839 | 66 | add-source-root and override-source-root])]) |
ihse@839 | 67 | |
ihse@839 | 68 | if test "x$with_adds_and_overrides" != x; then |
erikj@459 | 69 | with_add_source_root="$with_adds_and_overrides/adds" |
erikj@459 | 70 | with_override_source_root="$with_adds_and_overrides/overrides" |
ihse@839 | 71 | fi |
erikj@459 | 72 | |
ihse@839 | 73 | if test "x$with_add_source_root" != x; then |
erikj@459 | 74 | if ! test -d $with_add_source_root; then |
ihse@839 | 75 | AC_MSG_ERROR([Trying to use a non-existant add-source-root $with_add_source_root]) |
erikj@459 | 76 | fi |
erikj@459 | 77 | CURDIR="$PWD" |
erikj@459 | 78 | cd "$with_add_source_root" |
erikj@459 | 79 | ADD_SRC_ROOT="`pwd`" |
erikj@459 | 80 | cd "$CURDIR" |
erikj@459 | 81 | # Verify that the addon source root does not have any root makefiles. |
erikj@459 | 82 | # If it does, then it is usually an error, prevent this. |
ihse@912 | 83 | if test -f $with_add_source_root/langtools/make/Makefile; then |
ihse@839 | 84 | AC_MSG_ERROR([Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources.]) |
erikj@459 | 85 | fi |
ihse@912 | 86 | if test -f $with_add_source_root/corba/make/Makefile; then |
ihse@839 | 87 | AC_MSG_ERROR([Your add source root seems to contain a full corba repo! An add source root should only contain additional sources.]) |
erikj@459 | 88 | fi |
ihse@912 | 89 | if test -f $with_add_source_root/jaxp/make/Makefile; then |
ihse@839 | 90 | AC_MSG_ERROR([Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources.]) |
erikj@459 | 91 | fi |
ihse@912 | 92 | if test -f $with_add_source_root/jaxws/make/Makefile; then |
ihse@839 | 93 | AC_MSG_ERROR([Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources.]) |
erikj@459 | 94 | fi |
ihse@912 | 95 | if test -f $with_add_source_root/hotspot/make/Makefile; then |
ihse@839 | 96 | AC_MSG_ERROR([Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources.]) |
erikj@459 | 97 | fi |
ihse@912 | 98 | if test -f $with_add_source_root/nashorn/make/Makefile; then |
ihse@839 | 99 | AC_MSG_ERROR([Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources.]) |
ihse@795 | 100 | fi |
ihse@912 | 101 | if test -f $with_add_source_root/jdk/make/Makefile; then |
ihse@839 | 102 | AC_MSG_ERROR([Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources.]) |
erikj@459 | 103 | fi |
ihse@839 | 104 | fi |
ihse@839 | 105 | AC_SUBST(ADD_SRC_ROOT) |
erikj@459 | 106 | |
ihse@839 | 107 | if test "x$with_override_source_root" != x; then |
erikj@459 | 108 | if ! test -d $with_override_source_root; then |
ihse@839 | 109 | AC_MSG_ERROR([Trying to use a non-existant override-source-root $with_override_source_root]) |
erikj@459 | 110 | fi |
erikj@459 | 111 | CURDIR="$PWD" |
erikj@459 | 112 | cd "$with_override_source_root" |
erikj@459 | 113 | OVERRIDE_SRC_ROOT="`pwd`" |
erikj@459 | 114 | cd "$CURDIR" |
ihse@912 | 115 | if test -f $with_override_source_root/langtools/make/Makefile; then |
ihse@839 | 116 | AC_MSG_ERROR([Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override.]) |
erikj@459 | 117 | fi |
ihse@912 | 118 | if test -f $with_override_source_root/corba/make/Makefile; then |
ihse@839 | 119 | AC_MSG_ERROR([Your override source root seems to contain a full corba repo! An override source root should only contain sources that override.]) |
erikj@459 | 120 | fi |
ihse@912 | 121 | if test -f $with_override_source_root/jaxp/make/Makefile; then |
ihse@839 | 122 | AC_MSG_ERROR([Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override.]) |
erikj@459 | 123 | fi |
ihse@912 | 124 | if test -f $with_override_source_root/jaxws/make/Makefile; then |
ihse@839 | 125 | AC_MSG_ERROR([Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override.]) |
erikj@459 | 126 | fi |
ihse@912 | 127 | if test -f $with_override_source_root/hotspot/make/Makefile; then |
ihse@839 | 128 | AC_MSG_ERROR([Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override.]) |
erikj@459 | 129 | fi |
ihse@912 | 130 | if test -f $with_override_source_root/nashorn/make/Makefile; then |
ihse@839 | 131 | AC_MSG_ERROR([Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override.]) |
ihse@795 | 132 | fi |
ihse@912 | 133 | if test -f $with_override_source_root/jdk/make/Makefile; then |
ihse@839 | 134 | AC_MSG_ERROR([Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override.]) |
erikj@459 | 135 | fi |
ihse@839 | 136 | fi |
ihse@839 | 137 | AC_SUBST(OVERRIDE_SRC_ROOT) |
erikj@459 | 138 | |
ihse@839 | 139 | ############################################################################### |
ihse@839 | 140 | # |
ihse@839 | 141 | # Override a repo completely, this is used for example when you have 3 small |
ihse@839 | 142 | # development sandboxes of the langtools sources and want to avoid having 3 full |
ihse@839 | 143 | # OpenJDK sources checked out on disk. |
ihse@839 | 144 | # |
ihse@839 | 145 | # Assuming that the 3 langtools sandboxes are located here: |
ihse@839 | 146 | # /home/fredrik/sandbox1/langtools |
ihse@839 | 147 | # /home/fredrik/sandbox2/langtools |
ihse@839 | 148 | # /home/fredrik/sandbox3/langtools |
ihse@839 | 149 | # |
ihse@839 | 150 | # From the source root you create build subdirs manually: |
ihse@839 | 151 | # mkdir -p build1 build2 build3 |
ihse@839 | 152 | # in each build directory run: |
ihse@839 | 153 | # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) |
ihse@839 | 154 | # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) |
ihse@839 | 155 | # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) |
ihse@839 | 156 | # |
erikj@459 | 157 | |
ihse@839 | 158 | AC_ARG_WITH(override-langtools, [AS_HELP_STRING([--with-override-langtools], |
ihse@839 | 159 | [use this langtools dir for the build])]) |
erikj@459 | 160 | |
ihse@839 | 161 | AC_ARG_WITH(override-corba, [AS_HELP_STRING([--with-override-corba], |
ihse@839 | 162 | [use this corba dir for the build])]) |
erikj@459 | 163 | |
ihse@839 | 164 | AC_ARG_WITH(override-jaxp, [AS_HELP_STRING([--with-override-jaxp], |
ihse@839 | 165 | [use this jaxp dir for the build])]) |
erikj@459 | 166 | |
ihse@839 | 167 | AC_ARG_WITH(override-jaxws, [AS_HELP_STRING([--with-override-jaxws], |
ihse@839 | 168 | [use this jaxws dir for the build])]) |
erikj@459 | 169 | |
ihse@839 | 170 | AC_ARG_WITH(override-hotspot, [AS_HELP_STRING([--with-override-hotspot], |
ihse@839 | 171 | [use this hotspot dir for the build])]) |
erikj@459 | 172 | |
ihse@839 | 173 | AC_ARG_WITH(override-nashorn, [AS_HELP_STRING([--with-override-nashorn], |
ihse@839 | 174 | [use this nashorn dir for the build])]) |
ihse@795 | 175 | |
ihse@839 | 176 | AC_ARG_WITH(override-jdk, [AS_HELP_STRING([--with-override-jdk], |
ihse@839 | 177 | [use this jdk dir for the build])]) |
erikj@459 | 178 | |
ihse@839 | 179 | if test "x$with_override_langtools" != x; then |
erikj@459 | 180 | CURDIR="$PWD" |
erikj@459 | 181 | cd "$with_override_langtools" |
erikj@459 | 182 | LANGTOOLS_TOPDIR="`pwd`" |
erikj@459 | 183 | cd "$CURDIR" |
ihse@912 | 184 | if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then |
ihse@839 | 185 | AC_MSG_ERROR([You have to override langtools with a full langtools repo!]) |
erikj@459 | 186 | fi |
erikj@459 | 187 | AC_MSG_CHECKING([if langtools should be overridden]) |
erikj@459 | 188 | AC_MSG_RESULT([yes with $LANGTOOLS_TOPDIR]) |
ihse@839 | 189 | fi |
ihse@839 | 190 | if test "x$with_override_corba" != x; then |
erikj@459 | 191 | CURDIR="$PWD" |
erikj@459 | 192 | cd "$with_override_corba" |
erikj@459 | 193 | CORBA_TOPDIR="`pwd`" |
erikj@459 | 194 | cd "$CURDIR" |
ihse@912 | 195 | if ! test -f $CORBA_TOPDIR/make/Makefile; then |
ihse@839 | 196 | AC_MSG_ERROR([You have to override corba with a full corba repo!]) |
erikj@459 | 197 | fi |
erikj@459 | 198 | AC_MSG_CHECKING([if corba should be overridden]) |
erikj@459 | 199 | AC_MSG_RESULT([yes with $CORBA_TOPDIR]) |
ihse@839 | 200 | fi |
ihse@839 | 201 | if test "x$with_override_jaxp" != x; then |
erikj@459 | 202 | CURDIR="$PWD" |
erikj@459 | 203 | cd "$with_override_jaxp" |
erikj@459 | 204 | JAXP_TOPDIR="`pwd`" |
erikj@459 | 205 | cd "$CURDIR" |
ihse@912 | 206 | if ! test -f $JAXP_TOPDIR/make/Makefile; then |
ihse@839 | 207 | AC_MSG_ERROR([You have to override jaxp with a full jaxp repo!]) |
erikj@459 | 208 | fi |
erikj@459 | 209 | AC_MSG_CHECKING([if jaxp should be overridden]) |
erikj@459 | 210 | AC_MSG_RESULT([yes with $JAXP_TOPDIR]) |
ihse@839 | 211 | fi |
ihse@839 | 212 | if test "x$with_override_jaxws" != x; then |
erikj@459 | 213 | CURDIR="$PWD" |
erikj@459 | 214 | cd "$with_override_jaxws" |
erikj@459 | 215 | JAXWS_TOPDIR="`pwd`" |
erikj@459 | 216 | cd "$CURDIR" |
ihse@912 | 217 | if ! test -f $JAXWS_TOPDIR/make/Makefile; then |
ihse@839 | 218 | AC_MSG_ERROR([You have to override jaxws with a full jaxws repo!]) |
erikj@459 | 219 | fi |
erikj@459 | 220 | AC_MSG_CHECKING([if jaxws should be overridden]) |
erikj@459 | 221 | AC_MSG_RESULT([yes with $JAXWS_TOPDIR]) |
ihse@839 | 222 | fi |
ihse@839 | 223 | if test "x$with_override_hotspot" != x; then |
erikj@459 | 224 | CURDIR="$PWD" |
erikj@459 | 225 | cd "$with_override_hotspot" |
erikj@459 | 226 | HOTSPOT_TOPDIR="`pwd`" |
erikj@459 | 227 | cd "$CURDIR" |
ihse@912 | 228 | if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then |
ihse@839 | 229 | AC_MSG_ERROR([You have to override hotspot with a full hotspot repo!]) |
erikj@459 | 230 | fi |
erikj@459 | 231 | AC_MSG_CHECKING([if hotspot should be overridden]) |
erikj@459 | 232 | AC_MSG_RESULT([yes with $HOTSPOT_TOPDIR]) |
ihse@839 | 233 | fi |
ihse@839 | 234 | if test "x$with_override_nashorn" != x; then |
jjg@645 | 235 | CURDIR="$PWD" |
jjg@645 | 236 | cd "$with_override_nashorn" |
jjg@645 | 237 | NASHORN_TOPDIR="`pwd`" |
jjg@645 | 238 | cd "$CURDIR" |
ihse@912 | 239 | if ! test -f $NASHORN_TOPDIR/make/Makefile; then |
ihse@839 | 240 | AC_MSG_ERROR([You have to override nashorn with a full nashorn repo!]) |
jjg@645 | 241 | fi |
jjg@645 | 242 | AC_MSG_CHECKING([if nashorn should be overridden]) |
jjg@645 | 243 | AC_MSG_RESULT([yes with $NASHORN_TOPDIR]) |
ihse@839 | 244 | fi |
ihse@839 | 245 | if test "x$with_override_jdk" != x; then |
erikj@459 | 246 | CURDIR="$PWD" |
erikj@459 | 247 | cd "$with_override_jdk" |
erikj@459 | 248 | JDK_TOPDIR="`pwd`" |
erikj@459 | 249 | cd "$CURDIR" |
ihse@912 | 250 | if ! test -f $JDK_TOPDIR/make/Makefile; then |
ihse@839 | 251 | AC_MSG_ERROR([You have to override JDK with a full JDK repo!]) |
erikj@459 | 252 | fi |
erikj@459 | 253 | AC_MSG_CHECKING([if JDK should be overridden]) |
erikj@459 | 254 | AC_MSG_RESULT([yes with $JDK_TOPDIR]) |
ihse@839 | 255 | fi |
erikj@459 | 256 | ]) |
erikj@459 | 257 | |
erikj@459 | 258 | AC_DEFUN_ONCE([SRCDIRS_SETUP_OUTPUT_DIRS], |
erikj@459 | 259 | [ |
ihse@839 | 260 | BUILD_OUTPUT="$OUTPUT_ROOT" |
ihse@839 | 261 | AC_SUBST(BUILD_OUTPUT) |
ohair@478 | 262 | |
ihse@839 | 263 | HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" |
ihse@839 | 264 | BUILD_HOTSPOT=true |
ihse@839 | 265 | AC_SUBST(HOTSPOT_DIST) |
ihse@839 | 266 | AC_SUBST(BUILD_HOTSPOT) |
ihse@839 | 267 | AC_ARG_WITH(import-hotspot, [AS_HELP_STRING([--with-import-hotspot], |
ihse@839 | 268 | [import hotspot binaries from this jdk image or hotspot build dist dir instead of building from source])]) |
ihse@839 | 269 | if test "x$with_import_hotspot" != x; then |
tbell@506 | 270 | CURDIR="$PWD" |
tbell@506 | 271 | cd "$with_import_hotspot" |
tbell@506 | 272 | HOTSPOT_DIST="`pwd`" |
tbell@506 | 273 | cd "$CURDIR" |
tbell@506 | 274 | if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then |
ihse@839 | 275 | AC_MSG_ERROR([You have to import hotspot from a full jdk image or hotspot build dist dir!]) |
tbell@506 | 276 | fi |
tbell@506 | 277 | AC_MSG_CHECKING([if hotspot should be imported]) |
tbell@506 | 278 | AC_MSG_RESULT([yes from $HOTSPOT_DIST]) |
tbell@506 | 279 | BUILD_HOTSPOT=false |
ihse@839 | 280 | fi |
tbell@506 | 281 | |
ihse@839 | 282 | JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" |
erikj@459 | 283 | ]) |