common/autoconf/jdk-options.m4

Mon, 24 Feb 2020 20:09:00 +0300

author
apetushkov
date
Mon, 24 Feb 2020 20:09:00 +0300
changeset 2506
147fe4a4c0ec
parent 2505
8d1426351f61
child 2507
0a7e81cbb5f7
permissions
-rw-r--r--

8239479: minimal1 and zero builds are failing
Summary: Disable JFR by default when minimal or zero VM build is requested
Reviewed-by: andrew

erikj@459 1 #
simonis@2406 2 # Copyright (c) 2011, 2019, 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([JDKOPT_SETUP_JDK_VARIANT],
erikj@459 27 [
ihse@839 28 ###############################################################################
ihse@839 29 #
ihse@839 30 # Check which variant of the JDK that we want to build.
ihse@839 31 # Currently we have:
ihse@839 32 # normal: standard edition
ihse@839 33 # but the custom make system may add other variants
ihse@839 34 #
ihse@839 35 # Effectively the JDK variant gives a name to a specific set of
ihse@839 36 # modules to compile into the JDK. In the future, these modules
ihse@839 37 # might even be Jigsaw modules.
ihse@839 38 #
ihse@839 39 AC_MSG_CHECKING([which variant of the JDK to build])
ihse@839 40 AC_ARG_WITH([jdk-variant], [AS_HELP_STRING([--with-jdk-variant],
ihse@839 41 [JDK variant to build (normal) @<:@normal@:>@])])
erikj@459 42
ihse@839 43 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
erikj@459 44 JDK_VARIANT="normal"
ihse@839 45 else
ohair@478 46 AC_MSG_ERROR([The available JDK variants are: normal])
ihse@839 47 fi
ohair@478 48
ihse@839 49 AC_SUBST(JDK_VARIANT)
erikj@459 50
ihse@839 51 AC_MSG_RESULT([$JDK_VARIANT])
erikj@459 52 ])
erikj@459 53
simonis@965 54 AC_DEFUN_ONCE([JDKOPT_SETUP_JVM_INTERPRETER],
simonis@965 55 [
simonis@965 56 ###############################################################################
simonis@965 57 #
simonis@965 58 # Check which interpreter of the JVM we want to build.
simonis@965 59 # Currently we have:
simonis@965 60 # template: Template interpreter (the default)
simonis@965 61 # cpp : C++ interpreter
simonis@965 62 AC_MSG_CHECKING([which interpreter of the JVM to build])
simonis@965 63 AC_ARG_WITH([jvm-interpreter], [AS_HELP_STRING([--with-jvm-interpreter],
simonis@965 64 [JVM interpreter to build (template, cpp) @<:@template@:>@])])
simonis@965 65
simonis@965 66 if test "x$with_jvm_interpreter" = x; then
simonis@965 67 with_jvm_interpreter="template"
simonis@965 68 fi
simonis@965 69
simonis@965 70 JVM_INTERPRETER="$with_jvm_interpreter"
simonis@965 71
simonis@965 72 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
simonis@965 73 AC_MSG_ERROR([The available JVM interpreters are: template, cpp])
simonis@965 74 fi
simonis@965 75
simonis@965 76 AC_SUBST(JVM_INTERPRETER)
simonis@965 77
simonis@965 78 AC_MSG_RESULT([$with_jvm_interpreter])
simonis@965 79 ])
simonis@965 80
erikj@459 81 AC_DEFUN_ONCE([JDKOPT_SETUP_JVM_VARIANTS],
erikj@459 82 [
erikj@459 83
ihse@839 84 ###############################################################################
ihse@839 85 #
ihse@839 86 # Check which variants of the JVM that we want to build.
ihse@839 87 # Currently we have:
ihse@839 88 # server: normal interpreter and a tiered C1/C2 compiler
ihse@839 89 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
ihse@839 90 # minimal1: reduced form of client with optional VM services and features stripped out
ihse@839 91 # kernel: kernel footprint JVM that passes the TCK without major performance problems,
ihse@839 92 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc
ihse@839 93 # zero: no machine code interpreter, no compiler
ihse@839 94 # zeroshark: zero interpreter and shark/llvm compiler backend
simonis@965 95 # core: interpreter only, no compiler (only works on some platforms)
ihse@839 96 AC_MSG_CHECKING([which variants of the JVM to build])
ihse@839 97 AC_ARG_WITH([jvm-variants], [AS_HELP_STRING([--with-jvm-variants],
simonis@965 98 [JVM variants (separated by commas) to build (server, client, minimal1, kernel, zero, zeroshark, core) @<:@server@:>@])])
erikj@459 99
ihse@839 100 if test "x$with_jvm_variants" = x; then
ihse@839 101 with_jvm_variants="server"
ihse@839 102 fi
erikj@459 103
ihse@839 104 JVM_VARIANTS=",$with_jvm_variants,"
kvn@972 105 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'`
erikj@459 106
ihse@839 107 if test "x$TEST_VARIANTS" != "x,"; then
kvn@972 108 AC_MSG_ERROR([The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core])
ihse@839 109 fi
ihse@839 110 AC_MSG_RESULT([$with_jvm_variants])
erikj@459 111
ihse@839 112 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
ihse@839 113 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
ihse@839 114 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
ihse@839 115 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
ihse@839 116 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
ihse@839 117 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
kvn@972 118 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
erikj@459 119
ihse@839 120 if test "x$JVM_VARIANT_CLIENT" = xtrue; then
erikj@459 121 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
ihse@839 122 AC_MSG_ERROR([You cannot build a client JVM for a 64-bit machine.])
erikj@459 123 fi
ihse@839 124 fi
ihse@839 125 if test "x$JVM_VARIANT_KERNEL" = xtrue; then
erikj@459 126 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
ihse@839 127 AC_MSG_ERROR([You cannot build a kernel JVM for a 64-bit machine.])
erikj@459 128 fi
ihse@839 129 fi
ihse@839 130 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
dholmes@542 131 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
ihse@839 132 AC_MSG_ERROR([You cannot build a minimal JVM for a 64-bit machine.])
dholmes@542 133 fi
ihse@839 134 fi
erikj@459 135
ihse@839 136 # Replace the commas with AND for use in the build directory name.
mikael@1138 137 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
kvn@972 138 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'`
ihse@839 139 if test "x$COUNT_VARIANTS" != "x,1"; then
erikj@459 140 BUILDING_MULTIPLE_JVM_VARIANTS=yes
ihse@839 141 else
erikj@459 142 BUILDING_MULTIPLE_JVM_VARIANTS=no
ihse@839 143 fi
erikj@459 144
ihse@839 145 AC_SUBST(JVM_VARIANTS)
ihse@839 146 AC_SUBST(JVM_VARIANT_SERVER)
ihse@839 147 AC_SUBST(JVM_VARIANT_CLIENT)
ihse@839 148 AC_SUBST(JVM_VARIANT_MINIMAL1)
ihse@839 149 AC_SUBST(JVM_VARIANT_KERNEL)
ihse@839 150 AC_SUBST(JVM_VARIANT_ZERO)
ihse@839 151 AC_SUBST(JVM_VARIANT_ZEROSHARK)
kvn@972 152 AC_SUBST(JVM_VARIANT_CORE)
erikj@459 153
ihse@839 154 INCLUDE_SA=true
ihse@839 155 if test "x$JVM_VARIANT_ZERO" = xtrue ; then
omajid@671 156 INCLUDE_SA=false
ihse@839 157 fi
ihse@839 158 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
omajid@671 159 INCLUDE_SA=false
ihse@839 160 fi
sgehwolf@2325 161 if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
simonis@965 162 INCLUDE_SA=false
kvn@972 163 fi
aph@1321 164 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
aph@1321 165 INCLUDE_SA=false
aph@1321 166 fi
ihse@839 167 AC_SUBST(INCLUDE_SA)
omajid@671 168
ihse@839 169 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
ddehaven@1304 170 MACOSX_UNIVERSAL="false"
ihse@839 171 fi
ohair@478 172
ihse@839 173 AC_SUBST(MACOSX_UNIVERSAL)
erikj@459 174 ])
erikj@459 175
erikj@459 176 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_LEVEL],
erikj@459 177 [
ihse@839 178 ###############################################################################
ihse@839 179 #
ihse@839 180 # Set the debug level
ihse@839 181 # release: no debug information, all optimizations, no asserts.
ihse@839 182 # fastdebug: debug information (-g), all optimizations, all asserts
ihse@839 183 # slowdebug: debug information (-g), no optimizations, all asserts
ihse@839 184 #
ihse@839 185 DEBUG_LEVEL="release"
ihse@839 186 AC_MSG_CHECKING([which debug level to use])
ihse@839 187 AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],
ihse@839 188 [set the debug level to fastdebug (shorthand for --with-debug-level=fastdebug) @<:@disabled@:>@])],
ihse@839 189 [
erikj@459 190 ENABLE_DEBUG="${enableval}"
erikj@459 191 DEBUG_LEVEL="fastdebug"
ihse@839 192 ], [ENABLE_DEBUG="no"])
erikj@459 193
ihse@839 194 AC_ARG_WITH([debug-level], [AS_HELP_STRING([--with-debug-level],
ihse@839 195 [set the debug level (release, fastdebug, slowdebug) @<:@release@:>@])],
ihse@839 196 [
erikj@459 197 DEBUG_LEVEL="${withval}"
erikj@459 198 if test "x$ENABLE_DEBUG" = xyes; then
ihse@839 199 AC_MSG_ERROR([You cannot use both --enable-debug and --with-debug-level at the same time.])
erikj@459 200 fi
ihse@839 201 ])
ihse@839 202 AC_MSG_RESULT([$DEBUG_LEVEL])
erikj@459 203
ihse@839 204 if test "x$DEBUG_LEVEL" != xrelease && \
ihse@839 205 test "x$DEBUG_LEVEL" != xfastdebug && \
ihse@839 206 test "x$DEBUG_LEVEL" != xslowdebug; then
ihse@839 207 AC_MSG_ERROR([Allowed debug levels are: release, fastdebug and slowdebug])
ihse@839 208 fi
erikj@459 209
erikj@459 210
ihse@839 211 ###############################################################################
ihse@839 212 #
ihse@839 213 # Setup legacy vars/targets and new vars to deal with different debug levels.
ihse@839 214 #
erikj@459 215
ihse@839 216 case $DEBUG_LEVEL in
ihse@839 217 release )
ihse@839 218 VARIANT="OPT"
ihse@839 219 FASTDEBUG="false"
ihse@839 220 DEBUG_CLASSFILES="false"
ihse@839 221 BUILD_VARIANT_RELEASE=""
ihse@839 222 HOTSPOT_DEBUG_LEVEL="product"
ihse@839 223 HOTSPOT_EXPORT="product"
ihse@839 224 ;;
ihse@839 225 fastdebug )
ihse@839 226 VARIANT="DBG"
ihse@839 227 FASTDEBUG="true"
ihse@839 228 DEBUG_CLASSFILES="true"
ihse@839 229 BUILD_VARIANT_RELEASE="-fastdebug"
ihse@839 230 HOTSPOT_DEBUG_LEVEL="fastdebug"
ihse@839 231 HOTSPOT_EXPORT="fastdebug"
ihse@839 232 ;;
ihse@839 233 slowdebug )
ihse@839 234 VARIANT="DBG"
ihse@839 235 FASTDEBUG="false"
ihse@839 236 DEBUG_CLASSFILES="true"
ihse@839 237 BUILD_VARIANT_RELEASE="-debug"
ihse@839 238 HOTSPOT_DEBUG_LEVEL="jvmg"
ihse@839 239 HOTSPOT_EXPORT="debug"
ihse@839 240 ;;
ihse@839 241 esac
erikj@459 242
ihse@839 243 #####
ihse@839 244 # Generate the legacy makefile targets for hotspot.
ihse@839 245 # The hotspot api for selecting the build artifacts, really, needs to be improved.
ihse@839 246 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
ihse@839 247 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
ihse@839 248 # But until then ...
ihse@839 249 HOTSPOT_TARGET=""
erikj@459 250
ihse@839 251 if test "x$JVM_VARIANT_SERVER" = xtrue; then
erikj@459 252 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
ihse@839 253 fi
erikj@459 254
ihse@839 255 if test "x$JVM_VARIANT_CLIENT" = xtrue; then
erikj@459 256 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
ihse@839 257 fi
erikj@459 258
ihse@839 259 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
dholmes@542 260 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
ihse@839 261 fi
dholmes@542 262
ihse@839 263 if test "x$JVM_VARIANT_KERNEL" = xtrue; then
erikj@459 264 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
ihse@839 265 fi
erikj@459 266
ihse@839 267 if test "x$JVM_VARIANT_ZERO" = xtrue; then
erikj@459 268 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
ihse@839 269 fi
erikj@459 270
ihse@839 271 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
erikj@459 272 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
ihse@839 273 fi
erikj@459 274
kvn@972 275 if test "x$JVM_VARIANT_CORE" = xtrue; then
simonis@965 276 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
kvn@972 277 fi
simonis@965 278
ihse@839 279 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
erikj@459 280
ihse@839 281 # On Macosx universal binaries are produced, but they only contain
ihse@839 282 # 64 bit intel. This invalidates control of which jvms are built
ihse@839 283 # from configure, but only server is valid anyway. Fix this
ihse@839 284 # when hotspot makefiles are rewritten.
ihse@839 285 if test "x$MACOSX_UNIVERSAL" = xtrue; then
erikj@560 286 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
ihse@839 287 fi
ohair@478 288
ihse@839 289 #####
erikj@459 290
ihse@839 291 AC_SUBST(DEBUG_LEVEL)
ihse@839 292 AC_SUBST(VARIANT)
ihse@839 293 AC_SUBST(FASTDEBUG)
ihse@839 294 AC_SUBST(DEBUG_CLASSFILES)
ihse@839 295 AC_SUBST(BUILD_VARIANT_RELEASE)
erikj@459 296 ])
erikj@459 297
erikj@459 298
erikj@459 299 ###############################################################################
erikj@459 300 #
erikj@459 301 # Should we build only OpenJDK even if closed sources are present?
erikj@459 302 #
erikj@575 303 AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM],
erikj@575 304 [
erikj@575 305 AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only],
ihse@839 306 [suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"])
erikj@459 307
erikj@575 308 AC_MSG_CHECKING([for presence of closed sources])
erikj@575 309 if test -d "$SRC_ROOT/jdk/src/closed"; then
ohair@494 310 CLOSED_SOURCE_PRESENT=yes
erikj@575 311 else
ohair@494 312 CLOSED_SOURCE_PRESENT=no
erikj@575 313 fi
erikj@575 314 AC_MSG_RESULT([$CLOSED_SOURCE_PRESENT])
ohair@494 315
erikj@575 316 AC_MSG_CHECKING([if closed source is suppressed (openjdk-only)])
erikj@575 317 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
erikj@575 318 AC_MSG_RESULT([$SUPPRESS_CLOSED_SOURCE])
ohair@494 319
erikj@575 320 if test "x$CLOSED_SOURCE_PRESENT" = xno; then
erikj@575 321 OPENJDK=true
erikj@575 322 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
erikj@575 323 AC_MSG_WARN([No closed source present, --enable-openjdk-only makes no sense])
erikj@575 324 fi
erikj@575 325 else
erikj@575 326 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
erikj@575 327 OPENJDK=true
erikj@575 328 else
erikj@575 329 OPENJDK=false
erikj@575 330 fi
ohair@494 331 fi
erikj@575 332
erikj@575 333 if test "x$OPENJDK" = "xtrue"; then
erikj@575 334 SET_OPENJDK="OPENJDK=true"
ohair@494 335 fi
erikj@459 336
erikj@575 337 AC_SUBST(SET_OPENJDK)
erikj@575 338 ])
erikj@459 339
erikj@575 340 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
erikj@575 341 [
erikj@459 342
ihse@839 343 ###############################################################################
ihse@839 344 #
ihse@839 345 # Should we build a JDK/JVM with headful support (ie a graphical ui)?
ihse@839 346 # We always build headless support.
ihse@839 347 #
ihse@839 348 AC_MSG_CHECKING([headful support])
ihse@839 349 AC_ARG_ENABLE([headful], [AS_HELP_STRING([--disable-headful],
ihse@839 350 [disable building headful support (graphical UI support) @<:@enabled@:>@])],
ihse@839 351 [SUPPORT_HEADFUL=${enable_headful}], [SUPPORT_HEADFUL=yes])
erikj@459 352
ihse@839 353 SUPPORT_HEADLESS=yes
ihse@839 354 BUILD_HEADLESS="BUILD_HEADLESS:=true"
erikj@459 355
ihse@839 356 if test "x$SUPPORT_HEADFUL" = xyes; then
erikj@459 357 # We are building both headful and headless.
ihse@811 358 headful_msg="include support for both headful and headless"
ihse@839 359 fi
erikj@459 360
ihse@839 361 if test "x$SUPPORT_HEADFUL" = xno; then
erikj@459 362 # Thus we are building headless only.
erikj@459 363 BUILD_HEADLESS="BUILD_HEADLESS:=true"
erikj@459 364 headful_msg="headless only"
ihse@839 365 fi
erikj@459 366
ihse@839 367 AC_MSG_RESULT([$headful_msg])
erikj@459 368
ihse@839 369 AC_SUBST(SUPPORT_HEADLESS)
ihse@839 370 AC_SUBST(SUPPORT_HEADFUL)
ihse@839 371 AC_SUBST(BUILD_HEADLESS)
erikj@459 372
ihse@839 373 # Control wether Hotspot runs Queens test after build.
ihse@839 374 AC_ARG_ENABLE([hotspot-test-in-build], [AS_HELP_STRING([--enable-hotspot-test-in-build],
ihse@839 375 [run the Queens test after Hotspot build @<:@disabled@:>@])],,
ihse@839 376 [enable_hotspot_test_in_build=no])
ihse@839 377 if test "x$enable_hotspot_test_in_build" = "xyes"; then
erikj@459 378 TEST_IN_BUILD=true
ihse@839 379 else
erikj@459 380 TEST_IN_BUILD=false
ihse@839 381 fi
ihse@839 382 AC_SUBST(TEST_IN_BUILD)
erikj@459 383
ihse@839 384 ###############################################################################
ihse@839 385 #
ihse@839 386 # Choose cacerts source file
ihse@839 387 #
ihse@839 388 AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file],
ihse@839 389 [specify alternative cacerts file])])
ihse@839 390 if test "x$with_cacerts_file" != x; then
erikj@459 391 CACERTS_FILE=$with_cacerts_file
ihse@839 392 else
erikj@734 393 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
ihse@839 394 fi
ihse@839 395 AC_SUBST(CACERTS_FILE)
erikj@459 396
ihse@839 397 ###############################################################################
ihse@839 398 #
ihse@839 399 # Enable or disable unlimited crypto
ihse@839 400 #
ihse@839 401 AC_ARG_ENABLE(unlimited-crypto, [AS_HELP_STRING([--enable-unlimited-crypto],
ihse@839 402 [Enable unlimited crypto policy @<:@disabled@:>@])],,
ihse@839 403 [enable_unlimited_crypto=no])
ihse@839 404 if test "x$enable_unlimited_crypto" = "xyes"; then
ihse@495 405 UNLIMITED_CRYPTO=true
ihse@839 406 else
ihse@495 407 UNLIMITED_CRYPTO=false
ihse@839 408 fi
ihse@839 409 AC_SUBST(UNLIMITED_CRYPTO)
ihse@495 410
ihse@839 411 ###############################################################################
ihse@839 412 #
ihse@839 413 # Enable or disable the elliptic curve crypto implementation
ihse@839 414 #
ihse@839 415 AC_DEFUN_ONCE([JDKOPT_DETECT_INTREE_EC],
ihse@839 416 [
ihse@839 417 AC_MSG_CHECKING([if elliptic curve crypto implementation is present])
omajid@656 418
ihse@839 419 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then
ihse@839 420 ENABLE_INTREE_EC=yes
ihse@839 421 AC_MSG_RESULT([yes])
ihse@839 422 else
ihse@839 423 ENABLE_INTREE_EC=no
ihse@839 424 AC_MSG_RESULT([no])
ihse@839 425 fi
omajid@656 426
ihse@839 427 AC_SUBST(ENABLE_INTREE_EC)
ihse@839 428 ])
omajid@656 429
ihse@839 430 ###############################################################################
ihse@839 431 #
ihse@839 432 # Compress jars
ihse@839 433 #
ihse@839 434 COMPRESS_JARS=false
erikj@459 435
ihse@839 436 AC_SUBST(COMPRESS_JARS)
apetushkov@2504 437
apetushkov@2504 438 ###############################################################################
apetushkov@2504 439 #
apetushkov@2504 440 # Enable or disable JFR
apetushkov@2504 441 #
apetushkov@2504 442 AC_MSG_CHECKING([whether to build jfr])
neugens@2505 443 AC_ARG_ENABLE(jfr, [AS_HELP_STRING([--disable-jfr],
neugens@2505 444 [Disable Java Flight Recorder support @<:@enabled@:>@])],,
apetushkov@2506 445 [enable_jfr=auto])
apetushkov@2504 446 if test "x$enable_jfr" = "xno"; then
apetushkov@2504 447 ENABLE_JFR=false
apetushkov@2506 448 elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then
apetushkov@2506 449 if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then
apetushkov@2506 450 if test "x$enable_jfr" = "xyes"; then
apetushkov@2506 451 AC_MSG_ERROR([cannot enable JFR on minimal1 VM or zero build])
apetushkov@2506 452 else
apetushkov@2506 453 ENABLE_JFR=false
apetushkov@2506 454 fi
apetushkov@2506 455 else
apetushkov@2506 456 ENABLE_JFR=true
apetushkov@2506 457 fi
apetushkov@2504 458 else
apetushkov@2504 459 AC_MSG_ERROR([--enable-jfr must either be set to yes or no])
apetushkov@2504 460 fi
apetushkov@2504 461 AC_MSG_RESULT([$ENABLE_JFR])
apetushkov@2504 462 AC_SUBST(ENABLE_JFR)
erikj@459 463 ])
erikj@459 464
erikj@562 465 ###############################################################################
erikj@562 466 #
erikj@562 467 # Setup version numbers
erikj@562 468 #
erikj@459 469 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VERSION_NUMBERS],
erikj@459 470 [
ihse@839 471 # Source the version numbers
ihse@839 472 . $AUTOCONF_DIR/version-numbers
erikj@561 473
ihse@839 474 # Get the settings from parameters
ihse@839 475 AC_ARG_WITH(milestone, [AS_HELP_STRING([--with-milestone],
ihse@839 476 [Set milestone value for build @<:@internal@:>@])])
ihse@839 477 if test "x$with_milestone" = xyes; then
ihse@839 478 AC_MSG_ERROR([Milestone must have a value])
ihse@839 479 elif test "x$with_milestone" != x; then
erikj@561 480 MILESTONE="$with_milestone"
ihse@839 481 fi
ihse@839 482 if test "x$MILESTONE" = x; then
ihse@839 483 MILESTONE=internal
ihse@839 484 fi
erikj@561 485
ihse@839 486 AC_ARG_WITH(update-version, [AS_HELP_STRING([--with-update-version],
ihse@839 487 [Set update version value for build @<:@b00@:>@])])
ihse@839 488 if test "x$with_update_version" = xyes; then
ihse@839 489 AC_MSG_ERROR([Update version must have a value])
ihse@839 490 elif test "x$with_update_version" != x; then
ihse@839 491 JDK_UPDATE_VERSION="$with_update_version"
erikj@990 492 # On macosx 10.7, it's not possible to set --with-update-version=0X due
erikj@990 493 # to a bug in expr (which reduces it to just X). To work around this, we
erikj@990 494 # always add a 0 to one digit update versions.
erikj@990 495 if test "${#JDK_UPDATE_VERSION}" = "1"; then
erikj@990 496 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
erikj@990 497 fi
ihse@839 498 fi
erikj@727 499
ihse@839 500 AC_ARG_WITH(user-release-suffix, [AS_HELP_STRING([--with-user-release-suffix],
ihse@839 501 [Add a custom string to the version string if build number isn't set.@<:@username_builddateb00@:>@])])
ihse@839 502 if test "x$with_user_release_suffix" = xyes; then
ihse@839 503 AC_MSG_ERROR([Release suffix must have a value])
ihse@839 504 elif test "x$with_user_release_suffix" != x; then
ihse@839 505 USER_RELEASE_SUFFIX="$with_user_release_suffix"
ihse@839 506 fi
erikj@813 507
ihse@839 508 AC_ARG_WITH(build-number, [AS_HELP_STRING([--with-build-number],
ihse@839 509 [Set build number value for build @<:@b00@:>@])])
ihse@839 510 if test "x$with_build_number" = xyes; then
ihse@839 511 AC_MSG_ERROR([Build number must have a value])
ihse@839 512 elif test "x$with_build_number" != x; then
ihse@839 513 JDK_BUILD_NUMBER="$with_build_number"
erikj@813 514 fi
ihse@839 515 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
ihse@839 516 if test "x$JDK_BUILD_NUMBER" = x; then
ihse@839 517 JDK_BUILD_NUMBER=b00
ihse@839 518 if test "x$USER_RELEASE_SUFFIX" = x; then
ihse@839 519 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
ihse@839 520 # Avoid [:alnum:] since it depends on the locale.
ihse@839 521 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
ihse@839 522 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
ihse@839 523 fi
ihse@839 524 fi
erikj@561 525
ihse@839 526 # Now set the JDK version, milestone, build number etc.
ihse@839 527 AC_SUBST(USER_RELEASE_SUFFIX)
ihse@839 528 AC_SUBST(JDK_MAJOR_VERSION)
ihse@839 529 AC_SUBST(JDK_MINOR_VERSION)
ihse@839 530 AC_SUBST(JDK_MICRO_VERSION)
ihse@839 531 AC_SUBST(JDK_UPDATE_VERSION)
ihse@839 532 AC_SUBST(JDK_BUILD_NUMBER)
ihse@839 533 AC_SUBST(MILESTONE)
ihse@839 534 AC_SUBST(LAUNCHER_NAME)
ihse@839 535 AC_SUBST(PRODUCT_NAME)
ihse@839 536 AC_SUBST(PRODUCT_SUFFIX)
ihse@839 537 AC_SUBST(JDK_RC_PLATFORM_NAME)
ihse@839 538 AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
ihse@839 539 AC_SUBST(MACOSX_BUNDLE_ID_BASE)
erikj@459 540
mr@2405 541 # The vendor name, if any
mr@2405 542 AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
simonis@2406 543 [Set vendor name. Among others, used to set the 'java.vendor'
simonis@2406 544 and 'java.vm.vendor' system properties. @<:@not specified@:>@])])
mr@2405 545 if test "x$with_vendor_name" = xyes; then
mr@2405 546 AC_MSG_ERROR([--with-vendor-name must have a value])
mr@2405 547 elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
simonis@2406 548 AC_MSG_ERROR([--with-vendor-name contains non-printing characters: $with_vendor_name])
simonis@2406 549 elif test "x$with_vendor_name" != x; then
simonis@2406 550 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
simonis@2406 551 # Otherwise we will use the value from "version-numbers" included above.
mr@2405 552 COMPANY_NAME="$with_vendor_name"
mr@2405 553 fi
mr@2405 554 AC_SUBST(COMPANY_NAME)
mr@2405 555
simonis@2406 556 # The vendor URL, if any
simonis@2406 557 AC_ARG_WITH(vendor-url, [AS_HELP_STRING([--with-vendor-url],
simonis@2406 558 [Set the 'java.vendor.url' system property @<:@not specified@:>@])])
simonis@2406 559 if test "x$with_vendor_url" = xyes; then
simonis@2406 560 AC_MSG_ERROR([--with-vendor-url must have a value])
simonis@2406 561 elif [ ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ]; then
simonis@2406 562 AC_MSG_ERROR([--with-vendor-url contains non-printing characters: $with_vendor_url])
simonis@2406 563 else
simonis@2406 564 VENDOR_URL="$with_vendor_url"
simonis@2406 565 fi
simonis@2406 566 AC_SUBST(VENDOR_URL)
simonis@2406 567
simonis@2406 568 # The vendor bug URL, if any
simonis@2406 569 AC_ARG_WITH(vendor-bug-url, [AS_HELP_STRING([--with-vendor-bug-url],
simonis@2406 570 [Set the 'java.vendor.url.bug' system property @<:@not specified@:>@])])
simonis@2406 571 if test "x$with_vendor_bug_url" = xyes; then
simonis@2406 572 AC_MSG_ERROR([--with-vendor-bug-url must have a value])
simonis@2406 573 elif [ ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ]; then
simonis@2406 574 AC_MSG_ERROR([--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url])
simonis@2406 575 else
simonis@2406 576 VENDOR_URL_BUG="$with_vendor_bug_url"
simonis@2406 577 fi
simonis@2406 578 AC_SUBST(VENDOR_URL_BUG)
simonis@2406 579
simonis@2406 580 # The vendor VM bug URL, if any
simonis@2406 581 AC_ARG_WITH(vendor-vm-bug-url, [AS_HELP_STRING([--with-vendor-vm-bug-url],
simonis@2406 582 [Sets the bug URL which will be displayed when the VM crashes @<:@not specified@:>@])])
simonis@2406 583 if test "x$with_vendor_vm_bug_url" = xyes; then
simonis@2406 584 AC_MSG_ERROR([--with-vendor-vm-bug-url must have a value])
simonis@2406 585 elif [ ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ]; then
simonis@2406 586 AC_MSG_ERROR([--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url])
simonis@2406 587 else
simonis@2406 588 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
simonis@2406 589 fi
simonis@2406 590 AC_SUBST(VENDOR_URL_VM_BUG)
simonis@2406 591
erikj@1202 592 AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year],
erikj@1202 593 [Set copyright year value for build @<:@current year@:>@])])
erikj@1202 594 if test "x$with_copyright_year" = xyes; then
erikj@1202 595 AC_MSG_ERROR([Copyright year must have a value])
erikj@1202 596 elif test "x$with_copyright_year" != x; then
erikj@1202 597 COPYRIGHT_YEAR="$with_copyright_year"
erikj@1202 598 else
erikj@1202 599 COPYRIGHT_YEAR=`date +'%Y'`
erikj@1202 600 fi
ihse@839 601 AC_SUBST(COPYRIGHT_YEAR)
erikj@459 602
ihse@839 603 if test "x$JDK_UPDATE_VERSION" != x; then
ihse@839 604 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
ihse@839 605 else
ihse@839 606 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
ihse@839 607 fi
ihse@839 608 AC_SUBST(JDK_VERSION)
erikj@459 609
erikj@1404 610 # The cooked update version used to encode trailing letters in the update
erikj@1404 611 # version into a trailing number. That is no longer needed, but need to
erikj@1404 612 # keep the format in 8u for compatibility.
erikj@1404 613 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
erikj@1404 614 AC_SUBST(COOKED_JDK_UPDATE_VERSION)
erikj@1404 615
ihse@839 616 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
ihse@839 617 AC_SUBST(COOKED_BUILD_NUMBER)
erikj@459 618 ])
erikj@459 619
erikj@459 620 AC_DEFUN_ONCE([JDKOPT_SETUP_BUILD_TWEAKS],
erikj@459 621 [
ihse@839 622 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET"
ihse@839 623 AC_SUBST(HOTSPOT_MAKE_ARGS)
erikj@459 624
ihse@839 625 # The name of the Service Agent jar.
ihse@839 626 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
ihse@839 627 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
ihse@839 628 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
ihse@839 629 fi
ihse@839 630 AC_SUBST(SALIB_NAME)
erikj@459 631 ])
erikj@459 632
erikj@459 633 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
erikj@459 634 [
sgehwolf@2236 635 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234,
sgehwolf@2236 636 # but if somebody does not specify it via configure, we still want to preserve old
sgehwolf@2236 637 # behaviour of --disable-debug-symbols
ihse@839 638 #
ihse@839 639 # ENABLE_DEBUG_SYMBOLS
ihse@839 640 # This must be done after the toolchain is setup, since we're looking at objcopy.
ihse@839 641 #
ihse@839 642 AC_ARG_ENABLE([debug-symbols],
ihse@839 643 [AS_HELP_STRING([--disable-debug-symbols],[disable generation of debug symbols @<:@enabled@:>@])])
erikj@459 644
ihse@839 645 AC_MSG_CHECKING([if we should generate debug symbols])
erikj@459 646
ihse@839 647 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
ihse@839 648 # explicit enabling of enable-debug-symbols and can't find objcopy
ihse@839 649 # this is an error
ihse@839 650 AC_MSG_ERROR([Unable to find objcopy, cannot enable debug-symbols])
ihse@839 651 fi
erikj@459 652
ihse@839 653 if test "x$enable_debug_symbols" = "xyes"; then
ihse@839 654 ENABLE_DEBUG_SYMBOLS=true
ihse@839 655 elif test "x$enable_debug_symbols" = "xno"; then
erikj@813 656 ENABLE_DEBUG_SYMBOLS=false
erikj@813 657 else
dcubed@874 658 # Default is on if objcopy is found
dcubed@874 659 if test "x$OBJCOPY" != x; then
dcubed@874 660 ENABLE_DEBUG_SYMBOLS=true
dcubed@874 661 # MacOS X and Windows don't use objcopy but default is on for those OSes
dcubed@874 662 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
ihse@839 663 ENABLE_DEBUG_SYMBOLS=true
ihse@839 664 else
ihse@839 665 ENABLE_DEBUG_SYMBOLS=false
ihse@839 666 fi
erikj@813 667 fi
erikj@813 668
ihse@839 669 AC_MSG_RESULT([$ENABLE_DEBUG_SYMBOLS])
erikj@813 670
sgehwolf@2236 671 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234,
sgehwolf@2236 672 # but if somebody does not specify it via configure, we still want to preserve old
sgehwolf@2236 673 # behaviour of --disable-zip-debug-info.
ihse@839 674 #
ihse@839 675 # ZIP_DEBUGINFO_FILES
ihse@839 676 #
ihse@839 677 AC_MSG_CHECKING([if we should zip debug-info files])
ihse@839 678 AC_ARG_ENABLE([zip-debug-info],
ihse@839 679 [AS_HELP_STRING([--disable-zip-debug-info],[disable zipping of debug-info files @<:@enabled@:>@])],
ihse@839 680 [enable_zip_debug_info="${enableval}"], [enable_zip_debug_info="yes"])
ihse@839 681 AC_MSG_RESULT([${enable_zip_debug_info}])
erikj@813 682
ihse@839 683 if test "x${enable_zip_debug_info}" = "xno"; then
ihse@839 684 ZIP_DEBUGINFO_FILES=false
sgehwolf@2236 685 elif test "x${enable_zip_debug_info}" = "xyes"; then
ihse@839 686 ZIP_DEBUGINFO_FILES=true
erikj@459 687 fi
erikj@459 688
sgehwolf@2236 689 #
sgehwolf@2236 690 # NATIVE_DEBUG_SYMBOLS
sgehwolf@2236 691 # This must be done after the toolchain is setup, since we're looking at objcopy.
sgehwolf@2236 692 # In addition, this must be done after ENABLE_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES
sgehwolf@2236 693 # checking in order to preserve backwards compatibility post JDK-8207234.
sgehwolf@2236 694 #
sgehwolf@2236 695 AC_MSG_CHECKING([what type of native debug symbols to use (this will override previous settings)])
sgehwolf@2236 696 AC_ARG_WITH([native-debug-symbols],
sgehwolf@2236 697 [AS_HELP_STRING([--with-native-debug-symbols],
sgehwolf@2236 698 [set the native debug symbol configuration (none, internal, external, zipped) @<:@varying@:>@])],
sgehwolf@2236 699 [
sgehwolf@2236 700 if test "x$OPENJDK_TARGET_OS" = xaix; then
sgehwolf@2236 701 if test "x$with_native_debug_symbols" = xexternal || test "x$with_native_debug_symbols" = xzipped; then
sgehwolf@2236 702 AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols])
sgehwolf@2236 703 fi
sgehwolf@2236 704 fi
sgehwolf@2236 705 ],
sgehwolf@2236 706 [
sgehwolf@2236 707 # Default to unset for backwards compatibility
sgehwolf@2236 708 with_native_debug_symbols=""
sgehwolf@2236 709 ])
sgehwolf@2236 710 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
sgehwolf@2236 711 if test "x$NATIVE_DEBUG_SYMBOLS" = x; then
sgehwolf@2236 712 AC_MSG_RESULT([not specified])
sgehwolf@2236 713 else
sgehwolf@2236 714 AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
sgehwolf@2236 715 fi
sgehwolf@2236 716 # Default is empty
sgehwolf@2236 717 DEBUG_BINARIES=
sgehwolf@2236 718 # Default is min_strip. Possible values are min_strip, all_strip, no_strip
sgehwolf@2236 719 STRIP_POLICY=min_strip
sgehwolf@2236 720
sgehwolf@2236 721 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
sgehwolf@2236 722
sgehwolf@2236 723 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
sgehwolf@2236 724 if test "x$OBJCOPY" = x; then
sgehwolf@2236 725 # enabling of enable-debug-symbols and can't find objcopy
sgehwolf@2236 726 # this is an error
sgehwolf@2236 727 AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
sgehwolf@2236 728 fi
sgehwolf@2236 729 fi
sgehwolf@2236 730
sgehwolf@2236 731 ENABLE_DEBUG_SYMBOLS=true
sgehwolf@2236 732 STRIP_POLICY=min_strip
sgehwolf@2236 733 ZIP_DEBUGINFO_FILES=true
sgehwolf@2236 734 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
sgehwolf@2236 735 ENABLE_DEBUG_SYMBOLS=false
sgehwolf@2236 736 STRIP_POLICY=min_strip
sgehwolf@2236 737 ZIP_DEBUGINFO_FILES=false
sgehwolf@2236 738 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
sgehwolf@2236 739 ENABLE_DEBUG_SYMBOLS=true
sgehwolf@2236 740 STRIP_POLICY=no_strip
sgehwolf@2236 741 ZIP_DEBUGINFO_FILES=false
sgehwolf@2236 742 POST_STRIP_CMD=
sgehwolf@2236 743 DEBUG_BINARIES=true
sgehwolf@2236 744 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
sgehwolf@2236 745
sgehwolf@2236 746 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
sgehwolf@2236 747 if test "x$OBJCOPY" = x; then
sgehwolf@2236 748 # enabling of enable-debug-symbols and can't find objcopy
sgehwolf@2236 749 # this is an error
sgehwolf@2236 750 AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
sgehwolf@2236 751 fi
sgehwolf@2236 752 fi
sgehwolf@2236 753
sgehwolf@2236 754 ENABLE_DEBUG_SYMBOLS=true
sgehwolf@2236 755 STRIP_POLICY=min_strip
sgehwolf@2236 756 ZIP_DEBUGINFO_FILES=false
sgehwolf@2236 757 elif test "x$NATIVE_DEBUG_SYMBOLS" != x; then
sgehwolf@2236 758 AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
sgehwolf@2236 759 else
sgehwolf@2236 760 AC_MSG_NOTICE([--with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info])
sgehwolf@2236 761 fi
sgehwolf@2236 762
ihse@839 763 AC_SUBST(ENABLE_DEBUG_SYMBOLS)
sgehwolf@2236 764 AC_SUBST(STRIP_POLICY)
sgehwolf@2236 765 AC_SUBST(POST_STRIP_CMD)
sgehwolf@2236 766 AC_SUBST(DEBUG_BINARIES)
ihse@839 767 AC_SUBST(ZIP_DEBUGINFO_FILES)
erikj@459 768 ])
ohair@478 769
ohair@478 770 # Support for customization of the build process. Some build files
ohair@478 771 # will include counterparts from this location, if they exist. This allows
ohair@478 772 # for a degree of customization of the build targets and the rules/recipes
ohair@478 773 # to create them
ohair@478 774 AC_ARG_WITH([custom-make-dir], [AS_HELP_STRING([--with-custom-make-dir],
ihse@839 775 [use this directory for custom build/make files])], [CUSTOM_MAKE_DIR=$with_custom_make_dir])
ohair@478 776 AC_SUBST(CUSTOM_MAKE_DIR)

mercurial