13861 |
13867 |
13862 |
13868 |
13863 |
13869 |
13864 # Continue setting up basic stuff. Most remaining code require fundamental tools. |
13870 # Continue setting up basic stuff. Most remaining code require fundamental tools. |
13865 |
13871 |
|
13872 # We get the top-level directory from the supporting wrappers. |
|
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 |
|
13874 $as_echo_n "checking for top-level directory... " >&6; } |
|
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 |
|
13876 $as_echo "$TOPDIR" >&6; } |
|
13877 |
|
13878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
13879 |
|
13880 # Input might be given as Windows format, start by converting to |
|
13881 # unix format. |
|
13882 path="$TOPDIR" |
|
13883 new_path=`$CYGPATH -u "$path"` |
|
13884 |
|
13885 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are |
|
13886 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered |
|
13887 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then |
|
13888 # "foo.exe" is OK but "foo" is an error. |
|
13889 # |
|
13890 # This test is therefore slightly more accurate than "test -f" to check for file precense. |
|
13891 # It is also a way to make sure we got the proper file name for the real test later on. |
|
13892 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` |
|
13893 if test "x$test_shortpath" = x; then |
|
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 |
|
13895 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} |
|
13896 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 |
|
13897 fi |
|
13898 |
|
13899 # Call helper function which possibly converts this using DOS-style short mode. |
|
13900 # If so, the updated path is stored in $new_path. |
|
13901 |
|
13902 input_path="$new_path" |
|
13903 # Check if we need to convert this using DOS-style short mode. If the path |
|
13904 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
13905 # take no chances and rewrite it. |
|
13906 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
13907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` |
|
13908 if test "x$has_forbidden_chars" != x; then |
|
13909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
13910 shortmode_path=`$CYGPATH -s -m -a "$input_path"` |
|
13911 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` |
|
13912 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then |
|
13913 # Going to short mode and back again did indeed matter. Since short mode is |
|
13914 # case insensitive, let's make it lowercase to improve readability. |
|
13915 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
13916 # Now convert it back to Unix-stile (cygpath) |
|
13917 input_path=`$CYGPATH -u "$shortmode_path"` |
|
13918 new_path="$input_path" |
|
13919 fi |
|
13920 fi |
|
13921 |
|
13922 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` |
|
13923 if test "x$test_cygdrive_prefix" = x; then |
|
13924 # As a simple fix, exclude /usr/bin since it's not a real path. |
|
13925 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then |
|
13926 # The path is in a Cygwin special directory (e.g. /home). We need this converted to |
|
13927 # a path prefixed by /cygdrive for fixpath to work. |
|
13928 new_path="$CYGWIN_ROOT_PATH$input_path" |
|
13929 fi |
|
13930 fi |
|
13931 |
|
13932 |
|
13933 if test "x$path" != "x$new_path"; then |
|
13934 TOPDIR="$new_path" |
|
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 |
|
13936 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} |
|
13937 fi |
|
13938 |
|
13939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
13940 |
|
13941 path="$TOPDIR" |
|
13942 has_colon=`$ECHO $path | $GREP ^.:` |
|
13943 new_path="$path" |
|
13944 if test "x$has_colon" = x; then |
|
13945 # Not in mixed or Windows style, start by that. |
|
13946 new_path=`cmd //c echo $path` |
|
13947 fi |
|
13948 |
|
13949 |
|
13950 input_path="$new_path" |
|
13951 # Check if we need to convert this using DOS-style short mode. If the path |
|
13952 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
13953 # take no chances and rewrite it. |
|
13954 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
13955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` |
|
13956 if test "x$has_forbidden_chars" != x; then |
|
13957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
13958 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
13959 fi |
|
13960 |
|
13961 |
|
13962 windows_path="$new_path" |
|
13963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
13964 unix_path=`$CYGPATH -u "$windows_path"` |
|
13965 new_path="$unix_path" |
|
13966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
13967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` |
|
13968 new_path="$unix_path" |
|
13969 fi |
|
13970 |
|
13971 if test "x$path" != "x$new_path"; then |
|
13972 TOPDIR="$new_path" |
|
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 |
|
13974 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} |
|
13975 fi |
|
13976 |
|
13977 # Save the first 10 bytes of this path to the storage, so fixpath can work. |
|
13978 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") |
|
13979 |
|
13980 else |
|
13981 # We're on a posix platform. Hooray! :) |
|
13982 path="$TOPDIR" |
|
13983 has_space=`$ECHO "$path" | $GREP " "` |
|
13984 if test "x$has_space" != x; then |
|
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 |
|
13986 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} |
|
13987 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 |
|
13988 fi |
|
13989 |
|
13990 # Use eval to expand a potential ~ |
|
13991 eval path="$path" |
|
13992 if test ! -f "$path" && test ! -d "$path"; then |
|
13993 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 |
|
13994 fi |
|
13995 |
|
13996 TOPDIR="`cd "$path"; $THEPWDCMD -L`" |
|
13997 fi |
|
13998 |
|
13999 |
|
14000 |
|
14001 # SRC_ROOT is a traditional alias for TOPDIR. |
|
14002 SRC_ROOT=$TOPDIR |
|
14003 |
13866 # Locate the directory of this script. |
14004 # Locate the directory of this script. |
13867 SCRIPT="$0" |
14005 AUTOCONF_DIR=$TOPDIR/common/autoconf |
13868 AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L` |
14006 |
13869 |
14007 # Save the current directory this script was started from |
13870 # Where is the source? It is located two levels above the configure script. |
|
13871 CURDIR="$PWD" |
14008 CURDIR="$PWD" |
13872 cd "$AUTOCONF_DIR/../.." |
14009 |
13873 SRC_ROOT="`$THEPWDCMD -L`" |
14010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
14011 |
|
14012 # Input might be given as Windows format, start by converting to |
|
14013 # unix format. |
|
14014 path="$CURDIR" |
|
14015 new_path=`$CYGPATH -u "$path"` |
|
14016 |
|
14017 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are |
|
14018 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered |
|
14019 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then |
|
14020 # "foo.exe" is OK but "foo" is an error. |
|
14021 # |
|
14022 # This test is therefore slightly more accurate than "test -f" to check for file precense. |
|
14023 # It is also a way to make sure we got the proper file name for the real test later on. |
|
14024 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` |
|
14025 if test "x$test_shortpath" = x; then |
|
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 |
|
14027 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} |
|
14028 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 |
|
14029 fi |
|
14030 |
|
14031 # Call helper function which possibly converts this using DOS-style short mode. |
|
14032 # If so, the updated path is stored in $new_path. |
|
14033 |
|
14034 input_path="$new_path" |
|
14035 # Check if we need to convert this using DOS-style short mode. If the path |
|
14036 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
14037 # take no chances and rewrite it. |
|
14038 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
14039 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` |
|
14040 if test "x$has_forbidden_chars" != x; then |
|
14041 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
14042 shortmode_path=`$CYGPATH -s -m -a "$input_path"` |
|
14043 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` |
|
14044 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then |
|
14045 # Going to short mode and back again did indeed matter. Since short mode is |
|
14046 # case insensitive, let's make it lowercase to improve readability. |
|
14047 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
14048 # Now convert it back to Unix-stile (cygpath) |
|
14049 input_path=`$CYGPATH -u "$shortmode_path"` |
|
14050 new_path="$input_path" |
|
14051 fi |
|
14052 fi |
|
14053 |
|
14054 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` |
|
14055 if test "x$test_cygdrive_prefix" = x; then |
|
14056 # As a simple fix, exclude /usr/bin since it's not a real path. |
|
14057 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then |
|
14058 # The path is in a Cygwin special directory (e.g. /home). We need this converted to |
|
14059 # a path prefixed by /cygdrive for fixpath to work. |
|
14060 new_path="$CYGWIN_ROOT_PATH$input_path" |
|
14061 fi |
|
14062 fi |
|
14063 |
|
14064 |
|
14065 if test "x$path" != "x$new_path"; then |
|
14066 CURDIR="$new_path" |
|
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 |
|
14068 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} |
|
14069 fi |
|
14070 |
|
14071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
14072 |
|
14073 path="$CURDIR" |
|
14074 has_colon=`$ECHO $path | $GREP ^.:` |
|
14075 new_path="$path" |
|
14076 if test "x$has_colon" = x; then |
|
14077 # Not in mixed or Windows style, start by that. |
|
14078 new_path=`cmd //c echo $path` |
|
14079 fi |
|
14080 |
|
14081 |
|
14082 input_path="$new_path" |
|
14083 # Check if we need to convert this using DOS-style short mode. If the path |
|
14084 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
14085 # take no chances and rewrite it. |
|
14086 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
14087 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` |
|
14088 if test "x$has_forbidden_chars" != x; then |
|
14089 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
14090 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
14091 fi |
|
14092 |
|
14093 |
|
14094 windows_path="$new_path" |
|
14095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
14096 unix_path=`$CYGPATH -u "$windows_path"` |
|
14097 new_path="$unix_path" |
|
14098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
14099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` |
|
14100 new_path="$unix_path" |
|
14101 fi |
|
14102 |
|
14103 if test "x$path" != "x$new_path"; then |
|
14104 CURDIR="$new_path" |
|
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 |
|
14106 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} |
|
14107 fi |
|
14108 |
|
14109 # Save the first 10 bytes of this path to the storage, so fixpath can work. |
|
14110 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") |
|
14111 |
|
14112 else |
|
14113 # We're on a posix platform. Hooray! :) |
|
14114 path="$CURDIR" |
|
14115 has_space=`$ECHO "$path" | $GREP " "` |
|
14116 if test "x$has_space" != x; then |
|
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 |
|
14118 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} |
|
14119 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 |
|
14120 fi |
|
14121 |
|
14122 # Use eval to expand a potential ~ |
|
14123 eval path="$path" |
|
14124 if test ! -f "$path" && test ! -d "$path"; then |
|
14125 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 |
|
14126 fi |
|
14127 |
|
14128 CURDIR="`cd "$path"; $THEPWDCMD -L`" |
|
14129 fi |
|
14130 |
13874 |
14131 |
13875 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then |
14132 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then |
13876 PATH_SEP=";" |
14133 PATH_SEP=";" |
13877 |
14134 |
13878 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` |
14135 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` |
13964 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} |
14221 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} |
13965 fi |
14222 fi |
13966 |
14223 |
13967 else |
14224 else |
13968 PATH_SEP=":" |
14225 PATH_SEP=":" |
13969 fi |
|
13970 |
|
13971 |
|
13972 |
|
13973 cd "$CURDIR" |
|
13974 |
|
13975 |
|
13976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
13977 |
|
13978 # Input might be given as Windows format, start by converting to |
|
13979 # unix format. |
|
13980 path="$SRC_ROOT" |
|
13981 new_path=`$CYGPATH -u "$path"` |
|
13982 |
|
13983 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are |
|
13984 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered |
|
13985 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then |
|
13986 # "foo.exe" is OK but "foo" is an error. |
|
13987 # |
|
13988 # This test is therefore slightly more accurate than "test -f" to check for file precense. |
|
13989 # It is also a way to make sure we got the proper file name for the real test later on. |
|
13990 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` |
|
13991 if test "x$test_shortpath" = x; then |
|
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 |
|
13993 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} |
|
13994 as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5 |
|
13995 fi |
|
13996 |
|
13997 # Call helper function which possibly converts this using DOS-style short mode. |
|
13998 # If so, the updated path is stored in $new_path. |
|
13999 |
|
14000 input_path="$new_path" |
|
14001 # Check if we need to convert this using DOS-style short mode. If the path |
|
14002 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
14003 # take no chances and rewrite it. |
|
14004 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
14005 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` |
|
14006 if test "x$has_forbidden_chars" != x; then |
|
14007 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
14008 shortmode_path=`$CYGPATH -s -m -a "$input_path"` |
|
14009 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` |
|
14010 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then |
|
14011 # Going to short mode and back again did indeed matter. Since short mode is |
|
14012 # case insensitive, let's make it lowercase to improve readability. |
|
14013 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
14014 # Now convert it back to Unix-stile (cygpath) |
|
14015 input_path=`$CYGPATH -u "$shortmode_path"` |
|
14016 new_path="$input_path" |
|
14017 fi |
|
14018 fi |
|
14019 |
|
14020 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` |
|
14021 if test "x$test_cygdrive_prefix" = x; then |
|
14022 # As a simple fix, exclude /usr/bin since it's not a real path. |
|
14023 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then |
|
14024 # The path is in a Cygwin special directory (e.g. /home). We need this converted to |
|
14025 # a path prefixed by /cygdrive for fixpath to work. |
|
14026 new_path="$CYGWIN_ROOT_PATH$input_path" |
|
14027 fi |
|
14028 fi |
|
14029 |
|
14030 |
|
14031 if test "x$path" != "x$new_path"; then |
|
14032 SRC_ROOT="$new_path" |
|
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 |
|
14034 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} |
|
14035 fi |
|
14036 |
|
14037 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
14038 |
|
14039 path="$SRC_ROOT" |
|
14040 has_colon=`$ECHO $path | $GREP ^.:` |
|
14041 new_path="$path" |
|
14042 if test "x$has_colon" = x; then |
|
14043 # Not in mixed or Windows style, start by that. |
|
14044 new_path=`cmd //c echo $path` |
|
14045 fi |
|
14046 |
|
14047 |
|
14048 input_path="$new_path" |
|
14049 # Check if we need to convert this using DOS-style short mode. If the path |
|
14050 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
14051 # take no chances and rewrite it. |
|
14052 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
14053 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` |
|
14054 if test "x$has_forbidden_chars" != x; then |
|
14055 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
14056 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
14057 fi |
|
14058 |
|
14059 |
|
14060 windows_path="$new_path" |
|
14061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
14062 unix_path=`$CYGPATH -u "$windows_path"` |
|
14063 new_path="$unix_path" |
|
14064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
14065 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` |
|
14066 new_path="$unix_path" |
|
14067 fi |
|
14068 |
|
14069 if test "x$path" != "x$new_path"; then |
|
14070 SRC_ROOT="$new_path" |
|
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 |
|
14072 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} |
|
14073 fi |
|
14074 |
|
14075 # Save the first 10 bytes of this path to the storage, so fixpath can work. |
|
14076 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") |
|
14077 |
|
14078 else |
|
14079 # We're on a posix platform. Hooray! :) |
|
14080 path="$SRC_ROOT" |
|
14081 has_space=`$ECHO "$path" | $GREP " "` |
|
14082 if test "x$has_space" != x; then |
|
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 |
|
14084 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} |
|
14085 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 |
|
14086 fi |
|
14087 |
|
14088 # Use eval to expand a potential ~ |
|
14089 eval path="$path" |
|
14090 if test ! -f "$path" && test ! -d "$path"; then |
|
14091 as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 |
|
14092 fi |
|
14093 |
|
14094 SRC_ROOT="`cd "$path"; $THEPWDCMD -L`" |
|
14095 fi |
|
14096 |
|
14097 |
|
14098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
14099 |
|
14100 # Input might be given as Windows format, start by converting to |
|
14101 # unix format. |
|
14102 path="$CURDIR" |
|
14103 new_path=`$CYGPATH -u "$path"` |
|
14104 |
|
14105 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are |
|
14106 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered |
|
14107 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then |
|
14108 # "foo.exe" is OK but "foo" is an error. |
|
14109 # |
|
14110 # This test is therefore slightly more accurate than "test -f" to check for file precense. |
|
14111 # It is also a way to make sure we got the proper file name for the real test later on. |
|
14112 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` |
|
14113 if test "x$test_shortpath" = x; then |
|
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 |
|
14115 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} |
|
14116 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 |
|
14117 fi |
|
14118 |
|
14119 # Call helper function which possibly converts this using DOS-style short mode. |
|
14120 # If so, the updated path is stored in $new_path. |
|
14121 |
|
14122 input_path="$new_path" |
|
14123 # Check if we need to convert this using DOS-style short mode. If the path |
|
14124 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
14125 # take no chances and rewrite it. |
|
14126 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
14127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` |
|
14128 if test "x$has_forbidden_chars" != x; then |
|
14129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
14130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` |
|
14131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` |
|
14132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then |
|
14133 # Going to short mode and back again did indeed matter. Since short mode is |
|
14134 # case insensitive, let's make it lowercase to improve readability. |
|
14135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
14136 # Now convert it back to Unix-stile (cygpath) |
|
14137 input_path=`$CYGPATH -u "$shortmode_path"` |
|
14138 new_path="$input_path" |
|
14139 fi |
|
14140 fi |
|
14141 |
|
14142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` |
|
14143 if test "x$test_cygdrive_prefix" = x; then |
|
14144 # As a simple fix, exclude /usr/bin since it's not a real path. |
|
14145 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then |
|
14146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to |
|
14147 # a path prefixed by /cygdrive for fixpath to work. |
|
14148 new_path="$CYGWIN_ROOT_PATH$input_path" |
|
14149 fi |
|
14150 fi |
|
14151 |
|
14152 |
|
14153 if test "x$path" != "x$new_path"; then |
|
14154 CURDIR="$new_path" |
|
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 |
|
14156 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} |
|
14157 fi |
|
14158 |
|
14159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
14160 |
|
14161 path="$CURDIR" |
|
14162 has_colon=`$ECHO $path | $GREP ^.:` |
|
14163 new_path="$path" |
|
14164 if test "x$has_colon" = x; then |
|
14165 # Not in mixed or Windows style, start by that. |
|
14166 new_path=`cmd //c echo $path` |
|
14167 fi |
|
14168 |
|
14169 |
|
14170 input_path="$new_path" |
|
14171 # Check if we need to convert this using DOS-style short mode. If the path |
|
14172 # contains just simple characters, use it. Otherwise (spaces, weird characters), |
|
14173 # take no chances and rewrite it. |
|
14174 # Note: m4 eats our [], so we need to use [ and ] instead. |
|
14175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` |
|
14176 if test "x$has_forbidden_chars" != x; then |
|
14177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) |
|
14178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
|
14179 fi |
|
14180 |
|
14181 |
|
14182 windows_path="$new_path" |
|
14183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
|
14184 unix_path=`$CYGPATH -u "$windows_path"` |
|
14185 new_path="$unix_path" |
|
14186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
|
14187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` |
|
14188 new_path="$unix_path" |
|
14189 fi |
|
14190 |
|
14191 if test "x$path" != "x$new_path"; then |
|
14192 CURDIR="$new_path" |
|
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 |
|
14194 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} |
|
14195 fi |
|
14196 |
|
14197 # Save the first 10 bytes of this path to the storage, so fixpath can work. |
|
14198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") |
|
14199 |
|
14200 else |
|
14201 # We're on a posix platform. Hooray! :) |
|
14202 path="$CURDIR" |
|
14203 has_space=`$ECHO "$path" | $GREP " "` |
|
14204 if test "x$has_space" != x; then |
|
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 |
|
14206 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} |
|
14207 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 |
|
14208 fi |
|
14209 |
|
14210 # Use eval to expand a potential ~ |
|
14211 eval path="$path" |
|
14212 if test ! -f "$path" && test ! -d "$path"; then |
|
14213 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 |
|
14214 fi |
|
14215 |
|
14216 CURDIR="`cd "$path"; $THEPWDCMD -L`" |
|
14217 fi |
14226 fi |
14218 |
14227 |
14219 |
14228 |
14220 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then |
14229 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then |
14221 # Add extra search paths on solaris for utilities like ar and as etc... |
14230 # Add extra search paths on solaris for utilities like ar and as etc... |