622 AC_MSG_RESULT([$DEVKIT_ROOT]) 623 fi 624 625 BASIC_PREPEND_TO_PATH([EXTRA_PATH],$DEVKIT_EXTRA_PATH) 626 627 # Fallback default of just /bin if DEVKIT_PATH is not defined 628 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 629 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 630 fi 631 BASIC_PREPEND_TO_PATH([TOOLCHAIN_PATH],$DEVKIT_TOOLCHAIN_PATH) 632 633 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 634 # places for backwards compatiblity. 635 if test "x$DEVKIT_SYSROOT" != x; then 636 SYSROOT="$DEVKIT_SYSROOT" 637 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 638 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 639 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 640 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 641 fi 642 ] 643 ) 644 645 # You can force the sysroot if the sysroot encoded into the compiler tools 646 # is not correct. 647 AC_ARG_WITH(sys-root, [AS_HELP_STRING([--with-sys-root], 648 [alias for --with-sysroot for backwards compatability])], 649 [SYSROOT=$with_sys_root] 650 ) 651 652 AC_ARG_WITH(sysroot, [AS_HELP_STRING([--with-sysroot], 653 [use this directory as sysroot])], 654 [SYSROOT=$with_sysroot] 655 ) 656 657 AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir], 658 [alias for --with-toolchain-path for backwards compatibility])], 659 [BASIC_PREPEND_TO_PATH([TOOLCHAIN_PATH],$with_tools_dir)] 660 ) 661 | 622 AC_MSG_RESULT([$DEVKIT_ROOT]) 623 fi 624 625 BASIC_PREPEND_TO_PATH([EXTRA_PATH],$DEVKIT_EXTRA_PATH) 626 627 # Fallback default of just /bin if DEVKIT_PATH is not defined 628 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 629 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 630 fi 631 BASIC_PREPEND_TO_PATH([TOOLCHAIN_PATH],$DEVKIT_TOOLCHAIN_PATH) 632 633 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 634 # places for backwards compatiblity. 635 if test "x$DEVKIT_SYSROOT" != x; then 636 SYSROOT="$DEVKIT_SYSROOT" 637 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 638 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 639 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 640 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 641 fi 642 643 if test "x$DEVKIT_ROOT" != x; then 644 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 645 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 646 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 647 fi 648 AC_SUBST(DEVKIT_LIB_DIR) 649 fi 650 ] 651 ) 652 653 # You can force the sysroot if the sysroot encoded into the compiler tools 654 # is not correct. 655 AC_ARG_WITH(sys-root, [AS_HELP_STRING([--with-sys-root], 656 [alias for --with-sysroot for backwards compatability])], 657 [SYSROOT=$with_sys_root] 658 ) 659 660 AC_ARG_WITH(sysroot, [AS_HELP_STRING([--with-sysroot], 661 [use this directory as sysroot])], 662 [SYSROOT=$with_sysroot] 663 ) 664 665 AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir], 666 [alias for --with-toolchain-path for backwards compatibility])], 667 [BASIC_PREPEND_TO_PATH([TOOLCHAIN_PATH],$with_tools_dir)] 668 ) 669 |