common/autoconf/jdk-options.m4

changeset 2406
7480582c7fdc
parent 2405
e0b7721459ee
child 2408
2e38e8d106de
child 2487
a013ce3462fc
child 2504
e86abea74e04
equal deleted inserted replaced
2405:e0b7721459ee 2406:7480582c7fdc
1 # 1 #
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 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 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
512 AC_SUBST(MACOSX_BUNDLE_NAME_BASE) 512 AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
513 AC_SUBST(MACOSX_BUNDLE_ID_BASE) 513 AC_SUBST(MACOSX_BUNDLE_ID_BASE)
514 514
515 # The vendor name, if any 515 # The vendor name, if any
516 AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name], 516 AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
517 [Set vendor name @<:@not specified@:>@])]) 517 [Set vendor name. Among others, used to set the 'java.vendor'
518 and 'java.vm.vendor' system properties. @<:@not specified@:>@])])
518 if test "x$with_vendor_name" = xyes; then 519 if test "x$with_vendor_name" = xyes; then
519 AC_MSG_ERROR([--with-vendor-name must have a value]) 520 AC_MSG_ERROR([--with-vendor-name must have a value])
520 elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then 521 elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
521 AC_MSG_ERROR([--with--vendor-name contains non-printing characters: $with_vendor_name]) 522 AC_MSG_ERROR([--with-vendor-name contains non-printing characters: $with_vendor_name])
522 else 523 elif test "x$with_vendor_name" != x; then
524 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
525 # Otherwise we will use the value from "version-numbers" included above.
523 COMPANY_NAME="$with_vendor_name" 526 COMPANY_NAME="$with_vendor_name"
524 fi 527 fi
525 AC_SUBST(COMPANY_NAME) 528 AC_SUBST(COMPANY_NAME)
529
530 # The vendor URL, if any
531 AC_ARG_WITH(vendor-url, [AS_HELP_STRING([--with-vendor-url],
532 [Set the 'java.vendor.url' system property @<:@not specified@:>@])])
533 if test "x$with_vendor_url" = xyes; then
534 AC_MSG_ERROR([--with-vendor-url must have a value])
535 elif [ ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ]; then
536 AC_MSG_ERROR([--with-vendor-url contains non-printing characters: $with_vendor_url])
537 else
538 VENDOR_URL="$with_vendor_url"
539 fi
540 AC_SUBST(VENDOR_URL)
541
542 # The vendor bug URL, if any
543 AC_ARG_WITH(vendor-bug-url, [AS_HELP_STRING([--with-vendor-bug-url],
544 [Set the 'java.vendor.url.bug' system property @<:@not specified@:>@])])
545 if test "x$with_vendor_bug_url" = xyes; then
546 AC_MSG_ERROR([--with-vendor-bug-url must have a value])
547 elif [ ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ]; then
548 AC_MSG_ERROR([--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url])
549 else
550 VENDOR_URL_BUG="$with_vendor_bug_url"
551 fi
552 AC_SUBST(VENDOR_URL_BUG)
553
554 # The vendor VM bug URL, if any
555 AC_ARG_WITH(vendor-vm-bug-url, [AS_HELP_STRING([--with-vendor-vm-bug-url],
556 [Sets the bug URL which will be displayed when the VM crashes @<:@not specified@:>@])])
557 if test "x$with_vendor_vm_bug_url" = xyes; then
558 AC_MSG_ERROR([--with-vendor-vm-bug-url must have a value])
559 elif [ ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ]; then
560 AC_MSG_ERROR([--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url])
561 else
562 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
563 fi
564 AC_SUBST(VENDOR_URL_VM_BUG)
526 565
527 AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year], 566 AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year],
528 [Set copyright year value for build @<:@current year@:>@])]) 567 [Set copyright year value for build @<:@current year@:>@])])
529 if test "x$with_copyright_year" = xyes; then 568 if test "x$with_copyright_year" = xyes; then
530 AC_MSG_ERROR([Copyright year must have a value]) 569 AC_MSG_ERROR([Copyright year must have a value])

mercurial