Print this page
rev 1274 : 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
Summary: Build system tweaks to allow building on OS X 10.9 and later
Reviewed-by: erikj

Split Split Close
Expand all
Collapse all
          --- old/./common/autoconf/basics.m4
          +++ new/./common/autoconf/basics.m4
   1    1  #
   2      -# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
        2 +# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3    3  # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4  #
   5    5  # This code is free software; you can redistribute it and/or modify it
   6    6  # under the terms of the GNU General Public License version 2 only, as
   7    7  # published by the Free Software Foundation.  Oracle designates this
   8    8  # particular file as subject to the "Classpath" exception as provided
   9    9  # by Oracle in the LICENSE file that accompanied this code.
  10   10  #
  11   11  # This code is distributed in the hope that it will be useful, but WITHOUT
  12   12  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
↓ open down ↓ 366 lines elided ↑ open up ↑
 379  379    else
 380  380      SYS_ROOT=/
 381  381    fi
 382  382    AC_SUBST(SYS_ROOT)
 383  383  
 384  384    AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir],
 385  385        [search this directory for compilers and tools (for cross-compiling)])],
 386  386        [TOOLS_DIR=$with_tools_dir]
 387  387    )
 388  388  
      389 +  # Xcode version will be validated later
      390 +  AC_ARG_WITH([xcode-path], [AS_HELP_STRING([--with-xcode-path],
      391 +      [explicit path to Xcode 4 (generally for building on 10.9 and later)])],
      392 +      [XCODE_PATH=$with_xcode_path]
      393 +  )
      394 +
 389  395    AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
 390  396        [use this directory as base for tools-dir and sys-root (for cross-compiling)])],
 391  397        [
 392  398          if test "x$with_sys_root" != x; then
 393  399            AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time])
 394  400          fi
 395  401          BASIC_FIXUP_PATH([with_devkit])
 396  402          BASIC_APPEND_TO_PATH([TOOLS_DIR],$with_devkit/bin)
 397  403          if test -d "$with_devkit/$host_alias/libc"; then
 398  404            SYS_ROOT=$with_devkit/$host_alias/libc
↓ open down ↓ 228 lines elided ↑ open up ↑
 627  633  
 628  634    # Non-required basic tools
 629  635  
 630  636    AC_PATH_PROG(LDD, ldd)
 631  637    if test "x$LDD" = "x"; then
 632  638      # List shared lib dependencies is used for
 633  639      # debug output and checking for forbidden dependencies.
 634  640      # We can build without it.
 635  641      LDD="true"
 636  642    fi
 637      -  AC_PATH_PROG(OTOOL, otool)
 638      -  if test "x$OTOOL" = "x"; then
 639      -    OTOOL="true"
 640      -  fi
 641  643    AC_PATH_PROGS(READELF, [readelf greadelf])
 642  644    AC_PATH_PROG(HG, hg)
 643  645    AC_PATH_PROG(STAT, stat)
 644  646    AC_PATH_PROG(TIME, time)
 645  647    # Check if it's GNU time
 646  648    IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
 647  649    if test "x$IS_GNU_TIME" != x; then
 648  650      IS_GNU_TIME=yes
 649  651    else
 650  652      IS_GNU_TIME=no
↓ open down ↓ 99 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX