1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.68 for OpenJDK jdk8. 4 # 5 # Report bugs to <build-dev@openjdk.java.net>. 6 # 7 # 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10 # Foundation, Inc. 11 # 12 # 13 # This configure script is free software; the Free Software Foundation 14 # gives unlimited permission to copy, distribute and modify it. 15 ## -------------------- ## 16 ## M4sh Initialization. ## 17 ## -------------------- ## 18 19 # Be more Bourne compatible 20 DUALCASE=1; export DUALCASE # for MKS sh 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac 35 fi 36 37 38 as_nl=' 39 ' 40 export as_nl 41 # Printing a long string crashes Solaris 7 /usr/bin/printf. 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45 # Prefer a ksh shell builtin over an external printf program on Solaris, 46 # but without wasting forks for bash or zsh. 47 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54 else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74 fi 75 76 # The user is always right. 77 if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83 fi 84 85 86 # IFS 87 # We need space, tab and new line, in precisely that order. Quoting is 88 # there to prevent editors from complaining about space-tab. 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 90 # splitting by setting IFS to empty value.) 91 IFS=" "" $as_nl" 92 93 # Find who we are. Look in the path if we contain no directory separator. 94 as_myself= 95 case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98 for as_dir in $PATH 99 do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104 IFS=$as_save_IFS 105 106 ;; 107 esac 108 # We did not find ourselves, most probably we were run as `sh COMMAND' 109 # in which case we are not to be found in the path. 110 if test "x$as_myself" = x; then 111 as_myself=$0 112 fi 113 if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180 else 181 as_have_required=no 182 fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185 else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187 as_found=false 188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189 do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203 fi 204 fi 205 done;; 206 esac 207 as_found=false 208 done 209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212 fi; } 213 IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232 fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242 $0: build-dev@openjdk.java.net about your system, including 243 $0: any error possibly output before this message. Then 244 $0: install a modern shell, or manually run the script 245 $0: under such a shell if you do have one." 246 fi 247 exit 1 248 fi 249 fi 250 fi 251 SHELL=${CONFIG_SHELL-/bin/sh} 252 export SHELL 253 # Unset more variables known to interfere with behavior of common tools. 254 CLICOLOR_FORCE= GREP_OPTIONS= 255 unset CLICOLOR_FORCE GREP_OPTIONS 256 257 ## --------------------- ## 258 ## M4sh Shell Functions. ## 259 ## --------------------- ## 260 # as_fn_unset VAR 261 # --------------- 262 # Portably unset VAR. 263 as_fn_unset () 264 { 265 { eval $1=; unset $1;} 266 } 267 as_unset=as_fn_unset 268 269 # as_fn_set_status STATUS 270 # ----------------------- 271 # Set $? to STATUS, without forking. 272 as_fn_set_status () 273 { 274 return $1 275 } # as_fn_set_status 276 277 # as_fn_exit STATUS 278 # ----------------- 279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280 as_fn_exit () 281 { 282 set +e 283 as_fn_set_status $1 284 exit $1 285 } # as_fn_exit 286 287 # as_fn_mkdir_p 288 # ------------- 289 # Create "$as_dir" as a directory, including parents if necessary. 290 as_fn_mkdir_p () 291 { 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309 $as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333 } # as_fn_mkdir_p 334 # as_fn_append VAR VALUE 335 # ---------------------- 336 # Append the text in VALUE to the end of the definition contained in VAR. Take 337 # advantage of any shell optimizations that allow amortized linear growth over 338 # repeated appends, instead of the typical quadratic growth present in naive 339 # implementations. 340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345 else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350 fi # as_fn_append 351 352 # as_fn_arith ARG... 353 # ------------------ 354 # Perform arithmetic evaluation on the ARGs, and store the result in the 355 # global $as_val. Take advantage of shells that can avoid forks. The arguments 356 # must be portable across $(()) and expr. 357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362 else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367 fi # as_fn_arith 368 369 370 # as_fn_error STATUS ERROR [LINENO LOG_FD] 371 # ---------------------------------------- 372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374 # script with STATUS, using 1 if that was 0. 375 as_fn_error () 376 { 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384 } # as_fn_error 385 386 if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389 else 390 as_expr=false 391 fi 392 393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395 else 396 as_basename=false 397 fi 398 399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401 else 402 as_dirname=false 403 fi 404 405 as_me=`$as_basename -- "$0" || 406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409 $as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424 # Avoid depending upon Character Ranges. 425 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428 as_cr_digits='0123456789' 429 as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461 } 462 463 ECHO_C= ECHO_N= ECHO_T= 464 case `echo -n x` in #((((( 465 -n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472 *) 473 ECHO_N='-n';; 474 esac 475 476 rm -f conf$$ conf$$.exe conf$$.file 477 if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479 else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482 fi 483 if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497 else 498 as_ln_s='cp -p' 499 fi 500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501 rmdir conf$$.dir 2>/dev/null 502 503 if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505 else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508 fi 509 510 if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512 else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530 fi 531 as_executable_p=$as_test_x 532 533 # Sed expression to map a string onto a valid CPP name. 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536 # Sed expression to map a string onto a valid variable name. 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 test -n "$DJDIR" || exec 7<&0 </dev/null 541 exec 6>&1 542 543 # Name of the host. 544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 545 # so uname gets run too. 546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548 # 549 # Initializations. 550 # 551 ac_default_prefix=/usr/local 552 ac_clean_files= 553 ac_config_libobj_dir=. 554 LIBOBJS= 555 cross_compiling=no 556 subdirs= 557 MFLAGS= 558 MAKEFLAGS= 559 560 # Identity of this package. 561 PACKAGE_NAME='OpenJDK' 562 PACKAGE_TARNAME='openjdk' 563 PACKAGE_VERSION='jdk8' 564 PACKAGE_STRING='OpenJDK jdk8' 565 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 566 PACKAGE_URL='http://openjdk.java.net' 567 568 # Factoring default headers for most tests. 569 ac_includes_default="\ 570 #include <stdio.h> 571 #ifdef HAVE_SYS_TYPES_H 572 # include <sys/types.h> 573 #endif 574 #ifdef HAVE_SYS_STAT_H 575 # include <sys/stat.h> 576 #endif 577 #ifdef STDC_HEADERS 578 # include <stdlib.h> 579 # include <stddef.h> 580 #else 581 # ifdef HAVE_STDLIB_H 582 # include <stdlib.h> 583 # endif 584 #endif 585 #ifdef HAVE_STRING_H 586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 587 # include <memory.h> 588 # endif 589 # include <string.h> 590 #endif 591 #ifdef HAVE_STRINGS_H 592 # include <strings.h> 593 #endif 594 #ifdef HAVE_INTTYPES_H 595 # include <inttypes.h> 596 #endif 597 #ifdef HAVE_STDINT_H 598 # include <stdint.h> 599 #endif 600 #ifdef HAVE_UNISTD_H 601 # include <unistd.h> 602 #endif" 603 604 ac_subst_vars='LTLIBOBJS 605 LIBOBJS 606 CCACHE 607 USE_PRECOMPILED_HEADER 608 SJAVAC_SERVER_DIR 609 ENABLE_SJAVAC 610 SJAVAC_SERVER_JAVA 611 JOBS 612 MEMORY_SIZE 613 NUM_CORES 614 ENABLE_INTREE_EC 615 SALIB_NAME 616 HOTSPOT_MAKE_ARGS 617 FIXPATH 618 LIBCXX 619 LLVM_LIBS 620 LLVM_LDFLAGS 621 LLVM_CFLAGS 622 LLVM_CONFIG 623 LIBFFI_LIBS 624 LIBFFI_CFLAGS 625 STATIC_CXX_SETTING 626 LIBDL 627 LIBM 628 LIBZIP_CAN_USE_MMAP 629 USE_EXTERNAL_LIBZ 630 USE_EXTERNAL_LIBGIF 631 USE_EXTERNAL_LIBJPEG 632 ALSA_LIBS 633 ALSA_CFLAGS 634 FREETYPE2_LIB_PATH 635 USING_SYSTEM_FT_LIB 636 FREETYPE2_LIBS 637 FREETYPE2_CFLAGS 638 CUPS_CFLAGS 639 OPENWIN_HOME 640 X_EXTRA_LIBS 641 X_LIBS 642 X_PRE_LIBS 643 X_CFLAGS 644 XMKMF 645 CXXFLAGS_DEBUG_SYMBOLS 646 CFLAGS_DEBUG_SYMBOLS 647 ZIP_DEBUGINFO_FILES 648 ENABLE_DEBUG_SYMBOLS 649 COMPILER_SUPPORTS_TARGET_BITS_FLAG 650 ZERO_ARCHFLAG 651 LDFLAGS_CXX_JDK 652 LDFLAGS_JDKEXE_SUFFIX 653 LDFLAGS_JDKLIB_SUFFIX 654 LDFLAGS_JDKEXE 655 LDFLAGS_JDKLIB 656 CXXFLAGS_JDKEXE 657 CXXFLAGS_JDKLIB 658 CFLAGS_JDKEXE 659 CFLAGS_JDKLIB 660 MACOSX_VERSION_MIN 661 PACKAGE_PATH 662 LEGACY_EXTRA_LDFLAGS 663 LEGACY_EXTRA_CXXFLAGS 664 LEGACY_EXTRA_CFLAGS 665 CXX_FLAG_DEPS 666 C_FLAG_DEPS 667 CXX_O_FLAG_NONE 668 CXX_O_FLAG_NORM 669 CXX_O_FLAG_HI 670 CXX_O_FLAG_HIGHEST 671 C_O_FLAG_NONE 672 C_O_FLAG_NORM 673 C_O_FLAG_HI 674 C_O_FLAG_HIGHEST 675 POST_MCS_CMD 676 POST_STRIP_CMD 677 SET_EXECUTABLE_ORIGIN 678 SET_SHARED_LIBRARY_ORIGIN 679 CXX_FLAG_REORDER 680 C_FLAG_REORDER 681 SET_SHARED_LIBRARY_MAPFILE 682 SET_SHARED_LIBRARY_NAME 683 SHARED_LIBRARY_FLAGS 684 EXE_SUFFIX 685 STATIC_LIBRARY_SUFFIX 686 SHARED_LIBRARY_SUFFIX 687 LIBRARY_PREFIX 688 STATIC_LIBRARY 689 SHARED_LIBRARY 690 OBJ_SUFFIX 691 COMPILER_NAME 692 JT_HOME 693 JTREGEXE 694 LIPO 695 ac_ct_OBJDUMP 696 OBJDUMP 697 ac_ct_OBJCOPY 698 OBJCOPY 699 MCS 700 STRIP 701 GNM 702 NM 703 AS 704 CXXCPP 705 CPP 706 COMPILER_TYPE 707 RC_FLAGS 708 DUMPBIN 709 WINAR 710 HOTSPOT_RC 711 HOTSPOT_MT 712 RC 713 MT 714 WINLD 715 HOTSPOT_LD 716 HOTSPOT_CXX 717 ARFLAGS 718 AR 719 LDEXECXX 720 LDCXX 721 LDEXE 722 LD 723 ac_ct_OBJC 724 OBJCFLAGS 725 OBJC 726 ac_ct_CXX 727 CXXFLAGS 728 CXX 729 ac_ct_PROPER_COMPILER_CXX 730 PROPER_COMPILER_CXX 731 POTENTIAL_CXX 732 TOOLS_DIR_CXX 733 OBJEXT 734 EXEEXT 735 ac_ct_CC 736 CPPFLAGS 737 LDFLAGS 738 CFLAGS 739 CC 740 ac_ct_PROPER_COMPILER_CC 741 PROPER_COMPILER_CC 742 POTENTIAL_CC 743 TOOLS_DIR_CC 744 BUILD_LD 745 BUILD_CXX 746 BUILD_CC 747 MSVCR_DLL 748 DXSDK_INCLUDE_PATH 749 DXSDK_LIB_PATH 750 VS_PATH 751 VS_LIB 752 VS_INCLUDE 753 CYGWIN_LINK 754 AR_OUT_OPTION 755 LD_OUT_OPTION 756 EXE_OUT_OPTION 757 CC_OUT_OPTION 758 BUILD_HOTSPOT 759 HOTSPOT_DIST 760 BUILD_OUTPUT 761 OVERRIDE_SRC_ROOT 762 ADD_SRC_ROOT 763 JDK_TOPDIR 764 NASHORN_TOPDIR 765 HOTSPOT_TOPDIR 766 JAXWS_TOPDIR 767 JAXP_TOPDIR 768 CORBA_TOPDIR 769 LANGTOOLS_TOPDIR 770 BOOT_JDK_JVMARGS 771 JAVAC_FLAGS 772 BOOT_JDK_SOURCETARGET 773 BOOT_JDK 774 BOOT_TOOLSJAR 775 BOOT_RTJAR 776 JAVA_CHECK 777 JAVAC_CHECK 778 COOKED_BUILD_NUMBER 779 JDK_VERSION 780 COPYRIGHT_YEAR 781 MACOSX_BUNDLE_ID_BASE 782 MACOSX_BUNDLE_NAME_BASE 783 COMPANY_NAME 784 JDK_RC_PLATFORM_NAME 785 PRODUCT_SUFFIX 786 PRODUCT_NAME 787 LAUNCHER_NAME 788 MILESTONE 789 JDK_BUILD_NUMBER 790 JDK_UPDATE_VERSION 791 JDK_MICRO_VERSION 792 JDK_MINOR_VERSION 793 JDK_MAJOR_VERSION 794 USER_RELEASE_SUFFIX 795 COMPRESS_JARS 796 UNLIMITED_CRYPTO 797 CACERTS_FILE 798 TEST_IN_BUILD 799 BUILD_HEADLESS 800 SUPPORT_HEADFUL 801 SUPPORT_HEADLESS 802 BDEPS_FTP 803 BDEPS_UNZIP 804 OS_VERSION_MICRO 805 OS_VERSION_MINOR 806 OS_VERSION_MAJOR 807 PKG_CONFIG 808 CODESIGN 809 XATTR 810 TIME 811 STAT 812 HG 813 READELF 814 OTOOL 815 LDD 816 ZIP 817 UNZIP 818 FIND_DELETE 819 MAKE 820 CHECK_TOOLSDIR_MAKE 821 CHECK_TOOLSDIR_GMAKE 822 CHECK_MAKE 823 CHECK_GMAKE 824 PKGHANDLER 825 OUTPUT_ROOT 826 CONF_NAME 827 SPEC 828 BUILD_VARIANT_RELEASE 829 DEBUG_CLASSFILES 830 FASTDEBUG 831 VARIANT 832 DEBUG_LEVEL 833 MACOSX_UNIVERSAL 834 INCLUDE_SA 835 JVM_VARIANT_ZEROSHARK 836 JVM_VARIANT_ZERO 837 JVM_VARIANT_KERNEL 838 JVM_VARIANT_MINIMAL1 839 JVM_VARIANT_CLIENT 840 JVM_VARIANT_SERVER 841 JVM_VARIANTS 842 JDK_VARIANT 843 SET_OPENJDK 844 BUILD_LOG_WRAPPER 845 BUILD_LOG_PREVIOUS 846 BUILD_LOG 847 SYS_ROOT 848 PATH_SEP 849 SRC_ROOT 850 ZERO_ARCHDEF 851 DEFINE_CROSS_COMPILE_ARCH 852 LP64 853 OPENJDK_TARGET_OS_API_DIR 854 OPENJDK_TARGET_CPU_JLI_CFLAGS 855 OPENJDK_TARGET_CPU_OSARCH 856 OPENJDK_TARGET_CPU_ISADIR 857 OPENJDK_TARGET_CPU_LIBDIR 858 OPENJDK_TARGET_CPU_LEGACY_LIB 859 OPENJDK_TARGET_CPU_LEGACY 860 REQUIRED_OS_VERSION 861 REQUIRED_OS_NAME 862 COMPILE_TYPE 863 OPENJDK_TARGET_CPU_ENDIAN 864 OPENJDK_TARGET_CPU_BITS 865 OPENJDK_TARGET_CPU_ARCH 866 OPENJDK_TARGET_CPU 867 OPENJDK_TARGET_OS_API 868 OPENJDK_TARGET_OS 869 OPENJDK_BUILD_CPU_ENDIAN 870 OPENJDK_BUILD_CPU_BITS 871 OPENJDK_BUILD_CPU_ARCH 872 OPENJDK_BUILD_CPU 873 OPENJDK_BUILD_OS_API 874 OPENJDK_BUILD_OS 875 OPENJDK_BUILD_AUTOCONF_NAME 876 OPENJDK_TARGET_AUTOCONF_NAME 877 target_os 878 target_vendor 879 target_cpu 880 target 881 host_os 882 host_vendor 883 host_cpu 884 host 885 build_os 886 build_vendor 887 build_cpu 888 build 889 SETFILE 890 DF 891 READLINK 892 CYGPATH 893 NAWK 894 SED 895 FGREP 896 EGREP 897 GREP 898 AWK 899 XARGS 900 WHICH 901 WC 902 UNIQ 903 UNAME 904 TR 905 TOUCH 906 TEE 907 TAR 908 TAIL 909 SORT 910 SH 911 RM 912 PRINTF 913 MV 914 MKTEMP 915 MKDIR 916 LS 917 LN 918 HEAD 919 FIND 920 FILE 921 EXPR 922 ECHO 923 DIRNAME 924 DIFF 925 DATE 926 CUT 927 CPIO 928 CP 929 COMM 930 CMP 931 CHMOD 932 CAT 933 BASH 934 BASENAME 935 DATE_WHEN_CONFIGURED 936 CONFIGURE_COMMAND_LINE 937 CUSTOM_MAKE_DIR 938 target_alias 939 host_alias 940 build_alias 941 LIBS 942 ECHO_T 943 ECHO_N 944 ECHO_C 945 DEFS 946 mandir 947 localedir 948 libdir 949 psdir 950 pdfdir 951 dvidir 952 htmldir 953 infodir 954 docdir 955 oldincludedir 956 includedir 957 localstatedir 958 sharedstatedir 959 sysconfdir 960 datadir 961 datarootdir 962 libexecdir 963 sbindir 964 bindir 965 program_transform_name 966 prefix 967 exec_prefix 968 PACKAGE_URL 969 PACKAGE_BUGREPORT 970 PACKAGE_STRING 971 PACKAGE_VERSION 972 PACKAGE_TARNAME 973 PACKAGE_NAME 974 PATH_SEPARATOR 975 SHELL' 976 ac_subst_files='' 977 ac_user_opts=' 978 enable_option_checking 979 with_custom_make_dir 980 with_target_bits 981 with_sys_root 982 with_tools_dir 983 with_devkit 984 enable_openjdk_only 985 with_jdk_variant 986 with_jvm_variants 987 enable_debug 988 with_debug_level 989 with_conf_name 990 with_builddeps_conf 991 with_builddeps_server 992 with_builddeps_dir 993 with_builddeps_group 994 enable_headful 995 enable_hotspot_test_in_build 996 with_cacerts_file 997 enable_unlimited_crypto 998 with_milestone 999 with_update_version 1000 with_build_number 1001 with_user_release_suffix 1002 with_boot_jdk 1003 with_boot_jdk_jvmargs 1004 with_add_source_root 1005 with_override_source_root 1006 with_adds_and_overrides 1007 with_override_langtools 1008 with_override_corba 1009 with_override_jaxp 1010 with_override_jaxws 1011 with_override_hotspot 1012 with_override_jdk 1013 with_import_hotspot 1014 with_msvcr_dll 1015 with_dxsdk 1016 with_dxsdk_lib 1017 with_dxsdk_include 1018 with_jtreg 1019 with_extra_cflags 1020 with_extra_cxxflags 1021 with_extra_ldflags 1022 enable_debug_symbols 1023 enable_zip_debug_info 1024 enable_macosx_runtime_support 1025 with_x 1026 with_cups 1027 with_cups_include 1028 with_freetype 1029 with_alsa 1030 with_alsa_include 1031 with_alsa_lib 1032 with_giflib 1033 with_zlib 1034 with_stdc__lib 1035 with_num_cores 1036 with_memory_size 1037 with_jobs 1038 with_sjavac_server_java 1039 enable_sjavac 1040 enable_precompiled_headers 1041 enable_ccache 1042 with_ccache_dir 1043 ' 1044 ac_precious_vars='build_alias 1045 host_alias 1046 target_alias 1047 PKG_CONFIG 1048 CC 1049 CFLAGS 1050 LDFLAGS 1051 LIBS 1052 CPPFLAGS 1053 CXX 1054 CXXFLAGS 1055 CCC 1056 OBJC 1057 OBJCFLAGS 1058 CPP 1059 CXXCPP 1060 XMKMF 1061 FREETYPE2_CFLAGS 1062 FREETYPE2_LIBS 1063 ALSA_CFLAGS 1064 ALSA_LIBS 1065 LIBFFI_CFLAGS 1066 LIBFFI_LIBS' 1067 1068 1069 # Initialize some variables set by options. 1070 ac_init_help= 1071 ac_init_version=false 1072 ac_unrecognized_opts= 1073 ac_unrecognized_sep= 1074 # The variables have the same names as the options, with 1075 # dashes changed to underlines. 1076 cache_file=/dev/null 1077 exec_prefix=NONE 1078 no_create= 1079 no_recursion= 1080 prefix=NONE 1081 program_prefix=NONE 1082 program_suffix=NONE 1083 program_transform_name=s,x,x, 1084 silent= 1085 site= 1086 srcdir= 1087 verbose= 1088 x_includes=NONE 1089 x_libraries=NONE 1090 1091 # Installation directory options. 1092 # These are left unexpanded so users can "make install exec_prefix=/foo" 1093 # and all the variables that are supposed to be based on exec_prefix 1094 # by default will actually change. 1095 # Use braces instead of parens because sh, perl, etc. also accept them. 1096 # (The list follows the same order as the GNU Coding Standards.) 1097 bindir='${exec_prefix}/bin' 1098 sbindir='${exec_prefix}/sbin' 1099 libexecdir='${exec_prefix}/libexec' 1100 datarootdir='${prefix}/share' 1101 datadir='${datarootdir}' 1102 sysconfdir='${prefix}/etc' 1103 sharedstatedir='${prefix}/com' 1104 localstatedir='${prefix}/var' 1105 includedir='${prefix}/include' 1106 oldincludedir='/usr/include' 1107 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1108 infodir='${datarootdir}/info' 1109 htmldir='${docdir}' 1110 dvidir='${docdir}' 1111 pdfdir='${docdir}' 1112 psdir='${docdir}' 1113 libdir='${exec_prefix}/lib' 1114 localedir='${datarootdir}/locale' 1115 mandir='${datarootdir}/man' 1116 1117 ac_prev= 1118 ac_dashdash= 1119 for ac_option 1120 do 1121 # If the previous option needs an argument, assign it. 1122 if test -n "$ac_prev"; then 1123 eval $ac_prev=\$ac_option 1124 ac_prev= 1125 continue 1126 fi 1127 1128 case $ac_option in 1129 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1130 *=) ac_optarg= ;; 1131 *) ac_optarg=yes ;; 1132 esac 1133 1134 # Accept the important Cygnus configure options, so we can diagnose typos. 1135 1136 case $ac_dashdash$ac_option in 1137 --) 1138 ac_dashdash=yes ;; 1139 1140 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1141 ac_prev=bindir ;; 1142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1143 bindir=$ac_optarg ;; 1144 1145 -build | --build | --buil | --bui | --bu) 1146 ac_prev=build_alias ;; 1147 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1148 build_alias=$ac_optarg ;; 1149 1150 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1152 ac_prev=cache_file ;; 1153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1155 cache_file=$ac_optarg ;; 1156 1157 --config-cache | -C) 1158 cache_file=config.cache ;; 1159 1160 -datadir | --datadir | --datadi | --datad) 1161 ac_prev=datadir ;; 1162 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1163 datadir=$ac_optarg ;; 1164 1165 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1166 | --dataroo | --dataro | --datar) 1167 ac_prev=datarootdir ;; 1168 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1169 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1170 datarootdir=$ac_optarg ;; 1171 1172 -disable-* | --disable-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid feature name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181 "enable_$ac_useropt" 1182 "*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval enable_$ac_useropt=no ;; 1187 1188 -docdir | --docdir | --docdi | --doc | --do) 1189 ac_prev=docdir ;; 1190 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1191 docdir=$ac_optarg ;; 1192 1193 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1194 ac_prev=dvidir ;; 1195 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1196 dvidir=$ac_optarg ;; 1197 1198 -enable-* | --enable-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid feature name: $ac_useropt" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207 "enable_$ac_useropt" 1208 "*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval enable_$ac_useropt=\$ac_optarg ;; 1213 1214 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1215 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1216 | --exec | --exe | --ex) 1217 ac_prev=exec_prefix ;; 1218 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1219 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1220 | --exec=* | --exe=* | --ex=*) 1221 exec_prefix=$ac_optarg ;; 1222 1223 -gas | --gas | --ga | --g) 1224 # Obsolete; use --with-gas. 1225 with_gas=yes ;; 1226 1227 -help | --help | --hel | --he | -h) 1228 ac_init_help=long ;; 1229 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1230 ac_init_help=recursive ;; 1231 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1232 ac_init_help=short ;; 1233 1234 -host | --host | --hos | --ho) 1235 ac_prev=host_alias ;; 1236 -host=* | --host=* | --hos=* | --ho=*) 1237 host_alias=$ac_optarg ;; 1238 1239 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1240 ac_prev=htmldir ;; 1241 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1242 | --ht=*) 1243 htmldir=$ac_optarg ;; 1244 1245 -includedir | --includedir | --includedi | --included | --include \ 1246 | --includ | --inclu | --incl | --inc) 1247 ac_prev=includedir ;; 1248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1249 | --includ=* | --inclu=* | --incl=* | --inc=*) 1250 includedir=$ac_optarg ;; 1251 1252 -infodir | --infodir | --infodi | --infod | --info | --inf) 1253 ac_prev=infodir ;; 1254 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1255 infodir=$ac_optarg ;; 1256 1257 -libdir | --libdir | --libdi | --libd) 1258 ac_prev=libdir ;; 1259 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1260 libdir=$ac_optarg ;; 1261 1262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1263 | --libexe | --libex | --libe) 1264 ac_prev=libexecdir ;; 1265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1266 | --libexe=* | --libex=* | --libe=*) 1267 libexecdir=$ac_optarg ;; 1268 1269 -localedir | --localedir | --localedi | --localed | --locale) 1270 ac_prev=localedir ;; 1271 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1272 localedir=$ac_optarg ;; 1273 1274 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1275 | --localstate | --localstat | --localsta | --localst | --locals) 1276 ac_prev=localstatedir ;; 1277 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1278 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1279 localstatedir=$ac_optarg ;; 1280 1281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1282 ac_prev=mandir ;; 1283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1284 mandir=$ac_optarg ;; 1285 1286 -nfp | --nfp | --nf) 1287 # Obsolete; use --without-fp. 1288 with_fp=no ;; 1289 1290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1291 | --no-cr | --no-c | -n) 1292 no_create=yes ;; 1293 1294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1296 no_recursion=yes ;; 1297 1298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1300 | --oldin | --oldi | --old | --ol | --o) 1301 ac_prev=oldincludedir ;; 1302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1305 oldincludedir=$ac_optarg ;; 1306 1307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1308 ac_prev=prefix ;; 1309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1310 prefix=$ac_optarg ;; 1311 1312 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1313 | --program-pre | --program-pr | --program-p) 1314 ac_prev=program_prefix ;; 1315 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1317 program_prefix=$ac_optarg ;; 1318 1319 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1320 | --program-suf | --program-su | --program-s) 1321 ac_prev=program_suffix ;; 1322 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1324 program_suffix=$ac_optarg ;; 1325 1326 -program-transform-name | --program-transform-name \ 1327 | --program-transform-nam | --program-transform-na \ 1328 | --program-transform-n | --program-transform- \ 1329 | --program-transform | --program-transfor \ 1330 | --program-transfo | --program-transf \ 1331 | --program-trans | --program-tran \ 1332 | --progr-tra | --program-tr | --program-t) 1333 ac_prev=program_transform_name ;; 1334 -program-transform-name=* | --program-transform-name=* \ 1335 | --program-transform-nam=* | --program-transform-na=* \ 1336 | --program-transform-n=* | --program-transform-=* \ 1337 | --program-transform=* | --program-transfor=* \ 1338 | --program-transfo=* | --program-transf=* \ 1339 | --program-trans=* | --program-tran=* \ 1340 | --progr-tra=* | --program-tr=* | --program-t=*) 1341 program_transform_name=$ac_optarg ;; 1342 1343 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1344 ac_prev=pdfdir ;; 1345 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1346 pdfdir=$ac_optarg ;; 1347 1348 -psdir | --psdir | --psdi | --psd | --ps) 1349 ac_prev=psdir ;; 1350 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1351 psdir=$ac_optarg ;; 1352 1353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1354 | -silent | --silent | --silen | --sile | --sil) 1355 silent=yes ;; 1356 1357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1358 ac_prev=sbindir ;; 1359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1360 | --sbi=* | --sb=*) 1361 sbindir=$ac_optarg ;; 1362 1363 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1365 | --sharedst | --shareds | --shared | --share | --shar \ 1366 | --sha | --sh) 1367 ac_prev=sharedstatedir ;; 1368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1371 | --sha=* | --sh=*) 1372 sharedstatedir=$ac_optarg ;; 1373 1374 -site | --site | --sit) 1375 ac_prev=site ;; 1376 -site=* | --site=* | --sit=*) 1377 site=$ac_optarg ;; 1378 1379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1380 ac_prev=srcdir ;; 1381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1382 srcdir=$ac_optarg ;; 1383 1384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1385 | --syscon | --sysco | --sysc | --sys | --sy) 1386 ac_prev=sysconfdir ;; 1387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1389 sysconfdir=$ac_optarg ;; 1390 1391 -target | --target | --targe | --targ | --tar | --ta | --t) 1392 ac_prev=target_alias ;; 1393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1394 target_alias=$ac_optarg ;; 1395 1396 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1397 verbose=yes ;; 1398 1399 -version | --version | --versio | --versi | --vers | -V) 1400 ac_init_version=: ;; 1401 1402 -with-* | --with-*) 1403 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1404 # Reject names that are not valid shell variable names. 1405 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1406 as_fn_error $? "invalid package name: $ac_useropt" 1407 ac_useropt_orig=$ac_useropt 1408 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1409 case $ac_user_opts in 1410 *" 1411 "with_$ac_useropt" 1412 "*) ;; 1413 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1414 ac_unrecognized_sep=', ';; 1415 esac 1416 eval with_$ac_useropt=\$ac_optarg ;; 1417 1418 -without-* | --without-*) 1419 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1420 # Reject names that are not valid shell variable names. 1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1422 as_fn_error $? "invalid package name: $ac_useropt" 1423 ac_useropt_orig=$ac_useropt 1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1425 case $ac_user_opts in 1426 *" 1427 "with_$ac_useropt" 1428 "*) ;; 1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1430 ac_unrecognized_sep=', ';; 1431 esac 1432 eval with_$ac_useropt=no ;; 1433 1434 --x) 1435 # Obsolete; use --with-x. 1436 with_x=yes ;; 1437 1438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1439 | --x-incl | --x-inc | --x-in | --x-i) 1440 ac_prev=x_includes ;; 1441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1443 x_includes=$ac_optarg ;; 1444 1445 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1447 ac_prev=x_libraries ;; 1448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1450 x_libraries=$ac_optarg ;; 1451 1452 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1453 Try \`$0 --help' for more information" 1454 ;; 1455 1456 *=*) 1457 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1458 # Reject names that are not valid shell variable names. 1459 case $ac_envvar in #( 1460 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1461 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1462 esac 1463 eval $ac_envvar=\$ac_optarg 1464 export $ac_envvar ;; 1465 1466 *) 1467 # FIXME: should be removed in autoconf 3.0. 1468 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1469 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1470 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1471 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1472 ;; 1473 1474 esac 1475 done 1476 1477 if test -n "$ac_prev"; then 1478 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1479 as_fn_error $? "missing argument to $ac_option" 1480 fi 1481 1482 if test -n "$ac_unrecognized_opts"; then 1483 case $enable_option_checking in 1484 no) ;; 1485 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1486 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1487 esac 1488 fi 1489 1490 # Check all directory arguments for consistency. 1491 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1492 datadir sysconfdir sharedstatedir localstatedir includedir \ 1493 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1494 libdir localedir mandir 1495 do 1496 eval ac_val=\$$ac_var 1497 # Remove trailing slashes. 1498 case $ac_val in 1499 */ ) 1500 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1501 eval $ac_var=\$ac_val;; 1502 esac 1503 # Be sure to have absolute directory names. 1504 case $ac_val in 1505 [\\/$]* | ?:[\\/]* ) continue;; 1506 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1507 esac 1508 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1509 done 1510 1511 # There might be people who depend on the old broken behavior: `$host' 1512 # used to hold the argument of --host etc. 1513 # FIXME: To remove some day. 1514 build=$build_alias 1515 host=$host_alias 1516 target=$target_alias 1517 1518 # FIXME: To remove some day. 1519 if test "x$host_alias" != x; then 1520 if test "x$build_alias" = x; then 1521 cross_compiling=maybe 1522 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1523 If a cross compiler is detected then cross compile mode will be used" >&2 1524 elif test "x$build_alias" != "x$host_alias"; then 1525 cross_compiling=yes 1526 fi 1527 fi 1528 1529 ac_tool_prefix= 1530 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1531 1532 test "$silent" = yes && exec 6>/dev/null 1533 1534 1535 ac_pwd=`pwd` && test -n "$ac_pwd" && 1536 ac_ls_di=`ls -di .` && 1537 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1538 as_fn_error $? "working directory cannot be determined" 1539 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1540 as_fn_error $? "pwd does not report name of working directory" 1541 1542 1543 # Find the source files, if location was not specified. 1544 if test -z "$srcdir"; then 1545 ac_srcdir_defaulted=yes 1546 # Try the directory containing this script, then the parent directory. 1547 ac_confdir=`$as_dirname -- "$as_myself" || 1548 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1549 X"$as_myself" : 'X\(//\)[^/]' \| \ 1550 X"$as_myself" : 'X\(//\)$' \| \ 1551 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1552 $as_echo X"$as_myself" | 1553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1554 s//\1/ 1555 q 1556 } 1557 /^X\(\/\/\)[^/].*/{ 1558 s//\1/ 1559 q 1560 } 1561 /^X\(\/\/\)$/{ 1562 s//\1/ 1563 q 1564 } 1565 /^X\(\/\).*/{ 1566 s//\1/ 1567 q 1568 } 1569 s/.*/./; q'` 1570 srcdir=$ac_confdir 1571 if test ! -r "$srcdir/$ac_unique_file"; then 1572 srcdir=.. 1573 fi 1574 else 1575 ac_srcdir_defaulted=no 1576 fi 1577 if test ! -r "$srcdir/$ac_unique_file"; then 1578 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1579 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1580 fi 1581 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1582 ac_abs_confdir=`( 1583 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1584 pwd)` 1585 # When building in place, set srcdir=. 1586 if test "$ac_abs_confdir" = "$ac_pwd"; then 1587 srcdir=. 1588 fi 1589 # Remove unnecessary trailing slashes from srcdir. 1590 # Double slashes in file names in object file debugging info 1591 # mess up M-x gdb in Emacs. 1592 case $srcdir in 1593 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1594 esac 1595 for ac_var in $ac_precious_vars; do 1596 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1597 eval ac_env_${ac_var}_value=\$${ac_var} 1598 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1599 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1600 done 1601 1602 # 1603 # Report the --help message. 1604 # 1605 if test "$ac_init_help" = "long"; then 1606 # Omit some internal or obsolete options to make the list less imposing. 1607 # This message is too long to be a string in the A/UX 3.1 sh. 1608 cat <<_ACEOF 1609 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1610 1611 Usage: $0 [OPTION]... [VAR=VALUE]... 1612 1613 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1614 VAR=VALUE. See below for descriptions of some of the useful variables. 1615 1616 Defaults for the options are specified in brackets. 1617 1618 Configuration: 1619 -h, --help display this help and exit 1620 --help=short display options specific to this package 1621 --help=recursive display the short help of all the included packages 1622 -V, --version display version information and exit 1623 -q, --quiet, --silent do not print \`checking ...' messages 1624 --cache-file=FILE cache test results in FILE [disabled] 1625 -C, --config-cache alias for \`--cache-file=config.cache' 1626 -n, --no-create do not create output files 1627 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1628 1629 Installation directories: 1630 --prefix=PREFIX install architecture-independent files in PREFIX 1631 [$ac_default_prefix] 1632 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1633 [PREFIX] 1634 1635 By default, \`make install' will install all the files in 1636 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1637 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1638 for instance \`--prefix=\$HOME'. 1639 1640 For better control, use the options below. 1641 1642 Fine tuning of the installation directories: 1643 --bindir=DIR user executables [EPREFIX/bin] 1644 --sbindir=DIR system admin executables [EPREFIX/sbin] 1645 --libexecdir=DIR program executables [EPREFIX/libexec] 1646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1648 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1649 --libdir=DIR object code libraries [EPREFIX/lib] 1650 --includedir=DIR C header files [PREFIX/include] 1651 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1652 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1654 --infodir=DIR info documentation [DATAROOTDIR/info] 1655 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1656 --mandir=DIR man documentation [DATAROOTDIR/man] 1657 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1658 --htmldir=DIR html documentation [DOCDIR] 1659 --dvidir=DIR dvi documentation [DOCDIR] 1660 --pdfdir=DIR pdf documentation [DOCDIR] 1661 --psdir=DIR ps documentation [DOCDIR] 1662 _ACEOF 1663 1664 cat <<\_ACEOF 1665 1666 X features: 1667 --x-includes=DIR X include files are in DIR 1668 --x-libraries=DIR X library files are in DIR 1669 1670 System types: 1671 --build=BUILD configure for building on BUILD [guessed] 1672 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1673 --target=TARGET configure for building compilers for TARGET [HOST] 1674 _ACEOF 1675 fi 1676 1677 if test -n "$ac_init_help"; then 1678 case $ac_init_help in 1679 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1680 esac 1681 cat <<\_ACEOF 1682 1683 Optional Features: 1684 --disable-option-checking ignore unrecognized --enable/--with options 1685 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1686 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1687 --enable-openjdk-only suppress building custom source even if present 1688 [disabled] 1689 --enable-debug set the debug level to fastdebug (shorthand for 1690 --with-debug-level=fastdebug) [disabled] 1691 --disable-headful disable building headful support (graphical UI 1692 support) [enabled] 1693 --enable-hotspot-test-in-build 1694 run the Queens test after Hotspot build [disabled] 1695 --enable-unlimited-crypto 1696 Enable unlimited crypto policy [disabled] 1697 --disable-debug-symbols disable generation of debug symbols [enabled] 1698 --disable-zip-debug-info 1699 disable zipping of debug-info files [enabled] 1700 --disable-macosx-runtime-support 1701 disable the use of MacOSX Java runtime support 1702 framework [enabled] 1703 --enable-sjavac use sjavac to do fast incremental compiles 1704 [disabled] 1705 --disable-precompiled-headers 1706 disable using precompiled headers when compiling C++ 1707 [enabled] 1708 --disable-ccache disable using ccache to speed up recompilations 1709 [enabled] 1710 1711 Optional Packages: 1712 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1713 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1714 --with-custom-make-dir use this directory for custom build/make files 1715 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1716 support it), e.g. --with-target-bits=32 [guessed] 1717 --with-sys-root pass this sys-root to the compilers and tools (for 1718 cross-compiling) 1719 --with-tools-dir search this directory for compilers and tools (for 1720 cross-compiling) 1721 --with-devkit use this directory as base for tools-dir and 1722 sys-root (for cross-compiling) 1723 --with-jdk-variant JDK variant to build (normal) [normal] 1724 --with-jvm-variants JVM variants (separated by commas) to build (server, 1725 client, minimal1, kernel, zero, zeroshark) [server] 1726 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1727 [release] 1728 --with-conf-name use this as the name of the configuration [generated 1729 from important configuration options] 1730 --with-builddeps-conf use this configuration file for the builddeps 1731 --with-builddeps-server download and use build dependencies from this server 1732 url 1733 --with-builddeps-dir store downloaded build dependencies here 1734 [/localhome/builddeps] 1735 --with-builddeps-group chgrp the downloaded build dependencies to this 1736 group 1737 --with-cacerts-file specify alternative cacerts file 1738 --with-milestone Set milestone value for build [internal] 1739 --with-update-version Set update version value for build [b00] 1740 --with-build-number Set build number value for build [b00] 1741 --with-user-release-suffix 1742 Add a custom string to the version string if build 1743 number isn't set.[username_builddateb00] 1744 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1745 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1746 invocations of the Boot JDK, overriding the default 1747 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1748 -enableassertions" 1749 --with-add-source-root for each and every source directory, look in this 1750 additional source root for the same directory; if it 1751 exists and have files in it, include it in the build 1752 --with-override-source-root 1753 for each and every source directory, look in this 1754 override source root for the same directory; if it 1755 exists, use that directory instead and ignore the 1756 directory in the original source root 1757 --with-adds-and-overrides 1758 use the subdirs 'adds' and 'overrides' in the 1759 specified directory as add-source-root and 1760 override-source-root 1761 --with-override-langtools 1762 use this langtools dir for the build 1763 --with-override-corba use this corba dir for the build 1764 --with-override-jaxp use this jaxp dir for the build 1765 --with-override-jaxws use this jaxws dir for the build 1766 --with-override-hotspot use this hotspot dir for the build 1767 --with-override-jdk use this jdk dir for the build 1768 --with-import-hotspot import hotspot binaries from this jdk image or 1769 hotspot build dist dir instead of building from 1770 source 1771 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1772 only) [probed] 1773 --with-dxsdk the DirectX SDK (Windows only) [probed] 1774 --with-dxsdk-lib the DirectX SDK lib directory (Windows only) 1775 [probed] 1776 --with-dxsdk-include the DirectX SDK include directory (Windows only) 1777 [probed] 1778 --with-jtreg Regression Test Harness [probed] 1779 --with-extra-cflags extra flags to be used when compiling jdk c-files 1780 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1781 --with-extra-ldflags extra flags to be used when linking jdk 1782 --with-x use the X Window System 1783 --with-cups specify prefix directory for the cups package 1784 (expecting the headers under PATH/include) 1785 --with-cups-include specify directory for the cups include files 1786 --with-freetype specify prefix directory for the freetype2 package 1787 (expecting the libraries under PATH/lib and the 1788 headers under PATH/include) 1789 --with-alsa specify prefix directory for the alsa package 1790 (expecting the libraries under PATH/lib and the 1791 headers under PATH/include) 1792 --with-alsa-include specify directory for the alsa include files 1793 --with-alsa-lib specify directory for the alsa library 1794 --with-giflib use giflib from build system or OpenJDK source 1795 (system, bundled) [bundled] 1796 --with-zlib use zlib from build system or OpenJDK source 1797 (system, bundled) [bundled] 1798 --with-stdc++lib=<static>,<dynamic>,<default> 1799 force linking of the C++ runtime on Linux to either 1800 static or dynamic, default is static with dynamic as 1801 fallback 1802 --with-num-cores number of cores in the build system, e.g. 1803 --with-num-cores=8 [probed] 1804 --with-memory-size memory (in MB) available in the build system, e.g. 1805 --with-memory-size=1024 [probed] 1806 --with-jobs number of parallel jobs to let make run [calculated 1807 based on cores and memory] 1808 --with-sjavac-server-java 1809 use this java binary for running the sjavac 1810 background server [Boot JDK java] 1811 --with-ccache-dir where to store ccache files [~/.ccache] 1812 1813 Some influential environment variables: 1814 PKG_CONFIG path to pkg-config utility 1815 CC C compiler command 1816 CFLAGS C compiler flags 1817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1818 nonstandard directory <lib dir> 1819 LIBS libraries to pass to the linker, e.g. -l<library> 1820 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1821 you have headers in a nonstandard directory <include dir> 1822 CXX C++ compiler command 1823 CXXFLAGS C++ compiler flags 1824 OBJC Objective C compiler command 1825 OBJCFLAGS Objective C compiler flags 1826 CPP C preprocessor 1827 CXXCPP C++ preprocessor 1828 XMKMF Path to xmkmf, Makefile generator for X Window System 1829 FREETYPE2_CFLAGS 1830 C compiler flags for FREETYPE2, overriding pkg-config 1831 FREETYPE2_LIBS 1832 linker flags for FREETYPE2, overriding pkg-config 1833 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 1834 ALSA_LIBS linker flags for ALSA, overriding pkg-config 1835 LIBFFI_CFLAGS 1836 C compiler flags for LIBFFI, overriding pkg-config 1837 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 1838 1839 Use these variables to override the choices made by `configure' or to help 1840 it to find libraries and programs with nonstandard names/locations. 1841 1842 Report bugs to <build-dev@openjdk.java.net>. 1843 OpenJDK home page: <http://openjdk.java.net>. 1844 _ACEOF 1845 ac_status=$? 1846 fi 1847 1848 if test "$ac_init_help" = "recursive"; then 1849 # If there are subdirs, report their specific --help. 1850 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1851 test -d "$ac_dir" || 1852 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1853 continue 1854 ac_builddir=. 1855 1856 case "$ac_dir" in 1857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1858 *) 1859 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1860 # A ".." for each directory in $ac_dir_suffix. 1861 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1862 case $ac_top_builddir_sub in 1863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1865 esac ;; 1866 esac 1867 ac_abs_top_builddir=$ac_pwd 1868 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1869 # for backward compatibility: 1870 ac_top_builddir=$ac_top_build_prefix 1871 1872 case $srcdir in 1873 .) # We are building in place. 1874 ac_srcdir=. 1875 ac_top_srcdir=$ac_top_builddir_sub 1876 ac_abs_top_srcdir=$ac_pwd ;; 1877 [\\/]* | ?:[\\/]* ) # Absolute name. 1878 ac_srcdir=$srcdir$ac_dir_suffix; 1879 ac_top_srcdir=$srcdir 1880 ac_abs_top_srcdir=$srcdir ;; 1881 *) # Relative name. 1882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1883 ac_top_srcdir=$ac_top_build_prefix$srcdir 1884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1885 esac 1886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1887 1888 cd "$ac_dir" || { ac_status=$?; continue; } 1889 # Check for guested configure. 1890 if test -f "$ac_srcdir/configure.gnu"; then 1891 echo && 1892 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1893 elif test -f "$ac_srcdir/configure"; then 1894 echo && 1895 $SHELL "$ac_srcdir/configure" --help=recursive 1896 else 1897 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1898 fi || ac_status=$? 1899 cd "$ac_pwd" || { ac_status=$?; break; } 1900 done 1901 fi 1902 1903 test -n "$ac_init_help" && exit $ac_status 1904 if $ac_init_version; then 1905 cat <<\_ACEOF 1906 OpenJDK configure jdk8 1907 generated by GNU Autoconf 2.68 1908 1909 Copyright (C) 2010 Free Software Foundation, Inc. 1910 This configure script is free software; the Free Software Foundation 1911 gives unlimited permission to copy, distribute and modify it. 1912 _ACEOF 1913 exit 1914 fi 1915 1916 ## ------------------------ ## 1917 ## Autoconf initialization. ## 1918 ## ------------------------ ## 1919 1920 # ac_fn_c_try_compile LINENO 1921 # -------------------------- 1922 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1923 ac_fn_c_try_compile () 1924 { 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 rm -f conftest.$ac_objext 1927 if { { ac_try="$ac_compile" 1928 case "(($ac_try" in 1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1930 *) ac_try_echo=$ac_try;; 1931 esac 1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1933 $as_echo "$ac_try_echo"; } >&5 1934 (eval "$ac_compile") 2>conftest.err 1935 ac_status=$? 1936 if test -s conftest.err; then 1937 grep -v '^ *+' conftest.err >conftest.er1 1938 cat conftest.er1 >&5 1939 mv -f conftest.er1 conftest.err 1940 fi 1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1942 test $ac_status = 0; } && { 1943 test -z "$ac_c_werror_flag" || 1944 test ! -s conftest.err 1945 } && test -s conftest.$ac_objext; then : 1946 ac_retval=0 1947 else 1948 $as_echo "$as_me: failed program was:" >&5 1949 sed 's/^/| /' conftest.$ac_ext >&5 1950 1951 ac_retval=1 1952 fi 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 as_fn_set_status $ac_retval 1955 1956 } # ac_fn_c_try_compile 1957 1958 # ac_fn_cxx_try_compile LINENO 1959 # ---------------------------- 1960 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1961 ac_fn_cxx_try_compile () 1962 { 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 rm -f conftest.$ac_objext 1965 if { { ac_try="$ac_compile" 1966 case "(($ac_try" in 1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1968 *) ac_try_echo=$ac_try;; 1969 esac 1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1971 $as_echo "$ac_try_echo"; } >&5 1972 (eval "$ac_compile") 2>conftest.err 1973 ac_status=$? 1974 if test -s conftest.err; then 1975 grep -v '^ *+' conftest.err >conftest.er1 1976 cat conftest.er1 >&5 1977 mv -f conftest.er1 conftest.err 1978 fi 1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1980 test $ac_status = 0; } && { 1981 test -z "$ac_cxx_werror_flag" || 1982 test ! -s conftest.err 1983 } && test -s conftest.$ac_objext; then : 1984 ac_retval=0 1985 else 1986 $as_echo "$as_me: failed program was:" >&5 1987 sed 's/^/| /' conftest.$ac_ext >&5 1988 1989 ac_retval=1 1990 fi 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 as_fn_set_status $ac_retval 1993 1994 } # ac_fn_cxx_try_compile 1995 1996 # ac_fn_objc_try_compile LINENO 1997 # ----------------------------- 1998 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1999 ac_fn_objc_try_compile () 2000 { 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2002 rm -f conftest.$ac_objext 2003 if { { ac_try="$ac_compile" 2004 case "(($ac_try" in 2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2006 *) ac_try_echo=$ac_try;; 2007 esac 2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2009 $as_echo "$ac_try_echo"; } >&5 2010 (eval "$ac_compile") 2>conftest.err 2011 ac_status=$? 2012 if test -s conftest.err; then 2013 grep -v '^ *+' conftest.err >conftest.er1 2014 cat conftest.er1 >&5 2015 mv -f conftest.er1 conftest.err 2016 fi 2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2018 test $ac_status = 0; } && { 2019 test -z "$ac_objc_werror_flag" || 2020 test ! -s conftest.err 2021 } && test -s conftest.$ac_objext; then : 2022 ac_retval=0 2023 else 2024 $as_echo "$as_me: failed program was:" >&5 2025 sed 's/^/| /' conftest.$ac_ext >&5 2026 2027 ac_retval=1 2028 fi 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 as_fn_set_status $ac_retval 2031 2032 } # ac_fn_objc_try_compile 2033 2034 # ac_fn_c_try_cpp LINENO 2035 # ---------------------- 2036 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2037 ac_fn_c_try_cpp () 2038 { 2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2040 if { { ac_try="$ac_cpp conftest.$ac_ext" 2041 case "(($ac_try" in 2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2043 *) ac_try_echo=$ac_try;; 2044 esac 2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2046 $as_echo "$ac_try_echo"; } >&5 2047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2048 ac_status=$? 2049 if test -s conftest.err; then 2050 grep -v '^ *+' conftest.err >conftest.er1 2051 cat conftest.er1 >&5 2052 mv -f conftest.er1 conftest.err 2053 fi 2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2055 test $ac_status = 0; } > conftest.i && { 2056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2057 test ! -s conftest.err 2058 }; then : 2059 ac_retval=0 2060 else 2061 $as_echo "$as_me: failed program was:" >&5 2062 sed 's/^/| /' conftest.$ac_ext >&5 2063 2064 ac_retval=1 2065 fi 2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2067 as_fn_set_status $ac_retval 2068 2069 } # ac_fn_c_try_cpp 2070 2071 # ac_fn_cxx_try_cpp LINENO 2072 # ------------------------ 2073 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2074 ac_fn_cxx_try_cpp () 2075 { 2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2077 if { { ac_try="$ac_cpp conftest.$ac_ext" 2078 case "(($ac_try" in 2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2080 *) ac_try_echo=$ac_try;; 2081 esac 2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2083 $as_echo "$ac_try_echo"; } >&5 2084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2085 ac_status=$? 2086 if test -s conftest.err; then 2087 grep -v '^ *+' conftest.err >conftest.er1 2088 cat conftest.er1 >&5 2089 mv -f conftest.er1 conftest.err 2090 fi 2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2092 test $ac_status = 0; } > conftest.i && { 2093 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2094 test ! -s conftest.err 2095 }; then : 2096 ac_retval=0 2097 else 2098 $as_echo "$as_me: failed program was:" >&5 2099 sed 's/^/| /' conftest.$ac_ext >&5 2100 2101 ac_retval=1 2102 fi 2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2104 as_fn_set_status $ac_retval 2105 2106 } # ac_fn_cxx_try_cpp 2107 2108 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2109 # --------------------------------------------------------- 2110 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2111 # the include files in INCLUDES and setting the cache variable VAR 2112 # accordingly. 2113 ac_fn_cxx_check_header_mongrel () 2114 { 2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2116 if eval \${$3+:} false; then : 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2118 $as_echo_n "checking for $2... " >&6; } 2119 if eval \${$3+:} false; then : 2120 $as_echo_n "(cached) " >&6 2121 fi 2122 eval ac_res=\$$3 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2124 $as_echo "$ac_res" >&6; } 2125 else 2126 # Is the header compilable? 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2128 $as_echo_n "checking $2 usability... " >&6; } 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2130 /* end confdefs.h. */ 2131 $4 2132 #include <$2> 2133 _ACEOF 2134 if ac_fn_cxx_try_compile "$LINENO"; then : 2135 ac_header_compiler=yes 2136 else 2137 ac_header_compiler=no 2138 fi 2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2141 $as_echo "$ac_header_compiler" >&6; } 2142 2143 # Is the header present? 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2145 $as_echo_n "checking $2 presence... " >&6; } 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147 /* end confdefs.h. */ 2148 #include <$2> 2149 _ACEOF 2150 if ac_fn_cxx_try_cpp "$LINENO"; then : 2151 ac_header_preproc=yes 2152 else 2153 ac_header_preproc=no 2154 fi 2155 rm -f conftest.err conftest.i conftest.$ac_ext 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2157 $as_echo "$ac_header_preproc" >&6; } 2158 2159 # So? What about this header? 2160 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2161 yes:no: ) 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2163 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2165 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2166 ;; 2167 no:yes:* ) 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2169 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2171 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2173 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2175 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2178 ( $as_echo "## ----------------------------------------- ## 2179 ## Report this to build-dev@openjdk.java.net ## 2180 ## ----------------------------------------- ##" 2181 ) | sed "s/^/$as_me: WARNING: /" >&2 2182 ;; 2183 esac 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2185 $as_echo_n "checking for $2... " >&6; } 2186 if eval \${$3+:} false; then : 2187 $as_echo_n "(cached) " >&6 2188 else 2189 eval "$3=\$ac_header_compiler" 2190 fi 2191 eval ac_res=\$$3 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2193 $as_echo "$ac_res" >&6; } 2194 fi 2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2196 2197 } # ac_fn_cxx_check_header_mongrel 2198 2199 # ac_fn_cxx_try_run LINENO 2200 # ------------------------ 2201 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2202 # that executables *can* be run. 2203 ac_fn_cxx_try_run () 2204 { 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 if { { ac_try="$ac_link" 2207 case "(($ac_try" in 2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2209 *) ac_try_echo=$ac_try;; 2210 esac 2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2212 $as_echo "$ac_try_echo"; } >&5 2213 (eval "$ac_link") 2>&5 2214 ac_status=$? 2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2216 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2217 { { case "(($ac_try" in 2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2219 *) ac_try_echo=$ac_try;; 2220 esac 2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2222 $as_echo "$ac_try_echo"; } >&5 2223 (eval "$ac_try") 2>&5 2224 ac_status=$? 2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2226 test $ac_status = 0; }; }; then : 2227 ac_retval=0 2228 else 2229 $as_echo "$as_me: program exited with status $ac_status" >&5 2230 $as_echo "$as_me: failed program was:" >&5 2231 sed 's/^/| /' conftest.$ac_ext >&5 2232 2233 ac_retval=$ac_status 2234 fi 2235 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2237 as_fn_set_status $ac_retval 2238 2239 } # ac_fn_cxx_try_run 2240 2241 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2242 # --------------------------------------------------------- 2243 # Tests whether HEADER exists and can be compiled using the include files in 2244 # INCLUDES, setting the cache variable VAR accordingly. 2245 ac_fn_cxx_check_header_compile () 2246 { 2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2249 $as_echo_n "checking for $2... " >&6; } 2250 if eval \${$3+:} false; then : 2251 $as_echo_n "(cached) " >&6 2252 else 2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2254 /* end confdefs.h. */ 2255 $4 2256 #include <$2> 2257 _ACEOF 2258 if ac_fn_cxx_try_compile "$LINENO"; then : 2259 eval "$3=yes" 2260 else 2261 eval "$3=no" 2262 fi 2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264 fi 2265 eval ac_res=\$$3 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2267 $as_echo "$ac_res" >&6; } 2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2269 2270 } # ac_fn_cxx_check_header_compile 2271 2272 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2273 # ---------------------------------------------- 2274 # Tries to find the compile-time value of EXPR in a program that includes 2275 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2276 # computed 2277 ac_fn_cxx_compute_int () 2278 { 2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2280 if test "$cross_compiling" = yes; then 2281 # Depending upon the size, compute the lo and hi bounds. 2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2283 /* end confdefs.h. */ 2284 $4 2285 int 2286 main () 2287 { 2288 static int test_array [1 - 2 * !(($2) >= 0)]; 2289 test_array [0] = 0 2290 2291 ; 2292 return 0; 2293 } 2294 _ACEOF 2295 if ac_fn_cxx_try_compile "$LINENO"; then : 2296 ac_lo=0 ac_mid=0 2297 while :; do 2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2299 /* end confdefs.h. */ 2300 $4 2301 int 2302 main () 2303 { 2304 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2305 test_array [0] = 0 2306 2307 ; 2308 return 0; 2309 } 2310 _ACEOF 2311 if ac_fn_cxx_try_compile "$LINENO"; then : 2312 ac_hi=$ac_mid; break 2313 else 2314 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2315 if test $ac_lo -le $ac_mid; then 2316 ac_lo= ac_hi= 2317 break 2318 fi 2319 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2320 fi 2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2322 done 2323 else 2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2325 /* end confdefs.h. */ 2326 $4 2327 int 2328 main () 2329 { 2330 static int test_array [1 - 2 * !(($2) < 0)]; 2331 test_array [0] = 0 2332 2333 ; 2334 return 0; 2335 } 2336 _ACEOF 2337 if ac_fn_cxx_try_compile "$LINENO"; then : 2338 ac_hi=-1 ac_mid=-1 2339 while :; do 2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2341 /* end confdefs.h. */ 2342 $4 2343 int 2344 main () 2345 { 2346 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2347 test_array [0] = 0 2348 2349 ; 2350 return 0; 2351 } 2352 _ACEOF 2353 if ac_fn_cxx_try_compile "$LINENO"; then : 2354 ac_lo=$ac_mid; break 2355 else 2356 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2357 if test $ac_mid -le $ac_hi; then 2358 ac_lo= ac_hi= 2359 break 2360 fi 2361 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2362 fi 2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2364 done 2365 else 2366 ac_lo= ac_hi= 2367 fi 2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2369 fi 2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2371 # Binary search between lo and hi bounds. 2372 while test "x$ac_lo" != "x$ac_hi"; do 2373 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2375 /* end confdefs.h. */ 2376 $4 2377 int 2378 main () 2379 { 2380 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2381 test_array [0] = 0 2382 2383 ; 2384 return 0; 2385 } 2386 _ACEOF 2387 if ac_fn_cxx_try_compile "$LINENO"; then : 2388 ac_hi=$ac_mid 2389 else 2390 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2391 fi 2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2393 done 2394 case $ac_lo in #(( 2395 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2396 '') ac_retval=1 ;; 2397 esac 2398 else 2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2400 /* end confdefs.h. */ 2401 $4 2402 static long int longval () { return $2; } 2403 static unsigned long int ulongval () { return $2; } 2404 #include <stdio.h> 2405 #include <stdlib.h> 2406 int 2407 main () 2408 { 2409 2410 FILE *f = fopen ("conftest.val", "w"); 2411 if (! f) 2412 return 1; 2413 if (($2) < 0) 2414 { 2415 long int i = longval (); 2416 if (i != ($2)) 2417 return 1; 2418 fprintf (f, "%ld", i); 2419 } 2420 else 2421 { 2422 unsigned long int i = ulongval (); 2423 if (i != ($2)) 2424 return 1; 2425 fprintf (f, "%lu", i); 2426 } 2427 /* Do not output a trailing newline, as this causes \r\n confusion 2428 on some platforms. */ 2429 return ferror (f) || fclose (f) != 0; 2430 2431 ; 2432 return 0; 2433 } 2434 _ACEOF 2435 if ac_fn_cxx_try_run "$LINENO"; then : 2436 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2437 else 2438 ac_retval=1 2439 fi 2440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2441 conftest.$ac_objext conftest.beam conftest.$ac_ext 2442 rm -f conftest.val 2443 2444 fi 2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2446 as_fn_set_status $ac_retval 2447 2448 } # ac_fn_cxx_compute_int 2449 2450 # ac_fn_cxx_try_link LINENO 2451 # ------------------------- 2452 # Try to link conftest.$ac_ext, and return whether this succeeded. 2453 ac_fn_cxx_try_link () 2454 { 2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2456 rm -f conftest.$ac_objext conftest$ac_exeext 2457 if { { ac_try="$ac_link" 2458 case "(($ac_try" in 2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2460 *) ac_try_echo=$ac_try;; 2461 esac 2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2463 $as_echo "$ac_try_echo"; } >&5 2464 (eval "$ac_link") 2>conftest.err 2465 ac_status=$? 2466 if test -s conftest.err; then 2467 grep -v '^ *+' conftest.err >conftest.er1 2468 cat conftest.er1 >&5 2469 mv -f conftest.er1 conftest.err 2470 fi 2471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2472 test $ac_status = 0; } && { 2473 test -z "$ac_cxx_werror_flag" || 2474 test ! -s conftest.err 2475 } && test -s conftest$ac_exeext && { 2476 test "$cross_compiling" = yes || 2477 $as_test_x conftest$ac_exeext 2478 }; then : 2479 ac_retval=0 2480 else 2481 $as_echo "$as_me: failed program was:" >&5 2482 sed 's/^/| /' conftest.$ac_ext >&5 2483 2484 ac_retval=1 2485 fi 2486 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2487 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2488 # interfere with the next link command; also delete a directory that is 2489 # left behind by Apple's compiler. We do this before executing the actions. 2490 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2492 as_fn_set_status $ac_retval 2493 2494 } # ac_fn_cxx_try_link 2495 2496 # ac_fn_cxx_check_func LINENO FUNC VAR 2497 # ------------------------------------ 2498 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2499 ac_fn_cxx_check_func () 2500 { 2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2503 $as_echo_n "checking for $2... " >&6; } 2504 if eval \${$3+:} false; then : 2505 $as_echo_n "(cached) " >&6 2506 else 2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2508 /* end confdefs.h. */ 2509 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2510 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2511 #define $2 innocuous_$2 2512 2513 /* System header to define __stub macros and hopefully few prototypes, 2514 which can conflict with char $2 (); below. 2515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2516 <limits.h> exists even on freestanding compilers. */ 2517 2518 #ifdef __STDC__ 2519 # include <limits.h> 2520 #else 2521 # include <assert.h> 2522 #endif 2523 2524 #undef $2 2525 2526 /* Override any GCC internal prototype to avoid an error. 2527 Use char because int might match the return type of a GCC 2528 builtin and then its argument prototype would still apply. */ 2529 #ifdef __cplusplus 2530 extern "C" 2531 #endif 2532 char $2 (); 2533 /* The GNU C library defines this for functions which it implements 2534 to always fail with ENOSYS. Some functions are actually named 2535 something starting with __ and the normal name is an alias. */ 2536 #if defined __stub_$2 || defined __stub___$2 2537 choke me 2538 #endif 2539 2540 int 2541 main () 2542 { 2543 return $2 (); 2544 ; 2545 return 0; 2546 } 2547 _ACEOF 2548 if ac_fn_cxx_try_link "$LINENO"; then : 2549 eval "$3=yes" 2550 else 2551 eval "$3=no" 2552 fi 2553 rm -f core conftest.err conftest.$ac_objext \ 2554 conftest$ac_exeext conftest.$ac_ext 2555 fi 2556 eval ac_res=\$$3 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2558 $as_echo "$ac_res" >&6; } 2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2560 2561 } # ac_fn_cxx_check_func 2562 2563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2564 # ------------------------------------------------------- 2565 # Tests whether HEADER exists and can be compiled using the include files in 2566 # INCLUDES, setting the cache variable VAR accordingly. 2567 ac_fn_c_check_header_compile () 2568 { 2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2571 $as_echo_n "checking for $2... " >&6; } 2572 if eval \${$3+:} false; then : 2573 $as_echo_n "(cached) " >&6 2574 else 2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2576 /* end confdefs.h. */ 2577 $4 2578 #include <$2> 2579 _ACEOF 2580 if ac_fn_c_try_compile "$LINENO"; then : 2581 eval "$3=yes" 2582 else 2583 eval "$3=no" 2584 fi 2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2586 fi 2587 eval ac_res=\$$3 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2589 $as_echo "$ac_res" >&6; } 2590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2591 2592 } # ac_fn_c_check_header_compile 2593 cat >config.log <<_ACEOF 2594 This file contains any messages produced by compilers while 2595 running configure, to aid debugging if configure makes a mistake. 2596 2597 It was created by OpenJDK $as_me jdk8, which was 2598 generated by GNU Autoconf 2.68. Invocation command line was 2599 2600 $ $0 $@ 2601 2602 _ACEOF 2603 exec 5>>config.log 2604 { 2605 cat <<_ASUNAME 2606 ## --------- ## 2607 ## Platform. ## 2608 ## --------- ## 2609 2610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2611 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2612 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2613 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2614 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2615 2616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2618 2619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2626 2627 _ASUNAME 2628 2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630 for as_dir in $PATH 2631 do 2632 IFS=$as_save_IFS 2633 test -z "$as_dir" && as_dir=. 2634 $as_echo "PATH: $as_dir" 2635 done 2636 IFS=$as_save_IFS 2637 2638 } >&5 2639 2640 cat >&5 <<_ACEOF 2641 2642 2643 ## ----------- ## 2644 ## Core tests. ## 2645 ## ----------- ## 2646 2647 _ACEOF 2648 2649 2650 # Keep a trace of the command line. 2651 # Strip out --no-create and --no-recursion so they do not pile up. 2652 # Strip out --silent because we don't want to record it for future runs. 2653 # Also quote any args containing shell meta-characters. 2654 # Make two passes to allow for proper duplicate-argument suppression. 2655 ac_configure_args= 2656 ac_configure_args0= 2657 ac_configure_args1= 2658 ac_must_keep_next=false 2659 for ac_pass in 1 2 2660 do 2661 for ac_arg 2662 do 2663 case $ac_arg in 2664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2666 | -silent | --silent | --silen | --sile | --sil) 2667 continue ;; 2668 *\'*) 2669 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2670 esac 2671 case $ac_pass in 2672 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2673 2) 2674 as_fn_append ac_configure_args1 " '$ac_arg'" 2675 if test $ac_must_keep_next = true; then 2676 ac_must_keep_next=false # Got value, back to normal. 2677 else 2678 case $ac_arg in 2679 *=* | --config-cache | -C | -disable-* | --disable-* \ 2680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2682 | -with-* | --with-* | -without-* | --without-* | --x) 2683 case "$ac_configure_args0 " in 2684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2685 esac 2686 ;; 2687 -* ) ac_must_keep_next=true ;; 2688 esac 2689 fi 2690 as_fn_append ac_configure_args " '$ac_arg'" 2691 ;; 2692 esac 2693 done 2694 done 2695 { ac_configure_args0=; unset ac_configure_args0;} 2696 { ac_configure_args1=; unset ac_configure_args1;} 2697 2698 # When interrupted or exit'd, cleanup temporary files, and complete 2699 # config.log. We remove comments because anyway the quotes in there 2700 # would cause problems or look ugly. 2701 # WARNING: Use '\'' to represent an apostrophe within the trap. 2702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2703 trap 'exit_status=$? 2704 # Save into config.log some information that might help in debugging. 2705 { 2706 echo 2707 2708 $as_echo "## ---------------- ## 2709 ## Cache variables. ## 2710 ## ---------------- ##" 2711 echo 2712 # The following way of writing the cache mishandles newlines in values, 2713 ( 2714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2715 eval ac_val=\$$ac_var 2716 case $ac_val in #( 2717 *${as_nl}*) 2718 case $ac_var in #( 2719 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2720 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2721 esac 2722 case $ac_var in #( 2723 _ | IFS | as_nl) ;; #( 2724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2725 *) { eval $ac_var=; unset $ac_var;} ;; 2726 esac ;; 2727 esac 2728 done 2729 (set) 2>&1 | 2730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2731 *${as_nl}ac_space=\ *) 2732 sed -n \ 2733 "s/'\''/'\''\\\\'\'''\''/g; 2734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2735 ;; #( 2736 *) 2737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2738 ;; 2739 esac | 2740 sort 2741 ) 2742 echo 2743 2744 $as_echo "## ----------------- ## 2745 ## Output variables. ## 2746 ## ----------------- ##" 2747 echo 2748 for ac_var in $ac_subst_vars 2749 do 2750 eval ac_val=\$$ac_var 2751 case $ac_val in 2752 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2753 esac 2754 $as_echo "$ac_var='\''$ac_val'\''" 2755 done | sort 2756 echo 2757 2758 if test -n "$ac_subst_files"; then 2759 $as_echo "## ------------------- ## 2760 ## File substitutions. ## 2761 ## ------------------- ##" 2762 echo 2763 for ac_var in $ac_subst_files 2764 do 2765 eval ac_val=\$$ac_var 2766 case $ac_val in 2767 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2768 esac 2769 $as_echo "$ac_var='\''$ac_val'\''" 2770 done | sort 2771 echo 2772 fi 2773 2774 if test -s confdefs.h; then 2775 $as_echo "## ----------- ## 2776 ## confdefs.h. ## 2777 ## ----------- ##" 2778 echo 2779 cat confdefs.h 2780 echo 2781 fi 2782 test "$ac_signal" != 0 && 2783 $as_echo "$as_me: caught signal $ac_signal" 2784 $as_echo "$as_me: exit $exit_status" 2785 } >&5 2786 rm -f core *.core core.conftest.* && 2787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2788 exit $exit_status 2789 ' 0 2790 for ac_signal in 1 2 13 15; do 2791 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2792 done 2793 ac_signal=0 2794 2795 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2796 rm -f -r conftest* confdefs.h 2797 2798 $as_echo "/* confdefs.h */" > confdefs.h 2799 2800 # Predefined preprocessor variables. 2801 2802 cat >>confdefs.h <<_ACEOF 2803 #define PACKAGE_NAME "$PACKAGE_NAME" 2804 _ACEOF 2805 2806 cat >>confdefs.h <<_ACEOF 2807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2808 _ACEOF 2809 2810 cat >>confdefs.h <<_ACEOF 2811 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2812 _ACEOF 2813 2814 cat >>confdefs.h <<_ACEOF 2815 #define PACKAGE_STRING "$PACKAGE_STRING" 2816 _ACEOF 2817 2818 cat >>confdefs.h <<_ACEOF 2819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2820 _ACEOF 2821 2822 cat >>confdefs.h <<_ACEOF 2823 #define PACKAGE_URL "$PACKAGE_URL" 2824 _ACEOF 2825 2826 2827 # Let the site file select an alternate cache file if it wants to. 2828 # Prefer an explicitly selected file to automatically selected ones. 2829 ac_site_file1=NONE 2830 ac_site_file2=NONE 2831 if test -n "$CONFIG_SITE"; then 2832 # We do not want a PATH search for config.site. 2833 case $CONFIG_SITE in #(( 2834 -*) ac_site_file1=./$CONFIG_SITE;; 2835 */*) ac_site_file1=$CONFIG_SITE;; 2836 *) ac_site_file1=./$CONFIG_SITE;; 2837 esac 2838 elif test "x$prefix" != xNONE; then 2839 ac_site_file1=$prefix/share/config.site 2840 ac_site_file2=$prefix/etc/config.site 2841 else 2842 ac_site_file1=$ac_default_prefix/share/config.site 2843 ac_site_file2=$ac_default_prefix/etc/config.site 2844 fi 2845 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2846 do 2847 test "x$ac_site_file" = xNONE && continue 2848 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2850 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2851 sed 's/^/| /' "$ac_site_file" >&5 2852 . "$ac_site_file" \ 2853 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2855 as_fn_error $? "failed to load site script $ac_site_file 2856 See \`config.log' for more details" "$LINENO" 5; } 2857 fi 2858 done 2859 2860 if test -r "$cache_file"; then 2861 # Some versions of bash will fail to source /dev/null (special files 2862 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2863 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2865 $as_echo "$as_me: loading cache $cache_file" >&6;} 2866 case $cache_file in 2867 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2868 *) . "./$cache_file";; 2869 esac 2870 fi 2871 else 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2873 $as_echo "$as_me: creating cache $cache_file" >&6;} 2874 >$cache_file 2875 fi 2876 2877 # Check that the precious variables saved in the cache have kept the same 2878 # value. 2879 ac_cache_corrupted=false 2880 for ac_var in $ac_precious_vars; do 2881 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2882 eval ac_new_set=\$ac_env_${ac_var}_set 2883 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2884 eval ac_new_val=\$ac_env_${ac_var}_value 2885 case $ac_old_set,$ac_new_set in 2886 set,) 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2889 ac_cache_corrupted=: ;; 2890 ,set) 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2893 ac_cache_corrupted=: ;; 2894 ,);; 2895 *) 2896 if test "x$ac_old_val" != "x$ac_new_val"; then 2897 # differences in whitespace do not lead to failure. 2898 ac_old_val_w=`echo x $ac_old_val` 2899 ac_new_val_w=`echo x $ac_new_val` 2900 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2903 ac_cache_corrupted=: 2904 else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2907 eval $ac_var=\$ac_old_val 2908 fi 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2913 fi;; 2914 esac 2915 # Pass precious variables to config.status. 2916 if test "$ac_new_set" = set; then 2917 case $ac_new_val in 2918 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2919 *) ac_arg=$ac_var=$ac_new_val ;; 2920 esac 2921 case " $ac_configure_args " in 2922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2923 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2924 esac 2925 fi 2926 done 2927 if $ac_cache_corrupted; then 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2931 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2932 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2933 fi 2934 ## -------------------- ## 2935 ## Main body of script. ## 2936 ## -------------------- ## 2937 2938 ac_ext=c 2939 ac_cpp='$CPP $CPPFLAGS' 2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2943 2944 2945 2946 ac_aux_dir= 2947 for ac_dir in build-aux "$srcdir"/build-aux; do 2948 if test -f "$ac_dir/install-sh"; then 2949 ac_aux_dir=$ac_dir 2950 ac_install_sh="$ac_aux_dir/install-sh -c" 2951 break 2952 elif test -f "$ac_dir/install.sh"; then 2953 ac_aux_dir=$ac_dir 2954 ac_install_sh="$ac_aux_dir/install.sh -c" 2955 break 2956 elif test -f "$ac_dir/shtool"; then 2957 ac_aux_dir=$ac_dir 2958 ac_install_sh="$ac_aux_dir/shtool install -c" 2959 break 2960 fi 2961 done 2962 if test -z "$ac_aux_dir"; then 2963 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2964 fi 2965 2966 # These three variables are undocumented and unsupported, 2967 # and are intended to be withdrawn in a future Autoconf release. 2968 # They can cause serious problems if a builder's source tree is in a directory 2969 # whose full name contains unusual characters. 2970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2973 2974 2975 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2976 2977 # 2978 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 2979 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2980 # 2981 # This code is free software; you can redistribute it and/or modify it 2982 # under the terms of the GNU General Public License version 2 only, as 2983 # published by the Free Software Foundation. Oracle designates this 2984 # particular file as subject to the "Classpath" exception as provided 2985 # by Oracle in the LICENSE file that accompanied this code. 2986 # 2987 # This code is distributed in the hope that it will be useful, but WITHOUT 2988 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2989 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2990 # version 2 for more details (a copy is included in the LICENSE file that 2991 # accompanied this code). 2992 # 2993 # You should have received a copy of the GNU General Public License version 2994 # 2 along with this work; if not, write to the Free Software Foundation, 2995 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2996 # 2997 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2998 # or visit www.oracle.com if you need additional information or have any 2999 # questions. 3000 # 3001 3002 # 3003 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3004 # 3005 # This program is free software; you can redistribute it and/or modify 3006 # it under the terms of the GNU General Public License as published by 3007 # the Free Software Foundation; either version 2 of the License, or 3008 # (at your option) any later version. 3009 # 3010 # This program is distributed in the hope that it will be useful, but 3011 # WITHOUT ANY WARRANTY; without even the implied warranty of 3012 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3013 # General Public License for more details. 3014 # 3015 # You should have received a copy of the GNU General Public License 3016 # along with this program; if not, write to the Free Software 3017 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3018 # 3019 # As a special exception to the GNU General Public License, if you 3020 # distribute this file as part of a program that contains a 3021 # configuration script generated by Autoconf, you may include it under 3022 # the same distribution terms that you use for the rest of that program. 3023 3024 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3025 # ---------------------------------- 3026 # PKG_PROG_PKG_CONFIG 3027 3028 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3029 # 3030 # Check to see whether a particular set of modules exists. Similar 3031 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3032 # 3033 # 3034 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3035 # this or PKG_CHECK_MODULES is called, or make sure to call 3036 # PKG_CHECK_EXISTS manually 3037 # -------------------------------------------------------------- 3038 3039 3040 3041 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3042 # --------------------------------------------- 3043 # _PKG_CONFIG 3044 3045 # _PKG_SHORT_ERRORS_SUPPORTED 3046 # ----------------------------- 3047 # _PKG_SHORT_ERRORS_SUPPORTED 3048 3049 3050 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3051 # [ACTION-IF-NOT-FOUND]) 3052 # 3053 # 3054 # Note that if there is a possibility the first call to 3055 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3056 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3057 # 3058 # 3059 # -------------------------------------------------------------- 3060 # PKG_CHECK_MODULES 3061 3062 3063 # Include these first... 3064 # 3065 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 3066 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3067 # 3068 # This code is free software; you can redistribute it and/or modify it 3069 # under the terms of the GNU General Public License version 2 only, as 3070 # published by the Free Software Foundation. Oracle designates this 3071 # particular file as subject to the "Classpath" exception as provided 3072 # by Oracle in the LICENSE file that accompanied this code. 3073 # 3074 # This code is distributed in the hope that it will be useful, but WITHOUT 3075 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3076 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3077 # version 2 for more details (a copy is included in the LICENSE file that 3078 # accompanied this code). 3079 # 3080 # You should have received a copy of the GNU General Public License version 3081 # 2 along with this work; if not, write to the Free Software Foundation, 3082 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3083 # 3084 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3085 # or visit www.oracle.com if you need additional information or have any 3086 # questions. 3087 # 3088 3089 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3090 # If so, then append $1 to $2\ 3091 # Also set JVM_ARG_OK to true/false depending on outcome. 3092 3093 3094 # This will make sure the given variable points to a full and proper 3095 # path. This means: 3096 # 1) There will be no spaces in the path. On posix platforms, 3097 # spaces in the path will result in an error. On Windows, 3098 # the path will be rewritten using short-style to be space-free. 3099 # 2) The path will be absolute, and it will be in unix-style (on 3100 # cygwin). 3101 # $1: The name of the variable to fix 3102 3103 3104 # This will make sure the given variable points to a executable 3105 # with a full and proper path. This means: 3106 # 1) There will be no spaces in the path. On posix platforms, 3107 # spaces in the path will result in an error. On Windows, 3108 # the path will be rewritten using short-style to be space-free. 3109 # 2) The path will be absolute, and it will be in unix-style (on 3110 # cygwin). 3111 # Any arguments given to the executable is preserved. 3112 # If the input variable does not have a directory specification, then 3113 # it need to be in the PATH. 3114 # $1: The name of the variable to fix 3115 3116 3117 3118 3119 3120 3121 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3122 # $1: variable to check 3123 # $2: executable name to print in warning (optional) 3124 3125 3126 # Does AC_PATH_PROG followed by BASIC_CHECK_NONEMPTY. 3127 # Arguments as AC_PATH_PROG: 3128 # $1: variable to set 3129 # $2: executable name to look for 3130 3131 3132 # Setup the most fundamental tools that relies on not much else to set up, 3133 # but is used by much of the early bootstrap code. 3134 3135 3136 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3137 3138 3139 3140 3141 3142 3143 3144 #%%% Simple tools %%% 3145 3146 # Check if we have found a usable version of make 3147 # $1: the path to a potential make binary (or empty) 3148 # $2: the description on how we found this 3149 3150 3151 # Goes looking for a usable version of GNU make. 3152 3153 3154 3155 3156 3157 3158 # Check if build directory is on local disk. If not possible to determine, 3159 # we prefer to claim it's local. 3160 # Argument 1: directory to test 3161 # Argument 2: what to do if it is on local disk 3162 # Argument 3: what to do otherwise (remote disk or failure) 3163 3164 3165 # Check that source files have basic read permissions set. This might 3166 # not be the case in cygwin in certain conditions. 3167 3168 3169 3170 3171 # 3172 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3173 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3174 # 3175 # This code is free software; you can redistribute it and/or modify it 3176 # under the terms of the GNU General Public License version 2 only, as 3177 # published by the Free Software Foundation. Oracle designates this 3178 # particular file as subject to the "Classpath" exception as provided 3179 # by Oracle in the LICENSE file that accompanied this code. 3180 # 3181 # This code is distributed in the hope that it will be useful, but WITHOUT 3182 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3183 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3184 # version 2 for more details (a copy is included in the LICENSE file that 3185 # accompanied this code). 3186 # 3187 # You should have received a copy of the GNU General Public License version 3188 # 2 along with this work; if not, write to the Free Software Foundation, 3189 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3190 # 3191 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3192 # or visit www.oracle.com if you need additional information or have any 3193 # questions. 3194 # 3195 3196 3197 3198 3199 3200 # Helper function which possibly converts a path using DOS-style short mode. 3201 # If so, the updated path is stored in $new_path. 3202 # $1: The path to check 3203 3204 3205 # Helper function which possibly converts a path using DOS-style short mode. 3206 # If so, the updated path is stored in $new_path. 3207 # $1: The path to check 3208 3209 3210 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3211 # and could probably be heavily simplified. However, all changes in this 3212 # area tend to need lot of testing in different scenarios, and in lack of 3213 # proper unit testing, cleaning this up has not been deemed worth the effort 3214 # at the moment. 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3225 3226 3227 3228 3229 # 3230 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3231 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3232 # 3233 # This code is free software; you can redistribute it and/or modify it 3234 # under the terms of the GNU General Public License version 2 only, as 3235 # published by the Free Software Foundation. Oracle designates this 3236 # particular file as subject to the "Classpath" exception as provided 3237 # by Oracle in the LICENSE file that accompanied this code. 3238 # 3239 # This code is distributed in the hope that it will be useful, but WITHOUT 3240 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3241 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3242 # version 2 for more details (a copy is included in the LICENSE file that 3243 # accompanied this code). 3244 # 3245 # You should have received a copy of the GNU General Public License version 3246 # 2 along with this work; if not, write to the Free Software Foundation, 3247 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3248 # 3249 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3250 # or visit www.oracle.com if you need additional information or have any 3251 # questions. 3252 # 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 # ... then the rest 3265 # 3266 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3267 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3268 # 3269 # This code is free software; you can redistribute it and/or modify it 3270 # under the terms of the GNU General Public License version 2 only, as 3271 # published by the Free Software Foundation. Oracle designates this 3272 # particular file as subject to the "Classpath" exception as provided 3273 # by Oracle in the LICENSE file that accompanied this code. 3274 # 3275 # This code is distributed in the hope that it will be useful, but WITHOUT 3276 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3277 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3278 # version 2 for more details (a copy is included in the LICENSE file that 3279 # accompanied this code). 3280 # 3281 # You should have received a copy of the GNU General Public License version 3282 # 2 along with this work; if not, write to the Free Software Foundation, 3283 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3284 # 3285 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3286 # or visit www.oracle.com if you need additional information or have any 3287 # questions. 3288 # 3289 3290 # Execute the check given as argument, and verify the result 3291 # If the Boot JDK was previously found, do nothing 3292 # $1 A command line (typically autoconf macro) to execute 3293 3294 3295 # Test: Is bootjdk explicitely set by command line arguments? 3296 3297 3298 # Test: Is bootjdk available from builddeps? 3299 3300 3301 # Test: Is $JAVA_HOME set? 3302 3303 3304 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3305 3306 3307 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3308 3309 3310 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3311 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3312 # $1 = Path to directory containing jdk installations. 3313 # $2 = String to append to the found JDK directory to get the proper JDK home 3314 3315 3316 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3317 # environmental variable as base for where to look. 3318 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3319 3320 3321 # Test: Is there a JDK installed in default, well-known locations? 3322 3323 3324 # Check that a command-line tool in the Boot JDK is correct 3325 # $1 = name of variable to assign 3326 # $2 = name of binary 3327 3328 3329 ############################################################################### 3330 # 3331 # We need a Boot JDK to bootstrap the build. 3332 # 3333 3334 3335 3336 3337 3338 # 3339 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3340 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3341 # 3342 # This code is free software; you can redistribute it and/or modify it 3343 # under the terms of the GNU General Public License version 2 only, as 3344 # published by the Free Software Foundation. Oracle designates this 3345 # particular file as subject to the "Classpath" exception as provided 3346 # by Oracle in the LICENSE file that accompanied this code. 3347 # 3348 # This code is distributed in the hope that it will be useful, but WITHOUT 3349 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3350 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3351 # version 2 for more details (a copy is included in the LICENSE file that 3352 # accompanied this code). 3353 # 3354 # You should have received a copy of the GNU General Public License version 3355 # 2 along with this work; if not, write to the Free Software Foundation, 3356 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3357 # 3358 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3359 # or visit www.oracle.com if you need additional information or have any 3360 # questions. 3361 # 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 # 3383 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3384 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3385 # 3386 # This code is free software; you can redistribute it and/or modify it 3387 # under the terms of the GNU General Public License version 2 only, as 3388 # published by the Free Software Foundation. Oracle designates this 3389 # particular file as subject to the "Classpath" exception as provided 3390 # by Oracle in the LICENSE file that accompanied this code. 3391 # 3392 # This code is distributed in the hope that it will be useful, but WITHOUT 3393 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3394 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3395 # version 2 for more details (a copy is included in the LICENSE file that 3396 # accompanied this code). 3397 # 3398 # You should have received a copy of the GNU General Public License version 3399 # 2 along with this work; if not, write to the Free Software Foundation, 3400 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3401 # 3402 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3403 # or visit www.oracle.com if you need additional information or have any 3404 # questions. 3405 # 3406 3407 3408 3409 3410 3411 cygwin_help() { 3412 case $1 in 3413 unzip) 3414 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip" ;; 3415 zip) 3416 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P zip" ;; 3417 make) 3418 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P make" ;; 3419 * ) 3420 break ;; 3421 esac 3422 } 3423 3424 apt_help() { 3425 case $1 in 3426 devkit) 3427 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3428 openjdk) 3429 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3430 alsa) 3431 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3432 cups) 3433 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3434 freetype2) 3435 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3436 pulse) 3437 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3438 x11) 3439 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;; 3440 ccache) 3441 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3442 * ) 3443 break ;; 3444 esac 3445 } 3446 3447 yum_help() { 3448 case $1 in 3449 devkit) 3450 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3451 openjdk) 3452 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3453 alsa) 3454 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3455 cups) 3456 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3457 freetype2) 3458 PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;; 3459 pulse) 3460 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3461 x11) 3462 PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;; 3463 ccache) 3464 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3465 * ) 3466 break ;; 3467 esac 3468 } 3469 3470 port_help() { 3471 PKGHANDLER_COMMAND="" 3472 } 3473 3474 pkgutil_help() { 3475 PKGHANDLER_COMMAND="" 3476 } 3477 3478 pkgadd_help() { 3479 PKGHANDLER_COMMAND="" 3480 } 3481 3482 3483 3484 # 3485 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 3486 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3487 # 3488 # This code is free software; you can redistribute it and/or modify it 3489 # under the terms of the GNU General Public License version 2 only, as 3490 # published by the Free Software Foundation. Oracle designates this 3491 # particular file as subject to the "Classpath" exception as provided 3492 # by Oracle in the LICENSE file that accompanied this code. 3493 # 3494 # This code is distributed in the hope that it will be useful, but WITHOUT 3495 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3496 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3497 # version 2 for more details (a copy is included in the LICENSE file that 3498 # accompanied this code). 3499 # 3500 # You should have received a copy of the GNU General Public License version 3501 # 2 along with this work; if not, write to the Free Software Foundation, 3502 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3503 # 3504 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3505 # or visit www.oracle.com if you need additional information or have any 3506 # questions. 3507 # 3508 3509 3510 3511 3512 3513 3514 3515 3516 ############################################################################### 3517 # 3518 # Should we build only OpenJDK even if closed sources are present? 3519 # 3520 3521 3522 3523 3524 ############################################################################### 3525 # 3526 # Setup version numbers 3527 # 3528 3529 3530 3531 3532 3533 3534 # Support for customization of the build process. Some build files 3535 # will include counterparts from this location, if they exist. This allows 3536 # for a degree of customization of the build targets and the rules/recipes 3537 # to create them 3538 3539 # Check whether --with-custom-make-dir was given. 3540 if test "${with_custom_make_dir+set}" = set; then : 3541 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3542 fi 3543 3544 3545 3546 # 3547 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3548 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3549 # 3550 # This code is free software; you can redistribute it and/or modify it 3551 # under the terms of the GNU General Public License version 2 only, as 3552 # published by the Free Software Foundation. Oracle designates this 3553 # particular file as subject to the "Classpath" exception as provided 3554 # by Oracle in the LICENSE file that accompanied this code. 3555 # 3556 # This code is distributed in the hope that it will be useful, but WITHOUT 3557 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3558 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3559 # version 2 for more details (a copy is included in the LICENSE file that 3560 # accompanied this code). 3561 # 3562 # You should have received a copy of the GNU General Public License version 3563 # 2 along with this work; if not, write to the Free Software Foundation, 3564 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3565 # 3566 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3567 # or visit www.oracle.com if you need additional information or have any 3568 # questions. 3569 # 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 # 3586 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3587 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3588 # 3589 # This code is free software; you can redistribute it and/or modify it 3590 # under the terms of the GNU General Public License version 2 only, as 3591 # published by the Free Software Foundation. Oracle designates this 3592 # particular file as subject to the "Classpath" exception as provided 3593 # by Oracle in the LICENSE file that accompanied this code. 3594 # 3595 # This code is distributed in the hope that it will be useful, but WITHOUT 3596 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3597 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3598 # version 2 for more details (a copy is included in the LICENSE file that 3599 # accompanied this code). 3600 # 3601 # You should have received a copy of the GNU General Public License version 3602 # 2 along with this work; if not, write to the Free Software Foundation, 3603 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3604 # 3605 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3606 # or visit www.oracle.com if you need additional information or have any 3607 # questions. 3608 # 3609 3610 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3611 # Converts autoconf style CPU name to OpenJDK style, into 3612 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 3613 3614 3615 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3616 # Converts autoconf style OS name to OpenJDK style, into 3617 # VAR_OS and VAR_OS_API. 3618 3619 3620 # Expects $host_os $host_cpu $build_os and $build_cpu 3621 # and $with_target_bits to have been setup! 3622 # 3623 # Translate the standard triplet(quadruplet) definition 3624 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 3625 # OPENJDK_BUILD_OS, etc. 3626 3627 3628 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 3629 # accordingly. Must be done after setting up build and target system, but before 3630 # doing anything else with these values. 3631 3632 3633 # Setup the legacy variables, for controlling the old makefiles. 3634 # 3635 3636 3637 3638 3639 #%%% Build and target systems %%% 3640 3641 3642 3643 3644 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 3645 # Add -mX to various FLAGS variables. 3646 3647 3648 3649 3650 3651 3652 # 3653 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3654 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3655 # 3656 # This code is free software; you can redistribute it and/or modify it 3657 # under the terms of the GNU General Public License version 2 only, as 3658 # published by the Free Software Foundation. Oracle designates this 3659 # particular file as subject to the "Classpath" exception as provided 3660 # by Oracle in the LICENSE file that accompanied this code. 3661 # 3662 # This code is distributed in the hope that it will be useful, but WITHOUT 3663 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3664 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3665 # version 2 for more details (a copy is included in the LICENSE file that 3666 # accompanied this code). 3667 # 3668 # You should have received a copy of the GNU General Public License version 3669 # 2 along with this work; if not, write to the Free Software Foundation, 3670 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3671 # 3672 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3673 # or visit www.oracle.com if you need additional information or have any 3674 # questions. 3675 # 3676 3677 3678 3679 3680 3681 3682 3683 3684 # 3685 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3686 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3687 # 3688 # This code is free software; you can redistribute it and/or modify it 3689 # under the terms of the GNU General Public License version 2 only, as 3690 # published by the Free Software Foundation. Oracle designates this 3691 # particular file as subject to the "Classpath" exception as provided 3692 # by Oracle in the LICENSE file that accompanied this code. 3693 # 3694 # This code is distributed in the hope that it will be useful, but WITHOUT 3695 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3696 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3697 # version 2 for more details (a copy is included in the LICENSE file that 3698 # accompanied this code). 3699 # 3700 # You should have received a copy of the GNU General Public License version 3701 # 2 along with this work; if not, write to the Free Software Foundation, 3702 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3703 # 3704 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3705 # or visit www.oracle.com if you need additional information or have any 3706 # questions. 3707 # 3708 3709 # $1 = compiler to test (CC or CXX) 3710 # $2 = human readable name of compiler (C or C++) 3711 3712 3713 3714 3715 3716 # $1 = compiler to test (CC or CXX) 3717 # $2 = human readable name of compiler (C or C++) 3718 # $3 = list of compiler names to search for 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3733 # [RUN-IF-FALSE]) 3734 # ------------------------------------------------------------ 3735 # Check that the c and c++ compilers support an argument 3736 3737 3738 3739 3740 # Setup the JTREG paths 3741 3742 3743 # 3744 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3745 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3746 # 3747 # This code is free software; you can redistribute it and/or modify it 3748 # under the terms of the GNU General Public License version 2 only, as 3749 # published by the Free Software Foundation. Oracle designates this 3750 # particular file as subject to the "Classpath" exception as provided 3751 # by Oracle in the LICENSE file that accompanied this code. 3752 # 3753 # This code is distributed in the hope that it will be useful, but WITHOUT 3754 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3755 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3756 # version 2 for more details (a copy is included in the LICENSE file that 3757 # accompanied this code). 3758 # 3759 # You should have received a copy of the GNU General Public License version 3760 # 2 along with this work; if not, write to the Free Software Foundation, 3761 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3762 # 3763 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3764 # or visit www.oracle.com if you need additional information or have any 3765 # questions. 3766 # 3767 3768 3769 3770 3771 3772 3773 3774 # Check if the VS env variables were setup prior to running configure. 3775 # If not, then find vcvarsall.bat and run it automatically, and integrate 3776 # the set env variables into the spec file. 3777 3778 3779 3780 # Setup the DXSDK paths 3781 3782 3783 3784 3785 3786 3787 # This line needs to be here, verbatim, after all includes and the dummy hook 3788 # definitions. It is replaced with custom functionality when building 3789 # custom sources. 3790 #CUSTOM_AUTOCONF_INCLUDE 3791 3792 # Do not change or remove the following line, it is needed for consistency checks: 3793 DATE_WHEN_GENERATED=1370470729 3794 3795 ############################################################################### 3796 # 3797 # Initialization / Boot-strapping 3798 # 3799 # The bootstrapping process needs to solve the "chicken or the egg" problem, 3800 # thus it jumps back and forth, each time gaining something needed later on. 3801 # 3802 ############################################################################### 3803 3804 # Basic initialization that must happen first of all 3805 3806 # Save the original command line. This is passed to us by the wrapper configure script. 3807 3808 DATE_WHEN_CONFIGURED=`LANG=C date` 3809 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 3811 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 3813 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 3814 3815 3816 3817 # Start with tools that do not need have cross compilation support 3818 # and can be expected to be found in the default PATH. These tools are 3819 # used by configure. Nor are these tools expected to be found in the 3820 # devkit from the builddeps server either, since they are 3821 # needed to download the devkit. 3822 3823 # First are all the simple required tools. 3824 3825 for ac_prog in basename 3826 do 3827 # Extract the first word of "$ac_prog", so it can be a program name with args. 3828 set dummy $ac_prog; ac_word=$2 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3830 $as_echo_n "checking for $ac_word... " >&6; } 3831 if ${ac_cv_path_BASENAME+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833 else 3834 case $BASENAME in 3835 [\\/]* | ?:[\\/]*) 3836 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 3837 ;; 3838 *) 3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3840 for as_dir in $PATH 3841 do 3842 IFS=$as_save_IFS 3843 test -z "$as_dir" && as_dir=. 3844 for ac_exec_ext in '' $ac_executable_extensions; do 3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3846 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3848 break 2 3849 fi 3850 done 3851 done 3852 IFS=$as_save_IFS 3853 3854 ;; 3855 esac 3856 fi 3857 BASENAME=$ac_cv_path_BASENAME 3858 if test -n "$BASENAME"; then 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 3860 $as_echo "$BASENAME" >&6; } 3861 else 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3863 $as_echo "no" >&6; } 3864 fi 3865 3866 3867 test -n "$BASENAME" && break 3868 done 3869 3870 3871 if test "x$BASENAME" = x; then 3872 if test "xbasename" = x; then 3873 PROG_NAME=basename 3874 else 3875 PROG_NAME=basename 3876 fi 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 3878 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 3879 as_fn_error $? "Cannot continue" "$LINENO" 5 3880 fi 3881 3882 3883 3884 for ac_prog in bash 3885 do 3886 # Extract the first word of "$ac_prog", so it can be a program name with args. 3887 set dummy $ac_prog; ac_word=$2 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3889 $as_echo_n "checking for $ac_word... " >&6; } 3890 if ${ac_cv_path_BASH+:} false; then : 3891 $as_echo_n "(cached) " >&6 3892 else 3893 case $BASH in 3894 [\\/]* | ?:[\\/]*) 3895 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 3896 ;; 3897 *) 3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3899 for as_dir in $PATH 3900 do 3901 IFS=$as_save_IFS 3902 test -z "$as_dir" && as_dir=. 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3905 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3907 break 2 3908 fi 3909 done 3910 done 3911 IFS=$as_save_IFS 3912 3913 ;; 3914 esac 3915 fi 3916 BASH=$ac_cv_path_BASH 3917 if test -n "$BASH"; then 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 3919 $as_echo "$BASH" >&6; } 3920 else 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3922 $as_echo "no" >&6; } 3923 fi 3924 3925 3926 test -n "$BASH" && break 3927 done 3928 3929 3930 if test "x$BASH" = x; then 3931 if test "xbash" = x; then 3932 PROG_NAME=bash 3933 else 3934 PROG_NAME=bash 3935 fi 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 3937 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 3938 as_fn_error $? "Cannot continue" "$LINENO" 5 3939 fi 3940 3941 3942 3943 for ac_prog in cat 3944 do 3945 # Extract the first word of "$ac_prog", so it can be a program name with args. 3946 set dummy $ac_prog; ac_word=$2 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3948 $as_echo_n "checking for $ac_word... " >&6; } 3949 if ${ac_cv_path_CAT+:} false; then : 3950 $as_echo_n "(cached) " >&6 3951 else 3952 case $CAT in 3953 [\\/]* | ?:[\\/]*) 3954 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 3955 ;; 3956 *) 3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958 for as_dir in $PATH 3959 do 3960 IFS=$as_save_IFS 3961 test -z "$as_dir" && as_dir=. 3962 for ac_exec_ext in '' $ac_executable_extensions; do 3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3964 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3966 break 2 3967 fi 3968 done 3969 done 3970 IFS=$as_save_IFS 3971 3972 ;; 3973 esac 3974 fi 3975 CAT=$ac_cv_path_CAT 3976 if test -n "$CAT"; then 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 3978 $as_echo "$CAT" >&6; } 3979 else 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3981 $as_echo "no" >&6; } 3982 fi 3983 3984 3985 test -n "$CAT" && break 3986 done 3987 3988 3989 if test "x$CAT" = x; then 3990 if test "xcat" = x; then 3991 PROG_NAME=cat 3992 else 3993 PROG_NAME=cat 3994 fi 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 3996 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 3997 as_fn_error $? "Cannot continue" "$LINENO" 5 3998 fi 3999 4000 4001 4002 for ac_prog in chmod 4003 do 4004 # Extract the first word of "$ac_prog", so it can be a program name with args. 4005 set dummy $ac_prog; ac_word=$2 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4007 $as_echo_n "checking for $ac_word... " >&6; } 4008 if ${ac_cv_path_CHMOD+:} false; then : 4009 $as_echo_n "(cached) " >&6 4010 else 4011 case $CHMOD in 4012 [\\/]* | ?:[\\/]*) 4013 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4014 ;; 4015 *) 4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017 for as_dir in $PATH 4018 do 4019 IFS=$as_save_IFS 4020 test -z "$as_dir" && as_dir=. 4021 for ac_exec_ext in '' $ac_executable_extensions; do 4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4023 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4025 break 2 4026 fi 4027 done 4028 done 4029 IFS=$as_save_IFS 4030 4031 ;; 4032 esac 4033 fi 4034 CHMOD=$ac_cv_path_CHMOD 4035 if test -n "$CHMOD"; then 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4037 $as_echo "$CHMOD" >&6; } 4038 else 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4040 $as_echo "no" >&6; } 4041 fi 4042 4043 4044 test -n "$CHMOD" && break 4045 done 4046 4047 4048 if test "x$CHMOD" = x; then 4049 if test "xchmod" = x; then 4050 PROG_NAME=chmod 4051 else 4052 PROG_NAME=chmod 4053 fi 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4055 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4056 as_fn_error $? "Cannot continue" "$LINENO" 5 4057 fi 4058 4059 4060 4061 for ac_prog in cmp 4062 do 4063 # Extract the first word of "$ac_prog", so it can be a program name with args. 4064 set dummy $ac_prog; ac_word=$2 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4066 $as_echo_n "checking for $ac_word... " >&6; } 4067 if ${ac_cv_path_CMP+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069 else 4070 case $CMP in 4071 [\\/]* | ?:[\\/]*) 4072 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 4073 ;; 4074 *) 4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076 for as_dir in $PATH 4077 do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4082 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086 done 4087 done 4088 IFS=$as_save_IFS 4089 4090 ;; 4091 esac 4092 fi 4093 CMP=$ac_cv_path_CMP 4094 if test -n "$CMP"; then 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 4096 $as_echo "$CMP" >&6; } 4097 else 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099 $as_echo "no" >&6; } 4100 fi 4101 4102 4103 test -n "$CMP" && break 4104 done 4105 4106 4107 if test "x$CMP" = x; then 4108 if test "xcmp" = x; then 4109 PROG_NAME=cmp 4110 else 4111 PROG_NAME=cmp 4112 fi 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4114 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4115 as_fn_error $? "Cannot continue" "$LINENO" 5 4116 fi 4117 4118 4119 4120 for ac_prog in comm 4121 do 4122 # Extract the first word of "$ac_prog", so it can be a program name with args. 4123 set dummy $ac_prog; ac_word=$2 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4125 $as_echo_n "checking for $ac_word... " >&6; } 4126 if ${ac_cv_path_COMM+:} false; then : 4127 $as_echo_n "(cached) " >&6 4128 else 4129 case $COMM in 4130 [\\/]* | ?:[\\/]*) 4131 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 4132 ;; 4133 *) 4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4135 for as_dir in $PATH 4136 do 4137 IFS=$as_save_IFS 4138 test -z "$as_dir" && as_dir=. 4139 for ac_exec_ext in '' $ac_executable_extensions; do 4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4141 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4143 break 2 4144 fi 4145 done 4146 done 4147 IFS=$as_save_IFS 4148 4149 ;; 4150 esac 4151 fi 4152 COMM=$ac_cv_path_COMM 4153 if test -n "$COMM"; then 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 4155 $as_echo "$COMM" >&6; } 4156 else 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4158 $as_echo "no" >&6; } 4159 fi 4160 4161 4162 test -n "$COMM" && break 4163 done 4164 4165 4166 if test "x$COMM" = x; then 4167 if test "xcomm" = x; then 4168 PROG_NAME=comm 4169 else 4170 PROG_NAME=comm 4171 fi 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4173 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4174 as_fn_error $? "Cannot continue" "$LINENO" 5 4175 fi 4176 4177 4178 4179 for ac_prog in cp 4180 do 4181 # Extract the first word of "$ac_prog", so it can be a program name with args. 4182 set dummy $ac_prog; ac_word=$2 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4184 $as_echo_n "checking for $ac_word... " >&6; } 4185 if ${ac_cv_path_CP+:} false; then : 4186 $as_echo_n "(cached) " >&6 4187 else 4188 case $CP in 4189 [\\/]* | ?:[\\/]*) 4190 ac_cv_path_CP="$CP" # Let the user override the test with a path. 4191 ;; 4192 *) 4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4194 for as_dir in $PATH 4195 do 4196 IFS=$as_save_IFS 4197 test -z "$as_dir" && as_dir=. 4198 for ac_exec_ext in '' $ac_executable_extensions; do 4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4200 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4202 break 2 4203 fi 4204 done 4205 done 4206 IFS=$as_save_IFS 4207 4208 ;; 4209 esac 4210 fi 4211 CP=$ac_cv_path_CP 4212 if test -n "$CP"; then 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 4214 $as_echo "$CP" >&6; } 4215 else 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217 $as_echo "no" >&6; } 4218 fi 4219 4220 4221 test -n "$CP" && break 4222 done 4223 4224 4225 if test "x$CP" = x; then 4226 if test "xcp" = x; then 4227 PROG_NAME=cp 4228 else 4229 PROG_NAME=cp 4230 fi 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4232 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4233 as_fn_error $? "Cannot continue" "$LINENO" 5 4234 fi 4235 4236 4237 4238 for ac_prog in cpio 4239 do 4240 # Extract the first word of "$ac_prog", so it can be a program name with args. 4241 set dummy $ac_prog; ac_word=$2 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4243 $as_echo_n "checking for $ac_word... " >&6; } 4244 if ${ac_cv_path_CPIO+:} false; then : 4245 $as_echo_n "(cached) " >&6 4246 else 4247 case $CPIO in 4248 [\\/]* | ?:[\\/]*) 4249 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 4250 ;; 4251 *) 4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4253 for as_dir in $PATH 4254 do 4255 IFS=$as_save_IFS 4256 test -z "$as_dir" && as_dir=. 4257 for ac_exec_ext in '' $ac_executable_extensions; do 4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4259 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4261 break 2 4262 fi 4263 done 4264 done 4265 IFS=$as_save_IFS 4266 4267 ;; 4268 esac 4269 fi 4270 CPIO=$ac_cv_path_CPIO 4271 if test -n "$CPIO"; then 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 4273 $as_echo "$CPIO" >&6; } 4274 else 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4276 $as_echo "no" >&6; } 4277 fi 4278 4279 4280 test -n "$CPIO" && break 4281 done 4282 4283 4284 if test "x$CPIO" = x; then 4285 if test "xcpio" = x; then 4286 PROG_NAME=cpio 4287 else 4288 PROG_NAME=cpio 4289 fi 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4291 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4292 as_fn_error $? "Cannot continue" "$LINENO" 5 4293 fi 4294 4295 4296 4297 for ac_prog in cut 4298 do 4299 # Extract the first word of "$ac_prog", so it can be a program name with args. 4300 set dummy $ac_prog; ac_word=$2 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4302 $as_echo_n "checking for $ac_word... " >&6; } 4303 if ${ac_cv_path_CUT+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305 else 4306 case $CUT in 4307 [\\/]* | ?:[\\/]*) 4308 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 4309 ;; 4310 *) 4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4312 for as_dir in $PATH 4313 do 4314 IFS=$as_save_IFS 4315 test -z "$as_dir" && as_dir=. 4316 for ac_exec_ext in '' $ac_executable_extensions; do 4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4318 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4320 break 2 4321 fi 4322 done 4323 done 4324 IFS=$as_save_IFS 4325 4326 ;; 4327 esac 4328 fi 4329 CUT=$ac_cv_path_CUT 4330 if test -n "$CUT"; then 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 4332 $as_echo "$CUT" >&6; } 4333 else 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4335 $as_echo "no" >&6; } 4336 fi 4337 4338 4339 test -n "$CUT" && break 4340 done 4341 4342 4343 if test "x$CUT" = x; then 4344 if test "xcut" = x; then 4345 PROG_NAME=cut 4346 else 4347 PROG_NAME=cut 4348 fi 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4350 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4351 as_fn_error $? "Cannot continue" "$LINENO" 5 4352 fi 4353 4354 4355 4356 for ac_prog in date 4357 do 4358 # Extract the first word of "$ac_prog", so it can be a program name with args. 4359 set dummy $ac_prog; ac_word=$2 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4361 $as_echo_n "checking for $ac_word... " >&6; } 4362 if ${ac_cv_path_DATE+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364 else 4365 case $DATE in 4366 [\\/]* | ?:[\\/]*) 4367 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 4368 ;; 4369 *) 4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4371 for as_dir in $PATH 4372 do 4373 IFS=$as_save_IFS 4374 test -z "$as_dir" && as_dir=. 4375 for ac_exec_ext in '' $ac_executable_extensions; do 4376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4377 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4379 break 2 4380 fi 4381 done 4382 done 4383 IFS=$as_save_IFS 4384 4385 ;; 4386 esac 4387 fi 4388 DATE=$ac_cv_path_DATE 4389 if test -n "$DATE"; then 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 4391 $as_echo "$DATE" >&6; } 4392 else 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4394 $as_echo "no" >&6; } 4395 fi 4396 4397 4398 test -n "$DATE" && break 4399 done 4400 4401 4402 if test "x$DATE" = x; then 4403 if test "xdate" = x; then 4404 PROG_NAME=date 4405 else 4406 PROG_NAME=date 4407 fi 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4409 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4410 as_fn_error $? "Cannot continue" "$LINENO" 5 4411 fi 4412 4413 4414 4415 for ac_prog in gdiff diff 4416 do 4417 # Extract the first word of "$ac_prog", so it can be a program name with args. 4418 set dummy $ac_prog; ac_word=$2 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4420 $as_echo_n "checking for $ac_word... " >&6; } 4421 if ${ac_cv_path_DIFF+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423 else 4424 case $DIFF in 4425 [\\/]* | ?:[\\/]*) 4426 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 4427 ;; 4428 *) 4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4430 for as_dir in $PATH 4431 do 4432 IFS=$as_save_IFS 4433 test -z "$as_dir" && as_dir=. 4434 for ac_exec_ext in '' $ac_executable_extensions; do 4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4436 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4438 break 2 4439 fi 4440 done 4441 done 4442 IFS=$as_save_IFS 4443 4444 ;; 4445 esac 4446 fi 4447 DIFF=$ac_cv_path_DIFF 4448 if test -n "$DIFF"; then 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 4450 $as_echo "$DIFF" >&6; } 4451 else 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4453 $as_echo "no" >&6; } 4454 fi 4455 4456 4457 test -n "$DIFF" && break 4458 done 4459 4460 4461 if test "x$DIFF" = x; then 4462 if test "xgdiff diff" = x; then 4463 PROG_NAME=diff 4464 else 4465 PROG_NAME=gdiff diff 4466 fi 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4468 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4469 as_fn_error $? "Cannot continue" "$LINENO" 5 4470 fi 4471 4472 4473 4474 for ac_prog in dirname 4475 do 4476 # Extract the first word of "$ac_prog", so it can be a program name with args. 4477 set dummy $ac_prog; ac_word=$2 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4479 $as_echo_n "checking for $ac_word... " >&6; } 4480 if ${ac_cv_path_DIRNAME+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482 else 4483 case $DIRNAME in 4484 [\\/]* | ?:[\\/]*) 4485 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 4486 ;; 4487 *) 4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489 for as_dir in $PATH 4490 do 4491 IFS=$as_save_IFS 4492 test -z "$as_dir" && as_dir=. 4493 for ac_exec_ext in '' $ac_executable_extensions; do 4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4495 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4497 break 2 4498 fi 4499 done 4500 done 4501 IFS=$as_save_IFS 4502 4503 ;; 4504 esac 4505 fi 4506 DIRNAME=$ac_cv_path_DIRNAME 4507 if test -n "$DIRNAME"; then 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 4509 $as_echo "$DIRNAME" >&6; } 4510 else 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4512 $as_echo "no" >&6; } 4513 fi 4514 4515 4516 test -n "$DIRNAME" && break 4517 done 4518 4519 4520 if test "x$DIRNAME" = x; then 4521 if test "xdirname" = x; then 4522 PROG_NAME=dirname 4523 else 4524 PROG_NAME=dirname 4525 fi 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4527 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4528 as_fn_error $? "Cannot continue" "$LINENO" 5 4529 fi 4530 4531 4532 4533 for ac_prog in echo 4534 do 4535 # Extract the first word of "$ac_prog", so it can be a program name with args. 4536 set dummy $ac_prog; ac_word=$2 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4538 $as_echo_n "checking for $ac_word... " >&6; } 4539 if ${ac_cv_path_ECHO+:} false; then : 4540 $as_echo_n "(cached) " >&6 4541 else 4542 case $ECHO in 4543 [\\/]* | ?:[\\/]*) 4544 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 4545 ;; 4546 *) 4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4548 for as_dir in $PATH 4549 do 4550 IFS=$as_save_IFS 4551 test -z "$as_dir" && as_dir=. 4552 for ac_exec_ext in '' $ac_executable_extensions; do 4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4554 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4556 break 2 4557 fi 4558 done 4559 done 4560 IFS=$as_save_IFS 4561 4562 ;; 4563 esac 4564 fi 4565 ECHO=$ac_cv_path_ECHO 4566 if test -n "$ECHO"; then 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 4568 $as_echo "$ECHO" >&6; } 4569 else 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4571 $as_echo "no" >&6; } 4572 fi 4573 4574 4575 test -n "$ECHO" && break 4576 done 4577 4578 4579 if test "x$ECHO" = x; then 4580 if test "xecho" = x; then 4581 PROG_NAME=echo 4582 else 4583 PROG_NAME=echo 4584 fi 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4586 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4587 as_fn_error $? "Cannot continue" "$LINENO" 5 4588 fi 4589 4590 4591 4592 for ac_prog in expr 4593 do 4594 # Extract the first word of "$ac_prog", so it can be a program name with args. 4595 set dummy $ac_prog; ac_word=$2 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4597 $as_echo_n "checking for $ac_word... " >&6; } 4598 if ${ac_cv_path_EXPR+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600 else 4601 case $EXPR in 4602 [\\/]* | ?:[\\/]*) 4603 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 4604 ;; 4605 *) 4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4607 for as_dir in $PATH 4608 do 4609 IFS=$as_save_IFS 4610 test -z "$as_dir" && as_dir=. 4611 for ac_exec_ext in '' $ac_executable_extensions; do 4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4613 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4615 break 2 4616 fi 4617 done 4618 done 4619 IFS=$as_save_IFS 4620 4621 ;; 4622 esac 4623 fi 4624 EXPR=$ac_cv_path_EXPR 4625 if test -n "$EXPR"; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 4627 $as_echo "$EXPR" >&6; } 4628 else 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4630 $as_echo "no" >&6; } 4631 fi 4632 4633 4634 test -n "$EXPR" && break 4635 done 4636 4637 4638 if test "x$EXPR" = x; then 4639 if test "xexpr" = x; then 4640 PROG_NAME=expr 4641 else 4642 PROG_NAME=expr 4643 fi 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4645 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4646 as_fn_error $? "Cannot continue" "$LINENO" 5 4647 fi 4648 4649 4650 4651 for ac_prog in file 4652 do 4653 # Extract the first word of "$ac_prog", so it can be a program name with args. 4654 set dummy $ac_prog; ac_word=$2 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4656 $as_echo_n "checking for $ac_word... " >&6; } 4657 if ${ac_cv_path_FILE+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659 else 4660 case $FILE in 4661 [\\/]* | ?:[\\/]*) 4662 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 4663 ;; 4664 *) 4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666 for as_dir in $PATH 4667 do 4668 IFS=$as_save_IFS 4669 test -z "$as_dir" && as_dir=. 4670 for ac_exec_ext in '' $ac_executable_extensions; do 4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4672 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4674 break 2 4675 fi 4676 done 4677 done 4678 IFS=$as_save_IFS 4679 4680 ;; 4681 esac 4682 fi 4683 FILE=$ac_cv_path_FILE 4684 if test -n "$FILE"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 4686 $as_echo "$FILE" >&6; } 4687 else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689 $as_echo "no" >&6; } 4690 fi 4691 4692 4693 test -n "$FILE" && break 4694 done 4695 4696 4697 if test "x$FILE" = x; then 4698 if test "xfile" = x; then 4699 PROG_NAME=file 4700 else 4701 PROG_NAME=file 4702 fi 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4704 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4705 as_fn_error $? "Cannot continue" "$LINENO" 5 4706 fi 4707 4708 4709 4710 for ac_prog in find 4711 do 4712 # Extract the first word of "$ac_prog", so it can be a program name with args. 4713 set dummy $ac_prog; ac_word=$2 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4715 $as_echo_n "checking for $ac_word... " >&6; } 4716 if ${ac_cv_path_FIND+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718 else 4719 case $FIND in 4720 [\\/]* | ?:[\\/]*) 4721 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 4722 ;; 4723 *) 4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4725 for as_dir in $PATH 4726 do 4727 IFS=$as_save_IFS 4728 test -z "$as_dir" && as_dir=. 4729 for ac_exec_ext in '' $ac_executable_extensions; do 4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4731 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4733 break 2 4734 fi 4735 done 4736 done 4737 IFS=$as_save_IFS 4738 4739 ;; 4740 esac 4741 fi 4742 FIND=$ac_cv_path_FIND 4743 if test -n "$FIND"; then 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 4745 $as_echo "$FIND" >&6; } 4746 else 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4748 $as_echo "no" >&6; } 4749 fi 4750 4751 4752 test -n "$FIND" && break 4753 done 4754 4755 4756 if test "x$FIND" = x; then 4757 if test "xfind" = x; then 4758 PROG_NAME=find 4759 else 4760 PROG_NAME=find 4761 fi 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4763 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4764 as_fn_error $? "Cannot continue" "$LINENO" 5 4765 fi 4766 4767 4768 4769 for ac_prog in head 4770 do 4771 # Extract the first word of "$ac_prog", so it can be a program name with args. 4772 set dummy $ac_prog; ac_word=$2 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4774 $as_echo_n "checking for $ac_word... " >&6; } 4775 if ${ac_cv_path_HEAD+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777 else 4778 case $HEAD in 4779 [\\/]* | ?:[\\/]*) 4780 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 4781 ;; 4782 *) 4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4784 for as_dir in $PATH 4785 do 4786 IFS=$as_save_IFS 4787 test -z "$as_dir" && as_dir=. 4788 for ac_exec_ext in '' $ac_executable_extensions; do 4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4790 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4792 break 2 4793 fi 4794 done 4795 done 4796 IFS=$as_save_IFS 4797 4798 ;; 4799 esac 4800 fi 4801 HEAD=$ac_cv_path_HEAD 4802 if test -n "$HEAD"; then 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 4804 $as_echo "$HEAD" >&6; } 4805 else 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4807 $as_echo "no" >&6; } 4808 fi 4809 4810 4811 test -n "$HEAD" && break 4812 done 4813 4814 4815 if test "x$HEAD" = x; then 4816 if test "xhead" = x; then 4817 PROG_NAME=head 4818 else 4819 PROG_NAME=head 4820 fi 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4822 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4823 as_fn_error $? "Cannot continue" "$LINENO" 5 4824 fi 4825 4826 4827 4828 for ac_prog in ln 4829 do 4830 # Extract the first word of "$ac_prog", so it can be a program name with args. 4831 set dummy $ac_prog; ac_word=$2 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4833 $as_echo_n "checking for $ac_word... " >&6; } 4834 if ${ac_cv_path_LN+:} false; then : 4835 $as_echo_n "(cached) " >&6 4836 else 4837 case $LN in 4838 [\\/]* | ?:[\\/]*) 4839 ac_cv_path_LN="$LN" # Let the user override the test with a path. 4840 ;; 4841 *) 4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4843 for as_dir in $PATH 4844 do 4845 IFS=$as_save_IFS 4846 test -z "$as_dir" && as_dir=. 4847 for ac_exec_ext in '' $ac_executable_extensions; do 4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4849 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4851 break 2 4852 fi 4853 done 4854 done 4855 IFS=$as_save_IFS 4856 4857 ;; 4858 esac 4859 fi 4860 LN=$ac_cv_path_LN 4861 if test -n "$LN"; then 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 4863 $as_echo "$LN" >&6; } 4864 else 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4866 $as_echo "no" >&6; } 4867 fi 4868 4869 4870 test -n "$LN" && break 4871 done 4872 4873 4874 if test "x$LN" = x; then 4875 if test "xln" = x; then 4876 PROG_NAME=ln 4877 else 4878 PROG_NAME=ln 4879 fi 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4881 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4882 as_fn_error $? "Cannot continue" "$LINENO" 5 4883 fi 4884 4885 4886 4887 for ac_prog in ls 4888 do 4889 # Extract the first word of "$ac_prog", so it can be a program name with args. 4890 set dummy $ac_prog; ac_word=$2 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4892 $as_echo_n "checking for $ac_word... " >&6; } 4893 if ${ac_cv_path_LS+:} false; then : 4894 $as_echo_n "(cached) " >&6 4895 else 4896 case $LS in 4897 [\\/]* | ?:[\\/]*) 4898 ac_cv_path_LS="$LS" # Let the user override the test with a path. 4899 ;; 4900 *) 4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4902 for as_dir in $PATH 4903 do 4904 IFS=$as_save_IFS 4905 test -z "$as_dir" && as_dir=. 4906 for ac_exec_ext in '' $ac_executable_extensions; do 4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4908 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4910 break 2 4911 fi 4912 done 4913 done 4914 IFS=$as_save_IFS 4915 4916 ;; 4917 esac 4918 fi 4919 LS=$ac_cv_path_LS 4920 if test -n "$LS"; then 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 4922 $as_echo "$LS" >&6; } 4923 else 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4925 $as_echo "no" >&6; } 4926 fi 4927 4928 4929 test -n "$LS" && break 4930 done 4931 4932 4933 if test "x$LS" = x; then 4934 if test "xls" = x; then 4935 PROG_NAME=ls 4936 else 4937 PROG_NAME=ls 4938 fi 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4940 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 4941 as_fn_error $? "Cannot continue" "$LINENO" 5 4942 fi 4943 4944 4945 4946 for ac_prog in mkdir 4947 do 4948 # Extract the first word of "$ac_prog", so it can be a program name with args. 4949 set dummy $ac_prog; ac_word=$2 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4951 $as_echo_n "checking for $ac_word... " >&6; } 4952 if ${ac_cv_path_MKDIR+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954 else 4955 case $MKDIR in 4956 [\\/]* | ?:[\\/]*) 4957 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 4958 ;; 4959 *) 4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4961 for as_dir in $PATH 4962 do 4963 IFS=$as_save_IFS 4964 test -z "$as_dir" && as_dir=. 4965 for ac_exec_ext in '' $ac_executable_extensions; do 4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4967 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4969 break 2 4970 fi 4971 done 4972 done 4973 IFS=$as_save_IFS 4974 4975 ;; 4976 esac 4977 fi 4978 MKDIR=$ac_cv_path_MKDIR 4979 if test -n "$MKDIR"; then 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 4981 $as_echo "$MKDIR" >&6; } 4982 else 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4984 $as_echo "no" >&6; } 4985 fi 4986 4987 4988 test -n "$MKDIR" && break 4989 done 4990 4991 4992 if test "x$MKDIR" = x; then 4993 if test "xmkdir" = x; then 4994 PROG_NAME=mkdir 4995 else 4996 PROG_NAME=mkdir 4997 fi 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 4999 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5000 as_fn_error $? "Cannot continue" "$LINENO" 5 5001 fi 5002 5003 5004 5005 for ac_prog in mktemp 5006 do 5007 # Extract the first word of "$ac_prog", so it can be a program name with args. 5008 set dummy $ac_prog; ac_word=$2 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5010 $as_echo_n "checking for $ac_word... " >&6; } 5011 if ${ac_cv_path_MKTEMP+:} false; then : 5012 $as_echo_n "(cached) " >&6 5013 else 5014 case $MKTEMP in 5015 [\\/]* | ?:[\\/]*) 5016 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 5017 ;; 5018 *) 5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5020 for as_dir in $PATH 5021 do 5022 IFS=$as_save_IFS 5023 test -z "$as_dir" && as_dir=. 5024 for ac_exec_ext in '' $ac_executable_extensions; do 5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5026 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5028 break 2 5029 fi 5030 done 5031 done 5032 IFS=$as_save_IFS 5033 5034 ;; 5035 esac 5036 fi 5037 MKTEMP=$ac_cv_path_MKTEMP 5038 if test -n "$MKTEMP"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 5040 $as_echo "$MKTEMP" >&6; } 5041 else 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5043 $as_echo "no" >&6; } 5044 fi 5045 5046 5047 test -n "$MKTEMP" && break 5048 done 5049 5050 5051 if test "x$MKTEMP" = x; then 5052 if test "xmktemp" = x; then 5053 PROG_NAME=mktemp 5054 else 5055 PROG_NAME=mktemp 5056 fi 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5058 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5059 as_fn_error $? "Cannot continue" "$LINENO" 5 5060 fi 5061 5062 5063 5064 for ac_prog in mv 5065 do 5066 # Extract the first word of "$ac_prog", so it can be a program name with args. 5067 set dummy $ac_prog; ac_word=$2 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5069 $as_echo_n "checking for $ac_word... " >&6; } 5070 if ${ac_cv_path_MV+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072 else 5073 case $MV in 5074 [\\/]* | ?:[\\/]*) 5075 ac_cv_path_MV="$MV" # Let the user override the test with a path. 5076 ;; 5077 *) 5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079 for as_dir in $PATH 5080 do 5081 IFS=$as_save_IFS 5082 test -z "$as_dir" && as_dir=. 5083 for ac_exec_ext in '' $ac_executable_extensions; do 5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5085 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5087 break 2 5088 fi 5089 done 5090 done 5091 IFS=$as_save_IFS 5092 5093 ;; 5094 esac 5095 fi 5096 MV=$ac_cv_path_MV 5097 if test -n "$MV"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 5099 $as_echo "$MV" >&6; } 5100 else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102 $as_echo "no" >&6; } 5103 fi 5104 5105 5106 test -n "$MV" && break 5107 done 5108 5109 5110 if test "x$MV" = x; then 5111 if test "xmv" = x; then 5112 PROG_NAME=mv 5113 else 5114 PROG_NAME=mv 5115 fi 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5117 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5118 as_fn_error $? "Cannot continue" "$LINENO" 5 5119 fi 5120 5121 5122 5123 for ac_prog in printf 5124 do 5125 # Extract the first word of "$ac_prog", so it can be a program name with args. 5126 set dummy $ac_prog; ac_word=$2 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5128 $as_echo_n "checking for $ac_word... " >&6; } 5129 if ${ac_cv_path_PRINTF+:} false; then : 5130 $as_echo_n "(cached) " >&6 5131 else 5132 case $PRINTF in 5133 [\\/]* | ?:[\\/]*) 5134 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 5135 ;; 5136 *) 5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5138 for as_dir in $PATH 5139 do 5140 IFS=$as_save_IFS 5141 test -z "$as_dir" && as_dir=. 5142 for ac_exec_ext in '' $ac_executable_extensions; do 5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5144 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5146 break 2 5147 fi 5148 done 5149 done 5150 IFS=$as_save_IFS 5151 5152 ;; 5153 esac 5154 fi 5155 PRINTF=$ac_cv_path_PRINTF 5156 if test -n "$PRINTF"; then 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 5158 $as_echo "$PRINTF" >&6; } 5159 else 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5161 $as_echo "no" >&6; } 5162 fi 5163 5164 5165 test -n "$PRINTF" && break 5166 done 5167 5168 5169 if test "x$PRINTF" = x; then 5170 if test "xprintf" = x; then 5171 PROG_NAME=printf 5172 else 5173 PROG_NAME=printf 5174 fi 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5176 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5177 as_fn_error $? "Cannot continue" "$LINENO" 5 5178 fi 5179 5180 5181 5182 for ac_prog in rm 5183 do 5184 # Extract the first word of "$ac_prog", so it can be a program name with args. 5185 set dummy $ac_prog; ac_word=$2 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5187 $as_echo_n "checking for $ac_word... " >&6; } 5188 if ${ac_cv_path_RM+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190 else 5191 case $RM in 5192 [\\/]* | ?:[\\/]*) 5193 ac_cv_path_RM="$RM" # Let the user override the test with a path. 5194 ;; 5195 *) 5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197 for as_dir in $PATH 5198 do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5203 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207 done 5208 done 5209 IFS=$as_save_IFS 5210 5211 ;; 5212 esac 5213 fi 5214 RM=$ac_cv_path_RM 5215 if test -n "$RM"; then 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 5217 $as_echo "$RM" >&6; } 5218 else 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5220 $as_echo "no" >&6; } 5221 fi 5222 5223 5224 test -n "$RM" && break 5225 done 5226 5227 5228 if test "x$RM" = x; then 5229 if test "xrm" = x; then 5230 PROG_NAME=rm 5231 else 5232 PROG_NAME=rm 5233 fi 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5235 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5236 as_fn_error $? "Cannot continue" "$LINENO" 5 5237 fi 5238 5239 5240 5241 for ac_prog in sh 5242 do 5243 # Extract the first word of "$ac_prog", so it can be a program name with args. 5244 set dummy $ac_prog; ac_word=$2 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5246 $as_echo_n "checking for $ac_word... " >&6; } 5247 if ${ac_cv_path_SH+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249 else 5250 case $SH in 5251 [\\/]* | ?:[\\/]*) 5252 ac_cv_path_SH="$SH" # Let the user override the test with a path. 5253 ;; 5254 *) 5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5256 for as_dir in $PATH 5257 do 5258 IFS=$as_save_IFS 5259 test -z "$as_dir" && as_dir=. 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5262 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266 done 5267 done 5268 IFS=$as_save_IFS 5269 5270 ;; 5271 esac 5272 fi 5273 SH=$ac_cv_path_SH 5274 if test -n "$SH"; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 5276 $as_echo "$SH" >&6; } 5277 else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5279 $as_echo "no" >&6; } 5280 fi 5281 5282 5283 test -n "$SH" && break 5284 done 5285 5286 5287 if test "x$SH" = x; then 5288 if test "xsh" = x; then 5289 PROG_NAME=sh 5290 else 5291 PROG_NAME=sh 5292 fi 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5294 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5295 as_fn_error $? "Cannot continue" "$LINENO" 5 5296 fi 5297 5298 5299 5300 for ac_prog in sort 5301 do 5302 # Extract the first word of "$ac_prog", so it can be a program name with args. 5303 set dummy $ac_prog; ac_word=$2 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305 $as_echo_n "checking for $ac_word... " >&6; } 5306 if ${ac_cv_path_SORT+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308 else 5309 case $SORT in 5310 [\\/]* | ?:[\\/]*) 5311 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 5312 ;; 5313 *) 5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5315 for as_dir in $PATH 5316 do 5317 IFS=$as_save_IFS 5318 test -z "$as_dir" && as_dir=. 5319 for ac_exec_ext in '' $ac_executable_extensions; do 5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5321 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5323 break 2 5324 fi 5325 done 5326 done 5327 IFS=$as_save_IFS 5328 5329 ;; 5330 esac 5331 fi 5332 SORT=$ac_cv_path_SORT 5333 if test -n "$SORT"; then 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 5335 $as_echo "$SORT" >&6; } 5336 else 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5338 $as_echo "no" >&6; } 5339 fi 5340 5341 5342 test -n "$SORT" && break 5343 done 5344 5345 5346 if test "x$SORT" = x; then 5347 if test "xsort" = x; then 5348 PROG_NAME=sort 5349 else 5350 PROG_NAME=sort 5351 fi 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5353 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5354 as_fn_error $? "Cannot continue" "$LINENO" 5 5355 fi 5356 5357 5358 5359 for ac_prog in tail 5360 do 5361 # Extract the first word of "$ac_prog", so it can be a program name with args. 5362 set dummy $ac_prog; ac_word=$2 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364 $as_echo_n "checking for $ac_word... " >&6; } 5365 if ${ac_cv_path_TAIL+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 case $TAIL in 5369 [\\/]* | ?:[\\/]*) 5370 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 5371 ;; 5372 *) 5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5374 for as_dir in $PATH 5375 do 5376 IFS=$as_save_IFS 5377 test -z "$as_dir" && as_dir=. 5378 for ac_exec_ext in '' $ac_executable_extensions; do 5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5380 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5382 break 2 5383 fi 5384 done 5385 done 5386 IFS=$as_save_IFS 5387 5388 ;; 5389 esac 5390 fi 5391 TAIL=$ac_cv_path_TAIL 5392 if test -n "$TAIL"; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 5394 $as_echo "$TAIL" >&6; } 5395 else 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397 $as_echo "no" >&6; } 5398 fi 5399 5400 5401 test -n "$TAIL" && break 5402 done 5403 5404 5405 if test "x$TAIL" = x; then 5406 if test "xtail" = x; then 5407 PROG_NAME=tail 5408 else 5409 PROG_NAME=tail 5410 fi 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5412 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5413 as_fn_error $? "Cannot continue" "$LINENO" 5 5414 fi 5415 5416 5417 5418 for ac_prog in tar 5419 do 5420 # Extract the first word of "$ac_prog", so it can be a program name with args. 5421 set dummy $ac_prog; ac_word=$2 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5423 $as_echo_n "checking for $ac_word... " >&6; } 5424 if ${ac_cv_path_TAR+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426 else 5427 case $TAR in 5428 [\\/]* | ?:[\\/]*) 5429 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 5430 ;; 5431 *) 5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5433 for as_dir in $PATH 5434 do 5435 IFS=$as_save_IFS 5436 test -z "$as_dir" && as_dir=. 5437 for ac_exec_ext in '' $ac_executable_extensions; do 5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5439 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5441 break 2 5442 fi 5443 done 5444 done 5445 IFS=$as_save_IFS 5446 5447 ;; 5448 esac 5449 fi 5450 TAR=$ac_cv_path_TAR 5451 if test -n "$TAR"; then 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 5453 $as_echo "$TAR" >&6; } 5454 else 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5456 $as_echo "no" >&6; } 5457 fi 5458 5459 5460 test -n "$TAR" && break 5461 done 5462 5463 5464 if test "x$TAR" = x; then 5465 if test "xtar" = x; then 5466 PROG_NAME=tar 5467 else 5468 PROG_NAME=tar 5469 fi 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5471 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5472 as_fn_error $? "Cannot continue" "$LINENO" 5 5473 fi 5474 5475 5476 5477 for ac_prog in tee 5478 do 5479 # Extract the first word of "$ac_prog", so it can be a program name with args. 5480 set dummy $ac_prog; ac_word=$2 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5482 $as_echo_n "checking for $ac_word... " >&6; } 5483 if ${ac_cv_path_TEE+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485 else 5486 case $TEE in 5487 [\\/]* | ?:[\\/]*) 5488 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 5489 ;; 5490 *) 5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492 for as_dir in $PATH 5493 do 5494 IFS=$as_save_IFS 5495 test -z "$as_dir" && as_dir=. 5496 for ac_exec_ext in '' $ac_executable_extensions; do 5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5498 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5500 break 2 5501 fi 5502 done 5503 done 5504 IFS=$as_save_IFS 5505 5506 ;; 5507 esac 5508 fi 5509 TEE=$ac_cv_path_TEE 5510 if test -n "$TEE"; then 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 5512 $as_echo "$TEE" >&6; } 5513 else 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5515 $as_echo "no" >&6; } 5516 fi 5517 5518 5519 test -n "$TEE" && break 5520 done 5521 5522 5523 if test "x$TEE" = x; then 5524 if test "xtee" = x; then 5525 PROG_NAME=tee 5526 else 5527 PROG_NAME=tee 5528 fi 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5530 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5531 as_fn_error $? "Cannot continue" "$LINENO" 5 5532 fi 5533 5534 5535 5536 for ac_prog in touch 5537 do 5538 # Extract the first word of "$ac_prog", so it can be a program name with args. 5539 set dummy $ac_prog; ac_word=$2 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541 $as_echo_n "checking for $ac_word... " >&6; } 5542 if ${ac_cv_path_TOUCH+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544 else 5545 case $TOUCH in 5546 [\\/]* | ?:[\\/]*) 5547 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 5548 ;; 5549 *) 5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551 for as_dir in $PATH 5552 do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5557 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561 done 5562 done 5563 IFS=$as_save_IFS 5564 5565 ;; 5566 esac 5567 fi 5568 TOUCH=$ac_cv_path_TOUCH 5569 if test -n "$TOUCH"; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 5571 $as_echo "$TOUCH" >&6; } 5572 else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574 $as_echo "no" >&6; } 5575 fi 5576 5577 5578 test -n "$TOUCH" && break 5579 done 5580 5581 5582 if test "x$TOUCH" = x; then 5583 if test "xtouch" = x; then 5584 PROG_NAME=touch 5585 else 5586 PROG_NAME=touch 5587 fi 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5589 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5590 as_fn_error $? "Cannot continue" "$LINENO" 5 5591 fi 5592 5593 5594 5595 for ac_prog in tr 5596 do 5597 # Extract the first word of "$ac_prog", so it can be a program name with args. 5598 set dummy $ac_prog; ac_word=$2 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5600 $as_echo_n "checking for $ac_word... " >&6; } 5601 if ${ac_cv_path_TR+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603 else 5604 case $TR in 5605 [\\/]* | ?:[\\/]*) 5606 ac_cv_path_TR="$TR" # Let the user override the test with a path. 5607 ;; 5608 *) 5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5610 for as_dir in $PATH 5611 do 5612 IFS=$as_save_IFS 5613 test -z "$as_dir" && as_dir=. 5614 for ac_exec_ext in '' $ac_executable_extensions; do 5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5616 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5618 break 2 5619 fi 5620 done 5621 done 5622 IFS=$as_save_IFS 5623 5624 ;; 5625 esac 5626 fi 5627 TR=$ac_cv_path_TR 5628 if test -n "$TR"; then 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 5630 $as_echo "$TR" >&6; } 5631 else 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5633 $as_echo "no" >&6; } 5634 fi 5635 5636 5637 test -n "$TR" && break 5638 done 5639 5640 5641 if test "x$TR" = x; then 5642 if test "xtr" = x; then 5643 PROG_NAME=tr 5644 else 5645 PROG_NAME=tr 5646 fi 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5648 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5649 as_fn_error $? "Cannot continue" "$LINENO" 5 5650 fi 5651 5652 5653 5654 for ac_prog in uname 5655 do 5656 # Extract the first word of "$ac_prog", so it can be a program name with args. 5657 set dummy $ac_prog; ac_word=$2 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5659 $as_echo_n "checking for $ac_word... " >&6; } 5660 if ${ac_cv_path_UNAME+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662 else 5663 case $UNAME in 5664 [\\/]* | ?:[\\/]*) 5665 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 5666 ;; 5667 *) 5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669 for as_dir in $PATH 5670 do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5675 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679 done 5680 done 5681 IFS=$as_save_IFS 5682 5683 ;; 5684 esac 5685 fi 5686 UNAME=$ac_cv_path_UNAME 5687 if test -n "$UNAME"; then 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 5689 $as_echo "$UNAME" >&6; } 5690 else 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5692 $as_echo "no" >&6; } 5693 fi 5694 5695 5696 test -n "$UNAME" && break 5697 done 5698 5699 5700 if test "x$UNAME" = x; then 5701 if test "xuname" = x; then 5702 PROG_NAME=uname 5703 else 5704 PROG_NAME=uname 5705 fi 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5707 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5708 as_fn_error $? "Cannot continue" "$LINENO" 5 5709 fi 5710 5711 5712 5713 for ac_prog in uniq 5714 do 5715 # Extract the first word of "$ac_prog", so it can be a program name with args. 5716 set dummy $ac_prog; ac_word=$2 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718 $as_echo_n "checking for $ac_word... " >&6; } 5719 if ${ac_cv_path_UNIQ+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721 else 5722 case $UNIQ in 5723 [\\/]* | ?:[\\/]*) 5724 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 5725 ;; 5726 *) 5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5728 for as_dir in $PATH 5729 do 5730 IFS=$as_save_IFS 5731 test -z "$as_dir" && as_dir=. 5732 for ac_exec_ext in '' $ac_executable_extensions; do 5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5734 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5736 break 2 5737 fi 5738 done 5739 done 5740 IFS=$as_save_IFS 5741 5742 ;; 5743 esac 5744 fi 5745 UNIQ=$ac_cv_path_UNIQ 5746 if test -n "$UNIQ"; then 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 5748 $as_echo "$UNIQ" >&6; } 5749 else 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5751 $as_echo "no" >&6; } 5752 fi 5753 5754 5755 test -n "$UNIQ" && break 5756 done 5757 5758 5759 if test "x$UNIQ" = x; then 5760 if test "xuniq" = x; then 5761 PROG_NAME=uniq 5762 else 5763 PROG_NAME=uniq 5764 fi 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5766 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5767 as_fn_error $? "Cannot continue" "$LINENO" 5 5768 fi 5769 5770 5771 5772 for ac_prog in wc 5773 do 5774 # Extract the first word of "$ac_prog", so it can be a program name with args. 5775 set dummy $ac_prog; ac_word=$2 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5777 $as_echo_n "checking for $ac_word... " >&6; } 5778 if ${ac_cv_path_WC+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780 else 5781 case $WC in 5782 [\\/]* | ?:[\\/]*) 5783 ac_cv_path_WC="$WC" # Let the user override the test with a path. 5784 ;; 5785 *) 5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5787 for as_dir in $PATH 5788 do 5789 IFS=$as_save_IFS 5790 test -z "$as_dir" && as_dir=. 5791 for ac_exec_ext in '' $ac_executable_extensions; do 5792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5793 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5795 break 2 5796 fi 5797 done 5798 done 5799 IFS=$as_save_IFS 5800 5801 ;; 5802 esac 5803 fi 5804 WC=$ac_cv_path_WC 5805 if test -n "$WC"; then 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 5807 $as_echo "$WC" >&6; } 5808 else 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5810 $as_echo "no" >&6; } 5811 fi 5812 5813 5814 test -n "$WC" && break 5815 done 5816 5817 5818 if test "x$WC" = x; then 5819 if test "xwc" = x; then 5820 PROG_NAME=wc 5821 else 5822 PROG_NAME=wc 5823 fi 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5825 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5826 as_fn_error $? "Cannot continue" "$LINENO" 5 5827 fi 5828 5829 5830 5831 for ac_prog in which 5832 do 5833 # Extract the first word of "$ac_prog", so it can be a program name with args. 5834 set dummy $ac_prog; ac_word=$2 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5836 $as_echo_n "checking for $ac_word... " >&6; } 5837 if ${ac_cv_path_WHICH+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839 else 5840 case $WHICH in 5841 [\\/]* | ?:[\\/]*) 5842 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 5843 ;; 5844 *) 5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5846 for as_dir in $PATH 5847 do 5848 IFS=$as_save_IFS 5849 test -z "$as_dir" && as_dir=. 5850 for ac_exec_ext in '' $ac_executable_extensions; do 5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5852 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5854 break 2 5855 fi 5856 done 5857 done 5858 IFS=$as_save_IFS 5859 5860 ;; 5861 esac 5862 fi 5863 WHICH=$ac_cv_path_WHICH 5864 if test -n "$WHICH"; then 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 5866 $as_echo "$WHICH" >&6; } 5867 else 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5869 $as_echo "no" >&6; } 5870 fi 5871 5872 5873 test -n "$WHICH" && break 5874 done 5875 5876 5877 if test "x$WHICH" = x; then 5878 if test "xwhich" = x; then 5879 PROG_NAME=which 5880 else 5881 PROG_NAME=which 5882 fi 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5884 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5885 as_fn_error $? "Cannot continue" "$LINENO" 5 5886 fi 5887 5888 5889 5890 for ac_prog in xargs 5891 do 5892 # Extract the first word of "$ac_prog", so it can be a program name with args. 5893 set dummy $ac_prog; ac_word=$2 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5895 $as_echo_n "checking for $ac_word... " >&6; } 5896 if ${ac_cv_path_XARGS+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898 else 5899 case $XARGS in 5900 [\\/]* | ?:[\\/]*) 5901 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 5902 ;; 5903 *) 5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5905 for as_dir in $PATH 5906 do 5907 IFS=$as_save_IFS 5908 test -z "$as_dir" && as_dir=. 5909 for ac_exec_ext in '' $ac_executable_extensions; do 5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5911 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5913 break 2 5914 fi 5915 done 5916 done 5917 IFS=$as_save_IFS 5918 5919 ;; 5920 esac 5921 fi 5922 XARGS=$ac_cv_path_XARGS 5923 if test -n "$XARGS"; then 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 5925 $as_echo "$XARGS" >&6; } 5926 else 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5928 $as_echo "no" >&6; } 5929 fi 5930 5931 5932 test -n "$XARGS" && break 5933 done 5934 5935 5936 if test "x$XARGS" = x; then 5937 if test "xxargs" = x; then 5938 PROG_NAME=xargs 5939 else 5940 PROG_NAME=xargs 5941 fi 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 5943 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 5944 as_fn_error $? "Cannot continue" "$LINENO" 5 5945 fi 5946 5947 5948 5949 # Then required tools that require some special treatment. 5950 for ac_prog in gawk mawk nawk awk 5951 do 5952 # Extract the first word of "$ac_prog", so it can be a program name with args. 5953 set dummy $ac_prog; ac_word=$2 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5955 $as_echo_n "checking for $ac_word... " >&6; } 5956 if ${ac_cv_prog_AWK+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958 else 5959 if test -n "$AWK"; then 5960 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5961 else 5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963 for as_dir in $PATH 5964 do 5965 IFS=$as_save_IFS 5966 test -z "$as_dir" && as_dir=. 5967 for ac_exec_ext in '' $ac_executable_extensions; do 5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5969 ac_cv_prog_AWK="$ac_prog" 5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5971 break 2 5972 fi 5973 done 5974 done 5975 IFS=$as_save_IFS 5976 5977 fi 5978 fi 5979 AWK=$ac_cv_prog_AWK 5980 if test -n "$AWK"; then 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5982 $as_echo "$AWK" >&6; } 5983 else 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5985 $as_echo "no" >&6; } 5986 fi 5987 5988 5989 test -n "$AWK" && break 5990 done 5991 5992 5993 if test "x$AWK" = x; then 5994 if test "x" = x; then 5995 PROG_NAME=awk 5996 else 5997 PROG_NAME= 5998 fi 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6000 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6001 as_fn_error $? "Cannot continue" "$LINENO" 5 6002 fi 6003 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6005 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6006 if ${ac_cv_path_GREP+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008 else 6009 if test -z "$GREP"; then 6010 ac_path_GREP_found=false 6011 # Loop through the user's path and test for each of PROGNAME-LIST 6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6014 do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_prog in grep ggrep; do 6018 for ac_exec_ext in '' $ac_executable_extensions; do 6019 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6020 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6021 # Check for GNU ac_path_GREP and select it if it is found. 6022 # Check for GNU $ac_path_GREP 6023 case `"$ac_path_GREP" --version 2>&1` in 6024 *GNU*) 6025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6026 *) 6027 ac_count=0 6028 $as_echo_n 0123456789 >"conftest.in" 6029 while : 6030 do 6031 cat "conftest.in" "conftest.in" >"conftest.tmp" 6032 mv "conftest.tmp" "conftest.in" 6033 cp "conftest.in" "conftest.nl" 6034 $as_echo 'GREP' >> "conftest.nl" 6035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6037 as_fn_arith $ac_count + 1 && ac_count=$as_val 6038 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6039 # Best one so far, save it but keep looking for a better one 6040 ac_cv_path_GREP="$ac_path_GREP" 6041 ac_path_GREP_max=$ac_count 6042 fi 6043 # 10*(2^10) chars as input seems more than enough 6044 test $ac_count -gt 10 && break 6045 done 6046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6047 esac 6048 6049 $ac_path_GREP_found && break 3 6050 done 6051 done 6052 done 6053 IFS=$as_save_IFS 6054 if test -z "$ac_cv_path_GREP"; then 6055 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6056 fi 6057 else 6058 ac_cv_path_GREP=$GREP 6059 fi 6060 6061 fi 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6063 $as_echo "$ac_cv_path_GREP" >&6; } 6064 GREP="$ac_cv_path_GREP" 6065 6066 6067 6068 if test "x$GREP" = x; then 6069 if test "x" = x; then 6070 PROG_NAME=grep 6071 else 6072 PROG_NAME= 6073 fi 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6075 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6076 as_fn_error $? "Cannot continue" "$LINENO" 5 6077 fi 6078 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6080 $as_echo_n "checking for egrep... " >&6; } 6081 if ${ac_cv_path_EGREP+:} false; then : 6082 $as_echo_n "(cached) " >&6 6083 else 6084 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6085 then ac_cv_path_EGREP="$GREP -E" 6086 else 6087 if test -z "$EGREP"; then 6088 ac_path_EGREP_found=false 6089 # Loop through the user's path and test for each of PROGNAME-LIST 6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6092 do 6093 IFS=$as_save_IFS 6094 test -z "$as_dir" && as_dir=. 6095 for ac_prog in egrep; do 6096 for ac_exec_ext in '' $ac_executable_extensions; do 6097 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6098 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6099 # Check for GNU ac_path_EGREP and select it if it is found. 6100 # Check for GNU $ac_path_EGREP 6101 case `"$ac_path_EGREP" --version 2>&1` in 6102 *GNU*) 6103 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6104 *) 6105 ac_count=0 6106 $as_echo_n 0123456789 >"conftest.in" 6107 while : 6108 do 6109 cat "conftest.in" "conftest.in" >"conftest.tmp" 6110 mv "conftest.tmp" "conftest.in" 6111 cp "conftest.in" "conftest.nl" 6112 $as_echo 'EGREP' >> "conftest.nl" 6113 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6115 as_fn_arith $ac_count + 1 && ac_count=$as_val 6116 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6117 # Best one so far, save it but keep looking for a better one 6118 ac_cv_path_EGREP="$ac_path_EGREP" 6119 ac_path_EGREP_max=$ac_count 6120 fi 6121 # 10*(2^10) chars as input seems more than enough 6122 test $ac_count -gt 10 && break 6123 done 6124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6125 esac 6126 6127 $ac_path_EGREP_found && break 3 6128 done 6129 done 6130 done 6131 IFS=$as_save_IFS 6132 if test -z "$ac_cv_path_EGREP"; then 6133 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6134 fi 6135 else 6136 ac_cv_path_EGREP=$EGREP 6137 fi 6138 6139 fi 6140 fi 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6142 $as_echo "$ac_cv_path_EGREP" >&6; } 6143 EGREP="$ac_cv_path_EGREP" 6144 6145 6146 6147 if test "x$EGREP" = x; then 6148 if test "x" = x; then 6149 PROG_NAME=egrep 6150 else 6151 PROG_NAME= 6152 fi 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6154 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6155 as_fn_error $? "Cannot continue" "$LINENO" 5 6156 fi 6157 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6159 $as_echo_n "checking for fgrep... " >&6; } 6160 if ${ac_cv_path_FGREP+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162 else 6163 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6164 then ac_cv_path_FGREP="$GREP -F" 6165 else 6166 if test -z "$FGREP"; then 6167 ac_path_FGREP_found=false 6168 # Loop through the user's path and test for each of PROGNAME-LIST 6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6171 do 6172 IFS=$as_save_IFS 6173 test -z "$as_dir" && as_dir=. 6174 for ac_prog in fgrep; do 6175 for ac_exec_ext in '' $ac_executable_extensions; do 6176 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6177 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6178 # Check for GNU ac_path_FGREP and select it if it is found. 6179 # Check for GNU $ac_path_FGREP 6180 case `"$ac_path_FGREP" --version 2>&1` in 6181 *GNU*) 6182 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6183 *) 6184 ac_count=0 6185 $as_echo_n 0123456789 >"conftest.in" 6186 while : 6187 do 6188 cat "conftest.in" "conftest.in" >"conftest.tmp" 6189 mv "conftest.tmp" "conftest.in" 6190 cp "conftest.in" "conftest.nl" 6191 $as_echo 'FGREP' >> "conftest.nl" 6192 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6194 as_fn_arith $ac_count + 1 && ac_count=$as_val 6195 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6196 # Best one so far, save it but keep looking for a better one 6197 ac_cv_path_FGREP="$ac_path_FGREP" 6198 ac_path_FGREP_max=$ac_count 6199 fi 6200 # 10*(2^10) chars as input seems more than enough 6201 test $ac_count -gt 10 && break 6202 done 6203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6204 esac 6205 6206 $ac_path_FGREP_found && break 3 6207 done 6208 done 6209 done 6210 IFS=$as_save_IFS 6211 if test -z "$ac_cv_path_FGREP"; then 6212 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6213 fi 6214 else 6215 ac_cv_path_FGREP=$FGREP 6216 fi 6217 6218 fi 6219 fi 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6221 $as_echo "$ac_cv_path_FGREP" >&6; } 6222 FGREP="$ac_cv_path_FGREP" 6223 6224 6225 6226 if test "x$FGREP" = x; then 6227 if test "x" = x; then 6228 PROG_NAME=fgrep 6229 else 6230 PROG_NAME= 6231 fi 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6233 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6234 as_fn_error $? "Cannot continue" "$LINENO" 5 6235 fi 6236 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6238 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 6239 if ${ac_cv_path_SED+:} false; then : 6240 $as_echo_n "(cached) " >&6 6241 else 6242 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6243 for ac_i in 1 2 3 4 5 6 7; do 6244 ac_script="$ac_script$as_nl$ac_script" 6245 done 6246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6247 { ac_script=; unset ac_script;} 6248 if test -z "$SED"; then 6249 ac_path_SED_found=false 6250 # Loop through the user's path and test for each of PROGNAME-LIST 6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6252 for as_dir in $PATH 6253 do 6254 IFS=$as_save_IFS 6255 test -z "$as_dir" && as_dir=. 6256 for ac_prog in sed gsed; do 6257 for ac_exec_ext in '' $ac_executable_extensions; do 6258 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6259 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6260 # Check for GNU ac_path_SED and select it if it is found. 6261 # Check for GNU $ac_path_SED 6262 case `"$ac_path_SED" --version 2>&1` in 6263 *GNU*) 6264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6265 *) 6266 ac_count=0 6267 $as_echo_n 0123456789 >"conftest.in" 6268 while : 6269 do 6270 cat "conftest.in" "conftest.in" >"conftest.tmp" 6271 mv "conftest.tmp" "conftest.in" 6272 cp "conftest.in" "conftest.nl" 6273 $as_echo '' >> "conftest.nl" 6274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6276 as_fn_arith $ac_count + 1 && ac_count=$as_val 6277 if test $ac_count -gt ${ac_path_SED_max-0}; then 6278 # Best one so far, save it but keep looking for a better one 6279 ac_cv_path_SED="$ac_path_SED" 6280 ac_path_SED_max=$ac_count 6281 fi 6282 # 10*(2^10) chars as input seems more than enough 6283 test $ac_count -gt 10 && break 6284 done 6285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6286 esac 6287 6288 $ac_path_SED_found && break 3 6289 done 6290 done 6291 done 6292 IFS=$as_save_IFS 6293 if test -z "$ac_cv_path_SED"; then 6294 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6295 fi 6296 else 6297 ac_cv_path_SED=$SED 6298 fi 6299 6300 fi 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6302 $as_echo "$ac_cv_path_SED" >&6; } 6303 SED="$ac_cv_path_SED" 6304 rm -f conftest.sed 6305 6306 6307 if test "x$SED" = x; then 6308 if test "x" = x; then 6309 PROG_NAME=sed 6310 else 6311 PROG_NAME= 6312 fi 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6314 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6315 as_fn_error $? "Cannot continue" "$LINENO" 5 6316 fi 6317 6318 6319 for ac_prog in nawk gawk awk 6320 do 6321 # Extract the first word of "$ac_prog", so it can be a program name with args. 6322 set dummy $ac_prog; ac_word=$2 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6324 $as_echo_n "checking for $ac_word... " >&6; } 6325 if ${ac_cv_path_NAWK+:} false; then : 6326 $as_echo_n "(cached) " >&6 6327 else 6328 case $NAWK in 6329 [\\/]* | ?:[\\/]*) 6330 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 6331 ;; 6332 *) 6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6334 for as_dir in $PATH 6335 do 6336 IFS=$as_save_IFS 6337 test -z "$as_dir" && as_dir=. 6338 for ac_exec_ext in '' $ac_executable_extensions; do 6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6340 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6342 break 2 6343 fi 6344 done 6345 done 6346 IFS=$as_save_IFS 6347 6348 ;; 6349 esac 6350 fi 6351 NAWK=$ac_cv_path_NAWK 6352 if test -n "$NAWK"; then 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 6354 $as_echo "$NAWK" >&6; } 6355 else 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6357 $as_echo "no" >&6; } 6358 fi 6359 6360 6361 test -n "$NAWK" && break 6362 done 6363 6364 6365 if test "x$NAWK" = x; then 6366 if test "x" = x; then 6367 PROG_NAME=nawk 6368 else 6369 PROG_NAME= 6370 fi 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 6372 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 6373 as_fn_error $? "Cannot continue" "$LINENO" 5 6374 fi 6375 6376 6377 # Always force rm. 6378 RM="$RM -f" 6379 6380 # pwd behaves differently on various platforms and some don't support the -L flag. 6381 # Always use the bash builtin pwd to get uniform behavior. 6382 THEPWDCMD=pwd 6383 6384 # These are not required on all platforms 6385 # Extract the first word of "cygpath", so it can be a program name with args. 6386 set dummy cygpath; ac_word=$2 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6388 $as_echo_n "checking for $ac_word... " >&6; } 6389 if ${ac_cv_path_CYGPATH+:} false; then : 6390 $as_echo_n "(cached) " >&6 6391 else 6392 case $CYGPATH in 6393 [\\/]* | ?:[\\/]*) 6394 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 6395 ;; 6396 *) 6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6398 for as_dir in $PATH 6399 do 6400 IFS=$as_save_IFS 6401 test -z "$as_dir" && as_dir=. 6402 for ac_exec_ext in '' $ac_executable_extensions; do 6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6404 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6406 break 2 6407 fi 6408 done 6409 done 6410 IFS=$as_save_IFS 6411 6412 ;; 6413 esac 6414 fi 6415 CYGPATH=$ac_cv_path_CYGPATH 6416 if test -n "$CYGPATH"; then 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 6418 $as_echo "$CYGPATH" >&6; } 6419 else 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6421 $as_echo "no" >&6; } 6422 fi 6423 6424 6425 # Extract the first word of "readlink", so it can be a program name with args. 6426 set dummy readlink; ac_word=$2 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6428 $as_echo_n "checking for $ac_word... " >&6; } 6429 if ${ac_cv_path_READLINK+:} false; then : 6430 $as_echo_n "(cached) " >&6 6431 else 6432 case $READLINK in 6433 [\\/]* | ?:[\\/]*) 6434 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 6435 ;; 6436 *) 6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438 for as_dir in $PATH 6439 do 6440 IFS=$as_save_IFS 6441 test -z "$as_dir" && as_dir=. 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6444 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448 done 6449 done 6450 IFS=$as_save_IFS 6451 6452 ;; 6453 esac 6454 fi 6455 READLINK=$ac_cv_path_READLINK 6456 if test -n "$READLINK"; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 6458 $as_echo "$READLINK" >&6; } 6459 else 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461 $as_echo "no" >&6; } 6462 fi 6463 6464 6465 # Extract the first word of "df", so it can be a program name with args. 6466 set dummy df; ac_word=$2 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6468 $as_echo_n "checking for $ac_word... " >&6; } 6469 if ${ac_cv_path_DF+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471 else 6472 case $DF in 6473 [\\/]* | ?:[\\/]*) 6474 ac_cv_path_DF="$DF" # Let the user override the test with a path. 6475 ;; 6476 *) 6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478 for as_dir in $PATH 6479 do 6480 IFS=$as_save_IFS 6481 test -z "$as_dir" && as_dir=. 6482 for ac_exec_ext in '' $ac_executable_extensions; do 6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6484 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6486 break 2 6487 fi 6488 done 6489 done 6490 IFS=$as_save_IFS 6491 6492 ;; 6493 esac 6494 fi 6495 DF=$ac_cv_path_DF 6496 if test -n "$DF"; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 6498 $as_echo "$DF" >&6; } 6499 else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501 $as_echo "no" >&6; } 6502 fi 6503 6504 6505 # Extract the first word of "SetFile", so it can be a program name with args. 6506 set dummy SetFile; ac_word=$2 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6508 $as_echo_n "checking for $ac_word... " >&6; } 6509 if ${ac_cv_path_SETFILE+:} false; then : 6510 $as_echo_n "(cached) " >&6 6511 else 6512 case $SETFILE in 6513 [\\/]* | ?:[\\/]*) 6514 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 6515 ;; 6516 *) 6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6518 for as_dir in $PATH 6519 do 6520 IFS=$as_save_IFS 6521 test -z "$as_dir" && as_dir=. 6522 for ac_exec_ext in '' $ac_executable_extensions; do 6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6524 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6526 break 2 6527 fi 6528 done 6529 done 6530 IFS=$as_save_IFS 6531 6532 ;; 6533 esac 6534 fi 6535 SETFILE=$ac_cv_path_SETFILE 6536 if test -n "$SETFILE"; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 6538 $as_echo "$SETFILE" >&6; } 6539 else 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6541 $as_echo "no" >&6; } 6542 fi 6543 6544 6545 6546 6547 # Now we can determine OpenJDK build and target platforms. This is required to 6548 # have early on. 6549 # Make sure we can run config.sub. 6550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6552 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6554 $as_echo_n "checking build system type... " >&6; } 6555 if ${ac_cv_build+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557 else 6558 ac_build_alias=$build_alias 6559 test "x$ac_build_alias" = x && 6560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6561 test "x$ac_build_alias" = x && 6562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6565 6566 fi 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6568 $as_echo "$ac_cv_build" >&6; } 6569 case $ac_cv_build in 6570 *-*-*) ;; 6571 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6572 esac 6573 build=$ac_cv_build 6574 ac_save_IFS=$IFS; IFS='-' 6575 set x $ac_cv_build 6576 shift 6577 build_cpu=$1 6578 build_vendor=$2 6579 shift; shift 6580 # Remember, the first character of IFS is used to create $*, 6581 # except with old shells: 6582 build_os=$* 6583 IFS=$ac_save_IFS 6584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6585 6586 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6588 $as_echo_n "checking host system type... " >&6; } 6589 if ${ac_cv_host+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591 else 6592 if test "x$host_alias" = x; then 6593 ac_cv_host=$ac_cv_build 6594 else 6595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6597 fi 6598 6599 fi 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6601 $as_echo "$ac_cv_host" >&6; } 6602 case $ac_cv_host in 6603 *-*-*) ;; 6604 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6605 esac 6606 host=$ac_cv_host 6607 ac_save_IFS=$IFS; IFS='-' 6608 set x $ac_cv_host 6609 shift 6610 host_cpu=$1 6611 host_vendor=$2 6612 shift; shift 6613 # Remember, the first character of IFS is used to create $*, 6614 # except with old shells: 6615 host_os=$* 6616 IFS=$ac_save_IFS 6617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6618 6619 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 6621 $as_echo_n "checking target system type... " >&6; } 6622 if ${ac_cv_target+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624 else 6625 if test "x$target_alias" = x; then 6626 ac_cv_target=$ac_cv_host 6627 else 6628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 6629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 6630 fi 6631 6632 fi 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 6634 $as_echo "$ac_cv_target" >&6; } 6635 case $ac_cv_target in 6636 *-*-*) ;; 6637 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 6638 esac 6639 target=$ac_cv_target 6640 ac_save_IFS=$IFS; IFS='-' 6641 set x $ac_cv_target 6642 shift 6643 target_cpu=$1 6644 target_vendor=$2 6645 shift; shift 6646 # Remember, the first character of IFS is used to create $*, 6647 # except with old shells: 6648 target_os=$* 6649 IFS=$ac_save_IFS 6650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 6651 6652 6653 # The aliases save the names the user supplied, while $host etc. 6654 # will get canonicalized. 6655 test -n "$target_alias" && 6656 test "$program_prefix$program_suffix$program_transform_name" = \ 6657 NONENONEs,x,x, && 6658 program_prefix=${target_alias}- 6659 6660 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 6661 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 6662 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 6663 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 6664 # to use the configure naming style. 6665 6666 6667 6668 6669 6670 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 6671 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 6672 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 6673 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 6674 OPENJDK_TARGET_AUTOCONF_NAME="$host" 6675 OPENJDK_BUILD_AUTOCONF_NAME="$build" 6676 6677 6678 6679 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 6680 6681 case "$build_os" in 6682 *linux*) 6683 VAR_OS=linux 6684 VAR_OS_API=posix 6685 VAR_OS_ENV=linux 6686 ;; 6687 *solaris*) 6688 VAR_OS=solaris 6689 VAR_OS_API=posix 6690 VAR_OS_ENV=solaris 6691 ;; 6692 *darwin*) 6693 VAR_OS=macosx 6694 VAR_OS_API=posix 6695 VAR_OS_ENV=macosx 6696 ;; 6697 *bsd*) 6698 VAR_OS=bsd 6699 VAR_OS_API=posix 6700 VAR_OS_ENV=bsd 6701 ;; 6702 *cygwin*) 6703 VAR_OS=windows 6704 VAR_OS_API=winapi 6705 VAR_OS_ENV=windows.cygwin 6706 ;; 6707 *mingw*) 6708 VAR_OS=windows 6709 VAR_OS_API=winapi 6710 VAR_OS_ENV=windows.msys 6711 ;; 6712 *) 6713 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 6714 ;; 6715 esac 6716 6717 6718 # First argument is the cpu name from the trip/quad 6719 case "$build_cpu" in 6720 x86_64) 6721 VAR_CPU=x86_64 6722 VAR_CPU_ARCH=x86 6723 VAR_CPU_BITS=64 6724 VAR_CPU_ENDIAN=little 6725 ;; 6726 i?86) 6727 VAR_CPU=x86 6728 VAR_CPU_ARCH=x86 6729 VAR_CPU_BITS=32 6730 VAR_CPU_ENDIAN=little 6731 ;; 6732 arm*) 6733 VAR_CPU=arm 6734 VAR_CPU_ARCH=arm 6735 VAR_CPU_BITS=32 6736 VAR_CPU_ENDIAN=little 6737 ;; 6738 powerpc) 6739 VAR_CPU=ppc 6740 VAR_CPU_ARCH=ppc 6741 VAR_CPU_BITS=32 6742 VAR_CPU_ENDIAN=big 6743 ;; 6744 powerpc64) 6745 VAR_CPU=ppc64 6746 VAR_CPU_ARCH=ppc 6747 VAR_CPU_BITS=64 6748 VAR_CPU_ENDIAN=big 6749 ;; 6750 sparc) 6751 VAR_CPU=sparc 6752 VAR_CPU_ARCH=sparc 6753 VAR_CPU_BITS=32 6754 VAR_CPU_ENDIAN=big 6755 ;; 6756 sparcv9) 6757 VAR_CPU=sparcv9 6758 VAR_CPU_ARCH=sparc 6759 VAR_CPU_BITS=64 6760 VAR_CPU_ENDIAN=big 6761 ;; 6762 *) 6763 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 6764 ;; 6765 esac 6766 6767 # ..and setup our own variables. (Do this explicitely to facilitate searching) 6768 OPENJDK_BUILD_OS="$VAR_OS" 6769 OPENJDK_BUILD_OS_API="$VAR_OS_API" 6770 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 6771 OPENJDK_BUILD_CPU="$VAR_CPU" 6772 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 6773 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 6774 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 6775 6776 6777 6778 6779 6780 6781 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 6783 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 6785 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 6786 6787 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 6788 6789 case "$host_os" in 6790 *linux*) 6791 VAR_OS=linux 6792 VAR_OS_API=posix 6793 VAR_OS_ENV=linux 6794 ;; 6795 *solaris*) 6796 VAR_OS=solaris 6797 VAR_OS_API=posix 6798 VAR_OS_ENV=solaris 6799 ;; 6800 *darwin*) 6801 VAR_OS=macosx 6802 VAR_OS_API=posix 6803 VAR_OS_ENV=macosx 6804 ;; 6805 *bsd*) 6806 VAR_OS=bsd 6807 VAR_OS_API=posix 6808 VAR_OS_ENV=bsd 6809 ;; 6810 *cygwin*) 6811 VAR_OS=windows 6812 VAR_OS_API=winapi 6813 VAR_OS_ENV=windows.cygwin 6814 ;; 6815 *mingw*) 6816 VAR_OS=windows 6817 VAR_OS_API=winapi 6818 VAR_OS_ENV=windows.msys 6819 ;; 6820 *) 6821 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 6822 ;; 6823 esac 6824 6825 6826 # First argument is the cpu name from the trip/quad 6827 case "$host_cpu" in 6828 x86_64) 6829 VAR_CPU=x86_64 6830 VAR_CPU_ARCH=x86 6831 VAR_CPU_BITS=64 6832 VAR_CPU_ENDIAN=little 6833 ;; 6834 i?86) 6835 VAR_CPU=x86 6836 VAR_CPU_ARCH=x86 6837 VAR_CPU_BITS=32 6838 VAR_CPU_ENDIAN=little 6839 ;; 6840 arm*) 6841 VAR_CPU=arm 6842 VAR_CPU_ARCH=arm 6843 VAR_CPU_BITS=32 6844 VAR_CPU_ENDIAN=little 6845 ;; 6846 powerpc) 6847 VAR_CPU=ppc 6848 VAR_CPU_ARCH=ppc 6849 VAR_CPU_BITS=32 6850 VAR_CPU_ENDIAN=big 6851 ;; 6852 powerpc64) 6853 VAR_CPU=ppc64 6854 VAR_CPU_ARCH=ppc 6855 VAR_CPU_BITS=64 6856 VAR_CPU_ENDIAN=big 6857 ;; 6858 sparc) 6859 VAR_CPU=sparc 6860 VAR_CPU_ARCH=sparc 6861 VAR_CPU_BITS=32 6862 VAR_CPU_ENDIAN=big 6863 ;; 6864 sparcv9) 6865 VAR_CPU=sparcv9 6866 VAR_CPU_ARCH=sparc 6867 VAR_CPU_BITS=64 6868 VAR_CPU_ENDIAN=big 6869 ;; 6870 *) 6871 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 6872 ;; 6873 esac 6874 6875 # ... and setup our own variables. (Do this explicitely to facilitate searching) 6876 OPENJDK_TARGET_OS="$VAR_OS" 6877 OPENJDK_TARGET_OS_API="$VAR_OS_API" 6878 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 6879 OPENJDK_TARGET_CPU="$VAR_CPU" 6880 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 6881 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 6882 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 6883 6884 6885 6886 6887 6888 6889 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 6891 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 6893 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 6894 6895 6896 6897 # Check whether --with-target-bits was given. 6898 if test "${with_target_bits+set}" = set; then : 6899 withval=$with_target_bits; 6900 fi 6901 6902 6903 # We have three types of compiles: 6904 # native == normal compilation, target system == build system 6905 # cross == traditional cross compilation, target system != build system; special toolchain needed 6906 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 6907 # 6908 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 6909 # We're doing a proper cross-compilation 6910 COMPILE_TYPE="cross" 6911 else 6912 COMPILE_TYPE="native" 6913 fi 6914 6915 if test "x$with_target_bits" != x; then 6916 if test "x$COMPILE_TYPE" = "xcross"; then 6917 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 6918 fi 6919 6920 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 6921 # A reduced build is requested 6922 COMPILE_TYPE="reduced" 6923 OPENJDK_TARGET_CPU_BITS=32 6924 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 6925 OPENJDK_TARGET_CPU=x86 6926 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 6927 OPENJDK_TARGET_CPU=sparc 6928 else 6929 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 6930 fi 6931 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 6932 as_fn_error $? "It is not possible to use --with-target-bits=64 on a 32 bit system. Use proper cross-compilation instead." "$LINENO" 5 6933 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 6935 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 6936 else 6937 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 6938 fi 6939 fi 6940 6941 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 6943 $as_echo_n "checking compilation type... " >&6; } 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 6945 $as_echo "$COMPILE_TYPE" >&6; } 6946 6947 6948 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 6949 REQUIRED_OS_NAME=SunOS 6950 REQUIRED_OS_VERSION=5.10 6951 fi 6952 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 6953 REQUIRED_OS_NAME=Linux 6954 REQUIRED_OS_VERSION=2.6 6955 fi 6956 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 6957 REQUIRED_OS_NAME=Windows 6958 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 6959 REQUIRED_OS_VERSION=5.2 6960 else 6961 REQUIRED_OS_VERSION=5.1 6962 fi 6963 fi 6964 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 6965 REQUIRED_OS_NAME=Darwin 6966 REQUIRED_OS_VERSION=11.2 6967 fi 6968 6969 6970 6971 6972 6973 # Also store the legacy naming of the cpu. 6974 # Ie i586 and amd64 instead of x86 and x86_64 6975 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 6976 if test "x$OPENJDK_TARGET_CPU" = xx86; then 6977 OPENJDK_TARGET_CPU_LEGACY="i586" 6978 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 6979 # On all platforms except MacOSX replace x86_64 with amd64. 6980 OPENJDK_TARGET_CPU_LEGACY="amd64" 6981 fi 6982 6983 6984 # And the second legacy naming of the cpu. 6985 # Ie i386 and amd64 instead of x86 and x86_64. 6986 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 6987 if test "x$OPENJDK_TARGET_CPU" = xx86; then 6988 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 6989 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 6990 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 6991 fi 6992 6993 6994 # This is the name of the cpu (but using i386 and amd64 instead of 6995 # x86 and x86_64, respectively), preceeded by a /, to be used when 6996 # locating libraries. On macosx, it's empty, though. 6997 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 6998 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 6999 OPENJDK_TARGET_CPU_LIBDIR="" 7000 fi 7001 7002 7003 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 7004 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 7005 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 7006 OPENJDK_TARGET_CPU_ISADIR="" 7007 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 7008 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7009 OPENJDK_TARGET_CPU_ISADIR="/amd64" 7010 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 7011 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 7012 fi 7013 fi 7014 7015 7016 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 7017 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 7018 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 7019 # On linux only, we replace x86 with i386. 7020 OPENJDK_TARGET_CPU_OSARCH="i386" 7021 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7022 # On all platforms except macosx, we replace x86_64 with amd64. 7023 OPENJDK_TARGET_CPU_OSARCH="amd64" 7024 fi 7025 7026 7027 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 7028 if test "x$OPENJDK_TARGET_CPU" = xx86; then 7029 OPENJDK_TARGET_CPU_JLI="i386" 7030 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 7031 # On all platforms except macosx, we replace x86_64 with amd64. 7032 OPENJDK_TARGET_CPU_JLI="amd64" 7033 fi 7034 # Now setup the -D flags for building libjli. 7035 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 7036 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 7037 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 7038 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 7039 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 7040 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 7041 fi 7042 fi 7043 7044 7045 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 7046 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 7047 OPENJDK_TARGET_OS_API_DIR="solaris" 7048 fi 7049 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 7050 OPENJDK_TARGET_OS_API_DIR="windows" 7051 fi 7052 7053 7054 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7055 A_LP64="LP64:=" 7056 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 7057 # unpack200.exe 7058 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 7059 ADD_LP64="-D_LP64=1" 7060 fi 7061 fi 7062 LP64=$A_LP64 7063 7064 7065 if test "x$COMPILE_TYPE" = "xcross"; then 7066 # FIXME: ... or should this include reduced builds..? 7067 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 7068 else 7069 DEFINE_CROSS_COMPILE_ARCH="" 7070 fi 7071 7072 7073 # ZERO_ARCHDEF is used to enable architecture-specific code 7074 case "${OPENJDK_TARGET_CPU}" in 7075 ppc*) ZERO_ARCHDEF=PPC ;; 7076 s390*) ZERO_ARCHDEF=S390 ;; 7077 sparc*) ZERO_ARCHDEF=SPARC ;; 7078 x86_64*) ZERO_ARCHDEF=AMD64 ;; 7079 x86) ZERO_ARCHDEF=IA32 ;; 7080 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 7081 esac 7082 7083 7084 7085 7086 7087 # Continue setting up basic stuff. Most remaining code require fundamental tools. 7088 7089 # Locate the directory of this script. 7090 SCRIPT="$0" 7091 AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L` 7092 7093 # Where is the source? It is located two levels above the configure script. 7094 CURDIR="$PWD" 7095 cd "$AUTOCONF_DIR/../.." 7096 SRC_ROOT="`$THEPWDCMD -L`" 7097 7098 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 7099 PATH_SEP=";" 7100 7101 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 7102 if test $SRC_ROOT_LENGTH -gt 100; then 7103 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 7104 fi 7105 7106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 7108 $as_echo_n "checking cygwin release... " >&6; } 7109 CYGWIN_VERSION=`$UNAME -r` 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 7111 $as_echo "$CYGWIN_VERSION" >&6; } 7112 WINDOWS_ENV_VENDOR='cygwin' 7113 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 7114 7115 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 7116 if test "x$CYGWIN_VERSION_OK" = x; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade." >&5 7118 $as_echo "$as_me: Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade." >&6;} 7119 as_fn_error $? "Cannot continue" "$LINENO" 5 7120 fi 7121 if test "x$CYGPATH" = x; then 7122 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 7123 fi 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 7125 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 7126 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 7127 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 7128 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 7129 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 7131 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 7132 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 7133 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 7134 if test "x$test_cygdrive_prefix" = x; then 7135 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 7136 fi 7137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 7139 $as_echo_n "checking msys release... " >&6; } 7140 MSYS_VERSION=`$UNAME -r` 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 7142 $as_echo "$MSYS_VERSION" >&6; } 7143 7144 WINDOWS_ENV_VENDOR='msys' 7145 WINDOWS_ENV_VERSION="$MSYS_VERSION" 7146 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 7148 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 7149 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 7150 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 7151 7152 windows_path="$MSYS_ROOT_PATH" 7153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7154 unix_path=`$CYGPATH -u "$windows_path"` 7155 MSYS_ROOT_PATH="$unix_path" 7156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 7158 MSYS_ROOT_PATH="$unix_path" 7159 fi 7160 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 7162 $as_echo "$MSYS_ROOT_PATH" >&6; } 7163 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 7164 else 7165 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 7166 fi 7167 7168 # Test if windows or unix (cygwin/msys) find is first in path. 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 7170 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 7171 FIND_BINARY_OUTPUT=`find --version 2>&1` 7172 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 7174 $as_echo "unix style" >&6; } 7175 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 7177 $as_echo "Windows" >&6; } 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 7179 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&5 7181 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 7182 as_fn_error $? "Cannot continue" "$LINENO" 5 7183 else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 7185 $as_echo "unknown" >&6; } 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 7187 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 7188 fi 7189 7190 else 7191 PATH_SEP=":" 7192 fi 7193 7194 7195 7196 cd "$CURDIR" 7197 7198 7199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7200 7201 # Input might be given as Windows format, start by converting to 7202 # unix format. 7203 path="$SRC_ROOT" 7204 new_path=`$CYGPATH -u "$path"` 7205 7206 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 7207 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 7208 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 7209 # "foo.exe" is OK but "foo" is an error. 7210 # 7211 # This test is therefore slightly more accurate than "test -f" to check for file precense. 7212 # It is also a way to make sure we got the proper file name for the real test later on. 7213 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 7214 if test "x$test_shortpath" = x; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 7216 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} 7217 as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5 7218 fi 7219 7220 # Call helper function which possibly converts this using DOS-style short mode. 7221 # If so, the updated path is stored in $new_path. 7222 7223 input_path="$new_path" 7224 # Check if we need to convert this using DOS-style short mode. If the path 7225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7226 # take no chances and rewrite it. 7227 # Note: m4 eats our [], so we need to use [ and ] instead. 7228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 7229 if test "x$has_forbidden_chars" != x; then 7230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7231 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 7232 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 7233 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 7234 # Going to short mode and back again did indeed matter. Since short mode is 7235 # case insensitive, let's make it lowercase to improve readability. 7236 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7237 # Now convert it back to Unix-stile (cygpath) 7238 input_path=`$CYGPATH -u "$shortmode_path"` 7239 new_path="$input_path" 7240 fi 7241 fi 7242 7243 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 7244 if test "x$test_cygdrive_prefix" = x; then 7245 # As a simple fix, exclude /usr/bin since it's not a real path. 7246 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 7247 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 7248 # a path prefixed by /cygdrive for fixpath to work. 7249 new_path="$CYGWIN_ROOT_PATH$input_path" 7250 fi 7251 fi 7252 7253 7254 if test "x$path" != "x$new_path"; then 7255 SRC_ROOT="$new_path" 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 7257 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} 7258 fi 7259 7260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7261 7262 path="$SRC_ROOT" 7263 has_colon=`$ECHO $path | $GREP ^.:` 7264 new_path="$path" 7265 if test "x$has_colon" = x; then 7266 # Not in mixed or Windows style, start by that. 7267 new_path=`cmd //c echo $path` 7268 fi 7269 7270 7271 input_path="$new_path" 7272 # Check if we need to convert this using DOS-style short mode. If the path 7273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7274 # take no chances and rewrite it. 7275 # Note: m4 eats our [], so we need to use [ and ] instead. 7276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 7277 if test "x$has_forbidden_chars" != x; then 7278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7279 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7280 fi 7281 7282 7283 windows_path="$new_path" 7284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7285 unix_path=`$CYGPATH -u "$windows_path"` 7286 new_path="$unix_path" 7287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 7289 new_path="$unix_path" 7290 fi 7291 7292 if test "x$path" != "x$new_path"; then 7293 SRC_ROOT="$new_path" 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 7295 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} 7296 fi 7297 7298 # Save the first 10 bytes of this path to the storage, so fixpath can work. 7299 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 7300 7301 else 7302 # We're on a posix platform. Hooray! :) 7303 path="$SRC_ROOT" 7304 has_space=`$ECHO "$path" | $GREP " "` 7305 if test "x$has_space" != x; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 7307 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} 7308 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 7309 fi 7310 7311 # Use eval to expand a potential ~ 7312 eval path="$path" 7313 if test ! -f "$path" && test ! -d "$path"; then 7314 as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 7315 fi 7316 7317 SRC_ROOT="`cd "$path"; $THEPWDCMD -L`" 7318 fi 7319 7320 7321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7322 7323 # Input might be given as Windows format, start by converting to 7324 # unix format. 7325 path="$CURDIR" 7326 new_path=`$CYGPATH -u "$path"` 7327 7328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 7329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 7330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 7331 # "foo.exe" is OK but "foo" is an error. 7332 # 7333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 7334 # It is also a way to make sure we got the proper file name for the real test later on. 7335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 7336 if test "x$test_shortpath" = x; then 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 7338 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 7339 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 7340 fi 7341 7342 # Call helper function which possibly converts this using DOS-style short mode. 7343 # If so, the updated path is stored in $new_path. 7344 7345 input_path="$new_path" 7346 # Check if we need to convert this using DOS-style short mode. If the path 7347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7348 # take no chances and rewrite it. 7349 # Note: m4 eats our [], so we need to use [ and ] instead. 7350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 7351 if test "x$has_forbidden_chars" != x; then 7352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 7354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 7355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 7356 # Going to short mode and back again did indeed matter. Since short mode is 7357 # case insensitive, let's make it lowercase to improve readability. 7358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7359 # Now convert it back to Unix-stile (cygpath) 7360 input_path=`$CYGPATH -u "$shortmode_path"` 7361 new_path="$input_path" 7362 fi 7363 fi 7364 7365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 7366 if test "x$test_cygdrive_prefix" = x; then 7367 # As a simple fix, exclude /usr/bin since it's not a real path. 7368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 7369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 7370 # a path prefixed by /cygdrive for fixpath to work. 7371 new_path="$CYGWIN_ROOT_PATH$input_path" 7372 fi 7373 fi 7374 7375 7376 if test "x$path" != "x$new_path"; then 7377 CURDIR="$new_path" 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 7379 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 7380 fi 7381 7382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7383 7384 path="$CURDIR" 7385 has_colon=`$ECHO $path | $GREP ^.:` 7386 new_path="$path" 7387 if test "x$has_colon" = x; then 7388 # Not in mixed or Windows style, start by that. 7389 new_path=`cmd //c echo $path` 7390 fi 7391 7392 7393 input_path="$new_path" 7394 # Check if we need to convert this using DOS-style short mode. If the path 7395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7396 # take no chances and rewrite it. 7397 # Note: m4 eats our [], so we need to use [ and ] instead. 7398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 7399 if test "x$has_forbidden_chars" != x; then 7400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7402 fi 7403 7404 7405 windows_path="$new_path" 7406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7407 unix_path=`$CYGPATH -u "$windows_path"` 7408 new_path="$unix_path" 7409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 7411 new_path="$unix_path" 7412 fi 7413 7414 if test "x$path" != "x$new_path"; then 7415 CURDIR="$new_path" 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 7417 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 7418 fi 7419 7420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 7421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 7422 7423 else 7424 # We're on a posix platform. Hooray! :) 7425 path="$CURDIR" 7426 has_space=`$ECHO "$path" | $GREP " "` 7427 if test "x$has_space" != x; then 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 7429 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 7430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 7431 fi 7432 7433 # Use eval to expand a potential ~ 7434 eval path="$path" 7435 if test ! -f "$path" && test ! -d "$path"; then 7436 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 7437 fi 7438 7439 CURDIR="`cd "$path"; $THEPWDCMD -L`" 7440 fi 7441 7442 7443 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 7444 # Add extra search paths on solaris for utilities like ar and as etc... 7445 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 7446 fi 7447 7448 # You can force the sys-root if the sys-root encoded into the cross compiler tools 7449 # is not correct. 7450 7451 # Check whether --with-sys-root was given. 7452 if test "${with_sys_root+set}" = set; then : 7453 withval=$with_sys_root; 7454 fi 7455 7456 7457 if test "x$with_sys_root" != x; then 7458 SYS_ROOT=$with_sys_root 7459 else 7460 SYS_ROOT=/ 7461 fi 7462 7463 7464 7465 # Check whether --with-tools-dir was given. 7466 if test "${with_tools_dir+set}" = set; then : 7467 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir 7468 fi 7469 7470 7471 7472 # Check whether --with-devkit was given. 7473 if test "${with_devkit+set}" = set; then : 7474 withval=$with_devkit; 7475 if test "x$with_sys_root" != x; then 7476 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5 7477 fi 7478 if test "x$with_tools_dir" != x; then 7479 as_fn_error $? "Cannot specify both --with-devkit and --with-tools-dir at the same time" "$LINENO" 5 7480 fi 7481 TOOLS_DIR=$with_devkit/bin 7482 SYS_ROOT=$with_devkit/$host_alias/libc 7483 7484 fi 7485 7486 7487 7488 7489 # Setup default logging of stdout and stderr to build.log in the output root. 7490 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 7491 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 7492 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 7493 7494 7495 7496 7497 7498 # Check if it's a pure open build or if custom sources are to be used. 7499 7500 # Check whether --enable-openjdk-only was given. 7501 if test "${enable_openjdk_only+set}" = set; then : 7502 enableval=$enable_openjdk_only; 7503 else 7504 enable_openjdk_only="no" 7505 fi 7506 7507 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 7509 $as_echo_n "checking for presence of closed sources... " >&6; } 7510 if test -d "$SRC_ROOT/jdk/src/closed"; then 7511 CLOSED_SOURCE_PRESENT=yes 7512 else 7513 CLOSED_SOURCE_PRESENT=no 7514 fi 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 7516 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 7517 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 7519 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 7520 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 7522 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 7523 7524 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 7525 OPENJDK=true 7526 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 7528 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 7529 fi 7530 else 7531 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 7532 OPENJDK=true 7533 else 7534 OPENJDK=false 7535 fi 7536 fi 7537 7538 if test "x$OPENJDK" = "xtrue"; then 7539 SET_OPENJDK="OPENJDK=true" 7540 fi 7541 7542 7543 7544 7545 # These are needed to be able to create a configuration name (and thus the output directory) 7546 7547 ############################################################################### 7548 # 7549 # Check which variant of the JDK that we want to build. 7550 # Currently we have: 7551 # normal: standard edition 7552 # but the custom make system may add other variants 7553 # 7554 # Effectively the JDK variant gives a name to a specific set of 7555 # modules to compile into the JDK. In the future, these modules 7556 # might even be Jigsaw modules. 7557 # 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 7559 $as_echo_n "checking which variant of the JDK to build... " >&6; } 7560 7561 # Check whether --with-jdk-variant was given. 7562 if test "${with_jdk_variant+set}" = set; then : 7563 withval=$with_jdk_variant; 7564 fi 7565 7566 7567 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 7568 JDK_VARIANT="normal" 7569 else 7570 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 7571 fi 7572 7573 7574 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 7576 $as_echo "$JDK_VARIANT" >&6; } 7577 7578 7579 7580 ############################################################################### 7581 # 7582 # Check which variants of the JVM that we want to build. 7583 # Currently we have: 7584 # server: normal interpreter and a tiered C1/C2 compiler 7585 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 7586 # minimal1: reduced form of client with optional VM services and features stripped out 7587 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 7588 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 7589 # zero: no machine code interpreter, no compiler 7590 # zeroshark: zero interpreter and shark/llvm compiler backend 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 7592 $as_echo_n "checking which variants of the JVM to build... " >&6; } 7593 7594 # Check whether --with-jvm-variants was given. 7595 if test "${with_jvm_variants+set}" = set; then : 7596 withval=$with_jvm_variants; 7597 fi 7598 7599 7600 if test "x$with_jvm_variants" = x; then 7601 with_jvm_variants="server" 7602 fi 7603 7604 JVM_VARIANTS=",$with_jvm_variants," 7605 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'` 7606 7607 if test "x$TEST_VARIANTS" != "x,"; then 7608 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark" "$LINENO" 5 7609 fi 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 7611 $as_echo "$with_jvm_variants" >&6; } 7612 7613 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 7614 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 7615 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 7616 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 7617 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 7618 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 7619 7620 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 7621 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7622 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 7623 fi 7624 fi 7625 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 7626 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7627 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 7628 fi 7629 fi 7630 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 7631 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 7632 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 7633 fi 7634 fi 7635 7636 # Replace the commas with AND for use in the build directory name. 7637 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'` 7638 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/'` 7639 if test "x$COUNT_VARIANTS" != "x,1"; then 7640 BUILDING_MULTIPLE_JVM_VARIANTS=yes 7641 else 7642 BUILDING_MULTIPLE_JVM_VARIANTS=no 7643 fi 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 INCLUDE_SA=true 7654 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 7655 INCLUDE_SA=false 7656 fi 7657 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 7658 INCLUDE_SA=false 7659 fi 7660 7661 7662 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 7663 MACOSX_UNIVERSAL="true" 7664 fi 7665 7666 7667 7668 7669 7670 ############################################################################### 7671 # 7672 # Set the debug level 7673 # release: no debug information, all optimizations, no asserts. 7674 # fastdebug: debug information (-g), all optimizations, all asserts 7675 # slowdebug: debug information (-g), no optimizations, all asserts 7676 # 7677 DEBUG_LEVEL="release" 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 7679 $as_echo_n "checking which debug level to use... " >&6; } 7680 # Check whether --enable-debug was given. 7681 if test "${enable_debug+set}" = set; then : 7682 enableval=$enable_debug; 7683 ENABLE_DEBUG="${enableval}" 7684 DEBUG_LEVEL="fastdebug" 7685 7686 else 7687 ENABLE_DEBUG="no" 7688 fi 7689 7690 7691 7692 # Check whether --with-debug-level was given. 7693 if test "${with_debug_level+set}" = set; then : 7694 withval=$with_debug_level; 7695 DEBUG_LEVEL="${withval}" 7696 if test "x$ENABLE_DEBUG" = xyes; then 7697 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 7698 fi 7699 7700 fi 7701 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 7703 $as_echo "$DEBUG_LEVEL" >&6; } 7704 7705 if test "x$DEBUG_LEVEL" != xrelease && \ 7706 test "x$DEBUG_LEVEL" != xfastdebug && \ 7707 test "x$DEBUG_LEVEL" != xslowdebug; then 7708 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 7709 fi 7710 7711 7712 ############################################################################### 7713 # 7714 # Setup legacy vars/targets and new vars to deal with different debug levels. 7715 # 7716 7717 case $DEBUG_LEVEL in 7718 release ) 7719 VARIANT="OPT" 7720 FASTDEBUG="false" 7721 DEBUG_CLASSFILES="false" 7722 BUILD_VARIANT_RELEASE="" 7723 HOTSPOT_DEBUG_LEVEL="product" 7724 HOTSPOT_EXPORT="product" 7725 ;; 7726 fastdebug ) 7727 VARIANT="DBG" 7728 FASTDEBUG="true" 7729 DEBUG_CLASSFILES="true" 7730 BUILD_VARIANT_RELEASE="-fastdebug" 7731 HOTSPOT_DEBUG_LEVEL="fastdebug" 7732 HOTSPOT_EXPORT="fastdebug" 7733 ;; 7734 slowdebug ) 7735 VARIANT="DBG" 7736 FASTDEBUG="false" 7737 DEBUG_CLASSFILES="true" 7738 BUILD_VARIANT_RELEASE="-debug" 7739 HOTSPOT_DEBUG_LEVEL="jvmg" 7740 HOTSPOT_EXPORT="debug" 7741 ;; 7742 esac 7743 7744 ##### 7745 # Generate the legacy makefile targets for hotspot. 7746 # The hotspot api for selecting the build artifacts, really, needs to be improved. 7747 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 7748 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 7749 # But until then ... 7750 HOTSPOT_TARGET="" 7751 7752 if test "x$JVM_VARIANT_SERVER" = xtrue; then 7753 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 7754 fi 7755 7756 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 7757 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 7758 fi 7759 7760 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 7761 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 7762 fi 7763 7764 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 7765 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 7766 fi 7767 7768 if test "x$JVM_VARIANT_ZERO" = xtrue; then 7769 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 7770 fi 7771 7772 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 7773 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 7774 fi 7775 7776 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 7777 7778 # On Macosx universal binaries are produced, but they only contain 7779 # 64 bit intel. This invalidates control of which jvms are built 7780 # from configure, but only server is valid anyway. Fix this 7781 # when hotspot makefiles are rewritten. 7782 if test "x$MACOSX_UNIVERSAL" = xtrue; then 7783 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 7784 fi 7785 7786 ##### 7787 7788 7789 7790 7791 7792 7793 7794 7795 # With basic setup done, call the custom early hook. 7796 7797 7798 # To properly create a configuration name, we need to have the OpenJDK target 7799 # and options (variants and debug level) parsed. 7800 7801 7802 7803 # Check whether --with-conf-name was given. 7804 if test "${with_conf_name+set}" = set; then : 7805 withval=$with_conf_name; CONF_NAME=${with_conf_name} 7806 fi 7807 7808 7809 # Test from where we are running configure, in or outside of src root. 7810 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 7811 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 7812 || test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then 7813 # We are running configure from the src root. 7814 # Create a default ./build/target-variant-debuglevel output root. 7815 if test "x${CONF_NAME}" = x; then 7816 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 7817 fi 7818 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 7819 $MKDIR -p "$OUTPUT_ROOT" 7820 if test ! -d "$OUTPUT_ROOT"; then 7821 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 7822 fi 7823 else 7824 # We are running configure from outside of the src dir. 7825 # Then use the current directory as output dir! 7826 # If configuration is situated in normal build directory, just use the build 7827 # directory name as configuration name, otherwise use the complete path. 7828 if test "x${CONF_NAME}" = x; then 7829 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 7830 fi 7831 OUTPUT_ROOT="$CURDIR" 7832 7833 # WARNING: This might be a bad thing to do. You need to be sure you want to 7834 # have a configuration in this directory. Do some sanity checks! 7835 7836 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 7837 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 7838 # other files 7839 files_present=`$LS $OUTPUT_ROOT` 7840 # Configure has already touched config.log and confdefs.h in the current dir when this check 7841 # is performed. 7842 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 7843 | $TR -d '\n'` 7844 if test "x$filtered_files" != x; then 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 7846 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 7848 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 7850 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 7852 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 7854 $as_echo "$as_me: seriously mess up just about everything." >&6;} 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 7856 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 7858 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 7859 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 7860 fi 7861 fi 7862 fi 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 7864 $as_echo_n "checking what configuration name to use... " >&6; } 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 7866 $as_echo "$CONF_NAME" >&6; } 7867 7868 7869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7870 7871 # Input might be given as Windows format, start by converting to 7872 # unix format. 7873 path="$OUTPUT_ROOT" 7874 new_path=`$CYGPATH -u "$path"` 7875 7876 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 7877 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 7878 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 7879 # "foo.exe" is OK but "foo" is an error. 7880 # 7881 # This test is therefore slightly more accurate than "test -f" to check for file precense. 7882 # It is also a way to make sure we got the proper file name for the real test later on. 7883 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 7884 if test "x$test_shortpath" = x; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 7886 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 7887 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 7888 fi 7889 7890 # Call helper function which possibly converts this using DOS-style short mode. 7891 # If so, the updated path is stored in $new_path. 7892 7893 input_path="$new_path" 7894 # Check if we need to convert this using DOS-style short mode. If the path 7895 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7896 # take no chances and rewrite it. 7897 # Note: m4 eats our [], so we need to use [ and ] instead. 7898 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 7899 if test "x$has_forbidden_chars" != x; then 7900 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7901 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 7902 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 7903 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 7904 # Going to short mode and back again did indeed matter. Since short mode is 7905 # case insensitive, let's make it lowercase to improve readability. 7906 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7907 # Now convert it back to Unix-stile (cygpath) 7908 input_path=`$CYGPATH -u "$shortmode_path"` 7909 new_path="$input_path" 7910 fi 7911 fi 7912 7913 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 7914 if test "x$test_cygdrive_prefix" = x; then 7915 # As a simple fix, exclude /usr/bin since it's not a real path. 7916 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 7917 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 7918 # a path prefixed by /cygdrive for fixpath to work. 7919 new_path="$CYGWIN_ROOT_PATH$input_path" 7920 fi 7921 fi 7922 7923 7924 if test "x$path" != "x$new_path"; then 7925 OUTPUT_ROOT="$new_path" 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 7927 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 7928 fi 7929 7930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7931 7932 path="$OUTPUT_ROOT" 7933 has_colon=`$ECHO $path | $GREP ^.:` 7934 new_path="$path" 7935 if test "x$has_colon" = x; then 7936 # Not in mixed or Windows style, start by that. 7937 new_path=`cmd //c echo $path` 7938 fi 7939 7940 7941 input_path="$new_path" 7942 # Check if we need to convert this using DOS-style short mode. If the path 7943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 7944 # take no chances and rewrite it. 7945 # Note: m4 eats our [], so we need to use [ and ] instead. 7946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 7947 if test "x$has_forbidden_chars" != x; then 7948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 7949 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7950 fi 7951 7952 7953 windows_path="$new_path" 7954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 7955 unix_path=`$CYGPATH -u "$windows_path"` 7956 new_path="$unix_path" 7957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 7958 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 7959 new_path="$unix_path" 7960 fi 7961 7962 if test "x$path" != "x$new_path"; then 7963 OUTPUT_ROOT="$new_path" 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 7965 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 7966 fi 7967 7968 # Save the first 10 bytes of this path to the storage, so fixpath can work. 7969 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 7970 7971 else 7972 # We're on a posix platform. Hooray! :) 7973 path="$OUTPUT_ROOT" 7974 has_space=`$ECHO "$path" | $GREP " "` 7975 if test "x$has_space" != x; then 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 7977 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 7978 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 7979 fi 7980 7981 # Use eval to expand a potential ~ 7982 eval path="$path" 7983 if test ! -f "$path" && test ! -d "$path"; then 7984 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 7985 fi 7986 7987 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 7988 fi 7989 7990 7991 SPEC=$OUTPUT_ROOT/spec.gmk 7992 7993 CONF_NAME=$CONF_NAME 7994 7995 OUTPUT_ROOT=$OUTPUT_ROOT 7996 7997 7998 # Most of the probed defines are put into config.h 7999 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 8000 8001 # The spec.gmk file contains all variables for the make system. 8002 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 8003 8004 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 8005 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 8006 8007 # The bootcycle-spec.gmk file contains support for boot cycle builds. 8008 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 8009 8010 # The compare.sh is used to compare the build output to other builds. 8011 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 8012 8013 # Spec.sh is currently used by compare-objects.sh 8014 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 8015 8016 # The generated Makefile knows where the spec.gmk is and where the source is. 8017 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 8018 # which will look for generated configurations 8019 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 8020 8021 8022 # Save the arguments given to us 8023 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments 8024 8025 8026 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 8027 8028 for ac_prog in apt-get yum port pkgutil pkgadd 8029 do 8030 # Extract the first word of "$ac_prog", so it can be a program name with args. 8031 set dummy $ac_prog; ac_word=$2 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8033 $as_echo_n "checking for $ac_word... " >&6; } 8034 if ${ac_cv_prog_PKGHANDLER+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036 else 8037 if test -n "$PKGHANDLER"; then 8038 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 8039 else 8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8041 for as_dir in $PATH 8042 do 8043 IFS=$as_save_IFS 8044 test -z "$as_dir" && as_dir=. 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8047 ac_cv_prog_PKGHANDLER="$ac_prog" 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051 done 8052 done 8053 IFS=$as_save_IFS 8054 8055 fi 8056 fi 8057 PKGHANDLER=$ac_cv_prog_PKGHANDLER 8058 if test -n "$PKGHANDLER"; then 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 8060 $as_echo "$PKGHANDLER" >&6; } 8061 else 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8063 $as_echo "no" >&6; } 8064 fi 8065 8066 8067 test -n "$PKGHANDLER" && break 8068 done 8069 8070 8071 8072 # Setup tools that requires more complex handling, or that is not needed by the configure script. 8073 8074 8075 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 8076 if test "x$MAKE" != x; then 8077 # User has supplied a make, test it. 8078 if test ! -f "$MAKE"; then 8079 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 8080 fi 8081 8082 MAKE_CANDIDATE=""$MAKE"" 8083 DESCRIPTION="user supplied MAKE=$MAKE" 8084 if test "x$MAKE_CANDIDATE" != x; then 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 8086 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 8087 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 8088 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 8089 if test "x$IS_GNU_MAKE" = x; then 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 8091 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 8092 else 8093 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 8094 if test "x$IS_MODERN_MAKE" = x; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 8096 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 8097 else 8098 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 8099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8100 MAKE_EXPECTED_ENV='cygwin' 8101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8102 MAKE_EXPECTED_ENV='msys' 8103 else 8104 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 8105 fi 8106 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 8107 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 8108 else 8109 # Not relevant for non-Windows 8110 IS_MAKE_CORRECT_ENV=true 8111 fi 8112 if test "x$IS_MAKE_CORRECT_ENV" = x; then 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5 8114 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;} 8115 else 8116 FOUND_MAKE=$MAKE_CANDIDATE 8117 8118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8119 8120 # First separate the path from the arguments. This will split at the first 8121 # space. 8122 complete="$FOUND_MAKE" 8123 path="${complete%% *}" 8124 tmp="$complete EOL" 8125 arguments="${tmp#* }" 8126 8127 # Input might be given as Windows format, start by converting to 8128 # unix format. 8129 new_path=`$CYGPATH -u "$path"` 8130 8131 # Now try to locate executable using which 8132 new_path=`$WHICH "$new_path" 2> /dev/null` 8133 # bat and cmd files are not always considered executable in cygwin causing which 8134 # to not find them 8135 if test "x$new_path" = x \ 8136 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8137 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8138 new_path=`$CYGPATH -u "$path"` 8139 fi 8140 if test "x$new_path" = x; then 8141 # Oops. Which didn't find the executable. 8142 # The splitting of arguments from the executable at a space might have been incorrect, 8143 # since paths with space are more likely in Windows. Give it another try with the whole 8144 # argument. 8145 path="$complete" 8146 arguments="EOL" 8147 new_path=`$CYGPATH -u "$path"` 8148 new_path=`$WHICH "$new_path" 2> /dev/null` 8149 # bat and cmd files are not always considered executable in cygwin causing which 8150 # to not find them 8151 if test "x$new_path" = x \ 8152 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8153 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8154 new_path=`$CYGPATH -u "$path"` 8155 fi 8156 if test "x$new_path" = x; then 8157 # It's still not found. Now this is an unrecoverable error. 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8159 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8160 has_space=`$ECHO "$complete" | $GREP " "` 8161 if test "x$has_space" != x; then 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8163 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8164 fi 8165 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8166 fi 8167 fi 8168 8169 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 8170 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 8171 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 8172 # "foo.exe" is OK but "foo" is an error. 8173 # 8174 # This test is therefore slightly more accurate than "test -f" to check for file precense. 8175 # It is also a way to make sure we got the proper file name for the real test later on. 8176 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 8177 if test "x$test_shortpath" = x; then 8178 # Short path failed, file does not exist as specified. 8179 # Try adding .exe or .cmd 8180 if test -f "${new_path}.exe"; then 8181 input_to_shortpath="${new_path}.exe" 8182 elif test -f "${new_path}.cmd"; then 8183 input_to_shortpath="${new_path}.cmd" 8184 else 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 8186 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 8188 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 8189 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8190 fi 8191 else 8192 input_to_shortpath="$new_path" 8193 fi 8194 8195 # Call helper function which possibly converts this using DOS-style short mode. 8196 # If so, the updated path is stored in $new_path. 8197 new_path="$input_to_shortpath" 8198 8199 input_path="$input_to_shortpath" 8200 # Check if we need to convert this using DOS-style short mode. If the path 8201 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8202 # take no chances and rewrite it. 8203 # Note: m4 eats our [], so we need to use [ and ] instead. 8204 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 8205 if test "x$has_forbidden_chars" != x; then 8206 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8207 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 8208 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 8209 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 8210 # Going to short mode and back again did indeed matter. Since short mode is 8211 # case insensitive, let's make it lowercase to improve readability. 8212 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8213 # Now convert it back to Unix-stile (cygpath) 8214 input_path=`$CYGPATH -u "$shortmode_path"` 8215 new_path="$input_path" 8216 fi 8217 fi 8218 8219 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 8220 if test "x$test_cygdrive_prefix" = x; then 8221 # As a simple fix, exclude /usr/bin since it's not a real path. 8222 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 8223 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 8224 # a path prefixed by /cygdrive for fixpath to work. 8225 new_path="$CYGWIN_ROOT_PATH$input_path" 8226 fi 8227 fi 8228 8229 # remove trailing .exe if any 8230 new_path="${new_path/%.exe/}" 8231 8232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8233 8234 # First separate the path from the arguments. This will split at the first 8235 # space. 8236 complete="$FOUND_MAKE" 8237 path="${complete%% *}" 8238 tmp="$complete EOL" 8239 arguments="${tmp#* }" 8240 8241 # Input might be given as Windows format, start by converting to 8242 # unix format. 8243 new_path="$path" 8244 8245 windows_path="$new_path" 8246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8247 unix_path=`$CYGPATH -u "$windows_path"` 8248 new_path="$unix_path" 8249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8251 new_path="$unix_path" 8252 fi 8253 8254 8255 # Now try to locate executable using which 8256 new_path=`$WHICH "$new_path" 2> /dev/null` 8257 8258 if test "x$new_path" = x; then 8259 # Oops. Which didn't find the executable. 8260 # The splitting of arguments from the executable at a space might have been incorrect, 8261 # since paths with space are more likely in Windows. Give it another try with the whole 8262 # argument. 8263 path="$complete" 8264 arguments="EOL" 8265 new_path="$path" 8266 8267 windows_path="$new_path" 8268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8269 unix_path=`$CYGPATH -u "$windows_path"` 8270 new_path="$unix_path" 8271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8272 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8273 new_path="$unix_path" 8274 fi 8275 8276 8277 new_path=`$WHICH "$new_path" 2> /dev/null` 8278 8279 if test "x$new_path" = x; then 8280 # It's still not found. Now this is an unrecoverable error. 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8282 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8283 has_space=`$ECHO "$complete" | $GREP " "` 8284 if test "x$has_space" != x; then 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8286 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8287 fi 8288 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8289 fi 8290 fi 8291 8292 # Now new_path has a complete unix path to the binary 8293 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 8294 # Keep paths in /bin as-is, but remove trailing .exe if any 8295 new_path="${new_path/%.exe/}" 8296 # Do not save /bin paths to all_fixpath_prefixes! 8297 else 8298 # Not in mixed or Windows style, start by that. 8299 new_path=`cmd //c echo $new_path` 8300 8301 input_path="$new_path" 8302 # Check if we need to convert this using DOS-style short mode. If the path 8303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8304 # take no chances and rewrite it. 8305 # Note: m4 eats our [], so we need to use [ and ] instead. 8306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 8307 if test "x$has_forbidden_chars" != x; then 8308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8309 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8310 fi 8311 8312 # Output is in $new_path 8313 8314 windows_path="$new_path" 8315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8316 unix_path=`$CYGPATH -u "$windows_path"` 8317 new_path="$unix_path" 8318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8320 new_path="$unix_path" 8321 fi 8322 8323 # remove trailing .exe if any 8324 new_path="${new_path/%.exe/}" 8325 8326 # Save the first 10 bytes of this path to the storage, so fixpath can work. 8327 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 8328 fi 8329 8330 else 8331 # We're on a posix platform. Hooray! :) 8332 # First separate the path from the arguments. This will split at the first 8333 # space. 8334 complete="$FOUND_MAKE" 8335 path="${complete%% *}" 8336 tmp="$complete EOL" 8337 arguments="${tmp#* }" 8338 8339 # Cannot rely on the command "which" here since it doesn't always work. 8340 is_absolute_path=`$ECHO "$path" | $GREP ^/` 8341 if test -z "$is_absolute_path"; then 8342 # Path to executable is not absolute. Find it. 8343 IFS_save="$IFS" 8344 IFS=: 8345 for p in $PATH; do 8346 if test -f "$p/$path" && test -x "$p/$path"; then 8347 new_path="$p/$path" 8348 break 8349 fi 8350 done 8351 IFS="$IFS_save" 8352 else 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 8354 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 8355 new_path="$path" 8356 fi 8357 8358 if test "x$new_path" = x; then 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8360 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8361 has_space=`$ECHO "$complete" | $GREP " "` 8362 if test "x$has_space" != x; then 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 8364 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 8365 fi 8366 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8367 fi 8368 fi 8369 8370 # Now join together the path and the arguments once again 8371 if test "x$arguments" != xEOL; then 8372 new_complete="$new_path ${arguments% *}" 8373 else 8374 new_complete="$new_path" 8375 fi 8376 8377 if test "x$complete" != "x$new_complete"; then 8378 FOUND_MAKE="$new_complete" 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 8380 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 8381 fi 8382 8383 fi 8384 fi 8385 fi 8386 fi 8387 8388 if test "x$FOUND_MAKE" = x; then 8389 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 8390 fi 8391 else 8392 # Try our hardest to locate a correct version of GNU make 8393 for ac_prog in gmake 8394 do 8395 # Extract the first word of "$ac_prog", so it can be a program name with args. 8396 set dummy $ac_prog; ac_word=$2 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398 $as_echo_n "checking for $ac_word... " >&6; } 8399 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401 else 8402 case $CHECK_GMAKE in 8403 [\\/]* | ?:[\\/]*) 8404 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 8405 ;; 8406 *) 8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8408 for as_dir in $PATH 8409 do 8410 IFS=$as_save_IFS 8411 test -z "$as_dir" && as_dir=. 8412 for ac_exec_ext in '' $ac_executable_extensions; do 8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8414 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8416 break 2 8417 fi 8418 done 8419 done 8420 IFS=$as_save_IFS 8421 8422 ;; 8423 esac 8424 fi 8425 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 8426 if test -n "$CHECK_GMAKE"; then 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 8428 $as_echo "$CHECK_GMAKE" >&6; } 8429 else 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8431 $as_echo "no" >&6; } 8432 fi 8433 8434 8435 test -n "$CHECK_GMAKE" && break 8436 done 8437 8438 8439 MAKE_CANDIDATE=""$CHECK_GMAKE"" 8440 DESCRIPTION="gmake in PATH" 8441 if test "x$MAKE_CANDIDATE" != x; then 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 8443 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 8444 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 8445 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 8446 if test "x$IS_GNU_MAKE" = x; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 8448 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 8449 else 8450 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 8451 if test "x$IS_MODERN_MAKE" = x; then 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 8453 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 8454 else 8455 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 8456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8457 MAKE_EXPECTED_ENV='cygwin' 8458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8459 MAKE_EXPECTED_ENV='msys' 8460 else 8461 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 8462 fi 8463 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 8464 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 8465 else 8466 # Not relevant for non-Windows 8467 IS_MAKE_CORRECT_ENV=true 8468 fi 8469 if test "x$IS_MAKE_CORRECT_ENV" = x; then 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5 8471 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;} 8472 else 8473 FOUND_MAKE=$MAKE_CANDIDATE 8474 8475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8476 8477 # First separate the path from the arguments. This will split at the first 8478 # space. 8479 complete="$FOUND_MAKE" 8480 path="${complete%% *}" 8481 tmp="$complete EOL" 8482 arguments="${tmp#* }" 8483 8484 # Input might be given as Windows format, start by converting to 8485 # unix format. 8486 new_path=`$CYGPATH -u "$path"` 8487 8488 # Now try to locate executable using which 8489 new_path=`$WHICH "$new_path" 2> /dev/null` 8490 # bat and cmd files are not always considered executable in cygwin causing which 8491 # to not find them 8492 if test "x$new_path" = x \ 8493 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8494 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8495 new_path=`$CYGPATH -u "$path"` 8496 fi 8497 if test "x$new_path" = x; then 8498 # Oops. Which didn't find the executable. 8499 # The splitting of arguments from the executable at a space might have been incorrect, 8500 # since paths with space are more likely in Windows. Give it another try with the whole 8501 # argument. 8502 path="$complete" 8503 arguments="EOL" 8504 new_path=`$CYGPATH -u "$path"` 8505 new_path=`$WHICH "$new_path" 2> /dev/null` 8506 # bat and cmd files are not always considered executable in cygwin causing which 8507 # to not find them 8508 if test "x$new_path" = x \ 8509 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8510 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8511 new_path=`$CYGPATH -u "$path"` 8512 fi 8513 if test "x$new_path" = x; then 8514 # It's still not found. Now this is an unrecoverable error. 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8516 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8517 has_space=`$ECHO "$complete" | $GREP " "` 8518 if test "x$has_space" != x; then 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8520 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8521 fi 8522 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8523 fi 8524 fi 8525 8526 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 8527 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 8528 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 8529 # "foo.exe" is OK but "foo" is an error. 8530 # 8531 # This test is therefore slightly more accurate than "test -f" to check for file precense. 8532 # It is also a way to make sure we got the proper file name for the real test later on. 8533 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 8534 if test "x$test_shortpath" = x; then 8535 # Short path failed, file does not exist as specified. 8536 # Try adding .exe or .cmd 8537 if test -f "${new_path}.exe"; then 8538 input_to_shortpath="${new_path}.exe" 8539 elif test -f "${new_path}.cmd"; then 8540 input_to_shortpath="${new_path}.cmd" 8541 else 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 8543 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 8545 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 8546 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8547 fi 8548 else 8549 input_to_shortpath="$new_path" 8550 fi 8551 8552 # Call helper function which possibly converts this using DOS-style short mode. 8553 # If so, the updated path is stored in $new_path. 8554 new_path="$input_to_shortpath" 8555 8556 input_path="$input_to_shortpath" 8557 # Check if we need to convert this using DOS-style short mode. If the path 8558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8559 # take no chances and rewrite it. 8560 # Note: m4 eats our [], so we need to use [ and ] instead. 8561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 8562 if test "x$has_forbidden_chars" != x; then 8563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8564 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 8565 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 8566 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 8567 # Going to short mode and back again did indeed matter. Since short mode is 8568 # case insensitive, let's make it lowercase to improve readability. 8569 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8570 # Now convert it back to Unix-stile (cygpath) 8571 input_path=`$CYGPATH -u "$shortmode_path"` 8572 new_path="$input_path" 8573 fi 8574 fi 8575 8576 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 8577 if test "x$test_cygdrive_prefix" = x; then 8578 # As a simple fix, exclude /usr/bin since it's not a real path. 8579 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 8580 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 8581 # a path prefixed by /cygdrive for fixpath to work. 8582 new_path="$CYGWIN_ROOT_PATH$input_path" 8583 fi 8584 fi 8585 8586 # remove trailing .exe if any 8587 new_path="${new_path/%.exe/}" 8588 8589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8590 8591 # First separate the path from the arguments. This will split at the first 8592 # space. 8593 complete="$FOUND_MAKE" 8594 path="${complete%% *}" 8595 tmp="$complete EOL" 8596 arguments="${tmp#* }" 8597 8598 # Input might be given as Windows format, start by converting to 8599 # unix format. 8600 new_path="$path" 8601 8602 windows_path="$new_path" 8603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8604 unix_path=`$CYGPATH -u "$windows_path"` 8605 new_path="$unix_path" 8606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8607 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8608 new_path="$unix_path" 8609 fi 8610 8611 8612 # Now try to locate executable using which 8613 new_path=`$WHICH "$new_path" 2> /dev/null` 8614 8615 if test "x$new_path" = x; then 8616 # Oops. Which didn't find the executable. 8617 # The splitting of arguments from the executable at a space might have been incorrect, 8618 # since paths with space are more likely in Windows. Give it another try with the whole 8619 # argument. 8620 path="$complete" 8621 arguments="EOL" 8622 new_path="$path" 8623 8624 windows_path="$new_path" 8625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8626 unix_path=`$CYGPATH -u "$windows_path"` 8627 new_path="$unix_path" 8628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8630 new_path="$unix_path" 8631 fi 8632 8633 8634 new_path=`$WHICH "$new_path" 2> /dev/null` 8635 8636 if test "x$new_path" = x; then 8637 # It's still not found. Now this is an unrecoverable error. 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8639 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8640 has_space=`$ECHO "$complete" | $GREP " "` 8641 if test "x$has_space" != x; then 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8643 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8644 fi 8645 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8646 fi 8647 fi 8648 8649 # Now new_path has a complete unix path to the binary 8650 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 8651 # Keep paths in /bin as-is, but remove trailing .exe if any 8652 new_path="${new_path/%.exe/}" 8653 # Do not save /bin paths to all_fixpath_prefixes! 8654 else 8655 # Not in mixed or Windows style, start by that. 8656 new_path=`cmd //c echo $new_path` 8657 8658 input_path="$new_path" 8659 # Check if we need to convert this using DOS-style short mode. If the path 8660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8661 # take no chances and rewrite it. 8662 # Note: m4 eats our [], so we need to use [ and ] instead. 8663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 8664 if test "x$has_forbidden_chars" != x; then 8665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8666 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8667 fi 8668 8669 # Output is in $new_path 8670 8671 windows_path="$new_path" 8672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8673 unix_path=`$CYGPATH -u "$windows_path"` 8674 new_path="$unix_path" 8675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8677 new_path="$unix_path" 8678 fi 8679 8680 # remove trailing .exe if any 8681 new_path="${new_path/%.exe/}" 8682 8683 # Save the first 10 bytes of this path to the storage, so fixpath can work. 8684 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 8685 fi 8686 8687 else 8688 # We're on a posix platform. Hooray! :) 8689 # First separate the path from the arguments. This will split at the first 8690 # space. 8691 complete="$FOUND_MAKE" 8692 path="${complete%% *}" 8693 tmp="$complete EOL" 8694 arguments="${tmp#* }" 8695 8696 # Cannot rely on the command "which" here since it doesn't always work. 8697 is_absolute_path=`$ECHO "$path" | $GREP ^/` 8698 if test -z "$is_absolute_path"; then 8699 # Path to executable is not absolute. Find it. 8700 IFS_save="$IFS" 8701 IFS=: 8702 for p in $PATH; do 8703 if test -f "$p/$path" && test -x "$p/$path"; then 8704 new_path="$p/$path" 8705 break 8706 fi 8707 done 8708 IFS="$IFS_save" 8709 else 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 8711 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 8712 new_path="$path" 8713 fi 8714 8715 if test "x$new_path" = x; then 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8717 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8718 has_space=`$ECHO "$complete" | $GREP " "` 8719 if test "x$has_space" != x; then 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 8721 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 8722 fi 8723 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8724 fi 8725 fi 8726 8727 # Now join together the path and the arguments once again 8728 if test "x$arguments" != xEOL; then 8729 new_complete="$new_path ${arguments% *}" 8730 else 8731 new_complete="$new_path" 8732 fi 8733 8734 if test "x$complete" != "x$new_complete"; then 8735 FOUND_MAKE="$new_complete" 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 8737 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 8738 fi 8739 8740 fi 8741 fi 8742 fi 8743 fi 8744 8745 8746 if test "x$FOUND_MAKE" = x; then 8747 for ac_prog in make 8748 do 8749 # Extract the first word of "$ac_prog", so it can be a program name with args. 8750 set dummy $ac_prog; ac_word=$2 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8752 $as_echo_n "checking for $ac_word... " >&6; } 8753 if ${ac_cv_path_CHECK_MAKE+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755 else 8756 case $CHECK_MAKE in 8757 [\\/]* | ?:[\\/]*) 8758 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 8759 ;; 8760 *) 8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8762 for as_dir in $PATH 8763 do 8764 IFS=$as_save_IFS 8765 test -z "$as_dir" && as_dir=. 8766 for ac_exec_ext in '' $ac_executable_extensions; do 8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8768 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8770 break 2 8771 fi 8772 done 8773 done 8774 IFS=$as_save_IFS 8775 8776 ;; 8777 esac 8778 fi 8779 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 8780 if test -n "$CHECK_MAKE"; then 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 8782 $as_echo "$CHECK_MAKE" >&6; } 8783 else 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8785 $as_echo "no" >&6; } 8786 fi 8787 8788 8789 test -n "$CHECK_MAKE" && break 8790 done 8791 8792 8793 MAKE_CANDIDATE=""$CHECK_MAKE"" 8794 DESCRIPTION="make in PATH" 8795 if test "x$MAKE_CANDIDATE" != x; then 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 8797 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 8798 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 8799 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 8800 if test "x$IS_GNU_MAKE" = x; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 8802 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 8803 else 8804 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 8805 if test "x$IS_MODERN_MAKE" = x; then 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 8807 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 8808 else 8809 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 8810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8811 MAKE_EXPECTED_ENV='cygwin' 8812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8813 MAKE_EXPECTED_ENV='msys' 8814 else 8815 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 8816 fi 8817 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 8818 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 8819 else 8820 # Not relevant for non-Windows 8821 IS_MAKE_CORRECT_ENV=true 8822 fi 8823 if test "x$IS_MAKE_CORRECT_ENV" = x; then 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5 8825 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;} 8826 else 8827 FOUND_MAKE=$MAKE_CANDIDATE 8828 8829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8830 8831 # First separate the path from the arguments. This will split at the first 8832 # space. 8833 complete="$FOUND_MAKE" 8834 path="${complete%% *}" 8835 tmp="$complete EOL" 8836 arguments="${tmp#* }" 8837 8838 # Input might be given as Windows format, start by converting to 8839 # unix format. 8840 new_path=`$CYGPATH -u "$path"` 8841 8842 # Now try to locate executable using which 8843 new_path=`$WHICH "$new_path" 2> /dev/null` 8844 # bat and cmd files are not always considered executable in cygwin causing which 8845 # to not find them 8846 if test "x$new_path" = x \ 8847 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8848 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8849 new_path=`$CYGPATH -u "$path"` 8850 fi 8851 if test "x$new_path" = x; then 8852 # Oops. Which didn't find the executable. 8853 # The splitting of arguments from the executable at a space might have been incorrect, 8854 # since paths with space are more likely in Windows. Give it another try with the whole 8855 # argument. 8856 path="$complete" 8857 arguments="EOL" 8858 new_path=`$CYGPATH -u "$path"` 8859 new_path=`$WHICH "$new_path" 2> /dev/null` 8860 # bat and cmd files are not always considered executable in cygwin causing which 8861 # to not find them 8862 if test "x$new_path" = x \ 8863 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 8864 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 8865 new_path=`$CYGPATH -u "$path"` 8866 fi 8867 if test "x$new_path" = x; then 8868 # It's still not found. Now this is an unrecoverable error. 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8870 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8871 has_space=`$ECHO "$complete" | $GREP " "` 8872 if test "x$has_space" != x; then 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8874 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8875 fi 8876 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8877 fi 8878 fi 8879 8880 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 8881 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 8882 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 8883 # "foo.exe" is OK but "foo" is an error. 8884 # 8885 # This test is therefore slightly more accurate than "test -f" to check for file precense. 8886 # It is also a way to make sure we got the proper file name for the real test later on. 8887 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 8888 if test "x$test_shortpath" = x; then 8889 # Short path failed, file does not exist as specified. 8890 # Try adding .exe or .cmd 8891 if test -f "${new_path}.exe"; then 8892 input_to_shortpath="${new_path}.exe" 8893 elif test -f "${new_path}.cmd"; then 8894 input_to_shortpath="${new_path}.cmd" 8895 else 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 8897 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 8899 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 8900 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 8901 fi 8902 else 8903 input_to_shortpath="$new_path" 8904 fi 8905 8906 # Call helper function which possibly converts this using DOS-style short mode. 8907 # If so, the updated path is stored in $new_path. 8908 new_path="$input_to_shortpath" 8909 8910 input_path="$input_to_shortpath" 8911 # Check if we need to convert this using DOS-style short mode. If the path 8912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 8913 # take no chances and rewrite it. 8914 # Note: m4 eats our [], so we need to use [ and ] instead. 8915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 8916 if test "x$has_forbidden_chars" != x; then 8917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 8918 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 8919 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 8920 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 8921 # Going to short mode and back again did indeed matter. Since short mode is 8922 # case insensitive, let's make it lowercase to improve readability. 8923 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 8924 # Now convert it back to Unix-stile (cygpath) 8925 input_path=`$CYGPATH -u "$shortmode_path"` 8926 new_path="$input_path" 8927 fi 8928 fi 8929 8930 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 8931 if test "x$test_cygdrive_prefix" = x; then 8932 # As a simple fix, exclude /usr/bin since it's not a real path. 8933 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 8934 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 8935 # a path prefixed by /cygdrive for fixpath to work. 8936 new_path="$CYGWIN_ROOT_PATH$input_path" 8937 fi 8938 fi 8939 8940 # remove trailing .exe if any 8941 new_path="${new_path/%.exe/}" 8942 8943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8944 8945 # First separate the path from the arguments. This will split at the first 8946 # space. 8947 complete="$FOUND_MAKE" 8948 path="${complete%% *}" 8949 tmp="$complete EOL" 8950 arguments="${tmp#* }" 8951 8952 # Input might be given as Windows format, start by converting to 8953 # unix format. 8954 new_path="$path" 8955 8956 windows_path="$new_path" 8957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8958 unix_path=`$CYGPATH -u "$windows_path"` 8959 new_path="$unix_path" 8960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8962 new_path="$unix_path" 8963 fi 8964 8965 8966 # Now try to locate executable using which 8967 new_path=`$WHICH "$new_path" 2> /dev/null` 8968 8969 if test "x$new_path" = x; then 8970 # Oops. Which didn't find the executable. 8971 # The splitting of arguments from the executable at a space might have been incorrect, 8972 # since paths with space are more likely in Windows. Give it another try with the whole 8973 # argument. 8974 path="$complete" 8975 arguments="EOL" 8976 new_path="$path" 8977 8978 windows_path="$new_path" 8979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 8980 unix_path=`$CYGPATH -u "$windows_path"` 8981 new_path="$unix_path" 8982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 8983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 8984 new_path="$unix_path" 8985 fi 8986 8987 8988 new_path=`$WHICH "$new_path" 2> /dev/null` 8989 8990 if test "x$new_path" = x; then 8991 # It's still not found. Now this is an unrecoverable error. 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 8993 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 8994 has_space=`$ECHO "$complete" | $GREP " "` 8995 if test "x$has_space" != x; then 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 8997 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 8998 fi 8999 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9000 fi 9001 fi 9002 9003 # Now new_path has a complete unix path to the binary 9004 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 9005 # Keep paths in /bin as-is, but remove trailing .exe if any 9006 new_path="${new_path/%.exe/}" 9007 # Do not save /bin paths to all_fixpath_prefixes! 9008 else 9009 # Not in mixed or Windows style, start by that. 9010 new_path=`cmd //c echo $new_path` 9011 9012 input_path="$new_path" 9013 # Check if we need to convert this using DOS-style short mode. If the path 9014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9015 # take no chances and rewrite it. 9016 # Note: m4 eats our [], so we need to use [ and ] instead. 9017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 9018 if test "x$has_forbidden_chars" != x; then 9019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9021 fi 9022 9023 # Output is in $new_path 9024 9025 windows_path="$new_path" 9026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9027 unix_path=`$CYGPATH -u "$windows_path"` 9028 new_path="$unix_path" 9029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9031 new_path="$unix_path" 9032 fi 9033 9034 # remove trailing .exe if any 9035 new_path="${new_path/%.exe/}" 9036 9037 # Save the first 10 bytes of this path to the storage, so fixpath can work. 9038 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 9039 fi 9040 9041 else 9042 # We're on a posix platform. Hooray! :) 9043 # First separate the path from the arguments. This will split at the first 9044 # space. 9045 complete="$FOUND_MAKE" 9046 path="${complete%% *}" 9047 tmp="$complete EOL" 9048 arguments="${tmp#* }" 9049 9050 # Cannot rely on the command "which" here since it doesn't always work. 9051 is_absolute_path=`$ECHO "$path" | $GREP ^/` 9052 if test -z "$is_absolute_path"; then 9053 # Path to executable is not absolute. Find it. 9054 IFS_save="$IFS" 9055 IFS=: 9056 for p in $PATH; do 9057 if test -f "$p/$path" && test -x "$p/$path"; then 9058 new_path="$p/$path" 9059 break 9060 fi 9061 done 9062 IFS="$IFS_save" 9063 else 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 9065 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 9066 new_path="$path" 9067 fi 9068 9069 if test "x$new_path" = x; then 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9071 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9072 has_space=`$ECHO "$complete" | $GREP " "` 9073 if test "x$has_space" != x; then 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 9075 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 9076 fi 9077 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9078 fi 9079 fi 9080 9081 # Now join together the path and the arguments once again 9082 if test "x$arguments" != xEOL; then 9083 new_complete="$new_path ${arguments% *}" 9084 else 9085 new_complete="$new_path" 9086 fi 9087 9088 if test "x$complete" != "x$new_complete"; then 9089 FOUND_MAKE="$new_complete" 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 9091 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 9092 fi 9093 9094 fi 9095 fi 9096 fi 9097 fi 9098 9099 fi 9100 9101 if test "x$FOUND_MAKE" = x; then 9102 if test "x$TOOLS_DIR" != x; then 9103 # We have a tools-dir, check that as well before giving up. 9104 OLD_PATH=$PATH 9105 PATH=$TOOLS_DIR:$PATH 9106 for ac_prog in gmake 9107 do 9108 # Extract the first word of "$ac_prog", so it can be a program name with args. 9109 set dummy $ac_prog; ac_word=$2 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9111 $as_echo_n "checking for $ac_word... " >&6; } 9112 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114 else 9115 case $CHECK_TOOLSDIR_GMAKE in 9116 [\\/]* | ?:[\\/]*) 9117 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 9118 ;; 9119 *) 9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9121 for as_dir in $PATH 9122 do 9123 IFS=$as_save_IFS 9124 test -z "$as_dir" && as_dir=. 9125 for ac_exec_ext in '' $ac_executable_extensions; do 9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9127 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9129 break 2 9130 fi 9131 done 9132 done 9133 IFS=$as_save_IFS 9134 9135 ;; 9136 esac 9137 fi 9138 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 9139 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 9141 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 9142 else 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9144 $as_echo "no" >&6; } 9145 fi 9146 9147 9148 test -n "$CHECK_TOOLSDIR_GMAKE" && break 9149 done 9150 9151 9152 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 9153 DESCRIPTION="gmake in tools-dir" 9154 if test "x$MAKE_CANDIDATE" != x; then 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 9156 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 9157 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 9158 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 9159 if test "x$IS_GNU_MAKE" = x; then 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 9161 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 9162 else 9163 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 9164 if test "x$IS_MODERN_MAKE" = x; then 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 9166 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 9167 else 9168 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 9169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9170 MAKE_EXPECTED_ENV='cygwin' 9171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9172 MAKE_EXPECTED_ENV='msys' 9173 else 9174 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 9175 fi 9176 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 9177 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 9178 else 9179 # Not relevant for non-Windows 9180 IS_MAKE_CORRECT_ENV=true 9181 fi 9182 if test "x$IS_MAKE_CORRECT_ENV" = x; then 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5 9184 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;} 9185 else 9186 FOUND_MAKE=$MAKE_CANDIDATE 9187 9188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9189 9190 # First separate the path from the arguments. This will split at the first 9191 # space. 9192 complete="$FOUND_MAKE" 9193 path="${complete%% *}" 9194 tmp="$complete EOL" 9195 arguments="${tmp#* }" 9196 9197 # Input might be given as Windows format, start by converting to 9198 # unix format. 9199 new_path=`$CYGPATH -u "$path"` 9200 9201 # Now try to locate executable using which 9202 new_path=`$WHICH "$new_path" 2> /dev/null` 9203 # bat and cmd files are not always considered executable in cygwin causing which 9204 # to not find them 9205 if test "x$new_path" = x \ 9206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9208 new_path=`$CYGPATH -u "$path"` 9209 fi 9210 if test "x$new_path" = x; then 9211 # Oops. Which didn't find the executable. 9212 # The splitting of arguments from the executable at a space might have been incorrect, 9213 # since paths with space are more likely in Windows. Give it another try with the whole 9214 # argument. 9215 path="$complete" 9216 arguments="EOL" 9217 new_path=`$CYGPATH -u "$path"` 9218 new_path=`$WHICH "$new_path" 2> /dev/null` 9219 # bat and cmd files are not always considered executable in cygwin causing which 9220 # to not find them 9221 if test "x$new_path" = x \ 9222 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9223 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9224 new_path=`$CYGPATH -u "$path"` 9225 fi 9226 if test "x$new_path" = x; then 9227 # It's still not found. Now this is an unrecoverable error. 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9229 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9230 has_space=`$ECHO "$complete" | $GREP " "` 9231 if test "x$has_space" != x; then 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9233 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9234 fi 9235 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9236 fi 9237 fi 9238 9239 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 9240 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 9241 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 9242 # "foo.exe" is OK but "foo" is an error. 9243 # 9244 # This test is therefore slightly more accurate than "test -f" to check for file precense. 9245 # It is also a way to make sure we got the proper file name for the real test later on. 9246 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 9247 if test "x$test_shortpath" = x; then 9248 # Short path failed, file does not exist as specified. 9249 # Try adding .exe or .cmd 9250 if test -f "${new_path}.exe"; then 9251 input_to_shortpath="${new_path}.exe" 9252 elif test -f "${new_path}.cmd"; then 9253 input_to_shortpath="${new_path}.cmd" 9254 else 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 9256 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 9258 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 9259 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9260 fi 9261 else 9262 input_to_shortpath="$new_path" 9263 fi 9264 9265 # Call helper function which possibly converts this using DOS-style short mode. 9266 # If so, the updated path is stored in $new_path. 9267 new_path="$input_to_shortpath" 9268 9269 input_path="$input_to_shortpath" 9270 # Check if we need to convert this using DOS-style short mode. If the path 9271 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9272 # take no chances and rewrite it. 9273 # Note: m4 eats our [], so we need to use [ and ] instead. 9274 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 9275 if test "x$has_forbidden_chars" != x; then 9276 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9277 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 9278 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 9279 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 9280 # Going to short mode and back again did indeed matter. Since short mode is 9281 # case insensitive, let's make it lowercase to improve readability. 9282 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9283 # Now convert it back to Unix-stile (cygpath) 9284 input_path=`$CYGPATH -u "$shortmode_path"` 9285 new_path="$input_path" 9286 fi 9287 fi 9288 9289 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 9290 if test "x$test_cygdrive_prefix" = x; then 9291 # As a simple fix, exclude /usr/bin since it's not a real path. 9292 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 9293 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 9294 # a path prefixed by /cygdrive for fixpath to work. 9295 new_path="$CYGWIN_ROOT_PATH$input_path" 9296 fi 9297 fi 9298 9299 # remove trailing .exe if any 9300 new_path="${new_path/%.exe/}" 9301 9302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9303 9304 # First separate the path from the arguments. This will split at the first 9305 # space. 9306 complete="$FOUND_MAKE" 9307 path="${complete%% *}" 9308 tmp="$complete EOL" 9309 arguments="${tmp#* }" 9310 9311 # Input might be given as Windows format, start by converting to 9312 # unix format. 9313 new_path="$path" 9314 9315 windows_path="$new_path" 9316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9317 unix_path=`$CYGPATH -u "$windows_path"` 9318 new_path="$unix_path" 9319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9321 new_path="$unix_path" 9322 fi 9323 9324 9325 # Now try to locate executable using which 9326 new_path=`$WHICH "$new_path" 2> /dev/null` 9327 9328 if test "x$new_path" = x; then 9329 # Oops. Which didn't find the executable. 9330 # The splitting of arguments from the executable at a space might have been incorrect, 9331 # since paths with space are more likely in Windows. Give it another try with the whole 9332 # argument. 9333 path="$complete" 9334 arguments="EOL" 9335 new_path="$path" 9336 9337 windows_path="$new_path" 9338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9339 unix_path=`$CYGPATH -u "$windows_path"` 9340 new_path="$unix_path" 9341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9343 new_path="$unix_path" 9344 fi 9345 9346 9347 new_path=`$WHICH "$new_path" 2> /dev/null` 9348 9349 if test "x$new_path" = x; then 9350 # It's still not found. Now this is an unrecoverable error. 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9352 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9353 has_space=`$ECHO "$complete" | $GREP " "` 9354 if test "x$has_space" != x; then 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9356 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9357 fi 9358 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9359 fi 9360 fi 9361 9362 # Now new_path has a complete unix path to the binary 9363 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 9364 # Keep paths in /bin as-is, but remove trailing .exe if any 9365 new_path="${new_path/%.exe/}" 9366 # Do not save /bin paths to all_fixpath_prefixes! 9367 else 9368 # Not in mixed or Windows style, start by that. 9369 new_path=`cmd //c echo $new_path` 9370 9371 input_path="$new_path" 9372 # Check if we need to convert this using DOS-style short mode. If the path 9373 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9374 # take no chances and rewrite it. 9375 # Note: m4 eats our [], so we need to use [ and ] instead. 9376 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 9377 if test "x$has_forbidden_chars" != x; then 9378 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9379 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9380 fi 9381 9382 # Output is in $new_path 9383 9384 windows_path="$new_path" 9385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9386 unix_path=`$CYGPATH -u "$windows_path"` 9387 new_path="$unix_path" 9388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9390 new_path="$unix_path" 9391 fi 9392 9393 # remove trailing .exe if any 9394 new_path="${new_path/%.exe/}" 9395 9396 # Save the first 10 bytes of this path to the storage, so fixpath can work. 9397 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 9398 fi 9399 9400 else 9401 # We're on a posix platform. Hooray! :) 9402 # First separate the path from the arguments. This will split at the first 9403 # space. 9404 complete="$FOUND_MAKE" 9405 path="${complete%% *}" 9406 tmp="$complete EOL" 9407 arguments="${tmp#* }" 9408 9409 # Cannot rely on the command "which" here since it doesn't always work. 9410 is_absolute_path=`$ECHO "$path" | $GREP ^/` 9411 if test -z "$is_absolute_path"; then 9412 # Path to executable is not absolute. Find it. 9413 IFS_save="$IFS" 9414 IFS=: 9415 for p in $PATH; do 9416 if test -f "$p/$path" && test -x "$p/$path"; then 9417 new_path="$p/$path" 9418 break 9419 fi 9420 done 9421 IFS="$IFS_save" 9422 else 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 9424 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 9425 new_path="$path" 9426 fi 9427 9428 if test "x$new_path" = x; then 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9430 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9431 has_space=`$ECHO "$complete" | $GREP " "` 9432 if test "x$has_space" != x; then 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 9434 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 9435 fi 9436 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9437 fi 9438 fi 9439 9440 # Now join together the path and the arguments once again 9441 if test "x$arguments" != xEOL; then 9442 new_complete="$new_path ${arguments% *}" 9443 else 9444 new_complete="$new_path" 9445 fi 9446 9447 if test "x$complete" != "x$new_complete"; then 9448 FOUND_MAKE="$new_complete" 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 9450 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 9451 fi 9452 9453 fi 9454 fi 9455 fi 9456 fi 9457 9458 if test "x$FOUND_MAKE" = x; then 9459 for ac_prog in make 9460 do 9461 # Extract the first word of "$ac_prog", so it can be a program name with args. 9462 set dummy $ac_prog; ac_word=$2 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9464 $as_echo_n "checking for $ac_word... " >&6; } 9465 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467 else 9468 case $CHECK_TOOLSDIR_MAKE in 9469 [\\/]* | ?:[\\/]*) 9470 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 9471 ;; 9472 *) 9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9474 for as_dir in $PATH 9475 do 9476 IFS=$as_save_IFS 9477 test -z "$as_dir" && as_dir=. 9478 for ac_exec_ext in '' $ac_executable_extensions; do 9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9480 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9482 break 2 9483 fi 9484 done 9485 done 9486 IFS=$as_save_IFS 9487 9488 ;; 9489 esac 9490 fi 9491 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 9492 if test -n "$CHECK_TOOLSDIR_MAKE"; then 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 9494 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 9495 else 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9497 $as_echo "no" >&6; } 9498 fi 9499 9500 9501 test -n "$CHECK_TOOLSDIR_MAKE" && break 9502 done 9503 9504 9505 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 9506 DESCRIPTION="make in tools-dir" 9507 if test "x$MAKE_CANDIDATE" != x; then 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 9509 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 9510 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 9511 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 9512 if test "x$IS_GNU_MAKE" = x; then 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 9514 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 9515 else 9516 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP '3.8[12346789]'` 9517 if test "x$IS_MODERN_MAKE" = x; then 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 9519 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 9520 else 9521 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 9522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9523 MAKE_EXPECTED_ENV='cygwin' 9524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9525 MAKE_EXPECTED_ENV='msys' 9526 else 9527 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 9528 fi 9529 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 9530 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 9531 else 9532 # Not relevant for non-Windows 9533 IS_MAKE_CORRECT_ENV=true 9534 fi 9535 if test "x$IS_MAKE_CORRECT_ENV" = x; then 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5 9537 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;} 9538 else 9539 FOUND_MAKE=$MAKE_CANDIDATE 9540 9541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9542 9543 # First separate the path from the arguments. This will split at the first 9544 # space. 9545 complete="$FOUND_MAKE" 9546 path="${complete%% *}" 9547 tmp="$complete EOL" 9548 arguments="${tmp#* }" 9549 9550 # Input might be given as Windows format, start by converting to 9551 # unix format. 9552 new_path=`$CYGPATH -u "$path"` 9553 9554 # Now try to locate executable using which 9555 new_path=`$WHICH "$new_path" 2> /dev/null` 9556 # bat and cmd files are not always considered executable in cygwin causing which 9557 # to not find them 9558 if test "x$new_path" = x \ 9559 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9560 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9561 new_path=`$CYGPATH -u "$path"` 9562 fi 9563 if test "x$new_path" = x; then 9564 # Oops. Which didn't find the executable. 9565 # The splitting of arguments from the executable at a space might have been incorrect, 9566 # since paths with space are more likely in Windows. Give it another try with the whole 9567 # argument. 9568 path="$complete" 9569 arguments="EOL" 9570 new_path=`$CYGPATH -u "$path"` 9571 new_path=`$WHICH "$new_path" 2> /dev/null` 9572 # bat and cmd files are not always considered executable in cygwin causing which 9573 # to not find them 9574 if test "x$new_path" = x \ 9575 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 9576 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 9577 new_path=`$CYGPATH -u "$path"` 9578 fi 9579 if test "x$new_path" = x; then 9580 # It's still not found. Now this is an unrecoverable error. 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9582 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9583 has_space=`$ECHO "$complete" | $GREP " "` 9584 if test "x$has_space" != x; then 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9586 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9587 fi 9588 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9589 fi 9590 fi 9591 9592 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 9593 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 9594 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 9595 # "foo.exe" is OK but "foo" is an error. 9596 # 9597 # This test is therefore slightly more accurate than "test -f" to check for file precense. 9598 # It is also a way to make sure we got the proper file name for the real test later on. 9599 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 9600 if test "x$test_shortpath" = x; then 9601 # Short path failed, file does not exist as specified. 9602 # Try adding .exe or .cmd 9603 if test -f "${new_path}.exe"; then 9604 input_to_shortpath="${new_path}.exe" 9605 elif test -f "${new_path}.cmd"; then 9606 input_to_shortpath="${new_path}.cmd" 9607 else 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 9609 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 9611 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 9612 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9613 fi 9614 else 9615 input_to_shortpath="$new_path" 9616 fi 9617 9618 # Call helper function which possibly converts this using DOS-style short mode. 9619 # If so, the updated path is stored in $new_path. 9620 new_path="$input_to_shortpath" 9621 9622 input_path="$input_to_shortpath" 9623 # Check if we need to convert this using DOS-style short mode. If the path 9624 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9625 # take no chances and rewrite it. 9626 # Note: m4 eats our [], so we need to use [ and ] instead. 9627 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 9628 if test "x$has_forbidden_chars" != x; then 9629 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9630 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 9631 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 9632 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 9633 # Going to short mode and back again did indeed matter. Since short mode is 9634 # case insensitive, let's make it lowercase to improve readability. 9635 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9636 # Now convert it back to Unix-stile (cygpath) 9637 input_path=`$CYGPATH -u "$shortmode_path"` 9638 new_path="$input_path" 9639 fi 9640 fi 9641 9642 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 9643 if test "x$test_cygdrive_prefix" = x; then 9644 # As a simple fix, exclude /usr/bin since it's not a real path. 9645 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 9646 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 9647 # a path prefixed by /cygdrive for fixpath to work. 9648 new_path="$CYGWIN_ROOT_PATH$input_path" 9649 fi 9650 fi 9651 9652 # remove trailing .exe if any 9653 new_path="${new_path/%.exe/}" 9654 9655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9656 9657 # First separate the path from the arguments. This will split at the first 9658 # space. 9659 complete="$FOUND_MAKE" 9660 path="${complete%% *}" 9661 tmp="$complete EOL" 9662 arguments="${tmp#* }" 9663 9664 # Input might be given as Windows format, start by converting to 9665 # unix format. 9666 new_path="$path" 9667 9668 windows_path="$new_path" 9669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9670 unix_path=`$CYGPATH -u "$windows_path"` 9671 new_path="$unix_path" 9672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9674 new_path="$unix_path" 9675 fi 9676 9677 9678 # Now try to locate executable using which 9679 new_path=`$WHICH "$new_path" 2> /dev/null` 9680 9681 if test "x$new_path" = x; then 9682 # Oops. Which didn't find the executable. 9683 # The splitting of arguments from the executable at a space might have been incorrect, 9684 # since paths with space are more likely in Windows. Give it another try with the whole 9685 # argument. 9686 path="$complete" 9687 arguments="EOL" 9688 new_path="$path" 9689 9690 windows_path="$new_path" 9691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9692 unix_path=`$CYGPATH -u "$windows_path"` 9693 new_path="$unix_path" 9694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9696 new_path="$unix_path" 9697 fi 9698 9699 9700 new_path=`$WHICH "$new_path" 2> /dev/null` 9701 9702 if test "x$new_path" = x; then 9703 # It's still not found. Now this is an unrecoverable error. 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9705 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9706 has_space=`$ECHO "$complete" | $GREP " "` 9707 if test "x$has_space" != x; then 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 9709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 9710 fi 9711 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9712 fi 9713 fi 9714 9715 # Now new_path has a complete unix path to the binary 9716 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 9717 # Keep paths in /bin as-is, but remove trailing .exe if any 9718 new_path="${new_path/%.exe/}" 9719 # Do not save /bin paths to all_fixpath_prefixes! 9720 else 9721 # Not in mixed or Windows style, start by that. 9722 new_path=`cmd //c echo $new_path` 9723 9724 input_path="$new_path" 9725 # Check if we need to convert this using DOS-style short mode. If the path 9726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 9727 # take no chances and rewrite it. 9728 # Note: m4 eats our [], so we need to use [ and ] instead. 9729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 9730 if test "x$has_forbidden_chars" != x; then 9731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 9732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 9733 fi 9734 9735 # Output is in $new_path 9736 9737 windows_path="$new_path" 9738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 9739 unix_path=`$CYGPATH -u "$windows_path"` 9740 new_path="$unix_path" 9741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 9742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 9743 new_path="$unix_path" 9744 fi 9745 9746 # remove trailing .exe if any 9747 new_path="${new_path/%.exe/}" 9748 9749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 9750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 9751 fi 9752 9753 else 9754 # We're on a posix platform. Hooray! :) 9755 # First separate the path from the arguments. This will split at the first 9756 # space. 9757 complete="$FOUND_MAKE" 9758 path="${complete%% *}" 9759 tmp="$complete EOL" 9760 arguments="${tmp#* }" 9761 9762 # Cannot rely on the command "which" here since it doesn't always work. 9763 is_absolute_path=`$ECHO "$path" | $GREP ^/` 9764 if test -z "$is_absolute_path"; then 9765 # Path to executable is not absolute. Find it. 9766 IFS_save="$IFS" 9767 IFS=: 9768 for p in $PATH; do 9769 if test -f "$p/$path" && test -x "$p/$path"; then 9770 new_path="$p/$path" 9771 break 9772 fi 9773 done 9774 IFS="$IFS_save" 9775 else 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 9777 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 9778 new_path="$path" 9779 fi 9780 9781 if test "x$new_path" = x; then 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 9783 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 9784 has_space=`$ECHO "$complete" | $GREP " "` 9785 if test "x$has_space" != x; then 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 9787 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 9788 fi 9789 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 9790 fi 9791 fi 9792 9793 # Now join together the path and the arguments once again 9794 if test "x$arguments" != xEOL; then 9795 new_complete="$new_path ${arguments% *}" 9796 else 9797 new_complete="$new_path" 9798 fi 9799 9800 if test "x$complete" != "x$new_complete"; then 9801 FOUND_MAKE="$new_complete" 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 9803 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 9804 fi 9805 9806 fi 9807 fi 9808 fi 9809 fi 9810 9811 fi 9812 PATH=$OLD_PATH 9813 fi 9814 fi 9815 9816 if test "x$FOUND_MAKE" = x; then 9817 as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 9818 fi 9819 fi 9820 9821 MAKE=$FOUND_MAKE 9822 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 9824 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 9825 9826 9827 9828 # Test if find supports -delete 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 9830 $as_echo_n "checking if find supports -delete... " >&6; } 9831 FIND_DELETE="-delete" 9832 9833 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 9834 9835 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 9836 9837 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 9838 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 9839 # No, it does not. 9840 rm $DELETEDIR/TestIfFindSupportsDelete 9841 FIND_DELETE="-exec rm \{\} \+" 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9843 $as_echo "no" >&6; } 9844 else 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9846 $as_echo "yes" >&6; } 9847 fi 9848 rmdir $DELETEDIR 9849 9850 9851 9852 # These tools might not be installed by default, 9853 # need hint on how to install them. 9854 9855 for ac_prog in unzip 9856 do 9857 # Extract the first word of "$ac_prog", so it can be a program name with args. 9858 set dummy $ac_prog; ac_word=$2 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9860 $as_echo_n "checking for $ac_word... " >&6; } 9861 if ${ac_cv_path_UNZIP+:} false; then : 9862 $as_echo_n "(cached) " >&6 9863 else 9864 case $UNZIP in 9865 [\\/]* | ?:[\\/]*) 9866 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 9867 ;; 9868 *) 9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9870 for as_dir in $PATH 9871 do 9872 IFS=$as_save_IFS 9873 test -z "$as_dir" && as_dir=. 9874 for ac_exec_ext in '' $ac_executable_extensions; do 9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9876 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9878 break 2 9879 fi 9880 done 9881 done 9882 IFS=$as_save_IFS 9883 9884 ;; 9885 esac 9886 fi 9887 UNZIP=$ac_cv_path_UNZIP 9888 if test -n "$UNZIP"; then 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 9890 $as_echo "$UNZIP" >&6; } 9891 else 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9893 $as_echo "no" >&6; } 9894 fi 9895 9896 9897 test -n "$UNZIP" && break 9898 done 9899 9900 9901 if test "x$UNZIP" = x; then 9902 if test "xunzip" = x; then 9903 PROG_NAME=unzip 9904 else 9905 PROG_NAME=unzip 9906 fi 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 9908 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 9909 as_fn_error $? "Cannot continue" "$LINENO" 5 9910 fi 9911 9912 9913 9914 for ac_prog in zip 9915 do 9916 # Extract the first word of "$ac_prog", so it can be a program name with args. 9917 set dummy $ac_prog; ac_word=$2 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9919 $as_echo_n "checking for $ac_word... " >&6; } 9920 if ${ac_cv_path_ZIP+:} false; then : 9921 $as_echo_n "(cached) " >&6 9922 else 9923 case $ZIP in 9924 [\\/]* | ?:[\\/]*) 9925 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 9926 ;; 9927 *) 9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9929 for as_dir in $PATH 9930 do 9931 IFS=$as_save_IFS 9932 test -z "$as_dir" && as_dir=. 9933 for ac_exec_ext in '' $ac_executable_extensions; do 9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9935 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9937 break 2 9938 fi 9939 done 9940 done 9941 IFS=$as_save_IFS 9942 9943 ;; 9944 esac 9945 fi 9946 ZIP=$ac_cv_path_ZIP 9947 if test -n "$ZIP"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 9949 $as_echo "$ZIP" >&6; } 9950 else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9952 $as_echo "no" >&6; } 9953 fi 9954 9955 9956 test -n "$ZIP" && break 9957 done 9958 9959 9960 if test "x$ZIP" = x; then 9961 if test "xzip" = x; then 9962 PROG_NAME=zip 9963 else 9964 PROG_NAME=zip 9965 fi 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 9967 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 9968 as_fn_error $? "Cannot continue" "$LINENO" 5 9969 fi 9970 9971 9972 9973 # Non-required basic tools 9974 9975 # Extract the first word of "ldd", so it can be a program name with args. 9976 set dummy ldd; ac_word=$2 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9978 $as_echo_n "checking for $ac_word... " >&6; } 9979 if ${ac_cv_path_LDD+:} false; then : 9980 $as_echo_n "(cached) " >&6 9981 else 9982 case $LDD in 9983 [\\/]* | ?:[\\/]*) 9984 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 9985 ;; 9986 *) 9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9988 for as_dir in $PATH 9989 do 9990 IFS=$as_save_IFS 9991 test -z "$as_dir" && as_dir=. 9992 for ac_exec_ext in '' $ac_executable_extensions; do 9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9994 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9996 break 2 9997 fi 9998 done 9999 done 10000 IFS=$as_save_IFS 10001 10002 ;; 10003 esac 10004 fi 10005 LDD=$ac_cv_path_LDD 10006 if test -n "$LDD"; then 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 10008 $as_echo "$LDD" >&6; } 10009 else 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10011 $as_echo "no" >&6; } 10012 fi 10013 10014 10015 if test "x$LDD" = "x"; then 10016 # List shared lib dependencies is used for 10017 # debug output and checking for forbidden dependencies. 10018 # We can build without it. 10019 LDD="true" 10020 fi 10021 # Extract the first word of "otool", so it can be a program name with args. 10022 set dummy otool; ac_word=$2 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10024 $as_echo_n "checking for $ac_word... " >&6; } 10025 if ${ac_cv_path_OTOOL+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027 else 10028 case $OTOOL in 10029 [\\/]* | ?:[\\/]*) 10030 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 10031 ;; 10032 *) 10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10034 for as_dir in $PATH 10035 do 10036 IFS=$as_save_IFS 10037 test -z "$as_dir" && as_dir=. 10038 for ac_exec_ext in '' $ac_executable_extensions; do 10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10040 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10042 break 2 10043 fi 10044 done 10045 done 10046 IFS=$as_save_IFS 10047 10048 ;; 10049 esac 10050 fi 10051 OTOOL=$ac_cv_path_OTOOL 10052 if test -n "$OTOOL"; then 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10054 $as_echo "$OTOOL" >&6; } 10055 else 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10057 $as_echo "no" >&6; } 10058 fi 10059 10060 10061 if test "x$OTOOL" = "x"; then 10062 OTOOL="true" 10063 fi 10064 for ac_prog in readelf greadelf 10065 do 10066 # Extract the first word of "$ac_prog", so it can be a program name with args. 10067 set dummy $ac_prog; ac_word=$2 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10069 $as_echo_n "checking for $ac_word... " >&6; } 10070 if ${ac_cv_path_READELF+:} false; then : 10071 $as_echo_n "(cached) " >&6 10072 else 10073 case $READELF in 10074 [\\/]* | ?:[\\/]*) 10075 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 10076 ;; 10077 *) 10078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10079 for as_dir in $PATH 10080 do 10081 IFS=$as_save_IFS 10082 test -z "$as_dir" && as_dir=. 10083 for ac_exec_ext in '' $ac_executable_extensions; do 10084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10085 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 10086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10087 break 2 10088 fi 10089 done 10090 done 10091 IFS=$as_save_IFS 10092 10093 ;; 10094 esac 10095 fi 10096 READELF=$ac_cv_path_READELF 10097 if test -n "$READELF"; then 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10099 $as_echo "$READELF" >&6; } 10100 else 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10102 $as_echo "no" >&6; } 10103 fi 10104 10105 10106 test -n "$READELF" && break 10107 done 10108 10109 # Extract the first word of "hg", so it can be a program name with args. 10110 set dummy hg; ac_word=$2 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10112 $as_echo_n "checking for $ac_word... " >&6; } 10113 if ${ac_cv_path_HG+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115 else 10116 case $HG in 10117 [\\/]* | ?:[\\/]*) 10118 ac_cv_path_HG="$HG" # Let the user override the test with a path. 10119 ;; 10120 *) 10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10122 for as_dir in $PATH 10123 do 10124 IFS=$as_save_IFS 10125 test -z "$as_dir" && as_dir=. 10126 for ac_exec_ext in '' $ac_executable_extensions; do 10127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10128 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10130 break 2 10131 fi 10132 done 10133 done 10134 IFS=$as_save_IFS 10135 10136 ;; 10137 esac 10138 fi 10139 HG=$ac_cv_path_HG 10140 if test -n "$HG"; then 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 10142 $as_echo "$HG" >&6; } 10143 else 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10145 $as_echo "no" >&6; } 10146 fi 10147 10148 10149 # Extract the first word of "stat", so it can be a program name with args. 10150 set dummy stat; ac_word=$2 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10152 $as_echo_n "checking for $ac_word... " >&6; } 10153 if ${ac_cv_path_STAT+:} false; then : 10154 $as_echo_n "(cached) " >&6 10155 else 10156 case $STAT in 10157 [\\/]* | ?:[\\/]*) 10158 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 10159 ;; 10160 *) 10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10162 for as_dir in $PATH 10163 do 10164 IFS=$as_save_IFS 10165 test -z "$as_dir" && as_dir=. 10166 for ac_exec_ext in '' $ac_executable_extensions; do 10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10168 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10170 break 2 10171 fi 10172 done 10173 done 10174 IFS=$as_save_IFS 10175 10176 ;; 10177 esac 10178 fi 10179 STAT=$ac_cv_path_STAT 10180 if test -n "$STAT"; then 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 10182 $as_echo "$STAT" >&6; } 10183 else 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10185 $as_echo "no" >&6; } 10186 fi 10187 10188 10189 # Extract the first word of "time", so it can be a program name with args. 10190 set dummy time; ac_word=$2 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10192 $as_echo_n "checking for $ac_word... " >&6; } 10193 if ${ac_cv_path_TIME+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195 else 10196 case $TIME in 10197 [\\/]* | ?:[\\/]*) 10198 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 10199 ;; 10200 *) 10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10202 for as_dir in $PATH 10203 do 10204 IFS=$as_save_IFS 10205 test -z "$as_dir" && as_dir=. 10206 for ac_exec_ext in '' $ac_executable_extensions; do 10207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10208 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10210 break 2 10211 fi 10212 done 10213 done 10214 IFS=$as_save_IFS 10215 10216 ;; 10217 esac 10218 fi 10219 TIME=$ac_cv_path_TIME 10220 if test -n "$TIME"; then 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 10222 $as_echo "$TIME" >&6; } 10223 else 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10225 $as_echo "no" >&6; } 10226 fi 10227 10228 10229 10230 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 10231 10232 for ac_prog in comm 10233 do 10234 # Extract the first word of "$ac_prog", so it can be a program name with args. 10235 set dummy $ac_prog; ac_word=$2 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10237 $as_echo_n "checking for $ac_word... " >&6; } 10238 if ${ac_cv_path_COMM+:} false; then : 10239 $as_echo_n "(cached) " >&6 10240 else 10241 case $COMM in 10242 [\\/]* | ?:[\\/]*) 10243 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 10244 ;; 10245 *) 10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10247 for as_dir in $PATH 10248 do 10249 IFS=$as_save_IFS 10250 test -z "$as_dir" && as_dir=. 10251 for ac_exec_ext in '' $ac_executable_extensions; do 10252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10253 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10255 break 2 10256 fi 10257 done 10258 done 10259 IFS=$as_save_IFS 10260 10261 ;; 10262 esac 10263 fi 10264 COMM=$ac_cv_path_COMM 10265 if test -n "$COMM"; then 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 10267 $as_echo "$COMM" >&6; } 10268 else 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10270 $as_echo "no" >&6; } 10271 fi 10272 10273 10274 test -n "$COMM" && break 10275 done 10276 10277 10278 if test "x$COMM" = x; then 10279 if test "xcomm" = x; then 10280 PROG_NAME=comm 10281 else 10282 PROG_NAME=comm 10283 fi 10284 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 10285 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 10286 as_fn_error $? "Cannot continue" "$LINENO" 5 10287 fi 10288 10289 10290 fi 10291 10292 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 10293 10294 for ac_prog in xattr 10295 do 10296 # Extract the first word of "$ac_prog", so it can be a program name with args. 10297 set dummy $ac_prog; ac_word=$2 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10299 $as_echo_n "checking for $ac_word... " >&6; } 10300 if ${ac_cv_path_XATTR+:} false; then : 10301 $as_echo_n "(cached) " >&6 10302 else 10303 case $XATTR in 10304 [\\/]* | ?:[\\/]*) 10305 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 10306 ;; 10307 *) 10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10309 for as_dir in $PATH 10310 do 10311 IFS=$as_save_IFS 10312 test -z "$as_dir" && as_dir=. 10313 for ac_exec_ext in '' $ac_executable_extensions; do 10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10315 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10317 break 2 10318 fi 10319 done 10320 done 10321 IFS=$as_save_IFS 10322 10323 ;; 10324 esac 10325 fi 10326 XATTR=$ac_cv_path_XATTR 10327 if test -n "$XATTR"; then 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 10329 $as_echo "$XATTR" >&6; } 10330 else 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10332 $as_echo "no" >&6; } 10333 fi 10334 10335 10336 test -n "$XATTR" && break 10337 done 10338 10339 10340 if test "x$XATTR" = x; then 10341 if test "xxattr" = x; then 10342 PROG_NAME=xattr 10343 else 10344 PROG_NAME=xattr 10345 fi 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 10347 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 10348 as_fn_error $? "Cannot continue" "$LINENO" 5 10349 fi 10350 10351 10352 # Extract the first word of "codesign", so it can be a program name with args. 10353 set dummy codesign; ac_word=$2 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10355 $as_echo_n "checking for $ac_word... " >&6; } 10356 if ${ac_cv_path_CODESIGN+:} false; then : 10357 $as_echo_n "(cached) " >&6 10358 else 10359 case $CODESIGN in 10360 [\\/]* | ?:[\\/]*) 10361 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 10362 ;; 10363 *) 10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10365 for as_dir in $PATH 10366 do 10367 IFS=$as_save_IFS 10368 test -z "$as_dir" && as_dir=. 10369 for ac_exec_ext in '' $ac_executable_extensions; do 10370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10371 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10373 break 2 10374 fi 10375 done 10376 done 10377 IFS=$as_save_IFS 10378 10379 ;; 10380 esac 10381 fi 10382 CODESIGN=$ac_cv_path_CODESIGN 10383 if test -n "$CODESIGN"; then 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 10385 $as_echo "$CODESIGN" >&6; } 10386 else 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10388 $as_echo "no" >&6; } 10389 fi 10390 10391 10392 if test "x$CODESIGN" != "x"; then 10393 # Verify that the openjdk_codesign certificate is present 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 10395 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 10396 rm -f codesign-testfile 10397 touch codesign-testfile 10398 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 10399 rm -f codesign-testfile 10400 if test "x$CODESIGN" = x; then 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10402 $as_echo "no" >&6; } 10403 else 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10405 $as_echo "yes" >&6; } 10406 fi 10407 fi 10408 fi 10409 10410 10411 # Check if pkg-config is available. 10412 10413 10414 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10415 if test -n "$ac_tool_prefix"; then 10416 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10417 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10419 $as_echo_n "checking for $ac_word... " >&6; } 10420 if ${ac_cv_path_PKG_CONFIG+:} false; then : 10421 $as_echo_n "(cached) " >&6 10422 else 10423 case $PKG_CONFIG in 10424 [\\/]* | ?:[\\/]*) 10425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10426 ;; 10427 *) 10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10429 for as_dir in $PATH 10430 do 10431 IFS=$as_save_IFS 10432 test -z "$as_dir" && as_dir=. 10433 for ac_exec_ext in '' $ac_executable_extensions; do 10434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10437 break 2 10438 fi 10439 done 10440 done 10441 IFS=$as_save_IFS 10442 10443 ;; 10444 esac 10445 fi 10446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10447 if test -n "$PKG_CONFIG"; then 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10449 $as_echo "$PKG_CONFIG" >&6; } 10450 else 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10452 $as_echo "no" >&6; } 10453 fi 10454 10455 10456 fi 10457 if test -z "$ac_cv_path_PKG_CONFIG"; then 10458 ac_pt_PKG_CONFIG=$PKG_CONFIG 10459 # Extract the first word of "pkg-config", so it can be a program name with args. 10460 set dummy pkg-config; ac_word=$2 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10462 $as_echo_n "checking for $ac_word... " >&6; } 10463 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10464 $as_echo_n "(cached) " >&6 10465 else 10466 case $ac_pt_PKG_CONFIG in 10467 [\\/]* | ?:[\\/]*) 10468 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10469 ;; 10470 *) 10471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10472 for as_dir in $PATH 10473 do 10474 IFS=$as_save_IFS 10475 test -z "$as_dir" && as_dir=. 10476 for ac_exec_ext in '' $ac_executable_extensions; do 10477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10478 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10480 break 2 10481 fi 10482 done 10483 done 10484 IFS=$as_save_IFS 10485 10486 ;; 10487 esac 10488 fi 10489 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10490 if test -n "$ac_pt_PKG_CONFIG"; then 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10492 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 10493 else 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10495 $as_echo "no" >&6; } 10496 fi 10497 10498 if test "x$ac_pt_PKG_CONFIG" = x; then 10499 PKG_CONFIG="" 10500 else 10501 case $cross_compiling:$ac_tool_warned in 10502 yes:) 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10505 ac_tool_warned=yes ;; 10506 esac 10507 PKG_CONFIG=$ac_pt_PKG_CONFIG 10508 fi 10509 else 10510 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10511 fi 10512 10513 fi 10514 if test -n "$PKG_CONFIG"; then 10515 _pkg_min_version=0.9.0 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10517 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10518 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10520 $as_echo "yes" >&6; } 10521 else 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10523 $as_echo "no" >&6; } 10524 PKG_CONFIG="" 10525 fi 10526 10527 fi 10528 10529 # After basic tools have been setup, we can check build os specific details. 10530 10531 ############################################################################### 10532 10533 # Note that this is the build platform OS version! 10534 10535 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 10536 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 10537 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 10538 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 10539 10540 10541 10542 10543 10544 # Setup builddeps, for automatic downloading of tools we need. 10545 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 10546 # boot-jdk setup, but we need to have basic tools setup first. 10547 10548 10549 # Check whether --with-builddeps-conf was given. 10550 if test "${with_builddeps_conf+set}" = set; then : 10551 withval=$with_builddeps_conf; 10552 fi 10553 10554 10555 10556 # Check whether --with-builddeps-server was given. 10557 if test "${with_builddeps_server+set}" = set; then : 10558 withval=$with_builddeps_server; 10559 fi 10560 10561 10562 10563 # Check whether --with-builddeps-dir was given. 10564 if test "${with_builddeps_dir+set}" = set; then : 10565 withval=$with_builddeps_dir; 10566 else 10567 with_builddeps_dir=/localhome/builddeps 10568 fi 10569 10570 10571 10572 # Check whether --with-builddeps-group was given. 10573 if test "${with_builddeps_group+set}" = set; then : 10574 withval=$with_builddeps_group; 10575 fi 10576 10577 10578 10579 10580 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 10581 if test "x$with_builddeps_conf" != x; then 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 10583 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 10584 builddepsfile=$with_builddeps_conf 10585 if test -s $builddepsfile; then 10586 . $builddepsfile 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 10588 $as_echo "loaded!" >&6; } 10589 else 10590 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 10591 fi 10592 else 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 10594 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 10595 builddepsfile=`mktemp` 10596 touch $builddepsfile 10597 # Put all found confs into a single file. 10598 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 10599 # Source the file to acquire the variables 10600 if test -s $builddepsfile; then 10601 . $builddepsfile 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 10603 $as_echo "found at least one!" >&6; } 10604 else 10605 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 10606 fi 10607 fi 10608 # Create build and target names that use _ instead of "-" and ".". 10609 # This is necessary to use them in variable names. 10610 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 10611 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 10612 # Extract rewrite information for build and target 10613 eval rewritten_build=\${REWRITE_${build_var}} 10614 if test "x$rewritten_build" = x; then 10615 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 10616 echo Build stays the same $rewritten_build 10617 else 10618 echo Rewriting build for builddeps into $rewritten_build 10619 fi 10620 eval rewritten_target=\${REWRITE_${target_var}} 10621 if test "x$rewritten_target" = x; then 10622 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 10623 echo Target stays the same $rewritten_target 10624 else 10625 echo Rewriting target for builddeps into $rewritten_target 10626 fi 10627 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 10628 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 10629 fi 10630 for ac_prog in 7z unzip 10631 do 10632 # Extract the first word of "$ac_prog", so it can be a program name with args. 10633 set dummy $ac_prog; ac_word=$2 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10635 $as_echo_n "checking for $ac_word... " >&6; } 10636 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 10637 $as_echo_n "(cached) " >&6 10638 else 10639 if test -n "$BDEPS_UNZIP"; then 10640 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 10641 else 10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10643 for as_dir in $PATH 10644 do 10645 IFS=$as_save_IFS 10646 test -z "$as_dir" && as_dir=. 10647 for ac_exec_ext in '' $ac_executable_extensions; do 10648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10649 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10651 break 2 10652 fi 10653 done 10654 done 10655 IFS=$as_save_IFS 10656 10657 fi 10658 fi 10659 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 10660 if test -n "$BDEPS_UNZIP"; then 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 10662 $as_echo "$BDEPS_UNZIP" >&6; } 10663 else 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10665 $as_echo "no" >&6; } 10666 fi 10667 10668 10669 test -n "$BDEPS_UNZIP" && break 10670 done 10671 10672 if test "x$BDEPS_UNZIP" = x7z; then 10673 BDEPS_UNZIP="7z x" 10674 fi 10675 10676 for ac_prog in wget lftp ftp 10677 do 10678 # Extract the first word of "$ac_prog", so it can be a program name with args. 10679 set dummy $ac_prog; ac_word=$2 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10681 $as_echo_n "checking for $ac_word... " >&6; } 10682 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 10683 $as_echo_n "(cached) " >&6 10684 else 10685 if test -n "$BDEPS_FTP"; then 10686 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 10687 else 10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10689 for as_dir in $PATH 10690 do 10691 IFS=$as_save_IFS 10692 test -z "$as_dir" && as_dir=. 10693 for ac_exec_ext in '' $ac_executable_extensions; do 10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10695 ac_cv_prog_BDEPS_FTP="$ac_prog" 10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10697 break 2 10698 fi 10699 done 10700 done 10701 IFS=$as_save_IFS 10702 10703 fi 10704 fi 10705 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 10706 if test -n "$BDEPS_FTP"; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 10708 $as_echo "$BDEPS_FTP" >&6; } 10709 else 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10711 $as_echo "no" >&6; } 10712 fi 10713 10714 10715 test -n "$BDEPS_FTP" && break 10716 done 10717 10718 10719 10720 ############################################################################### 10721 # 10722 # Determine OpenJDK variants, options and version numbers. 10723 # 10724 ############################################################################### 10725 10726 # We need build & target for this. 10727 10728 10729 ############################################################################### 10730 # 10731 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 10732 # We always build headless support. 10733 # 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 10735 $as_echo_n "checking headful support... " >&6; } 10736 # Check whether --enable-headful was given. 10737 if test "${enable_headful+set}" = set; then : 10738 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 10739 else 10740 SUPPORT_HEADFUL=yes 10741 fi 10742 10743 10744 SUPPORT_HEADLESS=yes 10745 BUILD_HEADLESS="BUILD_HEADLESS:=true" 10746 10747 if test "x$SUPPORT_HEADFUL" = xyes; then 10748 # We are building both headful and headless. 10749 headful_msg="inlude support for both headful and headless" 10750 fi 10751 10752 if test "x$SUPPORT_HEADFUL" = xno; then 10753 # Thus we are building headless only. 10754 BUILD_HEADLESS="BUILD_HEADLESS:=true" 10755 headful_msg="headless only" 10756 fi 10757 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 10759 $as_echo "$headful_msg" >&6; } 10760 10761 10762 10763 10764 10765 # Control wether Hotspot runs Queens test after build. 10766 # Check whether --enable-hotspot-test-in-build was given. 10767 if test "${enable_hotspot_test_in_build+set}" = set; then : 10768 enableval=$enable_hotspot_test_in_build; 10769 else 10770 enable_hotspot_test_in_build=no 10771 fi 10772 10773 if test "x$enable_hotspot_test_in_build" = "xyes"; then 10774 TEST_IN_BUILD=true 10775 else 10776 TEST_IN_BUILD=false 10777 fi 10778 10779 10780 ############################################################################### 10781 # 10782 # Choose cacerts source file 10783 # 10784 10785 # Check whether --with-cacerts-file was given. 10786 if test "${with_cacerts_file+set}" = set; then : 10787 withval=$with_cacerts_file; 10788 fi 10789 10790 if test "x$with_cacerts_file" != x; then 10791 CACERTS_FILE=$with_cacerts_file 10792 else 10793 if test "x$OPENJDK" = "xtrue"; then 10794 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 10795 else 10796 CACERTS_FILE=${SRC_ROOT}/jdk/src/closed/share/lib/security/cacerts.internal 10797 fi 10798 fi 10799 10800 10801 ############################################################################### 10802 # 10803 # Enable or disable unlimited crypto 10804 # 10805 # Check whether --enable-unlimited-crypto was given. 10806 if test "${enable_unlimited_crypto+set}" = set; then : 10807 enableval=$enable_unlimited_crypto; 10808 else 10809 enable_unlimited_crypto=no 10810 fi 10811 10812 if test "x$enable_unlimited_crypto" = "xyes"; then 10813 UNLIMITED_CRYPTO=true 10814 else 10815 UNLIMITED_CRYPTO=false 10816 fi 10817 10818 10819 ############################################################################### 10820 # 10821 # Enable or disable the elliptic curve crypto implementation 10822 # 10823 10824 10825 ############################################################################### 10826 # 10827 # Compress jars 10828 # 10829 COMPRESS_JARS=false 10830 10831 10832 10833 10834 # Source the version numbers 10835 . $AUTOCONF_DIR/version-numbers 10836 10837 # Get the settings from parameters 10838 10839 # Check whether --with-milestone was given. 10840 if test "${with_milestone+set}" = set; then : 10841 withval=$with_milestone; 10842 fi 10843 10844 if test "x$with_milestone" = xyes; then 10845 as_fn_error $? "Milestone must have a value" "$LINENO" 5 10846 elif test "x$with_milestone" != x; then 10847 MILESTONE="$with_milestone" 10848 fi 10849 if test "x$MILESTONE" = x; then 10850 MILESTONE=internal 10851 fi 10852 10853 10854 # Check whether --with-update-version was given. 10855 if test "${with_update_version+set}" = set; then : 10856 withval=$with_update_version; 10857 fi 10858 10859 if test "x$with_update_version" = xyes; then 10860 as_fn_error $? "Update version must have a value" "$LINENO" 5 10861 elif test "x$with_update_version" != x; then 10862 JDK_UPDATE_VERSION="$with_update_version" 10863 fi 10864 10865 10866 # Check whether --with-build-number was given. 10867 if test "${with_build_number+set}" = set; then : 10868 withval=$with_build_number; 10869 fi 10870 10871 if test "x$with_build_number" = xyes; then 10872 as_fn_error $? "Build number must have a value" "$LINENO" 5 10873 elif test "x$with_build_number" != x; then 10874 JDK_BUILD_NUMBER="$with_build_number" 10875 fi 10876 if test "x$JDK_BUILD_NUMBER" = x; then 10877 JDK_BUILD_NUMBER=b00 10878 fi 10879 10880 10881 # Check whether --with-user-release-suffix was given. 10882 if test "${with_user_release_suffix+set}" = set; then : 10883 withval=$with_user_release_suffix; 10884 fi 10885 10886 if test "x$with_user_release_suffix" = xyes; then 10887 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 10888 elif test "x$with_user_release_suffix" != x; then 10889 USER_RELEASE_SUFFIX="$with_user_release_suffix" 10890 else 10891 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 10892 # Avoid [:alnum:] since it depends on the locale. 10893 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'` 10894 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 10895 fi 10896 10897 10898 # Now set the JDK version, milestone, build number etc. 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 COPYRIGHT_YEAR=`date +'%Y'` 10914 10915 10916 if test "x$JDK_UPDATE_VERSION" != x; then 10917 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 10918 else 10919 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 10920 fi 10921 10922 10923 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 10924 10925 10926 10927 ############################################################################### 10928 # 10929 # Setup BootJDK, used to bootstrap the build. 10930 # 10931 ############################################################################### 10932 10933 10934 BOOT_JDK_FOUND=no 10935 10936 # Check whether --with-boot-jdk was given. 10937 if test "${with_boot_jdk+set}" = set; then : 10938 withval=$with_boot_jdk; 10939 fi 10940 10941 10942 # We look for the Boot JDK through various means, going from more certain to 10943 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 10944 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 10945 # must check if this is indeed valid; otherwise we'll continue looking. 10946 10947 # Test: Is bootjdk explicitely set by command line arguments? 10948 10949 if test "x$BOOT_JDK_FOUND" = xno; then 10950 # Now execute the test 10951 10952 if test "x$with_boot_jdk" != x; then 10953 BOOT_JDK=$with_boot_jdk 10954 BOOT_JDK_FOUND=maybe 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 10956 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 10957 fi 10958 10959 10960 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 10961 if test "x$BOOT_JDK_FOUND" = xmaybe; then 10962 # Do we have a bin/java? 10963 if test ! -x "$BOOT_JDK/bin/java"; then 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 10965 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 10966 BOOT_JDK_FOUND=no 10967 else 10968 # Do we have a bin/javac? 10969 if test ! -x "$BOOT_JDK/bin/javac"; then 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 10971 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 10973 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 10974 BOOT_JDK_FOUND=no 10975 else 10976 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 10977 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 10979 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 10980 BOOT_JDK_FOUND=no 10981 else 10982 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 10983 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 10984 10985 # Extra M4 quote needed to protect [] in grep expression. 10986 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 10987 if test "x$FOUND_VERSION_78" = x; then 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 10989 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 10991 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 10992 BOOT_JDK_FOUND=no 10993 else 10994 # We're done! :-) 10995 BOOT_JDK_FOUND=yes 10996 10997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 10998 10999 # Input might be given as Windows format, start by converting to 11000 # unix format. 11001 path="$BOOT_JDK" 11002 new_path=`$CYGPATH -u "$path"` 11003 11004 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11005 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11006 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11007 # "foo.exe" is OK but "foo" is an error. 11008 # 11009 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11010 # It is also a way to make sure we got the proper file name for the real test later on. 11011 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11012 if test "x$test_shortpath" = x; then 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11014 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11015 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11016 fi 11017 11018 # Call helper function which possibly converts this using DOS-style short mode. 11019 # If so, the updated path is stored in $new_path. 11020 11021 input_path="$new_path" 11022 # Check if we need to convert this using DOS-style short mode. If the path 11023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11024 # take no chances and rewrite it. 11025 # Note: m4 eats our [], so we need to use [ and ] instead. 11026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11027 if test "x$has_forbidden_chars" != x; then 11028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11029 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11030 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11031 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11032 # Going to short mode and back again did indeed matter. Since short mode is 11033 # case insensitive, let's make it lowercase to improve readability. 11034 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11035 # Now convert it back to Unix-stile (cygpath) 11036 input_path=`$CYGPATH -u "$shortmode_path"` 11037 new_path="$input_path" 11038 fi 11039 fi 11040 11041 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11042 if test "x$test_cygdrive_prefix" = x; then 11043 # As a simple fix, exclude /usr/bin since it's not a real path. 11044 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11045 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11046 # a path prefixed by /cygdrive for fixpath to work. 11047 new_path="$CYGWIN_ROOT_PATH$input_path" 11048 fi 11049 fi 11050 11051 11052 if test "x$path" != "x$new_path"; then 11053 BOOT_JDK="$new_path" 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11055 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11056 fi 11057 11058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11059 11060 path="$BOOT_JDK" 11061 has_colon=`$ECHO $path | $GREP ^.:` 11062 new_path="$path" 11063 if test "x$has_colon" = x; then 11064 # Not in mixed or Windows style, start by that. 11065 new_path=`cmd //c echo $path` 11066 fi 11067 11068 11069 input_path="$new_path" 11070 # Check if we need to convert this using DOS-style short mode. If the path 11071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11072 # take no chances and rewrite it. 11073 # Note: m4 eats our [], so we need to use [ and ] instead. 11074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11075 if test "x$has_forbidden_chars" != x; then 11076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11077 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11078 fi 11079 11080 11081 windows_path="$new_path" 11082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11083 unix_path=`$CYGPATH -u "$windows_path"` 11084 new_path="$unix_path" 11085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11087 new_path="$unix_path" 11088 fi 11089 11090 if test "x$path" != "x$new_path"; then 11091 BOOT_JDK="$new_path" 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11093 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11094 fi 11095 11096 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11097 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11098 11099 else 11100 # We're on a posix platform. Hooray! :) 11101 path="$BOOT_JDK" 11102 has_space=`$ECHO "$path" | $GREP " "` 11103 if test "x$has_space" != x; then 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11105 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11106 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11107 fi 11108 11109 # Use eval to expand a potential ~ 11110 eval path="$path" 11111 if test ! -f "$path" && test ! -d "$path"; then 11112 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11113 fi 11114 11115 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 11116 fi 11117 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11119 $as_echo_n "checking for Boot JDK... " >&6; } 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11121 $as_echo "$BOOT_JDK" >&6; } 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11123 $as_echo_n "checking Boot JDK version... " >&6; } 11124 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11126 $as_echo "$BOOT_JDK_VERSION" >&6; } 11127 fi # end check jdk version 11128 fi # end check rt.jar 11129 fi # end check javac 11130 fi # end check java 11131 fi # end check boot jdk found 11132 fi 11133 11134 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 11135 # Having specified an argument which is incorrect will produce an instant failure; 11136 # we should not go on looking 11137 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 11138 fi 11139 11140 # Test: Is bootjdk available from builddeps? 11141 11142 if test "x$BOOT_JDK_FOUND" = xno; then 11143 # Now execute the test 11144 11145 11146 11147 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 11148 # Source the builddeps file again, to make sure it uses the latest variables! 11149 . $builddepsfile 11150 # Look for a target and build machine specific resource! 11151 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 11152 if test "x$resource" = x; then 11153 # Ok, lets instead look for a target specific resource 11154 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 11155 fi 11156 if test "x$resource" = x; then 11157 # Ok, lets instead look for a build specific resource 11158 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 11159 fi 11160 if test "x$resource" = x; then 11161 # Ok, lets instead look for a generic resource 11162 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 11163 resource=${builddep_bootjdk} 11164 fi 11165 if test "x$resource" != x; then 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 11167 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 11168 # If the resource in the builddeps.conf file is an existing directory, 11169 # for example /java/linux/cups 11170 if test -d ${resource}; then 11171 depdir=${resource} 11172 else 11173 11174 # bootjdk is for example mymodule 11175 # $resource is for example libs/general/libmymod_1_2_3.zip 11176 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 11177 # $with_builddeps_dir is for example /localhome/builddeps 11178 # depdir is the name of the variable into which we store the depdir, eg MYMOD 11179 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 11180 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 11181 filename=`basename $resource` 11182 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 11183 filebase=${filename%%.*} 11184 extension=${filename#*.} 11185 installdir=$with_builddeps_dir/$filebase 11186 if test ! -f $installdir/$filename.unpacked; then 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 11188 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 11189 if test ! -d $installdir; then 11190 mkdir -p $installdir 11191 fi 11192 if test ! -d $installdir; then 11193 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 11194 fi 11195 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 11196 touch $tmpfile 11197 if test ! -f $tmpfile; then 11198 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 11199 fi 11200 11201 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 11202 # $tmpfile is the local file name for the downloaded file. 11203 VALID_TOOL=no 11204 if test "x$BDEPS_FTP" = xwget; then 11205 VALID_TOOL=yes 11206 wget -O $tmpfile $with_builddeps_server/$resource 11207 fi 11208 if test "x$BDEPS_FTP" = xlftp; then 11209 VALID_TOOL=yes 11210 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 11211 fi 11212 if test "x$BDEPS_FTP" = xftp; then 11213 VALID_TOOL=yes 11214 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 11215 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 11216 FTPUSERPWD=${FTPSERVER%%@*} 11217 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 11218 FTPUSER=${userpwd%%:*} 11219 FTPPWD=${userpwd#*@} 11220 FTPSERVER=${FTPSERVER#*@} 11221 else 11222 FTPUSER=ftp 11223 FTPPWD=ftp 11224 fi 11225 # the "pass" command does not work on some 11226 # ftp clients (read ftp.exe) but if it works, 11227 # passive mode is better! 11228 (\ 11229 echo "user $FTPUSER $FTPPWD" ;\ 11230 echo "pass" ;\ 11231 echo "bin" ;\ 11232 echo "get $FTPPATH $tmpfile" ;\ 11233 ) | ftp -in $FTPSERVER 11234 fi 11235 if test "x$VALID_TOOL" != xyes; then 11236 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 11237 fi 11238 11239 mv $tmpfile $installdir/$filename 11240 if test ! -s $installdir/$filename; then 11241 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 11242 fi 11243 case "$extension" in 11244 zip) echo "Unzipping $installdir/$filename..." 11245 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 11246 ;; 11247 tar.gz) echo "Untaring $installdir/$filename..." 11248 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 11249 ;; 11250 tgz) echo "Untaring $installdir/$filename..." 11251 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 11252 ;; 11253 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 11254 ;; 11255 esac 11256 fi 11257 if test -f $installdir/$filename.unpacked; then 11258 depdir=$installdir 11259 fi 11260 11261 fi 11262 # Source the builddeps file again, because in the previous command, the depdir 11263 # was updated to point at the current build dependency install directory. 11264 . $builddepsfile 11265 # Now extract variables from the builddeps.conf files. 11266 theroot=${builddep_bootjdk_ROOT} 11267 thecflags=${builddep_bootjdk_CFLAGS} 11268 thelibs=${builddep_bootjdk_LIBS} 11269 if test "x$depdir" = x; then 11270 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 11271 fi 11272 BOOT_JDK=$depdir 11273 if test "x$theroot" != x; then 11274 BOOT_JDK="$theroot" 11275 fi 11276 if test "x$thecflags" != x; then 11277 BOOT_JDK_CFLAGS="$thecflags" 11278 fi 11279 if test "x$thelibs" != x; then 11280 BOOT_JDK_LIBS="$thelibs" 11281 fi 11282 BOOT_JDK_FOUND=maybe 11283 else BOOT_JDK_FOUND=no 11284 11285 fi 11286 else BOOT_JDK_FOUND=no 11287 11288 fi 11289 11290 11291 11292 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 11293 if test "x$BOOT_JDK_FOUND" = xmaybe; then 11294 # Do we have a bin/java? 11295 if test ! -x "$BOOT_JDK/bin/java"; then 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 11297 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 11298 BOOT_JDK_FOUND=no 11299 else 11300 # Do we have a bin/javac? 11301 if test ! -x "$BOOT_JDK/bin/javac"; then 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 11303 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 11304 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 11305 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 11306 BOOT_JDK_FOUND=no 11307 else 11308 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 11309 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 11311 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 11312 BOOT_JDK_FOUND=no 11313 else 11314 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 11315 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 11316 11317 # Extra M4 quote needed to protect [] in grep expression. 11318 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11319 if test "x$FOUND_VERSION_78" = x; then 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 11321 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 11323 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 11324 BOOT_JDK_FOUND=no 11325 else 11326 # We're done! :-) 11327 BOOT_JDK_FOUND=yes 11328 11329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11330 11331 # Input might be given as Windows format, start by converting to 11332 # unix format. 11333 path="$BOOT_JDK" 11334 new_path=`$CYGPATH -u "$path"` 11335 11336 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11337 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11338 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11339 # "foo.exe" is OK but "foo" is an error. 11340 # 11341 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11342 # It is also a way to make sure we got the proper file name for the real test later on. 11343 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11344 if test "x$test_shortpath" = x; then 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11346 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11347 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11348 fi 11349 11350 # Call helper function which possibly converts this using DOS-style short mode. 11351 # If so, the updated path is stored in $new_path. 11352 11353 input_path="$new_path" 11354 # Check if we need to convert this using DOS-style short mode. If the path 11355 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11356 # take no chances and rewrite it. 11357 # Note: m4 eats our [], so we need to use [ and ] instead. 11358 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11359 if test "x$has_forbidden_chars" != x; then 11360 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11361 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11362 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11363 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11364 # Going to short mode and back again did indeed matter. Since short mode is 11365 # case insensitive, let's make it lowercase to improve readability. 11366 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11367 # Now convert it back to Unix-stile (cygpath) 11368 input_path=`$CYGPATH -u "$shortmode_path"` 11369 new_path="$input_path" 11370 fi 11371 fi 11372 11373 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11374 if test "x$test_cygdrive_prefix" = x; then 11375 # As a simple fix, exclude /usr/bin since it's not a real path. 11376 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11377 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11378 # a path prefixed by /cygdrive for fixpath to work. 11379 new_path="$CYGWIN_ROOT_PATH$input_path" 11380 fi 11381 fi 11382 11383 11384 if test "x$path" != "x$new_path"; then 11385 BOOT_JDK="$new_path" 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11387 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11388 fi 11389 11390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11391 11392 path="$BOOT_JDK" 11393 has_colon=`$ECHO $path | $GREP ^.:` 11394 new_path="$path" 11395 if test "x$has_colon" = x; then 11396 # Not in mixed or Windows style, start by that. 11397 new_path=`cmd //c echo $path` 11398 fi 11399 11400 11401 input_path="$new_path" 11402 # Check if we need to convert this using DOS-style short mode. If the path 11403 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11404 # take no chances and rewrite it. 11405 # Note: m4 eats our [], so we need to use [ and ] instead. 11406 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11407 if test "x$has_forbidden_chars" != x; then 11408 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11409 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11410 fi 11411 11412 11413 windows_path="$new_path" 11414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11415 unix_path=`$CYGPATH -u "$windows_path"` 11416 new_path="$unix_path" 11417 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11418 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11419 new_path="$unix_path" 11420 fi 11421 11422 if test "x$path" != "x$new_path"; then 11423 BOOT_JDK="$new_path" 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11425 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11426 fi 11427 11428 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11429 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11430 11431 else 11432 # We're on a posix platform. Hooray! :) 11433 path="$BOOT_JDK" 11434 has_space=`$ECHO "$path" | $GREP " "` 11435 if test "x$has_space" != x; then 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11437 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11438 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11439 fi 11440 11441 # Use eval to expand a potential ~ 11442 eval path="$path" 11443 if test ! -f "$path" && test ! -d "$path"; then 11444 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11445 fi 11446 11447 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 11448 fi 11449 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11451 $as_echo_n "checking for Boot JDK... " >&6; } 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11453 $as_echo "$BOOT_JDK" >&6; } 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11455 $as_echo_n "checking Boot JDK version... " >&6; } 11456 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11458 $as_echo "$BOOT_JDK_VERSION" >&6; } 11459 fi # end check jdk version 11460 fi # end check rt.jar 11461 fi # end check javac 11462 fi # end check java 11463 fi # end check boot jdk found 11464 fi 11465 11466 11467 # Test: Is $JAVA_HOME set? 11468 11469 if test "x$BOOT_JDK_FOUND" = xno; then 11470 # Now execute the test 11471 11472 if test "x$JAVA_HOME" != x; then 11473 JAVA_HOME_PROCESSED="$JAVA_HOME" 11474 11475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11476 11477 # Input might be given as Windows format, start by converting to 11478 # unix format. 11479 path="$JAVA_HOME_PROCESSED" 11480 new_path=`$CYGPATH -u "$path"` 11481 11482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11485 # "foo.exe" is OK but "foo" is an error. 11486 # 11487 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11488 # It is also a way to make sure we got the proper file name for the real test later on. 11489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11490 if test "x$test_shortpath" = x; then 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 11492 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 11493 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 11494 fi 11495 11496 # Call helper function which possibly converts this using DOS-style short mode. 11497 # If so, the updated path is stored in $new_path. 11498 11499 input_path="$new_path" 11500 # Check if we need to convert this using DOS-style short mode. If the path 11501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11502 # take no chances and rewrite it. 11503 # Note: m4 eats our [], so we need to use [ and ] instead. 11504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11505 if test "x$has_forbidden_chars" != x; then 11506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11507 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11508 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11509 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11510 # Going to short mode and back again did indeed matter. Since short mode is 11511 # case insensitive, let's make it lowercase to improve readability. 11512 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11513 # Now convert it back to Unix-stile (cygpath) 11514 input_path=`$CYGPATH -u "$shortmode_path"` 11515 new_path="$input_path" 11516 fi 11517 fi 11518 11519 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11520 if test "x$test_cygdrive_prefix" = x; then 11521 # As a simple fix, exclude /usr/bin since it's not a real path. 11522 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11523 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11524 # a path prefixed by /cygdrive for fixpath to work. 11525 new_path="$CYGWIN_ROOT_PATH$input_path" 11526 fi 11527 fi 11528 11529 11530 if test "x$path" != "x$new_path"; then 11531 JAVA_HOME_PROCESSED="$new_path" 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 11533 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 11534 fi 11535 11536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11537 11538 path="$JAVA_HOME_PROCESSED" 11539 has_colon=`$ECHO $path | $GREP ^.:` 11540 new_path="$path" 11541 if test "x$has_colon" = x; then 11542 # Not in mixed or Windows style, start by that. 11543 new_path=`cmd //c echo $path` 11544 fi 11545 11546 11547 input_path="$new_path" 11548 # Check if we need to convert this using DOS-style short mode. If the path 11549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11550 # take no chances and rewrite it. 11551 # Note: m4 eats our [], so we need to use [ and ] instead. 11552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11553 if test "x$has_forbidden_chars" != x; then 11554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11556 fi 11557 11558 11559 windows_path="$new_path" 11560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11561 unix_path=`$CYGPATH -u "$windows_path"` 11562 new_path="$unix_path" 11563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11565 new_path="$unix_path" 11566 fi 11567 11568 if test "x$path" != "x$new_path"; then 11569 JAVA_HOME_PROCESSED="$new_path" 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 11571 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 11572 fi 11573 11574 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11575 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11576 11577 else 11578 # We're on a posix platform. Hooray! :) 11579 path="$JAVA_HOME_PROCESSED" 11580 has_space=`$ECHO "$path" | $GREP " "` 11581 if test "x$has_space" != x; then 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 11583 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 11584 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11585 fi 11586 11587 # Use eval to expand a potential ~ 11588 eval path="$path" 11589 if test ! -f "$path" && test ! -d "$path"; then 11590 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 11591 fi 11592 11593 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 11594 fi 11595 11596 if test ! -d "$JAVA_HOME_PROCESSED"; then 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 11598 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 11599 else 11600 # Aha, the user has set a JAVA_HOME 11601 # let us use that as the Boot JDK. 11602 BOOT_JDK="$JAVA_HOME_PROCESSED" 11603 BOOT_JDK_FOUND=maybe 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 11605 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 11606 fi 11607 fi 11608 11609 11610 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 11611 if test "x$BOOT_JDK_FOUND" = xmaybe; then 11612 # Do we have a bin/java? 11613 if test ! -x "$BOOT_JDK/bin/java"; then 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 11615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 11616 BOOT_JDK_FOUND=no 11617 else 11618 # Do we have a bin/javac? 11619 if test ! -x "$BOOT_JDK/bin/javac"; then 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 11621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 11623 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 11624 BOOT_JDK_FOUND=no 11625 else 11626 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 11627 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 11629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 11630 BOOT_JDK_FOUND=no 11631 else 11632 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 11633 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 11634 11635 # Extra M4 quote needed to protect [] in grep expression. 11636 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11637 if test "x$FOUND_VERSION_78" = x; then 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 11639 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 11640 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 11641 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 11642 BOOT_JDK_FOUND=no 11643 else 11644 # We're done! :-) 11645 BOOT_JDK_FOUND=yes 11646 11647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11648 11649 # Input might be given as Windows format, start by converting to 11650 # unix format. 11651 path="$BOOT_JDK" 11652 new_path=`$CYGPATH -u "$path"` 11653 11654 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11655 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11656 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11657 # "foo.exe" is OK but "foo" is an error. 11658 # 11659 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11660 # It is also a way to make sure we got the proper file name for the real test later on. 11661 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11662 if test "x$test_shortpath" = x; then 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11664 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11665 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11666 fi 11667 11668 # Call helper function which possibly converts this using DOS-style short mode. 11669 # If so, the updated path is stored in $new_path. 11670 11671 input_path="$new_path" 11672 # Check if we need to convert this using DOS-style short mode. If the path 11673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11674 # take no chances and rewrite it. 11675 # Note: m4 eats our [], so we need to use [ and ] instead. 11676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11677 if test "x$has_forbidden_chars" != x; then 11678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11679 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11680 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11681 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11682 # Going to short mode and back again did indeed matter. Since short mode is 11683 # case insensitive, let's make it lowercase to improve readability. 11684 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11685 # Now convert it back to Unix-stile (cygpath) 11686 input_path=`$CYGPATH -u "$shortmode_path"` 11687 new_path="$input_path" 11688 fi 11689 fi 11690 11691 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11692 if test "x$test_cygdrive_prefix" = x; then 11693 # As a simple fix, exclude /usr/bin since it's not a real path. 11694 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11695 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11696 # a path prefixed by /cygdrive for fixpath to work. 11697 new_path="$CYGWIN_ROOT_PATH$input_path" 11698 fi 11699 fi 11700 11701 11702 if test "x$path" != "x$new_path"; then 11703 BOOT_JDK="$new_path" 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11705 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11706 fi 11707 11708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11709 11710 path="$BOOT_JDK" 11711 has_colon=`$ECHO $path | $GREP ^.:` 11712 new_path="$path" 11713 if test "x$has_colon" = x; then 11714 # Not in mixed or Windows style, start by that. 11715 new_path=`cmd //c echo $path` 11716 fi 11717 11718 11719 input_path="$new_path" 11720 # Check if we need to convert this using DOS-style short mode. If the path 11721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11722 # take no chances and rewrite it. 11723 # Note: m4 eats our [], so we need to use [ and ] instead. 11724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11725 if test "x$has_forbidden_chars" != x; then 11726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11727 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11728 fi 11729 11730 11731 windows_path="$new_path" 11732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11733 unix_path=`$CYGPATH -u "$windows_path"` 11734 new_path="$unix_path" 11735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11737 new_path="$unix_path" 11738 fi 11739 11740 if test "x$path" != "x$new_path"; then 11741 BOOT_JDK="$new_path" 11742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11743 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11744 fi 11745 11746 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11747 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11748 11749 else 11750 # We're on a posix platform. Hooray! :) 11751 path="$BOOT_JDK" 11752 has_space=`$ECHO "$path" | $GREP " "` 11753 if test "x$has_space" != x; then 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11755 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11756 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11757 fi 11758 11759 # Use eval to expand a potential ~ 11760 eval path="$path" 11761 if test ! -f "$path" && test ! -d "$path"; then 11762 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11763 fi 11764 11765 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 11766 fi 11767 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11769 $as_echo_n "checking for Boot JDK... " >&6; } 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11771 $as_echo "$BOOT_JDK" >&6; } 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11773 $as_echo_n "checking Boot JDK version... " >&6; } 11774 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11776 $as_echo "$BOOT_JDK_VERSION" >&6; } 11777 fi # end check jdk version 11778 fi # end check rt.jar 11779 fi # end check javac 11780 fi # end check java 11781 fi # end check boot jdk found 11782 fi 11783 11784 11785 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 11786 11787 if test "x$BOOT_JDK_FOUND" = xno; then 11788 # Now execute the test 11789 11790 if test -x /usr/libexec/java_home; then 11791 BOOT_JDK=`/usr/libexec/java_home` 11792 BOOT_JDK_FOUND=maybe 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 11794 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 11795 fi 11796 11797 11798 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 11799 if test "x$BOOT_JDK_FOUND" = xmaybe; then 11800 # Do we have a bin/java? 11801 if test ! -x "$BOOT_JDK/bin/java"; then 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 11803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 11804 BOOT_JDK_FOUND=no 11805 else 11806 # Do we have a bin/javac? 11807 if test ! -x "$BOOT_JDK/bin/javac"; then 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 11809 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 11811 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 11812 BOOT_JDK_FOUND=no 11813 else 11814 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 11815 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 11817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 11818 BOOT_JDK_FOUND=no 11819 else 11820 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 11821 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 11822 11823 # Extra M4 quote needed to protect [] in grep expression. 11824 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11825 if test "x$FOUND_VERSION_78" = x; then 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 11827 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 11829 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 11830 BOOT_JDK_FOUND=no 11831 else 11832 # We're done! :-) 11833 BOOT_JDK_FOUND=yes 11834 11835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11836 11837 # Input might be given as Windows format, start by converting to 11838 # unix format. 11839 path="$BOOT_JDK" 11840 new_path=`$CYGPATH -u "$path"` 11841 11842 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 11843 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 11844 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 11845 # "foo.exe" is OK but "foo" is an error. 11846 # 11847 # This test is therefore slightly more accurate than "test -f" to check for file precense. 11848 # It is also a way to make sure we got the proper file name for the real test later on. 11849 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 11850 if test "x$test_shortpath" = x; then 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11852 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11853 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 11854 fi 11855 11856 # Call helper function which possibly converts this using DOS-style short mode. 11857 # If so, the updated path is stored in $new_path. 11858 11859 input_path="$new_path" 11860 # Check if we need to convert this using DOS-style short mode. If the path 11861 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11862 # take no chances and rewrite it. 11863 # Note: m4 eats our [], so we need to use [ and ] instead. 11864 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 11865 if test "x$has_forbidden_chars" != x; then 11866 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11867 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 11868 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 11869 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 11870 # Going to short mode and back again did indeed matter. Since short mode is 11871 # case insensitive, let's make it lowercase to improve readability. 11872 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11873 # Now convert it back to Unix-stile (cygpath) 11874 input_path=`$CYGPATH -u "$shortmode_path"` 11875 new_path="$input_path" 11876 fi 11877 fi 11878 11879 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 11880 if test "x$test_cygdrive_prefix" = x; then 11881 # As a simple fix, exclude /usr/bin since it's not a real path. 11882 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 11883 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 11884 # a path prefixed by /cygdrive for fixpath to work. 11885 new_path="$CYGWIN_ROOT_PATH$input_path" 11886 fi 11887 fi 11888 11889 11890 if test "x$path" != "x$new_path"; then 11891 BOOT_JDK="$new_path" 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11893 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11894 fi 11895 11896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11897 11898 path="$BOOT_JDK" 11899 has_colon=`$ECHO $path | $GREP ^.:` 11900 new_path="$path" 11901 if test "x$has_colon" = x; then 11902 # Not in mixed or Windows style, start by that. 11903 new_path=`cmd //c echo $path` 11904 fi 11905 11906 11907 input_path="$new_path" 11908 # Check if we need to convert this using DOS-style short mode. If the path 11909 # contains just simple characters, use it. Otherwise (spaces, weird characters), 11910 # take no chances and rewrite it. 11911 # Note: m4 eats our [], so we need to use [ and ] instead. 11912 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 11913 if test "x$has_forbidden_chars" != x; then 11914 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 11915 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 11916 fi 11917 11918 11919 windows_path="$new_path" 11920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 11921 unix_path=`$CYGPATH -u "$windows_path"` 11922 new_path="$unix_path" 11923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 11924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 11925 new_path="$unix_path" 11926 fi 11927 11928 if test "x$path" != "x$new_path"; then 11929 BOOT_JDK="$new_path" 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 11931 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 11932 fi 11933 11934 # Save the first 10 bytes of this path to the storage, so fixpath can work. 11935 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 11936 11937 else 11938 # We're on a posix platform. Hooray! :) 11939 path="$BOOT_JDK" 11940 has_space=`$ECHO "$path" | $GREP " "` 11941 if test "x$has_space" != x; then 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 11943 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 11944 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 11945 fi 11946 11947 # Use eval to expand a potential ~ 11948 eval path="$path" 11949 if test ! -f "$path" && test ! -d "$path"; then 11950 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 11951 fi 11952 11953 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 11954 fi 11955 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11957 $as_echo_n "checking for Boot JDK... " >&6; } 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11959 $as_echo "$BOOT_JDK" >&6; } 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 11961 $as_echo_n "checking Boot JDK version... " >&6; } 11962 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 11964 $as_echo "$BOOT_JDK_VERSION" >&6; } 11965 fi # end check jdk version 11966 fi # end check rt.jar 11967 fi # end check javac 11968 fi # end check java 11969 fi # end check boot jdk found 11970 fi 11971 11972 11973 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 11974 11975 if test "x$BOOT_JDK_FOUND" = xno; then 11976 # Now execute the test 11977 11978 # Extract the first word of "javac", so it can be a program name with args. 11979 set dummy javac; ac_word=$2 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11981 $as_echo_n "checking for $ac_word... " >&6; } 11982 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 11983 $as_echo_n "(cached) " >&6 11984 else 11985 case $JAVAC_CHECK in 11986 [\\/]* | ?:[\\/]*) 11987 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 11988 ;; 11989 *) 11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11991 for as_dir in $PATH 11992 do 11993 IFS=$as_save_IFS 11994 test -z "$as_dir" && as_dir=. 11995 for ac_exec_ext in '' $ac_executable_extensions; do 11996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11997 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11999 break 2 12000 fi 12001 done 12002 done 12003 IFS=$as_save_IFS 12004 12005 ;; 12006 esac 12007 fi 12008 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 12009 if test -n "$JAVAC_CHECK"; then 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 12011 $as_echo "$JAVAC_CHECK" >&6; } 12012 else 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12014 $as_echo "no" >&6; } 12015 fi 12016 12017 12018 # Extract the first word of "java", so it can be a program name with args. 12019 set dummy java; ac_word=$2 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12021 $as_echo_n "checking for $ac_word... " >&6; } 12022 if ${ac_cv_path_JAVA_CHECK+:} false; then : 12023 $as_echo_n "(cached) " >&6 12024 else 12025 case $JAVA_CHECK in 12026 [\\/]* | ?:[\\/]*) 12027 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 12028 ;; 12029 *) 12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12031 for as_dir in $PATH 12032 do 12033 IFS=$as_save_IFS 12034 test -z "$as_dir" && as_dir=. 12035 for ac_exec_ext in '' $ac_executable_extensions; do 12036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12037 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12039 break 2 12040 fi 12041 done 12042 done 12043 IFS=$as_save_IFS 12044 12045 ;; 12046 esac 12047 fi 12048 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 12049 if test -n "$JAVA_CHECK"; then 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 12051 $as_echo "$JAVA_CHECK" >&6; } 12052 else 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054 $as_echo "no" >&6; } 12055 fi 12056 12057 12058 BINARY="$JAVAC_CHECK" 12059 if test "x$JAVAC_CHECK" = x; then 12060 BINARY="$JAVA_CHECK" 12061 fi 12062 if test "x$BINARY" != x; then 12063 # So there is a java(c) binary, it might be part of a JDK. 12064 # Lets find the JDK/JRE directory by following symbolic links. 12065 # Linux/GNU systems often have links from /usr/bin/java to 12066 # /etc/alternatives/java to the real JDK binary. 12067 12068 if test "x$OPENJDK_BUILD_OS" != xwindows; then 12069 # Follow a chain of symbolic links. Use readlink 12070 # where it exists, else fall back to horribly 12071 # complicated shell code. 12072 if test "x$READLINK_TESTED" != yes; then 12073 # On MacOSX there is a readlink tool with a different 12074 # purpose than the GNU readlink tool. Check the found readlink. 12075 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 12076 if test "x$ISGNU" = x; then 12077 # A readlink that we do not know how to use. 12078 # Are there other non-GNU readlinks out there? 12079 READLINK_TESTED=yes 12080 READLINK= 12081 fi 12082 fi 12083 12084 if test "x$READLINK" != x; then 12085 BINARY=`$READLINK -f $BINARY` 12086 else 12087 # Save the current directory for restoring afterwards 12088 STARTDIR=$PWD 12089 COUNTER=0 12090 sym_link_dir=`$DIRNAME $BINARY` 12091 sym_link_file=`$BASENAME $BINARY` 12092 cd $sym_link_dir 12093 # Use -P flag to resolve symlinks in directories. 12094 cd `$THEPWDCMD -P` 12095 sym_link_dir=`$THEPWDCMD -P` 12096 # Resolve file symlinks 12097 while test $COUNTER -lt 20; do 12098 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 12099 if test "x$ISLINK" == x; then 12100 # This is not a symbolic link! We are done! 12101 break 12102 fi 12103 # Again resolve directory symlinks since the target of the just found 12104 # link could be in a different directory 12105 cd `$DIRNAME $ISLINK` 12106 sym_link_dir=`$THEPWDCMD -P` 12107 sym_link_file=`$BASENAME $ISLINK` 12108 let COUNTER=COUNTER+1 12109 done 12110 cd $STARTDIR 12111 BINARY=$sym_link_dir/$sym_link_file 12112 fi 12113 fi 12114 12115 BOOT_JDK=`dirname "$BINARY"` 12116 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 12117 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 12118 # Looks like we found ourselves an JDK 12119 BOOT_JDK_FOUND=maybe 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 12121 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 12122 fi 12123 fi 12124 12125 12126 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12127 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12128 # Do we have a bin/java? 12129 if test ! -x "$BOOT_JDK/bin/java"; then 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12131 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12132 BOOT_JDK_FOUND=no 12133 else 12134 # Do we have a bin/javac? 12135 if test ! -x "$BOOT_JDK/bin/javac"; then 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12137 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12139 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12140 BOOT_JDK_FOUND=no 12141 else 12142 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12143 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12145 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12146 BOOT_JDK_FOUND=no 12147 else 12148 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12149 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12150 12151 # Extra M4 quote needed to protect [] in grep expression. 12152 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12153 if test "x$FOUND_VERSION_78" = x; then 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12155 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12157 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12158 BOOT_JDK_FOUND=no 12159 else 12160 # We're done! :-) 12161 BOOT_JDK_FOUND=yes 12162 12163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12164 12165 # Input might be given as Windows format, start by converting to 12166 # unix format. 12167 path="$BOOT_JDK" 12168 new_path=`$CYGPATH -u "$path"` 12169 12170 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12171 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12172 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12173 # "foo.exe" is OK but "foo" is an error. 12174 # 12175 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12176 # It is also a way to make sure we got the proper file name for the real test later on. 12177 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12178 if test "x$test_shortpath" = x; then 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12180 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12181 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12182 fi 12183 12184 # Call helper function which possibly converts this using DOS-style short mode. 12185 # If so, the updated path is stored in $new_path. 12186 12187 input_path="$new_path" 12188 # Check if we need to convert this using DOS-style short mode. If the path 12189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12190 # take no chances and rewrite it. 12191 # Note: m4 eats our [], so we need to use [ and ] instead. 12192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12193 if test "x$has_forbidden_chars" != x; then 12194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12195 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12196 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12197 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12198 # Going to short mode and back again did indeed matter. Since short mode is 12199 # case insensitive, let's make it lowercase to improve readability. 12200 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12201 # Now convert it back to Unix-stile (cygpath) 12202 input_path=`$CYGPATH -u "$shortmode_path"` 12203 new_path="$input_path" 12204 fi 12205 fi 12206 12207 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12208 if test "x$test_cygdrive_prefix" = x; then 12209 # As a simple fix, exclude /usr/bin since it's not a real path. 12210 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12211 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12212 # a path prefixed by /cygdrive for fixpath to work. 12213 new_path="$CYGWIN_ROOT_PATH$input_path" 12214 fi 12215 fi 12216 12217 12218 if test "x$path" != "x$new_path"; then 12219 BOOT_JDK="$new_path" 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12221 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12222 fi 12223 12224 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12225 12226 path="$BOOT_JDK" 12227 has_colon=`$ECHO $path | $GREP ^.:` 12228 new_path="$path" 12229 if test "x$has_colon" = x; then 12230 # Not in mixed or Windows style, start by that. 12231 new_path=`cmd //c echo $path` 12232 fi 12233 12234 12235 input_path="$new_path" 12236 # Check if we need to convert this using DOS-style short mode. If the path 12237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12238 # take no chances and rewrite it. 12239 # Note: m4 eats our [], so we need to use [ and ] instead. 12240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12241 if test "x$has_forbidden_chars" != x; then 12242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12243 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12244 fi 12245 12246 12247 windows_path="$new_path" 12248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12249 unix_path=`$CYGPATH -u "$windows_path"` 12250 new_path="$unix_path" 12251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12252 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12253 new_path="$unix_path" 12254 fi 12255 12256 if test "x$path" != "x$new_path"; then 12257 BOOT_JDK="$new_path" 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12259 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12260 fi 12261 12262 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12263 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12264 12265 else 12266 # We're on a posix platform. Hooray! :) 12267 path="$BOOT_JDK" 12268 has_space=`$ECHO "$path" | $GREP " "` 12269 if test "x$has_space" != x; then 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12271 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12272 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12273 fi 12274 12275 # Use eval to expand a potential ~ 12276 eval path="$path" 12277 if test ! -f "$path" && test ! -d "$path"; then 12278 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12279 fi 12280 12281 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 12282 fi 12283 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12285 $as_echo_n "checking for Boot JDK... " >&6; } 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12287 $as_echo "$BOOT_JDK" >&6; } 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12289 $as_echo_n "checking Boot JDK version... " >&6; } 12290 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12292 $as_echo "$BOOT_JDK_VERSION" >&6; } 12293 fi # end check jdk version 12294 fi # end check rt.jar 12295 fi # end check javac 12296 fi # end check java 12297 fi # end check boot jdk found 12298 fi 12299 12300 12301 # Test: Is there a JDK installed in default, well-known locations? 12302 12303 if test "x$BOOT_JDK_FOUND" = xno; then 12304 # Now execute the test 12305 12306 if test "x$OPENJDK_TARGET_OS" = xwindows; then 12307 12308 if test "x$BOOT_JDK_FOUND" = xno; then 12309 # Now execute the test 12310 12311 if test "x$ProgramW6432" != x; then 12312 VIRTUAL_DIR="$ProgramW6432/Java" 12313 12314 windows_path="$VIRTUAL_DIR" 12315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12316 unix_path=`$CYGPATH -u "$windows_path"` 12317 VIRTUAL_DIR="$unix_path" 12318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12320 VIRTUAL_DIR="$unix_path" 12321 fi 12322 12323 12324 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 12325 BOOT_JDK_SUFFIX="" 12326 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 12327 if test "x$ALL_JDKS_FOUND" != x; then 12328 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 12329 12330 if test "x$BOOT_JDK_FOUND" = xno; then 12331 # Now execute the test 12332 12333 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 12334 if test -d "$BOOT_JDK"; then 12335 BOOT_JDK_FOUND=maybe 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 12337 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 12338 fi 12339 12340 12341 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12342 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12343 # Do we have a bin/java? 12344 if test ! -x "$BOOT_JDK/bin/java"; then 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12346 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12347 BOOT_JDK_FOUND=no 12348 else 12349 # Do we have a bin/javac? 12350 if test ! -x "$BOOT_JDK/bin/javac"; then 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12352 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12354 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12355 BOOT_JDK_FOUND=no 12356 else 12357 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12358 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12360 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12361 BOOT_JDK_FOUND=no 12362 else 12363 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12364 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12365 12366 # Extra M4 quote needed to protect [] in grep expression. 12367 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12368 if test "x$FOUND_VERSION_78" = x; then 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12370 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12372 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12373 BOOT_JDK_FOUND=no 12374 else 12375 # We're done! :-) 12376 BOOT_JDK_FOUND=yes 12377 12378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12379 12380 # Input might be given as Windows format, start by converting to 12381 # unix format. 12382 path="$BOOT_JDK" 12383 new_path=`$CYGPATH -u "$path"` 12384 12385 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12386 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12387 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12388 # "foo.exe" is OK but "foo" is an error. 12389 # 12390 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12391 # It is also a way to make sure we got the proper file name for the real test later on. 12392 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12393 if test "x$test_shortpath" = x; then 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12395 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12396 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12397 fi 12398 12399 # Call helper function which possibly converts this using DOS-style short mode. 12400 # If so, the updated path is stored in $new_path. 12401 12402 input_path="$new_path" 12403 # Check if we need to convert this using DOS-style short mode. If the path 12404 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12405 # take no chances and rewrite it. 12406 # Note: m4 eats our [], so we need to use [ and ] instead. 12407 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12408 if test "x$has_forbidden_chars" != x; then 12409 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12410 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12411 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12412 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12413 # Going to short mode and back again did indeed matter. Since short mode is 12414 # case insensitive, let's make it lowercase to improve readability. 12415 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12416 # Now convert it back to Unix-stile (cygpath) 12417 input_path=`$CYGPATH -u "$shortmode_path"` 12418 new_path="$input_path" 12419 fi 12420 fi 12421 12422 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12423 if test "x$test_cygdrive_prefix" = x; then 12424 # As a simple fix, exclude /usr/bin since it's not a real path. 12425 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12426 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12427 # a path prefixed by /cygdrive for fixpath to work. 12428 new_path="$CYGWIN_ROOT_PATH$input_path" 12429 fi 12430 fi 12431 12432 12433 if test "x$path" != "x$new_path"; then 12434 BOOT_JDK="$new_path" 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12436 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12437 fi 12438 12439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12440 12441 path="$BOOT_JDK" 12442 has_colon=`$ECHO $path | $GREP ^.:` 12443 new_path="$path" 12444 if test "x$has_colon" = x; then 12445 # Not in mixed or Windows style, start by that. 12446 new_path=`cmd //c echo $path` 12447 fi 12448 12449 12450 input_path="$new_path" 12451 # Check if we need to convert this using DOS-style short mode. If the path 12452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12453 # take no chances and rewrite it. 12454 # Note: m4 eats our [], so we need to use [ and ] instead. 12455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12456 if test "x$has_forbidden_chars" != x; then 12457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12458 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12459 fi 12460 12461 12462 windows_path="$new_path" 12463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12464 unix_path=`$CYGPATH -u "$windows_path"` 12465 new_path="$unix_path" 12466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12468 new_path="$unix_path" 12469 fi 12470 12471 if test "x$path" != "x$new_path"; then 12472 BOOT_JDK="$new_path" 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12474 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12475 fi 12476 12477 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12478 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12479 12480 else 12481 # We're on a posix platform. Hooray! :) 12482 path="$BOOT_JDK" 12483 has_space=`$ECHO "$path" | $GREP " "` 12484 if test "x$has_space" != x; then 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12486 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12487 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12488 fi 12489 12490 # Use eval to expand a potential ~ 12491 eval path="$path" 12492 if test ! -f "$path" && test ! -d "$path"; then 12493 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12494 fi 12495 12496 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 12497 fi 12498 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12500 $as_echo_n "checking for Boot JDK... " >&6; } 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12502 $as_echo "$BOOT_JDK" >&6; } 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12504 $as_echo_n "checking Boot JDK version... " >&6; } 12505 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12507 $as_echo "$BOOT_JDK_VERSION" >&6; } 12508 fi # end check jdk version 12509 fi # end check rt.jar 12510 fi # end check javac 12511 fi # end check java 12512 fi # end check boot jdk found 12513 fi 12514 12515 done 12516 fi 12517 12518 fi 12519 12520 12521 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12522 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12523 # Do we have a bin/java? 12524 if test ! -x "$BOOT_JDK/bin/java"; then 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12526 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12527 BOOT_JDK_FOUND=no 12528 else 12529 # Do we have a bin/javac? 12530 if test ! -x "$BOOT_JDK/bin/javac"; then 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12532 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12534 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12535 BOOT_JDK_FOUND=no 12536 else 12537 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12538 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12541 BOOT_JDK_FOUND=no 12542 else 12543 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12544 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12545 12546 # Extra M4 quote needed to protect [] in grep expression. 12547 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12548 if test "x$FOUND_VERSION_78" = x; then 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12552 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12553 BOOT_JDK_FOUND=no 12554 else 12555 # We're done! :-) 12556 BOOT_JDK_FOUND=yes 12557 12558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12559 12560 # Input might be given as Windows format, start by converting to 12561 # unix format. 12562 path="$BOOT_JDK" 12563 new_path=`$CYGPATH -u "$path"` 12564 12565 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12566 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12567 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12568 # "foo.exe" is OK but "foo" is an error. 12569 # 12570 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12571 # It is also a way to make sure we got the proper file name for the real test later on. 12572 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12573 if test "x$test_shortpath" = x; then 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12575 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12576 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12577 fi 12578 12579 # Call helper function which possibly converts this using DOS-style short mode. 12580 # If so, the updated path is stored in $new_path. 12581 12582 input_path="$new_path" 12583 # Check if we need to convert this using DOS-style short mode. If the path 12584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12585 # take no chances and rewrite it. 12586 # Note: m4 eats our [], so we need to use [ and ] instead. 12587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12588 if test "x$has_forbidden_chars" != x; then 12589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12590 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12591 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12592 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12593 # Going to short mode and back again did indeed matter. Since short mode is 12594 # case insensitive, let's make it lowercase to improve readability. 12595 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12596 # Now convert it back to Unix-stile (cygpath) 12597 input_path=`$CYGPATH -u "$shortmode_path"` 12598 new_path="$input_path" 12599 fi 12600 fi 12601 12602 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12603 if test "x$test_cygdrive_prefix" = x; then 12604 # As a simple fix, exclude /usr/bin since it's not a real path. 12605 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12606 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12607 # a path prefixed by /cygdrive for fixpath to work. 12608 new_path="$CYGWIN_ROOT_PATH$input_path" 12609 fi 12610 fi 12611 12612 12613 if test "x$path" != "x$new_path"; then 12614 BOOT_JDK="$new_path" 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12616 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12617 fi 12618 12619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12620 12621 path="$BOOT_JDK" 12622 has_colon=`$ECHO $path | $GREP ^.:` 12623 new_path="$path" 12624 if test "x$has_colon" = x; then 12625 # Not in mixed or Windows style, start by that. 12626 new_path=`cmd //c echo $path` 12627 fi 12628 12629 12630 input_path="$new_path" 12631 # Check if we need to convert this using DOS-style short mode. If the path 12632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12633 # take no chances and rewrite it. 12634 # Note: m4 eats our [], so we need to use [ and ] instead. 12635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12636 if test "x$has_forbidden_chars" != x; then 12637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12638 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12639 fi 12640 12641 12642 windows_path="$new_path" 12643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12644 unix_path=`$CYGPATH -u "$windows_path"` 12645 new_path="$unix_path" 12646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12647 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12648 new_path="$unix_path" 12649 fi 12650 12651 if test "x$path" != "x$new_path"; then 12652 BOOT_JDK="$new_path" 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12654 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12655 fi 12656 12657 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12658 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12659 12660 else 12661 # We're on a posix platform. Hooray! :) 12662 path="$BOOT_JDK" 12663 has_space=`$ECHO "$path" | $GREP " "` 12664 if test "x$has_space" != x; then 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12666 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12667 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12668 fi 12669 12670 # Use eval to expand a potential ~ 12671 eval path="$path" 12672 if test ! -f "$path" && test ! -d "$path"; then 12673 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12674 fi 12675 12676 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 12677 fi 12678 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12680 $as_echo_n "checking for Boot JDK... " >&6; } 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12682 $as_echo "$BOOT_JDK" >&6; } 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12684 $as_echo_n "checking Boot JDK version... " >&6; } 12685 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12687 $as_echo "$BOOT_JDK_VERSION" >&6; } 12688 fi # end check jdk version 12689 fi # end check rt.jar 12690 fi # end check javac 12691 fi # end check java 12692 fi # end check boot jdk found 12693 fi 12694 12695 12696 if test "x$BOOT_JDK_FOUND" = xno; then 12697 # Now execute the test 12698 12699 if test "x$PROGRAMW6432" != x; then 12700 VIRTUAL_DIR="$PROGRAMW6432/Java" 12701 12702 windows_path="$VIRTUAL_DIR" 12703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12704 unix_path=`$CYGPATH -u "$windows_path"` 12705 VIRTUAL_DIR="$unix_path" 12706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12708 VIRTUAL_DIR="$unix_path" 12709 fi 12710 12711 12712 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 12713 BOOT_JDK_SUFFIX="" 12714 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 12715 if test "x$ALL_JDKS_FOUND" != x; then 12716 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 12717 12718 if test "x$BOOT_JDK_FOUND" = xno; then 12719 # Now execute the test 12720 12721 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 12722 if test -d "$BOOT_JDK"; then 12723 BOOT_JDK_FOUND=maybe 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 12725 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 12726 fi 12727 12728 12729 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12730 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12731 # Do we have a bin/java? 12732 if test ! -x "$BOOT_JDK/bin/java"; then 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12735 BOOT_JDK_FOUND=no 12736 else 12737 # Do we have a bin/javac? 12738 if test ! -x "$BOOT_JDK/bin/javac"; then 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12742 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12743 BOOT_JDK_FOUND=no 12744 else 12745 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12746 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12749 BOOT_JDK_FOUND=no 12750 else 12751 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12752 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12753 12754 # Extra M4 quote needed to protect [] in grep expression. 12755 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12756 if test "x$FOUND_VERSION_78" = x; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12758 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12760 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12761 BOOT_JDK_FOUND=no 12762 else 12763 # We're done! :-) 12764 BOOT_JDK_FOUND=yes 12765 12766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12767 12768 # Input might be given as Windows format, start by converting to 12769 # unix format. 12770 path="$BOOT_JDK" 12771 new_path=`$CYGPATH -u "$path"` 12772 12773 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12774 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12775 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12776 # "foo.exe" is OK but "foo" is an error. 12777 # 12778 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12779 # It is also a way to make sure we got the proper file name for the real test later on. 12780 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12781 if test "x$test_shortpath" = x; then 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12783 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12784 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12785 fi 12786 12787 # Call helper function which possibly converts this using DOS-style short mode. 12788 # If so, the updated path is stored in $new_path. 12789 12790 input_path="$new_path" 12791 # Check if we need to convert this using DOS-style short mode. If the path 12792 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12793 # take no chances and rewrite it. 12794 # Note: m4 eats our [], so we need to use [ and ] instead. 12795 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12796 if test "x$has_forbidden_chars" != x; then 12797 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12798 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12799 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12800 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12801 # Going to short mode and back again did indeed matter. Since short mode is 12802 # case insensitive, let's make it lowercase to improve readability. 12803 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12804 # Now convert it back to Unix-stile (cygpath) 12805 input_path=`$CYGPATH -u "$shortmode_path"` 12806 new_path="$input_path" 12807 fi 12808 fi 12809 12810 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12811 if test "x$test_cygdrive_prefix" = x; then 12812 # As a simple fix, exclude /usr/bin since it's not a real path. 12813 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12814 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12815 # a path prefixed by /cygdrive for fixpath to work. 12816 new_path="$CYGWIN_ROOT_PATH$input_path" 12817 fi 12818 fi 12819 12820 12821 if test "x$path" != "x$new_path"; then 12822 BOOT_JDK="$new_path" 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12824 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12825 fi 12826 12827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12828 12829 path="$BOOT_JDK" 12830 has_colon=`$ECHO $path | $GREP ^.:` 12831 new_path="$path" 12832 if test "x$has_colon" = x; then 12833 # Not in mixed or Windows style, start by that. 12834 new_path=`cmd //c echo $path` 12835 fi 12836 12837 12838 input_path="$new_path" 12839 # Check if we need to convert this using DOS-style short mode. If the path 12840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12841 # take no chances and rewrite it. 12842 # Note: m4 eats our [], so we need to use [ and ] instead. 12843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 12844 if test "x$has_forbidden_chars" != x; then 12845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12846 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12847 fi 12848 12849 12850 windows_path="$new_path" 12851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12852 unix_path=`$CYGPATH -u "$windows_path"` 12853 new_path="$unix_path" 12854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 12855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 12856 new_path="$unix_path" 12857 fi 12858 12859 if test "x$path" != "x$new_path"; then 12860 BOOT_JDK="$new_path" 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 12862 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 12863 fi 12864 12865 # Save the first 10 bytes of this path to the storage, so fixpath can work. 12866 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 12867 12868 else 12869 # We're on a posix platform. Hooray! :) 12870 path="$BOOT_JDK" 12871 has_space=`$ECHO "$path" | $GREP " "` 12872 if test "x$has_space" != x; then 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12874 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12875 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 12876 fi 12877 12878 # Use eval to expand a potential ~ 12879 eval path="$path" 12880 if test ! -f "$path" && test ! -d "$path"; then 12881 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 12882 fi 12883 12884 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 12885 fi 12886 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 12888 $as_echo_n "checking for Boot JDK... " >&6; } 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 12890 $as_echo "$BOOT_JDK" >&6; } 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 12892 $as_echo_n "checking Boot JDK version... " >&6; } 12893 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 12895 $as_echo "$BOOT_JDK_VERSION" >&6; } 12896 fi # end check jdk version 12897 fi # end check rt.jar 12898 fi # end check javac 12899 fi # end check java 12900 fi # end check boot jdk found 12901 fi 12902 12903 done 12904 fi 12905 12906 fi 12907 12908 12909 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 12910 if test "x$BOOT_JDK_FOUND" = xmaybe; then 12911 # Do we have a bin/java? 12912 if test ! -x "$BOOT_JDK/bin/java"; then 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 12914 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 12915 BOOT_JDK_FOUND=no 12916 else 12917 # Do we have a bin/javac? 12918 if test ! -x "$BOOT_JDK/bin/javac"; then 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 12920 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 12922 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 12923 BOOT_JDK_FOUND=no 12924 else 12925 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 12926 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 12928 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 12929 BOOT_JDK_FOUND=no 12930 else 12931 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 12932 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 12933 12934 # Extra M4 quote needed to protect [] in grep expression. 12935 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 12936 if test "x$FOUND_VERSION_78" = x; then 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 12938 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 12940 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 12941 BOOT_JDK_FOUND=no 12942 else 12943 # We're done! :-) 12944 BOOT_JDK_FOUND=yes 12945 12946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 12947 12948 # Input might be given as Windows format, start by converting to 12949 # unix format. 12950 path="$BOOT_JDK" 12951 new_path=`$CYGPATH -u "$path"` 12952 12953 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 12954 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 12955 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 12956 # "foo.exe" is OK but "foo" is an error. 12957 # 12958 # This test is therefore slightly more accurate than "test -f" to check for file precense. 12959 # It is also a way to make sure we got the proper file name for the real test later on. 12960 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 12961 if test "x$test_shortpath" = x; then 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 12963 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 12964 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 12965 fi 12966 12967 # Call helper function which possibly converts this using DOS-style short mode. 12968 # If so, the updated path is stored in $new_path. 12969 12970 input_path="$new_path" 12971 # Check if we need to convert this using DOS-style short mode. If the path 12972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 12973 # take no chances and rewrite it. 12974 # Note: m4 eats our [], so we need to use [ and ] instead. 12975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 12976 if test "x$has_forbidden_chars" != x; then 12977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 12978 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 12979 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 12980 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 12981 # Going to short mode and back again did indeed matter. Since short mode is 12982 # case insensitive, let's make it lowercase to improve readability. 12983 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12984 # Now convert it back to Unix-stile (cygpath) 12985 input_path=`$CYGPATH -u "$shortmode_path"` 12986 new_path="$input_path" 12987 fi 12988 fi 12989 12990 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 12991 if test "x$test_cygdrive_prefix" = x; then 12992 # As a simple fix, exclude /usr/bin since it's not a real path. 12993 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 12994 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 12995 # a path prefixed by /cygdrive for fixpath to work. 12996 new_path="$CYGWIN_ROOT_PATH$input_path" 12997 fi 12998 fi 12999 13000 13001 if test "x$path" != "x$new_path"; then 13002 BOOT_JDK="$new_path" 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13004 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13005 fi 13006 13007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13008 13009 path="$BOOT_JDK" 13010 has_colon=`$ECHO $path | $GREP ^.:` 13011 new_path="$path" 13012 if test "x$has_colon" = x; then 13013 # Not in mixed or Windows style, start by that. 13014 new_path=`cmd //c echo $path` 13015 fi 13016 13017 13018 input_path="$new_path" 13019 # Check if we need to convert this using DOS-style short mode. If the path 13020 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13021 # take no chances and rewrite it. 13022 # Note: m4 eats our [], so we need to use [ and ] instead. 13023 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13024 if test "x$has_forbidden_chars" != x; then 13025 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13026 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13027 fi 13028 13029 13030 windows_path="$new_path" 13031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13032 unix_path=`$CYGPATH -u "$windows_path"` 13033 new_path="$unix_path" 13034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13035 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13036 new_path="$unix_path" 13037 fi 13038 13039 if test "x$path" != "x$new_path"; then 13040 BOOT_JDK="$new_path" 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13042 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13043 fi 13044 13045 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13046 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13047 13048 else 13049 # We're on a posix platform. Hooray! :) 13050 path="$BOOT_JDK" 13051 has_space=`$ECHO "$path" | $GREP " "` 13052 if test "x$has_space" != x; then 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13054 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13055 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13056 fi 13057 13058 # Use eval to expand a potential ~ 13059 eval path="$path" 13060 if test ! -f "$path" && test ! -d "$path"; then 13061 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13062 fi 13063 13064 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 13065 fi 13066 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13068 $as_echo_n "checking for Boot JDK... " >&6; } 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13070 $as_echo "$BOOT_JDK" >&6; } 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13072 $as_echo_n "checking Boot JDK version... " >&6; } 13073 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13075 $as_echo "$BOOT_JDK_VERSION" >&6; } 13076 fi # end check jdk version 13077 fi # end check rt.jar 13078 fi # end check javac 13079 fi # end check java 13080 fi # end check boot jdk found 13081 fi 13082 13083 13084 if test "x$BOOT_JDK_FOUND" = xno; then 13085 # Now execute the test 13086 13087 if test "x$PROGRAMFILES" != x; then 13088 VIRTUAL_DIR="$PROGRAMFILES/Java" 13089 13090 windows_path="$VIRTUAL_DIR" 13091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13092 unix_path=`$CYGPATH -u "$windows_path"` 13093 VIRTUAL_DIR="$unix_path" 13094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13096 VIRTUAL_DIR="$unix_path" 13097 fi 13098 13099 13100 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 13101 BOOT_JDK_SUFFIX="" 13102 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 13103 if test "x$ALL_JDKS_FOUND" != x; then 13104 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 13105 13106 if test "x$BOOT_JDK_FOUND" = xno; then 13107 # Now execute the test 13108 13109 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 13110 if test -d "$BOOT_JDK"; then 13111 BOOT_JDK_FOUND=maybe 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 13113 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 13114 fi 13115 13116 13117 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13118 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13119 # Do we have a bin/java? 13120 if test ! -x "$BOOT_JDK/bin/java"; then 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13123 BOOT_JDK_FOUND=no 13124 else 13125 # Do we have a bin/javac? 13126 if test ! -x "$BOOT_JDK/bin/javac"; then 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13130 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13131 BOOT_JDK_FOUND=no 13132 else 13133 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13134 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13137 BOOT_JDK_FOUND=no 13138 else 13139 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13140 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13141 13142 # Extra M4 quote needed to protect [] in grep expression. 13143 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13144 if test "x$FOUND_VERSION_78" = x; then 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13146 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13147 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13148 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13149 BOOT_JDK_FOUND=no 13150 else 13151 # We're done! :-) 13152 BOOT_JDK_FOUND=yes 13153 13154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13155 13156 # Input might be given as Windows format, start by converting to 13157 # unix format. 13158 path="$BOOT_JDK" 13159 new_path=`$CYGPATH -u "$path"` 13160 13161 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13162 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13163 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13164 # "foo.exe" is OK but "foo" is an error. 13165 # 13166 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13167 # It is also a way to make sure we got the proper file name for the real test later on. 13168 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13169 if test "x$test_shortpath" = x; then 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13171 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13172 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13173 fi 13174 13175 # Call helper function which possibly converts this using DOS-style short mode. 13176 # If so, the updated path is stored in $new_path. 13177 13178 input_path="$new_path" 13179 # Check if we need to convert this using DOS-style short mode. If the path 13180 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13181 # take no chances and rewrite it. 13182 # Note: m4 eats our [], so we need to use [ and ] instead. 13183 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13184 if test "x$has_forbidden_chars" != x; then 13185 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13186 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13187 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13188 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13189 # Going to short mode and back again did indeed matter. Since short mode is 13190 # case insensitive, let's make it lowercase to improve readability. 13191 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13192 # Now convert it back to Unix-stile (cygpath) 13193 input_path=`$CYGPATH -u "$shortmode_path"` 13194 new_path="$input_path" 13195 fi 13196 fi 13197 13198 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13199 if test "x$test_cygdrive_prefix" = x; then 13200 # As a simple fix, exclude /usr/bin since it's not a real path. 13201 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13202 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13203 # a path prefixed by /cygdrive for fixpath to work. 13204 new_path="$CYGWIN_ROOT_PATH$input_path" 13205 fi 13206 fi 13207 13208 13209 if test "x$path" != "x$new_path"; then 13210 BOOT_JDK="$new_path" 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13212 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13213 fi 13214 13215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13216 13217 path="$BOOT_JDK" 13218 has_colon=`$ECHO $path | $GREP ^.:` 13219 new_path="$path" 13220 if test "x$has_colon" = x; then 13221 # Not in mixed or Windows style, start by that. 13222 new_path=`cmd //c echo $path` 13223 fi 13224 13225 13226 input_path="$new_path" 13227 # Check if we need to convert this using DOS-style short mode. If the path 13228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13229 # take no chances and rewrite it. 13230 # Note: m4 eats our [], so we need to use [ and ] instead. 13231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13232 if test "x$has_forbidden_chars" != x; then 13233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13234 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13235 fi 13236 13237 13238 windows_path="$new_path" 13239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13240 unix_path=`$CYGPATH -u "$windows_path"` 13241 new_path="$unix_path" 13242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13244 new_path="$unix_path" 13245 fi 13246 13247 if test "x$path" != "x$new_path"; then 13248 BOOT_JDK="$new_path" 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13250 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13251 fi 13252 13253 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13254 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13255 13256 else 13257 # We're on a posix platform. Hooray! :) 13258 path="$BOOT_JDK" 13259 has_space=`$ECHO "$path" | $GREP " "` 13260 if test "x$has_space" != x; then 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13262 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13263 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13264 fi 13265 13266 # Use eval to expand a potential ~ 13267 eval path="$path" 13268 if test ! -f "$path" && test ! -d "$path"; then 13269 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13270 fi 13271 13272 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 13273 fi 13274 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13276 $as_echo_n "checking for Boot JDK... " >&6; } 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13278 $as_echo "$BOOT_JDK" >&6; } 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13280 $as_echo_n "checking Boot JDK version... " >&6; } 13281 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13283 $as_echo "$BOOT_JDK_VERSION" >&6; } 13284 fi # end check jdk version 13285 fi # end check rt.jar 13286 fi # end check javac 13287 fi # end check java 13288 fi # end check boot jdk found 13289 fi 13290 13291 done 13292 fi 13293 13294 fi 13295 13296 13297 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13298 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13299 # Do we have a bin/java? 13300 if test ! -x "$BOOT_JDK/bin/java"; then 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13302 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13303 BOOT_JDK_FOUND=no 13304 else 13305 # Do we have a bin/javac? 13306 if test ! -x "$BOOT_JDK/bin/javac"; then 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13310 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13311 BOOT_JDK_FOUND=no 13312 else 13313 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13314 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13316 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13317 BOOT_JDK_FOUND=no 13318 else 13319 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13320 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13321 13322 # Extra M4 quote needed to protect [] in grep expression. 13323 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13324 if test "x$FOUND_VERSION_78" = x; then 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13328 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13329 BOOT_JDK_FOUND=no 13330 else 13331 # We're done! :-) 13332 BOOT_JDK_FOUND=yes 13333 13334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13335 13336 # Input might be given as Windows format, start by converting to 13337 # unix format. 13338 path="$BOOT_JDK" 13339 new_path=`$CYGPATH -u "$path"` 13340 13341 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13342 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13343 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13344 # "foo.exe" is OK but "foo" is an error. 13345 # 13346 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13347 # It is also a way to make sure we got the proper file name for the real test later on. 13348 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13349 if test "x$test_shortpath" = x; then 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13351 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13352 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13353 fi 13354 13355 # Call helper function which possibly converts this using DOS-style short mode. 13356 # If so, the updated path is stored in $new_path. 13357 13358 input_path="$new_path" 13359 # Check if we need to convert this using DOS-style short mode. If the path 13360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13361 # take no chances and rewrite it. 13362 # Note: m4 eats our [], so we need to use [ and ] instead. 13363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13364 if test "x$has_forbidden_chars" != x; then 13365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13366 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13367 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13368 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13369 # Going to short mode and back again did indeed matter. Since short mode is 13370 # case insensitive, let's make it lowercase to improve readability. 13371 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13372 # Now convert it back to Unix-stile (cygpath) 13373 input_path=`$CYGPATH -u "$shortmode_path"` 13374 new_path="$input_path" 13375 fi 13376 fi 13377 13378 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13379 if test "x$test_cygdrive_prefix" = x; then 13380 # As a simple fix, exclude /usr/bin since it's not a real path. 13381 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13382 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13383 # a path prefixed by /cygdrive for fixpath to work. 13384 new_path="$CYGWIN_ROOT_PATH$input_path" 13385 fi 13386 fi 13387 13388 13389 if test "x$path" != "x$new_path"; then 13390 BOOT_JDK="$new_path" 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13392 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13393 fi 13394 13395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13396 13397 path="$BOOT_JDK" 13398 has_colon=`$ECHO $path | $GREP ^.:` 13399 new_path="$path" 13400 if test "x$has_colon" = x; then 13401 # Not in mixed or Windows style, start by that. 13402 new_path=`cmd //c echo $path` 13403 fi 13404 13405 13406 input_path="$new_path" 13407 # Check if we need to convert this using DOS-style short mode. If the path 13408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13409 # take no chances and rewrite it. 13410 # Note: m4 eats our [], so we need to use [ and ] instead. 13411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13412 if test "x$has_forbidden_chars" != x; then 13413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13414 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13415 fi 13416 13417 13418 windows_path="$new_path" 13419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13420 unix_path=`$CYGPATH -u "$windows_path"` 13421 new_path="$unix_path" 13422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13424 new_path="$unix_path" 13425 fi 13426 13427 if test "x$path" != "x$new_path"; then 13428 BOOT_JDK="$new_path" 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13430 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13431 fi 13432 13433 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13434 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13435 13436 else 13437 # We're on a posix platform. Hooray! :) 13438 path="$BOOT_JDK" 13439 has_space=`$ECHO "$path" | $GREP " "` 13440 if test "x$has_space" != x; then 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13442 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13443 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13444 fi 13445 13446 # Use eval to expand a potential ~ 13447 eval path="$path" 13448 if test ! -f "$path" && test ! -d "$path"; then 13449 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13450 fi 13451 13452 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 13453 fi 13454 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13456 $as_echo_n "checking for Boot JDK... " >&6; } 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13458 $as_echo "$BOOT_JDK" >&6; } 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13460 $as_echo_n "checking Boot JDK version... " >&6; } 13461 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13463 $as_echo "$BOOT_JDK_VERSION" >&6; } 13464 fi # end check jdk version 13465 fi # end check rt.jar 13466 fi # end check javac 13467 fi # end check java 13468 fi # end check boot jdk found 13469 fi 13470 13471 13472 if test "x$BOOT_JDK_FOUND" = xno; then 13473 # Now execute the test 13474 13475 if test "x$ProgramFiles" != x; then 13476 VIRTUAL_DIR="$ProgramFiles/Java" 13477 13478 windows_path="$VIRTUAL_DIR" 13479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13480 unix_path=`$CYGPATH -u "$windows_path"` 13481 VIRTUAL_DIR="$unix_path" 13482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13483 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13484 VIRTUAL_DIR="$unix_path" 13485 fi 13486 13487 13488 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 13489 BOOT_JDK_SUFFIX="" 13490 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 13491 if test "x$ALL_JDKS_FOUND" != x; then 13492 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 13493 13494 if test "x$BOOT_JDK_FOUND" = xno; then 13495 # Now execute the test 13496 13497 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 13498 if test -d "$BOOT_JDK"; then 13499 BOOT_JDK_FOUND=maybe 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 13501 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 13502 fi 13503 13504 13505 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13506 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13507 # Do we have a bin/java? 13508 if test ! -x "$BOOT_JDK/bin/java"; then 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13510 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13511 BOOT_JDK_FOUND=no 13512 else 13513 # Do we have a bin/javac? 13514 if test ! -x "$BOOT_JDK/bin/javac"; then 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13516 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13517 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13518 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13519 BOOT_JDK_FOUND=no 13520 else 13521 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13522 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13524 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13525 BOOT_JDK_FOUND=no 13526 else 13527 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13528 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13529 13530 # Extra M4 quote needed to protect [] in grep expression. 13531 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13532 if test "x$FOUND_VERSION_78" = x; then 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13534 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13536 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13537 BOOT_JDK_FOUND=no 13538 else 13539 # We're done! :-) 13540 BOOT_JDK_FOUND=yes 13541 13542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13543 13544 # Input might be given as Windows format, start by converting to 13545 # unix format. 13546 path="$BOOT_JDK" 13547 new_path=`$CYGPATH -u "$path"` 13548 13549 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13550 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13551 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13552 # "foo.exe" is OK but "foo" is an error. 13553 # 13554 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13555 # It is also a way to make sure we got the proper file name for the real test later on. 13556 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13557 if test "x$test_shortpath" = x; then 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13559 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13560 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13561 fi 13562 13563 # Call helper function which possibly converts this using DOS-style short mode. 13564 # If so, the updated path is stored in $new_path. 13565 13566 input_path="$new_path" 13567 # Check if we need to convert this using DOS-style short mode. If the path 13568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13569 # take no chances and rewrite it. 13570 # Note: m4 eats our [], so we need to use [ and ] instead. 13571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13572 if test "x$has_forbidden_chars" != x; then 13573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13574 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13575 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13576 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13577 # Going to short mode and back again did indeed matter. Since short mode is 13578 # case insensitive, let's make it lowercase to improve readability. 13579 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13580 # Now convert it back to Unix-stile (cygpath) 13581 input_path=`$CYGPATH -u "$shortmode_path"` 13582 new_path="$input_path" 13583 fi 13584 fi 13585 13586 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13587 if test "x$test_cygdrive_prefix" = x; then 13588 # As a simple fix, exclude /usr/bin since it's not a real path. 13589 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13590 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13591 # a path prefixed by /cygdrive for fixpath to work. 13592 new_path="$CYGWIN_ROOT_PATH$input_path" 13593 fi 13594 fi 13595 13596 13597 if test "x$path" != "x$new_path"; then 13598 BOOT_JDK="$new_path" 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13600 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13601 fi 13602 13603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13604 13605 path="$BOOT_JDK" 13606 has_colon=`$ECHO $path | $GREP ^.:` 13607 new_path="$path" 13608 if test "x$has_colon" = x; then 13609 # Not in mixed or Windows style, start by that. 13610 new_path=`cmd //c echo $path` 13611 fi 13612 13613 13614 input_path="$new_path" 13615 # Check if we need to convert this using DOS-style short mode. If the path 13616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13617 # take no chances and rewrite it. 13618 # Note: m4 eats our [], so we need to use [ and ] instead. 13619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13620 if test "x$has_forbidden_chars" != x; then 13621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13622 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13623 fi 13624 13625 13626 windows_path="$new_path" 13627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13628 unix_path=`$CYGPATH -u "$windows_path"` 13629 new_path="$unix_path" 13630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13632 new_path="$unix_path" 13633 fi 13634 13635 if test "x$path" != "x$new_path"; then 13636 BOOT_JDK="$new_path" 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13638 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13639 fi 13640 13641 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13642 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13643 13644 else 13645 # We're on a posix platform. Hooray! :) 13646 path="$BOOT_JDK" 13647 has_space=`$ECHO "$path" | $GREP " "` 13648 if test "x$has_space" != x; then 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13650 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13651 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13652 fi 13653 13654 # Use eval to expand a potential ~ 13655 eval path="$path" 13656 if test ! -f "$path" && test ! -d "$path"; then 13657 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13658 fi 13659 13660 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 13661 fi 13662 13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13664 $as_echo_n "checking for Boot JDK... " >&6; } 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13666 $as_echo "$BOOT_JDK" >&6; } 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13668 $as_echo_n "checking Boot JDK version... " >&6; } 13669 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13671 $as_echo "$BOOT_JDK_VERSION" >&6; } 13672 fi # end check jdk version 13673 fi # end check rt.jar 13674 fi # end check javac 13675 fi # end check java 13676 fi # end check boot jdk found 13677 fi 13678 13679 done 13680 fi 13681 13682 fi 13683 13684 13685 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13686 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13687 # Do we have a bin/java? 13688 if test ! -x "$BOOT_JDK/bin/java"; then 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13690 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13691 BOOT_JDK_FOUND=no 13692 else 13693 # Do we have a bin/javac? 13694 if test ! -x "$BOOT_JDK/bin/javac"; then 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13696 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13698 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13699 BOOT_JDK_FOUND=no 13700 else 13701 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13702 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13704 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13705 BOOT_JDK_FOUND=no 13706 else 13707 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13708 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13709 13710 # Extra M4 quote needed to protect [] in grep expression. 13711 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13712 if test "x$FOUND_VERSION_78" = x; then 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13714 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13715 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13716 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13717 BOOT_JDK_FOUND=no 13718 else 13719 # We're done! :-) 13720 BOOT_JDK_FOUND=yes 13721 13722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13723 13724 # Input might be given as Windows format, start by converting to 13725 # unix format. 13726 path="$BOOT_JDK" 13727 new_path=`$CYGPATH -u "$path"` 13728 13729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13732 # "foo.exe" is OK but "foo" is an error. 13733 # 13734 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13735 # It is also a way to make sure we got the proper file name for the real test later on. 13736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13737 if test "x$test_shortpath" = x; then 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13739 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13740 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13741 fi 13742 13743 # Call helper function which possibly converts this using DOS-style short mode. 13744 # If so, the updated path is stored in $new_path. 13745 13746 input_path="$new_path" 13747 # Check if we need to convert this using DOS-style short mode. If the path 13748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13749 # take no chances and rewrite it. 13750 # Note: m4 eats our [], so we need to use [ and ] instead. 13751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13752 if test "x$has_forbidden_chars" != x; then 13753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13754 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13755 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13756 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13757 # Going to short mode and back again did indeed matter. Since short mode is 13758 # case insensitive, let's make it lowercase to improve readability. 13759 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13760 # Now convert it back to Unix-stile (cygpath) 13761 input_path=`$CYGPATH -u "$shortmode_path"` 13762 new_path="$input_path" 13763 fi 13764 fi 13765 13766 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13767 if test "x$test_cygdrive_prefix" = x; then 13768 # As a simple fix, exclude /usr/bin since it's not a real path. 13769 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13770 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13771 # a path prefixed by /cygdrive for fixpath to work. 13772 new_path="$CYGWIN_ROOT_PATH$input_path" 13773 fi 13774 fi 13775 13776 13777 if test "x$path" != "x$new_path"; then 13778 BOOT_JDK="$new_path" 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13780 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13781 fi 13782 13783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13784 13785 path="$BOOT_JDK" 13786 has_colon=`$ECHO $path | $GREP ^.:` 13787 new_path="$path" 13788 if test "x$has_colon" = x; then 13789 # Not in mixed or Windows style, start by that. 13790 new_path=`cmd //c echo $path` 13791 fi 13792 13793 13794 input_path="$new_path" 13795 # Check if we need to convert this using DOS-style short mode. If the path 13796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13797 # take no chances and rewrite it. 13798 # Note: m4 eats our [], so we need to use [ and ] instead. 13799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13800 if test "x$has_forbidden_chars" != x; then 13801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13802 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13803 fi 13804 13805 13806 windows_path="$new_path" 13807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13808 unix_path=`$CYGPATH -u "$windows_path"` 13809 new_path="$unix_path" 13810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13812 new_path="$unix_path" 13813 fi 13814 13815 if test "x$path" != "x$new_path"; then 13816 BOOT_JDK="$new_path" 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13818 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13819 fi 13820 13821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13823 13824 else 13825 # We're on a posix platform. Hooray! :) 13826 path="$BOOT_JDK" 13827 has_space=`$ECHO "$path" | $GREP " "` 13828 if test "x$has_space" != x; then 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13830 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13831 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13832 fi 13833 13834 # Use eval to expand a potential ~ 13835 eval path="$path" 13836 if test ! -f "$path" && test ! -d "$path"; then 13837 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 13838 fi 13839 13840 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 13841 fi 13842 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 13844 $as_echo_n "checking for Boot JDK... " >&6; } 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 13846 $as_echo "$BOOT_JDK" >&6; } 13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 13848 $as_echo_n "checking Boot JDK version... " >&6; } 13849 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 13851 $as_echo "$BOOT_JDK_VERSION" >&6; } 13852 fi # end check jdk version 13853 fi # end check rt.jar 13854 fi # end check javac 13855 fi # end check java 13856 fi # end check boot jdk found 13857 fi 13858 13859 13860 if test "x$BOOT_JDK_FOUND" = xno; then 13861 # Now execute the test 13862 13863 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 13864 BOOT_JDK_SUFFIX="" 13865 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 13866 if test "x$ALL_JDKS_FOUND" != x; then 13867 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 13868 13869 if test "x$BOOT_JDK_FOUND" = xno; then 13870 # Now execute the test 13871 13872 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 13873 if test -d "$BOOT_JDK"; then 13874 BOOT_JDK_FOUND=maybe 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 13876 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 13877 fi 13878 13879 13880 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 13881 if test "x$BOOT_JDK_FOUND" = xmaybe; then 13882 # Do we have a bin/java? 13883 if test ! -x "$BOOT_JDK/bin/java"; then 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 13885 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 13886 BOOT_JDK_FOUND=no 13887 else 13888 # Do we have a bin/javac? 13889 if test ! -x "$BOOT_JDK/bin/javac"; then 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 13891 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 13893 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 13894 BOOT_JDK_FOUND=no 13895 else 13896 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 13897 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 13899 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 13900 BOOT_JDK_FOUND=no 13901 else 13902 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 13903 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 13904 13905 # Extra M4 quote needed to protect [] in grep expression. 13906 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 13907 if test "x$FOUND_VERSION_78" = x; then 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 13909 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 13911 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 13912 BOOT_JDK_FOUND=no 13913 else 13914 # We're done! :-) 13915 BOOT_JDK_FOUND=yes 13916 13917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13918 13919 # Input might be given as Windows format, start by converting to 13920 # unix format. 13921 path="$BOOT_JDK" 13922 new_path=`$CYGPATH -u "$path"` 13923 13924 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13925 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13926 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13927 # "foo.exe" is OK but "foo" is an error. 13928 # 13929 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13930 # It is also a way to make sure we got the proper file name for the real test later on. 13931 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13932 if test "x$test_shortpath" = x; then 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 13934 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 13935 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 13936 fi 13937 13938 # Call helper function which possibly converts this using DOS-style short mode. 13939 # If so, the updated path is stored in $new_path. 13940 13941 input_path="$new_path" 13942 # Check if we need to convert this using DOS-style short mode. If the path 13943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13944 # take no chances and rewrite it. 13945 # Note: m4 eats our [], so we need to use [ and ] instead. 13946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13947 if test "x$has_forbidden_chars" != x; then 13948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13949 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13950 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13951 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13952 # Going to short mode and back again did indeed matter. Since short mode is 13953 # case insensitive, let's make it lowercase to improve readability. 13954 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13955 # Now convert it back to Unix-stile (cygpath) 13956 input_path=`$CYGPATH -u "$shortmode_path"` 13957 new_path="$input_path" 13958 fi 13959 fi 13960 13961 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13962 if test "x$test_cygdrive_prefix" = x; then 13963 # As a simple fix, exclude /usr/bin since it's not a real path. 13964 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13965 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13966 # a path prefixed by /cygdrive for fixpath to work. 13967 new_path="$CYGWIN_ROOT_PATH$input_path" 13968 fi 13969 fi 13970 13971 13972 if test "x$path" != "x$new_path"; then 13973 BOOT_JDK="$new_path" 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 13975 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 13976 fi 13977 13978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13979 13980 path="$BOOT_JDK" 13981 has_colon=`$ECHO $path | $GREP ^.:` 13982 new_path="$path" 13983 if test "x$has_colon" = x; then 13984 # Not in mixed or Windows style, start by that. 13985 new_path=`cmd //c echo $path` 13986 fi 13987 13988 13989 input_path="$new_path" 13990 # Check if we need to convert this using DOS-style short mode. If the path 13991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13992 # take no chances and rewrite it. 13993 # Note: m4 eats our [], so we need to use [ and ] instead. 13994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13995 if test "x$has_forbidden_chars" != x; then 13996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13997 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13998 fi 13999 14000 14001 windows_path="$new_path" 14002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14003 unix_path=`$CYGPATH -u "$windows_path"` 14004 new_path="$unix_path" 14005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14007 new_path="$unix_path" 14008 fi 14009 14010 if test "x$path" != "x$new_path"; then 14011 BOOT_JDK="$new_path" 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14013 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14014 fi 14015 14016 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14017 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14018 14019 else 14020 # We're on a posix platform. Hooray! :) 14021 path="$BOOT_JDK" 14022 has_space=`$ECHO "$path" | $GREP " "` 14023 if test "x$has_space" != x; then 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14025 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14026 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14027 fi 14028 14029 # Use eval to expand a potential ~ 14030 eval path="$path" 14031 if test ! -f "$path" && test ! -d "$path"; then 14032 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14033 fi 14034 14035 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 14036 fi 14037 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14039 $as_echo_n "checking for Boot JDK... " >&6; } 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14041 $as_echo "$BOOT_JDK" >&6; } 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14043 $as_echo_n "checking Boot JDK version... " >&6; } 14044 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14046 $as_echo "$BOOT_JDK_VERSION" >&6; } 14047 fi # end check jdk version 14048 fi # end check rt.jar 14049 fi # end check javac 14050 fi # end check java 14051 fi # end check boot jdk found 14052 fi 14053 14054 done 14055 fi 14056 14057 14058 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14059 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14060 # Do we have a bin/java? 14061 if test ! -x "$BOOT_JDK/bin/java"; then 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14063 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14064 BOOT_JDK_FOUND=no 14065 else 14066 # Do we have a bin/javac? 14067 if test ! -x "$BOOT_JDK/bin/javac"; then 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14069 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14071 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14072 BOOT_JDK_FOUND=no 14073 else 14074 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14075 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14077 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14078 BOOT_JDK_FOUND=no 14079 else 14080 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14081 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14082 14083 # Extra M4 quote needed to protect [] in grep expression. 14084 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14085 if test "x$FOUND_VERSION_78" = x; then 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14087 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14088 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14089 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14090 BOOT_JDK_FOUND=no 14091 else 14092 # We're done! :-) 14093 BOOT_JDK_FOUND=yes 14094 14095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14096 14097 # Input might be given as Windows format, start by converting to 14098 # unix format. 14099 path="$BOOT_JDK" 14100 new_path=`$CYGPATH -u "$path"` 14101 14102 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14103 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14104 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14105 # "foo.exe" is OK but "foo" is an error. 14106 # 14107 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14108 # It is also a way to make sure we got the proper file name for the real test later on. 14109 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14110 if test "x$test_shortpath" = x; then 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14112 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14113 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14114 fi 14115 14116 # Call helper function which possibly converts this using DOS-style short mode. 14117 # If so, the updated path is stored in $new_path. 14118 14119 input_path="$new_path" 14120 # Check if we need to convert this using DOS-style short mode. If the path 14121 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14122 # take no chances and rewrite it. 14123 # Note: m4 eats our [], so we need to use [ and ] instead. 14124 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14125 if test "x$has_forbidden_chars" != x; then 14126 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14127 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14128 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14129 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14130 # Going to short mode and back again did indeed matter. Since short mode is 14131 # case insensitive, let's make it lowercase to improve readability. 14132 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14133 # Now convert it back to Unix-stile (cygpath) 14134 input_path=`$CYGPATH -u "$shortmode_path"` 14135 new_path="$input_path" 14136 fi 14137 fi 14138 14139 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14140 if test "x$test_cygdrive_prefix" = x; then 14141 # As a simple fix, exclude /usr/bin since it's not a real path. 14142 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14143 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14144 # a path prefixed by /cygdrive for fixpath to work. 14145 new_path="$CYGWIN_ROOT_PATH$input_path" 14146 fi 14147 fi 14148 14149 14150 if test "x$path" != "x$new_path"; then 14151 BOOT_JDK="$new_path" 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14153 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14154 fi 14155 14156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14157 14158 path="$BOOT_JDK" 14159 has_colon=`$ECHO $path | $GREP ^.:` 14160 new_path="$path" 14161 if test "x$has_colon" = x; then 14162 # Not in mixed or Windows style, start by that. 14163 new_path=`cmd //c echo $path` 14164 fi 14165 14166 14167 input_path="$new_path" 14168 # Check if we need to convert this using DOS-style short mode. If the path 14169 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14170 # take no chances and rewrite it. 14171 # Note: m4 eats our [], so we need to use [ and ] instead. 14172 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14173 if test "x$has_forbidden_chars" != x; then 14174 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14175 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14176 fi 14177 14178 14179 windows_path="$new_path" 14180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14181 unix_path=`$CYGPATH -u "$windows_path"` 14182 new_path="$unix_path" 14183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14185 new_path="$unix_path" 14186 fi 14187 14188 if test "x$path" != "x$new_path"; then 14189 BOOT_JDK="$new_path" 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14191 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14192 fi 14193 14194 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14195 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14196 14197 else 14198 # We're on a posix platform. Hooray! :) 14199 path="$BOOT_JDK" 14200 has_space=`$ECHO "$path" | $GREP " "` 14201 if test "x$has_space" != x; then 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14203 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14204 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14205 fi 14206 14207 # Use eval to expand a potential ~ 14208 eval path="$path" 14209 if test ! -f "$path" && test ! -d "$path"; then 14210 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14211 fi 14212 14213 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 14214 fi 14215 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14217 $as_echo_n "checking for Boot JDK... " >&6; } 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14219 $as_echo "$BOOT_JDK" >&6; } 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14221 $as_echo_n "checking Boot JDK version... " >&6; } 14222 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14224 $as_echo "$BOOT_JDK_VERSION" >&6; } 14225 fi # end check jdk version 14226 fi # end check rt.jar 14227 fi # end check javac 14228 fi # end check java 14229 fi # end check boot jdk found 14230 fi 14231 14232 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 14233 14234 if test "x$BOOT_JDK_FOUND" = xno; then 14235 # Now execute the test 14236 14237 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 14238 BOOT_JDK_SUFFIX="/Contents/Home" 14239 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 14240 if test "x$ALL_JDKS_FOUND" != x; then 14241 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 14242 14243 if test "x$BOOT_JDK_FOUND" = xno; then 14244 # Now execute the test 14245 14246 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 14247 if test -d "$BOOT_JDK"; then 14248 BOOT_JDK_FOUND=maybe 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 14250 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 14251 fi 14252 14253 14254 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14255 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14256 # Do we have a bin/java? 14257 if test ! -x "$BOOT_JDK/bin/java"; then 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14260 BOOT_JDK_FOUND=no 14261 else 14262 # Do we have a bin/javac? 14263 if test ! -x "$BOOT_JDK/bin/javac"; then 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14267 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14268 BOOT_JDK_FOUND=no 14269 else 14270 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14271 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14273 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14274 BOOT_JDK_FOUND=no 14275 else 14276 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14277 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14278 14279 # Extra M4 quote needed to protect [] in grep expression. 14280 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14281 if test "x$FOUND_VERSION_78" = x; then 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14283 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14285 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14286 BOOT_JDK_FOUND=no 14287 else 14288 # We're done! :-) 14289 BOOT_JDK_FOUND=yes 14290 14291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14292 14293 # Input might be given as Windows format, start by converting to 14294 # unix format. 14295 path="$BOOT_JDK" 14296 new_path=`$CYGPATH -u "$path"` 14297 14298 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14299 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14300 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14301 # "foo.exe" is OK but "foo" is an error. 14302 # 14303 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14304 # It is also a way to make sure we got the proper file name for the real test later on. 14305 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14306 if test "x$test_shortpath" = x; then 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14308 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14309 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14310 fi 14311 14312 # Call helper function which possibly converts this using DOS-style short mode. 14313 # If so, the updated path is stored in $new_path. 14314 14315 input_path="$new_path" 14316 # Check if we need to convert this using DOS-style short mode. If the path 14317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14318 # take no chances and rewrite it. 14319 # Note: m4 eats our [], so we need to use [ and ] instead. 14320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14321 if test "x$has_forbidden_chars" != x; then 14322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14323 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14324 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14325 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14326 # Going to short mode and back again did indeed matter. Since short mode is 14327 # case insensitive, let's make it lowercase to improve readability. 14328 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14329 # Now convert it back to Unix-stile (cygpath) 14330 input_path=`$CYGPATH -u "$shortmode_path"` 14331 new_path="$input_path" 14332 fi 14333 fi 14334 14335 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14336 if test "x$test_cygdrive_prefix" = x; then 14337 # As a simple fix, exclude /usr/bin since it's not a real path. 14338 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14339 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14340 # a path prefixed by /cygdrive for fixpath to work. 14341 new_path="$CYGWIN_ROOT_PATH$input_path" 14342 fi 14343 fi 14344 14345 14346 if test "x$path" != "x$new_path"; then 14347 BOOT_JDK="$new_path" 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14349 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14350 fi 14351 14352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14353 14354 path="$BOOT_JDK" 14355 has_colon=`$ECHO $path | $GREP ^.:` 14356 new_path="$path" 14357 if test "x$has_colon" = x; then 14358 # Not in mixed or Windows style, start by that. 14359 new_path=`cmd //c echo $path` 14360 fi 14361 14362 14363 input_path="$new_path" 14364 # Check if we need to convert this using DOS-style short mode. If the path 14365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14366 # take no chances and rewrite it. 14367 # Note: m4 eats our [], so we need to use [ and ] instead. 14368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14369 if test "x$has_forbidden_chars" != x; then 14370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14371 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14372 fi 14373 14374 14375 windows_path="$new_path" 14376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14377 unix_path=`$CYGPATH -u "$windows_path"` 14378 new_path="$unix_path" 14379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14381 new_path="$unix_path" 14382 fi 14383 14384 if test "x$path" != "x$new_path"; then 14385 BOOT_JDK="$new_path" 14386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14387 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14388 fi 14389 14390 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14391 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14392 14393 else 14394 # We're on a posix platform. Hooray! :) 14395 path="$BOOT_JDK" 14396 has_space=`$ECHO "$path" | $GREP " "` 14397 if test "x$has_space" != x; then 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14399 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14400 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14401 fi 14402 14403 # Use eval to expand a potential ~ 14404 eval path="$path" 14405 if test ! -f "$path" && test ! -d "$path"; then 14406 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14407 fi 14408 14409 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 14410 fi 14411 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14413 $as_echo_n "checking for Boot JDK... " >&6; } 14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14415 $as_echo "$BOOT_JDK" >&6; } 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14417 $as_echo_n "checking Boot JDK version... " >&6; } 14418 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14420 $as_echo "$BOOT_JDK_VERSION" >&6; } 14421 fi # end check jdk version 14422 fi # end check rt.jar 14423 fi # end check javac 14424 fi # end check java 14425 fi # end check boot jdk found 14426 fi 14427 14428 done 14429 fi 14430 14431 14432 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14433 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14434 # Do we have a bin/java? 14435 if test ! -x "$BOOT_JDK/bin/java"; then 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14437 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14438 BOOT_JDK_FOUND=no 14439 else 14440 # Do we have a bin/javac? 14441 if test ! -x "$BOOT_JDK/bin/javac"; then 14442 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14443 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14445 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14446 BOOT_JDK_FOUND=no 14447 else 14448 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14449 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14451 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14452 BOOT_JDK_FOUND=no 14453 else 14454 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14455 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14456 14457 # Extra M4 quote needed to protect [] in grep expression. 14458 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14459 if test "x$FOUND_VERSION_78" = x; then 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14461 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14463 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14464 BOOT_JDK_FOUND=no 14465 else 14466 # We're done! :-) 14467 BOOT_JDK_FOUND=yes 14468 14469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14470 14471 # Input might be given as Windows format, start by converting to 14472 # unix format. 14473 path="$BOOT_JDK" 14474 new_path=`$CYGPATH -u "$path"` 14475 14476 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14477 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14478 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14479 # "foo.exe" is OK but "foo" is an error. 14480 # 14481 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14482 # It is also a way to make sure we got the proper file name for the real test later on. 14483 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14484 if test "x$test_shortpath" = x; then 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14486 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14487 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14488 fi 14489 14490 # Call helper function which possibly converts this using DOS-style short mode. 14491 # If so, the updated path is stored in $new_path. 14492 14493 input_path="$new_path" 14494 # Check if we need to convert this using DOS-style short mode. If the path 14495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14496 # take no chances and rewrite it. 14497 # Note: m4 eats our [], so we need to use [ and ] instead. 14498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14499 if test "x$has_forbidden_chars" != x; then 14500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14501 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14502 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14503 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14504 # Going to short mode and back again did indeed matter. Since short mode is 14505 # case insensitive, let's make it lowercase to improve readability. 14506 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14507 # Now convert it back to Unix-stile (cygpath) 14508 input_path=`$CYGPATH -u "$shortmode_path"` 14509 new_path="$input_path" 14510 fi 14511 fi 14512 14513 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14514 if test "x$test_cygdrive_prefix" = x; then 14515 # As a simple fix, exclude /usr/bin since it's not a real path. 14516 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14517 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14518 # a path prefixed by /cygdrive for fixpath to work. 14519 new_path="$CYGWIN_ROOT_PATH$input_path" 14520 fi 14521 fi 14522 14523 14524 if test "x$path" != "x$new_path"; then 14525 BOOT_JDK="$new_path" 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14527 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14528 fi 14529 14530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14531 14532 path="$BOOT_JDK" 14533 has_colon=`$ECHO $path | $GREP ^.:` 14534 new_path="$path" 14535 if test "x$has_colon" = x; then 14536 # Not in mixed or Windows style, start by that. 14537 new_path=`cmd //c echo $path` 14538 fi 14539 14540 14541 input_path="$new_path" 14542 # Check if we need to convert this using DOS-style short mode. If the path 14543 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14544 # take no chances and rewrite it. 14545 # Note: m4 eats our [], so we need to use [ and ] instead. 14546 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14547 if test "x$has_forbidden_chars" != x; then 14548 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14549 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14550 fi 14551 14552 14553 windows_path="$new_path" 14554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14555 unix_path=`$CYGPATH -u "$windows_path"` 14556 new_path="$unix_path" 14557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14559 new_path="$unix_path" 14560 fi 14561 14562 if test "x$path" != "x$new_path"; then 14563 BOOT_JDK="$new_path" 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14565 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14566 fi 14567 14568 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14569 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14570 14571 else 14572 # We're on a posix platform. Hooray! :) 14573 path="$BOOT_JDK" 14574 has_space=`$ECHO "$path" | $GREP " "` 14575 if test "x$has_space" != x; then 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14577 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14578 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14579 fi 14580 14581 # Use eval to expand a potential ~ 14582 eval path="$path" 14583 if test ! -f "$path" && test ! -d "$path"; then 14584 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14585 fi 14586 14587 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 14588 fi 14589 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14591 $as_echo_n "checking for Boot JDK... " >&6; } 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14593 $as_echo "$BOOT_JDK" >&6; } 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14595 $as_echo_n "checking Boot JDK version... " >&6; } 14596 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14598 $as_echo "$BOOT_JDK_VERSION" >&6; } 14599 fi # end check jdk version 14600 fi # end check rt.jar 14601 fi # end check javac 14602 fi # end check java 14603 fi # end check boot jdk found 14604 fi 14605 14606 14607 if test "x$BOOT_JDK_FOUND" = xno; then 14608 # Now execute the test 14609 14610 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 14611 BOOT_JDK_SUFFIX="/Contents/Home" 14612 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 14613 if test "x$ALL_JDKS_FOUND" != x; then 14614 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 14615 14616 if test "x$BOOT_JDK_FOUND" = xno; then 14617 # Now execute the test 14618 14619 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 14620 if test -d "$BOOT_JDK"; then 14621 BOOT_JDK_FOUND=maybe 14622 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 14623 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 14624 fi 14625 14626 14627 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14628 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14629 # Do we have a bin/java? 14630 if test ! -x "$BOOT_JDK/bin/java"; then 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14633 BOOT_JDK_FOUND=no 14634 else 14635 # Do we have a bin/javac? 14636 if test ! -x "$BOOT_JDK/bin/javac"; then 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14638 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14640 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14641 BOOT_JDK_FOUND=no 14642 else 14643 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14644 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14646 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14647 BOOT_JDK_FOUND=no 14648 else 14649 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14650 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14651 14652 # Extra M4 quote needed to protect [] in grep expression. 14653 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14654 if test "x$FOUND_VERSION_78" = x; then 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14658 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14659 BOOT_JDK_FOUND=no 14660 else 14661 # We're done! :-) 14662 BOOT_JDK_FOUND=yes 14663 14664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14665 14666 # Input might be given as Windows format, start by converting to 14667 # unix format. 14668 path="$BOOT_JDK" 14669 new_path=`$CYGPATH -u "$path"` 14670 14671 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14672 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14673 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14674 # "foo.exe" is OK but "foo" is an error. 14675 # 14676 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14677 # It is also a way to make sure we got the proper file name for the real test later on. 14678 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14679 if test "x$test_shortpath" = x; then 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14681 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14682 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14683 fi 14684 14685 # Call helper function which possibly converts this using DOS-style short mode. 14686 # If so, the updated path is stored in $new_path. 14687 14688 input_path="$new_path" 14689 # Check if we need to convert this using DOS-style short mode. If the path 14690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14691 # take no chances and rewrite it. 14692 # Note: m4 eats our [], so we need to use [ and ] instead. 14693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14694 if test "x$has_forbidden_chars" != x; then 14695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14696 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14697 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14698 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14699 # Going to short mode and back again did indeed matter. Since short mode is 14700 # case insensitive, let's make it lowercase to improve readability. 14701 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14702 # Now convert it back to Unix-stile (cygpath) 14703 input_path=`$CYGPATH -u "$shortmode_path"` 14704 new_path="$input_path" 14705 fi 14706 fi 14707 14708 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14709 if test "x$test_cygdrive_prefix" = x; then 14710 # As a simple fix, exclude /usr/bin since it's not a real path. 14711 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14712 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14713 # a path prefixed by /cygdrive for fixpath to work. 14714 new_path="$CYGWIN_ROOT_PATH$input_path" 14715 fi 14716 fi 14717 14718 14719 if test "x$path" != "x$new_path"; then 14720 BOOT_JDK="$new_path" 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14722 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14723 fi 14724 14725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14726 14727 path="$BOOT_JDK" 14728 has_colon=`$ECHO $path | $GREP ^.:` 14729 new_path="$path" 14730 if test "x$has_colon" = x; then 14731 # Not in mixed or Windows style, start by that. 14732 new_path=`cmd //c echo $path` 14733 fi 14734 14735 14736 input_path="$new_path" 14737 # Check if we need to convert this using DOS-style short mode. If the path 14738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14739 # take no chances and rewrite it. 14740 # Note: m4 eats our [], so we need to use [ and ] instead. 14741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14742 if test "x$has_forbidden_chars" != x; then 14743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14744 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14745 fi 14746 14747 14748 windows_path="$new_path" 14749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14750 unix_path=`$CYGPATH -u "$windows_path"` 14751 new_path="$unix_path" 14752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14754 new_path="$unix_path" 14755 fi 14756 14757 if test "x$path" != "x$new_path"; then 14758 BOOT_JDK="$new_path" 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14760 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14761 fi 14762 14763 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14764 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14765 14766 else 14767 # We're on a posix platform. Hooray! :) 14768 path="$BOOT_JDK" 14769 has_space=`$ECHO "$path" | $GREP " "` 14770 if test "x$has_space" != x; then 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14772 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14773 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14774 fi 14775 14776 # Use eval to expand a potential ~ 14777 eval path="$path" 14778 if test ! -f "$path" && test ! -d "$path"; then 14779 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14780 fi 14781 14782 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 14783 fi 14784 14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14786 $as_echo_n "checking for Boot JDK... " >&6; } 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14788 $as_echo "$BOOT_JDK" >&6; } 14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14790 $as_echo_n "checking Boot JDK version... " >&6; } 14791 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14793 $as_echo "$BOOT_JDK_VERSION" >&6; } 14794 fi # end check jdk version 14795 fi # end check rt.jar 14796 fi # end check javac 14797 fi # end check java 14798 fi # end check boot jdk found 14799 fi 14800 14801 done 14802 fi 14803 14804 14805 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 14806 if test "x$BOOT_JDK_FOUND" = xmaybe; then 14807 # Do we have a bin/java? 14808 if test ! -x "$BOOT_JDK/bin/java"; then 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 14810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 14811 BOOT_JDK_FOUND=no 14812 else 14813 # Do we have a bin/javac? 14814 if test ! -x "$BOOT_JDK/bin/javac"; then 14815 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 14816 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 14818 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 14819 BOOT_JDK_FOUND=no 14820 else 14821 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 14822 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 14824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 14825 BOOT_JDK_FOUND=no 14826 else 14827 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 14828 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 14829 14830 # Extra M4 quote needed to protect [] in grep expression. 14831 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 14832 if test "x$FOUND_VERSION_78" = x; then 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 14834 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 14836 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 14837 BOOT_JDK_FOUND=no 14838 else 14839 # We're done! :-) 14840 BOOT_JDK_FOUND=yes 14841 14842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14843 14844 # Input might be given as Windows format, start by converting to 14845 # unix format. 14846 path="$BOOT_JDK" 14847 new_path=`$CYGPATH -u "$path"` 14848 14849 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14850 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14851 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14852 # "foo.exe" is OK but "foo" is an error. 14853 # 14854 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14855 # It is also a way to make sure we got the proper file name for the real test later on. 14856 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14857 if test "x$test_shortpath" = x; then 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14859 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14860 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 14861 fi 14862 14863 # Call helper function which possibly converts this using DOS-style short mode. 14864 # If so, the updated path is stored in $new_path. 14865 14866 input_path="$new_path" 14867 # Check if we need to convert this using DOS-style short mode. If the path 14868 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14869 # take no chances and rewrite it. 14870 # Note: m4 eats our [], so we need to use [ and ] instead. 14871 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14872 if test "x$has_forbidden_chars" != x; then 14873 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14874 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14875 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14876 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14877 # Going to short mode and back again did indeed matter. Since short mode is 14878 # case insensitive, let's make it lowercase to improve readability. 14879 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14880 # Now convert it back to Unix-stile (cygpath) 14881 input_path=`$CYGPATH -u "$shortmode_path"` 14882 new_path="$input_path" 14883 fi 14884 fi 14885 14886 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14887 if test "x$test_cygdrive_prefix" = x; then 14888 # As a simple fix, exclude /usr/bin since it's not a real path. 14889 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14890 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14891 # a path prefixed by /cygdrive for fixpath to work. 14892 new_path="$CYGWIN_ROOT_PATH$input_path" 14893 fi 14894 fi 14895 14896 14897 if test "x$path" != "x$new_path"; then 14898 BOOT_JDK="$new_path" 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14900 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14901 fi 14902 14903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14904 14905 path="$BOOT_JDK" 14906 has_colon=`$ECHO $path | $GREP ^.:` 14907 new_path="$path" 14908 if test "x$has_colon" = x; then 14909 # Not in mixed or Windows style, start by that. 14910 new_path=`cmd //c echo $path` 14911 fi 14912 14913 14914 input_path="$new_path" 14915 # Check if we need to convert this using DOS-style short mode. If the path 14916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14917 # take no chances and rewrite it. 14918 # Note: m4 eats our [], so we need to use [ and ] instead. 14919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14920 if test "x$has_forbidden_chars" != x; then 14921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14922 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14923 fi 14924 14925 14926 windows_path="$new_path" 14927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14928 unix_path=`$CYGPATH -u "$windows_path"` 14929 new_path="$unix_path" 14930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14932 new_path="$unix_path" 14933 fi 14934 14935 if test "x$path" != "x$new_path"; then 14936 BOOT_JDK="$new_path" 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 14938 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 14939 fi 14940 14941 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14942 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14943 14944 else 14945 # We're on a posix platform. Hooray! :) 14946 path="$BOOT_JDK" 14947 has_space=`$ECHO "$path" | $GREP " "` 14948 if test "x$has_space" != x; then 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 14950 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 14951 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14952 fi 14953 14954 # Use eval to expand a potential ~ 14955 eval path="$path" 14956 if test ! -f "$path" && test ! -d "$path"; then 14957 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 14958 fi 14959 14960 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 14961 fi 14962 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 14964 $as_echo_n "checking for Boot JDK... " >&6; } 14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 14966 $as_echo "$BOOT_JDK" >&6; } 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 14968 $as_echo_n "checking Boot JDK version... " >&6; } 14969 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 14971 $as_echo "$BOOT_JDK_VERSION" >&6; } 14972 fi # end check jdk version 14973 fi # end check rt.jar 14974 fi # end check javac 14975 fi # end check java 14976 fi # end check boot jdk found 14977 fi 14978 14979 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 14980 14981 if test "x$BOOT_JDK_FOUND" = xno; then 14982 # Now execute the test 14983 14984 BOOT_JDK_PREFIX="/usr/lib/jvm" 14985 BOOT_JDK_SUFFIX="" 14986 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 14987 if test "x$ALL_JDKS_FOUND" != x; then 14988 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 14989 14990 if test "x$BOOT_JDK_FOUND" = xno; then 14991 # Now execute the test 14992 14993 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 14994 if test -d "$BOOT_JDK"; then 14995 BOOT_JDK_FOUND=maybe 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 14997 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 14998 fi 14999 15000 15001 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 15002 if test "x$BOOT_JDK_FOUND" = xmaybe; then 15003 # Do we have a bin/java? 15004 if test ! -x "$BOOT_JDK/bin/java"; then 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 15006 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 15007 BOOT_JDK_FOUND=no 15008 else 15009 # Do we have a bin/javac? 15010 if test ! -x "$BOOT_JDK/bin/javac"; then 15011 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 15012 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 15014 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 15015 BOOT_JDK_FOUND=no 15016 else 15017 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 15018 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 15020 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 15021 BOOT_JDK_FOUND=no 15022 else 15023 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 15024 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 15025 15026 # Extra M4 quote needed to protect [] in grep expression. 15027 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 15028 if test "x$FOUND_VERSION_78" = x; then 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 15030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 15032 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 15033 BOOT_JDK_FOUND=no 15034 else 15035 # We're done! :-) 15036 BOOT_JDK_FOUND=yes 15037 15038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15039 15040 # Input might be given as Windows format, start by converting to 15041 # unix format. 15042 path="$BOOT_JDK" 15043 new_path=`$CYGPATH -u "$path"` 15044 15045 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15046 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15047 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15048 # "foo.exe" is OK but "foo" is an error. 15049 # 15050 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15051 # It is also a way to make sure we got the proper file name for the real test later on. 15052 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15053 if test "x$test_shortpath" = x; then 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15055 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15056 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 15057 fi 15058 15059 # Call helper function which possibly converts this using DOS-style short mode. 15060 # If so, the updated path is stored in $new_path. 15061 15062 input_path="$new_path" 15063 # Check if we need to convert this using DOS-style short mode. If the path 15064 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15065 # take no chances and rewrite it. 15066 # Note: m4 eats our [], so we need to use [ and ] instead. 15067 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15068 if test "x$has_forbidden_chars" != x; then 15069 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15070 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15071 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15072 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15073 # Going to short mode and back again did indeed matter. Since short mode is 15074 # case insensitive, let's make it lowercase to improve readability. 15075 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15076 # Now convert it back to Unix-stile (cygpath) 15077 input_path=`$CYGPATH -u "$shortmode_path"` 15078 new_path="$input_path" 15079 fi 15080 fi 15081 15082 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15083 if test "x$test_cygdrive_prefix" = x; then 15084 # As a simple fix, exclude /usr/bin since it's not a real path. 15085 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15086 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15087 # a path prefixed by /cygdrive for fixpath to work. 15088 new_path="$CYGWIN_ROOT_PATH$input_path" 15089 fi 15090 fi 15091 15092 15093 if test "x$path" != "x$new_path"; then 15094 BOOT_JDK="$new_path" 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15096 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15097 fi 15098 15099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15100 15101 path="$BOOT_JDK" 15102 has_colon=`$ECHO $path | $GREP ^.:` 15103 new_path="$path" 15104 if test "x$has_colon" = x; then 15105 # Not in mixed or Windows style, start by that. 15106 new_path=`cmd //c echo $path` 15107 fi 15108 15109 15110 input_path="$new_path" 15111 # Check if we need to convert this using DOS-style short mode. If the path 15112 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15113 # take no chances and rewrite it. 15114 # Note: m4 eats our [], so we need to use [ and ] instead. 15115 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15116 if test "x$has_forbidden_chars" != x; then 15117 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15118 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15119 fi 15120 15121 15122 windows_path="$new_path" 15123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15124 unix_path=`$CYGPATH -u "$windows_path"` 15125 new_path="$unix_path" 15126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15127 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15128 new_path="$unix_path" 15129 fi 15130 15131 if test "x$path" != "x$new_path"; then 15132 BOOT_JDK="$new_path" 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15134 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15135 fi 15136 15137 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15138 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15139 15140 else 15141 # We're on a posix platform. Hooray! :) 15142 path="$BOOT_JDK" 15143 has_space=`$ECHO "$path" | $GREP " "` 15144 if test "x$has_space" != x; then 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15147 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15148 fi 15149 15150 # Use eval to expand a potential ~ 15151 eval path="$path" 15152 if test ! -f "$path" && test ! -d "$path"; then 15153 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 15154 fi 15155 15156 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 15157 fi 15158 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 15160 $as_echo_n "checking for Boot JDK... " >&6; } 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 15162 $as_echo "$BOOT_JDK" >&6; } 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 15164 $as_echo_n "checking Boot JDK version... " >&6; } 15165 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 15167 $as_echo "$BOOT_JDK_VERSION" >&6; } 15168 fi # end check jdk version 15169 fi # end check rt.jar 15170 fi # end check javac 15171 fi # end check java 15172 fi # end check boot jdk found 15173 fi 15174 15175 done 15176 fi 15177 15178 15179 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 15180 if test "x$BOOT_JDK_FOUND" = xmaybe; then 15181 # Do we have a bin/java? 15182 if test ! -x "$BOOT_JDK/bin/java"; then 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 15184 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 15185 BOOT_JDK_FOUND=no 15186 else 15187 # Do we have a bin/javac? 15188 if test ! -x "$BOOT_JDK/bin/javac"; then 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 15190 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 15192 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 15193 BOOT_JDK_FOUND=no 15194 else 15195 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 15196 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 15198 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 15199 BOOT_JDK_FOUND=no 15200 else 15201 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 15202 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 15203 15204 # Extra M4 quote needed to protect [] in grep expression. 15205 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 15206 if test "x$FOUND_VERSION_78" = x; then 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 15208 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 15210 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 15211 BOOT_JDK_FOUND=no 15212 else 15213 # We're done! :-) 15214 BOOT_JDK_FOUND=yes 15215 15216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15217 15218 # Input might be given as Windows format, start by converting to 15219 # unix format. 15220 path="$BOOT_JDK" 15221 new_path=`$CYGPATH -u "$path"` 15222 15223 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15224 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15225 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15226 # "foo.exe" is OK but "foo" is an error. 15227 # 15228 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15229 # It is also a way to make sure we got the proper file name for the real test later on. 15230 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15231 if test "x$test_shortpath" = x; then 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15233 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15234 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 15235 fi 15236 15237 # Call helper function which possibly converts this using DOS-style short mode. 15238 # If so, the updated path is stored in $new_path. 15239 15240 input_path="$new_path" 15241 # Check if we need to convert this using DOS-style short mode. If the path 15242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15243 # take no chances and rewrite it. 15244 # Note: m4 eats our [], so we need to use [ and ] instead. 15245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15246 if test "x$has_forbidden_chars" != x; then 15247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15251 # Going to short mode and back again did indeed matter. Since short mode is 15252 # case insensitive, let's make it lowercase to improve readability. 15253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15254 # Now convert it back to Unix-stile (cygpath) 15255 input_path=`$CYGPATH -u "$shortmode_path"` 15256 new_path="$input_path" 15257 fi 15258 fi 15259 15260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15261 if test "x$test_cygdrive_prefix" = x; then 15262 # As a simple fix, exclude /usr/bin since it's not a real path. 15263 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15265 # a path prefixed by /cygdrive for fixpath to work. 15266 new_path="$CYGWIN_ROOT_PATH$input_path" 15267 fi 15268 fi 15269 15270 15271 if test "x$path" != "x$new_path"; then 15272 BOOT_JDK="$new_path" 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15274 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15275 fi 15276 15277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15278 15279 path="$BOOT_JDK" 15280 has_colon=`$ECHO $path | $GREP ^.:` 15281 new_path="$path" 15282 if test "x$has_colon" = x; then 15283 # Not in mixed or Windows style, start by that. 15284 new_path=`cmd //c echo $path` 15285 fi 15286 15287 15288 input_path="$new_path" 15289 # Check if we need to convert this using DOS-style short mode. If the path 15290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15291 # take no chances and rewrite it. 15292 # Note: m4 eats our [], so we need to use [ and ] instead. 15293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15294 if test "x$has_forbidden_chars" != x; then 15295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15297 fi 15298 15299 15300 windows_path="$new_path" 15301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15302 unix_path=`$CYGPATH -u "$windows_path"` 15303 new_path="$unix_path" 15304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15306 new_path="$unix_path" 15307 fi 15308 15309 if test "x$path" != "x$new_path"; then 15310 BOOT_JDK="$new_path" 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15312 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15313 fi 15314 15315 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15316 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15317 15318 else 15319 # We're on a posix platform. Hooray! :) 15320 path="$BOOT_JDK" 15321 has_space=`$ECHO "$path" | $GREP " "` 15322 if test "x$has_space" != x; then 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15324 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15325 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15326 fi 15327 15328 # Use eval to expand a potential ~ 15329 eval path="$path" 15330 if test ! -f "$path" && test ! -d "$path"; then 15331 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 15332 fi 15333 15334 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 15335 fi 15336 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 15338 $as_echo_n "checking for Boot JDK... " >&6; } 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 15340 $as_echo "$BOOT_JDK" >&6; } 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 15342 $as_echo_n "checking Boot JDK version... " >&6; } 15343 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 15345 $as_echo "$BOOT_JDK_VERSION" >&6; } 15346 fi # end check jdk version 15347 fi # end check rt.jar 15348 fi # end check javac 15349 fi # end check java 15350 fi # end check boot jdk found 15351 fi 15352 15353 fi 15354 15355 15356 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 15357 if test "x$BOOT_JDK_FOUND" = xmaybe; then 15358 # Do we have a bin/java? 15359 if test ! -x "$BOOT_JDK/bin/java"; then 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 15361 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 15362 BOOT_JDK_FOUND=no 15363 else 15364 # Do we have a bin/javac? 15365 if test ! -x "$BOOT_JDK/bin/javac"; then 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 15367 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 15369 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 15370 BOOT_JDK_FOUND=no 15371 else 15372 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 15373 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 15375 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 15376 BOOT_JDK_FOUND=no 15377 else 15378 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 15379 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 15380 15381 # Extra M4 quote needed to protect [] in grep expression. 15382 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 15383 if test "x$FOUND_VERSION_78" = x; then 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 15385 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 15386 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 15387 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 15388 BOOT_JDK_FOUND=no 15389 else 15390 # We're done! :-) 15391 BOOT_JDK_FOUND=yes 15392 15393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15394 15395 # Input might be given as Windows format, start by converting to 15396 # unix format. 15397 path="$BOOT_JDK" 15398 new_path=`$CYGPATH -u "$path"` 15399 15400 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15401 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15402 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15403 # "foo.exe" is OK but "foo" is an error. 15404 # 15405 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15406 # It is also a way to make sure we got the proper file name for the real test later on. 15407 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15408 if test "x$test_shortpath" = x; then 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15410 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15411 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 15412 fi 15413 15414 # Call helper function which possibly converts this using DOS-style short mode. 15415 # If so, the updated path is stored in $new_path. 15416 15417 input_path="$new_path" 15418 # Check if we need to convert this using DOS-style short mode. If the path 15419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15420 # take no chances and rewrite it. 15421 # Note: m4 eats our [], so we need to use [ and ] instead. 15422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15423 if test "x$has_forbidden_chars" != x; then 15424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15428 # Going to short mode and back again did indeed matter. Since short mode is 15429 # case insensitive, let's make it lowercase to improve readability. 15430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15431 # Now convert it back to Unix-stile (cygpath) 15432 input_path=`$CYGPATH -u "$shortmode_path"` 15433 new_path="$input_path" 15434 fi 15435 fi 15436 15437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15438 if test "x$test_cygdrive_prefix" = x; then 15439 # As a simple fix, exclude /usr/bin since it's not a real path. 15440 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15442 # a path prefixed by /cygdrive for fixpath to work. 15443 new_path="$CYGWIN_ROOT_PATH$input_path" 15444 fi 15445 fi 15446 15447 15448 if test "x$path" != "x$new_path"; then 15449 BOOT_JDK="$new_path" 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15451 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15452 fi 15453 15454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15455 15456 path="$BOOT_JDK" 15457 has_colon=`$ECHO $path | $GREP ^.:` 15458 new_path="$path" 15459 if test "x$has_colon" = x; then 15460 # Not in mixed or Windows style, start by that. 15461 new_path=`cmd //c echo $path` 15462 fi 15463 15464 15465 input_path="$new_path" 15466 # Check if we need to convert this using DOS-style short mode. If the path 15467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15468 # take no chances and rewrite it. 15469 # Note: m4 eats our [], so we need to use [ and ] instead. 15470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15471 if test "x$has_forbidden_chars" != x; then 15472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15473 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15474 fi 15475 15476 15477 windows_path="$new_path" 15478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15479 unix_path=`$CYGPATH -u "$windows_path"` 15480 new_path="$unix_path" 15481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15483 new_path="$unix_path" 15484 fi 15485 15486 if test "x$path" != "x$new_path"; then 15487 BOOT_JDK="$new_path" 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 15489 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 15490 fi 15491 15492 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15493 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15494 15495 else 15496 # We're on a posix platform. Hooray! :) 15497 path="$BOOT_JDK" 15498 has_space=`$ECHO "$path" | $GREP " "` 15499 if test "x$has_space" != x; then 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 15501 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 15502 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15503 fi 15504 15505 # Use eval to expand a potential ~ 15506 eval path="$path" 15507 if test ! -f "$path" && test ! -d "$path"; then 15508 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 15509 fi 15510 15511 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 15512 fi 15513 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 15515 $as_echo_n "checking for Boot JDK... " >&6; } 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 15517 $as_echo "$BOOT_JDK" >&6; } 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 15519 $as_echo_n "checking Boot JDK version... " >&6; } 15520 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 15522 $as_echo "$BOOT_JDK_VERSION" >&6; } 15523 fi # end check jdk version 15524 fi # end check rt.jar 15525 fi # end check javac 15526 fi # end check java 15527 fi # end check boot jdk found 15528 fi 15529 15530 15531 # If we haven't found anything yet, we've truly lost. Give up. 15532 if test "x$BOOT_JDK_FOUND" = xno; then 15533 15534 # Print a helpful message on how to acquire the necessary build dependency. 15535 # openjdk is the help tag: freetyp2, cups, pulse, alsa etc 15536 MISSING_DEPENDENCY=openjdk 15537 PKGHANDLER_COMMAND= 15538 15539 case $PKGHANDLER in 15540 apt-get) 15541 apt_help $MISSING_DEPENDENCY ;; 15542 yum) 15543 yum_help $MISSING_DEPENDENCY ;; 15544 port) 15545 port_help $MISSING_DEPENDENCY ;; 15546 pkgutil) 15547 pkgutil_help $MISSING_DEPENDENCY ;; 15548 pkgadd) 15549 pkgadd_help $MISSING_DEPENDENCY ;; 15550 * ) 15551 break ;; 15552 esac 15553 15554 if test "x$PKGHANDLER_COMMAND" != x; then 15555 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 15556 fi 15557 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 15559 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 15560 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 15561 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15562 as_fn_error $? "Cannot continue" "$LINENO" 5 15563 fi 15564 15565 # Setup proper paths for what we found 15566 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 15567 if test ! -f "$BOOT_RTJAR"; then 15568 # On MacOSX it is called classes.jar 15569 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 15570 if test -f "$BOOT_RTJAR"; then 15571 # Remove the .. 15572 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 15573 fi 15574 fi 15575 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 15576 BOOT_JDK="$BOOT_JDK" 15577 15578 15579 15580 15581 # Setup tools from the Boot JDK. 15582 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 15584 $as_echo_n "checking for java in Boot JDK... " >&6; } 15585 JAVA=$BOOT_JDK/bin/java 15586 if test ! -x $JAVA; then 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15588 $as_echo "not found" >&6; } 15589 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15590 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15591 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 15592 fi 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15594 $as_echo "ok" >&6; } 15595 15596 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 15598 $as_echo_n "checking for javac in Boot JDK... " >&6; } 15599 JAVAC=$BOOT_JDK/bin/javac 15600 if test ! -x $JAVAC; then 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15602 $as_echo "not found" >&6; } 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15604 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15605 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 15606 fi 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15608 $as_echo "ok" >&6; } 15609 15610 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 15612 $as_echo_n "checking for javah in Boot JDK... " >&6; } 15613 JAVAH=$BOOT_JDK/bin/javah 15614 if test ! -x $JAVAH; then 15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15616 $as_echo "not found" >&6; } 15617 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15618 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15619 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 15620 fi 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15622 $as_echo "ok" >&6; } 15623 15624 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 15626 $as_echo_n "checking for javap in Boot JDK... " >&6; } 15627 JAVAP=$BOOT_JDK/bin/javap 15628 if test ! -x $JAVAP; then 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15630 $as_echo "not found" >&6; } 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15632 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15633 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 15634 fi 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15636 $as_echo "ok" >&6; } 15637 15638 15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 15640 $as_echo_n "checking for jar in Boot JDK... " >&6; } 15641 JAR=$BOOT_JDK/bin/jar 15642 if test ! -x $JAR; then 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15644 $as_echo "not found" >&6; } 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15646 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15647 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 15648 fi 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15650 $as_echo "ok" >&6; } 15651 15652 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 15654 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 15655 RMIC=$BOOT_JDK/bin/rmic 15656 if test ! -x $RMIC; then 15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15658 $as_echo "not found" >&6; } 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15660 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15661 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 15662 fi 15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15664 $as_echo "ok" >&6; } 15665 15666 15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 15668 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 15669 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 15670 if test ! -x $NATIVE2ASCII; then 15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15672 $as_echo "not found" >&6; } 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 15674 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 15675 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 15676 fi 15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15678 $as_echo "ok" >&6; } 15679 15680 15681 # Finally, set some other options... 15682 15683 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 15684 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 15685 15686 15687 15688 15689 ############################################################################## 15690 # 15691 # Specify options for anything that is run with the Boot JDK. 15692 # 15693 15694 # Check whether --with-boot-jdk-jvmargs was given. 15695 if test "${with_boot_jdk_jvmargs+set}" = set; then : 15696 withval=$with_boot_jdk_jvmargs; 15697 fi 15698 15699 15700 if test "x$with_boot_jdk_jvmargs" = x; then 15701 # Not all JVM:s accept the same arguments on the command line. 15702 # OpenJDK specific increase in thread stack for JDK build, 15703 # well more specifically, when running javac. 15704 if test "x$BUILD_NUM_BITS" = x32; then 15705 STACK_SIZE=768 15706 else 15707 # Running Javac on a JVM on a 64-bit machine, the stack takes more space 15708 # since 64-bit pointers are pushed on the stach. Apparently, we need 15709 # to increase the stack space when javacing the JDK.... 15710 STACK_SIZE=1536 15711 fi 15712 15713 # Minimum amount of heap memory. 15714 15715 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 15716 $ECHO "Command: $JAVA -Xms64M -version" >&5 15717 OUTPUT=`$JAVA -Xms64M -version 2>&1` 15718 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 15719 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 15720 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15721 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M" 15722 JVM_ARG_OK=true 15723 else 15724 $ECHO "Arg failed:" >&5 15725 $ECHO "$OUTPUT" >&5 15726 JVM_ARG_OK=false 15727 fi 15728 15729 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15730 # Why does macosx need more heap? Its the huge JDK batch. 15731 15732 $ECHO "Check if jvm arg is ok: -Xmx1600M" >&5 15733 $ECHO "Command: $JAVA -Xmx1600M -version" >&5 15734 OUTPUT=`$JAVA -Xmx1600M -version 2>&1` 15735 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 15736 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 15737 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15738 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M" 15739 JVM_ARG_OK=true 15740 else 15741 $ECHO "Arg failed:" >&5 15742 $ECHO "$OUTPUT" >&5 15743 JVM_ARG_OK=false 15744 fi 15745 15746 else 15747 15748 $ECHO "Check if jvm arg is ok: -Xmx1100M" >&5 15749 $ECHO "Command: $JAVA -Xmx1100M -version" >&5 15750 OUTPUT=`$JAVA -Xmx1100M -version 2>&1` 15751 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 15752 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 15753 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15754 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M" 15755 JVM_ARG_OK=true 15756 else 15757 $ECHO "Arg failed:" >&5 15758 $ECHO "$OUTPUT" >&5 15759 JVM_ARG_OK=false 15760 fi 15761 15762 fi 15763 # When is adding -client something that speeds up the JVM? 15764 # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA]) 15765 15766 $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5 15767 $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5 15768 OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1` 15769 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 15770 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 15771 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15772 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:PermSize=32m" 15773 JVM_ARG_OK=true 15774 else 15775 $ECHO "Arg failed:" >&5 15776 $ECHO "$OUTPUT" >&5 15777 JVM_ARG_OK=false 15778 fi 15779 15780 15781 $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5 15782 $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5 15783 OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1` 15784 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 15785 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 15786 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15787 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:MaxPermSize=160m" 15788 JVM_ARG_OK=true 15789 else 15790 $ECHO "Arg failed:" >&5 15791 $ECHO "$OUTPUT" >&5 15792 JVM_ARG_OK=false 15793 fi 15794 15795 15796 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 15797 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 15798 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 15799 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 15800 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 15801 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15802 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE" 15803 JVM_ARG_OK=true 15804 else 15805 $ECHO "Arg failed:" >&5 15806 $ECHO "$OUTPUT" >&5 15807 JVM_ARG_OK=false 15808 fi 15809 15810 # Disable special log output when a debug build is used as Boot JDK... 15811 15812 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 15813 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 15814 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 15815 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 15816 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 15817 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 15818 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 15819 JVM_ARG_OK=true 15820 else 15821 $ECHO "Arg failed:" >&5 15822 $ECHO "$OUTPUT" >&5 15823 JVM_ARG_OK=false 15824 fi 15825 15826 fi 15827 15828 BOOT_JDK_JVMARGS=$boot_jdk_jvmargs 15829 15830 15831 15832 ############################################################################### 15833 # 15834 # Configure the sources to use. We can add or override individual directories. 15835 # 15836 ############################################################################### 15837 15838 15839 15840 # Where are the sources. Any of these can be overridden 15841 # using --with-override-corba and the likes. 15842 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 15843 CORBA_TOPDIR="$SRC_ROOT/corba" 15844 JAXP_TOPDIR="$SRC_ROOT/jaxp" 15845 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 15846 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 15847 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 15848 JDK_TOPDIR="$SRC_ROOT/jdk" 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 ############################################################################### 15860 # 15861 # Pickup additional source for a component from outside of the source root 15862 # or override source for a component. 15863 # 15864 15865 # Check whether --with-add-source-root was given. 15866 if test "${with_add_source_root+set}" = set; then : 15867 withval=$with_add_source_root; 15868 fi 15869 15870 15871 15872 # Check whether --with-override-source-root was given. 15873 if test "${with_override_source_root+set}" = set; then : 15874 withval=$with_override_source_root; 15875 fi 15876 15877 15878 15879 # Check whether --with-adds-and-overrides was given. 15880 if test "${with_adds_and_overrides+set}" = set; then : 15881 withval=$with_adds_and_overrides; 15882 fi 15883 15884 15885 if test "x$with_adds_and_overrides" != x; then 15886 with_add_source_root="$with_adds_and_overrides/adds" 15887 with_override_source_root="$with_adds_and_overrides/overrides" 15888 fi 15889 15890 if test "x$with_add_source_root" != x; then 15891 if ! test -d $with_add_source_root; then 15892 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 15893 fi 15894 CURDIR="$PWD" 15895 cd "$with_add_source_root" 15896 ADD_SRC_ROOT="`pwd`" 15897 cd "$CURDIR" 15898 # Verify that the addon source root does not have any root makefiles. 15899 # If it does, then it is usually an error, prevent this. 15900 if test -f $with_add_source_root/langtools/makefiles/Makefile || \ 15901 test -f $with_add_source_root/langtools/make/Makefile; then 15902 as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5 15903 fi 15904 if test -f $with_add_source_root/corba/makefiles/Makefile || \ 15905 test -f $with_add_source_root/corba/make/Makefile; then 15906 as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5 15907 fi 15908 if test -f $with_add_source_root/jaxp/makefiles/Makefile || \ 15909 test -f $with_add_source_root/jaxp/make/Makefile; then 15910 as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5 15911 fi 15912 if test -f $with_add_source_root/jaxws/makefiles/Makefile || \ 15913 test -f $with_add_source_root/jaxws/make/Makefile; then 15914 as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5 15915 fi 15916 if test -f $with_add_source_root/hotspot/makefiles/Makefile || \ 15917 test -f $with_add_source_root/hotspot/make/Makefile; then 15918 as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5 15919 fi 15920 if test -f $with_add_source_root/jdk/makefiles/Makefile || \ 15921 test -f $with_add_source_root/jdk/make/Makefile; then 15922 as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5 15923 fi 15924 fi 15925 15926 15927 if test "x$with_override_source_root" != x; then 15928 if ! test -d $with_override_source_root; then 15929 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 15930 fi 15931 CURDIR="$PWD" 15932 cd "$with_override_source_root" 15933 OVERRIDE_SRC_ROOT="`pwd`" 15934 cd "$CURDIR" 15935 if test -f $with_override_source_root/langtools/makefiles/Makefile || \ 15936 test -f $with_override_source_root/langtools/make/Makefile; then 15937 as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5 15938 fi 15939 if test -f $with_override_source_root/corba/makefiles/Makefile || \ 15940 test -f $with_override_source_root/corba/make/Makefile; then 15941 as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5 15942 fi 15943 if test -f $with_override_source_root/jaxp/makefiles/Makefile || \ 15944 test -f $with_override_source_root/jaxp/make/Makefile; then 15945 as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5 15946 fi 15947 if test -f $with_override_source_root/jaxws/makefiles/Makefile || \ 15948 test -f $with_override_source_root/jaxws/make/Makefile; then 15949 as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5 15950 fi 15951 if test -f $with_override_source_root/hotspot/makefiles/Makefile || \ 15952 test -f $with_override_source_root/hotspot/make/Makefile; then 15953 as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5 15954 fi 15955 if test -f $with_override_source_root/jdk/makefiles/Makefile || \ 15956 test -f $with_override_source_root/jdk/make/Makefile; then 15957 as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5 15958 fi 15959 fi 15960 15961 15962 ############################################################################### 15963 # 15964 # Override a repo completely, this is used for example when you have 3 small 15965 # development sandboxes of the langtools sources and want to avoid having 3 full 15966 # OpenJDK sources checked out on disk. 15967 # 15968 # Assuming that the 3 langtools sandboxes are located here: 15969 # /home/fredrik/sandbox1/langtools 15970 # /home/fredrik/sandbox2/langtools 15971 # /home/fredrik/sandbox3/langtools 15972 # 15973 # From the source root you create build subdirs manually: 15974 # mkdir -p build1 build2 build3 15975 # in each build directory run: 15976 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 15977 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 15978 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 15979 # 15980 15981 15982 # Check whether --with-override-langtools was given. 15983 if test "${with_override_langtools+set}" = set; then : 15984 withval=$with_override_langtools; 15985 fi 15986 15987 15988 15989 # Check whether --with-override-corba was given. 15990 if test "${with_override_corba+set}" = set; then : 15991 withval=$with_override_corba; 15992 fi 15993 15994 15995 15996 # Check whether --with-override-jaxp was given. 15997 if test "${with_override_jaxp+set}" = set; then : 15998 withval=$with_override_jaxp; 15999 fi 16000 16001 16002 16003 # Check whether --with-override-jaxws was given. 16004 if test "${with_override_jaxws+set}" = set; then : 16005 withval=$with_override_jaxws; 16006 fi 16007 16008 16009 16010 # Check whether --with-override-hotspot was given. 16011 if test "${with_override_hotspot+set}" = set; then : 16012 withval=$with_override_hotspot; 16013 fi 16014 16015 16016 16017 # Check whether --with-override-jdk was given. 16018 if test "${with_override_jdk+set}" = set; then : 16019 withval=$with_override_jdk; 16020 fi 16021 16022 16023 if test "x$with_override_langtools" != x; then 16024 CURDIR="$PWD" 16025 cd "$with_override_langtools" 16026 LANGTOOLS_TOPDIR="`pwd`" 16027 cd "$CURDIR" 16028 if ! test -f $LANGTOOLS_TOPDIR/makefiles/Makefile; then 16029 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 16030 fi 16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 16032 $as_echo_n "checking if langtools should be overridden... " >&6; } 16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 16034 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 16035 fi 16036 if test "x$with_override_corba" != x; then 16037 CURDIR="$PWD" 16038 cd "$with_override_corba" 16039 CORBA_TOPDIR="`pwd`" 16040 cd "$CURDIR" 16041 if ! test -f $CORBA_TOPDIR/makefiles/Makefile; then 16042 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 16043 fi 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 16045 $as_echo_n "checking if corba should be overridden... " >&6; } 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 16047 $as_echo "yes with $CORBA_TOPDIR" >&6; } 16048 fi 16049 if test "x$with_override_jaxp" != x; then 16050 CURDIR="$PWD" 16051 cd "$with_override_jaxp" 16052 JAXP_TOPDIR="`pwd`" 16053 cd "$CURDIR" 16054 if ! test -f $JAXP_TOPDIR/makefiles/Makefile; then 16055 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 16056 fi 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 16058 $as_echo_n "checking if jaxp should be overridden... " >&6; } 16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 16060 $as_echo "yes with $JAXP_TOPDIR" >&6; } 16061 fi 16062 if test "x$with_override_jaxws" != x; then 16063 CURDIR="$PWD" 16064 cd "$with_override_jaxws" 16065 JAXWS_TOPDIR="`pwd`" 16066 cd "$CURDIR" 16067 if ! test -f $JAXWS_TOPDIR/makefiles/Makefile; then 16068 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 16069 fi 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 16071 $as_echo_n "checking if jaxws should be overridden... " >&6; } 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 16073 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 16074 fi 16075 if test "x$with_override_hotspot" != x; then 16076 CURDIR="$PWD" 16077 cd "$with_override_hotspot" 16078 HOTSPOT_TOPDIR="`pwd`" 16079 cd "$CURDIR" 16080 if ! test -f $HOTSPOT_TOPDIR/make/Makefile && \ 16081 ! test -f $HOTSPOT_TOPDIR/makefiles/Makefile; then 16082 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 16083 fi 16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 16085 $as_echo_n "checking if hotspot should be overridden... " >&6; } 16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 16087 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 16088 fi 16089 if test "x$with_override_nashorn" != x; then 16090 CURDIR="$PWD" 16091 cd "$with_override_nashorn" 16092 NASHORN_TOPDIR="`pwd`" 16093 cd "$CURDIR" 16094 if ! test -f $NASHORN_TOPDIR/makefiles/BuildNashorn.gmk; then 16095 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 16096 fi 16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 16098 $as_echo_n "checking if nashorn should be overridden... " >&6; } 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 16100 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 16101 fi 16102 if test "x$with_override_jdk" != x; then 16103 CURDIR="$PWD" 16104 cd "$with_override_jdk" 16105 JDK_TOPDIR="`pwd`" 16106 cd "$CURDIR" 16107 if ! test -f $JDK_TOPDIR/makefiles/Makefile; then 16108 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 16109 fi 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 16111 $as_echo_n "checking if JDK should be overridden... " >&6; } 16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 16113 $as_echo "yes with $JDK_TOPDIR" >&6; } 16114 fi 16115 16116 16117 16118 BUILD_OUTPUT="$OUTPUT_ROOT" 16119 16120 16121 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 16122 BUILD_HOTSPOT=true 16123 16124 16125 16126 # Check whether --with-import-hotspot was given. 16127 if test "${with_import_hotspot+set}" = set; then : 16128 withval=$with_import_hotspot; 16129 fi 16130 16131 if test "x$with_import_hotspot" != x; then 16132 CURDIR="$PWD" 16133 cd "$with_import_hotspot" 16134 HOTSPOT_DIST="`pwd`" 16135 cd "$CURDIR" 16136 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 16137 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 16138 fi 16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 16140 $as_echo_n "checking if hotspot should be imported... " >&6; } 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 16142 $as_echo "yes from $HOTSPOT_DIST" >&6; } 16143 BUILD_HOTSPOT=false 16144 fi 16145 16146 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 16147 16148 16149 ############################################################################### 16150 # 16151 # Setup the toolchain (compilers etc), i.e. the tools that need to be 16152 # cross-compilation aware. 16153 # 16154 ############################################################################### 16155 16156 16157 ############################################################################### 16158 # 16159 # Configure the development tool paths and potential sysroot. 16160 # 16161 ac_ext=cpp 16162 ac_cpp='$CXXCPP $CPPFLAGS' 16163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16166 16167 16168 # The option used to specify the target .o,.a or .so file. 16169 # When compiling, how to specify the to be created object file. 16170 CC_OUT_OPTION='-o$(SPACE)' 16171 # When linking, how to specify the to be created executable. 16172 EXE_OUT_OPTION='-o$(SPACE)' 16173 # When linking, how to specify the to be created dynamically linkable library. 16174 LD_OUT_OPTION='-o$(SPACE)' 16175 # When archiving, how to specify the to be create static archive for object files. 16176 AR_OUT_OPTION='rcs$(SPACE)' 16177 16178 16179 16180 16181 16182 # Locate the actual tools 16183 16184 16185 # Check whether --with-jtreg was given. 16186 if test "${with_jtreg+set}" = set; then : 16187 withval=$with_jtreg; 16188 else 16189 with_jtreg=no 16190 fi 16191 16192 16193 if test "x$with_jtreg" = xno; then 16194 # jtreg disabled 16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 16196 $as_echo_n "checking for jtreg... " >&6; } 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16198 $as_echo "no" >&6; } 16199 else 16200 if test "x$with_jtreg" != xyes; then 16201 # with path specified. 16202 JT_HOME="$with_jtreg" 16203 fi 16204 16205 if test "x$JT_HOME" != x; then 16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 16207 $as_echo_n "checking for jtreg... " >&6; } 16208 16209 # use JT_HOME enviroment var. 16210 16211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16212 16213 # Input might be given as Windows format, start by converting to 16214 # unix format. 16215 path="$JT_HOME" 16216 new_path=`$CYGPATH -u "$path"` 16217 16218 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16219 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16220 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16221 # "foo.exe" is OK but "foo" is an error. 16222 # 16223 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16224 # It is also a way to make sure we got the proper file name for the real test later on. 16225 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16226 if test "x$test_shortpath" = x; then 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 16228 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 16229 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 16230 fi 16231 16232 # Call helper function which possibly converts this using DOS-style short mode. 16233 # If so, the updated path is stored in $new_path. 16234 16235 input_path="$new_path" 16236 # Check if we need to convert this using DOS-style short mode. If the path 16237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16238 # take no chances and rewrite it. 16239 # Note: m4 eats our [], so we need to use [ and ] instead. 16240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16241 if test "x$has_forbidden_chars" != x; then 16242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16246 # Going to short mode and back again did indeed matter. Since short mode is 16247 # case insensitive, let's make it lowercase to improve readability. 16248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16249 # Now convert it back to Unix-stile (cygpath) 16250 input_path=`$CYGPATH -u "$shortmode_path"` 16251 new_path="$input_path" 16252 fi 16253 fi 16254 16255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16256 if test "x$test_cygdrive_prefix" = x; then 16257 # As a simple fix, exclude /usr/bin since it's not a real path. 16258 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16260 # a path prefixed by /cygdrive for fixpath to work. 16261 new_path="$CYGWIN_ROOT_PATH$input_path" 16262 fi 16263 fi 16264 16265 16266 if test "x$path" != "x$new_path"; then 16267 JT_HOME="$new_path" 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 16269 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 16270 fi 16271 16272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16273 16274 path="$JT_HOME" 16275 has_colon=`$ECHO $path | $GREP ^.:` 16276 new_path="$path" 16277 if test "x$has_colon" = x; then 16278 # Not in mixed or Windows style, start by that. 16279 new_path=`cmd //c echo $path` 16280 fi 16281 16282 16283 input_path="$new_path" 16284 # Check if we need to convert this using DOS-style short mode. If the path 16285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16286 # take no chances and rewrite it. 16287 # Note: m4 eats our [], so we need to use [ and ] instead. 16288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16289 if test "x$has_forbidden_chars" != x; then 16290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16291 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16292 fi 16293 16294 16295 windows_path="$new_path" 16296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16297 unix_path=`$CYGPATH -u "$windows_path"` 16298 new_path="$unix_path" 16299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16301 new_path="$unix_path" 16302 fi 16303 16304 if test "x$path" != "x$new_path"; then 16305 JT_HOME="$new_path" 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 16307 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 16308 fi 16309 16310 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16311 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16312 16313 else 16314 # We're on a posix platform. Hooray! :) 16315 path="$JT_HOME" 16316 has_space=`$ECHO "$path" | $GREP " "` 16317 if test "x$has_space" != x; then 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 16319 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 16320 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16321 fi 16322 16323 # Use eval to expand a potential ~ 16324 eval path="$path" 16325 if test ! -f "$path" && test ! -d "$path"; then 16326 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 16327 fi 16328 16329 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 16330 fi 16331 16332 16333 # jtreg win32 script works for everybody 16334 JTREGEXE="$JT_HOME/win32/bin/jtreg" 16335 16336 if test ! -f "$JTREGEXE"; then 16337 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 16338 fi 16339 16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 16341 $as_echo "$JTREGEXE" >&6; } 16342 else 16343 # try to find jtreg on path 16344 16345 for ac_prog in jtreg 16346 do 16347 # Extract the first word of "$ac_prog", so it can be a program name with args. 16348 set dummy $ac_prog; ac_word=$2 16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16350 $as_echo_n "checking for $ac_word... " >&6; } 16351 if ${ac_cv_path_JTREGEXE+:} false; then : 16352 $as_echo_n "(cached) " >&6 16353 else 16354 case $JTREGEXE in 16355 [\\/]* | ?:[\\/]*) 16356 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 16357 ;; 16358 *) 16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16360 for as_dir in $PATH 16361 do 16362 IFS=$as_save_IFS 16363 test -z "$as_dir" && as_dir=. 16364 for ac_exec_ext in '' $ac_executable_extensions; do 16365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16366 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 16367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16368 break 2 16369 fi 16370 done 16371 done 16372 IFS=$as_save_IFS 16373 16374 ;; 16375 esac 16376 fi 16377 JTREGEXE=$ac_cv_path_JTREGEXE 16378 if test -n "$JTREGEXE"; then 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 16380 $as_echo "$JTREGEXE" >&6; } 16381 else 16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16383 $as_echo "no" >&6; } 16384 fi 16385 16386 16387 test -n "$JTREGEXE" && break 16388 done 16389 16390 16391 if test "x$JTREGEXE" = x; then 16392 if test "xjtreg" = x; then 16393 PROG_NAME=jtregexe 16394 else 16395 PROG_NAME=jtreg 16396 fi 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5 16398 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;} 16399 as_fn_error $? "Cannot continue" "$LINENO" 5 16400 fi 16401 16402 16403 JT_HOME="`$DIRNAME $JTREGEXE`" 16404 fi 16405 fi 16406 16407 16408 16409 16410 16411 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16412 16413 # Store path to cygwin link.exe to help excluding it when searching for 16414 # VS linker. This must be done before changing the PATH when looking for VS. 16415 # Extract the first word of "link", so it can be a program name with args. 16416 set dummy link; ac_word=$2 16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16418 $as_echo_n "checking for $ac_word... " >&6; } 16419 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 16420 $as_echo_n "(cached) " >&6 16421 else 16422 case $CYGWIN_LINK in 16423 [\\/]* | ?:[\\/]*) 16424 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 16425 ;; 16426 *) 16427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16428 for as_dir in $PATH 16429 do 16430 IFS=$as_save_IFS 16431 test -z "$as_dir" && as_dir=. 16432 for ac_exec_ext in '' $ac_executable_extensions; do 16433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16434 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 16435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16436 break 2 16437 fi 16438 done 16439 done 16440 IFS=$as_save_IFS 16441 16442 ;; 16443 esac 16444 fi 16445 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 16446 if test -n "$CYGWIN_LINK"; then 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 16448 $as_echo "$CYGWIN_LINK" >&6; } 16449 else 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16451 $as_echo "no" >&6; } 16452 fi 16453 16454 16455 if test "x$CYGWIN_LINK" != x; then 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 16457 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 16458 "$CYGWIN_LINK" --version > /dev/null 16459 if test $? -eq 0 ; then 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16461 $as_echo "yes" >&6; } 16462 else 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16464 $as_echo "no" >&6; } 16465 # This might be the VS linker. Don't exclude it later on. 16466 CYGWIN_LINK="" 16467 fi 16468 fi 16469 16470 # First-hand choice is to locate and run the vsvars bat file. 16471 16472 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16473 VCVARSFILE="vc/bin/vcvars32.bat" 16474 else 16475 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 16476 fi 16477 16478 VS_ENV_CMD="" 16479 VS_ENV_ARGS="" 16480 if test "x$with_toolsdir" != x; then 16481 16482 if test "x$VS_ENV_CMD" = x; then 16483 VS100BASE="$with_toolsdir/../.." 16484 METHOD="--with-tools-dir" 16485 16486 windows_path="$VS100BASE" 16487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16488 unix_path=`$CYGPATH -u "$windows_path"` 16489 VS100BASE="$unix_path" 16490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16492 VS100BASE="$unix_path" 16493 fi 16494 16495 if test -d "$VS100BASE"; then 16496 if test -f "$VS100BASE/$VCVARSFILE"; then 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16498 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16499 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16500 else 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16502 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16504 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16505 fi 16506 fi 16507 fi 16508 16509 fi 16510 16511 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 16512 # Having specified an argument which is incorrect will produce an instant failure; 16513 # we should not go on looking 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 16515 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 16517 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 16518 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 16519 fi 16520 16521 if test "x$ProgramW6432" != x; then 16522 16523 if test "x$VS_ENV_CMD" = x; then 16524 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 16525 METHOD="well-known name" 16526 16527 windows_path="$WIN_SDK_BASE" 16528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16529 unix_path=`$CYGPATH -u "$windows_path"` 16530 WIN_SDK_BASE="$unix_path" 16531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16533 WIN_SDK_BASE="$unix_path" 16534 fi 16535 16536 if test -d "$WIN_SDK_BASE"; then 16537 # There have been cases of partial or broken SDK installations. A missing 16538 # lib dir is not going to work. 16539 if test ! -d "$WIN_SDK_BASE/../lib"; then 16540 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16541 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16543 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16544 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16546 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16547 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16548 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16549 VS_ENV_ARGS="/x86" 16550 else 16551 VS_ENV_ARGS="/x64" 16552 fi 16553 else 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16555 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16557 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16558 fi 16559 fi 16560 fi 16561 16562 fi 16563 if test "x$PROGRAMW6432" != x; then 16564 16565 if test "x$VS_ENV_CMD" = x; then 16566 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 16567 METHOD="well-known name" 16568 16569 windows_path="$WIN_SDK_BASE" 16570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16571 unix_path=`$CYGPATH -u "$windows_path"` 16572 WIN_SDK_BASE="$unix_path" 16573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16575 WIN_SDK_BASE="$unix_path" 16576 fi 16577 16578 if test -d "$WIN_SDK_BASE"; then 16579 # There have been cases of partial or broken SDK installations. A missing 16580 # lib dir is not going to work. 16581 if test ! -d "$WIN_SDK_BASE/../lib"; then 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16583 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16584 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16585 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16586 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16587 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16588 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16589 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16590 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16591 VS_ENV_ARGS="/x86" 16592 else 16593 VS_ENV_ARGS="/x64" 16594 fi 16595 else 16596 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16597 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16599 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16600 fi 16601 fi 16602 fi 16603 16604 fi 16605 if test "x$PROGRAMFILES" != x; then 16606 16607 if test "x$VS_ENV_CMD" = x; then 16608 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 16609 METHOD="well-known name" 16610 16611 windows_path="$WIN_SDK_BASE" 16612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16613 unix_path=`$CYGPATH -u "$windows_path"` 16614 WIN_SDK_BASE="$unix_path" 16615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16616 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16617 WIN_SDK_BASE="$unix_path" 16618 fi 16619 16620 if test -d "$WIN_SDK_BASE"; then 16621 # There have been cases of partial or broken SDK installations. A missing 16622 # lib dir is not going to work. 16623 if test ! -d "$WIN_SDK_BASE/../lib"; then 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16625 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16626 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16627 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16628 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16629 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16630 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16631 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16632 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16633 VS_ENV_ARGS="/x86" 16634 else 16635 VS_ENV_ARGS="/x64" 16636 fi 16637 else 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16639 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16640 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16641 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16642 fi 16643 fi 16644 fi 16645 16646 fi 16647 16648 if test "x$VS_ENV_CMD" = x; then 16649 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 16650 METHOD="well-known name" 16651 16652 windows_path="$WIN_SDK_BASE" 16653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16654 unix_path=`$CYGPATH -u "$windows_path"` 16655 WIN_SDK_BASE="$unix_path" 16656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16658 WIN_SDK_BASE="$unix_path" 16659 fi 16660 16661 if test -d "$WIN_SDK_BASE"; then 16662 # There have been cases of partial or broken SDK installations. A missing 16663 # lib dir is not going to work. 16664 if test ! -d "$WIN_SDK_BASE/../lib"; then 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16666 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16667 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16668 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16669 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16670 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16671 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16672 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16673 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16674 VS_ENV_ARGS="/x86" 16675 else 16676 VS_ENV_ARGS="/x64" 16677 fi 16678 else 16679 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16680 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16681 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16682 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16683 fi 16684 fi 16685 fi 16686 16687 16688 if test "x$VS_ENV_CMD" = x; then 16689 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 16690 METHOD="well-known name" 16691 16692 windows_path="$WIN_SDK_BASE" 16693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16694 unix_path=`$CYGPATH -u "$windows_path"` 16695 WIN_SDK_BASE="$unix_path" 16696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16697 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16698 WIN_SDK_BASE="$unix_path" 16699 fi 16700 16701 if test -d "$WIN_SDK_BASE"; then 16702 # There have been cases of partial or broken SDK installations. A missing 16703 # lib dir is not going to work. 16704 if test ! -d "$WIN_SDK_BASE/../lib"; then 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16706 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 16708 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 16709 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16711 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16712 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 16713 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16714 VS_ENV_ARGS="/x86" 16715 else 16716 VS_ENV_ARGS="/x64" 16717 fi 16718 else 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 16720 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 16721 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 16722 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 16723 fi 16724 fi 16725 fi 16726 16727 16728 if test "x$VS100COMNTOOLS" != x; then 16729 16730 if test "x$VS_ENV_CMD" = x; then 16731 VS100BASE="$VS100COMNTOOLS/../.." 16732 METHOD="VS100COMNTOOLS variable" 16733 16734 windows_path="$VS100BASE" 16735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16736 unix_path=`$CYGPATH -u "$windows_path"` 16737 VS100BASE="$unix_path" 16738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16740 VS100BASE="$unix_path" 16741 fi 16742 16743 if test -d "$VS100BASE"; then 16744 if test -f "$VS100BASE/$VCVARSFILE"; then 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16746 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16747 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16748 else 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16750 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16751 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16752 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16753 fi 16754 fi 16755 fi 16756 16757 fi 16758 if test "x$PROGRAMFILES" != x; then 16759 16760 if test "x$VS_ENV_CMD" = x; then 16761 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 16762 METHOD="well-known name" 16763 16764 windows_path="$VS100BASE" 16765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16766 unix_path=`$CYGPATH -u "$windows_path"` 16767 VS100BASE="$unix_path" 16768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16769 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16770 VS100BASE="$unix_path" 16771 fi 16772 16773 if test -d "$VS100BASE"; then 16774 if test -f "$VS100BASE/$VCVARSFILE"; then 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16776 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16777 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16778 else 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16780 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16782 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16783 fi 16784 fi 16785 fi 16786 16787 fi 16788 16789 if test "x$VS_ENV_CMD" = x; then 16790 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 16791 METHOD="well-known name" 16792 16793 windows_path="$VS100BASE" 16794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16795 unix_path=`$CYGPATH -u "$windows_path"` 16796 VS100BASE="$unix_path" 16797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16798 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16799 VS100BASE="$unix_path" 16800 fi 16801 16802 if test -d "$VS100BASE"; then 16803 if test -f "$VS100BASE/$VCVARSFILE"; then 16804 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16805 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16806 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16807 else 16808 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16809 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16811 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16812 fi 16813 fi 16814 fi 16815 16816 16817 if test "x$VS_ENV_CMD" = x; then 16818 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 16819 METHOD="well-known name" 16820 16821 windows_path="$VS100BASE" 16822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16823 unix_path=`$CYGPATH -u "$windows_path"` 16824 VS100BASE="$unix_path" 16825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16827 VS100BASE="$unix_path" 16828 fi 16829 16830 if test -d "$VS100BASE"; then 16831 if test -f "$VS100BASE/$VCVARSFILE"; then 16832 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16833 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16834 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 16835 else 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 16837 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 16838 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 16839 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 16840 fi 16841 fi 16842 fi 16843 16844 16845 if test "x$VS_ENV_CMD" != x; then 16846 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 16847 16848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16849 16850 # First separate the path from the arguments. This will split at the first 16851 # space. 16852 complete="$VS_ENV_CMD" 16853 path="${complete%% *}" 16854 tmp="$complete EOL" 16855 arguments="${tmp#* }" 16856 16857 # Input might be given as Windows format, start by converting to 16858 # unix format. 16859 new_path=`$CYGPATH -u "$path"` 16860 16861 # Now try to locate executable using which 16862 new_path=`$WHICH "$new_path" 2> /dev/null` 16863 # bat and cmd files are not always considered executable in cygwin causing which 16864 # to not find them 16865 if test "x$new_path" = x \ 16866 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16867 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16868 new_path=`$CYGPATH -u "$path"` 16869 fi 16870 if test "x$new_path" = x; then 16871 # Oops. Which didn't find the executable. 16872 # The splitting of arguments from the executable at a space might have been incorrect, 16873 # since paths with space are more likely in Windows. Give it another try with the whole 16874 # argument. 16875 path="$complete" 16876 arguments="EOL" 16877 new_path=`$CYGPATH -u "$path"` 16878 new_path=`$WHICH "$new_path" 2> /dev/null` 16879 # bat and cmd files are not always considered executable in cygwin causing which 16880 # to not find them 16881 if test "x$new_path" = x \ 16882 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16883 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16884 new_path=`$CYGPATH -u "$path"` 16885 fi 16886 if test "x$new_path" = x; then 16887 # It's still not found. Now this is an unrecoverable error. 16888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 16889 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 16890 has_space=`$ECHO "$complete" | $GREP " "` 16891 if test "x$has_space" != x; then 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16893 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16894 fi 16895 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 16896 fi 16897 fi 16898 16899 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16900 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16901 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16902 # "foo.exe" is OK but "foo" is an error. 16903 # 16904 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16905 # It is also a way to make sure we got the proper file name for the real test later on. 16906 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16907 if test "x$test_shortpath" = x; then 16908 # Short path failed, file does not exist as specified. 16909 # Try adding .exe or .cmd 16910 if test -f "${new_path}.exe"; then 16911 input_to_shortpath="${new_path}.exe" 16912 elif test -f "${new_path}.cmd"; then 16913 input_to_shortpath="${new_path}.cmd" 16914 else 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 16916 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 16917 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16918 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16919 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 16920 fi 16921 else 16922 input_to_shortpath="$new_path" 16923 fi 16924 16925 # Call helper function which possibly converts this using DOS-style short mode. 16926 # If so, the updated path is stored in $new_path. 16927 new_path="$input_to_shortpath" 16928 16929 input_path="$input_to_shortpath" 16930 # Check if we need to convert this using DOS-style short mode. If the path 16931 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16932 # take no chances and rewrite it. 16933 # Note: m4 eats our [], so we need to use [ and ] instead. 16934 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16935 if test "x$has_forbidden_chars" != x; then 16936 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16937 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16938 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16939 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16940 # Going to short mode and back again did indeed matter. Since short mode is 16941 # case insensitive, let's make it lowercase to improve readability. 16942 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16943 # Now convert it back to Unix-stile (cygpath) 16944 input_path=`$CYGPATH -u "$shortmode_path"` 16945 new_path="$input_path" 16946 fi 16947 fi 16948 16949 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16950 if test "x$test_cygdrive_prefix" = x; then 16951 # As a simple fix, exclude /usr/bin since it's not a real path. 16952 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16953 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16954 # a path prefixed by /cygdrive for fixpath to work. 16955 new_path="$CYGWIN_ROOT_PATH$input_path" 16956 fi 16957 fi 16958 16959 # remove trailing .exe if any 16960 new_path="${new_path/%.exe/}" 16961 16962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16963 16964 # First separate the path from the arguments. This will split at the first 16965 # space. 16966 complete="$VS_ENV_CMD" 16967 path="${complete%% *}" 16968 tmp="$complete EOL" 16969 arguments="${tmp#* }" 16970 16971 # Input might be given as Windows format, start by converting to 16972 # unix format. 16973 new_path="$path" 16974 16975 windows_path="$new_path" 16976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16977 unix_path=`$CYGPATH -u "$windows_path"` 16978 new_path="$unix_path" 16979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16981 new_path="$unix_path" 16982 fi 16983 16984 16985 # Now try to locate executable using which 16986 new_path=`$WHICH "$new_path" 2> /dev/null` 16987 16988 if test "x$new_path" = x; then 16989 # Oops. Which didn't find the executable. 16990 # The splitting of arguments from the executable at a space might have been incorrect, 16991 # since paths with space are more likely in Windows. Give it another try with the whole 16992 # argument. 16993 path="$complete" 16994 arguments="EOL" 16995 new_path="$path" 16996 16997 windows_path="$new_path" 16998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16999 unix_path=`$CYGPATH -u "$windows_path"` 17000 new_path="$unix_path" 17001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17003 new_path="$unix_path" 17004 fi 17005 17006 17007 new_path=`$WHICH "$new_path" 2> /dev/null` 17008 17009 if test "x$new_path" = x; then 17010 # It's still not found. Now this is an unrecoverable error. 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 17012 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 17013 has_space=`$ECHO "$complete" | $GREP " "` 17014 if test "x$has_space" != x; then 17015 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17016 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17017 fi 17018 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 17019 fi 17020 fi 17021 17022 # Now new_path has a complete unix path to the binary 17023 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17024 # Keep paths in /bin as-is, but remove trailing .exe if any 17025 new_path="${new_path/%.exe/}" 17026 # Do not save /bin paths to all_fixpath_prefixes! 17027 else 17028 # Not in mixed or Windows style, start by that. 17029 new_path=`cmd //c echo $new_path` 17030 17031 input_path="$new_path" 17032 # Check if we need to convert this using DOS-style short mode. If the path 17033 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17034 # take no chances and rewrite it. 17035 # Note: m4 eats our [], so we need to use [ and ] instead. 17036 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17037 if test "x$has_forbidden_chars" != x; then 17038 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17039 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17040 fi 17041 17042 # Output is in $new_path 17043 17044 windows_path="$new_path" 17045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17046 unix_path=`$CYGPATH -u "$windows_path"` 17047 new_path="$unix_path" 17048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17050 new_path="$unix_path" 17051 fi 17052 17053 # remove trailing .exe if any 17054 new_path="${new_path/%.exe/}" 17055 17056 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17057 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17058 fi 17059 17060 else 17061 # We're on a posix platform. Hooray! :) 17062 # First separate the path from the arguments. This will split at the first 17063 # space. 17064 complete="$VS_ENV_CMD" 17065 path="${complete%% *}" 17066 tmp="$complete EOL" 17067 arguments="${tmp#* }" 17068 17069 # Cannot rely on the command "which" here since it doesn't always work. 17070 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17071 if test -z "$is_absolute_path"; then 17072 # Path to executable is not absolute. Find it. 17073 IFS_save="$IFS" 17074 IFS=: 17075 for p in $PATH; do 17076 if test -f "$p/$path" && test -x "$p/$path"; then 17077 new_path="$p/$path" 17078 break 17079 fi 17080 done 17081 IFS="$IFS_save" 17082 else 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&5 17084 $as_echo "$as_me: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&6;} 17085 new_path="$path" 17086 fi 17087 17088 if test "x$new_path" = x; then 17089 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 17090 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 17091 has_space=`$ECHO "$complete" | $GREP " "` 17092 if test "x$has_space" != x; then 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17094 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17095 fi 17096 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 17097 fi 17098 fi 17099 17100 # Now join together the path and the arguments once again 17101 if test "x$arguments" != xEOL; then 17102 new_complete="$new_path ${arguments% *}" 17103 else 17104 new_complete="$new_path" 17105 fi 17106 17107 if test "x$complete" != "x$new_complete"; then 17108 VS_ENV_CMD="$new_complete" 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 17110 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 17111 fi 17112 17113 17114 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 17115 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 17116 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 17117 cd $OUTPUT_ROOT 17118 # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted 17119 # to autoconf standards. 17120 17121 #---- 17122 17123 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment) 17124 # but calculate the difference in Cygwin environment before/after running it and then 17125 # apply the diff. 17126 17127 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 17128 _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"` 17129 _dosvs10varsall=`cygpath -a -w -s $_vs10varsall` 17130 _dosbash=`cygpath -a -w -s \`which bash\`.*` 17131 else 17132 _dosvs10varsall=`cmd //c echo $VS_ENV_CMD` 17133 _dosbash=`cmd //c echo \`which bash\`` 17134 fi 17135 17136 # generate the set of exported vars before/after the vs10 setup 17137 $ECHO "@echo off" > localdevenvtmp.bat 17138 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat 17139 $ECHO "call $_dosvs10varsall $VS_ENV_ARGS" >> localdevenvtmp.bat 17140 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat 17141 17142 # Now execute the newly created bat file. 17143 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys 17144 cmd /c localdevenvtmp.bat | cat 17145 17146 # apply the diff (less some non-vs10 vars named by "!") 17147 $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort 17148 $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort 17149 $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh 17150 17151 # cleanup 17152 $RM localdevenvtmp* 17153 #---- 17154 cd $CURDIR 17155 if test ! -s $OUTPUT_ROOT/localdevenv.sh; then 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17157 $as_echo "no" >&6; } 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 17159 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 17160 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 17161 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 17162 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 17163 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 17164 as_fn_error $? "Cannot continue" "$LINENO" 5 17165 fi 17166 17167 # Now set all paths and other env variables. This will allow the rest of 17168 # the configure script to find and run the compiler in the proper way. 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 17170 $as_echo "$as_me: Setting extracted environment variables" >&6;} 17171 . $OUTPUT_ROOT/localdevenv.sh 17172 else 17173 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 17174 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 17175 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 17176 fi 17177 17178 # At this point, we should have corrent variables in the environment, or we can't continue. 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 17180 $as_echo_n "checking for Visual Studio variables... " >&6; } 17181 17182 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 17183 if test "x$INCLUDE" = x || test "x$LIB" = x; then 17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 17185 $as_echo "present but broken" >&6; } 17186 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 17187 else 17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 17189 $as_echo "ok" >&6; } 17190 # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk. 17191 VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'` 17192 VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'` 17193 VS_PATH="$PATH" 17194 17195 17196 17197 fi 17198 else 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17200 $as_echo "not found" >&6; } 17201 17202 if test "x$VS_ENV_CMD" = x; then 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 17204 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 17206 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 17207 else 17208 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 17209 $as_echo "$as_me: Running the extraction script failed." >&6;} 17210 fi 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 17212 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 17214 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 17215 as_fn_error $? "Cannot continue" "$LINENO" 5 17216 fi 17217 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 17219 $as_echo_n "checking for msvcr100.dll... " >&6; } 17220 17221 # Check whether --with-msvcr-dll was given. 17222 if test "${with_msvcr_dll+set}" = set; then : 17223 withval=$with_msvcr_dll; 17224 fi 17225 17226 if test "x$with_msvcr_dll" != x; then 17227 MSVCR_DLL="$with_msvcr_dll" 17228 else 17229 if test "x$VCINSTALLDIR" != x; then 17230 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 17231 MSVCR_DLL=`find "$VCINSTALLDIR" -name msvcr100.dll | grep x64 | head --lines 1` 17232 else 17233 MSVCR_DLL=`find "$VCINSTALLDIR" -name msvcr100.dll | grep x86 | grep -v ia64 | grep -v x64 | head --lines 1` 17234 if test "x$MSVCR_DLL" = x; then 17235 MSVCR_DLL=`find "$VCINSTALLDIR" -name msvcr100.dll | head --lines 1` 17236 fi 17237 fi 17238 if test "x$MSVCR_DLL" != x; then 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: msvcr100.dll found in VCINSTALLDIR: $VCINSTALLDIR" >&5 17240 $as_echo "$as_me: msvcr100.dll found in VCINSTALLDIR: $VCINSTALLDIR" >&6;} 17241 else 17242 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: msvcr100.dll not found in VCINSTALLDIR: $VCINSTALLDIR" >&5 17243 $as_echo "$as_me: Warning: msvcr100.dll not found in VCINSTALLDIR: $VCINSTALLDIR" >&6;} 17244 fi 17245 fi 17246 if test "x$MSVCR_DLL" = x; then 17247 if test -f "$SYSTEMROOT/system32/msvcr100.dll"; then 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: msvcr100.dll found in $SYSTEMROOT/system32" >&5 17249 $as_echo "$as_me: msvcr100.dll found in $SYSTEMROOT/system32" >&6;} 17250 MSVCR_DLL="$SYSTEMROOT/system32/msvcr100.dll" 17251 fi 17252 fi 17253 fi 17254 if test "x$MSVCR_DLL" = x; then 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17256 $as_echo "no" >&6; } 17257 as_fn_error $? "Could not find msvcr100.dll !" "$LINENO" 5 17258 fi 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 17260 $as_echo "$MSVCR_DLL" >&6; } 17261 17262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17263 17264 # Input might be given as Windows format, start by converting to 17265 # unix format. 17266 path="$MSVCR_DLL" 17267 new_path=`$CYGPATH -u "$path"` 17268 17269 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17270 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17271 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17272 # "foo.exe" is OK but "foo" is an error. 17273 # 17274 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17275 # It is also a way to make sure we got the proper file name for the real test later on. 17276 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17277 if test "x$test_shortpath" = x; then 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 17279 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 17280 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 17281 fi 17282 17283 # Call helper function which possibly converts this using DOS-style short mode. 17284 # If so, the updated path is stored in $new_path. 17285 17286 input_path="$new_path" 17287 # Check if we need to convert this using DOS-style short mode. If the path 17288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17289 # take no chances and rewrite it. 17290 # Note: m4 eats our [], so we need to use [ and ] instead. 17291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17292 if test "x$has_forbidden_chars" != x; then 17293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17294 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17295 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17296 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17297 # Going to short mode and back again did indeed matter. Since short mode is 17298 # case insensitive, let's make it lowercase to improve readability. 17299 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17300 # Now convert it back to Unix-stile (cygpath) 17301 input_path=`$CYGPATH -u "$shortmode_path"` 17302 new_path="$input_path" 17303 fi 17304 fi 17305 17306 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17307 if test "x$test_cygdrive_prefix" = x; then 17308 # As a simple fix, exclude /usr/bin since it's not a real path. 17309 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17310 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17311 # a path prefixed by /cygdrive for fixpath to work. 17312 new_path="$CYGWIN_ROOT_PATH$input_path" 17313 fi 17314 fi 17315 17316 17317 if test "x$path" != "x$new_path"; then 17318 MSVCR_DLL="$new_path" 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 17320 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 17321 fi 17322 17323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17324 17325 path="$MSVCR_DLL" 17326 has_colon=`$ECHO $path | $GREP ^.:` 17327 new_path="$path" 17328 if test "x$has_colon" = x; then 17329 # Not in mixed or Windows style, start by that. 17330 new_path=`cmd //c echo $path` 17331 fi 17332 17333 17334 input_path="$new_path" 17335 # Check if we need to convert this using DOS-style short mode. If the path 17336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17337 # take no chances and rewrite it. 17338 # Note: m4 eats our [], so we need to use [ and ] instead. 17339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17340 if test "x$has_forbidden_chars" != x; then 17341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17342 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17343 fi 17344 17345 17346 windows_path="$new_path" 17347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17348 unix_path=`$CYGPATH -u "$windows_path"` 17349 new_path="$unix_path" 17350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17352 new_path="$unix_path" 17353 fi 17354 17355 if test "x$path" != "x$new_path"; then 17356 MSVCR_DLL="$new_path" 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 17358 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 17359 fi 17360 17361 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17362 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17363 17364 else 17365 # We're on a posix platform. Hooray! :) 17366 path="$MSVCR_DLL" 17367 has_space=`$ECHO "$path" | $GREP " "` 17368 if test "x$has_space" != x; then 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 17370 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 17371 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17372 fi 17373 17374 # Use eval to expand a potential ~ 17375 eval path="$path" 17376 if test ! -f "$path" && test ! -d "$path"; then 17377 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 17378 fi 17379 17380 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 17381 fi 17382 17383 17384 17385 17386 # Check whether --with-dxsdk was given. 17387 if test "${with_dxsdk+set}" = set; then : 17388 withval=$with_dxsdk; 17389 fi 17390 17391 17392 # Check whether --with-dxsdk-lib was given. 17393 if test "${with_dxsdk_lib+set}" = set; then : 17394 withval=$with_dxsdk_lib; 17395 fi 17396 17397 17398 # Check whether --with-dxsdk-include was given. 17399 if test "${with_dxsdk_include+set}" = set; then : 17400 withval=$with_dxsdk_include; 17401 fi 17402 17403 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK" >&5 17405 $as_echo_n "checking for DirectX SDK... " >&6; } 17406 17407 if test "x$with_dxsdk" != x; then 17408 dxsdk_path="$with_dxsdk" 17409 elif test "x$DXSDK_DIR" != x; then 17410 dxsdk_path="$DXSDK_DIR" 17411 elif test -d "C:/DXSDK"; then 17412 dxsdk_path="C:/DXSDK" 17413 else 17414 as_fn_error $? "Could not find the DirectX SDK" "$LINENO" 5 17415 fi 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dxsdk_path" >&5 17417 $as_echo "$dxsdk_path" >&6; } 17418 17419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17420 17421 # Input might be given as Windows format, start by converting to 17422 # unix format. 17423 path="$dxsdk_path" 17424 new_path=`$CYGPATH -u "$path"` 17425 17426 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17427 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17428 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17429 # "foo.exe" is OK but "foo" is an error. 17430 # 17431 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17432 # It is also a way to make sure we got the proper file name for the real test later on. 17433 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17434 if test "x$test_shortpath" = x; then 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&5 17436 $as_echo "$as_me: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&6;} 17437 as_fn_error $? "Cannot locate the the path of dxsdk_path" "$LINENO" 5 17438 fi 17439 17440 # Call helper function which possibly converts this using DOS-style short mode. 17441 # If so, the updated path is stored in $new_path. 17442 17443 input_path="$new_path" 17444 # Check if we need to convert this using DOS-style short mode. If the path 17445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17446 # take no chances and rewrite it. 17447 # Note: m4 eats our [], so we need to use [ and ] instead. 17448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17449 if test "x$has_forbidden_chars" != x; then 17450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17451 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17452 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17453 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17454 # Going to short mode and back again did indeed matter. Since short mode is 17455 # case insensitive, let's make it lowercase to improve readability. 17456 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17457 # Now convert it back to Unix-stile (cygpath) 17458 input_path=`$CYGPATH -u "$shortmode_path"` 17459 new_path="$input_path" 17460 fi 17461 fi 17462 17463 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17464 if test "x$test_cygdrive_prefix" = x; then 17465 # As a simple fix, exclude /usr/bin since it's not a real path. 17466 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17467 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17468 # a path prefixed by /cygdrive for fixpath to work. 17469 new_path="$CYGWIN_ROOT_PATH$input_path" 17470 fi 17471 fi 17472 17473 17474 if test "x$path" != "x$new_path"; then 17475 dxsdk_path="$new_path" 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting dxsdk_path to \"$new_path\"" >&5 17477 $as_echo "$as_me: Rewriting dxsdk_path to \"$new_path\"" >&6;} 17478 fi 17479 17480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17481 17482 path="$dxsdk_path" 17483 has_colon=`$ECHO $path | $GREP ^.:` 17484 new_path="$path" 17485 if test "x$has_colon" = x; then 17486 # Not in mixed or Windows style, start by that. 17487 new_path=`cmd //c echo $path` 17488 fi 17489 17490 17491 input_path="$new_path" 17492 # Check if we need to convert this using DOS-style short mode. If the path 17493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17494 # take no chances and rewrite it. 17495 # Note: m4 eats our [], so we need to use [ and ] instead. 17496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17497 if test "x$has_forbidden_chars" != x; then 17498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17499 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17500 fi 17501 17502 17503 windows_path="$new_path" 17504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17505 unix_path=`$CYGPATH -u "$windows_path"` 17506 new_path="$unix_path" 17507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17509 new_path="$unix_path" 17510 fi 17511 17512 if test "x$path" != "x$new_path"; then 17513 dxsdk_path="$new_path" 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting dxsdk_path to \"$new_path\"" >&5 17515 $as_echo "$as_me: Rewriting dxsdk_path to \"$new_path\"" >&6;} 17516 fi 17517 17518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17520 17521 else 17522 # We're on a posix platform. Hooray! :) 17523 path="$dxsdk_path" 17524 has_space=`$ECHO "$path" | $GREP " "` 17525 if test "x$has_space" != x; then 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&5 17527 $as_echo "$as_me: The path of dxsdk_path, which resolves as \"$path\", is invalid." >&6;} 17528 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17529 fi 17530 17531 # Use eval to expand a potential ~ 17532 eval path="$path" 17533 if test ! -f "$path" && test ! -d "$path"; then 17534 as_fn_error $? "The path of dxsdk_path, which resolves as \"$path\", is not found." "$LINENO" 5 17535 fi 17536 17537 dxsdk_path="`cd "$path"; $THEPWDCMD -L`" 17538 fi 17539 17540 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK lib dir" >&5 17542 $as_echo_n "checking for DirectX SDK lib dir... " >&6; } 17543 if test "x$with_dxsdk_lib" != x; then 17544 DXSDK_LIB_PATH="$with_dxsdk_lib" 17545 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 17546 DXSDK_LIB_PATH="$dxsdk_path/Lib/x64" 17547 else 17548 DXSDK_LIB_PATH="$dxsdk_path/Lib" 17549 fi 17550 # dsound.lib is linked to in jsoundds 17551 if test ! -f "$DXSDK_LIB_PATH/dsound.lib"; then 17552 as_fn_error $? "Invalid DirectX SDK lib dir" "$LINENO" 5 17553 fi 17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DXSDK_LIB_PATH" >&5 17555 $as_echo "$DXSDK_LIB_PATH" >&6; } 17556 17557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17558 17559 # Input might be given as Windows format, start by converting to 17560 # unix format. 17561 path="$DXSDK_LIB_PATH" 17562 new_path=`$CYGPATH -u "$path"` 17563 17564 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17565 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17566 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17567 # "foo.exe" is OK but "foo" is an error. 17568 # 17569 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17570 # It is also a way to make sure we got the proper file name for the real test later on. 17571 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17572 if test "x$test_shortpath" = x; then 17573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&5 17574 $as_echo "$as_me: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 17575 as_fn_error $? "Cannot locate the the path of DXSDK_LIB_PATH" "$LINENO" 5 17576 fi 17577 17578 # Call helper function which possibly converts this using DOS-style short mode. 17579 # If so, the updated path is stored in $new_path. 17580 17581 input_path="$new_path" 17582 # Check if we need to convert this using DOS-style short mode. If the path 17583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17584 # take no chances and rewrite it. 17585 # Note: m4 eats our [], so we need to use [ and ] instead. 17586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17587 if test "x$has_forbidden_chars" != x; then 17588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17589 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17590 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17591 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17592 # Going to short mode and back again did indeed matter. Since short mode is 17593 # case insensitive, let's make it lowercase to improve readability. 17594 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17595 # Now convert it back to Unix-stile (cygpath) 17596 input_path=`$CYGPATH -u "$shortmode_path"` 17597 new_path="$input_path" 17598 fi 17599 fi 17600 17601 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17602 if test "x$test_cygdrive_prefix" = x; then 17603 # As a simple fix, exclude /usr/bin since it's not a real path. 17604 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17605 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17606 # a path prefixed by /cygdrive for fixpath to work. 17607 new_path="$CYGWIN_ROOT_PATH$input_path" 17608 fi 17609 fi 17610 17611 17612 if test "x$path" != "x$new_path"; then 17613 DXSDK_LIB_PATH="$new_path" 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&5 17615 $as_echo "$as_me: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&6;} 17616 fi 17617 17618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17619 17620 path="$DXSDK_LIB_PATH" 17621 has_colon=`$ECHO $path | $GREP ^.:` 17622 new_path="$path" 17623 if test "x$has_colon" = x; then 17624 # Not in mixed or Windows style, start by that. 17625 new_path=`cmd //c echo $path` 17626 fi 17627 17628 17629 input_path="$new_path" 17630 # Check if we need to convert this using DOS-style short mode. If the path 17631 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17632 # take no chances and rewrite it. 17633 # Note: m4 eats our [], so we need to use [ and ] instead. 17634 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17635 if test "x$has_forbidden_chars" != x; then 17636 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17637 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17638 fi 17639 17640 17641 windows_path="$new_path" 17642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17643 unix_path=`$CYGPATH -u "$windows_path"` 17644 new_path="$unix_path" 17645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17647 new_path="$unix_path" 17648 fi 17649 17650 if test "x$path" != "x$new_path"; then 17651 DXSDK_LIB_PATH="$new_path" 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&5 17653 $as_echo "$as_me: Rewriting DXSDK_LIB_PATH to \"$new_path\"" >&6;} 17654 fi 17655 17656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17658 17659 else 17660 # We're on a posix platform. Hooray! :) 17661 path="$DXSDK_LIB_PATH" 17662 has_space=`$ECHO "$path" | $GREP " "` 17663 if test "x$has_space" != x; then 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&5 17665 $as_echo "$as_me: The path of DXSDK_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 17666 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17667 fi 17668 17669 # Use eval to expand a potential ~ 17670 eval path="$path" 17671 if test ! -f "$path" && test ! -d "$path"; then 17672 as_fn_error $? "The path of DXSDK_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 17673 fi 17674 17675 DXSDK_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 17676 fi 17677 17678 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK include dir" >&5 17680 $as_echo_n "checking for DirectX SDK include dir... " >&6; } 17681 if test "x$with_dxsdk_include" != x; then 17682 DXSDK_INCLUDE_PATH="$with_dxsdk_include" 17683 else 17684 DXSDK_INCLUDE_PATH="$dxsdk_path/Include" 17685 fi 17686 # dsound.h is included in jsoundds 17687 if test ! -f "$DXSDK_INCLUDE_PATH/dsound.h"; then 17688 as_fn_error $? "Invalid DirectX SDK lib dir" "$LINENO" 5 17689 fi 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DXSDK_INCLUDE_PATH" >&5 17691 $as_echo "$DXSDK_INCLUDE_PATH" >&6; } 17692 17693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17694 17695 # Input might be given as Windows format, start by converting to 17696 # unix format. 17697 path="$DXSDK_INCLUDE_PATH" 17698 new_path=`$CYGPATH -u "$path"` 17699 17700 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17701 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17702 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17703 # "foo.exe" is OK but "foo" is an error. 17704 # 17705 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17706 # It is also a way to make sure we got the proper file name for the real test later on. 17707 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17708 if test "x$test_shortpath" = x; then 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 17710 $as_echo "$as_me: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 17711 as_fn_error $? "Cannot locate the the path of DXSDK_INCLUDE_PATH" "$LINENO" 5 17712 fi 17713 17714 # Call helper function which possibly converts this using DOS-style short mode. 17715 # If so, the updated path is stored in $new_path. 17716 17717 input_path="$new_path" 17718 # Check if we need to convert this using DOS-style short mode. If the path 17719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17720 # take no chances and rewrite it. 17721 # Note: m4 eats our [], so we need to use [ and ] instead. 17722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17723 if test "x$has_forbidden_chars" != x; then 17724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17725 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17726 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17727 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17728 # Going to short mode and back again did indeed matter. Since short mode is 17729 # case insensitive, let's make it lowercase to improve readability. 17730 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17731 # Now convert it back to Unix-stile (cygpath) 17732 input_path=`$CYGPATH -u "$shortmode_path"` 17733 new_path="$input_path" 17734 fi 17735 fi 17736 17737 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17738 if test "x$test_cygdrive_prefix" = x; then 17739 # As a simple fix, exclude /usr/bin since it's not a real path. 17740 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17741 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17742 # a path prefixed by /cygdrive for fixpath to work. 17743 new_path="$CYGWIN_ROOT_PATH$input_path" 17744 fi 17745 fi 17746 17747 17748 if test "x$path" != "x$new_path"; then 17749 DXSDK_INCLUDE_PATH="$new_path" 17750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&5 17751 $as_echo "$as_me: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&6;} 17752 fi 17753 17754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17755 17756 path="$DXSDK_INCLUDE_PATH" 17757 has_colon=`$ECHO $path | $GREP ^.:` 17758 new_path="$path" 17759 if test "x$has_colon" = x; then 17760 # Not in mixed or Windows style, start by that. 17761 new_path=`cmd //c echo $path` 17762 fi 17763 17764 17765 input_path="$new_path" 17766 # Check if we need to convert this using DOS-style short mode. If the path 17767 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17768 # take no chances and rewrite it. 17769 # Note: m4 eats our [], so we need to use [ and ] instead. 17770 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17771 if test "x$has_forbidden_chars" != x; then 17772 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17773 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17774 fi 17775 17776 17777 windows_path="$new_path" 17778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17779 unix_path=`$CYGPATH -u "$windows_path"` 17780 new_path="$unix_path" 17781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17783 new_path="$unix_path" 17784 fi 17785 17786 if test "x$path" != "x$new_path"; then 17787 DXSDK_INCLUDE_PATH="$new_path" 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&5 17789 $as_echo "$as_me: Rewriting DXSDK_INCLUDE_PATH to \"$new_path\"" >&6;} 17790 fi 17791 17792 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17793 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17794 17795 else 17796 # We're on a posix platform. Hooray! :) 17797 path="$DXSDK_INCLUDE_PATH" 17798 has_space=`$ECHO "$path" | $GREP " "` 17799 if test "x$has_space" != x; then 17800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 17801 $as_echo "$as_me: The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 17802 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17803 fi 17804 17805 # Use eval to expand a potential ~ 17806 eval path="$path" 17807 if test ! -f "$path" && test ! -d "$path"; then 17808 as_fn_error $? "The path of DXSDK_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 17809 fi 17810 17811 DXSDK_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 17812 fi 17813 17814 17815 17816 17817 LDFLAGS_JDK="$LDFLAGS_JDK -libpath:$DXSDK_LIB_PATH" 17818 17819 fi 17820 17821 17822 17823 # If --build AND --host is set, then the configure script will find any 17824 # cross compilation tools in the PATH. Cross compilation tools 17825 # follows the cross compilation standard where they are prefixed with ${host}. 17826 # For example the binary i686-sun-solaris2.10-gcc 17827 # will cross compile for i686-sun-solaris2.10 17828 # If neither of build and host is not set, then build=host and the 17829 # default compiler found in the path will be used. 17830 # Setting only --host, does not seem to be really supported. 17831 # Please set both --build and --host if you want to cross compile. 17832 17833 if test "x$COMPILE_TYPE" = "xcross"; then 17834 # Now we to find a C/C++ compiler that can build executables for the build 17835 # platform. We can't use the AC_PROG_CC macro, since it can only be used 17836 # once. Also, we need to do this before adding a tools dir to the path, 17837 # otherwise we might pick up cross-compilers which don't use standard naming. 17838 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have 17839 # to wait until they are properly discovered. 17840 for ac_prog in cl cc gcc 17841 do 17842 # Extract the first word of "$ac_prog", so it can be a program name with args. 17843 set dummy $ac_prog; ac_word=$2 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17845 $as_echo_n "checking for $ac_word... " >&6; } 17846 if ${ac_cv_path_BUILD_CC+:} false; then : 17847 $as_echo_n "(cached) " >&6 17848 else 17849 case $BUILD_CC in 17850 [\\/]* | ?:[\\/]*) 17851 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 17852 ;; 17853 *) 17854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17855 for as_dir in $PATH 17856 do 17857 IFS=$as_save_IFS 17858 test -z "$as_dir" && as_dir=. 17859 for ac_exec_ext in '' $ac_executable_extensions; do 17860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17861 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 17862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17863 break 2 17864 fi 17865 done 17866 done 17867 IFS=$as_save_IFS 17868 17869 ;; 17870 esac 17871 fi 17872 BUILD_CC=$ac_cv_path_BUILD_CC 17873 if test -n "$BUILD_CC"; then 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 17875 $as_echo "$BUILD_CC" >&6; } 17876 else 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17878 $as_echo "no" >&6; } 17879 fi 17880 17881 17882 test -n "$BUILD_CC" && break 17883 done 17884 17885 17886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17887 17888 # First separate the path from the arguments. This will split at the first 17889 # space. 17890 complete="$BUILD_CC" 17891 path="${complete%% *}" 17892 tmp="$complete EOL" 17893 arguments="${tmp#* }" 17894 17895 # Input might be given as Windows format, start by converting to 17896 # unix format. 17897 new_path=`$CYGPATH -u "$path"` 17898 17899 # Now try to locate executable using which 17900 new_path=`$WHICH "$new_path" 2> /dev/null` 17901 # bat and cmd files are not always considered executable in cygwin causing which 17902 # to not find them 17903 if test "x$new_path" = x \ 17904 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17905 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17906 new_path=`$CYGPATH -u "$path"` 17907 fi 17908 if test "x$new_path" = x; then 17909 # Oops. Which didn't find the executable. 17910 # The splitting of arguments from the executable at a space might have been incorrect, 17911 # since paths with space are more likely in Windows. Give it another try with the whole 17912 # argument. 17913 path="$complete" 17914 arguments="EOL" 17915 new_path=`$CYGPATH -u "$path"` 17916 new_path=`$WHICH "$new_path" 2> /dev/null` 17917 # bat and cmd files are not always considered executable in cygwin causing which 17918 # to not find them 17919 if test "x$new_path" = x \ 17920 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17921 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17922 new_path=`$CYGPATH -u "$path"` 17923 fi 17924 if test "x$new_path" = x; then 17925 # It's still not found. Now this is an unrecoverable error. 17926 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 17927 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 17928 has_space=`$ECHO "$complete" | $GREP " "` 17929 if test "x$has_space" != x; then 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17931 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17932 fi 17933 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 17934 fi 17935 fi 17936 17937 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17938 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17939 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17940 # "foo.exe" is OK but "foo" is an error. 17941 # 17942 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17943 # It is also a way to make sure we got the proper file name for the real test later on. 17944 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17945 if test "x$test_shortpath" = x; then 17946 # Short path failed, file does not exist as specified. 17947 # Try adding .exe or .cmd 17948 if test -f "${new_path}.exe"; then 17949 input_to_shortpath="${new_path}.exe" 17950 elif test -f "${new_path}.cmd"; then 17951 input_to_shortpath="${new_path}.cmd" 17952 else 17953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 17954 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17956 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17957 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 17958 fi 17959 else 17960 input_to_shortpath="$new_path" 17961 fi 17962 17963 # Call helper function which possibly converts this using DOS-style short mode. 17964 # If so, the updated path is stored in $new_path. 17965 new_path="$input_to_shortpath" 17966 17967 input_path="$input_to_shortpath" 17968 # Check if we need to convert this using DOS-style short mode. If the path 17969 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17970 # take no chances and rewrite it. 17971 # Note: m4 eats our [], so we need to use [ and ] instead. 17972 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17973 if test "x$has_forbidden_chars" != x; then 17974 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17975 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17976 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17977 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17978 # Going to short mode and back again did indeed matter. Since short mode is 17979 # case insensitive, let's make it lowercase to improve readability. 17980 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17981 # Now convert it back to Unix-stile (cygpath) 17982 input_path=`$CYGPATH -u "$shortmode_path"` 17983 new_path="$input_path" 17984 fi 17985 fi 17986 17987 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17988 if test "x$test_cygdrive_prefix" = x; then 17989 # As a simple fix, exclude /usr/bin since it's not a real path. 17990 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17991 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17992 # a path prefixed by /cygdrive for fixpath to work. 17993 new_path="$CYGWIN_ROOT_PATH$input_path" 17994 fi 17995 fi 17996 17997 # remove trailing .exe if any 17998 new_path="${new_path/%.exe/}" 17999 18000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18001 18002 # First separate the path from the arguments. This will split at the first 18003 # space. 18004 complete="$BUILD_CC" 18005 path="${complete%% *}" 18006 tmp="$complete EOL" 18007 arguments="${tmp#* }" 18008 18009 # Input might be given as Windows format, start by converting to 18010 # unix format. 18011 new_path="$path" 18012 18013 windows_path="$new_path" 18014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18015 unix_path=`$CYGPATH -u "$windows_path"` 18016 new_path="$unix_path" 18017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18019 new_path="$unix_path" 18020 fi 18021 18022 18023 # Now try to locate executable using which 18024 new_path=`$WHICH "$new_path" 2> /dev/null` 18025 18026 if test "x$new_path" = x; then 18027 # Oops. Which didn't find the executable. 18028 # The splitting of arguments from the executable at a space might have been incorrect, 18029 # since paths with space are more likely in Windows. Give it another try with the whole 18030 # argument. 18031 path="$complete" 18032 arguments="EOL" 18033 new_path="$path" 18034 18035 windows_path="$new_path" 18036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18037 unix_path=`$CYGPATH -u "$windows_path"` 18038 new_path="$unix_path" 18039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18041 new_path="$unix_path" 18042 fi 18043 18044 18045 new_path=`$WHICH "$new_path" 2> /dev/null` 18046 18047 if test "x$new_path" = x; then 18048 # It's still not found. Now this is an unrecoverable error. 18049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 18050 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 18051 has_space=`$ECHO "$complete" | $GREP " "` 18052 if test "x$has_space" != x; then 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18054 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18055 fi 18056 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 18057 fi 18058 fi 18059 18060 # Now new_path has a complete unix path to the binary 18061 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18062 # Keep paths in /bin as-is, but remove trailing .exe if any 18063 new_path="${new_path/%.exe/}" 18064 # Do not save /bin paths to all_fixpath_prefixes! 18065 else 18066 # Not in mixed or Windows style, start by that. 18067 new_path=`cmd //c echo $new_path` 18068 18069 input_path="$new_path" 18070 # Check if we need to convert this using DOS-style short mode. If the path 18071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18072 # take no chances and rewrite it. 18073 # Note: m4 eats our [], so we need to use [ and ] instead. 18074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18075 if test "x$has_forbidden_chars" != x; then 18076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18077 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18078 fi 18079 18080 # Output is in $new_path 18081 18082 windows_path="$new_path" 18083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18084 unix_path=`$CYGPATH -u "$windows_path"` 18085 new_path="$unix_path" 18086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18087 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18088 new_path="$unix_path" 18089 fi 18090 18091 # remove trailing .exe if any 18092 new_path="${new_path/%.exe/}" 18093 18094 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18095 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18096 fi 18097 18098 else 18099 # We're on a posix platform. Hooray! :) 18100 # First separate the path from the arguments. This will split at the first 18101 # space. 18102 complete="$BUILD_CC" 18103 path="${complete%% *}" 18104 tmp="$complete EOL" 18105 arguments="${tmp#* }" 18106 18107 # Cannot rely on the command "which" here since it doesn't always work. 18108 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18109 if test -z "$is_absolute_path"; then 18110 # Path to executable is not absolute. Find it. 18111 IFS_save="$IFS" 18112 IFS=: 18113 for p in $PATH; do 18114 if test -f "$p/$path" && test -x "$p/$path"; then 18115 new_path="$p/$path" 18116 break 18117 fi 18118 done 18119 IFS="$IFS_save" 18120 else 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CC (as $path) failed, using $path directly." >&5 18122 $as_echo "$as_me: Resolving BUILD_CC (as $path) failed, using $path directly." >&6;} 18123 new_path="$path" 18124 fi 18125 18126 if test "x$new_path" = x; then 18127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 18128 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 18129 has_space=`$ECHO "$complete" | $GREP " "` 18130 if test "x$has_space" != x; then 18131 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18132 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18133 fi 18134 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 18135 fi 18136 fi 18137 18138 # Now join together the path and the arguments once again 18139 if test "x$arguments" != xEOL; then 18140 new_complete="$new_path ${arguments% *}" 18141 else 18142 new_complete="$new_path" 18143 fi 18144 18145 if test "x$complete" != "x$new_complete"; then 18146 BUILD_CC="$new_complete" 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 18148 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 18149 fi 18150 18151 for ac_prog in cl CC g++ 18152 do 18153 # Extract the first word of "$ac_prog", so it can be a program name with args. 18154 set dummy $ac_prog; ac_word=$2 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18156 $as_echo_n "checking for $ac_word... " >&6; } 18157 if ${ac_cv_path_BUILD_CXX+:} false; then : 18158 $as_echo_n "(cached) " >&6 18159 else 18160 case $BUILD_CXX in 18161 [\\/]* | ?:[\\/]*) 18162 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 18163 ;; 18164 *) 18165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18166 for as_dir in $PATH 18167 do 18168 IFS=$as_save_IFS 18169 test -z "$as_dir" && as_dir=. 18170 for ac_exec_ext in '' $ac_executable_extensions; do 18171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18172 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 18173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18174 break 2 18175 fi 18176 done 18177 done 18178 IFS=$as_save_IFS 18179 18180 ;; 18181 esac 18182 fi 18183 BUILD_CXX=$ac_cv_path_BUILD_CXX 18184 if test -n "$BUILD_CXX"; then 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 18186 $as_echo "$BUILD_CXX" >&6; } 18187 else 18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18189 $as_echo "no" >&6; } 18190 fi 18191 18192 18193 test -n "$BUILD_CXX" && break 18194 done 18195 18196 18197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18198 18199 # First separate the path from the arguments. This will split at the first 18200 # space. 18201 complete="$BUILD_CXX" 18202 path="${complete%% *}" 18203 tmp="$complete EOL" 18204 arguments="${tmp#* }" 18205 18206 # Input might be given as Windows format, start by converting to 18207 # unix format. 18208 new_path=`$CYGPATH -u "$path"` 18209 18210 # Now try to locate executable using which 18211 new_path=`$WHICH "$new_path" 2> /dev/null` 18212 # bat and cmd files are not always considered executable in cygwin causing which 18213 # to not find them 18214 if test "x$new_path" = x \ 18215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18217 new_path=`$CYGPATH -u "$path"` 18218 fi 18219 if test "x$new_path" = x; then 18220 # Oops. Which didn't find the executable. 18221 # The splitting of arguments from the executable at a space might have been incorrect, 18222 # since paths with space are more likely in Windows. Give it another try with the whole 18223 # argument. 18224 path="$complete" 18225 arguments="EOL" 18226 new_path=`$CYGPATH -u "$path"` 18227 new_path=`$WHICH "$new_path" 2> /dev/null` 18228 # bat and cmd files are not always considered executable in cygwin causing which 18229 # to not find them 18230 if test "x$new_path" = x \ 18231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18233 new_path=`$CYGPATH -u "$path"` 18234 fi 18235 if test "x$new_path" = x; then 18236 # It's still not found. Now this is an unrecoverable error. 18237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 18238 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 18239 has_space=`$ECHO "$complete" | $GREP " "` 18240 if test "x$has_space" != x; then 18241 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18242 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18243 fi 18244 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 18245 fi 18246 fi 18247 18248 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18249 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18250 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18251 # "foo.exe" is OK but "foo" is an error. 18252 # 18253 # This test is therefore slightly more accurate than "test -f" to check for file precense. 18254 # It is also a way to make sure we got the proper file name for the real test later on. 18255 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18256 if test "x$test_shortpath" = x; then 18257 # Short path failed, file does not exist as specified. 18258 # Try adding .exe or .cmd 18259 if test -f "${new_path}.exe"; then 18260 input_to_shortpath="${new_path}.exe" 18261 elif test -f "${new_path}.cmd"; then 18262 input_to_shortpath="${new_path}.cmd" 18263 else 18264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 18265 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18267 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18268 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 18269 fi 18270 else 18271 input_to_shortpath="$new_path" 18272 fi 18273 18274 # Call helper function which possibly converts this using DOS-style short mode. 18275 # If so, the updated path is stored in $new_path. 18276 new_path="$input_to_shortpath" 18277 18278 input_path="$input_to_shortpath" 18279 # Check if we need to convert this using DOS-style short mode. If the path 18280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18281 # take no chances and rewrite it. 18282 # Note: m4 eats our [], so we need to use [ and ] instead. 18283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18284 if test "x$has_forbidden_chars" != x; then 18285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18289 # Going to short mode and back again did indeed matter. Since short mode is 18290 # case insensitive, let's make it lowercase to improve readability. 18291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18292 # Now convert it back to Unix-stile (cygpath) 18293 input_path=`$CYGPATH -u "$shortmode_path"` 18294 new_path="$input_path" 18295 fi 18296 fi 18297 18298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18299 if test "x$test_cygdrive_prefix" = x; then 18300 # As a simple fix, exclude /usr/bin since it's not a real path. 18301 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18303 # a path prefixed by /cygdrive for fixpath to work. 18304 new_path="$CYGWIN_ROOT_PATH$input_path" 18305 fi 18306 fi 18307 18308 # remove trailing .exe if any 18309 new_path="${new_path/%.exe/}" 18310 18311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18312 18313 # First separate the path from the arguments. This will split at the first 18314 # space. 18315 complete="$BUILD_CXX" 18316 path="${complete%% *}" 18317 tmp="$complete EOL" 18318 arguments="${tmp#* }" 18319 18320 # Input might be given as Windows format, start by converting to 18321 # unix format. 18322 new_path="$path" 18323 18324 windows_path="$new_path" 18325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18326 unix_path=`$CYGPATH -u "$windows_path"` 18327 new_path="$unix_path" 18328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18330 new_path="$unix_path" 18331 fi 18332 18333 18334 # Now try to locate executable using which 18335 new_path=`$WHICH "$new_path" 2> /dev/null` 18336 18337 if test "x$new_path" = x; then 18338 # Oops. Which didn't find the executable. 18339 # The splitting of arguments from the executable at a space might have been incorrect, 18340 # since paths with space are more likely in Windows. Give it another try with the whole 18341 # argument. 18342 path="$complete" 18343 arguments="EOL" 18344 new_path="$path" 18345 18346 windows_path="$new_path" 18347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18348 unix_path=`$CYGPATH -u "$windows_path"` 18349 new_path="$unix_path" 18350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18352 new_path="$unix_path" 18353 fi 18354 18355 18356 new_path=`$WHICH "$new_path" 2> /dev/null` 18357 18358 if test "x$new_path" = x; then 18359 # It's still not found. Now this is an unrecoverable error. 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 18361 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 18362 has_space=`$ECHO "$complete" | $GREP " "` 18363 if test "x$has_space" != x; then 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18365 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18366 fi 18367 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 18368 fi 18369 fi 18370 18371 # Now new_path has a complete unix path to the binary 18372 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18373 # Keep paths in /bin as-is, but remove trailing .exe if any 18374 new_path="${new_path/%.exe/}" 18375 # Do not save /bin paths to all_fixpath_prefixes! 18376 else 18377 # Not in mixed or Windows style, start by that. 18378 new_path=`cmd //c echo $new_path` 18379 18380 input_path="$new_path" 18381 # Check if we need to convert this using DOS-style short mode. If the path 18382 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18383 # take no chances and rewrite it. 18384 # Note: m4 eats our [], so we need to use [ and ] instead. 18385 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18386 if test "x$has_forbidden_chars" != x; then 18387 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18388 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18389 fi 18390 18391 # Output is in $new_path 18392 18393 windows_path="$new_path" 18394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18395 unix_path=`$CYGPATH -u "$windows_path"` 18396 new_path="$unix_path" 18397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18399 new_path="$unix_path" 18400 fi 18401 18402 # remove trailing .exe if any 18403 new_path="${new_path/%.exe/}" 18404 18405 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18406 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18407 fi 18408 18409 else 18410 # We're on a posix platform. Hooray! :) 18411 # First separate the path from the arguments. This will split at the first 18412 # space. 18413 complete="$BUILD_CXX" 18414 path="${complete%% *}" 18415 tmp="$complete EOL" 18416 arguments="${tmp#* }" 18417 18418 # Cannot rely on the command "which" here since it doesn't always work. 18419 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18420 if test -z "$is_absolute_path"; then 18421 # Path to executable is not absolute. Find it. 18422 IFS_save="$IFS" 18423 IFS=: 18424 for p in $PATH; do 18425 if test -f "$p/$path" && test -x "$p/$path"; then 18426 new_path="$p/$path" 18427 break 18428 fi 18429 done 18430 IFS="$IFS_save" 18431 else 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CXX (as $path) failed, using $path directly." >&5 18433 $as_echo "$as_me: Resolving BUILD_CXX (as $path) failed, using $path directly." >&6;} 18434 new_path="$path" 18435 fi 18436 18437 if test "x$new_path" = x; then 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 18439 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 18440 has_space=`$ECHO "$complete" | $GREP " "` 18441 if test "x$has_space" != x; then 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18443 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18444 fi 18445 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 18446 fi 18447 fi 18448 18449 # Now join together the path and the arguments once again 18450 if test "x$arguments" != xEOL; then 18451 new_complete="$new_path ${arguments% *}" 18452 else 18453 new_complete="$new_path" 18454 fi 18455 18456 if test "x$complete" != "x$new_complete"; then 18457 BUILD_CXX="$new_complete" 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 18459 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 18460 fi 18461 18462 # Extract the first word of "ld", so it can be a program name with args. 18463 set dummy ld; ac_word=$2 18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18465 $as_echo_n "checking for $ac_word... " >&6; } 18466 if ${ac_cv_path_BUILD_LD+:} false; then : 18467 $as_echo_n "(cached) " >&6 18468 else 18469 case $BUILD_LD in 18470 [\\/]* | ?:[\\/]*) 18471 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 18472 ;; 18473 *) 18474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18475 for as_dir in $PATH 18476 do 18477 IFS=$as_save_IFS 18478 test -z "$as_dir" && as_dir=. 18479 for ac_exec_ext in '' $ac_executable_extensions; do 18480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18481 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 18482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18483 break 2 18484 fi 18485 done 18486 done 18487 IFS=$as_save_IFS 18488 18489 ;; 18490 esac 18491 fi 18492 BUILD_LD=$ac_cv_path_BUILD_LD 18493 if test -n "$BUILD_LD"; then 18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 18495 $as_echo "$BUILD_LD" >&6; } 18496 else 18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18498 $as_echo "no" >&6; } 18499 fi 18500 18501 18502 18503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18504 18505 # First separate the path from the arguments. This will split at the first 18506 # space. 18507 complete="$BUILD_LD" 18508 path="${complete%% *}" 18509 tmp="$complete EOL" 18510 arguments="${tmp#* }" 18511 18512 # Input might be given as Windows format, start by converting to 18513 # unix format. 18514 new_path=`$CYGPATH -u "$path"` 18515 18516 # Now try to locate executable using which 18517 new_path=`$WHICH "$new_path" 2> /dev/null` 18518 # bat and cmd files are not always considered executable in cygwin causing which 18519 # to not find them 18520 if test "x$new_path" = x \ 18521 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18522 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18523 new_path=`$CYGPATH -u "$path"` 18524 fi 18525 if test "x$new_path" = x; then 18526 # Oops. Which didn't find the executable. 18527 # The splitting of arguments from the executable at a space might have been incorrect, 18528 # since paths with space are more likely in Windows. Give it another try with the whole 18529 # argument. 18530 path="$complete" 18531 arguments="EOL" 18532 new_path=`$CYGPATH -u "$path"` 18533 new_path=`$WHICH "$new_path" 2> /dev/null` 18534 # bat and cmd files are not always considered executable in cygwin causing which 18535 # to not find them 18536 if test "x$new_path" = x \ 18537 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18538 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18539 new_path=`$CYGPATH -u "$path"` 18540 fi 18541 if test "x$new_path" = x; then 18542 # It's still not found. Now this is an unrecoverable error. 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 18544 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 18545 has_space=`$ECHO "$complete" | $GREP " "` 18546 if test "x$has_space" != x; then 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18549 fi 18550 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18551 fi 18552 fi 18553 18554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18557 # "foo.exe" is OK but "foo" is an error. 18558 # 18559 # This test is therefore slightly more accurate than "test -f" to check for file precense. 18560 # It is also a way to make sure we got the proper file name for the real test later on. 18561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18562 if test "x$test_shortpath" = x; then 18563 # Short path failed, file does not exist as specified. 18564 # Try adding .exe or .cmd 18565 if test -f "${new_path}.exe"; then 18566 input_to_shortpath="${new_path}.exe" 18567 elif test -f "${new_path}.cmd"; then 18568 input_to_shortpath="${new_path}.cmd" 18569 else 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 18571 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18573 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18574 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18575 fi 18576 else 18577 input_to_shortpath="$new_path" 18578 fi 18579 18580 # Call helper function which possibly converts this using DOS-style short mode. 18581 # If so, the updated path is stored in $new_path. 18582 new_path="$input_to_shortpath" 18583 18584 input_path="$input_to_shortpath" 18585 # Check if we need to convert this using DOS-style short mode. If the path 18586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18587 # take no chances and rewrite it. 18588 # Note: m4 eats our [], so we need to use [ and ] instead. 18589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18590 if test "x$has_forbidden_chars" != x; then 18591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18592 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18593 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18594 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18595 # Going to short mode and back again did indeed matter. Since short mode is 18596 # case insensitive, let's make it lowercase to improve readability. 18597 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18598 # Now convert it back to Unix-stile (cygpath) 18599 input_path=`$CYGPATH -u "$shortmode_path"` 18600 new_path="$input_path" 18601 fi 18602 fi 18603 18604 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18605 if test "x$test_cygdrive_prefix" = x; then 18606 # As a simple fix, exclude /usr/bin since it's not a real path. 18607 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18608 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18609 # a path prefixed by /cygdrive for fixpath to work. 18610 new_path="$CYGWIN_ROOT_PATH$input_path" 18611 fi 18612 fi 18613 18614 # remove trailing .exe if any 18615 new_path="${new_path/%.exe/}" 18616 18617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18618 18619 # First separate the path from the arguments. This will split at the first 18620 # space. 18621 complete="$BUILD_LD" 18622 path="${complete%% *}" 18623 tmp="$complete EOL" 18624 arguments="${tmp#* }" 18625 18626 # Input might be given as Windows format, start by converting to 18627 # unix format. 18628 new_path="$path" 18629 18630 windows_path="$new_path" 18631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18632 unix_path=`$CYGPATH -u "$windows_path"` 18633 new_path="$unix_path" 18634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18636 new_path="$unix_path" 18637 fi 18638 18639 18640 # Now try to locate executable using which 18641 new_path=`$WHICH "$new_path" 2> /dev/null` 18642 18643 if test "x$new_path" = x; then 18644 # Oops. Which didn't find the executable. 18645 # The splitting of arguments from the executable at a space might have been incorrect, 18646 # since paths with space are more likely in Windows. Give it another try with the whole 18647 # argument. 18648 path="$complete" 18649 arguments="EOL" 18650 new_path="$path" 18651 18652 windows_path="$new_path" 18653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18654 unix_path=`$CYGPATH -u "$windows_path"` 18655 new_path="$unix_path" 18656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18658 new_path="$unix_path" 18659 fi 18660 18661 18662 new_path=`$WHICH "$new_path" 2> /dev/null` 18663 18664 if test "x$new_path" = x; then 18665 # It's still not found. Now this is an unrecoverable error. 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 18667 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 18668 has_space=`$ECHO "$complete" | $GREP " "` 18669 if test "x$has_space" != x; then 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18672 fi 18673 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18674 fi 18675 fi 18676 18677 # Now new_path has a complete unix path to the binary 18678 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18679 # Keep paths in /bin as-is, but remove trailing .exe if any 18680 new_path="${new_path/%.exe/}" 18681 # Do not save /bin paths to all_fixpath_prefixes! 18682 else 18683 # Not in mixed or Windows style, start by that. 18684 new_path=`cmd //c echo $new_path` 18685 18686 input_path="$new_path" 18687 # Check if we need to convert this using DOS-style short mode. If the path 18688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18689 # take no chances and rewrite it. 18690 # Note: m4 eats our [], so we need to use [ and ] instead. 18691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18692 if test "x$has_forbidden_chars" != x; then 18693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18694 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18695 fi 18696 18697 # Output is in $new_path 18698 18699 windows_path="$new_path" 18700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18701 unix_path=`$CYGPATH -u "$windows_path"` 18702 new_path="$unix_path" 18703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18705 new_path="$unix_path" 18706 fi 18707 18708 # remove trailing .exe if any 18709 new_path="${new_path/%.exe/}" 18710 18711 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18712 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18713 fi 18714 18715 else 18716 # We're on a posix platform. Hooray! :) 18717 # First separate the path from the arguments. This will split at the first 18718 # space. 18719 complete="$BUILD_LD" 18720 path="${complete%% *}" 18721 tmp="$complete EOL" 18722 arguments="${tmp#* }" 18723 18724 # Cannot rely on the command "which" here since it doesn't always work. 18725 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18726 if test -z "$is_absolute_path"; then 18727 # Path to executable is not absolute. Find it. 18728 IFS_save="$IFS" 18729 IFS=: 18730 for p in $PATH; do 18731 if test -f "$p/$path" && test -x "$p/$path"; then 18732 new_path="$p/$path" 18733 break 18734 fi 18735 done 18736 IFS="$IFS_save" 18737 else 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_LD (as $path) failed, using $path directly." >&5 18739 $as_echo "$as_me: Resolving BUILD_LD (as $path) failed, using $path directly." >&6;} 18740 new_path="$path" 18741 fi 18742 18743 if test "x$new_path" = x; then 18744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 18745 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 18746 has_space=`$ECHO "$complete" | $GREP " "` 18747 if test "x$has_space" != x; then 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18749 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18750 fi 18751 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 18752 fi 18753 fi 18754 18755 # Now join together the path and the arguments once again 18756 if test "x$arguments" != xEOL; then 18757 new_complete="$new_path ${arguments% *}" 18758 else 18759 new_complete="$new_path" 18760 fi 18761 18762 if test "x$complete" != "x$new_complete"; then 18763 BUILD_LD="$new_complete" 18764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 18765 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 18766 fi 18767 18768 fi 18769 18770 18771 18772 18773 # If a devkit is found on the builddeps server, then prepend its path to the 18774 # PATH variable. If there are cross compilers available in the devkit, these 18775 # will be found by AC_PROG_CC et al. 18776 DEVKIT= 18777 18778 18779 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 18780 # Source the builddeps file again, to make sure it uses the latest variables! 18781 . $builddepsfile 18782 # Look for a target and build machine specific resource! 18783 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 18784 if test "x$resource" = x; then 18785 # Ok, lets instead look for a target specific resource 18786 eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}} 18787 fi 18788 if test "x$resource" = x; then 18789 # Ok, lets instead look for a build specific resource 18790 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}} 18791 fi 18792 if test "x$resource" = x; then 18793 # Ok, lets instead look for a generic resource 18794 # (The devkit comes from M4 and not the shell, thus no need for eval here.) 18795 resource=${builddep_devkit} 18796 fi 18797 if test "x$resource" != x; then 18798 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5 18799 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;} 18800 # If the resource in the builddeps.conf file is an existing directory, 18801 # for example /java/linux/cups 18802 if test -d ${resource}; then 18803 depdir=${resource} 18804 else 18805 18806 # devkit is for example mymodule 18807 # $resource is for example libs/general/libmymod_1_2_3.zip 18808 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 18809 # $with_builddeps_dir is for example /localhome/builddeps 18810 # depdir is the name of the variable into which we store the depdir, eg MYMOD 18811 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 18812 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 18813 filename=`basename $resource` 18814 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 18815 filebase=${filename%%.*} 18816 extension=${filename#*.} 18817 installdir=$with_builddeps_dir/$filebase 18818 if test ! -f $installdir/$filename.unpacked; then 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5 18820 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;} 18821 if test ! -d $installdir; then 18822 mkdir -p $installdir 18823 fi 18824 if test ! -d $installdir; then 18825 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 18826 fi 18827 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX` 18828 touch $tmpfile 18829 if test ! -f $tmpfile; then 18830 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 18831 fi 18832 18833 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 18834 # $tmpfile is the local file name for the downloaded file. 18835 VALID_TOOL=no 18836 if test "x$BDEPS_FTP" = xwget; then 18837 VALID_TOOL=yes 18838 wget -O $tmpfile $with_builddeps_server/$resource 18839 fi 18840 if test "x$BDEPS_FTP" = xlftp; then 18841 VALID_TOOL=yes 18842 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 18843 fi 18844 if test "x$BDEPS_FTP" = xftp; then 18845 VALID_TOOL=yes 18846 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 18847 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 18848 FTPUSERPWD=${FTPSERVER%%@*} 18849 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 18850 FTPUSER=${userpwd%%:*} 18851 FTPPWD=${userpwd#*@} 18852 FTPSERVER=${FTPSERVER#*@} 18853 else 18854 FTPUSER=ftp 18855 FTPPWD=ftp 18856 fi 18857 # the "pass" command does not work on some 18858 # ftp clients (read ftp.exe) but if it works, 18859 # passive mode is better! 18860 (\ 18861 echo "user $FTPUSER $FTPPWD" ;\ 18862 echo "pass" ;\ 18863 echo "bin" ;\ 18864 echo "get $FTPPATH $tmpfile" ;\ 18865 ) | ftp -in $FTPSERVER 18866 fi 18867 if test "x$VALID_TOOL" != xyes; then 18868 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 18869 fi 18870 18871 mv $tmpfile $installdir/$filename 18872 if test ! -s $installdir/$filename; then 18873 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 18874 fi 18875 case "$extension" in 18876 zip) echo "Unzipping $installdir/$filename..." 18877 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 18878 ;; 18879 tar.gz) echo "Untaring $installdir/$filename..." 18880 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 18881 ;; 18882 tgz) echo "Untaring $installdir/$filename..." 18883 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 18884 ;; 18885 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 18886 ;; 18887 esac 18888 fi 18889 if test -f $installdir/$filename.unpacked; then 18890 depdir=$installdir 18891 fi 18892 18893 fi 18894 # Source the builddeps file again, because in the previous command, the depdir 18895 # was updated to point at the current build dependency install directory. 18896 . $builddepsfile 18897 # Now extract variables from the builddeps.conf files. 18898 theroot=${builddep_devkit_ROOT} 18899 thecflags=${builddep_devkit_CFLAGS} 18900 thelibs=${builddep_devkit_LIBS} 18901 if test "x$depdir" = x; then 18902 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5 18903 fi 18904 DEVKIT=$depdir 18905 if test "x$theroot" != x; then 18906 DEVKIT="$theroot" 18907 fi 18908 if test "x$thecflags" != x; then 18909 DEVKIT_CFLAGS="$thecflags" 18910 fi 18911 if test "x$thelibs" != x; then 18912 DEVKIT_LIBS="$thelibs" 18913 fi 18914 # Found devkit 18915 PATH="$DEVKIT/bin:$PATH" 18916 SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root" 18917 if test "x$x_includes" = "xNONE"; then 18918 x_includes="$SYS_ROOT/usr/include/X11" 18919 fi 18920 if test "x$x_libraries" = "xNONE"; then 18921 x_libraries="$SYS_ROOT/usr/lib" 18922 fi 18923 18924 18925 fi 18926 18927 fi 18928 18929 18930 if test "x$SYS_ROOT" != "x/" ; then 18931 CFLAGS="--sysroot=$SYS_ROOT $CFLAGS" 18932 CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS" 18933 OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS" 18934 OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS" 18935 CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS" 18936 LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS" 18937 fi 18938 18939 # Store the CFLAGS etal passed to the configure script. 18940 ORG_CFLAGS="$CFLAGS" 18941 ORG_CXXFLAGS="$CXXFLAGS" 18942 ORG_OBJCFLAGS="$OBJCFLAGS" 18943 18944 # autoconf magic only relies on PATH, so update it if tools dir is specified 18945 OLD_PATH="$PATH" 18946 if test "x$TOOLS_DIR" != x; then 18947 PATH=$TOOLS_DIR:$PATH 18948 fi 18949 18950 18951 ### Locate C compiler (CC) 18952 18953 # On windows, only cl.exe is supported. 18954 # On Solaris, cc is preferred to gcc. 18955 # Elsewhere, gcc is preferred to cc. 18956 18957 if test "x$CC" != x; then 18958 COMPILER_CHECK_LIST="$CC" 18959 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18960 COMPILER_CHECK_LIST="cl" 18961 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 18962 COMPILER_CHECK_LIST="cc gcc" 18963 else 18964 COMPILER_CHECK_LIST="gcc cc" 18965 fi 18966 18967 18968 COMPILER_NAME=C 18969 18970 CC= 18971 # If TOOLS_DIR is set, check for all compiler names in there first 18972 # before checking the rest of the PATH. 18973 if test -n "$TOOLS_DIR"; then 18974 PATH_save="$PATH" 18975 PATH="$TOOLS_DIR" 18976 for ac_prog in $COMPILER_CHECK_LIST 18977 do 18978 # Extract the first word of "$ac_prog", so it can be a program name with args. 18979 set dummy $ac_prog; ac_word=$2 18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18981 $as_echo_n "checking for $ac_word... " >&6; } 18982 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then : 18983 $as_echo_n "(cached) " >&6 18984 else 18985 case $TOOLS_DIR_CC in 18986 [\\/]* | ?:[\\/]*) 18987 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path. 18988 ;; 18989 *) 18990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18991 for as_dir in $PATH 18992 do 18993 IFS=$as_save_IFS 18994 test -z "$as_dir" && as_dir=. 18995 for ac_exec_ext in '' $ac_executable_extensions; do 18996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18997 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext" 18998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18999 break 2 19000 fi 19001 done 19002 done 19003 IFS=$as_save_IFS 19004 19005 ;; 19006 esac 19007 fi 19008 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC 19009 if test -n "$TOOLS_DIR_CC"; then 19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5 19011 $as_echo "$TOOLS_DIR_CC" >&6; } 19012 else 19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19014 $as_echo "no" >&6; } 19015 fi 19016 19017 19018 test -n "$TOOLS_DIR_CC" && break 19019 done 19020 19021 CC=$TOOLS_DIR_CC 19022 PATH="$PATH_save" 19023 fi 19024 19025 # AC_PATH_PROGS can't be run multiple times with the same variable, 19026 # so create a new name for this run. 19027 if test "x$CC" = x; then 19028 for ac_prog in $COMPILER_CHECK_LIST 19029 do 19030 # Extract the first word of "$ac_prog", so it can be a program name with args. 19031 set dummy $ac_prog; ac_word=$2 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19033 $as_echo_n "checking for $ac_word... " >&6; } 19034 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 19035 $as_echo_n "(cached) " >&6 19036 else 19037 case $POTENTIAL_CC in 19038 [\\/]* | ?:[\\/]*) 19039 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 19040 ;; 19041 *) 19042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19043 for as_dir in $PATH 19044 do 19045 IFS=$as_save_IFS 19046 test -z "$as_dir" && as_dir=. 19047 for ac_exec_ext in '' $ac_executable_extensions; do 19048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19049 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 19050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19051 break 2 19052 fi 19053 done 19054 done 19055 IFS=$as_save_IFS 19056 19057 ;; 19058 esac 19059 fi 19060 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 19061 if test -n "$POTENTIAL_CC"; then 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 19063 $as_echo "$POTENTIAL_CC" >&6; } 19064 else 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19066 $as_echo "no" >&6; } 19067 fi 19068 19069 19070 test -n "$POTENTIAL_CC" && break 19071 done 19072 19073 CC=$POTENTIAL_CC 19074 fi 19075 19076 if test "x$CC" = x; then 19077 19078 # Print a helpful message on how to acquire the necessary build dependency. 19079 # devkit is the help tag: freetyp2, cups, pulse, alsa etc 19080 MISSING_DEPENDENCY=devkit 19081 PKGHANDLER_COMMAND= 19082 19083 case $PKGHANDLER in 19084 apt-get) 19085 apt_help $MISSING_DEPENDENCY ;; 19086 yum) 19087 yum_help $MISSING_DEPENDENCY ;; 19088 port) 19089 port_help $MISSING_DEPENDENCY ;; 19090 pkgutil) 19091 pkgutil_help $MISSING_DEPENDENCY ;; 19092 pkgadd) 19093 pkgadd_help $MISSING_DEPENDENCY ;; 19094 * ) 19095 break ;; 19096 esac 19097 19098 if test "x$PKGHANDLER_COMMAND" != x; then 19099 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 19100 fi 19101 19102 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 19103 fi 19104 19105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19106 19107 # First separate the path from the arguments. This will split at the first 19108 # space. 19109 complete="$CC" 19110 path="${complete%% *}" 19111 tmp="$complete EOL" 19112 arguments="${tmp#* }" 19113 19114 # Input might be given as Windows format, start by converting to 19115 # unix format. 19116 new_path=`$CYGPATH -u "$path"` 19117 19118 # Now try to locate executable using which 19119 new_path=`$WHICH "$new_path" 2> /dev/null` 19120 # bat and cmd files are not always considered executable in cygwin causing which 19121 # to not find them 19122 if test "x$new_path" = x \ 19123 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19124 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19125 new_path=`$CYGPATH -u "$path"` 19126 fi 19127 if test "x$new_path" = x; then 19128 # Oops. Which didn't find the executable. 19129 # The splitting of arguments from the executable at a space might have been incorrect, 19130 # since paths with space are more likely in Windows. Give it another try with the whole 19131 # argument. 19132 path="$complete" 19133 arguments="EOL" 19134 new_path=`$CYGPATH -u "$path"` 19135 new_path=`$WHICH "$new_path" 2> /dev/null` 19136 # bat and cmd files are not always considered executable in cygwin causing which 19137 # to not find them 19138 if test "x$new_path" = x \ 19139 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19140 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19141 new_path=`$CYGPATH -u "$path"` 19142 fi 19143 if test "x$new_path" = x; then 19144 # It's still not found. Now this is an unrecoverable error. 19145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 19146 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 19147 has_space=`$ECHO "$complete" | $GREP " "` 19148 if test "x$has_space" != x; then 19149 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19150 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19151 fi 19152 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 19153 fi 19154 fi 19155 19156 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19157 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19158 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19159 # "foo.exe" is OK but "foo" is an error. 19160 # 19161 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19162 # It is also a way to make sure we got the proper file name for the real test later on. 19163 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19164 if test "x$test_shortpath" = x; then 19165 # Short path failed, file does not exist as specified. 19166 # Try adding .exe or .cmd 19167 if test -f "${new_path}.exe"; then 19168 input_to_shortpath="${new_path}.exe" 19169 elif test -f "${new_path}.cmd"; then 19170 input_to_shortpath="${new_path}.cmd" 19171 else 19172 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 19173 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 19174 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19175 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19176 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 19177 fi 19178 else 19179 input_to_shortpath="$new_path" 19180 fi 19181 19182 # Call helper function which possibly converts this using DOS-style short mode. 19183 # If so, the updated path is stored in $new_path. 19184 new_path="$input_to_shortpath" 19185 19186 input_path="$input_to_shortpath" 19187 # Check if we need to convert this using DOS-style short mode. If the path 19188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19189 # take no chances and rewrite it. 19190 # Note: m4 eats our [], so we need to use [ and ] instead. 19191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19192 if test "x$has_forbidden_chars" != x; then 19193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19194 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19195 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19196 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19197 # Going to short mode and back again did indeed matter. Since short mode is 19198 # case insensitive, let's make it lowercase to improve readability. 19199 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19200 # Now convert it back to Unix-stile (cygpath) 19201 input_path=`$CYGPATH -u "$shortmode_path"` 19202 new_path="$input_path" 19203 fi 19204 fi 19205 19206 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19207 if test "x$test_cygdrive_prefix" = x; then 19208 # As a simple fix, exclude /usr/bin since it's not a real path. 19209 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19210 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19211 # a path prefixed by /cygdrive for fixpath to work. 19212 new_path="$CYGWIN_ROOT_PATH$input_path" 19213 fi 19214 fi 19215 19216 # remove trailing .exe if any 19217 new_path="${new_path/%.exe/}" 19218 19219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19220 19221 # First separate the path from the arguments. This will split at the first 19222 # space. 19223 complete="$CC" 19224 path="${complete%% *}" 19225 tmp="$complete EOL" 19226 arguments="${tmp#* }" 19227 19228 # Input might be given as Windows format, start by converting to 19229 # unix format. 19230 new_path="$path" 19231 19232 windows_path="$new_path" 19233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19234 unix_path=`$CYGPATH -u "$windows_path"` 19235 new_path="$unix_path" 19236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19238 new_path="$unix_path" 19239 fi 19240 19241 19242 # Now try to locate executable using which 19243 new_path=`$WHICH "$new_path" 2> /dev/null` 19244 19245 if test "x$new_path" = x; then 19246 # Oops. Which didn't find the executable. 19247 # The splitting of arguments from the executable at a space might have been incorrect, 19248 # since paths with space are more likely in Windows. Give it another try with the whole 19249 # argument. 19250 path="$complete" 19251 arguments="EOL" 19252 new_path="$path" 19253 19254 windows_path="$new_path" 19255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19256 unix_path=`$CYGPATH -u "$windows_path"` 19257 new_path="$unix_path" 19258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19260 new_path="$unix_path" 19261 fi 19262 19263 19264 new_path=`$WHICH "$new_path" 2> /dev/null` 19265 19266 if test "x$new_path" = x; then 19267 # It's still not found. Now this is an unrecoverable error. 19268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 19269 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 19270 has_space=`$ECHO "$complete" | $GREP " "` 19271 if test "x$has_space" != x; then 19272 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19274 fi 19275 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 19276 fi 19277 fi 19278 19279 # Now new_path has a complete unix path to the binary 19280 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19281 # Keep paths in /bin as-is, but remove trailing .exe if any 19282 new_path="${new_path/%.exe/}" 19283 # Do not save /bin paths to all_fixpath_prefixes! 19284 else 19285 # Not in mixed or Windows style, start by that. 19286 new_path=`cmd //c echo $new_path` 19287 19288 input_path="$new_path" 19289 # Check if we need to convert this using DOS-style short mode. If the path 19290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19291 # take no chances and rewrite it. 19292 # Note: m4 eats our [], so we need to use [ and ] instead. 19293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19294 if test "x$has_forbidden_chars" != x; then 19295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19297 fi 19298 19299 # Output is in $new_path 19300 19301 windows_path="$new_path" 19302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19303 unix_path=`$CYGPATH -u "$windows_path"` 19304 new_path="$unix_path" 19305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19307 new_path="$unix_path" 19308 fi 19309 19310 # remove trailing .exe if any 19311 new_path="${new_path/%.exe/}" 19312 19313 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19314 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19315 fi 19316 19317 else 19318 # We're on a posix platform. Hooray! :) 19319 # First separate the path from the arguments. This will split at the first 19320 # space. 19321 complete="$CC" 19322 path="${complete%% *}" 19323 tmp="$complete EOL" 19324 arguments="${tmp#* }" 19325 19326 # Cannot rely on the command "which" here since it doesn't always work. 19327 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19328 if test -z "$is_absolute_path"; then 19329 # Path to executable is not absolute. Find it. 19330 IFS_save="$IFS" 19331 IFS=: 19332 for p in $PATH; do 19333 if test -f "$p/$path" && test -x "$p/$path"; then 19334 new_path="$p/$path" 19335 break 19336 fi 19337 done 19338 IFS="$IFS_save" 19339 else 19340 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CC (as $path) failed, using $path directly." >&5 19341 $as_echo "$as_me: Resolving CC (as $path) failed, using $path directly." >&6;} 19342 new_path="$path" 19343 fi 19344 19345 if test "x$new_path" = x; then 19346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 19347 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 19348 has_space=`$ECHO "$complete" | $GREP " "` 19349 if test "x$has_space" != x; then 19350 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19351 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19352 fi 19353 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 19354 fi 19355 fi 19356 19357 # Now join together the path and the arguments once again 19358 if test "x$arguments" != xEOL; then 19359 new_complete="$new_path ${arguments% *}" 19360 else 19361 new_complete="$new_path" 19362 fi 19363 19364 if test "x$complete" != "x$new_complete"; then 19365 CC="$new_complete" 19366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 19367 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 19368 fi 19369 19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 19371 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 19372 TEST_COMPILER="$CC" 19373 19374 if test "x$OPENJDK_BUILD_OS" != xwindows; then 19375 # Follow a chain of symbolic links. Use readlink 19376 # where it exists, else fall back to horribly 19377 # complicated shell code. 19378 if test "x$READLINK_TESTED" != yes; then 19379 # On MacOSX there is a readlink tool with a different 19380 # purpose than the GNU readlink tool. Check the found readlink. 19381 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 19382 if test "x$ISGNU" = x; then 19383 # A readlink that we do not know how to use. 19384 # Are there other non-GNU readlinks out there? 19385 READLINK_TESTED=yes 19386 READLINK= 19387 fi 19388 fi 19389 19390 if test "x$READLINK" != x; then 19391 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 19392 else 19393 # Save the current directory for restoring afterwards 19394 STARTDIR=$PWD 19395 COUNTER=0 19396 sym_link_dir=`$DIRNAME $TEST_COMPILER` 19397 sym_link_file=`$BASENAME $TEST_COMPILER` 19398 cd $sym_link_dir 19399 # Use -P flag to resolve symlinks in directories. 19400 cd `$THEPWDCMD -P` 19401 sym_link_dir=`$THEPWDCMD -P` 19402 # Resolve file symlinks 19403 while test $COUNTER -lt 20; do 19404 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 19405 if test "x$ISLINK" == x; then 19406 # This is not a symbolic link! We are done! 19407 break 19408 fi 19409 # Again resolve directory symlinks since the target of the just found 19410 # link could be in a different directory 19411 cd `$DIRNAME $ISLINK` 19412 sym_link_dir=`$THEPWDCMD -P` 19413 sym_link_file=`$BASENAME $ISLINK` 19414 let COUNTER=COUNTER+1 19415 done 19416 cd $STARTDIR 19417 TEST_COMPILER=$sym_link_dir/$sym_link_file 19418 fi 19419 fi 19420 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 19422 $as_echo "$TEST_COMPILER" >&6; } 19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 19424 $as_echo_n "checking if CC is disguised ccache... " >&6; } 19425 19426 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 19427 if test "x$COMPILER_BASENAME" = "xccache"; then 19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 19429 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 19430 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 19431 # We want to control ccache invocation ourselves, so ignore this cc and try 19432 # searching again. 19433 19434 # Remove the path to the fake ccache cc from the PATH 19435 RETRY_COMPILER_SAVED_PATH="$PATH" 19436 COMPILER_DIRNAME=`$DIRNAME $CC` 19437 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 19438 19439 # Try again looking for our compiler 19440 if test -n "$ac_tool_prefix"; then 19441 for ac_prog in $COMPILER_CHECK_LIST 19442 do 19443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19446 $as_echo_n "checking for $ac_word... " >&6; } 19447 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 19448 $as_echo_n "(cached) " >&6 19449 else 19450 if test -n "$PROPER_COMPILER_CC"; then 19451 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 19452 else 19453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19454 for as_dir in $PATH 19455 do 19456 IFS=$as_save_IFS 19457 test -z "$as_dir" && as_dir=. 19458 for ac_exec_ext in '' $ac_executable_extensions; do 19459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19460 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 19461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19462 break 2 19463 fi 19464 done 19465 done 19466 IFS=$as_save_IFS 19467 19468 fi 19469 fi 19470 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 19471 if test -n "$PROPER_COMPILER_CC"; then 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 19473 $as_echo "$PROPER_COMPILER_CC" >&6; } 19474 else 19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19476 $as_echo "no" >&6; } 19477 fi 19478 19479 19480 test -n "$PROPER_COMPILER_CC" && break 19481 done 19482 fi 19483 if test -z "$PROPER_COMPILER_CC"; then 19484 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 19485 for ac_prog in $COMPILER_CHECK_LIST 19486 do 19487 # Extract the first word of "$ac_prog", so it can be a program name with args. 19488 set dummy $ac_prog; ac_word=$2 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19490 $as_echo_n "checking for $ac_word... " >&6; } 19491 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 19492 $as_echo_n "(cached) " >&6 19493 else 19494 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 19495 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 19496 else 19497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19498 for as_dir in $PATH 19499 do 19500 IFS=$as_save_IFS 19501 test -z "$as_dir" && as_dir=. 19502 for ac_exec_ext in '' $ac_executable_extensions; do 19503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19504 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 19505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19506 break 2 19507 fi 19508 done 19509 done 19510 IFS=$as_save_IFS 19511 19512 fi 19513 fi 19514 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 19515 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 19517 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 19518 else 19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19520 $as_echo "no" >&6; } 19521 fi 19522 19523 19524 test -n "$ac_ct_PROPER_COMPILER_CC" && break 19525 done 19526 19527 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 19528 PROPER_COMPILER_CC="" 19529 else 19530 case $cross_compiling:$ac_tool_warned in 19531 yes:) 19532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19534 ac_tool_warned=yes ;; 19535 esac 19536 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 19537 fi 19538 fi 19539 19540 19541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19542 19543 # First separate the path from the arguments. This will split at the first 19544 # space. 19545 complete="$PROPER_COMPILER_CC" 19546 path="${complete%% *}" 19547 tmp="$complete EOL" 19548 arguments="${tmp#* }" 19549 19550 # Input might be given as Windows format, start by converting to 19551 # unix format. 19552 new_path=`$CYGPATH -u "$path"` 19553 19554 # Now try to locate executable using which 19555 new_path=`$WHICH "$new_path" 2> /dev/null` 19556 # bat and cmd files are not always considered executable in cygwin causing which 19557 # to not find them 19558 if test "x$new_path" = x \ 19559 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19560 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19561 new_path=`$CYGPATH -u "$path"` 19562 fi 19563 if test "x$new_path" = x; then 19564 # Oops. Which didn't find the executable. 19565 # The splitting of arguments from the executable at a space might have been incorrect, 19566 # since paths with space are more likely in Windows. Give it another try with the whole 19567 # argument. 19568 path="$complete" 19569 arguments="EOL" 19570 new_path=`$CYGPATH -u "$path"` 19571 new_path=`$WHICH "$new_path" 2> /dev/null` 19572 # bat and cmd files are not always considered executable in cygwin causing which 19573 # to not find them 19574 if test "x$new_path" = x \ 19575 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19576 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19577 new_path=`$CYGPATH -u "$path"` 19578 fi 19579 if test "x$new_path" = x; then 19580 # It's still not found. Now this is an unrecoverable error. 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 19582 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 19583 has_space=`$ECHO "$complete" | $GREP " "` 19584 if test "x$has_space" != x; then 19585 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19586 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19587 fi 19588 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19589 fi 19590 fi 19591 19592 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19593 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19594 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19595 # "foo.exe" is OK but "foo" is an error. 19596 # 19597 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19598 # It is also a way to make sure we got the proper file name for the real test later on. 19599 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19600 if test "x$test_shortpath" = x; then 19601 # Short path failed, file does not exist as specified. 19602 # Try adding .exe or .cmd 19603 if test -f "${new_path}.exe"; then 19604 input_to_shortpath="${new_path}.exe" 19605 elif test -f "${new_path}.cmd"; then 19606 input_to_shortpath="${new_path}.cmd" 19607 else 19608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 19609 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 19610 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19611 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19612 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19613 fi 19614 else 19615 input_to_shortpath="$new_path" 19616 fi 19617 19618 # Call helper function which possibly converts this using DOS-style short mode. 19619 # If so, the updated path is stored in $new_path. 19620 new_path="$input_to_shortpath" 19621 19622 input_path="$input_to_shortpath" 19623 # Check if we need to convert this using DOS-style short mode. If the path 19624 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19625 # take no chances and rewrite it. 19626 # Note: m4 eats our [], so we need to use [ and ] instead. 19627 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19628 if test "x$has_forbidden_chars" != x; then 19629 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19630 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19631 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19632 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19633 # Going to short mode and back again did indeed matter. Since short mode is 19634 # case insensitive, let's make it lowercase to improve readability. 19635 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19636 # Now convert it back to Unix-stile (cygpath) 19637 input_path=`$CYGPATH -u "$shortmode_path"` 19638 new_path="$input_path" 19639 fi 19640 fi 19641 19642 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19643 if test "x$test_cygdrive_prefix" = x; then 19644 # As a simple fix, exclude /usr/bin since it's not a real path. 19645 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19646 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19647 # a path prefixed by /cygdrive for fixpath to work. 19648 new_path="$CYGWIN_ROOT_PATH$input_path" 19649 fi 19650 fi 19651 19652 # remove trailing .exe if any 19653 new_path="${new_path/%.exe/}" 19654 19655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19656 19657 # First separate the path from the arguments. This will split at the first 19658 # space. 19659 complete="$PROPER_COMPILER_CC" 19660 path="${complete%% *}" 19661 tmp="$complete EOL" 19662 arguments="${tmp#* }" 19663 19664 # Input might be given as Windows format, start by converting to 19665 # unix format. 19666 new_path="$path" 19667 19668 windows_path="$new_path" 19669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19670 unix_path=`$CYGPATH -u "$windows_path"` 19671 new_path="$unix_path" 19672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19674 new_path="$unix_path" 19675 fi 19676 19677 19678 # Now try to locate executable using which 19679 new_path=`$WHICH "$new_path" 2> /dev/null` 19680 19681 if test "x$new_path" = x; then 19682 # Oops. Which didn't find the executable. 19683 # The splitting of arguments from the executable at a space might have been incorrect, 19684 # since paths with space are more likely in Windows. Give it another try with the whole 19685 # argument. 19686 path="$complete" 19687 arguments="EOL" 19688 new_path="$path" 19689 19690 windows_path="$new_path" 19691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19692 unix_path=`$CYGPATH -u "$windows_path"` 19693 new_path="$unix_path" 19694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19696 new_path="$unix_path" 19697 fi 19698 19699 19700 new_path=`$WHICH "$new_path" 2> /dev/null` 19701 19702 if test "x$new_path" = x; then 19703 # It's still not found. Now this is an unrecoverable error. 19704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 19705 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 19706 has_space=`$ECHO "$complete" | $GREP " "` 19707 if test "x$has_space" != x; then 19708 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19710 fi 19711 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19712 fi 19713 fi 19714 19715 # Now new_path has a complete unix path to the binary 19716 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19717 # Keep paths in /bin as-is, but remove trailing .exe if any 19718 new_path="${new_path/%.exe/}" 19719 # Do not save /bin paths to all_fixpath_prefixes! 19720 else 19721 # Not in mixed or Windows style, start by that. 19722 new_path=`cmd //c echo $new_path` 19723 19724 input_path="$new_path" 19725 # Check if we need to convert this using DOS-style short mode. If the path 19726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19727 # take no chances and rewrite it. 19728 # Note: m4 eats our [], so we need to use [ and ] instead. 19729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19730 if test "x$has_forbidden_chars" != x; then 19731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19733 fi 19734 19735 # Output is in $new_path 19736 19737 windows_path="$new_path" 19738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19739 unix_path=`$CYGPATH -u "$windows_path"` 19740 new_path="$unix_path" 19741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19743 new_path="$unix_path" 19744 fi 19745 19746 # remove trailing .exe if any 19747 new_path="${new_path/%.exe/}" 19748 19749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19751 fi 19752 19753 else 19754 # We're on a posix platform. Hooray! :) 19755 # First separate the path from the arguments. This will split at the first 19756 # space. 19757 complete="$PROPER_COMPILER_CC" 19758 path="${complete%% *}" 19759 tmp="$complete EOL" 19760 arguments="${tmp#* }" 19761 19762 # Cannot rely on the command "which" here since it doesn't always work. 19763 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19764 if test -z "$is_absolute_path"; then 19765 # Path to executable is not absolute. Find it. 19766 IFS_save="$IFS" 19767 IFS=: 19768 for p in $PATH; do 19769 if test -f "$p/$path" && test -x "$p/$path"; then 19770 new_path="$p/$path" 19771 break 19772 fi 19773 done 19774 IFS="$IFS_save" 19775 else 19776 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&5 19777 $as_echo "$as_me: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&6;} 19778 new_path="$path" 19779 fi 19780 19781 if test "x$new_path" = x; then 19782 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 19783 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 19784 has_space=`$ECHO "$complete" | $GREP " "` 19785 if test "x$has_space" != x; then 19786 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19787 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19788 fi 19789 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 19790 fi 19791 fi 19792 19793 # Now join together the path and the arguments once again 19794 if test "x$arguments" != xEOL; then 19795 new_complete="$new_path ${arguments% *}" 19796 else 19797 new_complete="$new_path" 19798 fi 19799 19800 if test "x$complete" != "x$new_complete"; then 19801 PROPER_COMPILER_CC="$new_complete" 19802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 19803 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 19804 fi 19805 19806 PATH="$RETRY_COMPILER_SAVED_PATH" 19807 19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 19809 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 19810 19811 if test "x$OPENJDK_BUILD_OS" != xwindows; then 19812 # Follow a chain of symbolic links. Use readlink 19813 # where it exists, else fall back to horribly 19814 # complicated shell code. 19815 if test "x$READLINK_TESTED" != yes; then 19816 # On MacOSX there is a readlink tool with a different 19817 # purpose than the GNU readlink tool. Check the found readlink. 19818 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 19819 if test "x$ISGNU" = x; then 19820 # A readlink that we do not know how to use. 19821 # Are there other non-GNU readlinks out there? 19822 READLINK_TESTED=yes 19823 READLINK= 19824 fi 19825 fi 19826 19827 if test "x$READLINK" != x; then 19828 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 19829 else 19830 # Save the current directory for restoring afterwards 19831 STARTDIR=$PWD 19832 COUNTER=0 19833 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 19834 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 19835 cd $sym_link_dir 19836 # Use -P flag to resolve symlinks in directories. 19837 cd `$THEPWDCMD -P` 19838 sym_link_dir=`$THEPWDCMD -P` 19839 # Resolve file symlinks 19840 while test $COUNTER -lt 20; do 19841 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 19842 if test "x$ISLINK" == x; then 19843 # This is not a symbolic link! We are done! 19844 break 19845 fi 19846 # Again resolve directory symlinks since the target of the just found 19847 # link could be in a different directory 19848 cd `$DIRNAME $ISLINK` 19849 sym_link_dir=`$THEPWDCMD -P` 19850 sym_link_file=`$BASENAME $ISLINK` 19851 let COUNTER=COUNTER+1 19852 done 19853 cd $STARTDIR 19854 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 19855 fi 19856 fi 19857 19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 19859 $as_echo "$PROPER_COMPILER_CC" >&6; } 19860 CC="$PROPER_COMPILER_CC" 19861 else 19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 19863 $as_echo "no, keeping CC" >&6; } 19864 CC="$TEST_COMPILER" 19865 fi 19866 19867 COMPILER=$CC 19868 COMPILER_NAME=$COMPILER_NAME 19869 19870 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 19871 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work 19872 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1` 19873 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 19874 if test $? -ne 0; then 19875 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 19876 19877 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5 19878 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;} 19879 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5 19880 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;} 19881 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5 19882 else 19883 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"` 19884 COMPILER_VENDOR="Sun Studio" 19885 fi 19886 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 19887 # First line typically looks something like: 19888 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 19889 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1` 19890 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"` 19891 COMPILER_VENDOR="Microsoft CL.EXE" 19892 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"` 19893 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 19894 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 19895 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 19896 fi 19897 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 19898 if test "x$COMPILER_CPU_TEST" != "xx64"; then 19899 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 19900 fi 19901 fi 19902 else 19903 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 19904 # Check that this is likely to be GCC. 19905 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null 19906 if test $? -ne 0; then 19907 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 19908 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} 19909 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 19910 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} 19911 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 19912 fi 19913 19914 # First line typically looks something like: 19915 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 19916 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` 19917 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` 19918 fi 19919 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) 19920 CC_VERSION="$COMPILER_VERSION" 19921 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) 19922 CC_VENDOR="$COMPILER_VENDOR" 19923 19924 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5 19925 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;} 19926 19927 19928 # Now that we have resolved CC ourself, let autoconf have its go at it 19929 ac_ext=c 19930 ac_cpp='$CPP $CPPFLAGS' 19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19934 if test -n "$ac_tool_prefix"; then 19935 for ac_prog in $CC 19936 do 19937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19940 $as_echo_n "checking for $ac_word... " >&6; } 19941 if ${ac_cv_prog_CC+:} false; then : 19942 $as_echo_n "(cached) " >&6 19943 else 19944 if test -n "$CC"; then 19945 ac_cv_prog_CC="$CC" # Let the user override the test. 19946 else 19947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19948 for as_dir in $PATH 19949 do 19950 IFS=$as_save_IFS 19951 test -z "$as_dir" && as_dir=. 19952 for ac_exec_ext in '' $ac_executable_extensions; do 19953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19956 break 2 19957 fi 19958 done 19959 done 19960 IFS=$as_save_IFS 19961 19962 fi 19963 fi 19964 CC=$ac_cv_prog_CC 19965 if test -n "$CC"; then 19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 19967 $as_echo "$CC" >&6; } 19968 else 19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19970 $as_echo "no" >&6; } 19971 fi 19972 19973 19974 test -n "$CC" && break 19975 done 19976 fi 19977 if test -z "$CC"; then 19978 ac_ct_CC=$CC 19979 for ac_prog in $CC 19980 do 19981 # Extract the first word of "$ac_prog", so it can be a program name with args. 19982 set dummy $ac_prog; ac_word=$2 19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19984 $as_echo_n "checking for $ac_word... " >&6; } 19985 if ${ac_cv_prog_ac_ct_CC+:} false; then : 19986 $as_echo_n "(cached) " >&6 19987 else 19988 if test -n "$ac_ct_CC"; then 19989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19990 else 19991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19992 for as_dir in $PATH 19993 do 19994 IFS=$as_save_IFS 19995 test -z "$as_dir" && as_dir=. 19996 for ac_exec_ext in '' $ac_executable_extensions; do 19997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19998 ac_cv_prog_ac_ct_CC="$ac_prog" 19999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20000 break 2 20001 fi 20002 done 20003 done 20004 IFS=$as_save_IFS 20005 20006 fi 20007 fi 20008 ac_ct_CC=$ac_cv_prog_ac_ct_CC 20009 if test -n "$ac_ct_CC"; then 20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 20011 $as_echo "$ac_ct_CC" >&6; } 20012 else 20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20014 $as_echo "no" >&6; } 20015 fi 20016 20017 20018 test -n "$ac_ct_CC" && break 20019 done 20020 20021 if test "x$ac_ct_CC" = x; then 20022 CC="" 20023 else 20024 case $cross_compiling:$ac_tool_warned in 20025 yes:) 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20028 ac_tool_warned=yes ;; 20029 esac 20030 CC=$ac_ct_CC 20031 fi 20032 fi 20033 20034 20035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20037 as_fn_error $? "no acceptable C compiler found in \$PATH 20038 See \`config.log' for more details" "$LINENO" 5; } 20039 20040 # Provide some information about the compiler. 20041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 20042 set X $ac_compile 20043 ac_compiler=$2 20044 for ac_option in --version -v -V -qversion; do 20045 { { ac_try="$ac_compiler $ac_option >&5" 20046 case "(($ac_try" in 20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20048 *) ac_try_echo=$ac_try;; 20049 esac 20050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20051 $as_echo "$ac_try_echo"; } >&5 20052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 20053 ac_status=$? 20054 if test -s conftest.err; then 20055 sed '10a\ 20056 ... rest of stderr output deleted ... 20057 10q' conftest.err >conftest.er1 20058 cat conftest.er1 >&5 20059 fi 20060 rm -f conftest.er1 conftest.err 20061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20062 test $ac_status = 0; } 20063 done 20064 20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20066 /* end confdefs.h. */ 20067 20068 int 20069 main () 20070 { 20071 20072 ; 20073 return 0; 20074 } 20075 _ACEOF 20076 ac_clean_files_save=$ac_clean_files 20077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 20078 # Try to create an executable without -o first, disregard a.out. 20079 # It will help us diagnose broken compilers, and finding out an intuition 20080 # of exeext. 20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 20082 $as_echo_n "checking whether the C compiler works... " >&6; } 20083 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 20084 20085 # The possible output files: 20086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 20087 20088 ac_rmfiles= 20089 for ac_file in $ac_files 20090 do 20091 case $ac_file in 20092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 20093 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 20094 esac 20095 done 20096 rm -f $ac_rmfiles 20097 20098 if { { ac_try="$ac_link_default" 20099 case "(($ac_try" in 20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20101 *) ac_try_echo=$ac_try;; 20102 esac 20103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20104 $as_echo "$ac_try_echo"; } >&5 20105 (eval "$ac_link_default") 2>&5 20106 ac_status=$? 20107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20108 test $ac_status = 0; }; then : 20109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 20110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 20111 # in a Makefile. We should not override ac_cv_exeext if it was cached, 20112 # so that the user can short-circuit this test for compilers unknown to 20113 # Autoconf. 20114 for ac_file in $ac_files '' 20115 do 20116 test -f "$ac_file" || continue 20117 case $ac_file in 20118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 20119 ;; 20120 [ab].out ) 20121 # We found the default executable, but exeext='' is most 20122 # certainly right. 20123 break;; 20124 *.* ) 20125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 20126 then :; else 20127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 20128 fi 20129 # We set ac_cv_exeext here because the later test for it is not 20130 # safe: cross compilers may not add the suffix if given an `-o' 20131 # argument, so we may need to know it at that point already. 20132 # Even if this section looks crufty: it has the advantage of 20133 # actually working. 20134 break;; 20135 * ) 20136 break;; 20137 esac 20138 done 20139 test "$ac_cv_exeext" = no && ac_cv_exeext= 20140 20141 else 20142 ac_file='' 20143 fi 20144 if test -z "$ac_file"; then : 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20146 $as_echo "no" >&6; } 20147 $as_echo "$as_me: failed program was:" >&5 20148 sed 's/^/| /' conftest.$ac_ext >&5 20149 20150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20152 as_fn_error 77 "C compiler cannot create executables 20153 See \`config.log' for more details" "$LINENO" 5; } 20154 else 20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20156 $as_echo "yes" >&6; } 20157 fi 20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 20159 $as_echo_n "checking for C compiler default output file name... " >&6; } 20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 20161 $as_echo "$ac_file" >&6; } 20162 ac_exeext=$ac_cv_exeext 20163 20164 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 20165 ac_clean_files=$ac_clean_files_save 20166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 20167 $as_echo_n "checking for suffix of executables... " >&6; } 20168 if { { ac_try="$ac_link" 20169 case "(($ac_try" in 20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20171 *) ac_try_echo=$ac_try;; 20172 esac 20173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20174 $as_echo "$ac_try_echo"; } >&5 20175 (eval "$ac_link") 2>&5 20176 ac_status=$? 20177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20178 test $ac_status = 0; }; then : 20179 # If both `conftest.exe' and `conftest' are `present' (well, observable) 20180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 20181 # work properly (i.e., refer to `conftest.exe'), while it won't with 20182 # `rm'. 20183 for ac_file in conftest.exe conftest conftest.*; do 20184 test -f "$ac_file" || continue 20185 case $ac_file in 20186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 20187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 20188 break;; 20189 * ) break;; 20190 esac 20191 done 20192 else 20193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20195 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 20196 See \`config.log' for more details" "$LINENO" 5; } 20197 fi 20198 rm -f conftest conftest$ac_cv_exeext 20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 20200 $as_echo "$ac_cv_exeext" >&6; } 20201 20202 rm -f conftest.$ac_ext 20203 EXEEXT=$ac_cv_exeext 20204 ac_exeext=$EXEEXT 20205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20206 /* end confdefs.h. */ 20207 #include <stdio.h> 20208 int 20209 main () 20210 { 20211 FILE *f = fopen ("conftest.out", "w"); 20212 return ferror (f) || fclose (f) != 0; 20213 20214 ; 20215 return 0; 20216 } 20217 _ACEOF 20218 ac_clean_files="$ac_clean_files conftest.out" 20219 # Check that the compiler produces executables we can run. If not, either 20220 # the compiler is broken, or we cross compile. 20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 20222 $as_echo_n "checking whether we are cross compiling... " >&6; } 20223 if test "$cross_compiling" != yes; then 20224 { { ac_try="$ac_link" 20225 case "(($ac_try" in 20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20227 *) ac_try_echo=$ac_try;; 20228 esac 20229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20230 $as_echo "$ac_try_echo"; } >&5 20231 (eval "$ac_link") 2>&5 20232 ac_status=$? 20233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20234 test $ac_status = 0; } 20235 if { ac_try='./conftest$ac_cv_exeext' 20236 { { case "(($ac_try" in 20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20238 *) ac_try_echo=$ac_try;; 20239 esac 20240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20241 $as_echo "$ac_try_echo"; } >&5 20242 (eval "$ac_try") 2>&5 20243 ac_status=$? 20244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20245 test $ac_status = 0; }; }; then 20246 cross_compiling=no 20247 else 20248 if test "$cross_compiling" = maybe; then 20249 cross_compiling=yes 20250 else 20251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20253 as_fn_error $? "cannot run C compiled programs. 20254 If you meant to cross compile, use \`--host'. 20255 See \`config.log' for more details" "$LINENO" 5; } 20256 fi 20257 fi 20258 fi 20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 20260 $as_echo "$cross_compiling" >&6; } 20261 20262 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 20263 ac_clean_files=$ac_clean_files_save 20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 20265 $as_echo_n "checking for suffix of object files... " >&6; } 20266 if ${ac_cv_objext+:} false; then : 20267 $as_echo_n "(cached) " >&6 20268 else 20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20270 /* end confdefs.h. */ 20271 20272 int 20273 main () 20274 { 20275 20276 ; 20277 return 0; 20278 } 20279 _ACEOF 20280 rm -f conftest.o conftest.obj 20281 if { { ac_try="$ac_compile" 20282 case "(($ac_try" in 20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20284 *) ac_try_echo=$ac_try;; 20285 esac 20286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20287 $as_echo "$ac_try_echo"; } >&5 20288 (eval "$ac_compile") 2>&5 20289 ac_status=$? 20290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20291 test $ac_status = 0; }; then : 20292 for ac_file in conftest.o conftest.obj conftest.*; do 20293 test -f "$ac_file" || continue; 20294 case $ac_file in 20295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 20296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 20297 break;; 20298 esac 20299 done 20300 else 20301 $as_echo "$as_me: failed program was:" >&5 20302 sed 's/^/| /' conftest.$ac_ext >&5 20303 20304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20306 as_fn_error $? "cannot compute suffix of object files: cannot compile 20307 See \`config.log' for more details" "$LINENO" 5; } 20308 fi 20309 rm -f conftest.$ac_cv_objext conftest.$ac_ext 20310 fi 20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 20312 $as_echo "$ac_cv_objext" >&6; } 20313 OBJEXT=$ac_cv_objext 20314 ac_objext=$OBJEXT 20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 20316 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20317 if ${ac_cv_c_compiler_gnu+:} false; then : 20318 $as_echo_n "(cached) " >&6 20319 else 20320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20321 /* end confdefs.h. */ 20322 20323 int 20324 main () 20325 { 20326 #ifndef __GNUC__ 20327 choke me 20328 #endif 20329 20330 ; 20331 return 0; 20332 } 20333 _ACEOF 20334 if ac_fn_c_try_compile "$LINENO"; then : 20335 ac_compiler_gnu=yes 20336 else 20337 ac_compiler_gnu=no 20338 fi 20339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20340 ac_cv_c_compiler_gnu=$ac_compiler_gnu 20341 20342 fi 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 20344 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 20345 if test $ac_compiler_gnu = yes; then 20346 GCC=yes 20347 else 20348 GCC= 20349 fi 20350 ac_test_CFLAGS=${CFLAGS+set} 20351 ac_save_CFLAGS=$CFLAGS 20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 20353 $as_echo_n "checking whether $CC accepts -g... " >&6; } 20354 if ${ac_cv_prog_cc_g+:} false; then : 20355 $as_echo_n "(cached) " >&6 20356 else 20357 ac_save_c_werror_flag=$ac_c_werror_flag 20358 ac_c_werror_flag=yes 20359 ac_cv_prog_cc_g=no 20360 CFLAGS="-g" 20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20362 /* end confdefs.h. */ 20363 20364 int 20365 main () 20366 { 20367 20368 ; 20369 return 0; 20370 } 20371 _ACEOF 20372 if ac_fn_c_try_compile "$LINENO"; then : 20373 ac_cv_prog_cc_g=yes 20374 else 20375 CFLAGS="" 20376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20377 /* end confdefs.h. */ 20378 20379 int 20380 main () 20381 { 20382 20383 ; 20384 return 0; 20385 } 20386 _ACEOF 20387 if ac_fn_c_try_compile "$LINENO"; then : 20388 20389 else 20390 ac_c_werror_flag=$ac_save_c_werror_flag 20391 CFLAGS="-g" 20392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20393 /* end confdefs.h. */ 20394 20395 int 20396 main () 20397 { 20398 20399 ; 20400 return 0; 20401 } 20402 _ACEOF 20403 if ac_fn_c_try_compile "$LINENO"; then : 20404 ac_cv_prog_cc_g=yes 20405 fi 20406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20407 fi 20408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20409 fi 20410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20411 ac_c_werror_flag=$ac_save_c_werror_flag 20412 fi 20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 20414 $as_echo "$ac_cv_prog_cc_g" >&6; } 20415 if test "$ac_test_CFLAGS" = set; then 20416 CFLAGS=$ac_save_CFLAGS 20417 elif test $ac_cv_prog_cc_g = yes; then 20418 if test "$GCC" = yes; then 20419 CFLAGS="-g -O2" 20420 else 20421 CFLAGS="-g" 20422 fi 20423 else 20424 if test "$GCC" = yes; then 20425 CFLAGS="-O2" 20426 else 20427 CFLAGS= 20428 fi 20429 fi 20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 20431 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20432 if ${ac_cv_prog_cc_c89+:} false; then : 20433 $as_echo_n "(cached) " >&6 20434 else 20435 ac_cv_prog_cc_c89=no 20436 ac_save_CC=$CC 20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20438 /* end confdefs.h. */ 20439 #include <stdarg.h> 20440 #include <stdio.h> 20441 #include <sys/types.h> 20442 #include <sys/stat.h> 20443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20444 struct buf { int x; }; 20445 FILE * (*rcsopen) (struct buf *, struct stat *, int); 20446 static char *e (p, i) 20447 char **p; 20448 int i; 20449 { 20450 return p[i]; 20451 } 20452 static char *f (char * (*g) (char **, int), char **p, ...) 20453 { 20454 char *s; 20455 va_list v; 20456 va_start (v,p); 20457 s = g (p, va_arg (v,int)); 20458 va_end (v); 20459 return s; 20460 } 20461 20462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20463 function prototypes and stuff, but not '\xHH' hex character constants. 20464 These don't provoke an error unfortunately, instead are silently treated 20465 as 'x'. The following induces an error, until -std is added to get 20466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20467 array size at least. It's necessary to write '\x00'==0 to get something 20468 that's true only with -std. */ 20469 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20470 20471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20472 inside strings and character constants. */ 20473 #define FOO(x) 'x' 20474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20475 20476 int test (int i, double x); 20477 struct s1 {int (*f) (int a);}; 20478 struct s2 {int (*f) (double a);}; 20479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20480 int argc; 20481 char **argv; 20482 int 20483 main () 20484 { 20485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20486 ; 20487 return 0; 20488 } 20489 _ACEOF 20490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20492 do 20493 CC="$ac_save_CC $ac_arg" 20494 if ac_fn_c_try_compile "$LINENO"; then : 20495 ac_cv_prog_cc_c89=$ac_arg 20496 fi 20497 rm -f core conftest.err conftest.$ac_objext 20498 test "x$ac_cv_prog_cc_c89" != "xno" && break 20499 done 20500 rm -f conftest.$ac_ext 20501 CC=$ac_save_CC 20502 20503 fi 20504 # AC_CACHE_VAL 20505 case "x$ac_cv_prog_cc_c89" in 20506 x) 20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 20508 $as_echo "none needed" >&6; } ;; 20509 xno) 20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 20511 $as_echo "unsupported" >&6; } ;; 20512 *) 20513 CC="$CC $ac_cv_prog_cc_c89" 20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 20515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20516 esac 20517 if test "x$ac_cv_prog_cc_c89" != xno; then : 20518 20519 fi 20520 20521 ac_ext=cpp 20522 ac_cpp='$CXXCPP $CPPFLAGS' 20523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20526 20527 20528 ### Locate C++ compiler (CXX) 20529 20530 if test "x$CXX" != x; then 20531 COMPILER_CHECK_LIST="$CXX" 20532 elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then 20533 COMPILER_CHECK_LIST="cl" 20534 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 20535 COMPILER_CHECK_LIST="CC g++" 20536 else 20537 COMPILER_CHECK_LIST="g++ CC" 20538 fi 20539 20540 20541 COMPILER_NAME=C++ 20542 20543 CXX= 20544 # If TOOLS_DIR is set, check for all compiler names in there first 20545 # before checking the rest of the PATH. 20546 if test -n "$TOOLS_DIR"; then 20547 PATH_save="$PATH" 20548 PATH="$TOOLS_DIR" 20549 for ac_prog in $COMPILER_CHECK_LIST 20550 do 20551 # Extract the first word of "$ac_prog", so it can be a program name with args. 20552 set dummy $ac_prog; ac_word=$2 20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20554 $as_echo_n "checking for $ac_word... " >&6; } 20555 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then : 20556 $as_echo_n "(cached) " >&6 20557 else 20558 case $TOOLS_DIR_CXX in 20559 [\\/]* | ?:[\\/]*) 20560 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path. 20561 ;; 20562 *) 20563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20564 for as_dir in $PATH 20565 do 20566 IFS=$as_save_IFS 20567 test -z "$as_dir" && as_dir=. 20568 for ac_exec_ext in '' $ac_executable_extensions; do 20569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20570 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext" 20571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20572 break 2 20573 fi 20574 done 20575 done 20576 IFS=$as_save_IFS 20577 20578 ;; 20579 esac 20580 fi 20581 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX 20582 if test -n "$TOOLS_DIR_CXX"; then 20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5 20584 $as_echo "$TOOLS_DIR_CXX" >&6; } 20585 else 20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20587 $as_echo "no" >&6; } 20588 fi 20589 20590 20591 test -n "$TOOLS_DIR_CXX" && break 20592 done 20593 20594 CXX=$TOOLS_DIR_CXX 20595 PATH="$PATH_save" 20596 fi 20597 20598 # AC_PATH_PROGS can't be run multiple times with the same variable, 20599 # so create a new name for this run. 20600 if test "x$CXX" = x; then 20601 for ac_prog in $COMPILER_CHECK_LIST 20602 do 20603 # Extract the first word of "$ac_prog", so it can be a program name with args. 20604 set dummy $ac_prog; ac_word=$2 20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20606 $as_echo_n "checking for $ac_word... " >&6; } 20607 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 20608 $as_echo_n "(cached) " >&6 20609 else 20610 case $POTENTIAL_CXX in 20611 [\\/]* | ?:[\\/]*) 20612 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 20613 ;; 20614 *) 20615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20616 for as_dir in $PATH 20617 do 20618 IFS=$as_save_IFS 20619 test -z "$as_dir" && as_dir=. 20620 for ac_exec_ext in '' $ac_executable_extensions; do 20621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20622 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 20623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20624 break 2 20625 fi 20626 done 20627 done 20628 IFS=$as_save_IFS 20629 20630 ;; 20631 esac 20632 fi 20633 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 20634 if test -n "$POTENTIAL_CXX"; then 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 20636 $as_echo "$POTENTIAL_CXX" >&6; } 20637 else 20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20639 $as_echo "no" >&6; } 20640 fi 20641 20642 20643 test -n "$POTENTIAL_CXX" && break 20644 done 20645 20646 CXX=$POTENTIAL_CXX 20647 fi 20648 20649 if test "x$CXX" = x; then 20650 20651 # Print a helpful message on how to acquire the necessary build dependency. 20652 # devkit is the help tag: freetyp2, cups, pulse, alsa etc 20653 MISSING_DEPENDENCY=devkit 20654 PKGHANDLER_COMMAND= 20655 20656 case $PKGHANDLER in 20657 apt-get) 20658 apt_help $MISSING_DEPENDENCY ;; 20659 yum) 20660 yum_help $MISSING_DEPENDENCY ;; 20661 port) 20662 port_help $MISSING_DEPENDENCY ;; 20663 pkgutil) 20664 pkgutil_help $MISSING_DEPENDENCY ;; 20665 pkgadd) 20666 pkgadd_help $MISSING_DEPENDENCY ;; 20667 * ) 20668 break ;; 20669 esac 20670 20671 if test "x$PKGHANDLER_COMMAND" != x; then 20672 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 20673 fi 20674 20675 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 20676 fi 20677 20678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20679 20680 # First separate the path from the arguments. This will split at the first 20681 # space. 20682 complete="$CXX" 20683 path="${complete%% *}" 20684 tmp="$complete EOL" 20685 arguments="${tmp#* }" 20686 20687 # Input might be given as Windows format, start by converting to 20688 # unix format. 20689 new_path=`$CYGPATH -u "$path"` 20690 20691 # Now try to locate executable using which 20692 new_path=`$WHICH "$new_path" 2> /dev/null` 20693 # bat and cmd files are not always considered executable in cygwin causing which 20694 # to not find them 20695 if test "x$new_path" = x \ 20696 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20697 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20698 new_path=`$CYGPATH -u "$path"` 20699 fi 20700 if test "x$new_path" = x; then 20701 # Oops. Which didn't find the executable. 20702 # The splitting of arguments from the executable at a space might have been incorrect, 20703 # since paths with space are more likely in Windows. Give it another try with the whole 20704 # argument. 20705 path="$complete" 20706 arguments="EOL" 20707 new_path=`$CYGPATH -u "$path"` 20708 new_path=`$WHICH "$new_path" 2> /dev/null` 20709 # bat and cmd files are not always considered executable in cygwin causing which 20710 # to not find them 20711 if test "x$new_path" = x \ 20712 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20713 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20714 new_path=`$CYGPATH -u "$path"` 20715 fi 20716 if test "x$new_path" = x; then 20717 # It's still not found. Now this is an unrecoverable error. 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 20719 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 20720 has_space=`$ECHO "$complete" | $GREP " "` 20721 if test "x$has_space" != x; then 20722 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20723 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20724 fi 20725 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20726 fi 20727 fi 20728 20729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20732 # "foo.exe" is OK but "foo" is an error. 20733 # 20734 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20735 # It is also a way to make sure we got the proper file name for the real test later on. 20736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20737 if test "x$test_shortpath" = x; then 20738 # Short path failed, file does not exist as specified. 20739 # Try adding .exe or .cmd 20740 if test -f "${new_path}.exe"; then 20741 input_to_shortpath="${new_path}.exe" 20742 elif test -f "${new_path}.cmd"; then 20743 input_to_shortpath="${new_path}.cmd" 20744 else 20745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 20746 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 20747 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20748 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20749 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20750 fi 20751 else 20752 input_to_shortpath="$new_path" 20753 fi 20754 20755 # Call helper function which possibly converts this using DOS-style short mode. 20756 # If so, the updated path is stored in $new_path. 20757 new_path="$input_to_shortpath" 20758 20759 input_path="$input_to_shortpath" 20760 # Check if we need to convert this using DOS-style short mode. If the path 20761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20762 # take no chances and rewrite it. 20763 # Note: m4 eats our [], so we need to use [ and ] instead. 20764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20765 if test "x$has_forbidden_chars" != x; then 20766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20767 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20768 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20769 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20770 # Going to short mode and back again did indeed matter. Since short mode is 20771 # case insensitive, let's make it lowercase to improve readability. 20772 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20773 # Now convert it back to Unix-stile (cygpath) 20774 input_path=`$CYGPATH -u "$shortmode_path"` 20775 new_path="$input_path" 20776 fi 20777 fi 20778 20779 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20780 if test "x$test_cygdrive_prefix" = x; then 20781 # As a simple fix, exclude /usr/bin since it's not a real path. 20782 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20783 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20784 # a path prefixed by /cygdrive for fixpath to work. 20785 new_path="$CYGWIN_ROOT_PATH$input_path" 20786 fi 20787 fi 20788 20789 # remove trailing .exe if any 20790 new_path="${new_path/%.exe/}" 20791 20792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20793 20794 # First separate the path from the arguments. This will split at the first 20795 # space. 20796 complete="$CXX" 20797 path="${complete%% *}" 20798 tmp="$complete EOL" 20799 arguments="${tmp#* }" 20800 20801 # Input might be given as Windows format, start by converting to 20802 # unix format. 20803 new_path="$path" 20804 20805 windows_path="$new_path" 20806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20807 unix_path=`$CYGPATH -u "$windows_path"` 20808 new_path="$unix_path" 20809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20811 new_path="$unix_path" 20812 fi 20813 20814 20815 # Now try to locate executable using which 20816 new_path=`$WHICH "$new_path" 2> /dev/null` 20817 20818 if test "x$new_path" = x; then 20819 # Oops. Which didn't find the executable. 20820 # The splitting of arguments from the executable at a space might have been incorrect, 20821 # since paths with space are more likely in Windows. Give it another try with the whole 20822 # argument. 20823 path="$complete" 20824 arguments="EOL" 20825 new_path="$path" 20826 20827 windows_path="$new_path" 20828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20829 unix_path=`$CYGPATH -u "$windows_path"` 20830 new_path="$unix_path" 20831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20833 new_path="$unix_path" 20834 fi 20835 20836 20837 new_path=`$WHICH "$new_path" 2> /dev/null` 20838 20839 if test "x$new_path" = x; then 20840 # It's still not found. Now this is an unrecoverable error. 20841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 20842 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 20843 has_space=`$ECHO "$complete" | $GREP " "` 20844 if test "x$has_space" != x; then 20845 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20847 fi 20848 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20849 fi 20850 fi 20851 20852 # Now new_path has a complete unix path to the binary 20853 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20854 # Keep paths in /bin as-is, but remove trailing .exe if any 20855 new_path="${new_path/%.exe/}" 20856 # Do not save /bin paths to all_fixpath_prefixes! 20857 else 20858 # Not in mixed or Windows style, start by that. 20859 new_path=`cmd //c echo $new_path` 20860 20861 input_path="$new_path" 20862 # Check if we need to convert this using DOS-style short mode. If the path 20863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20864 # take no chances and rewrite it. 20865 # Note: m4 eats our [], so we need to use [ and ] instead. 20866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20867 if test "x$has_forbidden_chars" != x; then 20868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20870 fi 20871 20872 # Output is in $new_path 20873 20874 windows_path="$new_path" 20875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20876 unix_path=`$CYGPATH -u "$windows_path"` 20877 new_path="$unix_path" 20878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20879 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20880 new_path="$unix_path" 20881 fi 20882 20883 # remove trailing .exe if any 20884 new_path="${new_path/%.exe/}" 20885 20886 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20887 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20888 fi 20889 20890 else 20891 # We're on a posix platform. Hooray! :) 20892 # First separate the path from the arguments. This will split at the first 20893 # space. 20894 complete="$CXX" 20895 path="${complete%% *}" 20896 tmp="$complete EOL" 20897 arguments="${tmp#* }" 20898 20899 # Cannot rely on the command "which" here since it doesn't always work. 20900 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20901 if test -z "$is_absolute_path"; then 20902 # Path to executable is not absolute. Find it. 20903 IFS_save="$IFS" 20904 IFS=: 20905 for p in $PATH; do 20906 if test -f "$p/$path" && test -x "$p/$path"; then 20907 new_path="$p/$path" 20908 break 20909 fi 20910 done 20911 IFS="$IFS_save" 20912 else 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXX (as $path) failed, using $path directly." >&5 20914 $as_echo "$as_me: Resolving CXX (as $path) failed, using $path directly." >&6;} 20915 new_path="$path" 20916 fi 20917 20918 if test "x$new_path" = x; then 20919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 20920 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 20921 has_space=`$ECHO "$complete" | $GREP " "` 20922 if test "x$has_space" != x; then 20923 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20924 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20925 fi 20926 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 20927 fi 20928 fi 20929 20930 # Now join together the path and the arguments once again 20931 if test "x$arguments" != xEOL; then 20932 new_complete="$new_path ${arguments% *}" 20933 else 20934 new_complete="$new_path" 20935 fi 20936 20937 if test "x$complete" != "x$new_complete"; then 20938 CXX="$new_complete" 20939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 20940 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 20941 fi 20942 20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 20944 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 20945 TEST_COMPILER="$CXX" 20946 20947 if test "x$OPENJDK_BUILD_OS" != xwindows; then 20948 # Follow a chain of symbolic links. Use readlink 20949 # where it exists, else fall back to horribly 20950 # complicated shell code. 20951 if test "x$READLINK_TESTED" != yes; then 20952 # On MacOSX there is a readlink tool with a different 20953 # purpose than the GNU readlink tool. Check the found readlink. 20954 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 20955 if test "x$ISGNU" = x; then 20956 # A readlink that we do not know how to use. 20957 # Are there other non-GNU readlinks out there? 20958 READLINK_TESTED=yes 20959 READLINK= 20960 fi 20961 fi 20962 20963 if test "x$READLINK" != x; then 20964 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 20965 else 20966 # Save the current directory for restoring afterwards 20967 STARTDIR=$PWD 20968 COUNTER=0 20969 sym_link_dir=`$DIRNAME $TEST_COMPILER` 20970 sym_link_file=`$BASENAME $TEST_COMPILER` 20971 cd $sym_link_dir 20972 # Use -P flag to resolve symlinks in directories. 20973 cd `$THEPWDCMD -P` 20974 sym_link_dir=`$THEPWDCMD -P` 20975 # Resolve file symlinks 20976 while test $COUNTER -lt 20; do 20977 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 20978 if test "x$ISLINK" == x; then 20979 # This is not a symbolic link! We are done! 20980 break 20981 fi 20982 # Again resolve directory symlinks since the target of the just found 20983 # link could be in a different directory 20984 cd `$DIRNAME $ISLINK` 20985 sym_link_dir=`$THEPWDCMD -P` 20986 sym_link_file=`$BASENAME $ISLINK` 20987 let COUNTER=COUNTER+1 20988 done 20989 cd $STARTDIR 20990 TEST_COMPILER=$sym_link_dir/$sym_link_file 20991 fi 20992 fi 20993 20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 20995 $as_echo "$TEST_COMPILER" >&6; } 20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 20997 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 20998 20999 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 21000 if test "x$COMPILER_BASENAME" = "xccache"; then 21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 21002 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 21003 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 21004 # We want to control ccache invocation ourselves, so ignore this cc and try 21005 # searching again. 21006 21007 # Remove the path to the fake ccache cc from the PATH 21008 RETRY_COMPILER_SAVED_PATH="$PATH" 21009 COMPILER_DIRNAME=`$DIRNAME $CXX` 21010 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 21011 21012 # Try again looking for our compiler 21013 if test -n "$ac_tool_prefix"; then 21014 for ac_prog in $COMPILER_CHECK_LIST 21015 do 21016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 21017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21019 $as_echo_n "checking for $ac_word... " >&6; } 21020 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 21021 $as_echo_n "(cached) " >&6 21022 else 21023 if test -n "$PROPER_COMPILER_CXX"; then 21024 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 21025 else 21026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21027 for as_dir in $PATH 21028 do 21029 IFS=$as_save_IFS 21030 test -z "$as_dir" && as_dir=. 21031 for ac_exec_ext in '' $ac_executable_extensions; do 21032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21033 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 21034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21035 break 2 21036 fi 21037 done 21038 done 21039 IFS=$as_save_IFS 21040 21041 fi 21042 fi 21043 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 21044 if test -n "$PROPER_COMPILER_CXX"; then 21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 21046 $as_echo "$PROPER_COMPILER_CXX" >&6; } 21047 else 21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21049 $as_echo "no" >&6; } 21050 fi 21051 21052 21053 test -n "$PROPER_COMPILER_CXX" && break 21054 done 21055 fi 21056 if test -z "$PROPER_COMPILER_CXX"; then 21057 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 21058 for ac_prog in $COMPILER_CHECK_LIST 21059 do 21060 # Extract the first word of "$ac_prog", so it can be a program name with args. 21061 set dummy $ac_prog; ac_word=$2 21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21063 $as_echo_n "checking for $ac_word... " >&6; } 21064 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 21065 $as_echo_n "(cached) " >&6 21066 else 21067 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 21068 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 21069 else 21070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21071 for as_dir in $PATH 21072 do 21073 IFS=$as_save_IFS 21074 test -z "$as_dir" && as_dir=. 21075 for ac_exec_ext in '' $ac_executable_extensions; do 21076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21077 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 21078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21079 break 2 21080 fi 21081 done 21082 done 21083 IFS=$as_save_IFS 21084 21085 fi 21086 fi 21087 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 21088 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 21090 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 21091 else 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21093 $as_echo "no" >&6; } 21094 fi 21095 21096 21097 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 21098 done 21099 21100 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 21101 PROPER_COMPILER_CXX="" 21102 else 21103 case $cross_compiling:$ac_tool_warned in 21104 yes:) 21105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21107 ac_tool_warned=yes ;; 21108 esac 21109 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 21110 fi 21111 fi 21112 21113 21114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21115 21116 # First separate the path from the arguments. This will split at the first 21117 # space. 21118 complete="$PROPER_COMPILER_CXX" 21119 path="${complete%% *}" 21120 tmp="$complete EOL" 21121 arguments="${tmp#* }" 21122 21123 # Input might be given as Windows format, start by converting to 21124 # unix format. 21125 new_path=`$CYGPATH -u "$path"` 21126 21127 # Now try to locate executable using which 21128 new_path=`$WHICH "$new_path" 2> /dev/null` 21129 # bat and cmd files are not always considered executable in cygwin causing which 21130 # to not find them 21131 if test "x$new_path" = x \ 21132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21134 new_path=`$CYGPATH -u "$path"` 21135 fi 21136 if test "x$new_path" = x; then 21137 # Oops. Which didn't find the executable. 21138 # The splitting of arguments from the executable at a space might have been incorrect, 21139 # since paths with space are more likely in Windows. Give it another try with the whole 21140 # argument. 21141 path="$complete" 21142 arguments="EOL" 21143 new_path=`$CYGPATH -u "$path"` 21144 new_path=`$WHICH "$new_path" 2> /dev/null` 21145 # bat and cmd files are not always considered executable in cygwin causing which 21146 # to not find them 21147 if test "x$new_path" = x \ 21148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21150 new_path=`$CYGPATH -u "$path"` 21151 fi 21152 if test "x$new_path" = x; then 21153 # It's still not found. Now this is an unrecoverable error. 21154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 21155 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 21156 has_space=`$ECHO "$complete" | $GREP " "` 21157 if test "x$has_space" != x; then 21158 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21159 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21160 fi 21161 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 21162 fi 21163 fi 21164 21165 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21166 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21167 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21168 # "foo.exe" is OK but "foo" is an error. 21169 # 21170 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21171 # It is also a way to make sure we got the proper file name for the real test later on. 21172 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21173 if test "x$test_shortpath" = x; then 21174 # Short path failed, file does not exist as specified. 21175 # Try adding .exe or .cmd 21176 if test -f "${new_path}.exe"; then 21177 input_to_shortpath="${new_path}.exe" 21178 elif test -f "${new_path}.cmd"; then 21179 input_to_shortpath="${new_path}.cmd" 21180 else 21181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 21182 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 21183 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21184 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21185 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 21186 fi 21187 else 21188 input_to_shortpath="$new_path" 21189 fi 21190 21191 # Call helper function which possibly converts this using DOS-style short mode. 21192 # If so, the updated path is stored in $new_path. 21193 new_path="$input_to_shortpath" 21194 21195 input_path="$input_to_shortpath" 21196 # Check if we need to convert this using DOS-style short mode. If the path 21197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21198 # take no chances and rewrite it. 21199 # Note: m4 eats our [], so we need to use [ and ] instead. 21200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21201 if test "x$has_forbidden_chars" != x; then 21202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21203 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21204 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21205 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21206 # Going to short mode and back again did indeed matter. Since short mode is 21207 # case insensitive, let's make it lowercase to improve readability. 21208 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21209 # Now convert it back to Unix-stile (cygpath) 21210 input_path=`$CYGPATH -u "$shortmode_path"` 21211 new_path="$input_path" 21212 fi 21213 fi 21214 21215 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21216 if test "x$test_cygdrive_prefix" = x; then 21217 # As a simple fix, exclude /usr/bin since it's not a real path. 21218 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21219 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21220 # a path prefixed by /cygdrive for fixpath to work. 21221 new_path="$CYGWIN_ROOT_PATH$input_path" 21222 fi 21223 fi 21224 21225 # remove trailing .exe if any 21226 new_path="${new_path/%.exe/}" 21227 21228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21229 21230 # First separate the path from the arguments. This will split at the first 21231 # space. 21232 complete="$PROPER_COMPILER_CXX" 21233 path="${complete%% *}" 21234 tmp="$complete EOL" 21235 arguments="${tmp#* }" 21236 21237 # Input might be given as Windows format, start by converting to 21238 # unix format. 21239 new_path="$path" 21240 21241 windows_path="$new_path" 21242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21243 unix_path=`$CYGPATH -u "$windows_path"` 21244 new_path="$unix_path" 21245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21247 new_path="$unix_path" 21248 fi 21249 21250 21251 # Now try to locate executable using which 21252 new_path=`$WHICH "$new_path" 2> /dev/null` 21253 21254 if test "x$new_path" = x; then 21255 # Oops. Which didn't find the executable. 21256 # The splitting of arguments from the executable at a space might have been incorrect, 21257 # since paths with space are more likely in Windows. Give it another try with the whole 21258 # argument. 21259 path="$complete" 21260 arguments="EOL" 21261 new_path="$path" 21262 21263 windows_path="$new_path" 21264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21265 unix_path=`$CYGPATH -u "$windows_path"` 21266 new_path="$unix_path" 21267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21269 new_path="$unix_path" 21270 fi 21271 21272 21273 new_path=`$WHICH "$new_path" 2> /dev/null` 21274 21275 if test "x$new_path" = x; then 21276 # It's still not found. Now this is an unrecoverable error. 21277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 21278 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 21279 has_space=`$ECHO "$complete" | $GREP " "` 21280 if test "x$has_space" != x; then 21281 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21282 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21283 fi 21284 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 21285 fi 21286 fi 21287 21288 # Now new_path has a complete unix path to the binary 21289 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21290 # Keep paths in /bin as-is, but remove trailing .exe if any 21291 new_path="${new_path/%.exe/}" 21292 # Do not save /bin paths to all_fixpath_prefixes! 21293 else 21294 # Not in mixed or Windows style, start by that. 21295 new_path=`cmd //c echo $new_path` 21296 21297 input_path="$new_path" 21298 # Check if we need to convert this using DOS-style short mode. If the path 21299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21300 # take no chances and rewrite it. 21301 # Note: m4 eats our [], so we need to use [ and ] instead. 21302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21303 if test "x$has_forbidden_chars" != x; then 21304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21305 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21306 fi 21307 21308 # Output is in $new_path 21309 21310 windows_path="$new_path" 21311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21312 unix_path=`$CYGPATH -u "$windows_path"` 21313 new_path="$unix_path" 21314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21316 new_path="$unix_path" 21317 fi 21318 21319 # remove trailing .exe if any 21320 new_path="${new_path/%.exe/}" 21321 21322 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21323 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21324 fi 21325 21326 else 21327 # We're on a posix platform. Hooray! :) 21328 # First separate the path from the arguments. This will split at the first 21329 # space. 21330 complete="$PROPER_COMPILER_CXX" 21331 path="${complete%% *}" 21332 tmp="$complete EOL" 21333 arguments="${tmp#* }" 21334 21335 # Cannot rely on the command "which" here since it doesn't always work. 21336 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21337 if test -z "$is_absolute_path"; then 21338 # Path to executable is not absolute. Find it. 21339 IFS_save="$IFS" 21340 IFS=: 21341 for p in $PATH; do 21342 if test -f "$p/$path" && test -x "$p/$path"; then 21343 new_path="$p/$path" 21344 break 21345 fi 21346 done 21347 IFS="$IFS_save" 21348 else 21349 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&5 21350 $as_echo "$as_me: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&6;} 21351 new_path="$path" 21352 fi 21353 21354 if test "x$new_path" = x; then 21355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 21356 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 21357 has_space=`$ECHO "$complete" | $GREP " "` 21358 if test "x$has_space" != x; then 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21360 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21361 fi 21362 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 21363 fi 21364 fi 21365 21366 # Now join together the path and the arguments once again 21367 if test "x$arguments" != xEOL; then 21368 new_complete="$new_path ${arguments% *}" 21369 else 21370 new_complete="$new_path" 21371 fi 21372 21373 if test "x$complete" != "x$new_complete"; then 21374 PROPER_COMPILER_CXX="$new_complete" 21375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 21376 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 21377 fi 21378 21379 PATH="$RETRY_COMPILER_SAVED_PATH" 21380 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 21382 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 21383 21384 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21385 # Follow a chain of symbolic links. Use readlink 21386 # where it exists, else fall back to horribly 21387 # complicated shell code. 21388 if test "x$READLINK_TESTED" != yes; then 21389 # On MacOSX there is a readlink tool with a different 21390 # purpose than the GNU readlink tool. Check the found readlink. 21391 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21392 if test "x$ISGNU" = x; then 21393 # A readlink that we do not know how to use. 21394 # Are there other non-GNU readlinks out there? 21395 READLINK_TESTED=yes 21396 READLINK= 21397 fi 21398 fi 21399 21400 if test "x$READLINK" != x; then 21401 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 21402 else 21403 # Save the current directory for restoring afterwards 21404 STARTDIR=$PWD 21405 COUNTER=0 21406 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 21407 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 21408 cd $sym_link_dir 21409 # Use -P flag to resolve symlinks in directories. 21410 cd `$THEPWDCMD -P` 21411 sym_link_dir=`$THEPWDCMD -P` 21412 # Resolve file symlinks 21413 while test $COUNTER -lt 20; do 21414 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21415 if test "x$ISLINK" == x; then 21416 # This is not a symbolic link! We are done! 21417 break 21418 fi 21419 # Again resolve directory symlinks since the target of the just found 21420 # link could be in a different directory 21421 cd `$DIRNAME $ISLINK` 21422 sym_link_dir=`$THEPWDCMD -P` 21423 sym_link_file=`$BASENAME $ISLINK` 21424 let COUNTER=COUNTER+1 21425 done 21426 cd $STARTDIR 21427 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 21428 fi 21429 fi 21430 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 21432 $as_echo "$PROPER_COMPILER_CXX" >&6; } 21433 CXX="$PROPER_COMPILER_CXX" 21434 else 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 21436 $as_echo "no, keeping CXX" >&6; } 21437 CXX="$TEST_COMPILER" 21438 fi 21439 21440 COMPILER=$CXX 21441 COMPILER_NAME=$COMPILER_NAME 21442 21443 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 21444 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work 21445 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1` 21446 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 21447 if test $? -ne 0; then 21448 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 21449 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5 21451 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;} 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5 21453 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;} 21454 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5 21455 else 21456 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"` 21457 COMPILER_VENDOR="Sun Studio" 21458 fi 21459 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 21460 # First line typically looks something like: 21461 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 21462 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1` 21463 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"` 21464 COMPILER_VENDOR="Microsoft CL.EXE" 21465 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"` 21466 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 21467 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 21468 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 21469 fi 21470 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 21471 if test "x$COMPILER_CPU_TEST" != "xx64"; then 21472 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 21473 fi 21474 fi 21475 else 21476 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 21477 # Check that this is likely to be GCC. 21478 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null 21479 if test $? -ne 0; then 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 21481 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} 21482 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 21483 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} 21484 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 21485 fi 21486 21487 # First line typically looks something like: 21488 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 21489 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` 21490 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` 21491 fi 21492 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) 21493 CXX_VERSION="$COMPILER_VERSION" 21494 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) 21495 CXX_VENDOR="$COMPILER_VENDOR" 21496 21497 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5 21498 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;} 21499 21500 21501 # Now that we have resolved CXX ourself, let autoconf have its go at it 21502 ac_ext=cpp 21503 ac_cpp='$CXXCPP $CPPFLAGS' 21504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21507 if test -z "$CXX"; then 21508 if test -n "$CCC"; then 21509 CXX=$CCC 21510 else 21511 if test -n "$ac_tool_prefix"; then 21512 for ac_prog in $CXX 21513 do 21514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 21515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21517 $as_echo_n "checking for $ac_word... " >&6; } 21518 if ${ac_cv_prog_CXX+:} false; then : 21519 $as_echo_n "(cached) " >&6 21520 else 21521 if test -n "$CXX"; then 21522 ac_cv_prog_CXX="$CXX" # Let the user override the test. 21523 else 21524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21525 for as_dir in $PATH 21526 do 21527 IFS=$as_save_IFS 21528 test -z "$as_dir" && as_dir=. 21529 for ac_exec_ext in '' $ac_executable_extensions; do 21530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 21532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21533 break 2 21534 fi 21535 done 21536 done 21537 IFS=$as_save_IFS 21538 21539 fi 21540 fi 21541 CXX=$ac_cv_prog_CXX 21542 if test -n "$CXX"; then 21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 21544 $as_echo "$CXX" >&6; } 21545 else 21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21547 $as_echo "no" >&6; } 21548 fi 21549 21550 21551 test -n "$CXX" && break 21552 done 21553 fi 21554 if test -z "$CXX"; then 21555 ac_ct_CXX=$CXX 21556 for ac_prog in $CXX 21557 do 21558 # Extract the first word of "$ac_prog", so it can be a program name with args. 21559 set dummy $ac_prog; ac_word=$2 21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21561 $as_echo_n "checking for $ac_word... " >&6; } 21562 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 21563 $as_echo_n "(cached) " >&6 21564 else 21565 if test -n "$ac_ct_CXX"; then 21566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 21567 else 21568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21569 for as_dir in $PATH 21570 do 21571 IFS=$as_save_IFS 21572 test -z "$as_dir" && as_dir=. 21573 for ac_exec_ext in '' $ac_executable_extensions; do 21574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21575 ac_cv_prog_ac_ct_CXX="$ac_prog" 21576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21577 break 2 21578 fi 21579 done 21580 done 21581 IFS=$as_save_IFS 21582 21583 fi 21584 fi 21585 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 21586 if test -n "$ac_ct_CXX"; then 21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 21588 $as_echo "$ac_ct_CXX" >&6; } 21589 else 21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21591 $as_echo "no" >&6; } 21592 fi 21593 21594 21595 test -n "$ac_ct_CXX" && break 21596 done 21597 21598 if test "x$ac_ct_CXX" = x; then 21599 CXX="g++" 21600 else 21601 case $cross_compiling:$ac_tool_warned in 21602 yes:) 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21605 ac_tool_warned=yes ;; 21606 esac 21607 CXX=$ac_ct_CXX 21608 fi 21609 fi 21610 21611 fi 21612 fi 21613 # Provide some information about the compiler. 21614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 21615 set X $ac_compile 21616 ac_compiler=$2 21617 for ac_option in --version -v -V -qversion; do 21618 { { ac_try="$ac_compiler $ac_option >&5" 21619 case "(($ac_try" in 21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21621 *) ac_try_echo=$ac_try;; 21622 esac 21623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21624 $as_echo "$ac_try_echo"; } >&5 21625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 21626 ac_status=$? 21627 if test -s conftest.err; then 21628 sed '10a\ 21629 ... rest of stderr output deleted ... 21630 10q' conftest.err >conftest.er1 21631 cat conftest.er1 >&5 21632 fi 21633 rm -f conftest.er1 conftest.err 21634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21635 test $ac_status = 0; } 21636 done 21637 21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 21639 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 21640 if ${ac_cv_cxx_compiler_gnu+:} false; then : 21641 $as_echo_n "(cached) " >&6 21642 else 21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21644 /* end confdefs.h. */ 21645 21646 int 21647 main () 21648 { 21649 #ifndef __GNUC__ 21650 choke me 21651 #endif 21652 21653 ; 21654 return 0; 21655 } 21656 _ACEOF 21657 if ac_fn_cxx_try_compile "$LINENO"; then : 21658 ac_compiler_gnu=yes 21659 else 21660 ac_compiler_gnu=no 21661 fi 21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21663 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 21664 21665 fi 21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 21667 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 21668 if test $ac_compiler_gnu = yes; then 21669 GXX=yes 21670 else 21671 GXX= 21672 fi 21673 ac_test_CXXFLAGS=${CXXFLAGS+set} 21674 ac_save_CXXFLAGS=$CXXFLAGS 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 21676 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 21677 if ${ac_cv_prog_cxx_g+:} false; then : 21678 $as_echo_n "(cached) " >&6 21679 else 21680 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 21681 ac_cxx_werror_flag=yes 21682 ac_cv_prog_cxx_g=no 21683 CXXFLAGS="-g" 21684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21685 /* end confdefs.h. */ 21686 21687 int 21688 main () 21689 { 21690 21691 ; 21692 return 0; 21693 } 21694 _ACEOF 21695 if ac_fn_cxx_try_compile "$LINENO"; then : 21696 ac_cv_prog_cxx_g=yes 21697 else 21698 CXXFLAGS="" 21699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21700 /* end confdefs.h. */ 21701 21702 int 21703 main () 21704 { 21705 21706 ; 21707 return 0; 21708 } 21709 _ACEOF 21710 if ac_fn_cxx_try_compile "$LINENO"; then : 21711 21712 else 21713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 21714 CXXFLAGS="-g" 21715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21716 /* end confdefs.h. */ 21717 21718 int 21719 main () 21720 { 21721 21722 ; 21723 return 0; 21724 } 21725 _ACEOF 21726 if ac_fn_cxx_try_compile "$LINENO"; then : 21727 ac_cv_prog_cxx_g=yes 21728 fi 21729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21730 fi 21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21732 fi 21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 21735 fi 21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 21737 $as_echo "$ac_cv_prog_cxx_g" >&6; } 21738 if test "$ac_test_CXXFLAGS" = set; then 21739 CXXFLAGS=$ac_save_CXXFLAGS 21740 elif test $ac_cv_prog_cxx_g = yes; then 21741 if test "$GXX" = yes; then 21742 CXXFLAGS="-g -O2" 21743 else 21744 CXXFLAGS="-g" 21745 fi 21746 else 21747 if test "$GXX" = yes; then 21748 CXXFLAGS="-O2" 21749 else 21750 CXXFLAGS= 21751 fi 21752 fi 21753 ac_ext=cpp 21754 ac_cpp='$CXXCPP $CPPFLAGS' 21755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21758 21759 21760 ### Locate other tools 21761 21762 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 21763 ac_ext=m 21764 ac_cpp='$OBJCPP $CPPFLAGS' 21765 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21766 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21767 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 21768 if test -n "$ac_tool_prefix"; then 21769 for ac_prog in gcc objcc objc cc CC 21770 do 21771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 21772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21774 $as_echo_n "checking for $ac_word... " >&6; } 21775 if ${ac_cv_prog_OBJC+:} false; then : 21776 $as_echo_n "(cached) " >&6 21777 else 21778 if test -n "$OBJC"; then 21779 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 21780 else 21781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21782 for as_dir in $PATH 21783 do 21784 IFS=$as_save_IFS 21785 test -z "$as_dir" && as_dir=. 21786 for ac_exec_ext in '' $ac_executable_extensions; do 21787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21788 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 21789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21790 break 2 21791 fi 21792 done 21793 done 21794 IFS=$as_save_IFS 21795 21796 fi 21797 fi 21798 OBJC=$ac_cv_prog_OBJC 21799 if test -n "$OBJC"; then 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 21801 $as_echo "$OBJC" >&6; } 21802 else 21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21804 $as_echo "no" >&6; } 21805 fi 21806 21807 21808 test -n "$OBJC" && break 21809 done 21810 fi 21811 if test -z "$OBJC"; then 21812 ac_ct_OBJC=$OBJC 21813 for ac_prog in gcc objcc objc cc CC 21814 do 21815 # Extract the first word of "$ac_prog", so it can be a program name with args. 21816 set dummy $ac_prog; ac_word=$2 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21818 $as_echo_n "checking for $ac_word... " >&6; } 21819 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 21820 $as_echo_n "(cached) " >&6 21821 else 21822 if test -n "$ac_ct_OBJC"; then 21823 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 21824 else 21825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21826 for as_dir in $PATH 21827 do 21828 IFS=$as_save_IFS 21829 test -z "$as_dir" && as_dir=. 21830 for ac_exec_ext in '' $ac_executable_extensions; do 21831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21832 ac_cv_prog_ac_ct_OBJC="$ac_prog" 21833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21834 break 2 21835 fi 21836 done 21837 done 21838 IFS=$as_save_IFS 21839 21840 fi 21841 fi 21842 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 21843 if test -n "$ac_ct_OBJC"; then 21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 21845 $as_echo "$ac_ct_OBJC" >&6; } 21846 else 21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21848 $as_echo "no" >&6; } 21849 fi 21850 21851 21852 test -n "$ac_ct_OBJC" && break 21853 done 21854 21855 if test "x$ac_ct_OBJC" = x; then 21856 OBJC="gcc" 21857 else 21858 case $cross_compiling:$ac_tool_warned in 21859 yes:) 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21862 ac_tool_warned=yes ;; 21863 esac 21864 OBJC=$ac_ct_OBJC 21865 fi 21866 fi 21867 21868 # Provide some information about the compiler. 21869 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 21870 set X $ac_compile 21871 ac_compiler=$2 21872 for ac_option in --version -v -V -qversion; do 21873 { { ac_try="$ac_compiler $ac_option >&5" 21874 case "(($ac_try" in 21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21876 *) ac_try_echo=$ac_try;; 21877 esac 21878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21879 $as_echo "$ac_try_echo"; } >&5 21880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 21881 ac_status=$? 21882 if test -s conftest.err; then 21883 sed '10a\ 21884 ... rest of stderr output deleted ... 21885 10q' conftest.err >conftest.er1 21886 cat conftest.er1 >&5 21887 fi 21888 rm -f conftest.er1 conftest.err 21889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21890 test $ac_status = 0; } 21891 done 21892 21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 21894 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 21895 if ${ac_cv_objc_compiler_gnu+:} false; then : 21896 $as_echo_n "(cached) " >&6 21897 else 21898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21899 /* end confdefs.h. */ 21900 21901 int 21902 main () 21903 { 21904 #ifndef __GNUC__ 21905 choke me 21906 #endif 21907 21908 ; 21909 return 0; 21910 } 21911 _ACEOF 21912 if ac_fn_objc_try_compile "$LINENO"; then : 21913 ac_compiler_gnu=yes 21914 else 21915 ac_compiler_gnu=no 21916 fi 21917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21918 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 21919 21920 fi 21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 21922 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 21923 if test $ac_compiler_gnu = yes; then 21924 GOBJC=yes 21925 else 21926 GOBJC= 21927 fi 21928 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 21929 ac_save_OBJCFLAGS=$OBJCFLAGS 21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 21931 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 21932 if ${ac_cv_prog_objc_g+:} false; then : 21933 $as_echo_n "(cached) " >&6 21934 else 21935 ac_save_objc_werror_flag=$ac_objc_werror_flag 21936 ac_objc_werror_flag=yes 21937 ac_cv_prog_objc_g=no 21938 OBJCFLAGS="-g" 21939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21940 /* end confdefs.h. */ 21941 21942 int 21943 main () 21944 { 21945 21946 ; 21947 return 0; 21948 } 21949 _ACEOF 21950 if ac_fn_objc_try_compile "$LINENO"; then : 21951 ac_cv_prog_objc_g=yes 21952 else 21953 OBJCFLAGS="" 21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21955 /* end confdefs.h. */ 21956 21957 int 21958 main () 21959 { 21960 21961 ; 21962 return 0; 21963 } 21964 _ACEOF 21965 if ac_fn_objc_try_compile "$LINENO"; then : 21966 21967 else 21968 ac_objc_werror_flag=$ac_save_objc_werror_flag 21969 OBJCFLAGS="-g" 21970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21971 /* end confdefs.h. */ 21972 21973 int 21974 main () 21975 { 21976 21977 ; 21978 return 0; 21979 } 21980 _ACEOF 21981 if ac_fn_objc_try_compile "$LINENO"; then : 21982 ac_cv_prog_objc_g=yes 21983 fi 21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21985 fi 21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21987 fi 21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21989 ac_objc_werror_flag=$ac_save_objc_werror_flag 21990 fi 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 21992 $as_echo "$ac_cv_prog_objc_g" >&6; } 21993 if test "$ac_test_OBJCFLAGS" = set; then 21994 OBJCFLAGS=$ac_save_OBJCFLAGS 21995 elif test $ac_cv_prog_objc_g = yes; then 21996 if test "$GOBJC" = yes; then 21997 OBJCFLAGS="-g -O2" 21998 else 21999 OBJCFLAGS="-g" 22000 fi 22001 else 22002 if test "$GOBJC" = yes; then 22003 OBJCFLAGS="-O2" 22004 else 22005 OBJCFLAGS= 22006 fi 22007 fi 22008 ac_ext=cpp 22009 ac_cpp='$CXXCPP $CPPFLAGS' 22010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22013 22014 22015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22016 22017 # First separate the path from the arguments. This will split at the first 22018 # space. 22019 complete="$OBJC" 22020 path="${complete%% *}" 22021 tmp="$complete EOL" 22022 arguments="${tmp#* }" 22023 22024 # Input might be given as Windows format, start by converting to 22025 # unix format. 22026 new_path=`$CYGPATH -u "$path"` 22027 22028 # Now try to locate executable using which 22029 new_path=`$WHICH "$new_path" 2> /dev/null` 22030 # bat and cmd files are not always considered executable in cygwin causing which 22031 # to not find them 22032 if test "x$new_path" = x \ 22033 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22034 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22035 new_path=`$CYGPATH -u "$path"` 22036 fi 22037 if test "x$new_path" = x; then 22038 # Oops. Which didn't find the executable. 22039 # The splitting of arguments from the executable at a space might have been incorrect, 22040 # since paths with space are more likely in Windows. Give it another try with the whole 22041 # argument. 22042 path="$complete" 22043 arguments="EOL" 22044 new_path=`$CYGPATH -u "$path"` 22045 new_path=`$WHICH "$new_path" 2> /dev/null` 22046 # bat and cmd files are not always considered executable in cygwin causing which 22047 # to not find them 22048 if test "x$new_path" = x \ 22049 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22050 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22051 new_path=`$CYGPATH -u "$path"` 22052 fi 22053 if test "x$new_path" = x; then 22054 # It's still not found. Now this is an unrecoverable error. 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 22056 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 22057 has_space=`$ECHO "$complete" | $GREP " "` 22058 if test "x$has_space" != x; then 22059 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22060 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22061 fi 22062 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 22063 fi 22064 fi 22065 22066 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22067 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22068 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22069 # "foo.exe" is OK but "foo" is an error. 22070 # 22071 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22072 # It is also a way to make sure we got the proper file name for the real test later on. 22073 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22074 if test "x$test_shortpath" = x; then 22075 # Short path failed, file does not exist as specified. 22076 # Try adding .exe or .cmd 22077 if test -f "${new_path}.exe"; then 22078 input_to_shortpath="${new_path}.exe" 22079 elif test -f "${new_path}.cmd"; then 22080 input_to_shortpath="${new_path}.cmd" 22081 else 22082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 22083 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 22084 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 22085 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 22086 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 22087 fi 22088 else 22089 input_to_shortpath="$new_path" 22090 fi 22091 22092 # Call helper function which possibly converts this using DOS-style short mode. 22093 # If so, the updated path is stored in $new_path. 22094 new_path="$input_to_shortpath" 22095 22096 input_path="$input_to_shortpath" 22097 # Check if we need to convert this using DOS-style short mode. If the path 22098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22099 # take no chances and rewrite it. 22100 # Note: m4 eats our [], so we need to use [ and ] instead. 22101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22102 if test "x$has_forbidden_chars" != x; then 22103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22107 # Going to short mode and back again did indeed matter. Since short mode is 22108 # case insensitive, let's make it lowercase to improve readability. 22109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22110 # Now convert it back to Unix-stile (cygpath) 22111 input_path=`$CYGPATH -u "$shortmode_path"` 22112 new_path="$input_path" 22113 fi 22114 fi 22115 22116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22117 if test "x$test_cygdrive_prefix" = x; then 22118 # As a simple fix, exclude /usr/bin since it's not a real path. 22119 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 22120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22121 # a path prefixed by /cygdrive for fixpath to work. 22122 new_path="$CYGWIN_ROOT_PATH$input_path" 22123 fi 22124 fi 22125 22126 # remove trailing .exe if any 22127 new_path="${new_path/%.exe/}" 22128 22129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22130 22131 # First separate the path from the arguments. This will split at the first 22132 # space. 22133 complete="$OBJC" 22134 path="${complete%% *}" 22135 tmp="$complete EOL" 22136 arguments="${tmp#* }" 22137 22138 # Input might be given as Windows format, start by converting to 22139 # unix format. 22140 new_path="$path" 22141 22142 windows_path="$new_path" 22143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22144 unix_path=`$CYGPATH -u "$windows_path"` 22145 new_path="$unix_path" 22146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22148 new_path="$unix_path" 22149 fi 22150 22151 22152 # Now try to locate executable using which 22153 new_path=`$WHICH "$new_path" 2> /dev/null` 22154 22155 if test "x$new_path" = x; then 22156 # Oops. Which didn't find the executable. 22157 # The splitting of arguments from the executable at a space might have been incorrect, 22158 # since paths with space are more likely in Windows. Give it another try with the whole 22159 # argument. 22160 path="$complete" 22161 arguments="EOL" 22162 new_path="$path" 22163 22164 windows_path="$new_path" 22165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22166 unix_path=`$CYGPATH -u "$windows_path"` 22167 new_path="$unix_path" 22168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22169 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22170 new_path="$unix_path" 22171 fi 22172 22173 22174 new_path=`$WHICH "$new_path" 2> /dev/null` 22175 22176 if test "x$new_path" = x; then 22177 # It's still not found. Now this is an unrecoverable error. 22178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 22179 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 22180 has_space=`$ECHO "$complete" | $GREP " "` 22181 if test "x$has_space" != x; then 22182 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22183 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22184 fi 22185 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 22186 fi 22187 fi 22188 22189 # Now new_path has a complete unix path to the binary 22190 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 22191 # Keep paths in /bin as-is, but remove trailing .exe if any 22192 new_path="${new_path/%.exe/}" 22193 # Do not save /bin paths to all_fixpath_prefixes! 22194 else 22195 # Not in mixed or Windows style, start by that. 22196 new_path=`cmd //c echo $new_path` 22197 22198 input_path="$new_path" 22199 # Check if we need to convert this using DOS-style short mode. If the path 22200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22201 # take no chances and rewrite it. 22202 # Note: m4 eats our [], so we need to use [ and ] instead. 22203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22204 if test "x$has_forbidden_chars" != x; then 22205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22206 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22207 fi 22208 22209 # Output is in $new_path 22210 22211 windows_path="$new_path" 22212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22213 unix_path=`$CYGPATH -u "$windows_path"` 22214 new_path="$unix_path" 22215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22217 new_path="$unix_path" 22218 fi 22219 22220 # remove trailing .exe if any 22221 new_path="${new_path/%.exe/}" 22222 22223 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22224 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22225 fi 22226 22227 else 22228 # We're on a posix platform. Hooray! :) 22229 # First separate the path from the arguments. This will split at the first 22230 # space. 22231 complete="$OBJC" 22232 path="${complete%% *}" 22233 tmp="$complete EOL" 22234 arguments="${tmp#* }" 22235 22236 # Cannot rely on the command "which" here since it doesn't always work. 22237 is_absolute_path=`$ECHO "$path" | $GREP ^/` 22238 if test -z "$is_absolute_path"; then 22239 # Path to executable is not absolute. Find it. 22240 IFS_save="$IFS" 22241 IFS=: 22242 for p in $PATH; do 22243 if test -f "$p/$path" && test -x "$p/$path"; then 22244 new_path="$p/$path" 22245 break 22246 fi 22247 done 22248 IFS="$IFS_save" 22249 else 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJC (as $path) failed, using $path directly." >&5 22251 $as_echo "$as_me: Resolving OBJC (as $path) failed, using $path directly." >&6;} 22252 new_path="$path" 22253 fi 22254 22255 if test "x$new_path" = x; then 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 22257 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 22258 has_space=`$ECHO "$complete" | $GREP " "` 22259 if test "x$has_space" != x; then 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 22261 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 22262 fi 22263 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 22264 fi 22265 fi 22266 22267 # Now join together the path and the arguments once again 22268 if test "x$arguments" != xEOL; then 22269 new_complete="$new_path ${arguments% *}" 22270 else 22271 new_complete="$new_path" 22272 fi 22273 22274 if test "x$complete" != "x$new_complete"; then 22275 OBJC="$new_complete" 22276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 22277 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 22278 fi 22279 22280 else 22281 OBJC= 22282 fi 22283 22284 # Restore the flags to the user specified values. 22285 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 22286 CFLAGS="$ORG_CFLAGS" 22287 CXXFLAGS="$ORG_CXXFLAGS" 22288 OBJCFLAGS="$ORG_OBJCFLAGS" 22289 22290 LD="$CC" 22291 LDEXE="$CC" 22292 LDCXX="$CXX" 22293 LDEXECXX="$CXX" 22294 22295 # LDEXE is the linker to use, when creating executables. 22296 22297 # Linking C++ libraries. 22298 22299 # Linking C++ executables. 22300 22301 22302 if test "x$OPENJDK_TARGET_OS" != xwindows; then 22303 if test -n "$ac_tool_prefix"; then 22304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 22305 set dummy ${ac_tool_prefix}ar; ac_word=$2 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22307 $as_echo_n "checking for $ac_word... " >&6; } 22308 if ${ac_cv_prog_AR+:} false; then : 22309 $as_echo_n "(cached) " >&6 22310 else 22311 if test -n "$AR"; then 22312 ac_cv_prog_AR="$AR" # Let the user override the test. 22313 else 22314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22315 for as_dir in $PATH 22316 do 22317 IFS=$as_save_IFS 22318 test -z "$as_dir" && as_dir=. 22319 for ac_exec_ext in '' $ac_executable_extensions; do 22320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22321 ac_cv_prog_AR="${ac_tool_prefix}ar" 22322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22323 break 2 22324 fi 22325 done 22326 done 22327 IFS=$as_save_IFS 22328 22329 fi 22330 fi 22331 AR=$ac_cv_prog_AR 22332 if test -n "$AR"; then 22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 22334 $as_echo "$AR" >&6; } 22335 else 22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22337 $as_echo "no" >&6; } 22338 fi 22339 22340 22341 fi 22342 if test -z "$ac_cv_prog_AR"; then 22343 ac_ct_AR=$AR 22344 # Extract the first word of "ar", so it can be a program name with args. 22345 set dummy ar; ac_word=$2 22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22347 $as_echo_n "checking for $ac_word... " >&6; } 22348 if ${ac_cv_prog_ac_ct_AR+:} false; then : 22349 $as_echo_n "(cached) " >&6 22350 else 22351 if test -n "$ac_ct_AR"; then 22352 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 22353 else 22354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22355 for as_dir in $PATH 22356 do 22357 IFS=$as_save_IFS 22358 test -z "$as_dir" && as_dir=. 22359 for ac_exec_ext in '' $ac_executable_extensions; do 22360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22361 ac_cv_prog_ac_ct_AR="ar" 22362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22363 break 2 22364 fi 22365 done 22366 done 22367 IFS=$as_save_IFS 22368 22369 fi 22370 fi 22371 ac_ct_AR=$ac_cv_prog_ac_ct_AR 22372 if test -n "$ac_ct_AR"; then 22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 22374 $as_echo "$ac_ct_AR" >&6; } 22375 else 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22377 $as_echo "no" >&6; } 22378 fi 22379 22380 if test "x$ac_ct_AR" = x; then 22381 AR="" 22382 else 22383 case $cross_compiling:$ac_tool_warned in 22384 yes:) 22385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22387 ac_tool_warned=yes ;; 22388 esac 22389 AR=$ac_ct_AR 22390 fi 22391 else 22392 AR="$ac_cv_prog_AR" 22393 fi 22394 22395 22396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22397 22398 # First separate the path from the arguments. This will split at the first 22399 # space. 22400 complete="$AR" 22401 path="${complete%% *}" 22402 tmp="$complete EOL" 22403 arguments="${tmp#* }" 22404 22405 # Input might be given as Windows format, start by converting to 22406 # unix format. 22407 new_path=`$CYGPATH -u "$path"` 22408 22409 # Now try to locate executable using which 22410 new_path=`$WHICH "$new_path" 2> /dev/null` 22411 # bat and cmd files are not always considered executable in cygwin causing which 22412 # to not find them 22413 if test "x$new_path" = x \ 22414 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22415 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22416 new_path=`$CYGPATH -u "$path"` 22417 fi 22418 if test "x$new_path" = x; then 22419 # Oops. Which didn't find the executable. 22420 # The splitting of arguments from the executable at a space might have been incorrect, 22421 # since paths with space are more likely in Windows. Give it another try with the whole 22422 # argument. 22423 path="$complete" 22424 arguments="EOL" 22425 new_path=`$CYGPATH -u "$path"` 22426 new_path=`$WHICH "$new_path" 2> /dev/null` 22427 # bat and cmd files are not always considered executable in cygwin causing which 22428 # to not find them 22429 if test "x$new_path" = x \ 22430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22432 new_path=`$CYGPATH -u "$path"` 22433 fi 22434 if test "x$new_path" = x; then 22435 # It's still not found. Now this is an unrecoverable error. 22436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 22437 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 22438 has_space=`$ECHO "$complete" | $GREP " "` 22439 if test "x$has_space" != x; then 22440 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22441 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22442 fi 22443 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22444 fi 22445 fi 22446 22447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22450 # "foo.exe" is OK but "foo" is an error. 22451 # 22452 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22453 # It is also a way to make sure we got the proper file name for the real test later on. 22454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22455 if test "x$test_shortpath" = x; then 22456 # Short path failed, file does not exist as specified. 22457 # Try adding .exe or .cmd 22458 if test -f "${new_path}.exe"; then 22459 input_to_shortpath="${new_path}.exe" 22460 elif test -f "${new_path}.cmd"; then 22461 input_to_shortpath="${new_path}.cmd" 22462 else 22463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 22464 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 22465 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 22466 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 22467 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22468 fi 22469 else 22470 input_to_shortpath="$new_path" 22471 fi 22472 22473 # Call helper function which possibly converts this using DOS-style short mode. 22474 # If so, the updated path is stored in $new_path. 22475 new_path="$input_to_shortpath" 22476 22477 input_path="$input_to_shortpath" 22478 # Check if we need to convert this using DOS-style short mode. If the path 22479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22480 # take no chances and rewrite it. 22481 # Note: m4 eats our [], so we need to use [ and ] instead. 22482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22483 if test "x$has_forbidden_chars" != x; then 22484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22488 # Going to short mode and back again did indeed matter. Since short mode is 22489 # case insensitive, let's make it lowercase to improve readability. 22490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22491 # Now convert it back to Unix-stile (cygpath) 22492 input_path=`$CYGPATH -u "$shortmode_path"` 22493 new_path="$input_path" 22494 fi 22495 fi 22496 22497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22498 if test "x$test_cygdrive_prefix" = x; then 22499 # As a simple fix, exclude /usr/bin since it's not a real path. 22500 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 22501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22502 # a path prefixed by /cygdrive for fixpath to work. 22503 new_path="$CYGWIN_ROOT_PATH$input_path" 22504 fi 22505 fi 22506 22507 # remove trailing .exe if any 22508 new_path="${new_path/%.exe/}" 22509 22510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22511 22512 # First separate the path from the arguments. This will split at the first 22513 # space. 22514 complete="$AR" 22515 path="${complete%% *}" 22516 tmp="$complete EOL" 22517 arguments="${tmp#* }" 22518 22519 # Input might be given as Windows format, start by converting to 22520 # unix format. 22521 new_path="$path" 22522 22523 windows_path="$new_path" 22524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22525 unix_path=`$CYGPATH -u "$windows_path"` 22526 new_path="$unix_path" 22527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22529 new_path="$unix_path" 22530 fi 22531 22532 22533 # Now try to locate executable using which 22534 new_path=`$WHICH "$new_path" 2> /dev/null` 22535 22536 if test "x$new_path" = x; then 22537 # Oops. Which didn't find the executable. 22538 # The splitting of arguments from the executable at a space might have been incorrect, 22539 # since paths with space are more likely in Windows. Give it another try with the whole 22540 # argument. 22541 path="$complete" 22542 arguments="EOL" 22543 new_path="$path" 22544 22545 windows_path="$new_path" 22546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22547 unix_path=`$CYGPATH -u "$windows_path"` 22548 new_path="$unix_path" 22549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22551 new_path="$unix_path" 22552 fi 22553 22554 22555 new_path=`$WHICH "$new_path" 2> /dev/null` 22556 22557 if test "x$new_path" = x; then 22558 # It's still not found. Now this is an unrecoverable error. 22559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 22560 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 22561 has_space=`$ECHO "$complete" | $GREP " "` 22562 if test "x$has_space" != x; then 22563 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22564 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22565 fi 22566 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22567 fi 22568 fi 22569 22570 # Now new_path has a complete unix path to the binary 22571 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 22572 # Keep paths in /bin as-is, but remove trailing .exe if any 22573 new_path="${new_path/%.exe/}" 22574 # Do not save /bin paths to all_fixpath_prefixes! 22575 else 22576 # Not in mixed or Windows style, start by that. 22577 new_path=`cmd //c echo $new_path` 22578 22579 input_path="$new_path" 22580 # Check if we need to convert this using DOS-style short mode. If the path 22581 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22582 # take no chances and rewrite it. 22583 # Note: m4 eats our [], so we need to use [ and ] instead. 22584 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22585 if test "x$has_forbidden_chars" != x; then 22586 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22587 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22588 fi 22589 22590 # Output is in $new_path 22591 22592 windows_path="$new_path" 22593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22594 unix_path=`$CYGPATH -u "$windows_path"` 22595 new_path="$unix_path" 22596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22598 new_path="$unix_path" 22599 fi 22600 22601 # remove trailing .exe if any 22602 new_path="${new_path/%.exe/}" 22603 22604 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22605 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22606 fi 22607 22608 else 22609 # We're on a posix platform. Hooray! :) 22610 # First separate the path from the arguments. This will split at the first 22611 # space. 22612 complete="$AR" 22613 path="${complete%% *}" 22614 tmp="$complete EOL" 22615 arguments="${tmp#* }" 22616 22617 # Cannot rely on the command "which" here since it doesn't always work. 22618 is_absolute_path=`$ECHO "$path" | $GREP ^/` 22619 if test -z "$is_absolute_path"; then 22620 # Path to executable is not absolute. Find it. 22621 IFS_save="$IFS" 22622 IFS=: 22623 for p in $PATH; do 22624 if test -f "$p/$path" && test -x "$p/$path"; then 22625 new_path="$p/$path" 22626 break 22627 fi 22628 done 22629 IFS="$IFS_save" 22630 else 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AR (as $path) failed, using $path directly." >&5 22632 $as_echo "$as_me: Resolving AR (as $path) failed, using $path directly." >&6;} 22633 new_path="$path" 22634 fi 22635 22636 if test "x$new_path" = x; then 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 22638 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 22639 has_space=`$ECHO "$complete" | $GREP " "` 22640 if test "x$has_space" != x; then 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 22642 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 22643 fi 22644 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 22645 fi 22646 fi 22647 22648 # Now join together the path and the arguments once again 22649 if test "x$arguments" != xEOL; then 22650 new_complete="$new_path ${arguments% *}" 22651 else 22652 new_complete="$new_path" 22653 fi 22654 22655 if test "x$complete" != "x$new_complete"; then 22656 AR="$new_complete" 22657 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 22658 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 22659 fi 22660 22661 fi 22662 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 22663 ARFLAGS="-r" 22664 else 22665 ARFLAGS="" 22666 fi 22667 22668 22669 # For hotspot, we need these in Windows mixed path; other platforms keep them the same 22670 HOTSPOT_CXX="$CXX" 22671 HOTSPOT_LD="$LD" 22672 22673 22674 22675 COMPILER_NAME=gcc 22676 COMPILER_TYPE=CC 22677 if test "x$OPENJDK_TARGET_OS" = xwindows; then : 22678 22679 # For now, assume that we are always compiling using cl.exe. 22680 CC_OUT_OPTION=-Fo 22681 EXE_OUT_OPTION=-out: 22682 LD_OUT_OPTION=-out: 22683 AR_OUT_OPTION=-out: 22684 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin 22685 # program for something completely different. 22686 # Extract the first word of "link", so it can be a program name with args. 22687 set dummy link; ac_word=$2 22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22689 $as_echo_n "checking for $ac_word... " >&6; } 22690 if ${ac_cv_prog_WINLD+:} false; then : 22691 $as_echo_n "(cached) " >&6 22692 else 22693 if test -n "$WINLD"; then 22694 ac_cv_prog_WINLD="$WINLD" # Let the user override the test. 22695 else 22696 ac_prog_rejected=no 22697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22698 for as_dir in $PATH 22699 do 22700 IFS=$as_save_IFS 22701 test -z "$as_dir" && as_dir=. 22702 for ac_exec_ext in '' $ac_executable_extensions; do 22703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22704 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 22705 ac_prog_rejected=yes 22706 continue 22707 fi 22708 ac_cv_prog_WINLD="link" 22709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22710 break 2 22711 fi 22712 done 22713 done 22714 IFS=$as_save_IFS 22715 22716 if test $ac_prog_rejected = yes; then 22717 # We found a bogon in the path, so make sure we never use it. 22718 set dummy $ac_cv_prog_WINLD 22719 shift 22720 if test $# != 0; then 22721 # We chose a different compiler from the bogus one. 22722 # However, it has the same basename, so the bogon will be chosen 22723 # first if we set WINLD to just the basename; use the full file name. 22724 shift 22725 ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@" 22726 fi 22727 fi 22728 fi 22729 fi 22730 WINLD=$ac_cv_prog_WINLD 22731 if test -n "$WINLD"; then 22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5 22733 $as_echo "$WINLD" >&6; } 22734 else 22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22736 $as_echo "no" >&6; } 22737 fi 22738 22739 22740 # Since we must ignore the first found link, WINLD will contain 22741 # the full path to the link.exe program. 22742 22743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22744 22745 # First separate the path from the arguments. This will split at the first 22746 # space. 22747 complete="$WINLD" 22748 path="${complete%% *}" 22749 tmp="$complete EOL" 22750 arguments="${tmp#* }" 22751 22752 # Input might be given as Windows format, start by converting to 22753 # unix format. 22754 new_path=`$CYGPATH -u "$path"` 22755 22756 # Now try to locate executable using which 22757 new_path=`$WHICH "$new_path" 2> /dev/null` 22758 # bat and cmd files are not always considered executable in cygwin causing which 22759 # to not find them 22760 if test "x$new_path" = x \ 22761 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22762 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22763 new_path=`$CYGPATH -u "$path"` 22764 fi 22765 if test "x$new_path" = x; then 22766 # Oops. Which didn't find the executable. 22767 # The splitting of arguments from the executable at a space might have been incorrect, 22768 # since paths with space are more likely in Windows. Give it another try with the whole 22769 # argument. 22770 path="$complete" 22771 arguments="EOL" 22772 new_path=`$CYGPATH -u "$path"` 22773 new_path=`$WHICH "$new_path" 2> /dev/null` 22774 # bat and cmd files are not always considered executable in cygwin causing which 22775 # to not find them 22776 if test "x$new_path" = x \ 22777 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 22778 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 22779 new_path=`$CYGPATH -u "$path"` 22780 fi 22781 if test "x$new_path" = x; then 22782 # It's still not found. Now this is an unrecoverable error. 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 22784 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 22785 has_space=`$ECHO "$complete" | $GREP " "` 22786 if test "x$has_space" != x; then 22787 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22788 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22789 fi 22790 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22791 fi 22792 fi 22793 22794 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22795 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22796 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22797 # "foo.exe" is OK but "foo" is an error. 22798 # 22799 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22800 # It is also a way to make sure we got the proper file name for the real test later on. 22801 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22802 if test "x$test_shortpath" = x; then 22803 # Short path failed, file does not exist as specified. 22804 # Try adding .exe or .cmd 22805 if test -f "${new_path}.exe"; then 22806 input_to_shortpath="${new_path}.exe" 22807 elif test -f "${new_path}.cmd"; then 22808 input_to_shortpath="${new_path}.cmd" 22809 else 22810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$new_path\", is invalid." >&5 22811 $as_echo "$as_me: The path of WINLD, which resolves as \"$new_path\", is invalid." >&6;} 22812 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 22813 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 22814 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22815 fi 22816 else 22817 input_to_shortpath="$new_path" 22818 fi 22819 22820 # Call helper function which possibly converts this using DOS-style short mode. 22821 # If so, the updated path is stored in $new_path. 22822 new_path="$input_to_shortpath" 22823 22824 input_path="$input_to_shortpath" 22825 # Check if we need to convert this using DOS-style short mode. If the path 22826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22827 # take no chances and rewrite it. 22828 # Note: m4 eats our [], so we need to use [ and ] instead. 22829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22830 if test "x$has_forbidden_chars" != x; then 22831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22832 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22833 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22834 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22835 # Going to short mode and back again did indeed matter. Since short mode is 22836 # case insensitive, let's make it lowercase to improve readability. 22837 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22838 # Now convert it back to Unix-stile (cygpath) 22839 input_path=`$CYGPATH -u "$shortmode_path"` 22840 new_path="$input_path" 22841 fi 22842 fi 22843 22844 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22845 if test "x$test_cygdrive_prefix" = x; then 22846 # As a simple fix, exclude /usr/bin since it's not a real path. 22847 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 22848 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22849 # a path prefixed by /cygdrive for fixpath to work. 22850 new_path="$CYGWIN_ROOT_PATH$input_path" 22851 fi 22852 fi 22853 22854 # remove trailing .exe if any 22855 new_path="${new_path/%.exe/}" 22856 22857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22858 22859 # First separate the path from the arguments. This will split at the first 22860 # space. 22861 complete="$WINLD" 22862 path="${complete%% *}" 22863 tmp="$complete EOL" 22864 arguments="${tmp#* }" 22865 22866 # Input might be given as Windows format, start by converting to 22867 # unix format. 22868 new_path="$path" 22869 22870 windows_path="$new_path" 22871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22872 unix_path=`$CYGPATH -u "$windows_path"` 22873 new_path="$unix_path" 22874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22875 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22876 new_path="$unix_path" 22877 fi 22878 22879 22880 # Now try to locate executable using which 22881 new_path=`$WHICH "$new_path" 2> /dev/null` 22882 22883 if test "x$new_path" = x; then 22884 # Oops. Which didn't find the executable. 22885 # The splitting of arguments from the executable at a space might have been incorrect, 22886 # since paths with space are more likely in Windows. Give it another try with the whole 22887 # argument. 22888 path="$complete" 22889 arguments="EOL" 22890 new_path="$path" 22891 22892 windows_path="$new_path" 22893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22894 unix_path=`$CYGPATH -u "$windows_path"` 22895 new_path="$unix_path" 22896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22898 new_path="$unix_path" 22899 fi 22900 22901 22902 new_path=`$WHICH "$new_path" 2> /dev/null` 22903 22904 if test "x$new_path" = x; then 22905 # It's still not found. Now this is an unrecoverable error. 22906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 22907 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 22908 has_space=`$ECHO "$complete" | $GREP " "` 22909 if test "x$has_space" != x; then 22910 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 22911 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 22912 fi 22913 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22914 fi 22915 fi 22916 22917 # Now new_path has a complete unix path to the binary 22918 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 22919 # Keep paths in /bin as-is, but remove trailing .exe if any 22920 new_path="${new_path/%.exe/}" 22921 # Do not save /bin paths to all_fixpath_prefixes! 22922 else 22923 # Not in mixed or Windows style, start by that. 22924 new_path=`cmd //c echo $new_path` 22925 22926 input_path="$new_path" 22927 # Check if we need to convert this using DOS-style short mode. If the path 22928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22929 # take no chances and rewrite it. 22930 # Note: m4 eats our [], so we need to use [ and ] instead. 22931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22932 if test "x$has_forbidden_chars" != x; then 22933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22934 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22935 fi 22936 22937 # Output is in $new_path 22938 22939 windows_path="$new_path" 22940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22941 unix_path=`$CYGPATH -u "$windows_path"` 22942 new_path="$unix_path" 22943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22944 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22945 new_path="$unix_path" 22946 fi 22947 22948 # remove trailing .exe if any 22949 new_path="${new_path/%.exe/}" 22950 22951 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22952 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22953 fi 22954 22955 else 22956 # We're on a posix platform. Hooray! :) 22957 # First separate the path from the arguments. This will split at the first 22958 # space. 22959 complete="$WINLD" 22960 path="${complete%% *}" 22961 tmp="$complete EOL" 22962 arguments="${tmp#* }" 22963 22964 # Cannot rely on the command "which" here since it doesn't always work. 22965 is_absolute_path=`$ECHO "$path" | $GREP ^/` 22966 if test -z "$is_absolute_path"; then 22967 # Path to executable is not absolute. Find it. 22968 IFS_save="$IFS" 22969 IFS=: 22970 for p in $PATH; do 22971 if test -f "$p/$path" && test -x "$p/$path"; then 22972 new_path="$p/$path" 22973 break 22974 fi 22975 done 22976 IFS="$IFS_save" 22977 else 22978 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINLD (as $path) failed, using $path directly." >&5 22979 $as_echo "$as_me: Resolving WINLD (as $path) failed, using $path directly." >&6;} 22980 new_path="$path" 22981 fi 22982 22983 if test "x$new_path" = x; then 22984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 22985 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 22986 has_space=`$ECHO "$complete" | $GREP " "` 22987 if test "x$has_space" != x; then 22988 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 22989 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 22990 fi 22991 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 22992 fi 22993 fi 22994 22995 # Now join together the path and the arguments once again 22996 if test "x$arguments" != xEOL; then 22997 new_complete="$new_path ${arguments% *}" 22998 else 22999 new_complete="$new_path" 23000 fi 23001 23002 if test "x$complete" != "x$new_complete"; then 23003 WINLD="$new_complete" 23004 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINLD to \"$new_complete\"" >&5 23005 $as_echo "$as_me: Rewriting WINLD to \"$new_complete\"" >&6;} 23006 fi 23007 23008 printf "Windows linker was found at $WINLD\n" 23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 23010 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 23011 "$WINLD" --version > /dev/null 23012 if test $? -eq 0 ; then 23013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23014 $as_echo "no" >&6; } 23015 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 23016 else 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23018 $as_echo "yes" >&6; } 23019 fi 23020 LD="$WINLD" 23021 LDEXE="$WINLD" 23022 LDCXX="$WINLD" 23023 LDEXECXX="$WINLD" 23024 23025 # Extract the first word of "mt", so it can be a program name with args. 23026 set dummy mt; ac_word=$2 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23028 $as_echo_n "checking for $ac_word... " >&6; } 23029 if ${ac_cv_prog_MT+:} false; then : 23030 $as_echo_n "(cached) " >&6 23031 else 23032 if test -n "$MT"; then 23033 ac_cv_prog_MT="$MT" # Let the user override the test. 23034 else 23035 ac_prog_rejected=no 23036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23037 for as_dir in $PATH 23038 do 23039 IFS=$as_save_IFS 23040 test -z "$as_dir" && as_dir=. 23041 for ac_exec_ext in '' $ac_executable_extensions; do 23042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 23044 ac_prog_rejected=yes 23045 continue 23046 fi 23047 ac_cv_prog_MT="mt" 23048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23049 break 2 23050 fi 23051 done 23052 done 23053 IFS=$as_save_IFS 23054 23055 if test $ac_prog_rejected = yes; then 23056 # We found a bogon in the path, so make sure we never use it. 23057 set dummy $ac_cv_prog_MT 23058 shift 23059 if test $# != 0; then 23060 # We chose a different compiler from the bogus one. 23061 # However, it has the same basename, so the bogon will be chosen 23062 # first if we set MT to just the basename; use the full file name. 23063 shift 23064 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 23065 fi 23066 fi 23067 fi 23068 fi 23069 MT=$ac_cv_prog_MT 23070 if test -n "$MT"; then 23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 23072 $as_echo "$MT" >&6; } 23073 else 23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23075 $as_echo "no" >&6; } 23076 fi 23077 23078 23079 23080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23081 23082 # First separate the path from the arguments. This will split at the first 23083 # space. 23084 complete="$MT" 23085 path="${complete%% *}" 23086 tmp="$complete EOL" 23087 arguments="${tmp#* }" 23088 23089 # Input might be given as Windows format, start by converting to 23090 # unix format. 23091 new_path=`$CYGPATH -u "$path"` 23092 23093 # Now try to locate executable using which 23094 new_path=`$WHICH "$new_path" 2> /dev/null` 23095 # bat and cmd files are not always considered executable in cygwin causing which 23096 # to not find them 23097 if test "x$new_path" = x \ 23098 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23099 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23100 new_path=`$CYGPATH -u "$path"` 23101 fi 23102 if test "x$new_path" = x; then 23103 # Oops. Which didn't find the executable. 23104 # The splitting of arguments from the executable at a space might have been incorrect, 23105 # since paths with space are more likely in Windows. Give it another try with the whole 23106 # argument. 23107 path="$complete" 23108 arguments="EOL" 23109 new_path=`$CYGPATH -u "$path"` 23110 new_path=`$WHICH "$new_path" 2> /dev/null` 23111 # bat and cmd files are not always considered executable in cygwin causing which 23112 # to not find them 23113 if test "x$new_path" = x \ 23114 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23115 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23116 new_path=`$CYGPATH -u "$path"` 23117 fi 23118 if test "x$new_path" = x; then 23119 # It's still not found. Now this is an unrecoverable error. 23120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 23121 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 23122 has_space=`$ECHO "$complete" | $GREP " "` 23123 if test "x$has_space" != x; then 23124 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23125 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23126 fi 23127 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 23128 fi 23129 fi 23130 23131 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23132 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23133 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23134 # "foo.exe" is OK but "foo" is an error. 23135 # 23136 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23137 # It is also a way to make sure we got the proper file name for the real test later on. 23138 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23139 if test "x$test_shortpath" = x; then 23140 # Short path failed, file does not exist as specified. 23141 # Try adding .exe or .cmd 23142 if test -f "${new_path}.exe"; then 23143 input_to_shortpath="${new_path}.exe" 23144 elif test -f "${new_path}.cmd"; then 23145 input_to_shortpath="${new_path}.cmd" 23146 else 23147 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 23148 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 23149 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 23150 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 23151 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 23152 fi 23153 else 23154 input_to_shortpath="$new_path" 23155 fi 23156 23157 # Call helper function which possibly converts this using DOS-style short mode. 23158 # If so, the updated path is stored in $new_path. 23159 new_path="$input_to_shortpath" 23160 23161 input_path="$input_to_shortpath" 23162 # Check if we need to convert this using DOS-style short mode. If the path 23163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23164 # take no chances and rewrite it. 23165 # Note: m4 eats our [], so we need to use [ and ] instead. 23166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23167 if test "x$has_forbidden_chars" != x; then 23168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23169 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23170 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23171 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23172 # Going to short mode and back again did indeed matter. Since short mode is 23173 # case insensitive, let's make it lowercase to improve readability. 23174 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23175 # Now convert it back to Unix-stile (cygpath) 23176 input_path=`$CYGPATH -u "$shortmode_path"` 23177 new_path="$input_path" 23178 fi 23179 fi 23180 23181 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23182 if test "x$test_cygdrive_prefix" = x; then 23183 # As a simple fix, exclude /usr/bin since it's not a real path. 23184 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 23185 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23186 # a path prefixed by /cygdrive for fixpath to work. 23187 new_path="$CYGWIN_ROOT_PATH$input_path" 23188 fi 23189 fi 23190 23191 # remove trailing .exe if any 23192 new_path="${new_path/%.exe/}" 23193 23194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23195 23196 # First separate the path from the arguments. This will split at the first 23197 # space. 23198 complete="$MT" 23199 path="${complete%% *}" 23200 tmp="$complete EOL" 23201 arguments="${tmp#* }" 23202 23203 # Input might be given as Windows format, start by converting to 23204 # unix format. 23205 new_path="$path" 23206 23207 windows_path="$new_path" 23208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23209 unix_path=`$CYGPATH -u "$windows_path"` 23210 new_path="$unix_path" 23211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23212 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23213 new_path="$unix_path" 23214 fi 23215 23216 23217 # Now try to locate executable using which 23218 new_path=`$WHICH "$new_path" 2> /dev/null` 23219 23220 if test "x$new_path" = x; then 23221 # Oops. Which didn't find the executable. 23222 # The splitting of arguments from the executable at a space might have been incorrect, 23223 # since paths with space are more likely in Windows. Give it another try with the whole 23224 # argument. 23225 path="$complete" 23226 arguments="EOL" 23227 new_path="$path" 23228 23229 windows_path="$new_path" 23230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23231 unix_path=`$CYGPATH -u "$windows_path"` 23232 new_path="$unix_path" 23233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23235 new_path="$unix_path" 23236 fi 23237 23238 23239 new_path=`$WHICH "$new_path" 2> /dev/null` 23240 23241 if test "x$new_path" = x; then 23242 # It's still not found. Now this is an unrecoverable error. 23243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 23244 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 23245 has_space=`$ECHO "$complete" | $GREP " "` 23246 if test "x$has_space" != x; then 23247 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23248 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23249 fi 23250 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 23251 fi 23252 fi 23253 23254 # Now new_path has a complete unix path to the binary 23255 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 23256 # Keep paths in /bin as-is, but remove trailing .exe if any 23257 new_path="${new_path/%.exe/}" 23258 # Do not save /bin paths to all_fixpath_prefixes! 23259 else 23260 # Not in mixed or Windows style, start by that. 23261 new_path=`cmd //c echo $new_path` 23262 23263 input_path="$new_path" 23264 # Check if we need to convert this using DOS-style short mode. If the path 23265 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23266 # take no chances and rewrite it. 23267 # Note: m4 eats our [], so we need to use [ and ] instead. 23268 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23269 if test "x$has_forbidden_chars" != x; then 23270 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23271 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23272 fi 23273 23274 # Output is in $new_path 23275 23276 windows_path="$new_path" 23277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23278 unix_path=`$CYGPATH -u "$windows_path"` 23279 new_path="$unix_path" 23280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23282 new_path="$unix_path" 23283 fi 23284 23285 # remove trailing .exe if any 23286 new_path="${new_path/%.exe/}" 23287 23288 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23289 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23290 fi 23291 23292 else 23293 # We're on a posix platform. Hooray! :) 23294 # First separate the path from the arguments. This will split at the first 23295 # space. 23296 complete="$MT" 23297 path="${complete%% *}" 23298 tmp="$complete EOL" 23299 arguments="${tmp#* }" 23300 23301 # Cannot rely on the command "which" here since it doesn't always work. 23302 is_absolute_path=`$ECHO "$path" | $GREP ^/` 23303 if test -z "$is_absolute_path"; then 23304 # Path to executable is not absolute. Find it. 23305 IFS_save="$IFS" 23306 IFS=: 23307 for p in $PATH; do 23308 if test -f "$p/$path" && test -x "$p/$path"; then 23309 new_path="$p/$path" 23310 break 23311 fi 23312 done 23313 IFS="$IFS_save" 23314 else 23315 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MT (as $path) failed, using $path directly." >&5 23316 $as_echo "$as_me: Resolving MT (as $path) failed, using $path directly." >&6;} 23317 new_path="$path" 23318 fi 23319 23320 if test "x$new_path" = x; then 23321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 23322 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 23323 has_space=`$ECHO "$complete" | $GREP " "` 23324 if test "x$has_space" != x; then 23325 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 23326 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 23327 fi 23328 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 23329 fi 23330 fi 23331 23332 # Now join together the path and the arguments once again 23333 if test "x$arguments" != xEOL; then 23334 new_complete="$new_path ${arguments% *}" 23335 else 23336 new_complete="$new_path" 23337 fi 23338 23339 if test "x$complete" != "x$new_complete"; then 23340 MT="$new_complete" 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 23342 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 23343 fi 23344 23345 # The resource compiler 23346 # Extract the first word of "rc", so it can be a program name with args. 23347 set dummy rc; ac_word=$2 23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23349 $as_echo_n "checking for $ac_word... " >&6; } 23350 if ${ac_cv_prog_RC+:} false; then : 23351 $as_echo_n "(cached) " >&6 23352 else 23353 if test -n "$RC"; then 23354 ac_cv_prog_RC="$RC" # Let the user override the test. 23355 else 23356 ac_prog_rejected=no 23357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23358 for as_dir in $PATH 23359 do 23360 IFS=$as_save_IFS 23361 test -z "$as_dir" && as_dir=. 23362 for ac_exec_ext in '' $ac_executable_extensions; do 23363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 23365 ac_prog_rejected=yes 23366 continue 23367 fi 23368 ac_cv_prog_RC="rc" 23369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23370 break 2 23371 fi 23372 done 23373 done 23374 IFS=$as_save_IFS 23375 23376 if test $ac_prog_rejected = yes; then 23377 # We found a bogon in the path, so make sure we never use it. 23378 set dummy $ac_cv_prog_RC 23379 shift 23380 if test $# != 0; then 23381 # We chose a different compiler from the bogus one. 23382 # However, it has the same basename, so the bogon will be chosen 23383 # first if we set RC to just the basename; use the full file name. 23384 shift 23385 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 23386 fi 23387 fi 23388 fi 23389 fi 23390 RC=$ac_cv_prog_RC 23391 if test -n "$RC"; then 23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 23393 $as_echo "$RC" >&6; } 23394 else 23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23396 $as_echo "no" >&6; } 23397 fi 23398 23399 23400 23401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23402 23403 # First separate the path from the arguments. This will split at the first 23404 # space. 23405 complete="$RC" 23406 path="${complete%% *}" 23407 tmp="$complete EOL" 23408 arguments="${tmp#* }" 23409 23410 # Input might be given as Windows format, start by converting to 23411 # unix format. 23412 new_path=`$CYGPATH -u "$path"` 23413 23414 # Now try to locate executable using which 23415 new_path=`$WHICH "$new_path" 2> /dev/null` 23416 # bat and cmd files are not always considered executable in cygwin causing which 23417 # to not find them 23418 if test "x$new_path" = x \ 23419 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23420 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23421 new_path=`$CYGPATH -u "$path"` 23422 fi 23423 if test "x$new_path" = x; then 23424 # Oops. Which didn't find the executable. 23425 # The splitting of arguments from the executable at a space might have been incorrect, 23426 # since paths with space are more likely in Windows. Give it another try with the whole 23427 # argument. 23428 path="$complete" 23429 arguments="EOL" 23430 new_path=`$CYGPATH -u "$path"` 23431 new_path=`$WHICH "$new_path" 2> /dev/null` 23432 # bat and cmd files are not always considered executable in cygwin causing which 23433 # to not find them 23434 if test "x$new_path" = x \ 23435 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23436 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23437 new_path=`$CYGPATH -u "$path"` 23438 fi 23439 if test "x$new_path" = x; then 23440 # It's still not found. Now this is an unrecoverable error. 23441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 23442 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 23443 has_space=`$ECHO "$complete" | $GREP " "` 23444 if test "x$has_space" != x; then 23445 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23446 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23447 fi 23448 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23449 fi 23450 fi 23451 23452 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23453 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23454 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23455 # "foo.exe" is OK but "foo" is an error. 23456 # 23457 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23458 # It is also a way to make sure we got the proper file name for the real test later on. 23459 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23460 if test "x$test_shortpath" = x; then 23461 # Short path failed, file does not exist as specified. 23462 # Try adding .exe or .cmd 23463 if test -f "${new_path}.exe"; then 23464 input_to_shortpath="${new_path}.exe" 23465 elif test -f "${new_path}.cmd"; then 23466 input_to_shortpath="${new_path}.cmd" 23467 else 23468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 23469 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 23470 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 23471 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 23472 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23473 fi 23474 else 23475 input_to_shortpath="$new_path" 23476 fi 23477 23478 # Call helper function which possibly converts this using DOS-style short mode. 23479 # If so, the updated path is stored in $new_path. 23480 new_path="$input_to_shortpath" 23481 23482 input_path="$input_to_shortpath" 23483 # Check if we need to convert this using DOS-style short mode. If the path 23484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23485 # take no chances and rewrite it. 23486 # Note: m4 eats our [], so we need to use [ and ] instead. 23487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23488 if test "x$has_forbidden_chars" != x; then 23489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23490 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23491 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23492 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23493 # Going to short mode and back again did indeed matter. Since short mode is 23494 # case insensitive, let's make it lowercase to improve readability. 23495 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23496 # Now convert it back to Unix-stile (cygpath) 23497 input_path=`$CYGPATH -u "$shortmode_path"` 23498 new_path="$input_path" 23499 fi 23500 fi 23501 23502 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23503 if test "x$test_cygdrive_prefix" = x; then 23504 # As a simple fix, exclude /usr/bin since it's not a real path. 23505 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 23506 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23507 # a path prefixed by /cygdrive for fixpath to work. 23508 new_path="$CYGWIN_ROOT_PATH$input_path" 23509 fi 23510 fi 23511 23512 # remove trailing .exe if any 23513 new_path="${new_path/%.exe/}" 23514 23515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23516 23517 # First separate the path from the arguments. This will split at the first 23518 # space. 23519 complete="$RC" 23520 path="${complete%% *}" 23521 tmp="$complete EOL" 23522 arguments="${tmp#* }" 23523 23524 # Input might be given as Windows format, start by converting to 23525 # unix format. 23526 new_path="$path" 23527 23528 windows_path="$new_path" 23529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23530 unix_path=`$CYGPATH -u "$windows_path"` 23531 new_path="$unix_path" 23532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23534 new_path="$unix_path" 23535 fi 23536 23537 23538 # Now try to locate executable using which 23539 new_path=`$WHICH "$new_path" 2> /dev/null` 23540 23541 if test "x$new_path" = x; then 23542 # Oops. Which didn't find the executable. 23543 # The splitting of arguments from the executable at a space might have been incorrect, 23544 # since paths with space are more likely in Windows. Give it another try with the whole 23545 # argument. 23546 path="$complete" 23547 arguments="EOL" 23548 new_path="$path" 23549 23550 windows_path="$new_path" 23551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23552 unix_path=`$CYGPATH -u "$windows_path"` 23553 new_path="$unix_path" 23554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23556 new_path="$unix_path" 23557 fi 23558 23559 23560 new_path=`$WHICH "$new_path" 2> /dev/null` 23561 23562 if test "x$new_path" = x; then 23563 # It's still not found. Now this is an unrecoverable error. 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 23565 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 23566 has_space=`$ECHO "$complete" | $GREP " "` 23567 if test "x$has_space" != x; then 23568 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23569 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23570 fi 23571 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23572 fi 23573 fi 23574 23575 # Now new_path has a complete unix path to the binary 23576 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 23577 # Keep paths in /bin as-is, but remove trailing .exe if any 23578 new_path="${new_path/%.exe/}" 23579 # Do not save /bin paths to all_fixpath_prefixes! 23580 else 23581 # Not in mixed or Windows style, start by that. 23582 new_path=`cmd //c echo $new_path` 23583 23584 input_path="$new_path" 23585 # Check if we need to convert this using DOS-style short mode. If the path 23586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23587 # take no chances and rewrite it. 23588 # Note: m4 eats our [], so we need to use [ and ] instead. 23589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23590 if test "x$has_forbidden_chars" != x; then 23591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23592 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23593 fi 23594 23595 # Output is in $new_path 23596 23597 windows_path="$new_path" 23598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23599 unix_path=`$CYGPATH -u "$windows_path"` 23600 new_path="$unix_path" 23601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23603 new_path="$unix_path" 23604 fi 23605 23606 # remove trailing .exe if any 23607 new_path="${new_path/%.exe/}" 23608 23609 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23610 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23611 fi 23612 23613 else 23614 # We're on a posix platform. Hooray! :) 23615 # First separate the path from the arguments. This will split at the first 23616 # space. 23617 complete="$RC" 23618 path="${complete%% *}" 23619 tmp="$complete EOL" 23620 arguments="${tmp#* }" 23621 23622 # Cannot rely on the command "which" here since it doesn't always work. 23623 is_absolute_path=`$ECHO "$path" | $GREP ^/` 23624 if test -z "$is_absolute_path"; then 23625 # Path to executable is not absolute. Find it. 23626 IFS_save="$IFS" 23627 IFS=: 23628 for p in $PATH; do 23629 if test -f "$p/$path" && test -x "$p/$path"; then 23630 new_path="$p/$path" 23631 break 23632 fi 23633 done 23634 IFS="$IFS_save" 23635 else 23636 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving RC (as $path) failed, using $path directly." >&5 23637 $as_echo "$as_me: Resolving RC (as $path) failed, using $path directly." >&6;} 23638 new_path="$path" 23639 fi 23640 23641 if test "x$new_path" = x; then 23642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 23643 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 23644 has_space=`$ECHO "$complete" | $GREP " "` 23645 if test "x$has_space" != x; then 23646 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 23647 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 23648 fi 23649 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 23650 fi 23651 fi 23652 23653 # Now join together the path and the arguments once again 23654 if test "x$arguments" != xEOL; then 23655 new_complete="$new_path ${arguments% *}" 23656 else 23657 new_complete="$new_path" 23658 fi 23659 23660 if test "x$complete" != "x$new_complete"; then 23661 RC="$new_complete" 23662 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 23663 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 23664 fi 23665 23666 23667 # For hotspot, we need these in Windows mixed path, 23668 # so rewrite them all. Need added .exe suffix. 23669 HOTSPOT_CXX="$CXX.exe" 23670 HOTSPOT_LD="$LD.exe" 23671 HOTSPOT_MT="$MT.exe" 23672 HOTSPOT_RC="$RC.exe" 23673 23674 unix_path="$HOTSPOT_CXX" 23675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23676 windows_path=`$CYGPATH -m "$unix_path"` 23677 HOTSPOT_CXX="$windows_path" 23678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23679 windows_path=`cmd //c echo $unix_path` 23680 HOTSPOT_CXX="$windows_path" 23681 fi 23682 23683 23684 unix_path="$HOTSPOT_LD" 23685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23686 windows_path=`$CYGPATH -m "$unix_path"` 23687 HOTSPOT_LD="$windows_path" 23688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23689 windows_path=`cmd //c echo $unix_path` 23690 HOTSPOT_LD="$windows_path" 23691 fi 23692 23693 23694 unix_path="$HOTSPOT_MT" 23695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23696 windows_path=`$CYGPATH -m "$unix_path"` 23697 HOTSPOT_MT="$windows_path" 23698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23699 windows_path=`cmd //c echo $unix_path` 23700 HOTSPOT_MT="$windows_path" 23701 fi 23702 23703 23704 unix_path="$HOTSPOT_RC" 23705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23706 windows_path=`$CYGPATH -m "$unix_path"` 23707 HOTSPOT_RC="$windows_path" 23708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23709 windows_path=`cmd //c echo $unix_path` 23710 HOTSPOT_RC="$windows_path" 23711 fi 23712 23713 23714 23715 23716 RC_FLAGS="-nologo -l 0x409 -r" 23717 if test "x$VARIANT" = xOPT; then : 23718 23719 RC_FLAGS="$RC_FLAGS -d NDEBUG" 23720 23721 fi 23722 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION 23723 if test "x$JDK_UPDATE_VERSION" = x; then : 23724 23725 JDK_UPDATE_VERSION_NOTNULL=0 23726 23727 fi 23728 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\"" 23729 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\"" 23730 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\"" 23731 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\"" 23732 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\"" 23733 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\"" 23734 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\"" 23735 23736 # lib.exe is used to create static libraries. 23737 # Extract the first word of "lib", so it can be a program name with args. 23738 set dummy lib; ac_word=$2 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23740 $as_echo_n "checking for $ac_word... " >&6; } 23741 if ${ac_cv_prog_WINAR+:} false; then : 23742 $as_echo_n "(cached) " >&6 23743 else 23744 if test -n "$WINAR"; then 23745 ac_cv_prog_WINAR="$WINAR" # Let the user override the test. 23746 else 23747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23748 for as_dir in $PATH 23749 do 23750 IFS=$as_save_IFS 23751 test -z "$as_dir" && as_dir=. 23752 for ac_exec_ext in '' $ac_executable_extensions; do 23753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23754 ac_cv_prog_WINAR="lib" 23755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23756 break 2 23757 fi 23758 done 23759 done 23760 IFS=$as_save_IFS 23761 23762 fi 23763 fi 23764 WINAR=$ac_cv_prog_WINAR 23765 if test -n "$WINAR"; then 23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5 23767 $as_echo "$WINAR" >&6; } 23768 else 23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23770 $as_echo "no" >&6; } 23771 fi 23772 23773 23774 23775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23776 23777 # First separate the path from the arguments. This will split at the first 23778 # space. 23779 complete="$WINAR" 23780 path="${complete%% *}" 23781 tmp="$complete EOL" 23782 arguments="${tmp#* }" 23783 23784 # Input might be given as Windows format, start by converting to 23785 # unix format. 23786 new_path=`$CYGPATH -u "$path"` 23787 23788 # Now try to locate executable using which 23789 new_path=`$WHICH "$new_path" 2> /dev/null` 23790 # bat and cmd files are not always considered executable in cygwin causing which 23791 # to not find them 23792 if test "x$new_path" = x \ 23793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23795 new_path=`$CYGPATH -u "$path"` 23796 fi 23797 if test "x$new_path" = x; then 23798 # Oops. Which didn't find the executable. 23799 # The splitting of arguments from the executable at a space might have been incorrect, 23800 # since paths with space are more likely in Windows. Give it another try with the whole 23801 # argument. 23802 path="$complete" 23803 arguments="EOL" 23804 new_path=`$CYGPATH -u "$path"` 23805 new_path=`$WHICH "$new_path" 2> /dev/null` 23806 # bat and cmd files are not always considered executable in cygwin causing which 23807 # to not find them 23808 if test "x$new_path" = x \ 23809 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 23810 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 23811 new_path=`$CYGPATH -u "$path"` 23812 fi 23813 if test "x$new_path" = x; then 23814 # It's still not found. Now this is an unrecoverable error. 23815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 23816 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 23817 has_space=`$ECHO "$complete" | $GREP " "` 23818 if test "x$has_space" != x; then 23819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23821 fi 23822 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 23823 fi 23824 fi 23825 23826 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23827 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23828 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23829 # "foo.exe" is OK but "foo" is an error. 23830 # 23831 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23832 # It is also a way to make sure we got the proper file name for the real test later on. 23833 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23834 if test "x$test_shortpath" = x; then 23835 # Short path failed, file does not exist as specified. 23836 # Try adding .exe or .cmd 23837 if test -f "${new_path}.exe"; then 23838 input_to_shortpath="${new_path}.exe" 23839 elif test -f "${new_path}.cmd"; then 23840 input_to_shortpath="${new_path}.cmd" 23841 else 23842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$new_path\", is invalid." >&5 23843 $as_echo "$as_me: The path of WINAR, which resolves as \"$new_path\", is invalid." >&6;} 23844 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 23845 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 23846 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 23847 fi 23848 else 23849 input_to_shortpath="$new_path" 23850 fi 23851 23852 # Call helper function which possibly converts this using DOS-style short mode. 23853 # If so, the updated path is stored in $new_path. 23854 new_path="$input_to_shortpath" 23855 23856 input_path="$input_to_shortpath" 23857 # Check if we need to convert this using DOS-style short mode. If the path 23858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23859 # take no chances and rewrite it. 23860 # Note: m4 eats our [], so we need to use [ and ] instead. 23861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23862 if test "x$has_forbidden_chars" != x; then 23863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23867 # Going to short mode and back again did indeed matter. Since short mode is 23868 # case insensitive, let's make it lowercase to improve readability. 23869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23870 # Now convert it back to Unix-stile (cygpath) 23871 input_path=`$CYGPATH -u "$shortmode_path"` 23872 new_path="$input_path" 23873 fi 23874 fi 23875 23876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23877 if test "x$test_cygdrive_prefix" = x; then 23878 # As a simple fix, exclude /usr/bin since it's not a real path. 23879 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 23880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23881 # a path prefixed by /cygdrive for fixpath to work. 23882 new_path="$CYGWIN_ROOT_PATH$input_path" 23883 fi 23884 fi 23885 23886 # remove trailing .exe if any 23887 new_path="${new_path/%.exe/}" 23888 23889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23890 23891 # First separate the path from the arguments. This will split at the first 23892 # space. 23893 complete="$WINAR" 23894 path="${complete%% *}" 23895 tmp="$complete EOL" 23896 arguments="${tmp#* }" 23897 23898 # Input might be given as Windows format, start by converting to 23899 # unix format. 23900 new_path="$path" 23901 23902 windows_path="$new_path" 23903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23904 unix_path=`$CYGPATH -u "$windows_path"` 23905 new_path="$unix_path" 23906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23908 new_path="$unix_path" 23909 fi 23910 23911 23912 # Now try to locate executable using which 23913 new_path=`$WHICH "$new_path" 2> /dev/null` 23914 23915 if test "x$new_path" = x; then 23916 # Oops. Which didn't find the executable. 23917 # The splitting of arguments from the executable at a space might have been incorrect, 23918 # since paths with space are more likely in Windows. Give it another try with the whole 23919 # argument. 23920 path="$complete" 23921 arguments="EOL" 23922 new_path="$path" 23923 23924 windows_path="$new_path" 23925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23926 unix_path=`$CYGPATH -u "$windows_path"` 23927 new_path="$unix_path" 23928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23930 new_path="$unix_path" 23931 fi 23932 23933 23934 new_path=`$WHICH "$new_path" 2> /dev/null` 23935 23936 if test "x$new_path" = x; then 23937 # It's still not found. Now this is an unrecoverable error. 23938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 23939 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 23940 has_space=`$ECHO "$complete" | $GREP " "` 23941 if test "x$has_space" != x; then 23942 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 23943 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 23944 fi 23945 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 23946 fi 23947 fi 23948 23949 # Now new_path has a complete unix path to the binary 23950 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 23951 # Keep paths in /bin as-is, but remove trailing .exe if any 23952 new_path="${new_path/%.exe/}" 23953 # Do not save /bin paths to all_fixpath_prefixes! 23954 else 23955 # Not in mixed or Windows style, start by that. 23956 new_path=`cmd //c echo $new_path` 23957 23958 input_path="$new_path" 23959 # Check if we need to convert this using DOS-style short mode. If the path 23960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23961 # take no chances and rewrite it. 23962 # Note: m4 eats our [], so we need to use [ and ] instead. 23963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23964 if test "x$has_forbidden_chars" != x; then 23965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23966 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23967 fi 23968 23969 # Output is in $new_path 23970 23971 windows_path="$new_path" 23972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23973 unix_path=`$CYGPATH -u "$windows_path"` 23974 new_path="$unix_path" 23975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23977 new_path="$unix_path" 23978 fi 23979 23980 # remove trailing .exe if any 23981 new_path="${new_path/%.exe/}" 23982 23983 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23984 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23985 fi 23986 23987 else 23988 # We're on a posix platform. Hooray! :) 23989 # First separate the path from the arguments. This will split at the first 23990 # space. 23991 complete="$WINAR" 23992 path="${complete%% *}" 23993 tmp="$complete EOL" 23994 arguments="${tmp#* }" 23995 23996 # Cannot rely on the command "which" here since it doesn't always work. 23997 is_absolute_path=`$ECHO "$path" | $GREP ^/` 23998 if test -z "$is_absolute_path"; then 23999 # Path to executable is not absolute. Find it. 24000 IFS_save="$IFS" 24001 IFS=: 24002 for p in $PATH; do 24003 if test -f "$p/$path" && test -x "$p/$path"; then 24004 new_path="$p/$path" 24005 break 24006 fi 24007 done 24008 IFS="$IFS_save" 24009 else 24010 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINAR (as $path) failed, using $path directly." >&5 24011 $as_echo "$as_me: Resolving WINAR (as $path) failed, using $path directly." >&6;} 24012 new_path="$path" 24013 fi 24014 24015 if test "x$new_path" = x; then 24016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 24017 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 24018 has_space=`$ECHO "$complete" | $GREP " "` 24019 if test "x$has_space" != x; then 24020 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 24021 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 24022 fi 24023 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 24024 fi 24025 fi 24026 24027 # Now join together the path and the arguments once again 24028 if test "x$arguments" != xEOL; then 24029 new_complete="$new_path ${arguments% *}" 24030 else 24031 new_complete="$new_path" 24032 fi 24033 24034 if test "x$complete" != "x$new_complete"; then 24035 WINAR="$new_complete" 24036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5 24037 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;} 24038 fi 24039 24040 AR="$WINAR" 24041 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 24042 24043 # Extract the first word of "dumpbin", so it can be a program name with args. 24044 set dummy dumpbin; ac_word=$2 24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24046 $as_echo_n "checking for $ac_word... " >&6; } 24047 if ${ac_cv_prog_DUMPBIN+:} false; then : 24048 $as_echo_n "(cached) " >&6 24049 else 24050 if test -n "$DUMPBIN"; then 24051 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 24052 else 24053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24054 for as_dir in $PATH 24055 do 24056 IFS=$as_save_IFS 24057 test -z "$as_dir" && as_dir=. 24058 for ac_exec_ext in '' $ac_executable_extensions; do 24059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24060 ac_cv_prog_DUMPBIN="dumpbin" 24061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24062 break 2 24063 fi 24064 done 24065 done 24066 IFS=$as_save_IFS 24067 24068 fi 24069 fi 24070 DUMPBIN=$ac_cv_prog_DUMPBIN 24071 if test -n "$DUMPBIN"; then 24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 24073 $as_echo "$DUMPBIN" >&6; } 24074 else 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24076 $as_echo "no" >&6; } 24077 fi 24078 24079 24080 24081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24082 24083 # First separate the path from the arguments. This will split at the first 24084 # space. 24085 complete="$DUMPBIN" 24086 path="${complete%% *}" 24087 tmp="$complete EOL" 24088 arguments="${tmp#* }" 24089 24090 # Input might be given as Windows format, start by converting to 24091 # unix format. 24092 new_path=`$CYGPATH -u "$path"` 24093 24094 # Now try to locate executable using which 24095 new_path=`$WHICH "$new_path" 2> /dev/null` 24096 # bat and cmd files are not always considered executable in cygwin causing which 24097 # to not find them 24098 if test "x$new_path" = x \ 24099 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24100 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24101 new_path=`$CYGPATH -u "$path"` 24102 fi 24103 if test "x$new_path" = x; then 24104 # Oops. Which didn't find the executable. 24105 # The splitting of arguments from the executable at a space might have been incorrect, 24106 # since paths with space are more likely in Windows. Give it another try with the whole 24107 # argument. 24108 path="$complete" 24109 arguments="EOL" 24110 new_path=`$CYGPATH -u "$path"` 24111 new_path=`$WHICH "$new_path" 2> /dev/null` 24112 # bat and cmd files are not always considered executable in cygwin causing which 24113 # to not find them 24114 if test "x$new_path" = x \ 24115 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24116 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24117 new_path=`$CYGPATH -u "$path"` 24118 fi 24119 if test "x$new_path" = x; then 24120 # It's still not found. Now this is an unrecoverable error. 24121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 24122 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 24123 has_space=`$ECHO "$complete" | $GREP " "` 24124 if test "x$has_space" != x; then 24125 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24126 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24127 fi 24128 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 24129 fi 24130 fi 24131 24132 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24133 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24134 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24135 # "foo.exe" is OK but "foo" is an error. 24136 # 24137 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24138 # It is also a way to make sure we got the proper file name for the real test later on. 24139 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24140 if test "x$test_shortpath" = x; then 24141 # Short path failed, file does not exist as specified. 24142 # Try adding .exe or .cmd 24143 if test -f "${new_path}.exe"; then 24144 input_to_shortpath="${new_path}.exe" 24145 elif test -f "${new_path}.cmd"; then 24146 input_to_shortpath="${new_path}.cmd" 24147 else 24148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 24149 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 24150 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 24151 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 24152 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 24153 fi 24154 else 24155 input_to_shortpath="$new_path" 24156 fi 24157 24158 # Call helper function which possibly converts this using DOS-style short mode. 24159 # If so, the updated path is stored in $new_path. 24160 new_path="$input_to_shortpath" 24161 24162 input_path="$input_to_shortpath" 24163 # Check if we need to convert this using DOS-style short mode. If the path 24164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24165 # take no chances and rewrite it. 24166 # Note: m4 eats our [], so we need to use [ and ] instead. 24167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24168 if test "x$has_forbidden_chars" != x; then 24169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24173 # Going to short mode and back again did indeed matter. Since short mode is 24174 # case insensitive, let's make it lowercase to improve readability. 24175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24176 # Now convert it back to Unix-stile (cygpath) 24177 input_path=`$CYGPATH -u "$shortmode_path"` 24178 new_path="$input_path" 24179 fi 24180 fi 24181 24182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24183 if test "x$test_cygdrive_prefix" = x; then 24184 # As a simple fix, exclude /usr/bin since it's not a real path. 24185 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 24186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24187 # a path prefixed by /cygdrive for fixpath to work. 24188 new_path="$CYGWIN_ROOT_PATH$input_path" 24189 fi 24190 fi 24191 24192 # remove trailing .exe if any 24193 new_path="${new_path/%.exe/}" 24194 24195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24196 24197 # First separate the path from the arguments. This will split at the first 24198 # space. 24199 complete="$DUMPBIN" 24200 path="${complete%% *}" 24201 tmp="$complete EOL" 24202 arguments="${tmp#* }" 24203 24204 # Input might be given as Windows format, start by converting to 24205 # unix format. 24206 new_path="$path" 24207 24208 windows_path="$new_path" 24209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24210 unix_path=`$CYGPATH -u "$windows_path"` 24211 new_path="$unix_path" 24212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24214 new_path="$unix_path" 24215 fi 24216 24217 24218 # Now try to locate executable using which 24219 new_path=`$WHICH "$new_path" 2> /dev/null` 24220 24221 if test "x$new_path" = x; then 24222 # Oops. Which didn't find the executable. 24223 # The splitting of arguments from the executable at a space might have been incorrect, 24224 # since paths with space are more likely in Windows. Give it another try with the whole 24225 # argument. 24226 path="$complete" 24227 arguments="EOL" 24228 new_path="$path" 24229 24230 windows_path="$new_path" 24231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24232 unix_path=`$CYGPATH -u "$windows_path"` 24233 new_path="$unix_path" 24234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24236 new_path="$unix_path" 24237 fi 24238 24239 24240 new_path=`$WHICH "$new_path" 2> /dev/null` 24241 24242 if test "x$new_path" = x; then 24243 # It's still not found. Now this is an unrecoverable error. 24244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 24245 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 24246 has_space=`$ECHO "$complete" | $GREP " "` 24247 if test "x$has_space" != x; then 24248 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24249 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24250 fi 24251 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 24252 fi 24253 fi 24254 24255 # Now new_path has a complete unix path to the binary 24256 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 24257 # Keep paths in /bin as-is, but remove trailing .exe if any 24258 new_path="${new_path/%.exe/}" 24259 # Do not save /bin paths to all_fixpath_prefixes! 24260 else 24261 # Not in mixed or Windows style, start by that. 24262 new_path=`cmd //c echo $new_path` 24263 24264 input_path="$new_path" 24265 # Check if we need to convert this using DOS-style short mode. If the path 24266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24267 # take no chances and rewrite it. 24268 # Note: m4 eats our [], so we need to use [ and ] instead. 24269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24270 if test "x$has_forbidden_chars" != x; then 24271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24272 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24273 fi 24274 24275 # Output is in $new_path 24276 24277 windows_path="$new_path" 24278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24279 unix_path=`$CYGPATH -u "$windows_path"` 24280 new_path="$unix_path" 24281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24283 new_path="$unix_path" 24284 fi 24285 24286 # remove trailing .exe if any 24287 new_path="${new_path/%.exe/}" 24288 24289 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24290 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24291 fi 24292 24293 else 24294 # We're on a posix platform. Hooray! :) 24295 # First separate the path from the arguments. This will split at the first 24296 # space. 24297 complete="$DUMPBIN" 24298 path="${complete%% *}" 24299 tmp="$complete EOL" 24300 arguments="${tmp#* }" 24301 24302 # Cannot rely on the command "which" here since it doesn't always work. 24303 is_absolute_path=`$ECHO "$path" | $GREP ^/` 24304 if test -z "$is_absolute_path"; then 24305 # Path to executable is not absolute. Find it. 24306 IFS_save="$IFS" 24307 IFS=: 24308 for p in $PATH; do 24309 if test -f "$p/$path" && test -x "$p/$path"; then 24310 new_path="$p/$path" 24311 break 24312 fi 24313 done 24314 IFS="$IFS_save" 24315 else 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving DUMPBIN (as $path) failed, using $path directly." >&5 24317 $as_echo "$as_me: Resolving DUMPBIN (as $path) failed, using $path directly." >&6;} 24318 new_path="$path" 24319 fi 24320 24321 if test "x$new_path" = x; then 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 24323 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 24324 has_space=`$ECHO "$complete" | $GREP " "` 24325 if test "x$has_space" != x; then 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 24327 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 24328 fi 24329 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 24330 fi 24331 fi 24332 24333 # Now join together the path and the arguments once again 24334 if test "x$arguments" != xEOL; then 24335 new_complete="$new_path ${arguments% *}" 24336 else 24337 new_complete="$new_path" 24338 fi 24339 24340 if test "x$complete" != "x$new_complete"; then 24341 DUMPBIN="$new_complete" 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 24343 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 24344 fi 24345 24346 24347 COMPILER_TYPE=CL 24348 CCXXFLAGS="$CCXXFLAGS -nologo" 24349 24350 fi 24351 24352 24353 24354 ac_ext=c 24355 ac_cpp='$CPP $CPPFLAGS' 24356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24358 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 24360 $as_echo_n "checking how to run the C preprocessor... " >&6; } 24361 # On Suns, sometimes $CPP names a directory. 24362 if test -n "$CPP" && test -d "$CPP"; then 24363 CPP= 24364 fi 24365 if test -z "$CPP"; then 24366 if ${ac_cv_prog_CPP+:} false; then : 24367 $as_echo_n "(cached) " >&6 24368 else 24369 # Double quotes because CPP needs to be expanded 24370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 24371 do 24372 ac_preproc_ok=false 24373 for ac_c_preproc_warn_flag in '' yes 24374 do 24375 # Use a header file that comes with gcc, so configuring glibc 24376 # with a fresh cross-compiler works. 24377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24378 # <limits.h> exists even on freestanding compilers. 24379 # On the NeXT, cc -E runs the code through the compiler's parser, 24380 # not just through cpp. "Syntax error" is here to catch this case. 24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24382 /* end confdefs.h. */ 24383 #ifdef __STDC__ 24384 # include <limits.h> 24385 #else 24386 # include <assert.h> 24387 #endif 24388 Syntax error 24389 _ACEOF 24390 if ac_fn_c_try_cpp "$LINENO"; then : 24391 24392 else 24393 # Broken: fails on valid input. 24394 continue 24395 fi 24396 rm -f conftest.err conftest.i conftest.$ac_ext 24397 24398 # OK, works on sane cases. Now check whether nonexistent headers 24399 # can be detected and how. 24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24401 /* end confdefs.h. */ 24402 #include <ac_nonexistent.h> 24403 _ACEOF 24404 if ac_fn_c_try_cpp "$LINENO"; then : 24405 # Broken: success on invalid input. 24406 continue 24407 else 24408 # Passes both tests. 24409 ac_preproc_ok=: 24410 break 24411 fi 24412 rm -f conftest.err conftest.i conftest.$ac_ext 24413 24414 done 24415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24416 rm -f conftest.i conftest.err conftest.$ac_ext 24417 if $ac_preproc_ok; then : 24418 break 24419 fi 24420 24421 done 24422 ac_cv_prog_CPP=$CPP 24423 24424 fi 24425 CPP=$ac_cv_prog_CPP 24426 else 24427 ac_cv_prog_CPP=$CPP 24428 fi 24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 24430 $as_echo "$CPP" >&6; } 24431 ac_preproc_ok=false 24432 for ac_c_preproc_warn_flag in '' yes 24433 do 24434 # Use a header file that comes with gcc, so configuring glibc 24435 # with a fresh cross-compiler works. 24436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24437 # <limits.h> exists even on freestanding compilers. 24438 # On the NeXT, cc -E runs the code through the compiler's parser, 24439 # not just through cpp. "Syntax error" is here to catch this case. 24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24441 /* end confdefs.h. */ 24442 #ifdef __STDC__ 24443 # include <limits.h> 24444 #else 24445 # include <assert.h> 24446 #endif 24447 Syntax error 24448 _ACEOF 24449 if ac_fn_c_try_cpp "$LINENO"; then : 24450 24451 else 24452 # Broken: fails on valid input. 24453 continue 24454 fi 24455 rm -f conftest.err conftest.i conftest.$ac_ext 24456 24457 # OK, works on sane cases. Now check whether nonexistent headers 24458 # can be detected and how. 24459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24460 /* end confdefs.h. */ 24461 #include <ac_nonexistent.h> 24462 _ACEOF 24463 if ac_fn_c_try_cpp "$LINENO"; then : 24464 # Broken: success on invalid input. 24465 continue 24466 else 24467 # Passes both tests. 24468 ac_preproc_ok=: 24469 break 24470 fi 24471 rm -f conftest.err conftest.i conftest.$ac_ext 24472 24473 done 24474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24475 rm -f conftest.i conftest.err conftest.$ac_ext 24476 if $ac_preproc_ok; then : 24477 24478 else 24479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24481 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 24482 See \`config.log' for more details" "$LINENO" 5; } 24483 fi 24484 24485 ac_ext=cpp 24486 ac_cpp='$CXXCPP $CPPFLAGS' 24487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24490 24491 24492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24493 24494 # First separate the path from the arguments. This will split at the first 24495 # space. 24496 complete="$CPP" 24497 path="${complete%% *}" 24498 tmp="$complete EOL" 24499 arguments="${tmp#* }" 24500 24501 # Input might be given as Windows format, start by converting to 24502 # unix format. 24503 new_path=`$CYGPATH -u "$path"` 24504 24505 # Now try to locate executable using which 24506 new_path=`$WHICH "$new_path" 2> /dev/null` 24507 # bat and cmd files are not always considered executable in cygwin causing which 24508 # to not find them 24509 if test "x$new_path" = x \ 24510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24512 new_path=`$CYGPATH -u "$path"` 24513 fi 24514 if test "x$new_path" = x; then 24515 # Oops. Which didn't find the executable. 24516 # The splitting of arguments from the executable at a space might have been incorrect, 24517 # since paths with space are more likely in Windows. Give it another try with the whole 24518 # argument. 24519 path="$complete" 24520 arguments="EOL" 24521 new_path=`$CYGPATH -u "$path"` 24522 new_path=`$WHICH "$new_path" 2> /dev/null` 24523 # bat and cmd files are not always considered executable in cygwin causing which 24524 # to not find them 24525 if test "x$new_path" = x \ 24526 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24527 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24528 new_path=`$CYGPATH -u "$path"` 24529 fi 24530 if test "x$new_path" = x; then 24531 # It's still not found. Now this is an unrecoverable error. 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 24533 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 24534 has_space=`$ECHO "$complete" | $GREP " "` 24535 if test "x$has_space" != x; then 24536 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24537 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24538 fi 24539 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24540 fi 24541 fi 24542 24543 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24544 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24545 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24546 # "foo.exe" is OK but "foo" is an error. 24547 # 24548 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24549 # It is also a way to make sure we got the proper file name for the real test later on. 24550 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24551 if test "x$test_shortpath" = x; then 24552 # Short path failed, file does not exist as specified. 24553 # Try adding .exe or .cmd 24554 if test -f "${new_path}.exe"; then 24555 input_to_shortpath="${new_path}.exe" 24556 elif test -f "${new_path}.cmd"; then 24557 input_to_shortpath="${new_path}.cmd" 24558 else 24559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 24560 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 24562 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 24563 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24564 fi 24565 else 24566 input_to_shortpath="$new_path" 24567 fi 24568 24569 # Call helper function which possibly converts this using DOS-style short mode. 24570 # If so, the updated path is stored in $new_path. 24571 new_path="$input_to_shortpath" 24572 24573 input_path="$input_to_shortpath" 24574 # Check if we need to convert this using DOS-style short mode. If the path 24575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24576 # take no chances and rewrite it. 24577 # Note: m4 eats our [], so we need to use [ and ] instead. 24578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24579 if test "x$has_forbidden_chars" != x; then 24580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24581 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24582 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24583 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24584 # Going to short mode and back again did indeed matter. Since short mode is 24585 # case insensitive, let's make it lowercase to improve readability. 24586 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24587 # Now convert it back to Unix-stile (cygpath) 24588 input_path=`$CYGPATH -u "$shortmode_path"` 24589 new_path="$input_path" 24590 fi 24591 fi 24592 24593 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24594 if test "x$test_cygdrive_prefix" = x; then 24595 # As a simple fix, exclude /usr/bin since it's not a real path. 24596 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 24597 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24598 # a path prefixed by /cygdrive for fixpath to work. 24599 new_path="$CYGWIN_ROOT_PATH$input_path" 24600 fi 24601 fi 24602 24603 # remove trailing .exe if any 24604 new_path="${new_path/%.exe/}" 24605 24606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24607 24608 # First separate the path from the arguments. This will split at the first 24609 # space. 24610 complete="$CPP" 24611 path="${complete%% *}" 24612 tmp="$complete EOL" 24613 arguments="${tmp#* }" 24614 24615 # Input might be given as Windows format, start by converting to 24616 # unix format. 24617 new_path="$path" 24618 24619 windows_path="$new_path" 24620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24621 unix_path=`$CYGPATH -u "$windows_path"` 24622 new_path="$unix_path" 24623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24625 new_path="$unix_path" 24626 fi 24627 24628 24629 # Now try to locate executable using which 24630 new_path=`$WHICH "$new_path" 2> /dev/null` 24631 24632 if test "x$new_path" = x; then 24633 # Oops. Which didn't find the executable. 24634 # The splitting of arguments from the executable at a space might have been incorrect, 24635 # since paths with space are more likely in Windows. Give it another try with the whole 24636 # argument. 24637 path="$complete" 24638 arguments="EOL" 24639 new_path="$path" 24640 24641 windows_path="$new_path" 24642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24643 unix_path=`$CYGPATH -u "$windows_path"` 24644 new_path="$unix_path" 24645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24647 new_path="$unix_path" 24648 fi 24649 24650 24651 new_path=`$WHICH "$new_path" 2> /dev/null` 24652 24653 if test "x$new_path" = x; then 24654 # It's still not found. Now this is an unrecoverable error. 24655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 24656 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 24657 has_space=`$ECHO "$complete" | $GREP " "` 24658 if test "x$has_space" != x; then 24659 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24660 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24661 fi 24662 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24663 fi 24664 fi 24665 24666 # Now new_path has a complete unix path to the binary 24667 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 24668 # Keep paths in /bin as-is, but remove trailing .exe if any 24669 new_path="${new_path/%.exe/}" 24670 # Do not save /bin paths to all_fixpath_prefixes! 24671 else 24672 # Not in mixed or Windows style, start by that. 24673 new_path=`cmd //c echo $new_path` 24674 24675 input_path="$new_path" 24676 # Check if we need to convert this using DOS-style short mode. If the path 24677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24678 # take no chances and rewrite it. 24679 # Note: m4 eats our [], so we need to use [ and ] instead. 24680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24681 if test "x$has_forbidden_chars" != x; then 24682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24684 fi 24685 24686 # Output is in $new_path 24687 24688 windows_path="$new_path" 24689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24690 unix_path=`$CYGPATH -u "$windows_path"` 24691 new_path="$unix_path" 24692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24694 new_path="$unix_path" 24695 fi 24696 24697 # remove trailing .exe if any 24698 new_path="${new_path/%.exe/}" 24699 24700 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24701 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24702 fi 24703 24704 else 24705 # We're on a posix platform. Hooray! :) 24706 # First separate the path from the arguments. This will split at the first 24707 # space. 24708 complete="$CPP" 24709 path="${complete%% *}" 24710 tmp="$complete EOL" 24711 arguments="${tmp#* }" 24712 24713 # Cannot rely on the command "which" here since it doesn't always work. 24714 is_absolute_path=`$ECHO "$path" | $GREP ^/` 24715 if test -z "$is_absolute_path"; then 24716 # Path to executable is not absolute. Find it. 24717 IFS_save="$IFS" 24718 IFS=: 24719 for p in $PATH; do 24720 if test -f "$p/$path" && test -x "$p/$path"; then 24721 new_path="$p/$path" 24722 break 24723 fi 24724 done 24725 IFS="$IFS_save" 24726 else 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CPP (as $path) failed, using $path directly." >&5 24728 $as_echo "$as_me: Resolving CPP (as $path) failed, using $path directly." >&6;} 24729 new_path="$path" 24730 fi 24731 24732 if test "x$new_path" = x; then 24733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 24734 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 24735 has_space=`$ECHO "$complete" | $GREP " "` 24736 if test "x$has_space" != x; then 24737 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 24738 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 24739 fi 24740 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 24741 fi 24742 fi 24743 24744 # Now join together the path and the arguments once again 24745 if test "x$arguments" != xEOL; then 24746 new_complete="$new_path ${arguments% *}" 24747 else 24748 new_complete="$new_path" 24749 fi 24750 24751 if test "x$complete" != "x$new_complete"; then 24752 CPP="$new_complete" 24753 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 24754 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 24755 fi 24756 24757 24758 ac_ext=cpp 24759 ac_cpp='$CXXCPP $CPPFLAGS' 24760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 24764 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 24765 if test -z "$CXXCPP"; then 24766 if ${ac_cv_prog_CXXCPP+:} false; then : 24767 $as_echo_n "(cached) " >&6 24768 else 24769 # Double quotes because CXXCPP needs to be expanded 24770 for CXXCPP in "$CXX -E" "/lib/cpp" 24771 do 24772 ac_preproc_ok=false 24773 for ac_cxx_preproc_warn_flag in '' yes 24774 do 24775 # Use a header file that comes with gcc, so configuring glibc 24776 # with a fresh cross-compiler works. 24777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24778 # <limits.h> exists even on freestanding compilers. 24779 # On the NeXT, cc -E runs the code through the compiler's parser, 24780 # not just through cpp. "Syntax error" is here to catch this case. 24781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24782 /* end confdefs.h. */ 24783 #ifdef __STDC__ 24784 # include <limits.h> 24785 #else 24786 # include <assert.h> 24787 #endif 24788 Syntax error 24789 _ACEOF 24790 if ac_fn_cxx_try_cpp "$LINENO"; then : 24791 24792 else 24793 # Broken: fails on valid input. 24794 continue 24795 fi 24796 rm -f conftest.err conftest.i conftest.$ac_ext 24797 24798 # OK, works on sane cases. Now check whether nonexistent headers 24799 # can be detected and how. 24800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24801 /* end confdefs.h. */ 24802 #include <ac_nonexistent.h> 24803 _ACEOF 24804 if ac_fn_cxx_try_cpp "$LINENO"; then : 24805 # Broken: success on invalid input. 24806 continue 24807 else 24808 # Passes both tests. 24809 ac_preproc_ok=: 24810 break 24811 fi 24812 rm -f conftest.err conftest.i conftest.$ac_ext 24813 24814 done 24815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24816 rm -f conftest.i conftest.err conftest.$ac_ext 24817 if $ac_preproc_ok; then : 24818 break 24819 fi 24820 24821 done 24822 ac_cv_prog_CXXCPP=$CXXCPP 24823 24824 fi 24825 CXXCPP=$ac_cv_prog_CXXCPP 24826 else 24827 ac_cv_prog_CXXCPP=$CXXCPP 24828 fi 24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 24830 $as_echo "$CXXCPP" >&6; } 24831 ac_preproc_ok=false 24832 for ac_cxx_preproc_warn_flag in '' yes 24833 do 24834 # Use a header file that comes with gcc, so configuring glibc 24835 # with a fresh cross-compiler works. 24836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24837 # <limits.h> exists even on freestanding compilers. 24838 # On the NeXT, cc -E runs the code through the compiler's parser, 24839 # not just through cpp. "Syntax error" is here to catch this case. 24840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24841 /* end confdefs.h. */ 24842 #ifdef __STDC__ 24843 # include <limits.h> 24844 #else 24845 # include <assert.h> 24846 #endif 24847 Syntax error 24848 _ACEOF 24849 if ac_fn_cxx_try_cpp "$LINENO"; then : 24850 24851 else 24852 # Broken: fails on valid input. 24853 continue 24854 fi 24855 rm -f conftest.err conftest.i conftest.$ac_ext 24856 24857 # OK, works on sane cases. Now check whether nonexistent headers 24858 # can be detected and how. 24859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24860 /* end confdefs.h. */ 24861 #include <ac_nonexistent.h> 24862 _ACEOF 24863 if ac_fn_cxx_try_cpp "$LINENO"; then : 24864 # Broken: success on invalid input. 24865 continue 24866 else 24867 # Passes both tests. 24868 ac_preproc_ok=: 24869 break 24870 fi 24871 rm -f conftest.err conftest.i conftest.$ac_ext 24872 24873 done 24874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24875 rm -f conftest.i conftest.err conftest.$ac_ext 24876 if $ac_preproc_ok; then : 24877 24878 else 24879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24881 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 24882 See \`config.log' for more details" "$LINENO" 5; } 24883 fi 24884 24885 ac_ext=cpp 24886 ac_cpp='$CXXCPP $CPPFLAGS' 24887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24890 24891 24892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24893 24894 # First separate the path from the arguments. This will split at the first 24895 # space. 24896 complete="$CXXCPP" 24897 path="${complete%% *}" 24898 tmp="$complete EOL" 24899 arguments="${tmp#* }" 24900 24901 # Input might be given as Windows format, start by converting to 24902 # unix format. 24903 new_path=`$CYGPATH -u "$path"` 24904 24905 # Now try to locate executable using which 24906 new_path=`$WHICH "$new_path" 2> /dev/null` 24907 # bat and cmd files are not always considered executable in cygwin causing which 24908 # to not find them 24909 if test "x$new_path" = x \ 24910 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24911 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24912 new_path=`$CYGPATH -u "$path"` 24913 fi 24914 if test "x$new_path" = x; then 24915 # Oops. Which didn't find the executable. 24916 # The splitting of arguments from the executable at a space might have been incorrect, 24917 # since paths with space are more likely in Windows. Give it another try with the whole 24918 # argument. 24919 path="$complete" 24920 arguments="EOL" 24921 new_path=`$CYGPATH -u "$path"` 24922 new_path=`$WHICH "$new_path" 2> /dev/null` 24923 # bat and cmd files are not always considered executable in cygwin causing which 24924 # to not find them 24925 if test "x$new_path" = x \ 24926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 24927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 24928 new_path=`$CYGPATH -u "$path"` 24929 fi 24930 if test "x$new_path" = x; then 24931 # It's still not found. Now this is an unrecoverable error. 24932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 24933 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 24934 has_space=`$ECHO "$complete" | $GREP " "` 24935 if test "x$has_space" != x; then 24936 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 24937 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 24938 fi 24939 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 24940 fi 24941 fi 24942 24943 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24944 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24945 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24946 # "foo.exe" is OK but "foo" is an error. 24947 # 24948 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24949 # It is also a way to make sure we got the proper file name for the real test later on. 24950 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24951 if test "x$test_shortpath" = x; then 24952 # Short path failed, file does not exist as specified. 24953 # Try adding .exe or .cmd 24954 if test -f "${new_path}.exe"; then 24955 input_to_shortpath="${new_path}.exe" 24956 elif test -f "${new_path}.cmd"; then 24957 input_to_shortpath="${new_path}.cmd" 24958 else 24959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 24960 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 24961 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 24962 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 24963 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 24964 fi 24965 else 24966 input_to_shortpath="$new_path" 24967 fi 24968 24969 # Call helper function which possibly converts this using DOS-style short mode. 24970 # If so, the updated path is stored in $new_path. 24971 new_path="$input_to_shortpath" 24972 24973 input_path="$input_to_shortpath" 24974 # Check if we need to convert this using DOS-style short mode. If the path 24975 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24976 # take no chances and rewrite it. 24977 # Note: m4 eats our [], so we need to use [ and ] instead. 24978 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24979 if test "x$has_forbidden_chars" != x; then 24980 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24981 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24982 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24983 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24984 # Going to short mode and back again did indeed matter. Since short mode is 24985 # case insensitive, let's make it lowercase to improve readability. 24986 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24987 # Now convert it back to Unix-stile (cygpath) 24988 input_path=`$CYGPATH -u "$shortmode_path"` 24989 new_path="$input_path" 24990 fi 24991 fi 24992 24993 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24994 if test "x$test_cygdrive_prefix" = x; then 24995 # As a simple fix, exclude /usr/bin since it's not a real path. 24996 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 24997 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24998 # a path prefixed by /cygdrive for fixpath to work. 24999 new_path="$CYGWIN_ROOT_PATH$input_path" 25000 fi 25001 fi 25002 25003 # remove trailing .exe if any 25004 new_path="${new_path/%.exe/}" 25005 25006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25007 25008 # First separate the path from the arguments. This will split at the first 25009 # space. 25010 complete="$CXXCPP" 25011 path="${complete%% *}" 25012 tmp="$complete EOL" 25013 arguments="${tmp#* }" 25014 25015 # Input might be given as Windows format, start by converting to 25016 # unix format. 25017 new_path="$path" 25018 25019 windows_path="$new_path" 25020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25021 unix_path=`$CYGPATH -u "$windows_path"` 25022 new_path="$unix_path" 25023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25025 new_path="$unix_path" 25026 fi 25027 25028 25029 # Now try to locate executable using which 25030 new_path=`$WHICH "$new_path" 2> /dev/null` 25031 25032 if test "x$new_path" = x; then 25033 # Oops. Which didn't find the executable. 25034 # The splitting of arguments from the executable at a space might have been incorrect, 25035 # since paths with space are more likely in Windows. Give it another try with the whole 25036 # argument. 25037 path="$complete" 25038 arguments="EOL" 25039 new_path="$path" 25040 25041 windows_path="$new_path" 25042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25043 unix_path=`$CYGPATH -u "$windows_path"` 25044 new_path="$unix_path" 25045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25047 new_path="$unix_path" 25048 fi 25049 25050 25051 new_path=`$WHICH "$new_path" 2> /dev/null` 25052 25053 if test "x$new_path" = x; then 25054 # It's still not found. Now this is an unrecoverable error. 25055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 25056 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 25057 has_space=`$ECHO "$complete" | $GREP " "` 25058 if test "x$has_space" != x; then 25059 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25060 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25061 fi 25062 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 25063 fi 25064 fi 25065 25066 # Now new_path has a complete unix path to the binary 25067 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25068 # Keep paths in /bin as-is, but remove trailing .exe if any 25069 new_path="${new_path/%.exe/}" 25070 # Do not save /bin paths to all_fixpath_prefixes! 25071 else 25072 # Not in mixed or Windows style, start by that. 25073 new_path=`cmd //c echo $new_path` 25074 25075 input_path="$new_path" 25076 # Check if we need to convert this using DOS-style short mode. If the path 25077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25078 # take no chances and rewrite it. 25079 # Note: m4 eats our [], so we need to use [ and ] instead. 25080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25081 if test "x$has_forbidden_chars" != x; then 25082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25084 fi 25085 25086 # Output is in $new_path 25087 25088 windows_path="$new_path" 25089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25090 unix_path=`$CYGPATH -u "$windows_path"` 25091 new_path="$unix_path" 25092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25094 new_path="$unix_path" 25095 fi 25096 25097 # remove trailing .exe if any 25098 new_path="${new_path/%.exe/}" 25099 25100 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25101 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25102 fi 25103 25104 else 25105 # We're on a posix platform. Hooray! :) 25106 # First separate the path from the arguments. This will split at the first 25107 # space. 25108 complete="$CXXCPP" 25109 path="${complete%% *}" 25110 tmp="$complete EOL" 25111 arguments="${tmp#* }" 25112 25113 # Cannot rely on the command "which" here since it doesn't always work. 25114 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25115 if test -z "$is_absolute_path"; then 25116 # Path to executable is not absolute. Find it. 25117 IFS_save="$IFS" 25118 IFS=: 25119 for p in $PATH; do 25120 if test -f "$p/$path" && test -x "$p/$path"; then 25121 new_path="$p/$path" 25122 break 25123 fi 25124 done 25125 IFS="$IFS_save" 25126 else 25127 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXXCPP (as $path) failed, using $path directly." >&5 25128 $as_echo "$as_me: Resolving CXXCPP (as $path) failed, using $path directly." >&6;} 25129 new_path="$path" 25130 fi 25131 25132 if test "x$new_path" = x; then 25133 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 25134 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 25135 has_space=`$ECHO "$complete" | $GREP " "` 25136 if test "x$has_space" != x; then 25137 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25138 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25139 fi 25140 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 25141 fi 25142 fi 25143 25144 # Now join together the path and the arguments once again 25145 if test "x$arguments" != xEOL; then 25146 new_complete="$new_path ${arguments% *}" 25147 else 25148 new_complete="$new_path" 25149 fi 25150 25151 if test "x$complete" != "x$new_complete"; then 25152 CXXCPP="$new_complete" 25153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 25154 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 25155 fi 25156 25157 25158 if test "x$COMPILE_TYPE" != "xcross"; then 25159 # If we are not cross compiling, use the same compilers for 25160 # building the build platform executables. The cross-compilation 25161 # case needed to be done earlier, but this can only be done after 25162 # the native tools have been localized. 25163 BUILD_CC="$CC" 25164 BUILD_CXX="$CXX" 25165 BUILD_LD="$LD" 25166 fi 25167 25168 # for solaris we really need solaris tools, and not gnu equivalent 25169 # these seems to normally reside in /usr/ccs/bin so add that to path before 25170 # starting to probe 25171 # 25172 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH 25173 # so that it can be overriden --with-tools-dir 25174 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 25175 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}" 25176 fi 25177 25178 # Find the right assembler. 25179 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 25180 # Extract the first word of "as", so it can be a program name with args. 25181 set dummy as; ac_word=$2 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25183 $as_echo_n "checking for $ac_word... " >&6; } 25184 if ${ac_cv_path_AS+:} false; then : 25185 $as_echo_n "(cached) " >&6 25186 else 25187 case $AS in 25188 [\\/]* | ?:[\\/]*) 25189 ac_cv_path_AS="$AS" # Let the user override the test with a path. 25190 ;; 25191 *) 25192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25193 for as_dir in $PATH 25194 do 25195 IFS=$as_save_IFS 25196 test -z "$as_dir" && as_dir=. 25197 for ac_exec_ext in '' $ac_executable_extensions; do 25198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25199 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 25200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25201 break 2 25202 fi 25203 done 25204 done 25205 IFS=$as_save_IFS 25206 25207 ;; 25208 esac 25209 fi 25210 AS=$ac_cv_path_AS 25211 if test -n "$AS"; then 25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 25213 $as_echo "$AS" >&6; } 25214 else 25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25216 $as_echo "no" >&6; } 25217 fi 25218 25219 25220 25221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25222 25223 # First separate the path from the arguments. This will split at the first 25224 # space. 25225 complete="$AS" 25226 path="${complete%% *}" 25227 tmp="$complete EOL" 25228 arguments="${tmp#* }" 25229 25230 # Input might be given as Windows format, start by converting to 25231 # unix format. 25232 new_path=`$CYGPATH -u "$path"` 25233 25234 # Now try to locate executable using which 25235 new_path=`$WHICH "$new_path" 2> /dev/null` 25236 # bat and cmd files are not always considered executable in cygwin causing which 25237 # to not find them 25238 if test "x$new_path" = x \ 25239 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25240 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25241 new_path=`$CYGPATH -u "$path"` 25242 fi 25243 if test "x$new_path" = x; then 25244 # Oops. Which didn't find the executable. 25245 # The splitting of arguments from the executable at a space might have been incorrect, 25246 # since paths with space are more likely in Windows. Give it another try with the whole 25247 # argument. 25248 path="$complete" 25249 arguments="EOL" 25250 new_path=`$CYGPATH -u "$path"` 25251 new_path=`$WHICH "$new_path" 2> /dev/null` 25252 # bat and cmd files are not always considered executable in cygwin causing which 25253 # to not find them 25254 if test "x$new_path" = x \ 25255 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25256 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25257 new_path=`$CYGPATH -u "$path"` 25258 fi 25259 if test "x$new_path" = x; then 25260 # It's still not found. Now this is an unrecoverable error. 25261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 25262 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 25263 has_space=`$ECHO "$complete" | $GREP " "` 25264 if test "x$has_space" != x; then 25265 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25266 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25267 fi 25268 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 25269 fi 25270 fi 25271 25272 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25273 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25274 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25275 # "foo.exe" is OK but "foo" is an error. 25276 # 25277 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25278 # It is also a way to make sure we got the proper file name for the real test later on. 25279 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25280 if test "x$test_shortpath" = x; then 25281 # Short path failed, file does not exist as specified. 25282 # Try adding .exe or .cmd 25283 if test -f "${new_path}.exe"; then 25284 input_to_shortpath="${new_path}.exe" 25285 elif test -f "${new_path}.cmd"; then 25286 input_to_shortpath="${new_path}.cmd" 25287 else 25288 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 25289 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25291 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25292 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 25293 fi 25294 else 25295 input_to_shortpath="$new_path" 25296 fi 25297 25298 # Call helper function which possibly converts this using DOS-style short mode. 25299 # If so, the updated path is stored in $new_path. 25300 new_path="$input_to_shortpath" 25301 25302 input_path="$input_to_shortpath" 25303 # Check if we need to convert this using DOS-style short mode. If the path 25304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25305 # take no chances and rewrite it. 25306 # Note: m4 eats our [], so we need to use [ and ] instead. 25307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25308 if test "x$has_forbidden_chars" != x; then 25309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25310 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25311 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25312 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25313 # Going to short mode and back again did indeed matter. Since short mode is 25314 # case insensitive, let's make it lowercase to improve readability. 25315 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25316 # Now convert it back to Unix-stile (cygpath) 25317 input_path=`$CYGPATH -u "$shortmode_path"` 25318 new_path="$input_path" 25319 fi 25320 fi 25321 25322 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25323 if test "x$test_cygdrive_prefix" = x; then 25324 # As a simple fix, exclude /usr/bin since it's not a real path. 25325 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25326 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25327 # a path prefixed by /cygdrive for fixpath to work. 25328 new_path="$CYGWIN_ROOT_PATH$input_path" 25329 fi 25330 fi 25331 25332 # remove trailing .exe if any 25333 new_path="${new_path/%.exe/}" 25334 25335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25336 25337 # First separate the path from the arguments. This will split at the first 25338 # space. 25339 complete="$AS" 25340 path="${complete%% *}" 25341 tmp="$complete EOL" 25342 arguments="${tmp#* }" 25343 25344 # Input might be given as Windows format, start by converting to 25345 # unix format. 25346 new_path="$path" 25347 25348 windows_path="$new_path" 25349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25350 unix_path=`$CYGPATH -u "$windows_path"` 25351 new_path="$unix_path" 25352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25353 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25354 new_path="$unix_path" 25355 fi 25356 25357 25358 # Now try to locate executable using which 25359 new_path=`$WHICH "$new_path" 2> /dev/null` 25360 25361 if test "x$new_path" = x; then 25362 # Oops. Which didn't find the executable. 25363 # The splitting of arguments from the executable at a space might have been incorrect, 25364 # since paths with space are more likely in Windows. Give it another try with the whole 25365 # argument. 25366 path="$complete" 25367 arguments="EOL" 25368 new_path="$path" 25369 25370 windows_path="$new_path" 25371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25372 unix_path=`$CYGPATH -u "$windows_path"` 25373 new_path="$unix_path" 25374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25375 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25376 new_path="$unix_path" 25377 fi 25378 25379 25380 new_path=`$WHICH "$new_path" 2> /dev/null` 25381 25382 if test "x$new_path" = x; then 25383 # It's still not found. Now this is an unrecoverable error. 25384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 25385 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 25386 has_space=`$ECHO "$complete" | $GREP " "` 25387 if test "x$has_space" != x; then 25388 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25389 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25390 fi 25391 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 25392 fi 25393 fi 25394 25395 # Now new_path has a complete unix path to the binary 25396 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25397 # Keep paths in /bin as-is, but remove trailing .exe if any 25398 new_path="${new_path/%.exe/}" 25399 # Do not save /bin paths to all_fixpath_prefixes! 25400 else 25401 # Not in mixed or Windows style, start by that. 25402 new_path=`cmd //c echo $new_path` 25403 25404 input_path="$new_path" 25405 # Check if we need to convert this using DOS-style short mode. If the path 25406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25407 # take no chances and rewrite it. 25408 # Note: m4 eats our [], so we need to use [ and ] instead. 25409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25410 if test "x$has_forbidden_chars" != x; then 25411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25412 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25413 fi 25414 25415 # Output is in $new_path 25416 25417 windows_path="$new_path" 25418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25419 unix_path=`$CYGPATH -u "$windows_path"` 25420 new_path="$unix_path" 25421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25423 new_path="$unix_path" 25424 fi 25425 25426 # remove trailing .exe if any 25427 new_path="${new_path/%.exe/}" 25428 25429 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25430 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25431 fi 25432 25433 else 25434 # We're on a posix platform. Hooray! :) 25435 # First separate the path from the arguments. This will split at the first 25436 # space. 25437 complete="$AS" 25438 path="${complete%% *}" 25439 tmp="$complete EOL" 25440 arguments="${tmp#* }" 25441 25442 # Cannot rely on the command "which" here since it doesn't always work. 25443 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25444 if test -z "$is_absolute_path"; then 25445 # Path to executable is not absolute. Find it. 25446 IFS_save="$IFS" 25447 IFS=: 25448 for p in $PATH; do 25449 if test -f "$p/$path" && test -x "$p/$path"; then 25450 new_path="$p/$path" 25451 break 25452 fi 25453 done 25454 IFS="$IFS_save" 25455 else 25456 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AS (as $path) failed, using $path directly." >&5 25457 $as_echo "$as_me: Resolving AS (as $path) failed, using $path directly." >&6;} 25458 new_path="$path" 25459 fi 25460 25461 if test "x$new_path" = x; then 25462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 25463 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 25464 has_space=`$ECHO "$complete" | $GREP " "` 25465 if test "x$has_space" != x; then 25466 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25467 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25468 fi 25469 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 25470 fi 25471 fi 25472 25473 # Now join together the path and the arguments once again 25474 if test "x$arguments" != xEOL; then 25475 new_complete="$new_path ${arguments% *}" 25476 else 25477 new_complete="$new_path" 25478 fi 25479 25480 if test "x$complete" != "x$new_complete"; then 25481 AS="$new_complete" 25482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 25483 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 25484 fi 25485 25486 else 25487 AS="$CC -c" 25488 fi 25489 25490 25491 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 25492 # Extract the first word of "nm", so it can be a program name with args. 25493 set dummy nm; ac_word=$2 25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25495 $as_echo_n "checking for $ac_word... " >&6; } 25496 if ${ac_cv_path_NM+:} false; then : 25497 $as_echo_n "(cached) " >&6 25498 else 25499 case $NM in 25500 [\\/]* | ?:[\\/]*) 25501 ac_cv_path_NM="$NM" # Let the user override the test with a path. 25502 ;; 25503 *) 25504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25505 for as_dir in $PATH 25506 do 25507 IFS=$as_save_IFS 25508 test -z "$as_dir" && as_dir=. 25509 for ac_exec_ext in '' $ac_executable_extensions; do 25510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25511 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 25512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25513 break 2 25514 fi 25515 done 25516 done 25517 IFS=$as_save_IFS 25518 25519 ;; 25520 esac 25521 fi 25522 NM=$ac_cv_path_NM 25523 if test -n "$NM"; then 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 25525 $as_echo "$NM" >&6; } 25526 else 25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25528 $as_echo "no" >&6; } 25529 fi 25530 25531 25532 25533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25534 25535 # First separate the path from the arguments. This will split at the first 25536 # space. 25537 complete="$NM" 25538 path="${complete%% *}" 25539 tmp="$complete EOL" 25540 arguments="${tmp#* }" 25541 25542 # Input might be given as Windows format, start by converting to 25543 # unix format. 25544 new_path=`$CYGPATH -u "$path"` 25545 25546 # Now try to locate executable using which 25547 new_path=`$WHICH "$new_path" 2> /dev/null` 25548 # bat and cmd files are not always considered executable in cygwin causing which 25549 # to not find them 25550 if test "x$new_path" = x \ 25551 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25552 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25553 new_path=`$CYGPATH -u "$path"` 25554 fi 25555 if test "x$new_path" = x; then 25556 # Oops. Which didn't find the executable. 25557 # The splitting of arguments from the executable at a space might have been incorrect, 25558 # since paths with space are more likely in Windows. Give it another try with the whole 25559 # argument. 25560 path="$complete" 25561 arguments="EOL" 25562 new_path=`$CYGPATH -u "$path"` 25563 new_path=`$WHICH "$new_path" 2> /dev/null` 25564 # bat and cmd files are not always considered executable in cygwin causing which 25565 # to not find them 25566 if test "x$new_path" = x \ 25567 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25568 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25569 new_path=`$CYGPATH -u "$path"` 25570 fi 25571 if test "x$new_path" = x; then 25572 # It's still not found. Now this is an unrecoverable error. 25573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 25574 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 25575 has_space=`$ECHO "$complete" | $GREP " "` 25576 if test "x$has_space" != x; then 25577 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25578 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25579 fi 25580 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25581 fi 25582 fi 25583 25584 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25585 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25586 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25587 # "foo.exe" is OK but "foo" is an error. 25588 # 25589 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25590 # It is also a way to make sure we got the proper file name for the real test later on. 25591 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25592 if test "x$test_shortpath" = x; then 25593 # Short path failed, file does not exist as specified. 25594 # Try adding .exe or .cmd 25595 if test -f "${new_path}.exe"; then 25596 input_to_shortpath="${new_path}.exe" 25597 elif test -f "${new_path}.cmd"; then 25598 input_to_shortpath="${new_path}.cmd" 25599 else 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 25601 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 25602 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25603 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25604 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25605 fi 25606 else 25607 input_to_shortpath="$new_path" 25608 fi 25609 25610 # Call helper function which possibly converts this using DOS-style short mode. 25611 # If so, the updated path is stored in $new_path. 25612 new_path="$input_to_shortpath" 25613 25614 input_path="$input_to_shortpath" 25615 # Check if we need to convert this using DOS-style short mode. If the path 25616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25617 # take no chances and rewrite it. 25618 # Note: m4 eats our [], so we need to use [ and ] instead. 25619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25620 if test "x$has_forbidden_chars" != x; then 25621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25622 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25623 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25624 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25625 # Going to short mode and back again did indeed matter. Since short mode is 25626 # case insensitive, let's make it lowercase to improve readability. 25627 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25628 # Now convert it back to Unix-stile (cygpath) 25629 input_path=`$CYGPATH -u "$shortmode_path"` 25630 new_path="$input_path" 25631 fi 25632 fi 25633 25634 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25635 if test "x$test_cygdrive_prefix" = x; then 25636 # As a simple fix, exclude /usr/bin since it's not a real path. 25637 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25638 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25639 # a path prefixed by /cygdrive for fixpath to work. 25640 new_path="$CYGWIN_ROOT_PATH$input_path" 25641 fi 25642 fi 25643 25644 # remove trailing .exe if any 25645 new_path="${new_path/%.exe/}" 25646 25647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25648 25649 # First separate the path from the arguments. This will split at the first 25650 # space. 25651 complete="$NM" 25652 path="${complete%% *}" 25653 tmp="$complete EOL" 25654 arguments="${tmp#* }" 25655 25656 # Input might be given as Windows format, start by converting to 25657 # unix format. 25658 new_path="$path" 25659 25660 windows_path="$new_path" 25661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25662 unix_path=`$CYGPATH -u "$windows_path"` 25663 new_path="$unix_path" 25664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25666 new_path="$unix_path" 25667 fi 25668 25669 25670 # Now try to locate executable using which 25671 new_path=`$WHICH "$new_path" 2> /dev/null` 25672 25673 if test "x$new_path" = x; then 25674 # Oops. Which didn't find the executable. 25675 # The splitting of arguments from the executable at a space might have been incorrect, 25676 # since paths with space are more likely in Windows. Give it another try with the whole 25677 # argument. 25678 path="$complete" 25679 arguments="EOL" 25680 new_path="$path" 25681 25682 windows_path="$new_path" 25683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25684 unix_path=`$CYGPATH -u "$windows_path"` 25685 new_path="$unix_path" 25686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25688 new_path="$unix_path" 25689 fi 25690 25691 25692 new_path=`$WHICH "$new_path" 2> /dev/null` 25693 25694 if test "x$new_path" = x; then 25695 # It's still not found. Now this is an unrecoverable error. 25696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 25697 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 25698 has_space=`$ECHO "$complete" | $GREP " "` 25699 if test "x$has_space" != x; then 25700 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25702 fi 25703 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25704 fi 25705 fi 25706 25707 # Now new_path has a complete unix path to the binary 25708 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25709 # Keep paths in /bin as-is, but remove trailing .exe if any 25710 new_path="${new_path/%.exe/}" 25711 # Do not save /bin paths to all_fixpath_prefixes! 25712 else 25713 # Not in mixed or Windows style, start by that. 25714 new_path=`cmd //c echo $new_path` 25715 25716 input_path="$new_path" 25717 # Check if we need to convert this using DOS-style short mode. If the path 25718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25719 # take no chances and rewrite it. 25720 # Note: m4 eats our [], so we need to use [ and ] instead. 25721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25722 if test "x$has_forbidden_chars" != x; then 25723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25725 fi 25726 25727 # Output is in $new_path 25728 25729 windows_path="$new_path" 25730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25731 unix_path=`$CYGPATH -u "$windows_path"` 25732 new_path="$unix_path" 25733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25735 new_path="$unix_path" 25736 fi 25737 25738 # remove trailing .exe if any 25739 new_path="${new_path/%.exe/}" 25740 25741 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25742 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25743 fi 25744 25745 else 25746 # We're on a posix platform. Hooray! :) 25747 # First separate the path from the arguments. This will split at the first 25748 # space. 25749 complete="$NM" 25750 path="${complete%% *}" 25751 tmp="$complete EOL" 25752 arguments="${tmp#* }" 25753 25754 # Cannot rely on the command "which" here since it doesn't always work. 25755 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25756 if test -z "$is_absolute_path"; then 25757 # Path to executable is not absolute. Find it. 25758 IFS_save="$IFS" 25759 IFS=: 25760 for p in $PATH; do 25761 if test -f "$p/$path" && test -x "$p/$path"; then 25762 new_path="$p/$path" 25763 break 25764 fi 25765 done 25766 IFS="$IFS_save" 25767 else 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5 25769 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;} 25770 new_path="$path" 25771 fi 25772 25773 if test "x$new_path" = x; then 25774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 25775 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 25776 has_space=`$ECHO "$complete" | $GREP " "` 25777 if test "x$has_space" != x; then 25778 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25779 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25780 fi 25781 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 25782 fi 25783 fi 25784 25785 # Now join together the path and the arguments once again 25786 if test "x$arguments" != xEOL; then 25787 new_complete="$new_path ${arguments% *}" 25788 else 25789 new_complete="$new_path" 25790 fi 25791 25792 if test "x$complete" != "x$new_complete"; then 25793 NM="$new_complete" 25794 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 25795 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 25796 fi 25797 25798 # Extract the first word of "gnm", so it can be a program name with args. 25799 set dummy gnm; ac_word=$2 25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25801 $as_echo_n "checking for $ac_word... " >&6; } 25802 if ${ac_cv_path_GNM+:} false; then : 25803 $as_echo_n "(cached) " >&6 25804 else 25805 case $GNM in 25806 [\\/]* | ?:[\\/]*) 25807 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 25808 ;; 25809 *) 25810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25811 for as_dir in $PATH 25812 do 25813 IFS=$as_save_IFS 25814 test -z "$as_dir" && as_dir=. 25815 for ac_exec_ext in '' $ac_executable_extensions; do 25816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25817 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 25818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25819 break 2 25820 fi 25821 done 25822 done 25823 IFS=$as_save_IFS 25824 25825 ;; 25826 esac 25827 fi 25828 GNM=$ac_cv_path_GNM 25829 if test -n "$GNM"; then 25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 25831 $as_echo "$GNM" >&6; } 25832 else 25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25834 $as_echo "no" >&6; } 25835 fi 25836 25837 25838 25839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25840 25841 # First separate the path from the arguments. This will split at the first 25842 # space. 25843 complete="$GNM" 25844 path="${complete%% *}" 25845 tmp="$complete EOL" 25846 arguments="${tmp#* }" 25847 25848 # Input might be given as Windows format, start by converting to 25849 # unix format. 25850 new_path=`$CYGPATH -u "$path"` 25851 25852 # Now try to locate executable using which 25853 new_path=`$WHICH "$new_path" 2> /dev/null` 25854 # bat and cmd files are not always considered executable in cygwin causing which 25855 # to not find them 25856 if test "x$new_path" = x \ 25857 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25858 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25859 new_path=`$CYGPATH -u "$path"` 25860 fi 25861 if test "x$new_path" = x; then 25862 # Oops. Which didn't find the executable. 25863 # The splitting of arguments from the executable at a space might have been incorrect, 25864 # since paths with space are more likely in Windows. Give it another try with the whole 25865 # argument. 25866 path="$complete" 25867 arguments="EOL" 25868 new_path=`$CYGPATH -u "$path"` 25869 new_path=`$WHICH "$new_path" 2> /dev/null` 25870 # bat and cmd files are not always considered executable in cygwin causing which 25871 # to not find them 25872 if test "x$new_path" = x \ 25873 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25874 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25875 new_path=`$CYGPATH -u "$path"` 25876 fi 25877 if test "x$new_path" = x; then 25878 # It's still not found. Now this is an unrecoverable error. 25879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 25880 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 25881 has_space=`$ECHO "$complete" | $GREP " "` 25882 if test "x$has_space" != x; then 25883 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25884 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25885 fi 25886 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 25887 fi 25888 fi 25889 25890 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25891 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25892 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25893 # "foo.exe" is OK but "foo" is an error. 25894 # 25895 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25896 # It is also a way to make sure we got the proper file name for the real test later on. 25897 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25898 if test "x$test_shortpath" = x; then 25899 # Short path failed, file does not exist as specified. 25900 # Try adding .exe or .cmd 25901 if test -f "${new_path}.exe"; then 25902 input_to_shortpath="${new_path}.exe" 25903 elif test -f "${new_path}.cmd"; then 25904 input_to_shortpath="${new_path}.cmd" 25905 else 25906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 25907 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 25908 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25909 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25910 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 25911 fi 25912 else 25913 input_to_shortpath="$new_path" 25914 fi 25915 25916 # Call helper function which possibly converts this using DOS-style short mode. 25917 # If so, the updated path is stored in $new_path. 25918 new_path="$input_to_shortpath" 25919 25920 input_path="$input_to_shortpath" 25921 # Check if we need to convert this using DOS-style short mode. If the path 25922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25923 # take no chances and rewrite it. 25924 # Note: m4 eats our [], so we need to use [ and ] instead. 25925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25926 if test "x$has_forbidden_chars" != x; then 25927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25928 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25929 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25930 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25931 # Going to short mode and back again did indeed matter. Since short mode is 25932 # case insensitive, let's make it lowercase to improve readability. 25933 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25934 # Now convert it back to Unix-stile (cygpath) 25935 input_path=`$CYGPATH -u "$shortmode_path"` 25936 new_path="$input_path" 25937 fi 25938 fi 25939 25940 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25941 if test "x$test_cygdrive_prefix" = x; then 25942 # As a simple fix, exclude /usr/bin since it's not a real path. 25943 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25944 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25945 # a path prefixed by /cygdrive for fixpath to work. 25946 new_path="$CYGWIN_ROOT_PATH$input_path" 25947 fi 25948 fi 25949 25950 # remove trailing .exe if any 25951 new_path="${new_path/%.exe/}" 25952 25953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25954 25955 # First separate the path from the arguments. This will split at the first 25956 # space. 25957 complete="$GNM" 25958 path="${complete%% *}" 25959 tmp="$complete EOL" 25960 arguments="${tmp#* }" 25961 25962 # Input might be given as Windows format, start by converting to 25963 # unix format. 25964 new_path="$path" 25965 25966 windows_path="$new_path" 25967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25968 unix_path=`$CYGPATH -u "$windows_path"` 25969 new_path="$unix_path" 25970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25972 new_path="$unix_path" 25973 fi 25974 25975 25976 # Now try to locate executable using which 25977 new_path=`$WHICH "$new_path" 2> /dev/null` 25978 25979 if test "x$new_path" = x; then 25980 # Oops. Which didn't find the executable. 25981 # The splitting of arguments from the executable at a space might have been incorrect, 25982 # since paths with space are more likely in Windows. Give it another try with the whole 25983 # argument. 25984 path="$complete" 25985 arguments="EOL" 25986 new_path="$path" 25987 25988 windows_path="$new_path" 25989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25990 unix_path=`$CYGPATH -u "$windows_path"` 25991 new_path="$unix_path" 25992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25994 new_path="$unix_path" 25995 fi 25996 25997 25998 new_path=`$WHICH "$new_path" 2> /dev/null` 25999 26000 if test "x$new_path" = x; then 26001 # It's still not found. Now this is an unrecoverable error. 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 26003 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 26004 has_space=`$ECHO "$complete" | $GREP " "` 26005 if test "x$has_space" != x; then 26006 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26007 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26008 fi 26009 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 26010 fi 26011 fi 26012 26013 # Now new_path has a complete unix path to the binary 26014 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26015 # Keep paths in /bin as-is, but remove trailing .exe if any 26016 new_path="${new_path/%.exe/}" 26017 # Do not save /bin paths to all_fixpath_prefixes! 26018 else 26019 # Not in mixed or Windows style, start by that. 26020 new_path=`cmd //c echo $new_path` 26021 26022 input_path="$new_path" 26023 # Check if we need to convert this using DOS-style short mode. If the path 26024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26025 # take no chances and rewrite it. 26026 # Note: m4 eats our [], so we need to use [ and ] instead. 26027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26028 if test "x$has_forbidden_chars" != x; then 26029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26030 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26031 fi 26032 26033 # Output is in $new_path 26034 26035 windows_path="$new_path" 26036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26037 unix_path=`$CYGPATH -u "$windows_path"` 26038 new_path="$unix_path" 26039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26041 new_path="$unix_path" 26042 fi 26043 26044 # remove trailing .exe if any 26045 new_path="${new_path/%.exe/}" 26046 26047 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26048 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26049 fi 26050 26051 else 26052 # We're on a posix platform. Hooray! :) 26053 # First separate the path from the arguments. This will split at the first 26054 # space. 26055 complete="$GNM" 26056 path="${complete%% *}" 26057 tmp="$complete EOL" 26058 arguments="${tmp#* }" 26059 26060 # Cannot rely on the command "which" here since it doesn't always work. 26061 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26062 if test -z "$is_absolute_path"; then 26063 # Path to executable is not absolute. Find it. 26064 IFS_save="$IFS" 26065 IFS=: 26066 for p in $PATH; do 26067 if test -f "$p/$path" && test -x "$p/$path"; then 26068 new_path="$p/$path" 26069 break 26070 fi 26071 done 26072 IFS="$IFS_save" 26073 else 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving GNM (as $path) failed, using $path directly." >&5 26075 $as_echo "$as_me: Resolving GNM (as $path) failed, using $path directly." >&6;} 26076 new_path="$path" 26077 fi 26078 26079 if test "x$new_path" = x; then 26080 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 26081 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 26082 has_space=`$ECHO "$complete" | $GREP " "` 26083 if test "x$has_space" != x; then 26084 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26085 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26086 fi 26087 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 26088 fi 26089 fi 26090 26091 # Now join together the path and the arguments once again 26092 if test "x$arguments" != xEOL; then 26093 new_complete="$new_path ${arguments% *}" 26094 else 26095 new_complete="$new_path" 26096 fi 26097 26098 if test "x$complete" != "x$new_complete"; then 26099 GNM="$new_complete" 26100 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 26101 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 26102 fi 26103 26104 # Extract the first word of "strip", so it can be a program name with args. 26105 set dummy strip; ac_word=$2 26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26107 $as_echo_n "checking for $ac_word... " >&6; } 26108 if ${ac_cv_path_STRIP+:} false; then : 26109 $as_echo_n "(cached) " >&6 26110 else 26111 case $STRIP in 26112 [\\/]* | ?:[\\/]*) 26113 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 26114 ;; 26115 *) 26116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26117 for as_dir in $PATH 26118 do 26119 IFS=$as_save_IFS 26120 test -z "$as_dir" && as_dir=. 26121 for ac_exec_ext in '' $ac_executable_extensions; do 26122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26123 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 26124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26125 break 2 26126 fi 26127 done 26128 done 26129 IFS=$as_save_IFS 26130 26131 ;; 26132 esac 26133 fi 26134 STRIP=$ac_cv_path_STRIP 26135 if test -n "$STRIP"; then 26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 26137 $as_echo "$STRIP" >&6; } 26138 else 26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26140 $as_echo "no" >&6; } 26141 fi 26142 26143 26144 26145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26146 26147 # First separate the path from the arguments. This will split at the first 26148 # space. 26149 complete="$STRIP" 26150 path="${complete%% *}" 26151 tmp="$complete EOL" 26152 arguments="${tmp#* }" 26153 26154 # Input might be given as Windows format, start by converting to 26155 # unix format. 26156 new_path=`$CYGPATH -u "$path"` 26157 26158 # Now try to locate executable using which 26159 new_path=`$WHICH "$new_path" 2> /dev/null` 26160 # bat and cmd files are not always considered executable in cygwin causing which 26161 # to not find them 26162 if test "x$new_path" = x \ 26163 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26164 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26165 new_path=`$CYGPATH -u "$path"` 26166 fi 26167 if test "x$new_path" = x; then 26168 # Oops. Which didn't find the executable. 26169 # The splitting of arguments from the executable at a space might have been incorrect, 26170 # since paths with space are more likely in Windows. Give it another try with the whole 26171 # argument. 26172 path="$complete" 26173 arguments="EOL" 26174 new_path=`$CYGPATH -u "$path"` 26175 new_path=`$WHICH "$new_path" 2> /dev/null` 26176 # bat and cmd files are not always considered executable in cygwin causing which 26177 # to not find them 26178 if test "x$new_path" = x \ 26179 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26180 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26181 new_path=`$CYGPATH -u "$path"` 26182 fi 26183 if test "x$new_path" = x; then 26184 # It's still not found. Now this is an unrecoverable error. 26185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 26186 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 26187 has_space=`$ECHO "$complete" | $GREP " "` 26188 if test "x$has_space" != x; then 26189 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26190 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26191 fi 26192 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26193 fi 26194 fi 26195 26196 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26197 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26198 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26199 # "foo.exe" is OK but "foo" is an error. 26200 # 26201 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26202 # It is also a way to make sure we got the proper file name for the real test later on. 26203 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26204 if test "x$test_shortpath" = x; then 26205 # Short path failed, file does not exist as specified. 26206 # Try adding .exe or .cmd 26207 if test -f "${new_path}.exe"; then 26208 input_to_shortpath="${new_path}.exe" 26209 elif test -f "${new_path}.cmd"; then 26210 input_to_shortpath="${new_path}.cmd" 26211 else 26212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 26213 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 26214 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26215 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26216 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26217 fi 26218 else 26219 input_to_shortpath="$new_path" 26220 fi 26221 26222 # Call helper function which possibly converts this using DOS-style short mode. 26223 # If so, the updated path is stored in $new_path. 26224 new_path="$input_to_shortpath" 26225 26226 input_path="$input_to_shortpath" 26227 # Check if we need to convert this using DOS-style short mode. If the path 26228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26229 # take no chances and rewrite it. 26230 # Note: m4 eats our [], so we need to use [ and ] instead. 26231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26232 if test "x$has_forbidden_chars" != x; then 26233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26234 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26235 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26236 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26237 # Going to short mode and back again did indeed matter. Since short mode is 26238 # case insensitive, let's make it lowercase to improve readability. 26239 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26240 # Now convert it back to Unix-stile (cygpath) 26241 input_path=`$CYGPATH -u "$shortmode_path"` 26242 new_path="$input_path" 26243 fi 26244 fi 26245 26246 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26247 if test "x$test_cygdrive_prefix" = x; then 26248 # As a simple fix, exclude /usr/bin since it's not a real path. 26249 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26250 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26251 # a path prefixed by /cygdrive for fixpath to work. 26252 new_path="$CYGWIN_ROOT_PATH$input_path" 26253 fi 26254 fi 26255 26256 # remove trailing .exe if any 26257 new_path="${new_path/%.exe/}" 26258 26259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26260 26261 # First separate the path from the arguments. This will split at the first 26262 # space. 26263 complete="$STRIP" 26264 path="${complete%% *}" 26265 tmp="$complete EOL" 26266 arguments="${tmp#* }" 26267 26268 # Input might be given as Windows format, start by converting to 26269 # unix format. 26270 new_path="$path" 26271 26272 windows_path="$new_path" 26273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26274 unix_path=`$CYGPATH -u "$windows_path"` 26275 new_path="$unix_path" 26276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26277 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26278 new_path="$unix_path" 26279 fi 26280 26281 26282 # Now try to locate executable using which 26283 new_path=`$WHICH "$new_path" 2> /dev/null` 26284 26285 if test "x$new_path" = x; then 26286 # Oops. Which didn't find the executable. 26287 # The splitting of arguments from the executable at a space might have been incorrect, 26288 # since paths with space are more likely in Windows. Give it another try with the whole 26289 # argument. 26290 path="$complete" 26291 arguments="EOL" 26292 new_path="$path" 26293 26294 windows_path="$new_path" 26295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26296 unix_path=`$CYGPATH -u "$windows_path"` 26297 new_path="$unix_path" 26298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26300 new_path="$unix_path" 26301 fi 26302 26303 26304 new_path=`$WHICH "$new_path" 2> /dev/null` 26305 26306 if test "x$new_path" = x; then 26307 # It's still not found. Now this is an unrecoverable error. 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 26309 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 26310 has_space=`$ECHO "$complete" | $GREP " "` 26311 if test "x$has_space" != x; then 26312 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26313 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26314 fi 26315 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26316 fi 26317 fi 26318 26319 # Now new_path has a complete unix path to the binary 26320 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26321 # Keep paths in /bin as-is, but remove trailing .exe if any 26322 new_path="${new_path/%.exe/}" 26323 # Do not save /bin paths to all_fixpath_prefixes! 26324 else 26325 # Not in mixed or Windows style, start by that. 26326 new_path=`cmd //c echo $new_path` 26327 26328 input_path="$new_path" 26329 # Check if we need to convert this using DOS-style short mode. If the path 26330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26331 # take no chances and rewrite it. 26332 # Note: m4 eats our [], so we need to use [ and ] instead. 26333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26334 if test "x$has_forbidden_chars" != x; then 26335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26336 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26337 fi 26338 26339 # Output is in $new_path 26340 26341 windows_path="$new_path" 26342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26343 unix_path=`$CYGPATH -u "$windows_path"` 26344 new_path="$unix_path" 26345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26347 new_path="$unix_path" 26348 fi 26349 26350 # remove trailing .exe if any 26351 new_path="${new_path/%.exe/}" 26352 26353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26355 fi 26356 26357 else 26358 # We're on a posix platform. Hooray! :) 26359 # First separate the path from the arguments. This will split at the first 26360 # space. 26361 complete="$STRIP" 26362 path="${complete%% *}" 26363 tmp="$complete EOL" 26364 arguments="${tmp#* }" 26365 26366 # Cannot rely on the command "which" here since it doesn't always work. 26367 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26368 if test -z "$is_absolute_path"; then 26369 # Path to executable is not absolute. Find it. 26370 IFS_save="$IFS" 26371 IFS=: 26372 for p in $PATH; do 26373 if test -f "$p/$path" && test -x "$p/$path"; then 26374 new_path="$p/$path" 26375 break 26376 fi 26377 done 26378 IFS="$IFS_save" 26379 else 26380 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5 26381 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;} 26382 new_path="$path" 26383 fi 26384 26385 if test "x$new_path" = x; then 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 26387 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 26388 has_space=`$ECHO "$complete" | $GREP " "` 26389 if test "x$has_space" != x; then 26390 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26391 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26392 fi 26393 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 26394 fi 26395 fi 26396 26397 # Now join together the path and the arguments once again 26398 if test "x$arguments" != xEOL; then 26399 new_complete="$new_path ${arguments% *}" 26400 else 26401 new_complete="$new_path" 26402 fi 26403 26404 if test "x$complete" != "x$new_complete"; then 26405 STRIP="$new_complete" 26406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 26407 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 26408 fi 26409 26410 # Extract the first word of "mcs", so it can be a program name with args. 26411 set dummy mcs; ac_word=$2 26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26413 $as_echo_n "checking for $ac_word... " >&6; } 26414 if ${ac_cv_path_MCS+:} false; then : 26415 $as_echo_n "(cached) " >&6 26416 else 26417 case $MCS in 26418 [\\/]* | ?:[\\/]*) 26419 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 26420 ;; 26421 *) 26422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26423 for as_dir in $PATH 26424 do 26425 IFS=$as_save_IFS 26426 test -z "$as_dir" && as_dir=. 26427 for ac_exec_ext in '' $ac_executable_extensions; do 26428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26429 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 26430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26431 break 2 26432 fi 26433 done 26434 done 26435 IFS=$as_save_IFS 26436 26437 ;; 26438 esac 26439 fi 26440 MCS=$ac_cv_path_MCS 26441 if test -n "$MCS"; then 26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 26443 $as_echo "$MCS" >&6; } 26444 else 26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26446 $as_echo "no" >&6; } 26447 fi 26448 26449 26450 26451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26452 26453 # First separate the path from the arguments. This will split at the first 26454 # space. 26455 complete="$MCS" 26456 path="${complete%% *}" 26457 tmp="$complete EOL" 26458 arguments="${tmp#* }" 26459 26460 # Input might be given as Windows format, start by converting to 26461 # unix format. 26462 new_path=`$CYGPATH -u "$path"` 26463 26464 # Now try to locate executable using which 26465 new_path=`$WHICH "$new_path" 2> /dev/null` 26466 # bat and cmd files are not always considered executable in cygwin causing which 26467 # to not find them 26468 if test "x$new_path" = x \ 26469 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26470 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26471 new_path=`$CYGPATH -u "$path"` 26472 fi 26473 if test "x$new_path" = x; then 26474 # Oops. Which didn't find the executable. 26475 # The splitting of arguments from the executable at a space might have been incorrect, 26476 # since paths with space are more likely in Windows. Give it another try with the whole 26477 # argument. 26478 path="$complete" 26479 arguments="EOL" 26480 new_path=`$CYGPATH -u "$path"` 26481 new_path=`$WHICH "$new_path" 2> /dev/null` 26482 # bat and cmd files are not always considered executable in cygwin causing which 26483 # to not find them 26484 if test "x$new_path" = x \ 26485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26487 new_path=`$CYGPATH -u "$path"` 26488 fi 26489 if test "x$new_path" = x; then 26490 # It's still not found. Now this is an unrecoverable error. 26491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 26492 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 26493 has_space=`$ECHO "$complete" | $GREP " "` 26494 if test "x$has_space" != x; then 26495 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26496 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26497 fi 26498 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 26499 fi 26500 fi 26501 26502 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26503 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26504 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26505 # "foo.exe" is OK but "foo" is an error. 26506 # 26507 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26508 # It is also a way to make sure we got the proper file name for the real test later on. 26509 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26510 if test "x$test_shortpath" = x; then 26511 # Short path failed, file does not exist as specified. 26512 # Try adding .exe or .cmd 26513 if test -f "${new_path}.exe"; then 26514 input_to_shortpath="${new_path}.exe" 26515 elif test -f "${new_path}.cmd"; then 26516 input_to_shortpath="${new_path}.cmd" 26517 else 26518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 26519 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 26520 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26521 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26522 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 26523 fi 26524 else 26525 input_to_shortpath="$new_path" 26526 fi 26527 26528 # Call helper function which possibly converts this using DOS-style short mode. 26529 # If so, the updated path is stored in $new_path. 26530 new_path="$input_to_shortpath" 26531 26532 input_path="$input_to_shortpath" 26533 # Check if we need to convert this using DOS-style short mode. If the path 26534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26535 # take no chances and rewrite it. 26536 # Note: m4 eats our [], so we need to use [ and ] instead. 26537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26538 if test "x$has_forbidden_chars" != x; then 26539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26543 # Going to short mode and back again did indeed matter. Since short mode is 26544 # case insensitive, let's make it lowercase to improve readability. 26545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26546 # Now convert it back to Unix-stile (cygpath) 26547 input_path=`$CYGPATH -u "$shortmode_path"` 26548 new_path="$input_path" 26549 fi 26550 fi 26551 26552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26553 if test "x$test_cygdrive_prefix" = x; then 26554 # As a simple fix, exclude /usr/bin since it's not a real path. 26555 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26557 # a path prefixed by /cygdrive for fixpath to work. 26558 new_path="$CYGWIN_ROOT_PATH$input_path" 26559 fi 26560 fi 26561 26562 # remove trailing .exe if any 26563 new_path="${new_path/%.exe/}" 26564 26565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26566 26567 # First separate the path from the arguments. This will split at the first 26568 # space. 26569 complete="$MCS" 26570 path="${complete%% *}" 26571 tmp="$complete EOL" 26572 arguments="${tmp#* }" 26573 26574 # Input might be given as Windows format, start by converting to 26575 # unix format. 26576 new_path="$path" 26577 26578 windows_path="$new_path" 26579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26580 unix_path=`$CYGPATH -u "$windows_path"` 26581 new_path="$unix_path" 26582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26584 new_path="$unix_path" 26585 fi 26586 26587 26588 # Now try to locate executable using which 26589 new_path=`$WHICH "$new_path" 2> /dev/null` 26590 26591 if test "x$new_path" = x; then 26592 # Oops. Which didn't find the executable. 26593 # The splitting of arguments from the executable at a space might have been incorrect, 26594 # since paths with space are more likely in Windows. Give it another try with the whole 26595 # argument. 26596 path="$complete" 26597 arguments="EOL" 26598 new_path="$path" 26599 26600 windows_path="$new_path" 26601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26602 unix_path=`$CYGPATH -u "$windows_path"` 26603 new_path="$unix_path" 26604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26606 new_path="$unix_path" 26607 fi 26608 26609 26610 new_path=`$WHICH "$new_path" 2> /dev/null` 26611 26612 if test "x$new_path" = x; then 26613 # It's still not found. Now this is an unrecoverable error. 26614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 26615 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 26616 has_space=`$ECHO "$complete" | $GREP " "` 26617 if test "x$has_space" != x; then 26618 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26619 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26620 fi 26621 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 26622 fi 26623 fi 26624 26625 # Now new_path has a complete unix path to the binary 26626 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26627 # Keep paths in /bin as-is, but remove trailing .exe if any 26628 new_path="${new_path/%.exe/}" 26629 # Do not save /bin paths to all_fixpath_prefixes! 26630 else 26631 # Not in mixed or Windows style, start by that. 26632 new_path=`cmd //c echo $new_path` 26633 26634 input_path="$new_path" 26635 # Check if we need to convert this using DOS-style short mode. If the path 26636 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26637 # take no chances and rewrite it. 26638 # Note: m4 eats our [], so we need to use [ and ] instead. 26639 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26640 if test "x$has_forbidden_chars" != x; then 26641 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26642 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26643 fi 26644 26645 # Output is in $new_path 26646 26647 windows_path="$new_path" 26648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26649 unix_path=`$CYGPATH -u "$windows_path"` 26650 new_path="$unix_path" 26651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26653 new_path="$unix_path" 26654 fi 26655 26656 # remove trailing .exe if any 26657 new_path="${new_path/%.exe/}" 26658 26659 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26660 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26661 fi 26662 26663 else 26664 # We're on a posix platform. Hooray! :) 26665 # First separate the path from the arguments. This will split at the first 26666 # space. 26667 complete="$MCS" 26668 path="${complete%% *}" 26669 tmp="$complete EOL" 26670 arguments="${tmp#* }" 26671 26672 # Cannot rely on the command "which" here since it doesn't always work. 26673 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26674 if test -z "$is_absolute_path"; then 26675 # Path to executable is not absolute. Find it. 26676 IFS_save="$IFS" 26677 IFS=: 26678 for p in $PATH; do 26679 if test -f "$p/$path" && test -x "$p/$path"; then 26680 new_path="$p/$path" 26681 break 26682 fi 26683 done 26684 IFS="$IFS_save" 26685 else 26686 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MCS (as $path) failed, using $path directly." >&5 26687 $as_echo "$as_me: Resolving MCS (as $path) failed, using $path directly." >&6;} 26688 new_path="$path" 26689 fi 26690 26691 if test "x$new_path" = x; then 26692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 26693 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 26694 has_space=`$ECHO "$complete" | $GREP " "` 26695 if test "x$has_space" != x; then 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26697 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26698 fi 26699 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 26700 fi 26701 fi 26702 26703 # Now join together the path and the arguments once again 26704 if test "x$arguments" != xEOL; then 26705 new_complete="$new_path ${arguments% *}" 26706 else 26707 new_complete="$new_path" 26708 fi 26709 26710 if test "x$complete" != "x$new_complete"; then 26711 MCS="$new_complete" 26712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 26713 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 26714 fi 26715 26716 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 26717 if test -n "$ac_tool_prefix"; then 26718 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 26719 set dummy ${ac_tool_prefix}nm; ac_word=$2 26720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26721 $as_echo_n "checking for $ac_word... " >&6; } 26722 if ${ac_cv_prog_NM+:} false; then : 26723 $as_echo_n "(cached) " >&6 26724 else 26725 if test -n "$NM"; then 26726 ac_cv_prog_NM="$NM" # Let the user override the test. 26727 else 26728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26729 for as_dir in $PATH 26730 do 26731 IFS=$as_save_IFS 26732 test -z "$as_dir" && as_dir=. 26733 for ac_exec_ext in '' $ac_executable_extensions; do 26734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26735 ac_cv_prog_NM="${ac_tool_prefix}nm" 26736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26737 break 2 26738 fi 26739 done 26740 done 26741 IFS=$as_save_IFS 26742 26743 fi 26744 fi 26745 NM=$ac_cv_prog_NM 26746 if test -n "$NM"; then 26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 26748 $as_echo "$NM" >&6; } 26749 else 26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26751 $as_echo "no" >&6; } 26752 fi 26753 26754 26755 fi 26756 if test -z "$ac_cv_prog_NM"; then 26757 ac_ct_NM=$NM 26758 # Extract the first word of "nm", so it can be a program name with args. 26759 set dummy nm; ac_word=$2 26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26761 $as_echo_n "checking for $ac_word... " >&6; } 26762 if ${ac_cv_prog_ac_ct_NM+:} false; then : 26763 $as_echo_n "(cached) " >&6 26764 else 26765 if test -n "$ac_ct_NM"; then 26766 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 26767 else 26768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26769 for as_dir in $PATH 26770 do 26771 IFS=$as_save_IFS 26772 test -z "$as_dir" && as_dir=. 26773 for ac_exec_ext in '' $ac_executable_extensions; do 26774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26775 ac_cv_prog_ac_ct_NM="nm" 26776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26777 break 2 26778 fi 26779 done 26780 done 26781 IFS=$as_save_IFS 26782 26783 fi 26784 fi 26785 ac_ct_NM=$ac_cv_prog_ac_ct_NM 26786 if test -n "$ac_ct_NM"; then 26787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 26788 $as_echo "$ac_ct_NM" >&6; } 26789 else 26790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26791 $as_echo "no" >&6; } 26792 fi 26793 26794 if test "x$ac_ct_NM" = x; then 26795 NM="" 26796 else 26797 case $cross_compiling:$ac_tool_warned in 26798 yes:) 26799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26801 ac_tool_warned=yes ;; 26802 esac 26803 NM=$ac_ct_NM 26804 fi 26805 else 26806 NM="$ac_cv_prog_NM" 26807 fi 26808 26809 26810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26811 26812 # First separate the path from the arguments. This will split at the first 26813 # space. 26814 complete="$NM" 26815 path="${complete%% *}" 26816 tmp="$complete EOL" 26817 arguments="${tmp#* }" 26818 26819 # Input might be given as Windows format, start by converting to 26820 # unix format. 26821 new_path=`$CYGPATH -u "$path"` 26822 26823 # Now try to locate executable using which 26824 new_path=`$WHICH "$new_path" 2> /dev/null` 26825 # bat and cmd files are not always considered executable in cygwin causing which 26826 # to not find them 26827 if test "x$new_path" = x \ 26828 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26829 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26830 new_path=`$CYGPATH -u "$path"` 26831 fi 26832 if test "x$new_path" = x; then 26833 # Oops. Which didn't find the executable. 26834 # The splitting of arguments from the executable at a space might have been incorrect, 26835 # since paths with space are more likely in Windows. Give it another try with the whole 26836 # argument. 26837 path="$complete" 26838 arguments="EOL" 26839 new_path=`$CYGPATH -u "$path"` 26840 new_path=`$WHICH "$new_path" 2> /dev/null` 26841 # bat and cmd files are not always considered executable in cygwin causing which 26842 # to not find them 26843 if test "x$new_path" = x \ 26844 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26845 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26846 new_path=`$CYGPATH -u "$path"` 26847 fi 26848 if test "x$new_path" = x; then 26849 # It's still not found. Now this is an unrecoverable error. 26850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 26851 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 26852 has_space=`$ECHO "$complete" | $GREP " "` 26853 if test "x$has_space" != x; then 26854 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26855 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26856 fi 26857 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 26858 fi 26859 fi 26860 26861 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26862 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26863 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26864 # "foo.exe" is OK but "foo" is an error. 26865 # 26866 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26867 # It is also a way to make sure we got the proper file name for the real test later on. 26868 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26869 if test "x$test_shortpath" = x; then 26870 # Short path failed, file does not exist as specified. 26871 # Try adding .exe or .cmd 26872 if test -f "${new_path}.exe"; then 26873 input_to_shortpath="${new_path}.exe" 26874 elif test -f "${new_path}.cmd"; then 26875 input_to_shortpath="${new_path}.cmd" 26876 else 26877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 26878 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 26879 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26880 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26881 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 26882 fi 26883 else 26884 input_to_shortpath="$new_path" 26885 fi 26886 26887 # Call helper function which possibly converts this using DOS-style short mode. 26888 # If so, the updated path is stored in $new_path. 26889 new_path="$input_to_shortpath" 26890 26891 input_path="$input_to_shortpath" 26892 # Check if we need to convert this using DOS-style short mode. If the path 26893 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26894 # take no chances and rewrite it. 26895 # Note: m4 eats our [], so we need to use [ and ] instead. 26896 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26897 if test "x$has_forbidden_chars" != x; then 26898 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26899 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26900 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26901 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26902 # Going to short mode and back again did indeed matter. Since short mode is 26903 # case insensitive, let's make it lowercase to improve readability. 26904 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26905 # Now convert it back to Unix-stile (cygpath) 26906 input_path=`$CYGPATH -u "$shortmode_path"` 26907 new_path="$input_path" 26908 fi 26909 fi 26910 26911 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26912 if test "x$test_cygdrive_prefix" = x; then 26913 # As a simple fix, exclude /usr/bin since it's not a real path. 26914 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26915 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26916 # a path prefixed by /cygdrive for fixpath to work. 26917 new_path="$CYGWIN_ROOT_PATH$input_path" 26918 fi 26919 fi 26920 26921 # remove trailing .exe if any 26922 new_path="${new_path/%.exe/}" 26923 26924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26925 26926 # First separate the path from the arguments. This will split at the first 26927 # space. 26928 complete="$NM" 26929 path="${complete%% *}" 26930 tmp="$complete EOL" 26931 arguments="${tmp#* }" 26932 26933 # Input might be given as Windows format, start by converting to 26934 # unix format. 26935 new_path="$path" 26936 26937 windows_path="$new_path" 26938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26939 unix_path=`$CYGPATH -u "$windows_path"` 26940 new_path="$unix_path" 26941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26943 new_path="$unix_path" 26944 fi 26945 26946 26947 # Now try to locate executable using which 26948 new_path=`$WHICH "$new_path" 2> /dev/null` 26949 26950 if test "x$new_path" = x; then 26951 # Oops. Which didn't find the executable. 26952 # The splitting of arguments from the executable at a space might have been incorrect, 26953 # since paths with space are more likely in Windows. Give it another try with the whole 26954 # argument. 26955 path="$complete" 26956 arguments="EOL" 26957 new_path="$path" 26958 26959 windows_path="$new_path" 26960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26961 unix_path=`$CYGPATH -u "$windows_path"` 26962 new_path="$unix_path" 26963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26964 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26965 new_path="$unix_path" 26966 fi 26967 26968 26969 new_path=`$WHICH "$new_path" 2> /dev/null` 26970 26971 if test "x$new_path" = x; then 26972 # It's still not found. Now this is an unrecoverable error. 26973 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 26974 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 26975 has_space=`$ECHO "$complete" | $GREP " "` 26976 if test "x$has_space" != x; then 26977 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26978 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26979 fi 26980 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 26981 fi 26982 fi 26983 26984 # Now new_path has a complete unix path to the binary 26985 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26986 # Keep paths in /bin as-is, but remove trailing .exe if any 26987 new_path="${new_path/%.exe/}" 26988 # Do not save /bin paths to all_fixpath_prefixes! 26989 else 26990 # Not in mixed or Windows style, start by that. 26991 new_path=`cmd //c echo $new_path` 26992 26993 input_path="$new_path" 26994 # Check if we need to convert this using DOS-style short mode. If the path 26995 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26996 # take no chances and rewrite it. 26997 # Note: m4 eats our [], so we need to use [ and ] instead. 26998 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26999 if test "x$has_forbidden_chars" != x; then 27000 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27001 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27002 fi 27003 27004 # Output is in $new_path 27005 27006 windows_path="$new_path" 27007 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27008 unix_path=`$CYGPATH -u "$windows_path"` 27009 new_path="$unix_path" 27010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27011 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27012 new_path="$unix_path" 27013 fi 27014 27015 # remove trailing .exe if any 27016 new_path="${new_path/%.exe/}" 27017 27018 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27019 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27020 fi 27021 27022 else 27023 # We're on a posix platform. Hooray! :) 27024 # First separate the path from the arguments. This will split at the first 27025 # space. 27026 complete="$NM" 27027 path="${complete%% *}" 27028 tmp="$complete EOL" 27029 arguments="${tmp#* }" 27030 27031 # Cannot rely on the command "which" here since it doesn't always work. 27032 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27033 if test -z "$is_absolute_path"; then 27034 # Path to executable is not absolute. Find it. 27035 IFS_save="$IFS" 27036 IFS=: 27037 for p in $PATH; do 27038 if test -f "$p/$path" && test -x "$p/$path"; then 27039 new_path="$p/$path" 27040 break 27041 fi 27042 done 27043 IFS="$IFS_save" 27044 else 27045 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5 27046 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;} 27047 new_path="$path" 27048 fi 27049 27050 if test "x$new_path" = x; then 27051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 27052 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 27053 has_space=`$ECHO "$complete" | $GREP " "` 27054 if test "x$has_space" != x; then 27055 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27056 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27057 fi 27058 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 27059 fi 27060 fi 27061 27062 # Now join together the path and the arguments once again 27063 if test "x$arguments" != xEOL; then 27064 new_complete="$new_path ${arguments% *}" 27065 else 27066 new_complete="$new_path" 27067 fi 27068 27069 if test "x$complete" != "x$new_complete"; then 27070 NM="$new_complete" 27071 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 27072 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 27073 fi 27074 27075 GNM="$NM" 27076 27077 if test -n "$ac_tool_prefix"; then 27078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 27079 set dummy ${ac_tool_prefix}strip; ac_word=$2 27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27081 $as_echo_n "checking for $ac_word... " >&6; } 27082 if ${ac_cv_prog_STRIP+:} false; then : 27083 $as_echo_n "(cached) " >&6 27084 else 27085 if test -n "$STRIP"; then 27086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 27087 else 27088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27089 for as_dir in $PATH 27090 do 27091 IFS=$as_save_IFS 27092 test -z "$as_dir" && as_dir=. 27093 for ac_exec_ext in '' $ac_executable_extensions; do 27094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27095 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 27096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27097 break 2 27098 fi 27099 done 27100 done 27101 IFS=$as_save_IFS 27102 27103 fi 27104 fi 27105 STRIP=$ac_cv_prog_STRIP 27106 if test -n "$STRIP"; then 27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 27108 $as_echo "$STRIP" >&6; } 27109 else 27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27111 $as_echo "no" >&6; } 27112 fi 27113 27114 27115 fi 27116 if test -z "$ac_cv_prog_STRIP"; then 27117 ac_ct_STRIP=$STRIP 27118 # Extract the first word of "strip", so it can be a program name with args. 27119 set dummy strip; ac_word=$2 27120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27121 $as_echo_n "checking for $ac_word... " >&6; } 27122 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 27123 $as_echo_n "(cached) " >&6 27124 else 27125 if test -n "$ac_ct_STRIP"; then 27126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 27127 else 27128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27129 for as_dir in $PATH 27130 do 27131 IFS=$as_save_IFS 27132 test -z "$as_dir" && as_dir=. 27133 for ac_exec_ext in '' $ac_executable_extensions; do 27134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27135 ac_cv_prog_ac_ct_STRIP="strip" 27136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27137 break 2 27138 fi 27139 done 27140 done 27141 IFS=$as_save_IFS 27142 27143 fi 27144 fi 27145 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 27146 if test -n "$ac_ct_STRIP"; then 27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 27148 $as_echo "$ac_ct_STRIP" >&6; } 27149 else 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27151 $as_echo "no" >&6; } 27152 fi 27153 27154 if test "x$ac_ct_STRIP" = x; then 27155 STRIP="" 27156 else 27157 case $cross_compiling:$ac_tool_warned in 27158 yes:) 27159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27161 ac_tool_warned=yes ;; 27162 esac 27163 STRIP=$ac_ct_STRIP 27164 fi 27165 else 27166 STRIP="$ac_cv_prog_STRIP" 27167 fi 27168 27169 27170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27171 27172 # First separate the path from the arguments. This will split at the first 27173 # space. 27174 complete="$STRIP" 27175 path="${complete%% *}" 27176 tmp="$complete EOL" 27177 arguments="${tmp#* }" 27178 27179 # Input might be given as Windows format, start by converting to 27180 # unix format. 27181 new_path=`$CYGPATH -u "$path"` 27182 27183 # Now try to locate executable using which 27184 new_path=`$WHICH "$new_path" 2> /dev/null` 27185 # bat and cmd files are not always considered executable in cygwin causing which 27186 # to not find them 27187 if test "x$new_path" = x \ 27188 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27189 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27190 new_path=`$CYGPATH -u "$path"` 27191 fi 27192 if test "x$new_path" = x; then 27193 # Oops. Which didn't find the executable. 27194 # The splitting of arguments from the executable at a space might have been incorrect, 27195 # since paths with space are more likely in Windows. Give it another try with the whole 27196 # argument. 27197 path="$complete" 27198 arguments="EOL" 27199 new_path=`$CYGPATH -u "$path"` 27200 new_path=`$WHICH "$new_path" 2> /dev/null` 27201 # bat and cmd files are not always considered executable in cygwin causing which 27202 # to not find them 27203 if test "x$new_path" = x \ 27204 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27205 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27206 new_path=`$CYGPATH -u "$path"` 27207 fi 27208 if test "x$new_path" = x; then 27209 # It's still not found. Now this is an unrecoverable error. 27210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 27211 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 27212 has_space=`$ECHO "$complete" | $GREP " "` 27213 if test "x$has_space" != x; then 27214 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27215 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27216 fi 27217 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 27218 fi 27219 fi 27220 27221 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27222 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27223 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27224 # "foo.exe" is OK but "foo" is an error. 27225 # 27226 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27227 # It is also a way to make sure we got the proper file name for the real test later on. 27228 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27229 if test "x$test_shortpath" = x; then 27230 # Short path failed, file does not exist as specified. 27231 # Try adding .exe or .cmd 27232 if test -f "${new_path}.exe"; then 27233 input_to_shortpath="${new_path}.exe" 27234 elif test -f "${new_path}.cmd"; then 27235 input_to_shortpath="${new_path}.cmd" 27236 else 27237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 27238 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 27239 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27240 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27241 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 27242 fi 27243 else 27244 input_to_shortpath="$new_path" 27245 fi 27246 27247 # Call helper function which possibly converts this using DOS-style short mode. 27248 # If so, the updated path is stored in $new_path. 27249 new_path="$input_to_shortpath" 27250 27251 input_path="$input_to_shortpath" 27252 # Check if we need to convert this using DOS-style short mode. If the path 27253 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27254 # take no chances and rewrite it. 27255 # Note: m4 eats our [], so we need to use [ and ] instead. 27256 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27257 if test "x$has_forbidden_chars" != x; then 27258 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27259 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27260 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27261 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27262 # Going to short mode and back again did indeed matter. Since short mode is 27263 # case insensitive, let's make it lowercase to improve readability. 27264 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27265 # Now convert it back to Unix-stile (cygpath) 27266 input_path=`$CYGPATH -u "$shortmode_path"` 27267 new_path="$input_path" 27268 fi 27269 fi 27270 27271 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27272 if test "x$test_cygdrive_prefix" = x; then 27273 # As a simple fix, exclude /usr/bin since it's not a real path. 27274 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27275 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27276 # a path prefixed by /cygdrive for fixpath to work. 27277 new_path="$CYGWIN_ROOT_PATH$input_path" 27278 fi 27279 fi 27280 27281 # remove trailing .exe if any 27282 new_path="${new_path/%.exe/}" 27283 27284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27285 27286 # First separate the path from the arguments. This will split at the first 27287 # space. 27288 complete="$STRIP" 27289 path="${complete%% *}" 27290 tmp="$complete EOL" 27291 arguments="${tmp#* }" 27292 27293 # Input might be given as Windows format, start by converting to 27294 # unix format. 27295 new_path="$path" 27296 27297 windows_path="$new_path" 27298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27299 unix_path=`$CYGPATH -u "$windows_path"` 27300 new_path="$unix_path" 27301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27303 new_path="$unix_path" 27304 fi 27305 27306 27307 # Now try to locate executable using which 27308 new_path=`$WHICH "$new_path" 2> /dev/null` 27309 27310 if test "x$new_path" = x; then 27311 # Oops. Which didn't find the executable. 27312 # The splitting of arguments from the executable at a space might have been incorrect, 27313 # since paths with space are more likely in Windows. Give it another try with the whole 27314 # argument. 27315 path="$complete" 27316 arguments="EOL" 27317 new_path="$path" 27318 27319 windows_path="$new_path" 27320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27321 unix_path=`$CYGPATH -u "$windows_path"` 27322 new_path="$unix_path" 27323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27324 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27325 new_path="$unix_path" 27326 fi 27327 27328 27329 new_path=`$WHICH "$new_path" 2> /dev/null` 27330 27331 if test "x$new_path" = x; then 27332 # It's still not found. Now this is an unrecoverable error. 27333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 27334 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 27335 has_space=`$ECHO "$complete" | $GREP " "` 27336 if test "x$has_space" != x; then 27337 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27338 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27339 fi 27340 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 27341 fi 27342 fi 27343 27344 # Now new_path has a complete unix path to the binary 27345 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27346 # Keep paths in /bin as-is, but remove trailing .exe if any 27347 new_path="${new_path/%.exe/}" 27348 # Do not save /bin paths to all_fixpath_prefixes! 27349 else 27350 # Not in mixed or Windows style, start by that. 27351 new_path=`cmd //c echo $new_path` 27352 27353 input_path="$new_path" 27354 # Check if we need to convert this using DOS-style short mode. If the path 27355 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27356 # take no chances and rewrite it. 27357 # Note: m4 eats our [], so we need to use [ and ] instead. 27358 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27359 if test "x$has_forbidden_chars" != x; then 27360 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27361 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27362 fi 27363 27364 # Output is in $new_path 27365 27366 windows_path="$new_path" 27367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27368 unix_path=`$CYGPATH -u "$windows_path"` 27369 new_path="$unix_path" 27370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27372 new_path="$unix_path" 27373 fi 27374 27375 # remove trailing .exe if any 27376 new_path="${new_path/%.exe/}" 27377 27378 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27379 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27380 fi 27381 27382 else 27383 # We're on a posix platform. Hooray! :) 27384 # First separate the path from the arguments. This will split at the first 27385 # space. 27386 complete="$STRIP" 27387 path="${complete%% *}" 27388 tmp="$complete EOL" 27389 arguments="${tmp#* }" 27390 27391 # Cannot rely on the command "which" here since it doesn't always work. 27392 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27393 if test -z "$is_absolute_path"; then 27394 # Path to executable is not absolute. Find it. 27395 IFS_save="$IFS" 27396 IFS=: 27397 for p in $PATH; do 27398 if test -f "$p/$path" && test -x "$p/$path"; then 27399 new_path="$p/$path" 27400 break 27401 fi 27402 done 27403 IFS="$IFS_save" 27404 else 27405 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5 27406 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;} 27407 new_path="$path" 27408 fi 27409 27410 if test "x$new_path" = x; then 27411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 27412 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 27413 has_space=`$ECHO "$complete" | $GREP " "` 27414 if test "x$has_space" != x; then 27415 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27416 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27417 fi 27418 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 27419 fi 27420 fi 27421 27422 # Now join together the path and the arguments once again 27423 if test "x$arguments" != xEOL; then 27424 new_complete="$new_path ${arguments% *}" 27425 else 27426 new_complete="$new_path" 27427 fi 27428 27429 if test "x$complete" != "x$new_complete"; then 27430 STRIP="$new_complete" 27431 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 27432 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 27433 fi 27434 27435 fi 27436 27437 # objcopy is used for moving debug symbols to separate files when 27438 # full debug symbols are enabled. 27439 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 27440 if test -n "$ac_tool_prefix"; then 27441 for ac_prog in gobjcopy objcopy 27442 do 27443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27446 $as_echo_n "checking for $ac_word... " >&6; } 27447 if ${ac_cv_prog_OBJCOPY+:} false; then : 27448 $as_echo_n "(cached) " >&6 27449 else 27450 if test -n "$OBJCOPY"; then 27451 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 27452 else 27453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27454 for as_dir in $PATH 27455 do 27456 IFS=$as_save_IFS 27457 test -z "$as_dir" && as_dir=. 27458 for ac_exec_ext in '' $ac_executable_extensions; do 27459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27460 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 27461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27462 break 2 27463 fi 27464 done 27465 done 27466 IFS=$as_save_IFS 27467 27468 fi 27469 fi 27470 OBJCOPY=$ac_cv_prog_OBJCOPY 27471 if test -n "$OBJCOPY"; then 27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 27473 $as_echo "$OBJCOPY" >&6; } 27474 else 27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27476 $as_echo "no" >&6; } 27477 fi 27478 27479 27480 test -n "$OBJCOPY" && break 27481 done 27482 fi 27483 if test -z "$OBJCOPY"; then 27484 ac_ct_OBJCOPY=$OBJCOPY 27485 for ac_prog in gobjcopy objcopy 27486 do 27487 # Extract the first word of "$ac_prog", so it can be a program name with args. 27488 set dummy $ac_prog; ac_word=$2 27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27490 $as_echo_n "checking for $ac_word... " >&6; } 27491 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 27492 $as_echo_n "(cached) " >&6 27493 else 27494 if test -n "$ac_ct_OBJCOPY"; then 27495 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 27496 else 27497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27498 for as_dir in $PATH 27499 do 27500 IFS=$as_save_IFS 27501 test -z "$as_dir" && as_dir=. 27502 for ac_exec_ext in '' $ac_executable_extensions; do 27503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27504 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 27505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27506 break 2 27507 fi 27508 done 27509 done 27510 IFS=$as_save_IFS 27511 27512 fi 27513 fi 27514 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 27515 if test -n "$ac_ct_OBJCOPY"; then 27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 27517 $as_echo "$ac_ct_OBJCOPY" >&6; } 27518 else 27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27520 $as_echo "no" >&6; } 27521 fi 27522 27523 27524 test -n "$ac_ct_OBJCOPY" && break 27525 done 27526 27527 if test "x$ac_ct_OBJCOPY" = x; then 27528 OBJCOPY="" 27529 else 27530 case $cross_compiling:$ac_tool_warned in 27531 yes:) 27532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27534 ac_tool_warned=yes ;; 27535 esac 27536 OBJCOPY=$ac_ct_OBJCOPY 27537 fi 27538 fi 27539 27540 # Only call fixup if objcopy was found. 27541 if test -n "$OBJCOPY"; then 27542 27543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27544 27545 # First separate the path from the arguments. This will split at the first 27546 # space. 27547 complete="$OBJCOPY" 27548 path="${complete%% *}" 27549 tmp="$complete EOL" 27550 arguments="${tmp#* }" 27551 27552 # Input might be given as Windows format, start by converting to 27553 # unix format. 27554 new_path=`$CYGPATH -u "$path"` 27555 27556 # Now try to locate executable using which 27557 new_path=`$WHICH "$new_path" 2> /dev/null` 27558 # bat and cmd files are not always considered executable in cygwin causing which 27559 # to not find them 27560 if test "x$new_path" = x \ 27561 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27562 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27563 new_path=`$CYGPATH -u "$path"` 27564 fi 27565 if test "x$new_path" = x; then 27566 # Oops. Which didn't find the executable. 27567 # The splitting of arguments from the executable at a space might have been incorrect, 27568 # since paths with space are more likely in Windows. Give it another try with the whole 27569 # argument. 27570 path="$complete" 27571 arguments="EOL" 27572 new_path=`$CYGPATH -u "$path"` 27573 new_path=`$WHICH "$new_path" 2> /dev/null` 27574 # bat and cmd files are not always considered executable in cygwin causing which 27575 # to not find them 27576 if test "x$new_path" = x \ 27577 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27578 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27579 new_path=`$CYGPATH -u "$path"` 27580 fi 27581 if test "x$new_path" = x; then 27582 # It's still not found. Now this is an unrecoverable error. 27583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 27584 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 27585 has_space=`$ECHO "$complete" | $GREP " "` 27586 if test "x$has_space" != x; then 27587 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27588 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27589 fi 27590 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 27591 fi 27592 fi 27593 27594 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27595 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27596 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27597 # "foo.exe" is OK but "foo" is an error. 27598 # 27599 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27600 # It is also a way to make sure we got the proper file name for the real test later on. 27601 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27602 if test "x$test_shortpath" = x; then 27603 # Short path failed, file does not exist as specified. 27604 # Try adding .exe or .cmd 27605 if test -f "${new_path}.exe"; then 27606 input_to_shortpath="${new_path}.exe" 27607 elif test -f "${new_path}.cmd"; then 27608 input_to_shortpath="${new_path}.cmd" 27609 else 27610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 27611 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 27612 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27613 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27614 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 27615 fi 27616 else 27617 input_to_shortpath="$new_path" 27618 fi 27619 27620 # Call helper function which possibly converts this using DOS-style short mode. 27621 # If so, the updated path is stored in $new_path. 27622 new_path="$input_to_shortpath" 27623 27624 input_path="$input_to_shortpath" 27625 # Check if we need to convert this using DOS-style short mode. If the path 27626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27627 # take no chances and rewrite it. 27628 # Note: m4 eats our [], so we need to use [ and ] instead. 27629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27630 if test "x$has_forbidden_chars" != x; then 27631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27632 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27633 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27634 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27635 # Going to short mode and back again did indeed matter. Since short mode is 27636 # case insensitive, let's make it lowercase to improve readability. 27637 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27638 # Now convert it back to Unix-stile (cygpath) 27639 input_path=`$CYGPATH -u "$shortmode_path"` 27640 new_path="$input_path" 27641 fi 27642 fi 27643 27644 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27645 if test "x$test_cygdrive_prefix" = x; then 27646 # As a simple fix, exclude /usr/bin since it's not a real path. 27647 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27648 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27649 # a path prefixed by /cygdrive for fixpath to work. 27650 new_path="$CYGWIN_ROOT_PATH$input_path" 27651 fi 27652 fi 27653 27654 # remove trailing .exe if any 27655 new_path="${new_path/%.exe/}" 27656 27657 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27658 27659 # First separate the path from the arguments. This will split at the first 27660 # space. 27661 complete="$OBJCOPY" 27662 path="${complete%% *}" 27663 tmp="$complete EOL" 27664 arguments="${tmp#* }" 27665 27666 # Input might be given as Windows format, start by converting to 27667 # unix format. 27668 new_path="$path" 27669 27670 windows_path="$new_path" 27671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27672 unix_path=`$CYGPATH -u "$windows_path"` 27673 new_path="$unix_path" 27674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27675 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27676 new_path="$unix_path" 27677 fi 27678 27679 27680 # Now try to locate executable using which 27681 new_path=`$WHICH "$new_path" 2> /dev/null` 27682 27683 if test "x$new_path" = x; then 27684 # Oops. Which didn't find the executable. 27685 # The splitting of arguments from the executable at a space might have been incorrect, 27686 # since paths with space are more likely in Windows. Give it another try with the whole 27687 # argument. 27688 path="$complete" 27689 arguments="EOL" 27690 new_path="$path" 27691 27692 windows_path="$new_path" 27693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27694 unix_path=`$CYGPATH -u "$windows_path"` 27695 new_path="$unix_path" 27696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27697 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27698 new_path="$unix_path" 27699 fi 27700 27701 27702 new_path=`$WHICH "$new_path" 2> /dev/null` 27703 27704 if test "x$new_path" = x; then 27705 # It's still not found. Now this is an unrecoverable error. 27706 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 27707 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 27708 has_space=`$ECHO "$complete" | $GREP " "` 27709 if test "x$has_space" != x; then 27710 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27711 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27712 fi 27713 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 27714 fi 27715 fi 27716 27717 # Now new_path has a complete unix path to the binary 27718 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27719 # Keep paths in /bin as-is, but remove trailing .exe if any 27720 new_path="${new_path/%.exe/}" 27721 # Do not save /bin paths to all_fixpath_prefixes! 27722 else 27723 # Not in mixed or Windows style, start by that. 27724 new_path=`cmd //c echo $new_path` 27725 27726 input_path="$new_path" 27727 # Check if we need to convert this using DOS-style short mode. If the path 27728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27729 # take no chances and rewrite it. 27730 # Note: m4 eats our [], so we need to use [ and ] instead. 27731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27732 if test "x$has_forbidden_chars" != x; then 27733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27734 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27735 fi 27736 27737 # Output is in $new_path 27738 27739 windows_path="$new_path" 27740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27741 unix_path=`$CYGPATH -u "$windows_path"` 27742 new_path="$unix_path" 27743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27745 new_path="$unix_path" 27746 fi 27747 27748 # remove trailing .exe if any 27749 new_path="${new_path/%.exe/}" 27750 27751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27753 fi 27754 27755 else 27756 # We're on a posix platform. Hooray! :) 27757 # First separate the path from the arguments. This will split at the first 27758 # space. 27759 complete="$OBJCOPY" 27760 path="${complete%% *}" 27761 tmp="$complete EOL" 27762 arguments="${tmp#* }" 27763 27764 # Cannot rely on the command "which" here since it doesn't always work. 27765 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27766 if test -z "$is_absolute_path"; then 27767 # Path to executable is not absolute. Find it. 27768 IFS_save="$IFS" 27769 IFS=: 27770 for p in $PATH; do 27771 if test -f "$p/$path" && test -x "$p/$path"; then 27772 new_path="$p/$path" 27773 break 27774 fi 27775 done 27776 IFS="$IFS_save" 27777 else 27778 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJCOPY (as $path) failed, using $path directly." >&5 27779 $as_echo "$as_me: Resolving OBJCOPY (as $path) failed, using $path directly." >&6;} 27780 new_path="$path" 27781 fi 27782 27783 if test "x$new_path" = x; then 27784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 27785 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 27786 has_space=`$ECHO "$complete" | $GREP " "` 27787 if test "x$has_space" != x; then 27788 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27789 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27790 fi 27791 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 27792 fi 27793 fi 27794 27795 # Now join together the path and the arguments once again 27796 if test "x$arguments" != xEOL; then 27797 new_complete="$new_path ${arguments% *}" 27798 else 27799 new_complete="$new_path" 27800 fi 27801 27802 if test "x$complete" != "x$new_complete"; then 27803 OBJCOPY="$new_complete" 27804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 27805 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 27806 fi 27807 27808 fi 27809 fi 27810 27811 if test -n "$ac_tool_prefix"; then 27812 for ac_prog in gobjdump objdump 27813 do 27814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27817 $as_echo_n "checking for $ac_word... " >&6; } 27818 if ${ac_cv_prog_OBJDUMP+:} false; then : 27819 $as_echo_n "(cached) " >&6 27820 else 27821 if test -n "$OBJDUMP"; then 27822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 27823 else 27824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27825 for as_dir in $PATH 27826 do 27827 IFS=$as_save_IFS 27828 test -z "$as_dir" && as_dir=. 27829 for ac_exec_ext in '' $ac_executable_extensions; do 27830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27831 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 27832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27833 break 2 27834 fi 27835 done 27836 done 27837 IFS=$as_save_IFS 27838 27839 fi 27840 fi 27841 OBJDUMP=$ac_cv_prog_OBJDUMP 27842 if test -n "$OBJDUMP"; then 27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 27844 $as_echo "$OBJDUMP" >&6; } 27845 else 27846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27847 $as_echo "no" >&6; } 27848 fi 27849 27850 27851 test -n "$OBJDUMP" && break 27852 done 27853 fi 27854 if test -z "$OBJDUMP"; then 27855 ac_ct_OBJDUMP=$OBJDUMP 27856 for ac_prog in gobjdump objdump 27857 do 27858 # Extract the first word of "$ac_prog", so it can be a program name with args. 27859 set dummy $ac_prog; ac_word=$2 27860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27861 $as_echo_n "checking for $ac_word... " >&6; } 27862 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 27863 $as_echo_n "(cached) " >&6 27864 else 27865 if test -n "$ac_ct_OBJDUMP"; then 27866 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 27867 else 27868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27869 for as_dir in $PATH 27870 do 27871 IFS=$as_save_IFS 27872 test -z "$as_dir" && as_dir=. 27873 for ac_exec_ext in '' $ac_executable_extensions; do 27874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27875 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 27876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27877 break 2 27878 fi 27879 done 27880 done 27881 IFS=$as_save_IFS 27882 27883 fi 27884 fi 27885 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 27886 if test -n "$ac_ct_OBJDUMP"; then 27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 27888 $as_echo "$ac_ct_OBJDUMP" >&6; } 27889 else 27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27891 $as_echo "no" >&6; } 27892 fi 27893 27894 27895 test -n "$ac_ct_OBJDUMP" && break 27896 done 27897 27898 if test "x$ac_ct_OBJDUMP" = x; then 27899 OBJDUMP="" 27900 else 27901 case $cross_compiling:$ac_tool_warned in 27902 yes:) 27903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27905 ac_tool_warned=yes ;; 27906 esac 27907 OBJDUMP=$ac_ct_OBJDUMP 27908 fi 27909 fi 27910 27911 if test "x$OBJDUMP" != x; then 27912 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing. 27913 27914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27915 27916 # First separate the path from the arguments. This will split at the first 27917 # space. 27918 complete="$OBJDUMP" 27919 path="${complete%% *}" 27920 tmp="$complete EOL" 27921 arguments="${tmp#* }" 27922 27923 # Input might be given as Windows format, start by converting to 27924 # unix format. 27925 new_path=`$CYGPATH -u "$path"` 27926 27927 # Now try to locate executable using which 27928 new_path=`$WHICH "$new_path" 2> /dev/null` 27929 # bat and cmd files are not always considered executable in cygwin causing which 27930 # to not find them 27931 if test "x$new_path" = x \ 27932 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27933 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27934 new_path=`$CYGPATH -u "$path"` 27935 fi 27936 if test "x$new_path" = x; then 27937 # Oops. Which didn't find the executable. 27938 # The splitting of arguments from the executable at a space might have been incorrect, 27939 # since paths with space are more likely in Windows. Give it another try with the whole 27940 # argument. 27941 path="$complete" 27942 arguments="EOL" 27943 new_path=`$CYGPATH -u "$path"` 27944 new_path=`$WHICH "$new_path" 2> /dev/null` 27945 # bat and cmd files are not always considered executable in cygwin causing which 27946 # to not find them 27947 if test "x$new_path" = x \ 27948 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27949 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27950 new_path=`$CYGPATH -u "$path"` 27951 fi 27952 if test "x$new_path" = x; then 27953 # It's still not found. Now this is an unrecoverable error. 27954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 27955 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 27956 has_space=`$ECHO "$complete" | $GREP " "` 27957 if test "x$has_space" != x; then 27958 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27959 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27960 fi 27961 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 27962 fi 27963 fi 27964 27965 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27966 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27967 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27968 # "foo.exe" is OK but "foo" is an error. 27969 # 27970 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27971 # It is also a way to make sure we got the proper file name for the real test later on. 27972 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27973 if test "x$test_shortpath" = x; then 27974 # Short path failed, file does not exist as specified. 27975 # Try adding .exe or .cmd 27976 if test -f "${new_path}.exe"; then 27977 input_to_shortpath="${new_path}.exe" 27978 elif test -f "${new_path}.cmd"; then 27979 input_to_shortpath="${new_path}.cmd" 27980 else 27981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 27982 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 27983 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27984 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27985 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 27986 fi 27987 else 27988 input_to_shortpath="$new_path" 27989 fi 27990 27991 # Call helper function which possibly converts this using DOS-style short mode. 27992 # If so, the updated path is stored in $new_path. 27993 new_path="$input_to_shortpath" 27994 27995 input_path="$input_to_shortpath" 27996 # Check if we need to convert this using DOS-style short mode. If the path 27997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27998 # take no chances and rewrite it. 27999 # Note: m4 eats our [], so we need to use [ and ] instead. 28000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28001 if test "x$has_forbidden_chars" != x; then 28002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28006 # Going to short mode and back again did indeed matter. Since short mode is 28007 # case insensitive, let's make it lowercase to improve readability. 28008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28009 # Now convert it back to Unix-stile (cygpath) 28010 input_path=`$CYGPATH -u "$shortmode_path"` 28011 new_path="$input_path" 28012 fi 28013 fi 28014 28015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28016 if test "x$test_cygdrive_prefix" = x; then 28017 # As a simple fix, exclude /usr/bin since it's not a real path. 28018 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28020 # a path prefixed by /cygdrive for fixpath to work. 28021 new_path="$CYGWIN_ROOT_PATH$input_path" 28022 fi 28023 fi 28024 28025 # remove trailing .exe if any 28026 new_path="${new_path/%.exe/}" 28027 28028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28029 28030 # First separate the path from the arguments. This will split at the first 28031 # space. 28032 complete="$OBJDUMP" 28033 path="${complete%% *}" 28034 tmp="$complete EOL" 28035 arguments="${tmp#* }" 28036 28037 # Input might be given as Windows format, start by converting to 28038 # unix format. 28039 new_path="$path" 28040 28041 windows_path="$new_path" 28042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28043 unix_path=`$CYGPATH -u "$windows_path"` 28044 new_path="$unix_path" 28045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28047 new_path="$unix_path" 28048 fi 28049 28050 28051 # Now try to locate executable using which 28052 new_path=`$WHICH "$new_path" 2> /dev/null` 28053 28054 if test "x$new_path" = x; then 28055 # Oops. Which didn't find the executable. 28056 # The splitting of arguments from the executable at a space might have been incorrect, 28057 # since paths with space are more likely in Windows. Give it another try with the whole 28058 # argument. 28059 path="$complete" 28060 arguments="EOL" 28061 new_path="$path" 28062 28063 windows_path="$new_path" 28064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28065 unix_path=`$CYGPATH -u "$windows_path"` 28066 new_path="$unix_path" 28067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28068 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28069 new_path="$unix_path" 28070 fi 28071 28072 28073 new_path=`$WHICH "$new_path" 2> /dev/null` 28074 28075 if test "x$new_path" = x; then 28076 # It's still not found. Now this is an unrecoverable error. 28077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 28078 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 28079 has_space=`$ECHO "$complete" | $GREP " "` 28080 if test "x$has_space" != x; then 28081 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28082 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28083 fi 28084 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 28085 fi 28086 fi 28087 28088 # Now new_path has a complete unix path to the binary 28089 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28090 # Keep paths in /bin as-is, but remove trailing .exe if any 28091 new_path="${new_path/%.exe/}" 28092 # Do not save /bin paths to all_fixpath_prefixes! 28093 else 28094 # Not in mixed or Windows style, start by that. 28095 new_path=`cmd //c echo $new_path` 28096 28097 input_path="$new_path" 28098 # Check if we need to convert this using DOS-style short mode. If the path 28099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28100 # take no chances and rewrite it. 28101 # Note: m4 eats our [], so we need to use [ and ] instead. 28102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28103 if test "x$has_forbidden_chars" != x; then 28104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28105 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28106 fi 28107 28108 # Output is in $new_path 28109 28110 windows_path="$new_path" 28111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28112 unix_path=`$CYGPATH -u "$windows_path"` 28113 new_path="$unix_path" 28114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28116 new_path="$unix_path" 28117 fi 28118 28119 # remove trailing .exe if any 28120 new_path="${new_path/%.exe/}" 28121 28122 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28123 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28124 fi 28125 28126 else 28127 # We're on a posix platform. Hooray! :) 28128 # First separate the path from the arguments. This will split at the first 28129 # space. 28130 complete="$OBJDUMP" 28131 path="${complete%% *}" 28132 tmp="$complete EOL" 28133 arguments="${tmp#* }" 28134 28135 # Cannot rely on the command "which" here since it doesn't always work. 28136 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28137 if test -z "$is_absolute_path"; then 28138 # Path to executable is not absolute. Find it. 28139 IFS_save="$IFS" 28140 IFS=: 28141 for p in $PATH; do 28142 if test -f "$p/$path" && test -x "$p/$path"; then 28143 new_path="$p/$path" 28144 break 28145 fi 28146 done 28147 IFS="$IFS_save" 28148 else 28149 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJDUMP (as $path) failed, using $path directly." >&5 28150 $as_echo "$as_me: Resolving OBJDUMP (as $path) failed, using $path directly." >&6;} 28151 new_path="$path" 28152 fi 28153 28154 if test "x$new_path" = x; then 28155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 28156 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 28157 has_space=`$ECHO "$complete" | $GREP " "` 28158 if test "x$has_space" != x; then 28159 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28160 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28161 fi 28162 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 28163 fi 28164 fi 28165 28166 # Now join together the path and the arguments once again 28167 if test "x$arguments" != xEOL; then 28168 new_complete="$new_path ${arguments% *}" 28169 else 28170 new_complete="$new_path" 28171 fi 28172 28173 if test "x$complete" != "x$new_complete"; then 28174 OBJDUMP="$new_complete" 28175 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 28176 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 28177 fi 28178 28179 fi 28180 28181 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 28182 # Extract the first word of "lipo", so it can be a program name with args. 28183 set dummy lipo; ac_word=$2 28184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28185 $as_echo_n "checking for $ac_word... " >&6; } 28186 if ${ac_cv_path_LIPO+:} false; then : 28187 $as_echo_n "(cached) " >&6 28188 else 28189 case $LIPO in 28190 [\\/]* | ?:[\\/]*) 28191 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 28192 ;; 28193 *) 28194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28195 for as_dir in $PATH 28196 do 28197 IFS=$as_save_IFS 28198 test -z "$as_dir" && as_dir=. 28199 for ac_exec_ext in '' $ac_executable_extensions; do 28200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28201 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 28202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28203 break 2 28204 fi 28205 done 28206 done 28207 IFS=$as_save_IFS 28208 28209 ;; 28210 esac 28211 fi 28212 LIPO=$ac_cv_path_LIPO 28213 if test -n "$LIPO"; then 28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 28215 $as_echo "$LIPO" >&6; } 28216 else 28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28218 $as_echo "no" >&6; } 28219 fi 28220 28221 28222 28223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28224 28225 # First separate the path from the arguments. This will split at the first 28226 # space. 28227 complete="$LIPO" 28228 path="${complete%% *}" 28229 tmp="$complete EOL" 28230 arguments="${tmp#* }" 28231 28232 # Input might be given as Windows format, start by converting to 28233 # unix format. 28234 new_path=`$CYGPATH -u "$path"` 28235 28236 # Now try to locate executable using which 28237 new_path=`$WHICH "$new_path" 2> /dev/null` 28238 # bat and cmd files are not always considered executable in cygwin causing which 28239 # to not find them 28240 if test "x$new_path" = x \ 28241 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28242 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28243 new_path=`$CYGPATH -u "$path"` 28244 fi 28245 if test "x$new_path" = x; then 28246 # Oops. Which didn't find the executable. 28247 # The splitting of arguments from the executable at a space might have been incorrect, 28248 # since paths with space are more likely in Windows. Give it another try with the whole 28249 # argument. 28250 path="$complete" 28251 arguments="EOL" 28252 new_path=`$CYGPATH -u "$path"` 28253 new_path=`$WHICH "$new_path" 2> /dev/null` 28254 # bat and cmd files are not always considered executable in cygwin causing which 28255 # to not find them 28256 if test "x$new_path" = x \ 28257 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28258 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28259 new_path=`$CYGPATH -u "$path"` 28260 fi 28261 if test "x$new_path" = x; then 28262 # It's still not found. Now this is an unrecoverable error. 28263 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 28264 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 28265 has_space=`$ECHO "$complete" | $GREP " "` 28266 if test "x$has_space" != x; then 28267 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28268 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28269 fi 28270 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 28271 fi 28272 fi 28273 28274 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28275 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28276 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28277 # "foo.exe" is OK but "foo" is an error. 28278 # 28279 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28280 # It is also a way to make sure we got the proper file name for the real test later on. 28281 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28282 if test "x$test_shortpath" = x; then 28283 # Short path failed, file does not exist as specified. 28284 # Try adding .exe or .cmd 28285 if test -f "${new_path}.exe"; then 28286 input_to_shortpath="${new_path}.exe" 28287 elif test -f "${new_path}.cmd"; then 28288 input_to_shortpath="${new_path}.cmd" 28289 else 28290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 28291 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 28292 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28293 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28294 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 28295 fi 28296 else 28297 input_to_shortpath="$new_path" 28298 fi 28299 28300 # Call helper function which possibly converts this using DOS-style short mode. 28301 # If so, the updated path is stored in $new_path. 28302 new_path="$input_to_shortpath" 28303 28304 input_path="$input_to_shortpath" 28305 # Check if we need to convert this using DOS-style short mode. If the path 28306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28307 # take no chances and rewrite it. 28308 # Note: m4 eats our [], so we need to use [ and ] instead. 28309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28310 if test "x$has_forbidden_chars" != x; then 28311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28312 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28313 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28314 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28315 # Going to short mode and back again did indeed matter. Since short mode is 28316 # case insensitive, let's make it lowercase to improve readability. 28317 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28318 # Now convert it back to Unix-stile (cygpath) 28319 input_path=`$CYGPATH -u "$shortmode_path"` 28320 new_path="$input_path" 28321 fi 28322 fi 28323 28324 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28325 if test "x$test_cygdrive_prefix" = x; then 28326 # As a simple fix, exclude /usr/bin since it's not a real path. 28327 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28328 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28329 # a path prefixed by /cygdrive for fixpath to work. 28330 new_path="$CYGWIN_ROOT_PATH$input_path" 28331 fi 28332 fi 28333 28334 # remove trailing .exe if any 28335 new_path="${new_path/%.exe/}" 28336 28337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28338 28339 # First separate the path from the arguments. This will split at the first 28340 # space. 28341 complete="$LIPO" 28342 path="${complete%% *}" 28343 tmp="$complete EOL" 28344 arguments="${tmp#* }" 28345 28346 # Input might be given as Windows format, start by converting to 28347 # unix format. 28348 new_path="$path" 28349 28350 windows_path="$new_path" 28351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28352 unix_path=`$CYGPATH -u "$windows_path"` 28353 new_path="$unix_path" 28354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28356 new_path="$unix_path" 28357 fi 28358 28359 28360 # Now try to locate executable using which 28361 new_path=`$WHICH "$new_path" 2> /dev/null` 28362 28363 if test "x$new_path" = x; then 28364 # Oops. Which didn't find the executable. 28365 # The splitting of arguments from the executable at a space might have been incorrect, 28366 # since paths with space are more likely in Windows. Give it another try with the whole 28367 # argument. 28368 path="$complete" 28369 arguments="EOL" 28370 new_path="$path" 28371 28372 windows_path="$new_path" 28373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28374 unix_path=`$CYGPATH -u "$windows_path"` 28375 new_path="$unix_path" 28376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28378 new_path="$unix_path" 28379 fi 28380 28381 28382 new_path=`$WHICH "$new_path" 2> /dev/null` 28383 28384 if test "x$new_path" = x; then 28385 # It's still not found. Now this is an unrecoverable error. 28386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 28387 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 28388 has_space=`$ECHO "$complete" | $GREP " "` 28389 if test "x$has_space" != x; then 28390 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28391 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28392 fi 28393 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 28394 fi 28395 fi 28396 28397 # Now new_path has a complete unix path to the binary 28398 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28399 # Keep paths in /bin as-is, but remove trailing .exe if any 28400 new_path="${new_path/%.exe/}" 28401 # Do not save /bin paths to all_fixpath_prefixes! 28402 else 28403 # Not in mixed or Windows style, start by that. 28404 new_path=`cmd //c echo $new_path` 28405 28406 input_path="$new_path" 28407 # Check if we need to convert this using DOS-style short mode. If the path 28408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28409 # take no chances and rewrite it. 28410 # Note: m4 eats our [], so we need to use [ and ] instead. 28411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28412 if test "x$has_forbidden_chars" != x; then 28413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28414 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28415 fi 28416 28417 # Output is in $new_path 28418 28419 windows_path="$new_path" 28420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28421 unix_path=`$CYGPATH -u "$windows_path"` 28422 new_path="$unix_path" 28423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28425 new_path="$unix_path" 28426 fi 28427 28428 # remove trailing .exe if any 28429 new_path="${new_path/%.exe/}" 28430 28431 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28432 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28433 fi 28434 28435 else 28436 # We're on a posix platform. Hooray! :) 28437 # First separate the path from the arguments. This will split at the first 28438 # space. 28439 complete="$LIPO" 28440 path="${complete%% *}" 28441 tmp="$complete EOL" 28442 arguments="${tmp#* }" 28443 28444 # Cannot rely on the command "which" here since it doesn't always work. 28445 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28446 if test -z "$is_absolute_path"; then 28447 # Path to executable is not absolute. Find it. 28448 IFS_save="$IFS" 28449 IFS=: 28450 for p in $PATH; do 28451 if test -f "$p/$path" && test -x "$p/$path"; then 28452 new_path="$p/$path" 28453 break 28454 fi 28455 done 28456 IFS="$IFS_save" 28457 else 28458 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving LIPO (as $path) failed, using $path directly." >&5 28459 $as_echo "$as_me: Resolving LIPO (as $path) failed, using $path directly." >&6;} 28460 new_path="$path" 28461 fi 28462 28463 if test "x$new_path" = x; then 28464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 28465 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 28466 has_space=`$ECHO "$complete" | $GREP " "` 28467 if test "x$has_space" != x; then 28468 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28469 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28470 fi 28471 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 28472 fi 28473 fi 28474 28475 # Now join together the path and the arguments once again 28476 if test "x$arguments" != xEOL; then 28477 new_complete="$new_path ${arguments% *}" 28478 else 28479 new_complete="$new_path" 28480 fi 28481 28482 if test "x$complete" != "x$new_complete"; then 28483 LIPO="$new_complete" 28484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 28485 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 28486 fi 28487 28488 fi 28489 28490 28491 28492 # Restore old path without tools dir 28493 PATH="$OLD_PATH" 28494 28495 28496 # FIXME: Currently we must test this after paths but before flags. Fix! 28497 28498 # And we can test some aspects on the target using configure macros. 28499 28500 28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 28502 $as_echo_n "checking for ANSI C header files... " >&6; } 28503 if ${ac_cv_header_stdc+:} false; then : 28504 $as_echo_n "(cached) " >&6 28505 else 28506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28507 /* end confdefs.h. */ 28508 #include <stdlib.h> 28509 #include <stdarg.h> 28510 #include <string.h> 28511 #include <float.h> 28512 28513 int 28514 main () 28515 { 28516 28517 ; 28518 return 0; 28519 } 28520 _ACEOF 28521 if ac_fn_cxx_try_compile "$LINENO"; then : 28522 ac_cv_header_stdc=yes 28523 else 28524 ac_cv_header_stdc=no 28525 fi 28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28527 28528 if test $ac_cv_header_stdc = yes; then 28529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 28530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28531 /* end confdefs.h. */ 28532 #include <string.h> 28533 28534 _ACEOF 28535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28536 $EGREP "memchr" >/dev/null 2>&1; then : 28537 28538 else 28539 ac_cv_header_stdc=no 28540 fi 28541 rm -f conftest* 28542 28543 fi 28544 28545 if test $ac_cv_header_stdc = yes; then 28546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 28547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28548 /* end confdefs.h. */ 28549 #include <stdlib.h> 28550 28551 _ACEOF 28552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28553 $EGREP "free" >/dev/null 2>&1; then : 28554 28555 else 28556 ac_cv_header_stdc=no 28557 fi 28558 rm -f conftest* 28559 28560 fi 28561 28562 if test $ac_cv_header_stdc = yes; then 28563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 28564 if test "$cross_compiling" = yes; then : 28565 : 28566 else 28567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28568 /* end confdefs.h. */ 28569 #include <ctype.h> 28570 #include <stdlib.h> 28571 #if ((' ' & 0x0FF) == 0x020) 28572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 28573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 28574 #else 28575 # define ISLOWER(c) \ 28576 (('a' <= (c) && (c) <= 'i') \ 28577 || ('j' <= (c) && (c) <= 'r') \ 28578 || ('s' <= (c) && (c) <= 'z')) 28579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 28580 #endif 28581 28582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 28583 int 28584 main () 28585 { 28586 int i; 28587 for (i = 0; i < 256; i++) 28588 if (XOR (islower (i), ISLOWER (i)) 28589 || toupper (i) != TOUPPER (i)) 28590 return 2; 28591 return 0; 28592 } 28593 _ACEOF 28594 if ac_fn_cxx_try_run "$LINENO"; then : 28595 28596 else 28597 ac_cv_header_stdc=no 28598 fi 28599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28600 conftest.$ac_objext conftest.beam conftest.$ac_ext 28601 fi 28602 28603 fi 28604 fi 28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 28606 $as_echo "$ac_cv_header_stdc" >&6; } 28607 if test $ac_cv_header_stdc = yes; then 28608 28609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 28610 28611 fi 28612 28613 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 28614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 28615 inttypes.h stdint.h unistd.h 28616 do : 28617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28618 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 28619 " 28620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28621 cat >>confdefs.h <<_ACEOF 28622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28623 _ACEOF 28624 28625 fi 28626 28627 done 28628 28629 28630 28631 ############################################################################### 28632 # 28633 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 28634 # (The JVM can use 32 or 64 bit Java pointers but that decision 28635 # is made at runtime.) 28636 # 28637 28638 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 28639 # Always specify -m flags on Solaris 28640 28641 # keep track of c/cxx flags that we added outselves... 28642 # to prevent emitting warning... 28643 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28644 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28645 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28646 28647 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 28648 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 28649 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 28650 28651 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 28652 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 28653 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 28654 28655 elif test "x$COMPILE_TYPE" = xreduced; then 28656 if test "x$OPENJDK_TARGET_OS" != xwindows; then 28657 # Specify -m if running reduced on other Posix platforms 28658 28659 # keep track of c/cxx flags that we added outselves... 28660 # to prevent emitting warning... 28661 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28662 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28663 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}" 28664 28665 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 28666 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 28667 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 28668 28669 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 28670 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 28671 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 28672 28673 fi 28674 fi 28675 28676 # Make compilation sanity check 28677 for ac_header in stdio.h 28678 do : 28679 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 28680 if test "x$ac_cv_header_stdio_h" = xyes; then : 28681 cat >>confdefs.h <<_ACEOF 28682 #define HAVE_STDIO_H 1 28683 _ACEOF 28684 28685 else 28686 28687 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 28688 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 28689 if test "x$COMPILE_TYPE" = xreduced; then 28690 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 28691 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 28692 elif test "x$COMPILE_TYPE" = xcross; then 28693 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 28694 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 28695 fi 28696 as_fn_error $? "Cannot continue." "$LINENO" 5 28697 28698 fi 28699 28700 done 28701 28702 28703 # The cast to long int works around a bug in the HP C Compiler 28704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28706 # This bug is HP SR number 8606223364. 28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 28708 $as_echo_n "checking size of int *... " >&6; } 28709 if ${ac_cv_sizeof_int_p+:} false; then : 28710 $as_echo_n "(cached) " >&6 28711 else 28712 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 28713 28714 else 28715 if test "$ac_cv_type_int_p" = yes; then 28716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28718 as_fn_error 77 "cannot compute sizeof (int *) 28719 See \`config.log' for more details" "$LINENO" 5; } 28720 else 28721 ac_cv_sizeof_int_p=0 28722 fi 28723 fi 28724 28725 fi 28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 28727 $as_echo "$ac_cv_sizeof_int_p" >&6; } 28728 28729 28730 28731 cat >>confdefs.h <<_ACEOF 28732 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 28733 _ACEOF 28734 28735 28736 28737 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then 28738 # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html 28739 SIZEOF_INT_P="$ac_cv_sizeof_int_p" 28740 fi 28741 28742 if test "x$SIZEOF_INT_P" = x; then 28743 # The test failed, lets stick to the assumed value. 28744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&5 28745 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 28746 else 28747 TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P` 28748 28749 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 28750 as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5 28751 fi 28752 fi 28753 28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 28755 $as_echo_n "checking for target address size... " >&6; } 28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 28757 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 28758 28759 28760 ############################################################################### 28761 # 28762 # Is the target little of big endian? 28763 # 28764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 28765 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 28766 if ${ac_cv_c_bigendian+:} false; then : 28767 $as_echo_n "(cached) " >&6 28768 else 28769 ac_cv_c_bigendian=unknown 28770 # See if we're dealing with a universal compiler. 28771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28772 /* end confdefs.h. */ 28773 #ifndef __APPLE_CC__ 28774 not a universal capable compiler 28775 #endif 28776 typedef int dummy; 28777 28778 _ACEOF 28779 if ac_fn_cxx_try_compile "$LINENO"; then : 28780 28781 # Check for potential -arch flags. It is not universal unless 28782 # there are at least two -arch flags with different values. 28783 ac_arch= 28784 ac_prev= 28785 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 28786 if test -n "$ac_prev"; then 28787 case $ac_word in 28788 i?86 | x86_64 | ppc | ppc64) 28789 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 28790 ac_arch=$ac_word 28791 else 28792 ac_cv_c_bigendian=universal 28793 break 28794 fi 28795 ;; 28796 esac 28797 ac_prev= 28798 elif test "x$ac_word" = "x-arch"; then 28799 ac_prev=arch 28800 fi 28801 done 28802 fi 28803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28804 if test $ac_cv_c_bigendian = unknown; then 28805 # See if sys/param.h defines the BYTE_ORDER macro. 28806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28807 /* end confdefs.h. */ 28808 #include <sys/types.h> 28809 #include <sys/param.h> 28810 28811 int 28812 main () 28813 { 28814 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 28815 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 28816 && LITTLE_ENDIAN) 28817 bogus endian macros 28818 #endif 28819 28820 ; 28821 return 0; 28822 } 28823 _ACEOF 28824 if ac_fn_cxx_try_compile "$LINENO"; then : 28825 # It does; now see whether it defined to BIG_ENDIAN or not. 28826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28827 /* end confdefs.h. */ 28828 #include <sys/types.h> 28829 #include <sys/param.h> 28830 28831 int 28832 main () 28833 { 28834 #if BYTE_ORDER != BIG_ENDIAN 28835 not big endian 28836 #endif 28837 28838 ; 28839 return 0; 28840 } 28841 _ACEOF 28842 if ac_fn_cxx_try_compile "$LINENO"; then : 28843 ac_cv_c_bigendian=yes 28844 else 28845 ac_cv_c_bigendian=no 28846 fi 28847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28848 fi 28849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28850 fi 28851 if test $ac_cv_c_bigendian = unknown; then 28852 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28854 /* end confdefs.h. */ 28855 #include <limits.h> 28856 28857 int 28858 main () 28859 { 28860 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 28861 bogus endian macros 28862 #endif 28863 28864 ; 28865 return 0; 28866 } 28867 _ACEOF 28868 if ac_fn_cxx_try_compile "$LINENO"; then : 28869 # It does; now see whether it defined to _BIG_ENDIAN or not. 28870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28871 /* end confdefs.h. */ 28872 #include <limits.h> 28873 28874 int 28875 main () 28876 { 28877 #ifndef _BIG_ENDIAN 28878 not big endian 28879 #endif 28880 28881 ; 28882 return 0; 28883 } 28884 _ACEOF 28885 if ac_fn_cxx_try_compile "$LINENO"; then : 28886 ac_cv_c_bigendian=yes 28887 else 28888 ac_cv_c_bigendian=no 28889 fi 28890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28891 fi 28892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28893 fi 28894 if test $ac_cv_c_bigendian = unknown; then 28895 # Compile a test program. 28896 if test "$cross_compiling" = yes; then : 28897 # Try to guess by grepping values from an object file. 28898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28899 /* end confdefs.h. */ 28900 short int ascii_mm[] = 28901 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 28902 short int ascii_ii[] = 28903 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 28904 int use_ascii (int i) { 28905 return ascii_mm[i] + ascii_ii[i]; 28906 } 28907 short int ebcdic_ii[] = 28908 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 28909 short int ebcdic_mm[] = 28910 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 28911 int use_ebcdic (int i) { 28912 return ebcdic_mm[i] + ebcdic_ii[i]; 28913 } 28914 extern int foo; 28915 28916 int 28917 main () 28918 { 28919 return use_ascii (foo) == use_ebcdic (foo); 28920 ; 28921 return 0; 28922 } 28923 _ACEOF 28924 if ac_fn_cxx_try_compile "$LINENO"; then : 28925 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 28926 ac_cv_c_bigendian=yes 28927 fi 28928 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 28929 if test "$ac_cv_c_bigendian" = unknown; then 28930 ac_cv_c_bigendian=no 28931 else 28932 # finding both strings is unlikely to happen, but who knows? 28933 ac_cv_c_bigendian=unknown 28934 fi 28935 fi 28936 fi 28937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28938 else 28939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28940 /* end confdefs.h. */ 28941 $ac_includes_default 28942 int 28943 main () 28944 { 28945 28946 /* Are we little or big endian? From Harbison&Steele. */ 28947 union 28948 { 28949 long int l; 28950 char c[sizeof (long int)]; 28951 } u; 28952 u.l = 1; 28953 return u.c[sizeof (long int) - 1] == 1; 28954 28955 ; 28956 return 0; 28957 } 28958 _ACEOF 28959 if ac_fn_cxx_try_run "$LINENO"; then : 28960 ac_cv_c_bigendian=no 28961 else 28962 ac_cv_c_bigendian=yes 28963 fi 28964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28965 conftest.$ac_objext conftest.beam conftest.$ac_ext 28966 fi 28967 28968 fi 28969 fi 28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 28971 $as_echo "$ac_cv_c_bigendian" >&6; } 28972 case $ac_cv_c_bigendian in #( 28973 yes) 28974 ENDIAN="big";; #( 28975 no) 28976 ENDIAN="little" ;; #( 28977 universal) 28978 ENDIAN="universal_endianness" 28979 ;; #( 28980 *) 28981 ENDIAN="unknown" ;; 28982 esac 28983 28984 28985 if test "x$ENDIAN" = xuniversal_endianness; then 28986 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 28987 fi 28988 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 28989 as_fn_error $? "The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" "$LINENO" 5 28990 fi 28991 28992 28993 # Configure flags for the tools 28994 28995 28996 ############################################################################### 28997 # 28998 # How to compile shared libraries. 28999 # 29000 29001 if test "x$GCC" = xyes; then 29002 COMPILER_NAME=gcc 29003 PICFLAG="-fPIC" 29004 LIBRARY_PREFIX=lib 29005 SHARED_LIBRARY='lib$1.so' 29006 STATIC_LIBRARY='lib$1.a' 29007 SHARED_LIBRARY_FLAGS="-shared" 29008 SHARED_LIBRARY_SUFFIX='.so' 29009 STATIC_LIBRARY_SUFFIX='.a' 29010 OBJ_SUFFIX='.o' 29011 EXE_SUFFIX='' 29012 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 29013 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 29014 C_FLAG_REORDER='' 29015 CXX_FLAG_REORDER='' 29016 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 29017 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 29018 LD="$CC" 29019 LDEXE="$CC" 29020 LDCXX="$CXX" 29021 LDEXECXX="$CXX" 29022 POST_STRIP_CMD="$STRIP -g" 29023 29024 # Linking is different on MacOSX 29025 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29026 # Might change in the future to clang. 29027 COMPILER_NAME=gcc 29028 SHARED_LIBRARY='lib$1.dylib' 29029 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 29030 SHARED_LIBRARY_SUFFIX='.dylib' 29031 EXE_SUFFIX='' 29032 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 29033 SET_SHARED_LIBRARY_MAPFILE='' 29034 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 29035 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN" 29036 POST_STRIP_CMD="$STRIP -S" 29037 fi 29038 else 29039 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29040 # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler 29041 COMPILER_NAME=ossc 29042 PICFLAG="-KPIC" 29043 LIBRARY_PREFIX=lib 29044 SHARED_LIBRARY='lib$1.so' 29045 STATIC_LIBRARY='lib$1.a' 29046 SHARED_LIBRARY_FLAGS="-G" 29047 SHARED_LIBRARY_SUFFIX='.so' 29048 STATIC_LIBRARY_SUFFIX='.a' 29049 OBJ_SUFFIX='.o' 29050 EXE_SUFFIX='' 29051 SET_SHARED_LIBRARY_NAME='' 29052 SET_SHARED_LIBRARY_MAPFILE='-M$1' 29053 C_FLAG_REORDER='-xF' 29054 CXX_FLAG_REORDER='-xF' 29055 SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1' 29056 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN" 29057 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 29058 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 29059 CFLAGS_JDKLIB_EXTRA='-xstrconst' 29060 POST_STRIP_CMD="$STRIP -x" 29061 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 29062 fi 29063 if test "x$OPENJDK_TARGET_OS" = xwindows; then 29064 # If it is not gcc, then assume it is the MS Visual Studio compiler 29065 COMPILER_NAME=cl 29066 PICFLAG="" 29067 LIBRARY_PREFIX= 29068 SHARED_LIBRARY='$1.dll' 29069 STATIC_LIBRARY='$1.lib' 29070 SHARED_LIBRARY_FLAGS="-LD" 29071 SHARED_LIBRARY_SUFFIX='.dll' 29072 STATIC_LIBRARY_SUFFIX='.lib' 29073 OBJ_SUFFIX='.obj' 29074 EXE_SUFFIX='.exe' 29075 SET_SHARED_LIBRARY_NAME='' 29076 SET_SHARED_LIBRARY_MAPFILE='' 29077 SET_SHARED_LIBRARY_ORIGIN='' 29078 SET_EXECUTABLE_ORIGIN='' 29079 fi 29080 fi 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 # The (cross) compiler is now configured, we can now test capabilities 29101 # of the target platform. 29102 29103 29104 29105 ############################################################################### 29106 # 29107 # Setup the opt flags for different compilers 29108 # and different operating systems. 29109 # 29110 29111 # 29112 # NOTE: check for -mstackrealign needs to be below potential addition of -m32 29113 # 29114 if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" = xmacosx; then 29115 # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned. 29116 # While waiting for a better solution, the current workaround is to use -mstackrealign. 29117 CFLAGS="$CFLAGS -mstackrealign" 29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5 29119 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; } 29120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29121 /* end confdefs.h. */ 29122 int main() { return 0; } 29123 _ACEOF 29124 if ac_fn_cxx_try_link "$LINENO"; then : 29125 29126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29127 $as_echo "yes" >&6; } 29128 29129 else 29130 29131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29132 $as_echo "no" >&6; } 29133 as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5 29134 29135 fi 29136 rm -f core conftest.err conftest.$ac_objext \ 29137 conftest$ac_exeext conftest.$ac_ext 29138 fi 29139 29140 C_FLAG_DEPS="-MMD -MF" 29141 CXX_FLAG_DEPS="-MMD -MF" 29142 29143 case $COMPILER_TYPE in 29144 CC ) 29145 D_FLAG="-g" 29146 case $COMPILER_NAME in 29147 gcc ) 29148 case $OPENJDK_TARGET_OS in 29149 macosx ) 29150 # On MacOSX we optimize for size, something 29151 # we should do for all platforms? 29152 C_O_FLAG_HI="-Os" 29153 C_O_FLAG_NORM="-Os" 29154 C_O_FLAG_NONE="" 29155 ;; 29156 *) 29157 C_O_FLAG_HI="-O3" 29158 C_O_FLAG_NORM="-O2" 29159 C_O_FLAG_NONE="-O0" 29160 CFLAGS_DEBUG_SYMBOLS="-g" 29161 CXXFLAGS_DEBUG_SYMBOLS="-g" 29162 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 29163 CFLAGS_DEBUG_SYMBOLS="-g1" 29164 CXXFLAGS_DEBUG_SYMBOLS="-g1" 29165 fi 29166 ;; 29167 esac 29168 CXX_O_FLAG_HI="$C_O_FLAG_HI" 29169 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 29170 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 29171 ;; 29172 ossc ) 29173 # 29174 # Forte has different names for this with their C++ compiler... 29175 # 29176 C_FLAG_DEPS="-xMMD -xMF" 29177 CXX_FLAG_DEPS="-xMMD -xMF" 29178 29179 # Extra options used with HIGHEST 29180 # 29181 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 29182 # done with care, there are some assumptions below that need to 29183 # be understood about the use of pointers, and IEEE behavior. 29184 # 29185 # Use non-standard floating point mode (not IEEE 754) 29186 CC_HIGHEST="$CC_HIGHEST -fns" 29187 # Do some simplification of floating point arithmetic (not IEEE 754) 29188 CC_HIGHEST="$CC_HIGHEST -fsimple" 29189 # Use single precision floating point with 'float' 29190 CC_HIGHEST="$CC_HIGHEST -fsingle" 29191 # Assume memory references via basic pointer types do not alias 29192 # (Source with excessing pointer casting and data access with mixed 29193 # pointer types are not recommended) 29194 CC_HIGHEST="$CC_HIGHEST -xalias_level=basic" 29195 # Use intrinsic or inline versions for math/std functions 29196 # (If you expect perfect errno behavior, do not use this) 29197 CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all" 29198 # Loop data dependency optimizations (need -xO3 or higher) 29199 CC_HIGHEST="$CC_HIGHEST -xdepend" 29200 # Pointer parameters to functions do not overlap 29201 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 29202 # If you pass in multiple pointers to the same data, do not use this) 29203 CC_HIGHEST="$CC_HIGHEST -xrestrict" 29204 # Inline some library routines 29205 # (If you expect perfect errno behavior, do not use this) 29206 CC_HIGHEST="$CC_HIGHEST -xlibmil" 29207 # Use optimized math routines 29208 # (If you expect perfect errno behavior, do not use this) 29209 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 29210 #CC_HIGHEST="$CC_HIGHEST -xlibmopt" 29211 29212 if test "x$OPENJDK_TARGET_CPU" = xsparc; then 29213 CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 29214 CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 29215 fi 29216 29217 case $OPENJDK_TARGET_CPU_ARCH in 29218 x86) 29219 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 29220 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 29221 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 29222 C_O_FLAG_NONE="-xregs=no%frameptr" 29223 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 29224 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 29225 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 29226 CXX_O_FLAG_NONE="-xregs=no%frameptr" 29227 if test "x$OPENJDK_TARGET_CPU" = xx86; then 29228 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 29229 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 29230 fi 29231 ;; 29232 sparc) 29233 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 29234 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 29235 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 29236 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 29237 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 29238 C_O_FLAG_NONE="" 29239 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 29240 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 29241 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 29242 CXX_O_FLAG_NONE="" 29243 ;; 29244 esac 29245 29246 CFLAGS_DEBUG_SYMBOLS="-g -xs" 29247 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 29248 esac 29249 ;; 29250 CL ) 29251 D_FLAG= 29252 C_O_FLAG_HIGHEST="-O2" 29253 C_O_FLAG_HI="-O1" 29254 C_O_FLAG_NORM="-O1" 29255 C_O_FLAG_NONE="-Od" 29256 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 29257 CXX_O_FLAG_HI="$C_O_FLAG_HI" 29258 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 29259 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 29260 ;; 29261 esac 29262 29263 if test -z "$C_O_FLAG_HIGHEST"; then 29264 C_O_FLAG_HIGHEST="$C_O_FLAG_HI" 29265 fi 29266 29267 if test -z "$CXX_O_FLAG_HIGHEST"; then 29268 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI" 29269 fi 29270 29271 29272 29273 29274 29275 29276 29277 29278 29279 29280 29281 29282 29283 29284 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 29285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 29286 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 29287 fi 29288 29289 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 29290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 29291 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 29292 fi 29293 29294 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 29295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 29296 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 29297 fi 29298 29299 29300 # Check whether --with-extra-cflags was given. 29301 if test "${with_extra_cflags+set}" = set; then : 29302 withval=$with_extra_cflags; 29303 fi 29304 29305 29306 29307 # Check whether --with-extra-cxxflags was given. 29308 if test "${with_extra_cxxflags+set}" = set; then : 29309 withval=$with_extra_cxxflags; 29310 fi 29311 29312 29313 29314 # Check whether --with-extra-ldflags was given. 29315 if test "${with_extra_ldflags+set}" = set; then : 29316 withval=$with_extra_ldflags; 29317 fi 29318 29319 29320 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 29321 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 29322 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 29323 29324 # Hotspot needs these set in their legacy form 29325 LEGACY_EXTRA_CFLAGS=$with_extra_cflags 29326 LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags 29327 LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags 29328 29329 29330 29331 29332 29333 ############################################################################### 29334 # 29335 # Now setup the CFLAGS and LDFLAGS for the JDK build. 29336 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 29337 # 29338 case $COMPILER_NAME in 29339 gcc ) 29340 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \ 29341 -pipe \ 29342 -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 29343 case $OPENJDK_TARGET_CPU_ARCH in 29344 arm ) 29345 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 29346 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 29347 ;; 29348 ppc ) 29349 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 29350 ;; 29351 * ) 29352 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 29353 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 29354 ;; 29355 esac 29356 ;; 29357 ossc ) 29358 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 29359 case $OPENJDK_TARGET_CPU_ARCH in 29360 x86 ) 29361 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 29362 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 29363 ;; 29364 esac 29365 29366 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 29367 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 29368 29369 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 29370 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 29371 ;; 29372 cl ) 29373 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 29374 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 29375 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 29376 -DWIN32 -DIAL" 29377 case $OPENJDK_TARGET_CPU in 29378 x86 ) 29379 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 29380 ;; 29381 x86_64 ) 29382 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 29383 ;; 29384 esac 29385 ;; 29386 esac 29387 29388 ############################################################################### 29389 29390 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 29391 29392 # The package path is used only on macosx? 29393 PACKAGE_PATH=/opt/local 29394 29395 29396 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 29397 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 29398 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 29399 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 29400 # Note: -Dmacro is the same as #define macro 1 29401 # -Dmacro= is the same as #define macro 29402 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29403 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 29404 else 29405 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 29406 fi 29407 else 29408 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 29409 fi 29410 if test "x$OPENJDK_TARGET_OS" = xlinux; then 29411 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX" 29412 fi 29413 if test "x$OPENJDK_TARGET_OS" = xwindows; then 29414 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS" 29415 fi 29416 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29417 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS" 29418 fi 29419 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29420 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE" 29421 # Setting these parameters makes it an error to link to macosx APIs that are 29422 # newer than the given OS version and makes the linked binaries compatible even 29423 # if built on a newer version of the OS. 29424 # The expected format is X.Y.Z 29425 MACOSX_VERSION_MIN=10.7.0 29426 29427 # The macro takes the version with no dots, ex: 1070 29428 # Let the flags variables get resolved in make for easier override on make 29429 # command line. 29430 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 29431 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 29432 fi 29433 if test "x$OPENJDK_TARGET_OS" = xbsd; then 29434 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" 29435 fi 29436 if test "x$DEBUG_LEVEL" = xrelease; then 29437 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 29438 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29439 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 29440 fi 29441 else 29442 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 29443 fi 29444 29445 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 29446 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'" 29447 29448 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 29449 -I${JDK_OUTPUTDIR}/include \ 29450 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 29451 -I${JDK_TOPDIR}/src/share/javavm/export \ 29452 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/javavm/export \ 29453 -I${JDK_TOPDIR}/src/share/native/common \ 29454 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 29455 29456 # The shared libraries are compiled using the picflag. 29457 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 29458 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 29459 29460 # Executable flags 29461 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 29462 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 29463 29464 # Now this is odd. The JDK native libraries have to link against libjvm.so 29465 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 29466 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 29467 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 29468 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 29469 # libraries will link to whatever is in memory. Yuck. 29470 # 29471 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 29472 if test "x$COMPILER_NAME" = xcl; then 29473 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 29474 if test "x$OPENJDK_TARGET_CPU" = xx86; then 29475 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 29476 fi 29477 # TODO: make -debug optional "--disable-full-debug-symbols" 29478 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 29479 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 29480 LDFLAGS_JDKLIB_SUFFIX="" 29481 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 29482 LDFLAGS_STACK_SIZE=1048576 29483 else 29484 LDFLAGS_STACK_SIZE=327680 29485 fi 29486 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 29487 else 29488 if test "x$COMPILER_NAME" = xgcc; then 29489 # If this is a --hash-style=gnu system, use --hash-style=both, why? 29490 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 29491 if test -n "$HAS_GNU_HASH"; then 29492 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 29493 fi 29494 if test "x$OPENJDK_TARGET_OS" = xlinux; then 29495 # And since we now know that the linker is gnu, then add -z defs, to forbid 29496 # undefined symbols in object files. 29497 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 29498 if test "x$DEBUG_LEVEL" = "xrelease"; then 29499 # When building release libraries, tell the linker optimize them. 29500 # Should this be supplied to the OSS linker as well? 29501 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 29502 fi 29503 fi 29504 fi 29505 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 29506 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 29507 29508 # On some platforms (mac) the linker warns about non existing -L dirs. 29509 # Add server first if available. Linking aginst client does not always produce the same results. 29510 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 29511 # Default to server for other variants. 29512 if test "x$JVM_VARIANT_SERVER" = xtrue; then 29513 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 29514 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 29515 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 29516 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 29517 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 29518 else 29519 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 29520 fi 29521 29522 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 29523 if test "x$COMPILER_NAME" = xossc; then 29524 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 29525 fi 29526 29527 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 29528 if test "x$OPENJDK_TARGET_OS" = xlinux; then 29529 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 29530 fi 29531 fi 29532 29533 # Adjust flags according to debug level. 29534 case $DEBUG_LEVEL in 29535 fastdebug ) 29536 CFLAGS="$CFLAGS $D_FLAG" 29537 JAVAC_FLAGS="$JAVAC_FLAGS -g" 29538 ;; 29539 slowdebug ) 29540 CFLAGS="$CFLAGS $D_FLAG" 29541 C_O_FLAG_HI="$C_O_FLAG_NONE" 29542 C_O_FLAG_NORM="$C_O_FLAG_NONE" 29543 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 29544 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 29545 JAVAC_FLAGS="$JAVAC_FLAGS -g" 29546 ;; 29547 esac 29548 29549 29550 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 29561 29562 29563 29564 # Some Zero and Shark settings. 29565 # ZERO_ARCHFLAG tells the compiler which mode to build for 29566 case "${OPENJDK_TARGET_CPU}" in 29567 s390) 29568 ZERO_ARCHFLAG="-m31" 29569 ;; 29570 *) 29571 ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}" 29572 esac 29573 29574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 29575 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 29576 supports=yes 29577 29578 saved_cflags="$CFLAGS" 29579 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 29580 ac_ext=c 29581 ac_cpp='$CPP $CPPFLAGS' 29582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29584 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29585 29586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29587 /* end confdefs.h. */ 29588 29589 int i; 29590 29591 _ACEOF 29592 if ac_fn_c_try_compile "$LINENO"; then : 29593 29594 else 29595 supports=no 29596 fi 29597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29598 ac_ext=cpp 29599 ac_cpp='$CXXCPP $CPPFLAGS' 29600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29603 29604 CFLAGS="$saved_cflags" 29605 29606 saved_cxxflags="$CXXFLAGS" 29607 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 29608 ac_ext=cpp 29609 ac_cpp='$CXXCPP $CPPFLAGS' 29610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29613 29614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29615 /* end confdefs.h. */ 29616 29617 int i; 29618 29619 _ACEOF 29620 if ac_fn_cxx_try_compile "$LINENO"; then : 29621 29622 else 29623 supports=no 29624 fi 29625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29626 ac_ext=cpp 29627 ac_cpp='$CXXCPP $CPPFLAGS' 29628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29631 29632 CXXFLAGS="$saved_cxxflags" 29633 29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 29635 $as_echo "$supports" >&6; } 29636 if test "x$supports" = "xyes" ; then 29637 : 29638 else 29639 ZERO_ARCHFLAG="" 29640 fi 29641 29642 29643 29644 # Check that the compiler supports -mX flags 29645 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 29646 29647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"" >&5 29648 $as_echo_n "checking if compiler supports \"-m${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 29649 supports=yes 29650 29651 saved_cflags="$CFLAGS" 29652 CFLAGS="$CFLAGS -m${OPENJDK_TARGET_CPU_BITS}" 29653 ac_ext=c 29654 ac_cpp='$CPP $CPPFLAGS' 29655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29657 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29658 29659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29660 /* end confdefs.h. */ 29661 29662 int i; 29663 29664 _ACEOF 29665 if ac_fn_c_try_compile "$LINENO"; then : 29666 29667 else 29668 supports=no 29669 fi 29670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29671 ac_ext=cpp 29672 ac_cpp='$CXXCPP $CPPFLAGS' 29673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29676 29677 CFLAGS="$saved_cflags" 29678 29679 saved_cxxflags="$CXXFLAGS" 29680 CXXFLAGS="$CXXFLAG -m${OPENJDK_TARGET_CPU_BITS}" 29681 ac_ext=cpp 29682 ac_cpp='$CXXCPP $CPPFLAGS' 29683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29686 29687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29688 /* end confdefs.h. */ 29689 29690 int i; 29691 29692 _ACEOF 29693 if ac_fn_cxx_try_compile "$LINENO"; then : 29694 29695 else 29696 supports=no 29697 fi 29698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29699 ac_ext=cpp 29700 ac_cpp='$CXXCPP $CPPFLAGS' 29701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29704 29705 CXXFLAGS="$saved_cxxflags" 29706 29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 29708 $as_echo "$supports" >&6; } 29709 if test "x$supports" = "xyes" ; then 29710 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 29711 else 29712 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 29713 fi 29714 29715 29716 29717 29718 # Setup debug symbols (need objcopy from the toolchain for that) 29719 29720 # 29721 # ENABLE_DEBUG_SYMBOLS 29722 # This must be done after the toolchain is setup, since we're looking at objcopy. 29723 # 29724 # Check whether --enable-debug-symbols was given. 29725 if test "${enable_debug_symbols+set}" = set; then : 29726 enableval=$enable_debug_symbols; 29727 fi 29728 29729 29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 29731 $as_echo_n "checking if we should generate debug symbols... " >&6; } 29732 29733 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 29734 # explicit enabling of enable-debug-symbols and can't find objcopy 29735 # this is an error 29736 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 29737 fi 29738 29739 if test "x$enable_debug_symbols" = "xyes"; then 29740 ENABLE_DEBUG_SYMBOLS=true 29741 elif test "x$enable_debug_symbols" = "xno"; then 29742 ENABLE_DEBUG_SYMBOLS=false 29743 else 29744 # default on macosx is false 29745 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29746 ENABLE_DEBUG_SYMBOLS=false 29747 # Default is on if objcopy is found, otherwise off 29748 elif test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then 29749 ENABLE_DEBUG_SYMBOLS=true 29750 else 29751 ENABLE_DEBUG_SYMBOLS=false 29752 fi 29753 fi 29754 29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 29756 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 29757 29758 # 29759 # ZIP_DEBUGINFO_FILES 29760 # 29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 29762 $as_echo_n "checking if we should zip debug-info files... " >&6; } 29763 # Check whether --enable-zip-debug-info was given. 29764 if test "${enable_zip_debug_info+set}" = set; then : 29765 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 29766 else 29767 enable_zip_debug_info="yes" 29768 fi 29769 29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 29771 $as_echo "${enable_zip_debug_info}" >&6; } 29772 29773 if test "x${enable_zip_debug_info}" = "xno"; then 29774 ZIP_DEBUGINFO_FILES=false 29775 else 29776 ZIP_DEBUGINFO_FILES=true 29777 fi 29778 29779 29780 29781 29782 29783 29784 29785 ############################################################################### 29786 # 29787 # Check dependencies for external and internal libraries. 29788 # 29789 ############################################################################### 29790 29791 29792 29793 ############################################################################### 29794 # 29795 # OS specific settings that we never will need to probe. 29796 # 29797 if test "x$OPENJDK_TARGET_OS" = xlinux; then 29798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 29799 $as_echo_n "checking what is not needed on Linux?... " >&6; } 29800 PULSE_NOT_NEEDED=yes 29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 29802 $as_echo "pulse" >&6; } 29803 fi 29804 29805 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 29807 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 29808 ALSA_NOT_NEEDED=yes 29809 PULSE_NOT_NEEDED=yes 29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 29811 $as_echo "alsa pulse" >&6; } 29812 fi 29813 29814 if test "x$OPENJDK_TARGET_OS" = xwindows; then 29815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 29816 $as_echo_n "checking what is not needed on Windows?... " >&6; } 29817 CUPS_NOT_NEEDED=yes 29818 ALSA_NOT_NEEDED=yes 29819 PULSE_NOT_NEEDED=yes 29820 X11_NOT_NEEDED=yes 29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 29822 $as_echo "alsa cups pulse x11" >&6; } 29823 fi 29824 29825 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 29827 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 29828 ALSA_NOT_NEEDED=yes 29829 PULSE_NOT_NEEDED=yes 29830 X11_NOT_NEEDED=yes 29831 FREETYPE2_NOT_NEEDED=yes 29832 # If the java runtime framework is disabled, then we need X11. 29833 # This will be adjusted below. 29834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 29835 $as_echo "alsa pulse x11" >&6; } 29836 fi 29837 29838 if test "x$OPENJDK_TARGET_OS" = xbsd; then 29839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 29840 $as_echo_n "checking what is not needed on bsd?... " >&6; } 29841 ALSA_NOT_NEEDED=yes 29842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 29843 $as_echo "alsa" >&6; } 29844 fi 29845 29846 if test "x$OPENJDK" = "xfalse"; then 29847 FREETYPE2_NOT_NEEDED=yes 29848 fi 29849 29850 if test "x$SUPPORT_HEADFUL" = xno; then 29851 X11_NOT_NEEDED=yes 29852 fi 29853 29854 ############################################################################### 29855 # 29856 # Check for MacOSX support for OpenJDK. If this exists, try to build a JVM 29857 # that uses this API. 29858 # 29859 # Check whether --enable-macosx-runtime-support was given. 29860 if test "${enable_macosx_runtime_support+set}" = set; then : 29861 enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}" 29862 else 29863 MACOSX_RUNTIME_SUPPORT="no" 29864 fi 29865 29866 29867 USE_MACOSX_RUNTIME_SUPPORT=no 29868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit Java runtime support in the OS" >&5 29869 $as_echo_n "checking for explicit Java runtime support in the OS... " >&6; } 29870 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then 29871 if test "x$MACOSX_RUNTIME_SUPPORT" != xno; then 29872 MACOSX_RUNTIME_SUPPORT=yes 29873 USE_MACOSX_RUNTIME_SUPPORT=yes 29874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, does not need alsa freetype2 pulse and X11" >&5 29875 $as_echo "yes, does not need alsa freetype2 pulse and X11" >&6; } 29876 else 29877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5 29878 $as_echo "yes, but explicitly disabled." >&6; } 29879 fi 29880 else 29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29882 $as_echo "no" >&6; } 29883 fi 29884 29885 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then 29886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5 29887 $as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; } 29888 X11_NOT_NEEDED= 29889 FREETYPE2_NOT_NEEDED= 29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 29891 $as_echo "alsa pulse" >&6; } 29892 fi 29893 29894 29895 29896 ############################################################################### 29897 # 29898 # Check for X Windows 29899 # 29900 29901 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 29902 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 29903 # --x-libraries for the sysroot, if that seems to be correct. 29904 if test "x$SYS_ROOT" != "x/"; then 29905 if test "x$x_includes" = xNONE; then 29906 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then 29907 x_includes="$SYS_ROOT/usr/X11R6/include" 29908 fi 29909 fi 29910 if test "x$x_libraries" = xNONE; then 29911 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then 29912 x_libraries="$SYS_ROOT/usr/X11R6/lib" 29913 fi 29914 fi 29915 fi 29916 29917 # Now let autoconf do it's magic 29918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 29919 $as_echo_n "checking for X... " >&6; } 29920 29921 29922 # Check whether --with-x was given. 29923 if test "${with_x+set}" = set; then : 29924 withval=$with_x; 29925 fi 29926 29927 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 29928 if test "x$with_x" = xno; then 29929 # The user explicitly disabled X. 29930 have_x=disabled 29931 else 29932 case $x_includes,$x_libraries in #( 29933 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 29934 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 29935 $as_echo_n "(cached) " >&6 29936 else 29937 # One or both of the vars are not set, and there is no cached value. 29938 ac_x_includes=no ac_x_libraries=no 29939 rm -f -r conftest.dir 29940 if mkdir conftest.dir; then 29941 cd conftest.dir 29942 cat >Imakefile <<'_ACEOF' 29943 incroot: 29944 @echo incroot='${INCROOT}' 29945 usrlibdir: 29946 @echo usrlibdir='${USRLIBDIR}' 29947 libdir: 29948 @echo libdir='${LIBDIR}' 29949 _ACEOF 29950 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 29951 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29952 for ac_var in incroot usrlibdir libdir; do 29953 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 29954 done 29955 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 29956 for ac_extension in a so sl dylib la dll; do 29957 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 29958 test -f "$ac_im_libdir/libX11.$ac_extension"; then 29959 ac_im_usrlibdir=$ac_im_libdir; break 29960 fi 29961 done 29962 # Screen out bogus values from the imake configuration. They are 29963 # bogus both because they are the default anyway, and because 29964 # using them would break gcc on systems where it needs fixed includes. 29965 case $ac_im_incroot in 29966 /usr/include) ac_x_includes= ;; 29967 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 29968 esac 29969 case $ac_im_usrlibdir in 29970 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 29971 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 29972 esac 29973 fi 29974 cd .. 29975 rm -f -r conftest.dir 29976 fi 29977 29978 # Standard set of common directories for X headers. 29979 # Check X11 before X11Rn because it is often a symlink to the current release. 29980 ac_x_header_dirs=' 29981 /usr/X11/include 29982 /usr/X11R7/include 29983 /usr/X11R6/include 29984 /usr/X11R5/include 29985 /usr/X11R4/include 29986 29987 /usr/include/X11 29988 /usr/include/X11R7 29989 /usr/include/X11R6 29990 /usr/include/X11R5 29991 /usr/include/X11R4 29992 29993 /usr/local/X11/include 29994 /usr/local/X11R7/include 29995 /usr/local/X11R6/include 29996 /usr/local/X11R5/include 29997 /usr/local/X11R4/include 29998 29999 /usr/local/include/X11 30000 /usr/local/include/X11R7 30001 /usr/local/include/X11R6 30002 /usr/local/include/X11R5 30003 /usr/local/include/X11R4 30004 30005 /usr/X386/include 30006 /usr/x386/include 30007 /usr/XFree86/include/X11 30008 30009 /usr/include 30010 /usr/local/include 30011 /usr/unsupported/include 30012 /usr/athena/include 30013 /usr/local/x11r5/include 30014 /usr/lpp/Xamples/include 30015 30016 /usr/openwin/include 30017 /usr/openwin/share/include' 30018 30019 if test "$ac_x_includes" = no; then 30020 # Guess where to find include files, by looking for Xlib.h. 30021 # First, try using that file with no special directory specified. 30022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30023 /* end confdefs.h. */ 30024 #include <X11/Xlib.h> 30025 _ACEOF 30026 if ac_fn_cxx_try_cpp "$LINENO"; then : 30027 # We can compile using X headers with no special include directory. 30028 ac_x_includes= 30029 else 30030 for ac_dir in $ac_x_header_dirs; do 30031 if test -r "$ac_dir/X11/Xlib.h"; then 30032 ac_x_includes=$ac_dir 30033 break 30034 fi 30035 done 30036 fi 30037 rm -f conftest.err conftest.i conftest.$ac_ext 30038 fi # $ac_x_includes = no 30039 30040 if test "$ac_x_libraries" = no; then 30041 # Check for the libraries. 30042 # See if we find them without any special options. 30043 # Don't add to $LIBS permanently. 30044 ac_save_LIBS=$LIBS 30045 LIBS="-lX11 $LIBS" 30046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30047 /* end confdefs.h. */ 30048 #include <X11/Xlib.h> 30049 int 30050 main () 30051 { 30052 XrmInitialize () 30053 ; 30054 return 0; 30055 } 30056 _ACEOF 30057 if ac_fn_cxx_try_link "$LINENO"; then : 30058 LIBS=$ac_save_LIBS 30059 # We can link X programs with no special library path. 30060 ac_x_libraries= 30061 else 30062 LIBS=$ac_save_LIBS 30063 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 30064 do 30065 # Don't even attempt the hair of trying to link an X program! 30066 for ac_extension in a so sl dylib la dll; do 30067 if test -r "$ac_dir/libX11.$ac_extension"; then 30068 ac_x_libraries=$ac_dir 30069 break 2 30070 fi 30071 done 30072 done 30073 fi 30074 rm -f core conftest.err conftest.$ac_objext \ 30075 conftest$ac_exeext conftest.$ac_ext 30076 fi # $ac_x_libraries = no 30077 30078 case $ac_x_includes,$ac_x_libraries in #( 30079 no,* | *,no | *\'*) 30080 # Didn't find X, or a directory has "'" in its name. 30081 ac_cv_have_x="have_x=no";; #( 30082 *) 30083 # Record where we found X for the cache. 30084 ac_cv_have_x="have_x=yes\ 30085 ac_x_includes='$ac_x_includes'\ 30086 ac_x_libraries='$ac_x_libraries'" 30087 esac 30088 fi 30089 ;; #( 30090 *) have_x=yes;; 30091 esac 30092 eval "$ac_cv_have_x" 30093 fi # $with_x != no 30094 30095 if test "$have_x" != yes; then 30096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 30097 $as_echo "$have_x" >&6; } 30098 no_x=yes 30099 else 30100 # If each of the values was on the command line, it overrides each guess. 30101 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 30102 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 30103 # Update the cache value to reflect the command line values. 30104 ac_cv_have_x="have_x=yes\ 30105 ac_x_includes='$x_includes'\ 30106 ac_x_libraries='$x_libraries'" 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 30108 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 30109 fi 30110 30111 if test "$no_x" = yes; then 30112 # Not all programs may use this symbol, but it does not hurt to define it. 30113 30114 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 30115 30116 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 30117 else 30118 if test -n "$x_includes"; then 30119 X_CFLAGS="$X_CFLAGS -I$x_includes" 30120 fi 30121 30122 # It would also be nice to do this for all -L options, not just this one. 30123 if test -n "$x_libraries"; then 30124 X_LIBS="$X_LIBS -L$x_libraries" 30125 # For Solaris; some versions of Sun CC require a space after -R and 30126 # others require no space. Words are not sufficient . . . . 30127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 30128 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 30129 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 30130 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 30131 ac_cxx_werror_flag=yes 30132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30133 /* end confdefs.h. */ 30134 30135 int 30136 main () 30137 { 30138 30139 ; 30140 return 0; 30141 } 30142 _ACEOF 30143 if ac_fn_cxx_try_link "$LINENO"; then : 30144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30145 $as_echo "no" >&6; } 30146 X_LIBS="$X_LIBS -R$x_libraries" 30147 else 30148 LIBS="$ac_xsave_LIBS -R $x_libraries" 30149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30150 /* end confdefs.h. */ 30151 30152 int 30153 main () 30154 { 30155 30156 ; 30157 return 0; 30158 } 30159 _ACEOF 30160 if ac_fn_cxx_try_link "$LINENO"; then : 30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30162 $as_echo "yes" >&6; } 30163 X_LIBS="$X_LIBS -R $x_libraries" 30164 else 30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 30166 $as_echo "neither works" >&6; } 30167 fi 30168 rm -f core conftest.err conftest.$ac_objext \ 30169 conftest$ac_exeext conftest.$ac_ext 30170 fi 30171 rm -f core conftest.err conftest.$ac_objext \ 30172 conftest$ac_exeext conftest.$ac_ext 30173 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 30174 LIBS=$ac_xsave_LIBS 30175 fi 30176 30177 # Check for system-dependent libraries X programs must link with. 30178 # Do this before checking for the system-independent R6 libraries 30179 # (-lICE), since we may need -lsocket or whatever for X linking. 30180 30181 if test "$ISC" = yes; then 30182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 30183 else 30184 # Martyn Johnson says this is needed for Ultrix, if the X 30185 # libraries were built with DECnet support. And Karl Berry says 30186 # the Alpha needs dnet_stub (dnet does not exist). 30187 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 30188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30189 /* end confdefs.h. */ 30190 30191 /* Override any GCC internal prototype to avoid an error. 30192 Use char because int might match the return type of a GCC 30193 builtin and then its argument prototype would still apply. */ 30194 #ifdef __cplusplus 30195 extern "C" 30196 #endif 30197 char XOpenDisplay (); 30198 int 30199 main () 30200 { 30201 return XOpenDisplay (); 30202 ; 30203 return 0; 30204 } 30205 _ACEOF 30206 if ac_fn_cxx_try_link "$LINENO"; then : 30207 30208 else 30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 30210 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 30211 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 30212 $as_echo_n "(cached) " >&6 30213 else 30214 ac_check_lib_save_LIBS=$LIBS 30215 LIBS="-ldnet $LIBS" 30216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30217 /* end confdefs.h. */ 30218 30219 /* Override any GCC internal prototype to avoid an error. 30220 Use char because int might match the return type of a GCC 30221 builtin and then its argument prototype would still apply. */ 30222 #ifdef __cplusplus 30223 extern "C" 30224 #endif 30225 char dnet_ntoa (); 30226 int 30227 main () 30228 { 30229 return dnet_ntoa (); 30230 ; 30231 return 0; 30232 } 30233 _ACEOF 30234 if ac_fn_cxx_try_link "$LINENO"; then : 30235 ac_cv_lib_dnet_dnet_ntoa=yes 30236 else 30237 ac_cv_lib_dnet_dnet_ntoa=no 30238 fi 30239 rm -f core conftest.err conftest.$ac_objext \ 30240 conftest$ac_exeext conftest.$ac_ext 30241 LIBS=$ac_check_lib_save_LIBS 30242 fi 30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 30244 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 30245 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 30246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 30247 fi 30248 30249 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 30250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 30251 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 30252 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 30253 $as_echo_n "(cached) " >&6 30254 else 30255 ac_check_lib_save_LIBS=$LIBS 30256 LIBS="-ldnet_stub $LIBS" 30257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30258 /* end confdefs.h. */ 30259 30260 /* Override any GCC internal prototype to avoid an error. 30261 Use char because int might match the return type of a GCC 30262 builtin and then its argument prototype would still apply. */ 30263 #ifdef __cplusplus 30264 extern "C" 30265 #endif 30266 char dnet_ntoa (); 30267 int 30268 main () 30269 { 30270 return dnet_ntoa (); 30271 ; 30272 return 0; 30273 } 30274 _ACEOF 30275 if ac_fn_cxx_try_link "$LINENO"; then : 30276 ac_cv_lib_dnet_stub_dnet_ntoa=yes 30277 else 30278 ac_cv_lib_dnet_stub_dnet_ntoa=no 30279 fi 30280 rm -f core conftest.err conftest.$ac_objext \ 30281 conftest$ac_exeext conftest.$ac_ext 30282 LIBS=$ac_check_lib_save_LIBS 30283 fi 30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 30285 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 30286 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 30287 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 30288 fi 30289 30290 fi 30291 fi 30292 rm -f core conftest.err conftest.$ac_objext \ 30293 conftest$ac_exeext conftest.$ac_ext 30294 LIBS="$ac_xsave_LIBS" 30295 30296 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 30297 # to get the SysV transport functions. 30298 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 30299 # needs -lnsl. 30300 # The nsl library prevents programs from opening the X display 30301 # on Irix 5.2, according to T.E. Dickey. 30302 # The functions gethostbyname, getservbyname, and inet_addr are 30303 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 30304 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 30305 if test "x$ac_cv_func_gethostbyname" = xyes; then : 30306 30307 fi 30308 30309 if test $ac_cv_func_gethostbyname = no; then 30310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 30311 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 30312 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 30313 $as_echo_n "(cached) " >&6 30314 else 30315 ac_check_lib_save_LIBS=$LIBS 30316 LIBS="-lnsl $LIBS" 30317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30318 /* end confdefs.h. */ 30319 30320 /* Override any GCC internal prototype to avoid an error. 30321 Use char because int might match the return type of a GCC 30322 builtin and then its argument prototype would still apply. */ 30323 #ifdef __cplusplus 30324 extern "C" 30325 #endif 30326 char gethostbyname (); 30327 int 30328 main () 30329 { 30330 return gethostbyname (); 30331 ; 30332 return 0; 30333 } 30334 _ACEOF 30335 if ac_fn_cxx_try_link "$LINENO"; then : 30336 ac_cv_lib_nsl_gethostbyname=yes 30337 else 30338 ac_cv_lib_nsl_gethostbyname=no 30339 fi 30340 rm -f core conftest.err conftest.$ac_objext \ 30341 conftest$ac_exeext conftest.$ac_ext 30342 LIBS=$ac_check_lib_save_LIBS 30343 fi 30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 30345 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 30346 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 30347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 30348 fi 30349 30350 if test $ac_cv_lib_nsl_gethostbyname = no; then 30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 30352 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 30353 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 30354 $as_echo_n "(cached) " >&6 30355 else 30356 ac_check_lib_save_LIBS=$LIBS 30357 LIBS="-lbsd $LIBS" 30358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30359 /* end confdefs.h. */ 30360 30361 /* Override any GCC internal prototype to avoid an error. 30362 Use char because int might match the return type of a GCC 30363 builtin and then its argument prototype would still apply. */ 30364 #ifdef __cplusplus 30365 extern "C" 30366 #endif 30367 char gethostbyname (); 30368 int 30369 main () 30370 { 30371 return gethostbyname (); 30372 ; 30373 return 0; 30374 } 30375 _ACEOF 30376 if ac_fn_cxx_try_link "$LINENO"; then : 30377 ac_cv_lib_bsd_gethostbyname=yes 30378 else 30379 ac_cv_lib_bsd_gethostbyname=no 30380 fi 30381 rm -f core conftest.err conftest.$ac_objext \ 30382 conftest$ac_exeext conftest.$ac_ext 30383 LIBS=$ac_check_lib_save_LIBS 30384 fi 30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 30386 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 30387 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 30388 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 30389 fi 30390 30391 fi 30392 fi 30393 30394 # lieder@skyler.mavd.honeywell.com says without -lsocket, 30395 # socket/setsockopt and other routines are undefined under SCO ODT 30396 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 30397 # on later versions), says Simon Leinen: it contains gethostby* 30398 # variants that don't use the name server (or something). -lsocket 30399 # must be given before -lnsl if both are needed. We assume that 30400 # if connect needs -lnsl, so does gethostbyname. 30401 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 30402 if test "x$ac_cv_func_connect" = xyes; then : 30403 30404 fi 30405 30406 if test $ac_cv_func_connect = no; then 30407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 30408 $as_echo_n "checking for connect in -lsocket... " >&6; } 30409 if ${ac_cv_lib_socket_connect+:} false; then : 30410 $as_echo_n "(cached) " >&6 30411 else 30412 ac_check_lib_save_LIBS=$LIBS 30413 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 30414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30415 /* end confdefs.h. */ 30416 30417 /* Override any GCC internal prototype to avoid an error. 30418 Use char because int might match the return type of a GCC 30419 builtin and then its argument prototype would still apply. */ 30420 #ifdef __cplusplus 30421 extern "C" 30422 #endif 30423 char connect (); 30424 int 30425 main () 30426 { 30427 return connect (); 30428 ; 30429 return 0; 30430 } 30431 _ACEOF 30432 if ac_fn_cxx_try_link "$LINENO"; then : 30433 ac_cv_lib_socket_connect=yes 30434 else 30435 ac_cv_lib_socket_connect=no 30436 fi 30437 rm -f core conftest.err conftest.$ac_objext \ 30438 conftest$ac_exeext conftest.$ac_ext 30439 LIBS=$ac_check_lib_save_LIBS 30440 fi 30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 30442 $as_echo "$ac_cv_lib_socket_connect" >&6; } 30443 if test "x$ac_cv_lib_socket_connect" = xyes; then : 30444 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 30445 fi 30446 30447 fi 30448 30449 # Guillermo Gomez says -lposix is necessary on A/UX. 30450 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 30451 if test "x$ac_cv_func_remove" = xyes; then : 30452 30453 fi 30454 30455 if test $ac_cv_func_remove = no; then 30456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 30457 $as_echo_n "checking for remove in -lposix... " >&6; } 30458 if ${ac_cv_lib_posix_remove+:} false; then : 30459 $as_echo_n "(cached) " >&6 30460 else 30461 ac_check_lib_save_LIBS=$LIBS 30462 LIBS="-lposix $LIBS" 30463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30464 /* end confdefs.h. */ 30465 30466 /* Override any GCC internal prototype to avoid an error. 30467 Use char because int might match the return type of a GCC 30468 builtin and then its argument prototype would still apply. */ 30469 #ifdef __cplusplus 30470 extern "C" 30471 #endif 30472 char remove (); 30473 int 30474 main () 30475 { 30476 return remove (); 30477 ; 30478 return 0; 30479 } 30480 _ACEOF 30481 if ac_fn_cxx_try_link "$LINENO"; then : 30482 ac_cv_lib_posix_remove=yes 30483 else 30484 ac_cv_lib_posix_remove=no 30485 fi 30486 rm -f core conftest.err conftest.$ac_objext \ 30487 conftest$ac_exeext conftest.$ac_ext 30488 LIBS=$ac_check_lib_save_LIBS 30489 fi 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 30491 $as_echo "$ac_cv_lib_posix_remove" >&6; } 30492 if test "x$ac_cv_lib_posix_remove" = xyes; then : 30493 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 30494 fi 30495 30496 fi 30497 30498 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 30499 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 30500 if test "x$ac_cv_func_shmat" = xyes; then : 30501 30502 fi 30503 30504 if test $ac_cv_func_shmat = no; then 30505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 30506 $as_echo_n "checking for shmat in -lipc... " >&6; } 30507 if ${ac_cv_lib_ipc_shmat+:} false; then : 30508 $as_echo_n "(cached) " >&6 30509 else 30510 ac_check_lib_save_LIBS=$LIBS 30511 LIBS="-lipc $LIBS" 30512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30513 /* end confdefs.h. */ 30514 30515 /* Override any GCC internal prototype to avoid an error. 30516 Use char because int might match the return type of a GCC 30517 builtin and then its argument prototype would still apply. */ 30518 #ifdef __cplusplus 30519 extern "C" 30520 #endif 30521 char shmat (); 30522 int 30523 main () 30524 { 30525 return shmat (); 30526 ; 30527 return 0; 30528 } 30529 _ACEOF 30530 if ac_fn_cxx_try_link "$LINENO"; then : 30531 ac_cv_lib_ipc_shmat=yes 30532 else 30533 ac_cv_lib_ipc_shmat=no 30534 fi 30535 rm -f core conftest.err conftest.$ac_objext \ 30536 conftest$ac_exeext conftest.$ac_ext 30537 LIBS=$ac_check_lib_save_LIBS 30538 fi 30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 30540 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 30541 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 30542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 30543 fi 30544 30545 fi 30546 fi 30547 30548 # Check for libraries that X11R6 Xt/Xaw programs need. 30549 ac_save_LDFLAGS=$LDFLAGS 30550 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 30551 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 30552 # check for ICE first), but we must link in the order -lSM -lICE or 30553 # we get undefined symbols. So assume we have SM if we have ICE. 30554 # These have to be linked with before -lX11, unlike the other 30555 # libraries we check for below, so use a different variable. 30556 # John Interrante, Karl Berry 30557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 30558 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 30559 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 30560 $as_echo_n "(cached) " >&6 30561 else 30562 ac_check_lib_save_LIBS=$LIBS 30563 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 30564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30565 /* end confdefs.h. */ 30566 30567 /* Override any GCC internal prototype to avoid an error. 30568 Use char because int might match the return type of a GCC 30569 builtin and then its argument prototype would still apply. */ 30570 #ifdef __cplusplus 30571 extern "C" 30572 #endif 30573 char IceConnectionNumber (); 30574 int 30575 main () 30576 { 30577 return IceConnectionNumber (); 30578 ; 30579 return 0; 30580 } 30581 _ACEOF 30582 if ac_fn_cxx_try_link "$LINENO"; then : 30583 ac_cv_lib_ICE_IceConnectionNumber=yes 30584 else 30585 ac_cv_lib_ICE_IceConnectionNumber=no 30586 fi 30587 rm -f core conftest.err conftest.$ac_objext \ 30588 conftest$ac_exeext conftest.$ac_ext 30589 LIBS=$ac_check_lib_save_LIBS 30590 fi 30591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 30592 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 30593 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 30594 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 30595 fi 30596 30597 LDFLAGS=$ac_save_LDFLAGS 30598 30599 fi 30600 30601 30602 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 30603 # this doesn't make sense so we remove it. 30604 if test "x$COMPILE_TYPE" = xcross; then 30605 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 30606 fi 30607 30608 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 30609 30610 # Print a helpful message on how to acquire the necessary build dependency. 30611 # x11 is the help tag: freetyp2, cups, pulse, alsa etc 30612 MISSING_DEPENDENCY=x11 30613 PKGHANDLER_COMMAND= 30614 30615 case $PKGHANDLER in 30616 apt-get) 30617 apt_help $MISSING_DEPENDENCY ;; 30618 yum) 30619 yum_help $MISSING_DEPENDENCY ;; 30620 port) 30621 port_help $MISSING_DEPENDENCY ;; 30622 pkgutil) 30623 pkgutil_help $MISSING_DEPENDENCY ;; 30624 pkgadd) 30625 pkgadd_help $MISSING_DEPENDENCY ;; 30626 * ) 30627 break ;; 30628 esac 30629 30630 if test "x$PKGHANDLER_COMMAND" != x; then 30631 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30632 fi 30633 30634 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 30635 fi 30636 30637 # Some of the old makefiles require a setting of OPENWIN_HOME 30638 # Since the X11R6 directory has disappeared on later Linuxes, 30639 # we need to probe for it. 30640 if test "x$OPENJDK_TARGET_OS" = xlinux; then 30641 if test -d "$SYS_ROOT/usr/X11R6"; then 30642 OPENWIN_HOME="$SYS_ROOT/usr/X11R6" 30643 fi 30644 if test -d "$SYS_ROOT/usr/include/X11"; then 30645 OPENWIN_HOME="$SYS_ROOT/usr" 30646 fi 30647 fi 30648 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 30649 OPENWIN_HOME="/usr/openwin" 30650 fi 30651 30652 30653 30654 # 30655 # Weird Sol10 something check...TODO change to try compile 30656 # 30657 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 30658 if test "`uname -r`" = "5.10"; then 30659 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 30660 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 30661 fi 30662 fi 30663 fi 30664 30665 ac_ext=c 30666 ac_cpp='$CPP $CPPFLAGS' 30667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30669 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30670 30671 OLD_CFLAGS="$CFLAGS" 30672 CFLAGS="$CFLAGS $X_CFLAGS" 30673 30674 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 30675 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h 30676 do : 30677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " # include <X11/Xlib.h> 30679 # include <X11/Xutil.h> 30680 30681 " 30682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30683 cat >>confdefs.h <<_ACEOF 30684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30685 _ACEOF 30686 X11_A_OK=yes 30687 else 30688 X11_A_OK=no; break 30689 fi 30690 30691 done 30692 30693 30694 CFLAGS="$OLD_CFLAGS" 30695 ac_ext=cpp 30696 ac_cpp='$CXXCPP $CPPFLAGS' 30697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30700 30701 30702 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 30703 30704 # Print a helpful message on how to acquire the necessary build dependency. 30705 # x11 is the help tag: freetyp2, cups, pulse, alsa etc 30706 MISSING_DEPENDENCY=x11 30707 PKGHANDLER_COMMAND= 30708 30709 case $PKGHANDLER in 30710 apt-get) 30711 apt_help $MISSING_DEPENDENCY ;; 30712 yum) 30713 yum_help $MISSING_DEPENDENCY ;; 30714 port) 30715 port_help $MISSING_DEPENDENCY ;; 30716 pkgutil) 30717 pkgutil_help $MISSING_DEPENDENCY ;; 30718 pkgadd) 30719 pkgadd_help $MISSING_DEPENDENCY ;; 30720 * ) 30721 break ;; 30722 esac 30723 30724 if test "x$PKGHANDLER_COMMAND" != x; then 30725 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30726 fi 30727 30728 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5 30729 fi 30730 30731 30732 30733 30734 30735 30736 ############################################################################### 30737 # 30738 # The common unix printing system cups is used to print from java. 30739 # 30740 30741 # Check whether --with-cups was given. 30742 if test "${with_cups+set}" = set; then : 30743 withval=$with_cups; 30744 fi 30745 30746 30747 # Check whether --with-cups-include was given. 30748 if test "${with_cups_include+set}" = set; then : 30749 withval=$with_cups_include; 30750 fi 30751 30752 30753 if test "x$CUPS_NOT_NEEDED" = xyes; then 30754 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 30755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 30756 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 30757 fi 30758 CUPS_CFLAGS= 30759 else 30760 CUPS_FOUND=no 30761 30762 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 30763 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 30764 fi 30765 30766 if test "x${with_cups}" != x; then 30767 CUPS_CFLAGS="-I${with_cups}/include" 30768 CUPS_FOUND=yes 30769 fi 30770 if test "x${with_cups_include}" != x; then 30771 CUPS_CFLAGS="-I${with_cups_include}" 30772 CUPS_FOUND=yes 30773 fi 30774 if test "x$CUPS_FOUND" = xno; then 30775 30776 30777 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 30778 # Source the builddeps file again, to make sure it uses the latest variables! 30779 . $builddepsfile 30780 # Look for a target and build machine specific resource! 30781 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 30782 if test "x$resource" = x; then 30783 # Ok, lets instead look for a target specific resource 30784 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 30785 fi 30786 if test "x$resource" = x; then 30787 # Ok, lets instead look for a build specific resource 30788 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 30789 fi 30790 if test "x$resource" = x; then 30791 # Ok, lets instead look for a generic resource 30792 # (The cups comes from M4 and not the shell, thus no need for eval here.) 30793 resource=${builddep_cups} 30794 fi 30795 if test "x$resource" != x; then 30796 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 30797 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 30798 # If the resource in the builddeps.conf file is an existing directory, 30799 # for example /java/linux/cups 30800 if test -d ${resource}; then 30801 depdir=${resource} 30802 else 30803 30804 # cups is for example mymodule 30805 # $resource is for example libs/general/libmymod_1_2_3.zip 30806 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 30807 # $with_builddeps_dir is for example /localhome/builddeps 30808 # depdir is the name of the variable into which we store the depdir, eg MYMOD 30809 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 30810 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 30811 filename=`basename $resource` 30812 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 30813 filebase=${filename%%.*} 30814 extension=${filename#*.} 30815 installdir=$with_builddeps_dir/$filebase 30816 if test ! -f $installdir/$filename.unpacked; then 30817 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 30818 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 30819 if test ! -d $installdir; then 30820 mkdir -p $installdir 30821 fi 30822 if test ! -d $installdir; then 30823 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 30824 fi 30825 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 30826 touch $tmpfile 30827 if test ! -f $tmpfile; then 30828 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 30829 fi 30830 30831 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 30832 # $tmpfile is the local file name for the downloaded file. 30833 VALID_TOOL=no 30834 if test "x$BDEPS_FTP" = xwget; then 30835 VALID_TOOL=yes 30836 wget -O $tmpfile $with_builddeps_server/$resource 30837 fi 30838 if test "x$BDEPS_FTP" = xlftp; then 30839 VALID_TOOL=yes 30840 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 30841 fi 30842 if test "x$BDEPS_FTP" = xftp; then 30843 VALID_TOOL=yes 30844 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 30845 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 30846 FTPUSERPWD=${FTPSERVER%%@*} 30847 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 30848 FTPUSER=${userpwd%%:*} 30849 FTPPWD=${userpwd#*@} 30850 FTPSERVER=${FTPSERVER#*@} 30851 else 30852 FTPUSER=ftp 30853 FTPPWD=ftp 30854 fi 30855 # the "pass" command does not work on some 30856 # ftp clients (read ftp.exe) but if it works, 30857 # passive mode is better! 30858 (\ 30859 echo "user $FTPUSER $FTPPWD" ;\ 30860 echo "pass" ;\ 30861 echo "bin" ;\ 30862 echo "get $FTPPATH $tmpfile" ;\ 30863 ) | ftp -in $FTPSERVER 30864 fi 30865 if test "x$VALID_TOOL" != xyes; then 30866 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 30867 fi 30868 30869 mv $tmpfile $installdir/$filename 30870 if test ! -s $installdir/$filename; then 30871 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 30872 fi 30873 case "$extension" in 30874 zip) echo "Unzipping $installdir/$filename..." 30875 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 30876 ;; 30877 tar.gz) echo "Untaring $installdir/$filename..." 30878 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 30879 ;; 30880 tgz) echo "Untaring $installdir/$filename..." 30881 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 30882 ;; 30883 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 30884 ;; 30885 esac 30886 fi 30887 if test -f $installdir/$filename.unpacked; then 30888 depdir=$installdir 30889 fi 30890 30891 fi 30892 # Source the builddeps file again, because in the previous command, the depdir 30893 # was updated to point at the current build dependency install directory. 30894 . $builddepsfile 30895 # Now extract variables from the builddeps.conf files. 30896 theroot=${builddep_cups_ROOT} 30897 thecflags=${builddep_cups_CFLAGS} 30898 thelibs=${builddep_cups_LIBS} 30899 if test "x$depdir" = x; then 30900 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 30901 fi 30902 CUPS=$depdir 30903 if test "x$theroot" != x; then 30904 CUPS="$theroot" 30905 fi 30906 if test "x$thecflags" != x; then 30907 CUPS_CFLAGS="$thecflags" 30908 fi 30909 if test "x$thelibs" != x; then 30910 CUPS_LIBS="$thelibs" 30911 fi 30912 CUPS_FOUND=yes 30913 30914 fi 30915 30916 fi 30917 30918 fi 30919 if test "x$CUPS_FOUND" = xno; then 30920 # Are the cups headers installed in the default /usr/include location? 30921 for ac_header in cups/cups.h cups/ppd.h 30922 do : 30923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30924 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30926 cat >>confdefs.h <<_ACEOF 30927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30928 _ACEOF 30929 CUPS_FOUND=yes 30930 CUPS_CFLAGS= 30931 DEFAULT_CUPS=yes 30932 fi 30933 30934 done 30935 30936 fi 30937 if test "x$CUPS_FOUND" = xno; then 30938 # Getting nervous now? Lets poke around for standard Solaris third-party 30939 # package installation locations. 30940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 30941 $as_echo_n "checking for cups headers... " >&6; } 30942 if test -s /opt/sfw/cups/include/cups/cups.h; then 30943 # An SFW package seems to be installed! 30944 CUPS_FOUND=yes 30945 CUPS_CFLAGS="-I/opt/sfw/cups/include" 30946 elif test -s /opt/csw/include/cups/cups.h; then 30947 # A CSW package seems to be installed! 30948 CUPS_FOUND=yes 30949 CUPS_CFLAGS="-I/opt/csw/include" 30950 fi 30951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 30952 $as_echo "$CUPS_FOUND" >&6; } 30953 fi 30954 if test "x$CUPS_FOUND" = xno; then 30955 30956 # Print a helpful message on how to acquire the necessary build dependency. 30957 # cups is the help tag: freetyp2, cups, pulse, alsa etc 30958 MISSING_DEPENDENCY=cups 30959 PKGHANDLER_COMMAND= 30960 30961 case $PKGHANDLER in 30962 apt-get) 30963 apt_help $MISSING_DEPENDENCY ;; 30964 yum) 30965 yum_help $MISSING_DEPENDENCY ;; 30966 port) 30967 port_help $MISSING_DEPENDENCY ;; 30968 pkgutil) 30969 pkgutil_help $MISSING_DEPENDENCY ;; 30970 pkgadd) 30971 pkgadd_help $MISSING_DEPENDENCY ;; 30972 * ) 30973 break ;; 30974 esac 30975 30976 if test "x$PKGHANDLER_COMMAND" != x; then 30977 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30978 fi 30979 30980 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 30981 fi 30982 fi 30983 30984 30985 30986 30987 30988 30989 ############################################################################### 30990 # 30991 # The ubiquitous freetype2 library is used to render fonts. 30992 # 30993 30994 # Check whether --with-freetype was given. 30995 if test "${with_freetype+set}" = set; then : 30996 withval=$with_freetype; 30997 fi 30998 30999 31000 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree 31001 USING_SYSTEM_FT_LIB=false 31002 31003 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then 31004 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 31005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 31006 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 31007 fi 31008 FREETYPE2_CFLAGS= 31009 FREETYPE2_LIBS= 31010 FREETYPE2_LIB_PATH= 31011 else 31012 FREETYPE2_FOUND=no 31013 31014 if test "x$with_freetype" != x; then 31015 31016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31017 31018 # Input might be given as Windows format, start by converting to 31019 # unix format. 31020 path="$with_freetype" 31021 new_path=`$CYGPATH -u "$path"` 31022 31023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31026 # "foo.exe" is OK but "foo" is an error. 31027 # 31028 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31029 # It is also a way to make sure we got the proper file name for the real test later on. 31030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31031 if test "x$test_shortpath" = x; then 31032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_freetype, which resolves as \"$path\", is invalid." >&5 31033 $as_echo "$as_me: The path of with_freetype, which resolves as \"$path\", is invalid." >&6;} 31034 as_fn_error $? "Cannot locate the the path of with_freetype" "$LINENO" 5 31035 fi 31036 31037 # Call helper function which possibly converts this using DOS-style short mode. 31038 # If so, the updated path is stored in $new_path. 31039 31040 input_path="$new_path" 31041 # Check if we need to convert this using DOS-style short mode. If the path 31042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31043 # take no chances and rewrite it. 31044 # Note: m4 eats our [], so we need to use [ and ] instead. 31045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31046 if test "x$has_forbidden_chars" != x; then 31047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31051 # Going to short mode and back again did indeed matter. Since short mode is 31052 # case insensitive, let's make it lowercase to improve readability. 31053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31054 # Now convert it back to Unix-stile (cygpath) 31055 input_path=`$CYGPATH -u "$shortmode_path"` 31056 new_path="$input_path" 31057 fi 31058 fi 31059 31060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31061 if test "x$test_cygdrive_prefix" = x; then 31062 # As a simple fix, exclude /usr/bin since it's not a real path. 31063 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31065 # a path prefixed by /cygdrive for fixpath to work. 31066 new_path="$CYGWIN_ROOT_PATH$input_path" 31067 fi 31068 fi 31069 31070 31071 if test "x$path" != "x$new_path"; then 31072 with_freetype="$new_path" 31073 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_freetype to \"$new_path\"" >&5 31074 $as_echo "$as_me: Rewriting with_freetype to \"$new_path\"" >&6;} 31075 fi 31076 31077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31078 31079 path="$with_freetype" 31080 has_colon=`$ECHO $path | $GREP ^.:` 31081 new_path="$path" 31082 if test "x$has_colon" = x; then 31083 # Not in mixed or Windows style, start by that. 31084 new_path=`cmd //c echo $path` 31085 fi 31086 31087 31088 input_path="$new_path" 31089 # Check if we need to convert this using DOS-style short mode. If the path 31090 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31091 # take no chances and rewrite it. 31092 # Note: m4 eats our [], so we need to use [ and ] instead. 31093 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31094 if test "x$has_forbidden_chars" != x; then 31095 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31096 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31097 fi 31098 31099 31100 windows_path="$new_path" 31101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31102 unix_path=`$CYGPATH -u "$windows_path"` 31103 new_path="$unix_path" 31104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31106 new_path="$unix_path" 31107 fi 31108 31109 if test "x$path" != "x$new_path"; then 31110 with_freetype="$new_path" 31111 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_freetype to \"$new_path\"" >&5 31112 $as_echo "$as_me: Rewriting with_freetype to \"$new_path\"" >&6;} 31113 fi 31114 31115 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31116 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31117 31118 else 31119 # We're on a posix platform. Hooray! :) 31120 path="$with_freetype" 31121 has_space=`$ECHO "$path" | $GREP " "` 31122 if test "x$has_space" != x; then 31123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_freetype, which resolves as \"$path\", is invalid." >&5 31124 $as_echo "$as_me: The path of with_freetype, which resolves as \"$path\", is invalid." >&6;} 31125 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31126 fi 31127 31128 # Use eval to expand a potential ~ 31129 eval path="$path" 31130 if test ! -f "$path" && test ! -d "$path"; then 31131 as_fn_error $? "The path of with_freetype, which resolves as \"$path\", is not found." "$LINENO" 5 31132 fi 31133 31134 with_freetype="`cd "$path"; $THEPWDCMD -L`" 31135 fi 31136 31137 FREETYPE2_LIBS="-L$with_freetype/lib -lfreetype" 31138 FREETYPE2_LIB_PATH="$with_freetype/lib" 31139 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -d "$with_freetype/lib/amd64"; then 31140 FREETYPE2_LIBS="-L$with_freetype/lib/amd64 -lfreetype" 31141 FREETYPE2_LIB_PATH="$with_freetype/lib/amd64" 31142 fi 31143 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31144 FREETYPE2_LIBS="$with_freetype/lib/freetype.lib" 31145 fi 31146 FREETYPE2_CFLAGS="-I$with_freetype/include" 31147 if test -s $with_freetype/include/ft2build.h && test -d $with_freetype/include/freetype2/freetype; then 31148 FREETYPE2_CFLAGS="-I$with_freetype/include/freetype2 -I$with_freetype/include" 31149 fi 31150 FREETYPE2_FOUND=yes 31151 if test "x$FREETYPE2_FOUND" = xyes; then 31152 # Verify that the directories exist 31153 if ! test -d "$with_freetype/lib" || ! test -d "$with_freetype/include"; then 31154 as_fn_error $? "Could not find the expected directories $with_freetype/lib and $with_freetype/include" "$LINENO" 5 31155 fi 31156 # List the contents of the lib. 31157 FREETYPELIB=`ls $with_freetype/lib/libfreetype.so $with_freetype/lib/freetype.dll 2> /dev/null` 31158 if test "x$FREETYPELIB" = x; then 31159 as_fn_error $? "Could not find libfreetype.so nor freetype.dll in $with_freetype/lib" "$LINENO" 5 31160 fi 31161 # Check one h-file 31162 if ! test -s "$with_freetype/include/ft2build.h"; then 31163 as_fn_error $? "Could not find $with_freetype/include/ft2build.h" "$LINENO" 5 31164 fi 31165 fi 31166 fi 31167 if test "x$FREETYPE2_FOUND" = xno; then 31168 31169 31170 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 31171 # Source the builddeps file again, to make sure it uses the latest variables! 31172 . $builddepsfile 31173 # Look for a target and build machine specific resource! 31174 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 31175 if test "x$resource" = x; then 31176 # Ok, lets instead look for a target specific resource 31177 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 31178 fi 31179 if test "x$resource" = x; then 31180 # Ok, lets instead look for a build specific resource 31181 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 31182 fi 31183 if test "x$resource" = x; then 31184 # Ok, lets instead look for a generic resource 31185 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 31186 resource=${builddep_freetype2} 31187 fi 31188 if test "x$resource" != x; then 31189 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 31190 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 31191 # If the resource in the builddeps.conf file is an existing directory, 31192 # for example /java/linux/cups 31193 if test -d ${resource}; then 31194 depdir=${resource} 31195 else 31196 31197 # freetype2 is for example mymodule 31198 # $resource is for example libs/general/libmymod_1_2_3.zip 31199 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 31200 # $with_builddeps_dir is for example /localhome/builddeps 31201 # depdir is the name of the variable into which we store the depdir, eg MYMOD 31202 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 31203 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 31204 filename=`basename $resource` 31205 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 31206 filebase=${filename%%.*} 31207 extension=${filename#*.} 31208 installdir=$with_builddeps_dir/$filebase 31209 if test ! -f $installdir/$filename.unpacked; then 31210 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 31211 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 31212 if test ! -d $installdir; then 31213 mkdir -p $installdir 31214 fi 31215 if test ! -d $installdir; then 31216 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 31217 fi 31218 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 31219 touch $tmpfile 31220 if test ! -f $tmpfile; then 31221 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 31222 fi 31223 31224 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 31225 # $tmpfile is the local file name for the downloaded file. 31226 VALID_TOOL=no 31227 if test "x$BDEPS_FTP" = xwget; then 31228 VALID_TOOL=yes 31229 wget -O $tmpfile $with_builddeps_server/$resource 31230 fi 31231 if test "x$BDEPS_FTP" = xlftp; then 31232 VALID_TOOL=yes 31233 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 31234 fi 31235 if test "x$BDEPS_FTP" = xftp; then 31236 VALID_TOOL=yes 31237 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 31238 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 31239 FTPUSERPWD=${FTPSERVER%%@*} 31240 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 31241 FTPUSER=${userpwd%%:*} 31242 FTPPWD=${userpwd#*@} 31243 FTPSERVER=${FTPSERVER#*@} 31244 else 31245 FTPUSER=ftp 31246 FTPPWD=ftp 31247 fi 31248 # the "pass" command does not work on some 31249 # ftp clients (read ftp.exe) but if it works, 31250 # passive mode is better! 31251 (\ 31252 echo "user $FTPUSER $FTPPWD" ;\ 31253 echo "pass" ;\ 31254 echo "bin" ;\ 31255 echo "get $FTPPATH $tmpfile" ;\ 31256 ) | ftp -in $FTPSERVER 31257 fi 31258 if test "x$VALID_TOOL" != xyes; then 31259 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 31260 fi 31261 31262 mv $tmpfile $installdir/$filename 31263 if test ! -s $installdir/$filename; then 31264 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 31265 fi 31266 case "$extension" in 31267 zip) echo "Unzipping $installdir/$filename..." 31268 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 31269 ;; 31270 tar.gz) echo "Untaring $installdir/$filename..." 31271 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 31272 ;; 31273 tgz) echo "Untaring $installdir/$filename..." 31274 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 31275 ;; 31276 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 31277 ;; 31278 esac 31279 fi 31280 if test -f $installdir/$filename.unpacked; then 31281 depdir=$installdir 31282 fi 31283 31284 fi 31285 # Source the builddeps file again, because in the previous command, the depdir 31286 # was updated to point at the current build dependency install directory. 31287 . $builddepsfile 31288 # Now extract variables from the builddeps.conf files. 31289 theroot=${builddep_freetype2_ROOT} 31290 thecflags=${builddep_freetype2_CFLAGS} 31291 thelibs=${builddep_freetype2_LIBS} 31292 if test "x$depdir" = x; then 31293 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 31294 fi 31295 FREETYPE2=$depdir 31296 if test "x$theroot" != x; then 31297 FREETYPE2="$theroot" 31298 fi 31299 if test "x$thecflags" != x; then 31300 FREETYPE2_CFLAGS="$thecflags" 31301 fi 31302 if test "x$thelibs" != x; then 31303 FREETYPE2_LIBS="$thelibs" 31304 fi 31305 FREETYPE2_FOUND=yes 31306 else FREETYPE2_FOUND=no 31307 31308 fi 31309 else FREETYPE2_FOUND=no 31310 31311 fi 31312 31313 USING_SYSTEM_FT_LIB=true 31314 fi 31315 if test "x$FREETYPE2_FOUND" = xno && test "x$OPENJDK_TARGET_OS" = xwindows; then 31316 FREETYPELOCATION="$PROGRAMFILES/GnuWin32" 31317 31318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31319 31320 # Input might be given as Windows format, start by converting to 31321 # unix format. 31322 path="$FREETYPELOCATION" 31323 new_path=`$CYGPATH -u "$path"` 31324 31325 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31326 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31327 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31328 # "foo.exe" is OK but "foo" is an error. 31329 # 31330 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31331 # It is also a way to make sure we got the proper file name for the real test later on. 31332 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31333 if test "x$test_shortpath" = x; then 31334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&5 31335 $as_echo "$as_me: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&6;} 31336 as_fn_error $? "Cannot locate the the path of FREETYPELOCATION" "$LINENO" 5 31337 fi 31338 31339 # Call helper function which possibly converts this using DOS-style short mode. 31340 # If so, the updated path is stored in $new_path. 31341 31342 input_path="$new_path" 31343 # Check if we need to convert this using DOS-style short mode. If the path 31344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31345 # take no chances and rewrite it. 31346 # Note: m4 eats our [], so we need to use [ and ] instead. 31347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31348 if test "x$has_forbidden_chars" != x; then 31349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31350 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31351 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31352 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31353 # Going to short mode and back again did indeed matter. Since short mode is 31354 # case insensitive, let's make it lowercase to improve readability. 31355 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31356 # Now convert it back to Unix-stile (cygpath) 31357 input_path=`$CYGPATH -u "$shortmode_path"` 31358 new_path="$input_path" 31359 fi 31360 fi 31361 31362 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31363 if test "x$test_cygdrive_prefix" = x; then 31364 # As a simple fix, exclude /usr/bin since it's not a real path. 31365 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31366 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31367 # a path prefixed by /cygdrive for fixpath to work. 31368 new_path="$CYGWIN_ROOT_PATH$input_path" 31369 fi 31370 fi 31371 31372 31373 if test "x$path" != "x$new_path"; then 31374 FREETYPELOCATION="$new_path" 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPELOCATION to \"$new_path\"" >&5 31376 $as_echo "$as_me: Rewriting FREETYPELOCATION to \"$new_path\"" >&6;} 31377 fi 31378 31379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31380 31381 path="$FREETYPELOCATION" 31382 has_colon=`$ECHO $path | $GREP ^.:` 31383 new_path="$path" 31384 if test "x$has_colon" = x; then 31385 # Not in mixed or Windows style, start by that. 31386 new_path=`cmd //c echo $path` 31387 fi 31388 31389 31390 input_path="$new_path" 31391 # Check if we need to convert this using DOS-style short mode. If the path 31392 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31393 # take no chances and rewrite it. 31394 # Note: m4 eats our [], so we need to use [ and ] instead. 31395 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31396 if test "x$has_forbidden_chars" != x; then 31397 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31398 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31399 fi 31400 31401 31402 windows_path="$new_path" 31403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31404 unix_path=`$CYGPATH -u "$windows_path"` 31405 new_path="$unix_path" 31406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31408 new_path="$unix_path" 31409 fi 31410 31411 if test "x$path" != "x$new_path"; then 31412 FREETYPELOCATION="$new_path" 31413 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPELOCATION to \"$new_path\"" >&5 31414 $as_echo "$as_me: Rewriting FREETYPELOCATION to \"$new_path\"" >&6;} 31415 fi 31416 31417 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31418 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31419 31420 else 31421 # We're on a posix platform. Hooray! :) 31422 path="$FREETYPELOCATION" 31423 has_space=`$ECHO "$path" | $GREP " "` 31424 if test "x$has_space" != x; then 31425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&5 31426 $as_echo "$as_me: The path of FREETYPELOCATION, which resolves as \"$path\", is invalid." >&6;} 31427 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31428 fi 31429 31430 # Use eval to expand a potential ~ 31431 eval path="$path" 31432 if test ! -f "$path" && test ! -d "$path"; then 31433 as_fn_error $? "The path of FREETYPELOCATION, which resolves as \"$path\", is not found." "$LINENO" 5 31434 fi 31435 31436 FREETYPELOCATION="`cd "$path"; $THEPWDCMD -L`" 31437 fi 31438 31439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard windows locations" >&5 31440 $as_echo_n "checking for freetype in some standard windows locations... " >&6; } 31441 if test -s "$FREETYPELOCATION/include/ft2build.h" && test -d "$FREETYPELOCATION/include/freetype2/freetype"; then 31442 FREETYPE2_CFLAGS="-I$FREETYPELOCATION/include/freetype2 -I$FREETYPELOCATION/include" 31443 FREETYPE2_LIBS="$FREETYPELOCATION/lib/freetype.lib" 31444 FREETYPE2_LIB_PATH="$FREETYPELOCATION/lib" 31445 if ! test -s "$FREETYPE2_LIBS"; then 31446 as_fn_error $? "Could not find $FREETYPE2_LIBS" "$LINENO" 5 31447 fi 31448 if ! test -s "$FREETYPE2_LIB_PATH/freetype.dll"; then 31449 as_fn_error $? "Could not find $FREETYPE2_LIB_PATH/freetype.dll" "$LINENO" 5 31450 fi 31451 USING_SYSTEM_FT_LIB=true 31452 FREETYPE2_FOUND=yes 31453 fi 31454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5 31455 $as_echo "$FREETYPE2_FOUND" >&6; } 31456 fi 31457 if test "x$FREETYPE2_FOUND" = xno; then 31458 31459 pkg_failed=no 31460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5 31461 $as_echo_n "checking for FREETYPE2... " >&6; } 31462 31463 if test -n "$FREETYPE2_CFLAGS"; then 31464 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" 31465 elif test -n "$PKG_CONFIG"; then 31466 if test -n "$PKG_CONFIG" && \ 31467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 31468 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 31469 ac_status=$? 31470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31471 test $ac_status = 0; }; then 31472 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 31473 else 31474 pkg_failed=yes 31475 fi 31476 else 31477 pkg_failed=untried 31478 fi 31479 if test -n "$FREETYPE2_LIBS"; then 31480 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" 31481 elif test -n "$PKG_CONFIG"; then 31482 if test -n "$PKG_CONFIG" && \ 31483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 31484 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 31485 ac_status=$? 31486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31487 test $ac_status = 0; }; then 31488 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 31489 else 31490 pkg_failed=yes 31491 fi 31492 else 31493 pkg_failed=untried 31494 fi 31495 31496 31497 31498 if test $pkg_failed = yes; then 31499 31500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31501 _pkg_short_errors_supported=yes 31502 else 31503 _pkg_short_errors_supported=no 31504 fi 31505 if test $_pkg_short_errors_supported = yes; then 31506 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 31507 else 31508 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 31509 fi 31510 # Put the nasty error message in config.log where it belongs 31511 echo "$FREETYPE2_PKG_ERRORS" >&5 31512 31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31514 $as_echo "no" >&6; } 31515 FREETYPE2_FOUND=no 31516 elif test $pkg_failed = untried; then 31517 FREETYPE2_FOUND=no 31518 else 31519 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS 31520 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS 31521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31522 $as_echo "yes" >&6; } 31523 FREETYPE2_FOUND=yes 31524 fi 31525 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 31526 FREETYPE2_LIBS=`$ECHO $FREETYPE2_LIBS | $SED 's/-lz//g'` 31527 USING_SYSTEM_FT_LIB=true 31528 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 31529 if test "x$FREETYPE2_FOUND" = xyes && test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 31530 FREETYPE2_LIBS=`$ECHO $FREETYPE2_LIBS | $SED 's?/lib?/lib/amd64?g'` 31531 fi 31532 fi 31533 if test "x$FREETYPE2_FOUND" = xno; then 31534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard locations" >&5 31535 $as_echo_n "checking for freetype in some standard locations... " >&6; } 31536 31537 if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then 31538 DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include" 31539 DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype" 31540 fi 31541 if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then 31542 DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2" 31543 DEFAULT_FREETYPE_LIBS="-lfreetype" 31544 fi 31545 31546 PREV_CXXCFLAGS="$CXXFLAGS" 31547 PREV_LDFLAGS="$LDFLAGS" 31548 CXXFLAGS="$CXXFLAGS $DEFAULT_FREETYPE_CFLAGS" 31549 LDFLAGS="$LDFLAGS $DEFAULT_FREETYPE_LIBS" 31550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31551 /* end confdefs.h. */ 31552 #include<ft2build.h> 31553 #include FT_FREETYPE_H 31554 int main() { return 0; } 31555 31556 _ACEOF 31557 if ac_fn_cxx_try_link "$LINENO"; then : 31558 31559 # Yes, the default cflags and libs did the trick. 31560 FREETYPE2_FOUND=yes 31561 FREETYPE2_CFLAGS="$DEFAULT_FREETYPE_CFLAGS" 31562 FREETYPE2_LIBS="$DEFAULT_FREETYPE_LIBS" 31563 31564 else 31565 31566 FREETYPE2_FOUND=no 31567 31568 fi 31569 rm -f core conftest.err conftest.$ac_objext \ 31570 conftest$ac_exeext conftest.$ac_ext 31571 CXXCFLAGS="$PREV_CXXFLAGS" 31572 LDFLAGS="$PREV_LDFLAGS" 31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5 31574 $as_echo "$FREETYPE2_FOUND" >&6; } 31575 USING_SYSTEM_FT_LIB=true 31576 fi 31577 if test "x$FREETYPE2_FOUND" = xno; then 31578 31579 # Print a helpful message on how to acquire the necessary build dependency. 31580 # freetype2 is the help tag: freetyp2, cups, pulse, alsa etc 31581 MISSING_DEPENDENCY=freetype2 31582 PKGHANDLER_COMMAND= 31583 31584 case $PKGHANDLER in 31585 apt-get) 31586 apt_help $MISSING_DEPENDENCY ;; 31587 yum) 31588 yum_help $MISSING_DEPENDENCY ;; 31589 port) 31590 port_help $MISSING_DEPENDENCY ;; 31591 pkgutil) 31592 pkgutil_help $MISSING_DEPENDENCY ;; 31593 pkgadd) 31594 pkgadd_help $MISSING_DEPENDENCY ;; 31595 * ) 31596 break ;; 31597 esac 31598 31599 if test "x$PKGHANDLER_COMMAND" != x; then 31600 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 31601 fi 31602 31603 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5 31604 fi 31605 31606 if test "x$OPENJDK_TARGET_OS" != xwindows; then 31607 # AC_CHECK_LIB does not support use of cl.exe 31608 PREV_LDFLAGS="$LDFLAGS" 31609 LDFLAGS="$FREETYPE2_LIBS" 31610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 31611 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } 31612 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : 31613 $as_echo_n "(cached) " >&6 31614 else 31615 ac_check_lib_save_LIBS=$LIBS 31616 LIBS="-lfreetype $LIBS" 31617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31618 /* end confdefs.h. */ 31619 31620 /* Override any GCC internal prototype to avoid an error. 31621 Use char because int might match the return type of a GCC 31622 builtin and then its argument prototype would still apply. */ 31623 #ifdef __cplusplus 31624 extern "C" 31625 #endif 31626 char FT_Init_FreeType (); 31627 int 31628 main () 31629 { 31630 return FT_Init_FreeType (); 31631 ; 31632 return 0; 31633 } 31634 _ACEOF 31635 if ac_fn_cxx_try_link "$LINENO"; then : 31636 ac_cv_lib_freetype_FT_Init_FreeType=yes 31637 else 31638 ac_cv_lib_freetype_FT_Init_FreeType=no 31639 fi 31640 rm -f core conftest.err conftest.$ac_objext \ 31641 conftest$ac_exeext conftest.$ac_ext 31642 LIBS=$ac_check_lib_save_LIBS 31643 fi 31644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 31645 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } 31646 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : 31647 FREETYPE2_FOUND=true 31648 else 31649 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5 31650 fi 31651 31652 LDFLAGS="$PREV_LDFLAGS" 31653 fi 31654 fi 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 ############################################################################### 31665 # 31666 # Check for alsa headers and libraries. Used on Linux/GNU systems. 31667 # 31668 31669 # Check whether --with-alsa was given. 31670 if test "${with_alsa+set}" = set; then : 31671 withval=$with_alsa; 31672 fi 31673 31674 31675 # Check whether --with-alsa-include was given. 31676 if test "${with_alsa_include+set}" = set; then : 31677 withval=$with_alsa_include; 31678 fi 31679 31680 31681 # Check whether --with-alsa-lib was given. 31682 if test "${with_alsa_lib+set}" = set; then : 31683 withval=$with_alsa_lib; 31684 fi 31685 31686 31687 if test "x$ALSA_NOT_NEEDED" = xyes; then 31688 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 31689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 31690 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 31691 fi 31692 ALSA_CFLAGS= 31693 ALSA_LIBS= 31694 else 31695 ALSA_FOUND=no 31696 31697 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 31698 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 31699 fi 31700 31701 if test "x${with_alsa}" != x; then 31702 ALSA_LIBS="-L${with_alsa}/lib -lalsa" 31703 ALSA_CFLAGS="-I${with_alsa}/include" 31704 ALSA_FOUND=yes 31705 fi 31706 if test "x${with_alsa_include}" != x; then 31707 ALSA_CFLAGS="-I${with_alsa_include}" 31708 ALSA_FOUND=yes 31709 fi 31710 if test "x${with_alsa_lib}" != x; then 31711 ALSA_LIBS="-L${with_alsa_lib} -lalsa" 31712 ALSA_FOUND=yes 31713 fi 31714 if test "x$ALSA_FOUND" = xno; then 31715 31716 31717 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 31718 # Source the builddeps file again, to make sure it uses the latest variables! 31719 . $builddepsfile 31720 # Look for a target and build machine specific resource! 31721 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 31722 if test "x$resource" = x; then 31723 # Ok, lets instead look for a target specific resource 31724 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 31725 fi 31726 if test "x$resource" = x; then 31727 # Ok, lets instead look for a build specific resource 31728 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 31729 fi 31730 if test "x$resource" = x; then 31731 # Ok, lets instead look for a generic resource 31732 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 31733 resource=${builddep_alsa} 31734 fi 31735 if test "x$resource" != x; then 31736 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 31737 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 31738 # If the resource in the builddeps.conf file is an existing directory, 31739 # for example /java/linux/cups 31740 if test -d ${resource}; then 31741 depdir=${resource} 31742 else 31743 31744 # alsa is for example mymodule 31745 # $resource is for example libs/general/libmymod_1_2_3.zip 31746 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 31747 # $with_builddeps_dir is for example /localhome/builddeps 31748 # depdir is the name of the variable into which we store the depdir, eg MYMOD 31749 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 31750 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 31751 filename=`basename $resource` 31752 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 31753 filebase=${filename%%.*} 31754 extension=${filename#*.} 31755 installdir=$with_builddeps_dir/$filebase 31756 if test ! -f $installdir/$filename.unpacked; then 31757 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 31758 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 31759 if test ! -d $installdir; then 31760 mkdir -p $installdir 31761 fi 31762 if test ! -d $installdir; then 31763 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 31764 fi 31765 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 31766 touch $tmpfile 31767 if test ! -f $tmpfile; then 31768 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 31769 fi 31770 31771 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 31772 # $tmpfile is the local file name for the downloaded file. 31773 VALID_TOOL=no 31774 if test "x$BDEPS_FTP" = xwget; then 31775 VALID_TOOL=yes 31776 wget -O $tmpfile $with_builddeps_server/$resource 31777 fi 31778 if test "x$BDEPS_FTP" = xlftp; then 31779 VALID_TOOL=yes 31780 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 31781 fi 31782 if test "x$BDEPS_FTP" = xftp; then 31783 VALID_TOOL=yes 31784 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 31785 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 31786 FTPUSERPWD=${FTPSERVER%%@*} 31787 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 31788 FTPUSER=${userpwd%%:*} 31789 FTPPWD=${userpwd#*@} 31790 FTPSERVER=${FTPSERVER#*@} 31791 else 31792 FTPUSER=ftp 31793 FTPPWD=ftp 31794 fi 31795 # the "pass" command does not work on some 31796 # ftp clients (read ftp.exe) but if it works, 31797 # passive mode is better! 31798 (\ 31799 echo "user $FTPUSER $FTPPWD" ;\ 31800 echo "pass" ;\ 31801 echo "bin" ;\ 31802 echo "get $FTPPATH $tmpfile" ;\ 31803 ) | ftp -in $FTPSERVER 31804 fi 31805 if test "x$VALID_TOOL" != xyes; then 31806 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 31807 fi 31808 31809 mv $tmpfile $installdir/$filename 31810 if test ! -s $installdir/$filename; then 31811 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 31812 fi 31813 case "$extension" in 31814 zip) echo "Unzipping $installdir/$filename..." 31815 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 31816 ;; 31817 tar.gz) echo "Untaring $installdir/$filename..." 31818 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 31819 ;; 31820 tgz) echo "Untaring $installdir/$filename..." 31821 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 31822 ;; 31823 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 31824 ;; 31825 esac 31826 fi 31827 if test -f $installdir/$filename.unpacked; then 31828 depdir=$installdir 31829 fi 31830 31831 fi 31832 # Source the builddeps file again, because in the previous command, the depdir 31833 # was updated to point at the current build dependency install directory. 31834 . $builddepsfile 31835 # Now extract variables from the builddeps.conf files. 31836 theroot=${builddep_alsa_ROOT} 31837 thecflags=${builddep_alsa_CFLAGS} 31838 thelibs=${builddep_alsa_LIBS} 31839 if test "x$depdir" = x; then 31840 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 31841 fi 31842 ALSA=$depdir 31843 if test "x$theroot" != x; then 31844 ALSA="$theroot" 31845 fi 31846 if test "x$thecflags" != x; then 31847 ALSA_CFLAGS="$thecflags" 31848 fi 31849 if test "x$thelibs" != x; then 31850 ALSA_LIBS="$thelibs" 31851 fi 31852 ALSA_FOUND=yes 31853 else ALSA_FOUND=no 31854 31855 fi 31856 else ALSA_FOUND=no 31857 31858 fi 31859 31860 fi 31861 if test "x$ALSA_FOUND" = xno; then 31862 31863 pkg_failed=no 31864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 31865 $as_echo_n "checking for ALSA... " >&6; } 31866 31867 if test -n "$ALSA_CFLAGS"; then 31868 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 31869 elif test -n "$PKG_CONFIG"; then 31870 if test -n "$PKG_CONFIG" && \ 31871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 31872 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 31873 ac_status=$? 31874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31875 test $ac_status = 0; }; then 31876 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 31877 else 31878 pkg_failed=yes 31879 fi 31880 else 31881 pkg_failed=untried 31882 fi 31883 if test -n "$ALSA_LIBS"; then 31884 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 31885 elif test -n "$PKG_CONFIG"; then 31886 if test -n "$PKG_CONFIG" && \ 31887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 31888 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 31889 ac_status=$? 31890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31891 test $ac_status = 0; }; then 31892 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 31893 else 31894 pkg_failed=yes 31895 fi 31896 else 31897 pkg_failed=untried 31898 fi 31899 31900 31901 31902 if test $pkg_failed = yes; then 31903 31904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31905 _pkg_short_errors_supported=yes 31906 else 31907 _pkg_short_errors_supported=no 31908 fi 31909 if test $_pkg_short_errors_supported = yes; then 31910 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 31911 else 31912 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 31913 fi 31914 # Put the nasty error message in config.log where it belongs 31915 echo "$ALSA_PKG_ERRORS" >&5 31916 31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31918 $as_echo "no" >&6; } 31919 ALSA_FOUND=no 31920 elif test $pkg_failed = untried; then 31921 ALSA_FOUND=no 31922 else 31923 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 31924 ALSA_LIBS=$pkg_cv_ALSA_LIBS 31925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31926 $as_echo "yes" >&6; } 31927 ALSA_FOUND=yes 31928 fi 31929 fi 31930 if test "x$ALSA_FOUND" = xno; then 31931 for ac_header in alsa/asoundlib.h 31932 do : 31933 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 31934 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 31935 cat >>confdefs.h <<_ACEOF 31936 #define HAVE_ALSA_ASOUNDLIB_H 1 31937 _ACEOF 31938 ALSA_FOUND=yes 31939 ALSA_CFLAGS=-Iignoreme 31940 ALSA_LIBS=-lasound 31941 DEFAULT_ALSA=yes 31942 else 31943 ALSA_FOUND=no 31944 fi 31945 31946 done 31947 31948 fi 31949 if test "x$ALSA_FOUND" = xno; then 31950 31951 # Print a helpful message on how to acquire the necessary build dependency. 31952 # alsa is the help tag: freetyp2, cups, pulse, alsa etc 31953 MISSING_DEPENDENCY=alsa 31954 PKGHANDLER_COMMAND= 31955 31956 case $PKGHANDLER in 31957 apt-get) 31958 apt_help $MISSING_DEPENDENCY ;; 31959 yum) 31960 yum_help $MISSING_DEPENDENCY ;; 31961 port) 31962 port_help $MISSING_DEPENDENCY ;; 31963 pkgutil) 31964 pkgutil_help $MISSING_DEPENDENCY ;; 31965 pkgadd) 31966 pkgadd_help $MISSING_DEPENDENCY ;; 31967 * ) 31968 break ;; 31969 esac 31970 31971 if test "x$PKGHANDLER_COMMAND" != x; then 31972 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 31973 fi 31974 31975 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 31976 fi 31977 fi 31978 31979 31980 31981 31982 31983 31984 31985 ############################################################################### 31986 # 31987 # Check for the jpeg library 31988 # 31989 31990 USE_EXTERNAL_LIBJPEG=true 31991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 31992 $as_echo_n "checking for main in -ljpeg... " >&6; } 31993 if ${ac_cv_lib_jpeg_main+:} false; then : 31994 $as_echo_n "(cached) " >&6 31995 else 31996 ac_check_lib_save_LIBS=$LIBS 31997 LIBS="-ljpeg $LIBS" 31998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31999 /* end confdefs.h. */ 32000 32001 32002 int 32003 main () 32004 { 32005 return main (); 32006 ; 32007 return 0; 32008 } 32009 _ACEOF 32010 if ac_fn_cxx_try_link "$LINENO"; then : 32011 ac_cv_lib_jpeg_main=yes 32012 else 32013 ac_cv_lib_jpeg_main=no 32014 fi 32015 rm -f core conftest.err conftest.$ac_objext \ 32016 conftest$ac_exeext conftest.$ac_ext 32017 LIBS=$ac_check_lib_save_LIBS 32018 fi 32019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 32020 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 32021 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 32022 cat >>confdefs.h <<_ACEOF 32023 #define HAVE_LIBJPEG 1 32024 _ACEOF 32025 32026 LIBS="-ljpeg $LIBS" 32027 32028 else 32029 USE_EXTERNAL_LIBJPEG=false 32030 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 32031 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 32032 32033 fi 32034 32035 32036 32037 ############################################################################### 32038 # 32039 # Check for the gif library 32040 # 32041 32042 32043 # Check whether --with-giflib was given. 32044 if test "${with_giflib+set}" = set; then : 32045 withval=$with_giflib; 32046 fi 32047 32048 32049 32050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 32051 $as_echo_n "checking for which giflib to use... " >&6; } 32052 32053 # default is bundled 32054 DEFAULT_GIFLIB=bundled 32055 32056 # 32057 # if user didn't specify, use DEFAULT_GIFLIB 32058 # 32059 if test "x${with_giflib}" = "x"; then 32060 with_giflib=${DEFAULT_GIFLIB} 32061 fi 32062 32063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 32064 $as_echo "${with_giflib}" >&6; } 32065 32066 if test "x${with_giflib}" = "xbundled"; then 32067 USE_EXTERNAL_LIBGIF=false 32068 elif test "x${with_giflib}" = "xsystem"; then 32069 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 32070 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 32071 32072 else 32073 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 32074 fi 32075 32076 32077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 32078 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 32079 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 32080 $as_echo_n "(cached) " >&6 32081 else 32082 ac_check_lib_save_LIBS=$LIBS 32083 LIBS="-lgif $LIBS" 32084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32085 /* end confdefs.h. */ 32086 32087 /* Override any GCC internal prototype to avoid an error. 32088 Use char because int might match the return type of a GCC 32089 builtin and then its argument prototype would still apply. */ 32090 #ifdef __cplusplus 32091 extern "C" 32092 #endif 32093 char DGifGetCode (); 32094 int 32095 main () 32096 { 32097 return DGifGetCode (); 32098 ; 32099 return 0; 32100 } 32101 _ACEOF 32102 if ac_fn_cxx_try_link "$LINENO"; then : 32103 ac_cv_lib_gif_DGifGetCode=yes 32104 else 32105 ac_cv_lib_gif_DGifGetCode=no 32106 fi 32107 rm -f core conftest.err conftest.$ac_objext \ 32108 conftest$ac_exeext conftest.$ac_ext 32109 LIBS=$ac_check_lib_save_LIBS 32110 fi 32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 32112 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 32113 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 32114 cat >>confdefs.h <<_ACEOF 32115 #define HAVE_LIBGIF 1 32116 _ACEOF 32117 32118 LIBS="-lgif $LIBS" 32119 32120 else 32121 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 32122 fi 32123 32124 32125 USE_EXTERNAL_LIBGIF=true 32126 else 32127 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 32128 fi 32129 32130 32131 ############################################################################### 32132 # 32133 # Check for the zlib library 32134 # 32135 32136 32137 # Check whether --with-zlib was given. 32138 if test "${with_zlib+set}" = set; then : 32139 withval=$with_zlib; 32140 fi 32141 32142 32143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 32144 $as_echo_n "checking for compress in -lz... " >&6; } 32145 if ${ac_cv_lib_z_compress+:} false; then : 32146 $as_echo_n "(cached) " >&6 32147 else 32148 ac_check_lib_save_LIBS=$LIBS 32149 LIBS="-lz $LIBS" 32150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32151 /* end confdefs.h. */ 32152 32153 /* Override any GCC internal prototype to avoid an error. 32154 Use char because int might match the return type of a GCC 32155 builtin and then its argument prototype would still apply. */ 32156 #ifdef __cplusplus 32157 extern "C" 32158 #endif 32159 char compress (); 32160 int 32161 main () 32162 { 32163 return compress (); 32164 ; 32165 return 0; 32166 } 32167 _ACEOF 32168 if ac_fn_cxx_try_link "$LINENO"; then : 32169 ac_cv_lib_z_compress=yes 32170 else 32171 ac_cv_lib_z_compress=no 32172 fi 32173 rm -f core conftest.err conftest.$ac_objext \ 32174 conftest$ac_exeext conftest.$ac_ext 32175 LIBS=$ac_check_lib_save_LIBS 32176 fi 32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 32178 $as_echo "$ac_cv_lib_z_compress" >&6; } 32179 if test "x$ac_cv_lib_z_compress" = xyes; then : 32180 ZLIB_FOUND=yes 32181 else 32182 ZLIB_FOUND=no 32183 fi 32184 32185 32186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 32187 $as_echo_n "checking for which zlib to use... " >&6; } 32188 32189 DEFAULT_ZLIB=bundled 32190 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32191 # 32192 # On macosx default is system...on others default is 32193 # 32194 DEFAULT_ZLIB=system 32195 fi 32196 32197 if test "x${ZLIB_FOUND}" != "xyes"; then 32198 # 32199 # If we don't find any system...set default to bundled 32200 # 32201 DEFAULT_ZLIB=bundled 32202 fi 32203 32204 # 32205 # If user didn't specify, use DEFAULT_ZLIB 32206 # 32207 if test "x${with_zlib}" = "x"; then 32208 with_zlib=${DEFAULT_ZLIB} 32209 fi 32210 32211 if test "x${with_zlib}" = "xbundled"; then 32212 USE_EXTERNAL_LIBZ=false 32213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 32214 $as_echo "bundled" >&6; } 32215 elif test "x${with_zlib}" = "xsystem"; then 32216 if test "x${ZLIB_FOUND}" = "xyes"; then 32217 USE_EXTERNAL_LIBZ=true 32218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 32219 $as_echo "system" >&6; } 32220 else 32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 32222 $as_echo "system not found" >&6; } 32223 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 32224 fi 32225 else 32226 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 32227 fi 32228 32229 32230 32231 ############################################################################### 32232 LIBZIP_CAN_USE_MMAP=true 32233 32234 32235 32236 ############################################################################### 32237 # 32238 # Check if altzone exists in time.h 32239 # 32240 32241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32242 /* end confdefs.h. */ 32243 #include <time.h> 32244 int 32245 main () 32246 { 32247 return (int)altzone; 32248 ; 32249 return 0; 32250 } 32251 _ACEOF 32252 if ac_fn_cxx_try_link "$LINENO"; then : 32253 has_altzone=yes 32254 else 32255 has_altzone=no 32256 fi 32257 rm -f core conftest.err conftest.$ac_objext \ 32258 conftest$ac_exeext conftest.$ac_ext 32259 if test "x$has_altzone" = xyes; then 32260 32261 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 32262 32263 fi 32264 32265 ############################################################################### 32266 # 32267 # Check the maths library 32268 # 32269 32270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 32271 $as_echo_n "checking for cos in -lm... " >&6; } 32272 if ${ac_cv_lib_m_cos+:} false; then : 32273 $as_echo_n "(cached) " >&6 32274 else 32275 ac_check_lib_save_LIBS=$LIBS 32276 LIBS="-lm $LIBS" 32277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32278 /* end confdefs.h. */ 32279 32280 /* Override any GCC internal prototype to avoid an error. 32281 Use char because int might match the return type of a GCC 32282 builtin and then its argument prototype would still apply. */ 32283 #ifdef __cplusplus 32284 extern "C" 32285 #endif 32286 char cos (); 32287 int 32288 main () 32289 { 32290 return cos (); 32291 ; 32292 return 0; 32293 } 32294 _ACEOF 32295 if ac_fn_cxx_try_link "$LINENO"; then : 32296 ac_cv_lib_m_cos=yes 32297 else 32298 ac_cv_lib_m_cos=no 32299 fi 32300 rm -f core conftest.err conftest.$ac_objext \ 32301 conftest$ac_exeext conftest.$ac_ext 32302 LIBS=$ac_check_lib_save_LIBS 32303 fi 32304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 32305 $as_echo "$ac_cv_lib_m_cos" >&6; } 32306 if test "x$ac_cv_lib_m_cos" = xyes; then : 32307 cat >>confdefs.h <<_ACEOF 32308 #define HAVE_LIBM 1 32309 _ACEOF 32310 32311 LIBS="-lm $LIBS" 32312 32313 else 32314 32315 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 32316 $as_echo "$as_me: Maths library was not found" >&6;} 32317 32318 fi 32319 32320 32321 32322 ############################################################################### 32323 # 32324 # Check for libdl.so 32325 32326 save_LIBS="$LIBS" 32327 LIBS="" 32328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 32329 $as_echo_n "checking for dlopen in -ldl... " >&6; } 32330 if ${ac_cv_lib_dl_dlopen+:} false; then : 32331 $as_echo_n "(cached) " >&6 32332 else 32333 ac_check_lib_save_LIBS=$LIBS 32334 LIBS="-ldl $LIBS" 32335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32336 /* end confdefs.h. */ 32337 32338 /* Override any GCC internal prototype to avoid an error. 32339 Use char because int might match the return type of a GCC 32340 builtin and then its argument prototype would still apply. */ 32341 #ifdef __cplusplus 32342 extern "C" 32343 #endif 32344 char dlopen (); 32345 int 32346 main () 32347 { 32348 return dlopen (); 32349 ; 32350 return 0; 32351 } 32352 _ACEOF 32353 if ac_fn_cxx_try_link "$LINENO"; then : 32354 ac_cv_lib_dl_dlopen=yes 32355 else 32356 ac_cv_lib_dl_dlopen=no 32357 fi 32358 rm -f core conftest.err conftest.$ac_objext \ 32359 conftest$ac_exeext conftest.$ac_ext 32360 LIBS=$ac_check_lib_save_LIBS 32361 fi 32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 32363 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 32364 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 32365 cat >>confdefs.h <<_ACEOF 32366 #define HAVE_LIBDL 1 32367 _ACEOF 32368 32369 LIBS="-ldl $LIBS" 32370 32371 fi 32372 32373 LIBDL="$LIBS" 32374 32375 LIBS="$save_LIBS" 32376 32377 32378 32379 ############################################################################### 32380 # 32381 # statically link libstdc++ before C++ ABI is stablized on Linux unless 32382 # dynamic build is configured on command line. 32383 # 32384 32385 # Check whether --with-stdc++lib was given. 32386 if test "${with_stdc__lib+set}" = set; then : 32387 withval=$with_stdc__lib; 32388 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 32389 && test "x$with_stdc__lib" != xdefault; then 32390 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 32391 fi 32392 32393 else 32394 with_stdc__lib=default 32395 32396 fi 32397 32398 32399 if test "x$OPENJDK_TARGET_OS" = xlinux; then 32400 # Test if -lstdc++ works. 32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 32402 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 32403 ac_ext=cpp 32404 ac_cpp='$CXXCPP $CPPFLAGS' 32405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32408 32409 OLD_CXXFLAGS="$CXXFLAGS" 32410 CXXFLAGS="$CXXFLAGS -lstdc++" 32411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32412 /* end confdefs.h. */ 32413 32414 int 32415 main () 32416 { 32417 return 0; 32418 ; 32419 return 0; 32420 } 32421 _ACEOF 32422 if ac_fn_cxx_try_link "$LINENO"; then : 32423 has_dynamic_libstdcxx=yes 32424 else 32425 has_dynamic_libstdcxx=no 32426 fi 32427 rm -f core conftest.err conftest.$ac_objext \ 32428 conftest$ac_exeext conftest.$ac_ext 32429 CXXFLAGS="$OLD_CXXFLAGS" 32430 ac_ext=cpp 32431 ac_cpp='$CXXCPP $CPPFLAGS' 32432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32435 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 32437 $as_echo "$has_dynamic_libstdcxx" >&6; } 32438 32439 # Test if stdc++ can be linked statically. 32440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 32441 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 32442 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 32443 ac_ext=cpp 32444 ac_cpp='$CXXCPP $CPPFLAGS' 32445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32448 32449 OLD_LIBS="$LIBS" 32450 OLD_CXX="$CXX" 32451 LIBS="$STATIC_STDCXX_FLAGS" 32452 CXX="$CC" 32453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32454 /* end confdefs.h. */ 32455 32456 int 32457 main () 32458 { 32459 return 0; 32460 ; 32461 return 0; 32462 } 32463 _ACEOF 32464 if ac_fn_cxx_try_link "$LINENO"; then : 32465 has_static_libstdcxx=yes 32466 else 32467 has_static_libstdcxx=no 32468 fi 32469 rm -f core conftest.err conftest.$ac_objext \ 32470 conftest$ac_exeext conftest.$ac_ext 32471 LIBS="$OLD_LIBS" 32472 CXX="$OLD_CXX" 32473 ac_ext=cpp 32474 ac_cpp='$CXXCPP $CPPFLAGS' 32475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32478 32479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 32480 $as_echo "$has_static_libstdcxx" >&6; } 32481 32482 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 32483 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 32484 fi 32485 32486 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 32487 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 32488 fi 32489 32490 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 32491 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 32492 fi 32493 32494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 32495 $as_echo_n "checking how to link with libstdc++... " >&6; } 32496 # If dynamic was requested, it's available since it would fail above otherwise. 32497 # If dynamic wasn't requested, go with static unless it isn't available. 32498 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 32499 LIBCXX="$LIBCXX -lstdc++" 32500 LDCXX="$CXX" 32501 STATIC_CXX_SETTING="STATIC_CXX=false" 32502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 32503 $as_echo "dynamic" >&6; } 32504 else 32505 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 32506 LDCXX="$CC" 32507 STATIC_CXX_SETTING="STATIC_CXX=true" 32508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 32509 $as_echo "static" >&6; } 32510 fi 32511 fi 32512 32513 32514 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 32515 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 32516 32517 pkg_failed=no 32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 32519 $as_echo_n "checking for LIBFFI... " >&6; } 32520 32521 if test -n "$LIBFFI_CFLAGS"; then 32522 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 32523 elif test -n "$PKG_CONFIG"; then 32524 if test -n "$PKG_CONFIG" && \ 32525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 32526 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 32527 ac_status=$? 32528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32529 test $ac_status = 0; }; then 32530 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 32531 else 32532 pkg_failed=yes 32533 fi 32534 else 32535 pkg_failed=untried 32536 fi 32537 if test -n "$LIBFFI_LIBS"; then 32538 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 32539 elif test -n "$PKG_CONFIG"; then 32540 if test -n "$PKG_CONFIG" && \ 32541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 32542 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 32543 ac_status=$? 32544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32545 test $ac_status = 0; }; then 32546 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 32547 else 32548 pkg_failed=yes 32549 fi 32550 else 32551 pkg_failed=untried 32552 fi 32553 32554 32555 32556 if test $pkg_failed = yes; then 32557 32558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32559 _pkg_short_errors_supported=yes 32560 else 32561 _pkg_short_errors_supported=no 32562 fi 32563 if test $_pkg_short_errors_supported = yes; then 32564 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 32565 else 32566 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 32567 fi 32568 # Put the nasty error message in config.log where it belongs 32569 echo "$LIBFFI_PKG_ERRORS" >&5 32570 32571 as_fn_error $? "Package requirements (libffi) were not met: 32572 32573 $LIBFFI_PKG_ERRORS 32574 32575 Consider adjusting the PKG_CONFIG_PATH environment variable if you 32576 installed software in a non-standard prefix. 32577 32578 Alternatively, you may set the environment variables LIBFFI_CFLAGS 32579 and LIBFFI_LIBS to avoid the need to call pkg-config. 32580 See the pkg-config man page for more details. 32581 " "$LINENO" 5 32582 elif test $pkg_failed = untried; then 32583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32585 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32586 is in your PATH or set the PKG_CONFIG environment variable to the full 32587 path to pkg-config. 32588 32589 Alternatively, you may set the environment variables LIBFFI_CFLAGS 32590 and LIBFFI_LIBS to avoid the need to call pkg-config. 32591 See the pkg-config man page for more details. 32592 32593 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32594 See \`config.log' for more details" "$LINENO" 5; } 32595 else 32596 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 32597 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 32598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32599 $as_echo "yes" >&6; } 32600 : 32601 fi 32602 32603 fi 32604 32605 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 32606 # Extract the first word of "llvm-config", so it can be a program name with args. 32607 set dummy llvm-config; ac_word=$2 32608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32609 $as_echo_n "checking for $ac_word... " >&6; } 32610 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 32611 $as_echo_n "(cached) " >&6 32612 else 32613 if test -n "$LLVM_CONFIG"; then 32614 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 32615 else 32616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32617 for as_dir in $PATH 32618 do 32619 IFS=$as_save_IFS 32620 test -z "$as_dir" && as_dir=. 32621 for ac_exec_ext in '' $ac_executable_extensions; do 32622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 32623 ac_cv_prog_LLVM_CONFIG="llvm-config" 32624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32625 break 2 32626 fi 32627 done 32628 done 32629 IFS=$as_save_IFS 32630 32631 fi 32632 fi 32633 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 32634 if test -n "$LLVM_CONFIG"; then 32635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 32636 $as_echo "$LLVM_CONFIG" >&6; } 32637 else 32638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32639 $as_echo "no" >&6; } 32640 fi 32641 32642 32643 32644 if test "x$LLVM_CONFIG" != xllvm-config; then 32645 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 32646 fi 32647 32648 llvm_components="jit mcjit engine nativecodegen native" 32649 unset LLVM_CFLAGS 32650 for flag in $("$LLVM_CONFIG" --cxxflags); do 32651 if echo "${flag}" | grep -q '^-[ID]'; then 32652 if test "${flag}" != "-D_DEBUG" ; then 32653 if test "${LLVM_CFLAGS}" != "" ; then 32654 LLVM_CFLAGS="${LLVM_CFLAGS} " 32655 fi 32656 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 32657 fi 32658 fi 32659 done 32660 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 32661 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 32662 32663 unset LLVM_LDFLAGS 32664 for flag in $("${LLVM_CONFIG}" --ldflags); do 32665 if echo "${flag}" | grep -q '^-L'; then 32666 if test "${LLVM_LDFLAGS}" != ""; then 32667 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 32668 fi 32669 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 32670 fi 32671 done 32672 32673 unset LLVM_LIBS 32674 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 32675 if echo "${flag}" | grep -q '^-l'; then 32676 if test "${LLVM_LIBS}" != ""; then 32677 LLVM_LIBS="${LLVM_LIBS} " 32678 fi 32679 LLVM_LIBS="${LLVM_LIBS}${flag}" 32680 fi 32681 done 32682 32683 32684 32685 32686 fi 32687 32688 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 32689 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then 32690 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 32691 fi 32692 32693 # TODO better (platform agnostic) test 32694 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then 32695 LIBCXX="-lstdc++" 32696 fi 32697 32698 32699 32700 32701 32702 # After we have toolchain and the paths to all libraries (needed by msys), we can compile the fixpath helper 32703 32704 # When using cygwin or msys, we need a wrapper binary that renames 32705 # /cygdrive/c/ arguments into c:/ arguments and peeks into 32706 # @files and rewrites these too! This wrapper binary is 32707 # called fixpath. 32708 FIXPATH= 32709 if test "x$OPENJDK_BUILD_OS" = xwindows; then 32710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 32711 $as_echo_n "checking if fixpath can be created... " >&6; } 32712 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 32713 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 32714 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 32715 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 32716 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 32717 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 32718 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 32719 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 32720 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 32721 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 32722 32723 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 32724 # @ was chosen as separator to minimize risk of other tools messing around with it 32725 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 32726 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 32727 32728 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 32729 fi 32730 rm -f $OUTPUT_ROOT/fixpath* 32731 cd $OUTPUT_ROOT 32732 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 32733 cd $CURDIR 32734 32735 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 32736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32737 $as_echo "no" >&6; } 32738 cat $OUTPUT_ROOT/fixpath1.log 32739 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 32740 fi 32741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32742 $as_echo "yes" >&6; } 32743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 32744 $as_echo_n "checking if fixpath.exe works... " >&6; } 32745 cd $OUTPUT_ROOT 32746 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 32747 cd $CURDIR 32748 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 32749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32750 $as_echo "no" >&6; } 32751 cat $OUTPUT_ROOT/fixpath2.log 32752 as_fn_error $? "fixpath did not work!" "$LINENO" 5 32753 fi 32754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32755 $as_echo "yes" >&6; } 32756 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 32757 fi 32758 32759 32760 32761 32762 ############################################################################### 32763 # 32764 # We need to do some final tweaking, when everything else is done. 32765 # 32766 ############################################################################### 32767 32768 32769 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 32770 32771 32772 # The name of the Service Agent jar. 32773 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 32774 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 32775 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 32776 fi 32777 32778 32779 32780 32781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 32782 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 32783 32784 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 32785 ENABLE_INTREE_EC=yes 32786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32787 $as_echo "yes" >&6; } 32788 else 32789 ENABLE_INTREE_EC=no 32790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32791 $as_echo "no" >&6; } 32792 fi 32793 32794 32795 32796 32797 ############################################################################### 32798 # 32799 # Configure parts of the build that only affect the build performance, 32800 # not the result. 32801 # 32802 ############################################################################### 32803 32804 32805 # How many cores do we have on this build system? 32806 32807 # Check whether --with-num-cores was given. 32808 if test "${with_num_cores+set}" = set; then : 32809 withval=$with_num_cores; 32810 fi 32811 32812 if test "x$with_num_cores" = x; then 32813 # The number of cores were not specified, try to probe them. 32814 32815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 32816 $as_echo_n "checking for number of cores... " >&6; } 32817 NUM_CORES=1 32818 FOUND_CORES=no 32819 32820 if test -f /proc/cpuinfo; then 32821 # Looks like a Linux (or cygwin) system 32822 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 32823 FOUND_CORES=yes 32824 elif test -x /usr/sbin/psrinfo; then 32825 # Looks like a Solaris system 32826 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 32827 FOUND_CORES=yes 32828 elif test -x /usr/sbin/system_profiler; then 32829 # Looks like a MacOSX system 32830 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 32831 FOUND_CORES=yes 32832 elif test -n "$NUMBER_OF_PROCESSORS"; then 32833 # On windows, look in the env 32834 NUM_CORES=$NUMBER_OF_PROCESSORS 32835 FOUND_CORES=yes 32836 fi 32837 32838 if test "x$FOUND_CORES" = xyes; then 32839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 32840 $as_echo "$NUM_CORES" >&6; } 32841 else 32842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 32843 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 32844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 32845 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 32846 fi 32847 32848 32849 else 32850 NUM_CORES=$with_num_cores 32851 fi 32852 32853 32854 32855 # How much memory do we have on this build system? 32856 32857 # Check whether --with-memory-size was given. 32858 if test "${with_memory_size+set}" = set; then : 32859 withval=$with_memory_size; 32860 fi 32861 32862 if test "x$with_memory_size" = x; then 32863 # The memory size was not specified, try to probe it. 32864 32865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 32866 $as_echo_n "checking for memory size... " >&6; } 32867 # Default to 1024 MB 32868 MEMORY_SIZE=1024 32869 FOUND_MEM=no 32870 32871 if test -f /proc/meminfo; then 32872 # Looks like a Linux (or cygwin) system 32873 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 32874 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 32875 FOUND_MEM=yes 32876 elif test -x /usr/sbin/prtconf; then 32877 # Looks like a Solaris system 32878 MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'` 32879 FOUND_MEM=yes 32880 elif test -x /usr/sbin/system_profiler; then 32881 # Looks like a MacOSX system 32882 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 32883 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 32884 FOUND_MEM=yes 32885 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 32886 # Windows, but without cygwin 32887 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 32888 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 32889 FOUND_MEM=yes 32890 fi 32891 32892 if test "x$FOUND_MEM" = xyes; then 32893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 32894 $as_echo "$MEMORY_SIZE MB" >&6; } 32895 else 32896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 32897 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 32898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 32899 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 32900 fi 32901 32902 else 32903 MEMORY_SIZE=$with_memory_size 32904 fi 32905 32906 32907 32908 # Provide a decent default number of parallel jobs for make depending on 32909 # number of cores, amount of memory and machine architecture. 32910 32911 # Check whether --with-jobs was given. 32912 if test "${with_jobs+set}" = set; then : 32913 withval=$with_jobs; 32914 fi 32915 32916 if test "x$with_jobs" = x; then 32917 # Number of jobs was not specified, calculate. 32918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 32919 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 32920 # Approximate memory in GB, rounding up a bit. 32921 memory_gb=`expr $MEMORY_SIZE / 1100` 32922 # Pick the lowest of memory in gb and number of cores. 32923 if test "$memory_gb" -lt "$NUM_CORES"; then 32924 JOBS="$memory_gb" 32925 else 32926 JOBS="$NUM_CORES" 32927 # On bigger machines, leave some room for other processes to run 32928 if test "$JOBS" -gt "4"; then 32929 JOBS=`expr $JOBS '*' 90 / 100` 32930 fi 32931 fi 32932 # Cap number of jobs to 16 32933 if test "$JOBS" -gt "16"; then 32934 JOBS=16 32935 fi 32936 if test "$JOBS" -eq "0"; then 32937 JOBS=1 32938 fi 32939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 32940 $as_echo "$JOBS" >&6; } 32941 else 32942 JOBS=$with_jobs 32943 fi 32944 32945 32946 32947 # Setup smart javac (after cores and memory have been setup) 32948 32949 32950 # Check whether --with-sjavac-server-java was given. 32951 if test "${with_sjavac_server_java+set}" = set; then : 32952 withval=$with_sjavac_server_java; 32953 fi 32954 32955 32956 if test "x$with_sjavac_server_java" != x; then 32957 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 32958 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 32959 if test "x$FOUND_VERSION" = x; then 32960 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 32961 fi 32962 else 32963 SJAVAC_SERVER_JAVA="" 32964 # Hotspot specific options. 32965 32966 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 32967 $ECHO "Command: $JAVA -verbosegc -version" >&5 32968 OUTPUT=`$JAVA -verbosegc -version 2>&1` 32969 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 32970 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 32971 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32972 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 32973 JVM_ARG_OK=true 32974 else 32975 $ECHO "Arg failed:" >&5 32976 $ECHO "$OUTPUT" >&5 32977 JVM_ARG_OK=false 32978 fi 32979 32980 # JRockit specific options. 32981 32982 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 32983 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 32984 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 32985 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 32986 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 32987 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 32988 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 32989 JVM_ARG_OK=true 32990 else 32991 $ECHO "Arg failed:" >&5 32992 $ECHO "$OUTPUT" >&5 32993 JVM_ARG_OK=false 32994 fi 32995 32996 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 32997 fi 32998 32999 33000 if test "$MEMORY_SIZE" -gt "2500"; then 33001 33002 $ECHO "Check if jvm arg is ok: -d64" >&5 33003 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 33004 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 33005 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33006 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33007 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33008 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 33009 JVM_ARG_OK=true 33010 else 33011 $ECHO "Arg failed:" >&5 33012 $ECHO "$OUTPUT" >&5 33013 JVM_ARG_OK=false 33014 fi 33015 33016 if test "$JVM_ARG_OK" = true; then 33017 JVM_64BIT=true 33018 JVM_ARG_OK=false 33019 fi 33020 fi 33021 33022 if test "$JVM_64BIT" = true; then 33023 if test "$MEMORY_SIZE" -gt "17000"; then 33024 33025 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 33026 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 33027 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 33028 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33029 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33030 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33031 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 33032 JVM_ARG_OK=true 33033 else 33034 $ECHO "Arg failed:" >&5 33035 $ECHO "$OUTPUT" >&5 33036 JVM_ARG_OK=false 33037 fi 33038 33039 fi 33040 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 33041 33042 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 33043 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 33044 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 33045 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33046 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33047 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33048 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 33049 JVM_ARG_OK=true 33050 else 33051 $ECHO "Arg failed:" >&5 33052 $ECHO "$OUTPUT" >&5 33053 JVM_ARG_OK=false 33054 fi 33055 33056 fi 33057 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 33058 33059 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 33060 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 33061 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 33062 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33063 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33064 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33065 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 33066 JVM_ARG_OK=true 33067 else 33068 $ECHO "Arg failed:" >&5 33069 $ECHO "$OUTPUT" >&5 33070 JVM_ARG_OK=false 33071 fi 33072 33073 fi 33074 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 33075 33076 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 33077 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 33078 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 33079 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33080 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33081 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33082 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 33083 JVM_ARG_OK=true 33084 else 33085 $ECHO "Arg failed:" >&5 33086 $ECHO "$OUTPUT" >&5 33087 JVM_ARG_OK=false 33088 fi 33089 33090 fi 33091 fi 33092 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 33093 33094 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 33095 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 33096 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 33097 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33098 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33099 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33100 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 33101 JVM_ARG_OK=true 33102 else 33103 $ECHO "Arg failed:" >&5 33104 $ECHO "$OUTPUT" >&5 33105 JVM_ARG_OK=false 33106 fi 33107 33108 fi 33109 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 33110 33111 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 33112 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 33113 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 33114 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33115 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33116 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33117 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 33118 JVM_ARG_OK=true 33119 else 33120 $ECHO "Arg failed:" >&5 33121 $ECHO "$OUTPUT" >&5 33122 JVM_ARG_OK=false 33123 fi 33124 33125 fi 33126 if test "$JVM_ARG_OK" = false; then 33127 33128 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 33129 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 33130 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 33131 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 33132 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 33133 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 33134 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 33135 JVM_ARG_OK=true 33136 else 33137 $ECHO "Arg failed:" >&5 33138 $ECHO "$OUTPUT" >&5 33139 JVM_ARG_OK=false 33140 fi 33141 33142 fi 33143 33144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 33145 $as_echo_n "checking whether to use sjavac... " >&6; } 33146 # Check whether --enable-sjavac was given. 33147 if test "${enable_sjavac+set}" = set; then : 33148 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 33149 else 33150 ENABLE_SJAVAC='no' 33151 fi 33152 33153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 33154 $as_echo "$ENABLE_SJAVAC" >&6; } 33155 33156 33157 if test "x$ENABLE_SJAVAC" = xyes; then 33158 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 33159 else 33160 SJAVAC_SERVER_DIR= 33161 fi 33162 33163 33164 33165 33166 # Can the C/C++ compiler use precompiled headers? 33167 33168 33169 ############################################################################### 33170 # 33171 # Can the C/C++ compiler use precompiled headers? 33172 # 33173 # Check whether --enable-precompiled-headers was given. 33174 if test "${enable_precompiled_headers+set}" = set; then : 33175 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 33176 else 33177 ENABLE_PRECOMPH=yes 33178 fi 33179 33180 33181 USE_PRECOMPILED_HEADER=1 33182 if test "x$ENABLE_PRECOMPH" = xno; then 33183 USE_PRECOMPILED_HEADER=0 33184 fi 33185 33186 if test "x$ENABLE_PRECOMPH" = xyes; then 33187 # Check that the compiler actually supports precomp headers. 33188 if test "x$GCC" = xyes; then 33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 33190 $as_echo_n "checking that precompiled headers work... " >&6; } 33191 echo "int alfa();" > conftest.h 33192 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 33193 if test ! -f conftest.hpp.gch; then 33194 USE_PRECOMPILED_HEADER=0 33195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33196 $as_echo "no" >&6; } 33197 else 33198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33199 $as_echo "yes" >&6; } 33200 fi 33201 rm -f conftest.h conftest.hpp.gch 33202 fi 33203 fi 33204 33205 33206 33207 33208 # Setup use of ccache, if available 33209 33210 # Check whether --enable-ccache was given. 33211 if test "${enable_ccache+set}" = set; then : 33212 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache} 33213 else 33214 ENABLE_CCACHE=yes 33215 fi 33216 33217 if test "x$ENABLE_CCACHE" = xyes; then 33218 # Extract the first word of "ccache", so it can be a program name with args. 33219 set dummy ccache; ac_word=$2 33220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33221 $as_echo_n "checking for $ac_word... " >&6; } 33222 if ${ac_cv_path_CCACHE+:} false; then : 33223 $as_echo_n "(cached) " >&6 33224 else 33225 case $CCACHE in 33226 [\\/]* | ?:[\\/]*) 33227 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 33228 ;; 33229 *) 33230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33231 for as_dir in $PATH 33232 do 33233 IFS=$as_save_IFS 33234 test -z "$as_dir" && as_dir=. 33235 for ac_exec_ext in '' $ac_executable_extensions; do 33236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 33237 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 33238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33239 break 2 33240 fi 33241 done 33242 done 33243 IFS=$as_save_IFS 33244 33245 ;; 33246 esac 33247 fi 33248 CCACHE=$ac_cv_path_CCACHE 33249 if test -n "$CCACHE"; then 33250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 33251 $as_echo "$CCACHE" >&6; } 33252 else 33253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33254 $as_echo "no" >&6; } 33255 fi 33256 33257 33258 else 33259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5 33260 $as_echo_n "checking for ccache... " >&6; } 33261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5 33262 $as_echo "explicitly disabled" >&6; } 33263 CCACHE= 33264 fi 33265 33266 33267 33268 # Check whether --with-ccache-dir was given. 33269 if test "${with_ccache_dir+set}" = set; then : 33270 withval=$with_ccache_dir; 33271 fi 33272 33273 33274 if test "x$with_ccache_dir" != x; then 33275 # When using a non home ccache directory, assume the use is to share ccache files 33276 # with other users. Thus change the umask. 33277 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 33278 fi 33279 CCACHE_FOUND="" 33280 if test "x$CCACHE" != x; then 33281 33282 if test "x$CCACHE" != x; then 33283 CCACHE_FOUND="true" 33284 # Only use ccache if it is 3.1.4 or later, which supports 33285 # precompiled headers. 33286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 33287 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 33288 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 33289 if test "x$HAS_GOOD_CCACHE" = x; then 33290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 33291 $as_echo "no, disabling ccache" >&6; } 33292 CCACHE= 33293 else 33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33295 $as_echo "yes" >&6; } 33296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 33297 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 33298 PUSHED_FLAGS="$CXXFLAGS" 33299 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 33300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33301 /* end confdefs.h. */ 33302 33303 int 33304 main () 33305 { 33306 33307 ; 33308 return 0; 33309 } 33310 _ACEOF 33311 if ac_fn_cxx_try_compile "$LINENO"; then : 33312 CC_KNOWS_CCACHE_TRICK=yes 33313 else 33314 CC_KNOWS_CCACHE_TRICK=no 33315 fi 33316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33317 CXXFLAGS="$PUSHED_FLAGS" 33318 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33320 $as_echo "yes" >&6; } 33321 else 33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 33323 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 33324 CCACHE= 33325 fi 33326 fi 33327 fi 33328 33329 if test "x$CCACHE" != x; then 33330 CCACHE_SLOPPINESS=time_macros 33331 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 33332 CCACHE_FLAGS=-fpch-preprocess 33333 33334 if test "x$SET_CCACHE_DIR" != x; then 33335 mkdir -p $CCACHE_DIR > /dev/null 2>&1 33336 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 33337 fi 33338 fi 33339 33340 fi 33341 33342 33343 ############################################################################### 33344 # 33345 # And now the finish... 33346 # 33347 ############################################################################### 33348 33349 # Check for some common pitfalls 33350 33351 if test x"$OPENJDK_BUILD_OS" = xwindows; then 33352 file_to_test="$SRC_ROOT/LICENSE" 33353 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 33354 as_fn_error $? "Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin." "$LINENO" 5 33355 fi 33356 fi 33357 33358 33359 33360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 33361 $as_echo_n "checking if build directory is on local disk... " >&6; } 33362 33363 # df -l lists only local disks; if the given directory is not found then 33364 # a non-zero exit code is given 33365 if test "x$DF" = x; then 33366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33367 # msys does not have df; use Windows "net use" instead. 33368 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 33369 if test "x$IS_NETWORK_DISK" = x; then 33370 OUTPUT_DIR_IS_LOCAL="yes" 33371 else 33372 OUTPUT_DIR_IS_LOCAL="no" 33373 fi 33374 else 33375 # No df here, say it's local 33376 OUTPUT_DIR_IS_LOCAL="yes" 33377 fi 33378 else 33379 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 33380 OUTPUT_DIR_IS_LOCAL="yes" 33381 else 33382 OUTPUT_DIR_IS_LOCAL="no" 33383 fi 33384 fi 33385 33386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 33387 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 33388 33389 33390 33391 # Check if the user has any old-style ALT_ variables set. 33392 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 33393 33394 # Before generating output files, test if they exist. If they do, this is a reconfigure. 33395 # Since we can't properly handle the dependencies for this, warn the user about the situation 33396 if test -e $OUTPUT_ROOT/spec.gmk; then 33397 IS_RECONFIGURE=yes 33398 else 33399 IS_RECONFIGURE=no 33400 fi 33401 33402 if test -e $SRC_ROOT/build/.hide-configure-performance-hints; then 33403 HIDE_PERFORMANCE_HINTS=yes 33404 else 33405 HIDE_PERFORMANCE_HINTS=no 33406 # Hide it the next time around... 33407 $TOUCH $SRC_ROOT/build/.hide-configure-performance-hints > /dev/null 2>&1 33408 fi 33409 33410 33411 33412 # At the end, call the custom hook. (Dummy macro if no custom sources available) 33413 33414 33415 # We're messing a bit with internal autoconf variables to put the config.status 33416 # in the output directory instead of the current directory. 33417 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 33418 # Create the actual output files. Now the main work of configure is done. 33419 cat >confcache <<\_ACEOF 33420 # This file is a shell script that caches the results of configure 33421 # tests run on this system so they can be shared between configure 33422 # scripts and configure runs, see configure's option --config-cache. 33423 # It is not useful on other systems. If it contains results you don't 33424 # want to keep, you may remove or edit it. 33425 # 33426 # config.status only pays attention to the cache file if you give it 33427 # the --recheck option to rerun configure. 33428 # 33429 # `ac_cv_env_foo' variables (set or unset) will be overridden when 33430 # loading this file, other *unset* `ac_cv_foo' will be assigned the 33431 # following values. 33432 33433 _ACEOF 33434 33435 # The following way of writing the cache mishandles newlines in values, 33436 # but we know of no workaround that is simple, portable, and efficient. 33437 # So, we kill variables containing newlines. 33438 # Ultrix sh set writes to stderr and can't be redirected directly, 33439 # and sets the high bit in the cache file unless we assign to the vars. 33440 ( 33441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33442 eval ac_val=\$$ac_var 33443 case $ac_val in #( 33444 *${as_nl}*) 33445 case $ac_var in #( 33446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33448 esac 33449 case $ac_var in #( 33450 _ | IFS | as_nl) ;; #( 33451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33452 *) { eval $ac_var=; unset $ac_var;} ;; 33453 esac ;; 33454 esac 33455 done 33456 33457 (set) 2>&1 | 33458 case $as_nl`(ac_space=' '; set) 2>&1` in #( 33459 *${as_nl}ac_space=\ *) 33460 # `set' does not quote correctly, so add quotes: double-quote 33461 # substitution turns \\\\ into \\, and sed turns \\ into \. 33462 sed -n \ 33463 "s/'/'\\\\''/g; 33464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 33465 ;; #( 33466 *) 33467 # `set' quotes correctly as required by POSIX, so do not add quotes. 33468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 33469 ;; 33470 esac | 33471 sort 33472 ) | 33473 sed ' 33474 /^ac_cv_env_/b end 33475 t clear 33476 :clear 33477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 33478 t end 33479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 33480 :end' >>confcache 33481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 33482 if test -w "$cache_file"; then 33483 if test "x$cache_file" != "x/dev/null"; then 33484 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 33485 $as_echo "$as_me: updating cache $cache_file" >&6;} 33486 if test ! -f "$cache_file" || test -h "$cache_file"; then 33487 cat confcache >"$cache_file" 33488 else 33489 case $cache_file in #( 33490 */* | ?:*) 33491 mv -f confcache "$cache_file"$$ && 33492 mv -f "$cache_file"$$ "$cache_file" ;; #( 33493 *) 33494 mv -f confcache "$cache_file" ;; 33495 esac 33496 fi 33497 fi 33498 else 33499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 33500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 33501 fi 33502 fi 33503 rm -f confcache 33504 33505 test "x$prefix" = xNONE && prefix=$ac_default_prefix 33506 # Let make expand exec_prefix. 33507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 33508 33509 DEFS=-DHAVE_CONFIG_H 33510 33511 ac_libobjs= 33512 ac_ltlibobjs= 33513 U= 33514 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 33515 # 1. Remove the extension, and $U if already installed. 33516 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 33517 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 33518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 33519 # will be set to the directory where LIBOBJS objects are built. 33520 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 33521 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 33522 done 33523 LIBOBJS=$ac_libobjs 33524 33525 LTLIBOBJS=$ac_ltlibobjs 33526 33527 33528 33529 : "${CONFIG_STATUS=./config.status}" 33530 ac_write_fail=0 33531 ac_clean_files_save=$ac_clean_files 33532 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33534 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33535 as_write_fail=0 33536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33537 #! $SHELL 33538 # Generated by $as_me. 33539 # Run this file to recreate the current configuration. 33540 # Compiler output produced by configure, useful for debugging 33541 # configure, is in config.log if it exists. 33542 33543 debug=false 33544 ac_cs_recheck=false 33545 ac_cs_silent=false 33546 33547 SHELL=\${CONFIG_SHELL-$SHELL} 33548 export SHELL 33549 _ASEOF 33550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33551 ## -------------------- ## 33552 ## M4sh Initialization. ## 33553 ## -------------------- ## 33554 33555 # Be more Bourne compatible 33556 DUALCASE=1; export DUALCASE # for MKS sh 33557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33558 emulate sh 33559 NULLCMD=: 33560 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33561 # is contrary to our usage. Disable this feature. 33562 alias -g '${1+"$@"}'='"$@"' 33563 setopt NO_GLOB_SUBST 33564 else 33565 case `(set -o) 2>/dev/null` in #( 33566 *posix*) : 33567 set -o posix ;; #( 33568 *) : 33569 ;; 33570 esac 33571 fi 33572 33573 33574 as_nl=' 33575 ' 33576 export as_nl 33577 # Printing a long string crashes Solaris 7 /usr/bin/printf. 33578 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33580 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33581 # Prefer a ksh shell builtin over an external printf program on Solaris, 33582 # but without wasting forks for bash or zsh. 33583 if test -z "$BASH_VERSION$ZSH_VERSION" \ 33584 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33585 as_echo='print -r --' 33586 as_echo_n='print -rn --' 33587 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33588 as_echo='printf %s\n' 33589 as_echo_n='printf %s' 33590 else 33591 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33592 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33593 as_echo_n='/usr/ucb/echo -n' 33594 else 33595 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33596 as_echo_n_body='eval 33597 arg=$1; 33598 case $arg in #( 33599 *"$as_nl"*) 33600 expr "X$arg" : "X\\(.*\\)$as_nl"; 33601 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33602 esac; 33603 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33604 ' 33605 export as_echo_n_body 33606 as_echo_n='sh -c $as_echo_n_body as_echo' 33607 fi 33608 export as_echo_body 33609 as_echo='sh -c $as_echo_body as_echo' 33610 fi 33611 33612 # The user is always right. 33613 if test "${PATH_SEPARATOR+set}" != set; then 33614 PATH_SEPARATOR=: 33615 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33616 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33617 PATH_SEPARATOR=';' 33618 } 33619 fi 33620 33621 33622 # IFS 33623 # We need space, tab and new line, in precisely that order. Quoting is 33624 # there to prevent editors from complaining about space-tab. 33625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 33626 # splitting by setting IFS to empty value.) 33627 IFS=" "" $as_nl" 33628 33629 # Find who we are. Look in the path if we contain no directory separator. 33630 as_myself= 33631 case $0 in #(( 33632 *[\\/]* ) as_myself=$0 ;; 33633 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33634 for as_dir in $PATH 33635 do 33636 IFS=$as_save_IFS 33637 test -z "$as_dir" && as_dir=. 33638 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33639 done 33640 IFS=$as_save_IFS 33641 33642 ;; 33643 esac 33644 # We did not find ourselves, most probably we were run as `sh COMMAND' 33645 # in which case we are not to be found in the path. 33646 if test "x$as_myself" = x; then 33647 as_myself=$0 33648 fi 33649 if test ! -f "$as_myself"; then 33650 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33651 exit 1 33652 fi 33653 33654 # Unset variables that we do not need and which cause bugs (e.g. in 33655 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33656 # suppresses any "Segmentation fault" message there. '((' could 33657 # trigger a bug in pdksh 5.2.14. 33658 for as_var in BASH_ENV ENV MAIL MAILPATH 33659 do eval test x\${$as_var+set} = xset \ 33660 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33661 done 33662 PS1='$ ' 33663 PS2='> ' 33664 PS4='+ ' 33665 33666 # NLS nuisances. 33667 LC_ALL=C 33668 export LC_ALL 33669 LANGUAGE=C 33670 export LANGUAGE 33671 33672 # CDPATH. 33673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33674 33675 33676 # as_fn_error STATUS ERROR [LINENO LOG_FD] 33677 # ---------------------------------------- 33678 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33679 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33680 # script with STATUS, using 1 if that was 0. 33681 as_fn_error () 33682 { 33683 as_status=$1; test $as_status -eq 0 && as_status=1 33684 if test "$4"; then 33685 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33686 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33687 fi 33688 $as_echo "$as_me: error: $2" >&2 33689 as_fn_exit $as_status 33690 } # as_fn_error 33691 33692 33693 # as_fn_set_status STATUS 33694 # ----------------------- 33695 # Set $? to STATUS, without forking. 33696 as_fn_set_status () 33697 { 33698 return $1 33699 } # as_fn_set_status 33700 33701 # as_fn_exit STATUS 33702 # ----------------- 33703 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33704 as_fn_exit () 33705 { 33706 set +e 33707 as_fn_set_status $1 33708 exit $1 33709 } # as_fn_exit 33710 33711 # as_fn_unset VAR 33712 # --------------- 33713 # Portably unset VAR. 33714 as_fn_unset () 33715 { 33716 { eval $1=; unset $1;} 33717 } 33718 as_unset=as_fn_unset 33719 # as_fn_append VAR VALUE 33720 # ---------------------- 33721 # Append the text in VALUE to the end of the definition contained in VAR. Take 33722 # advantage of any shell optimizations that allow amortized linear growth over 33723 # repeated appends, instead of the typical quadratic growth present in naive 33724 # implementations. 33725 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33726 eval 'as_fn_append () 33727 { 33728 eval $1+=\$2 33729 }' 33730 else 33731 as_fn_append () 33732 { 33733 eval $1=\$$1\$2 33734 } 33735 fi # as_fn_append 33736 33737 # as_fn_arith ARG... 33738 # ------------------ 33739 # Perform arithmetic evaluation on the ARGs, and store the result in the 33740 # global $as_val. Take advantage of shells that can avoid forks. The arguments 33741 # must be portable across $(()) and expr. 33742 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33743 eval 'as_fn_arith () 33744 { 33745 as_val=$(( $* )) 33746 }' 33747 else 33748 as_fn_arith () 33749 { 33750 as_val=`expr "$@" || test $? -eq 1` 33751 } 33752 fi # as_fn_arith 33753 33754 33755 if expr a : '\(a\)' >/dev/null 2>&1 && 33756 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33757 as_expr=expr 33758 else 33759 as_expr=false 33760 fi 33761 33762 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33763 as_basename=basename 33764 else 33765 as_basename=false 33766 fi 33767 33768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33769 as_dirname=dirname 33770 else 33771 as_dirname=false 33772 fi 33773 33774 as_me=`$as_basename -- "$0" || 33775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33776 X"$0" : 'X\(//\)$' \| \ 33777 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33778 $as_echo X/"$0" | 33779 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33780 s//\1/ 33781 q 33782 } 33783 /^X\/\(\/\/\)$/{ 33784 s//\1/ 33785 q 33786 } 33787 /^X\/\(\/\).*/{ 33788 s//\1/ 33789 q 33790 } 33791 s/.*/./; q'` 33792 33793 # Avoid depending upon Character Ranges. 33794 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33797 as_cr_digits='0123456789' 33798 as_cr_alnum=$as_cr_Letters$as_cr_digits 33799 33800 ECHO_C= ECHO_N= ECHO_T= 33801 case `echo -n x` in #((((( 33802 -n*) 33803 case `echo 'xy\c'` in 33804 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33805 xy) ECHO_C='\c';; 33806 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33807 ECHO_T=' ';; 33808 esac;; 33809 *) 33810 ECHO_N='-n';; 33811 esac 33812 33813 rm -f conf$$ conf$$.exe conf$$.file 33814 if test -d conf$$.dir; then 33815 rm -f conf$$.dir/conf$$.file 33816 else 33817 rm -f conf$$.dir 33818 mkdir conf$$.dir 2>/dev/null 33819 fi 33820 if (echo >conf$$.file) 2>/dev/null; then 33821 if ln -s conf$$.file conf$$ 2>/dev/null; then 33822 as_ln_s='ln -s' 33823 # ... but there are two gotchas: 33824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33826 # In both cases, we have to default to `cp -p'. 33827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33828 as_ln_s='cp -p' 33829 elif ln conf$$.file conf$$ 2>/dev/null; then 33830 as_ln_s=ln 33831 else 33832 as_ln_s='cp -p' 33833 fi 33834 else 33835 as_ln_s='cp -p' 33836 fi 33837 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33838 rmdir conf$$.dir 2>/dev/null 33839 33840 33841 # as_fn_mkdir_p 33842 # ------------- 33843 # Create "$as_dir" as a directory, including parents if necessary. 33844 as_fn_mkdir_p () 33845 { 33846 33847 case $as_dir in #( 33848 -*) as_dir=./$as_dir;; 33849 esac 33850 test -d "$as_dir" || eval $as_mkdir_p || { 33851 as_dirs= 33852 while :; do 33853 case $as_dir in #( 33854 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33855 *) as_qdir=$as_dir;; 33856 esac 33857 as_dirs="'$as_qdir' $as_dirs" 33858 as_dir=`$as_dirname -- "$as_dir" || 33859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33860 X"$as_dir" : 'X\(//\)[^/]' \| \ 33861 X"$as_dir" : 'X\(//\)$' \| \ 33862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33863 $as_echo X"$as_dir" | 33864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33865 s//\1/ 33866 q 33867 } 33868 /^X\(\/\/\)[^/].*/{ 33869 s//\1/ 33870 q 33871 } 33872 /^X\(\/\/\)$/{ 33873 s//\1/ 33874 q 33875 } 33876 /^X\(\/\).*/{ 33877 s//\1/ 33878 q 33879 } 33880 s/.*/./; q'` 33881 test -d "$as_dir" && break 33882 done 33883 test -z "$as_dirs" || eval "mkdir $as_dirs" 33884 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33885 33886 33887 } # as_fn_mkdir_p 33888 if mkdir -p . 2>/dev/null; then 33889 as_mkdir_p='mkdir -p "$as_dir"' 33890 else 33891 test -d ./-p && rmdir ./-p 33892 as_mkdir_p=false 33893 fi 33894 33895 if test -x / >/dev/null 2>&1; then 33896 as_test_x='test -x' 33897 else 33898 if ls -dL / >/dev/null 2>&1; then 33899 as_ls_L_option=L 33900 else 33901 as_ls_L_option= 33902 fi 33903 as_test_x=' 33904 eval sh -c '\'' 33905 if test -d "$1"; then 33906 test -d "$1/."; 33907 else 33908 case $1 in #( 33909 -*)set "./$1";; 33910 esac; 33911 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 33912 ???[sx]*):;;*)false;;esac;fi 33913 '\'' sh 33914 ' 33915 fi 33916 as_executable_p=$as_test_x 33917 33918 # Sed expression to map a string onto a valid CPP name. 33919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33920 33921 # Sed expression to map a string onto a valid variable name. 33922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33923 33924 33925 exec 6>&1 33926 ## ----------------------------------- ## 33927 ## Main body of $CONFIG_STATUS script. ## 33928 ## ----------------------------------- ## 33929 _ASEOF 33930 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33931 33932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33933 # Save the log message, to keep $0 and so on meaningful, and to 33934 # report actual input values of CONFIG_FILES etc. instead of their 33935 # values after options handling. 33936 ac_log=" 33937 This file was extended by OpenJDK $as_me jdk8, which was 33938 generated by GNU Autoconf 2.68. Invocation command line was 33939 33940 CONFIG_FILES = $CONFIG_FILES 33941 CONFIG_HEADERS = $CONFIG_HEADERS 33942 CONFIG_LINKS = $CONFIG_LINKS 33943 CONFIG_COMMANDS = $CONFIG_COMMANDS 33944 $ $0 $@ 33945 33946 on `(hostname || uname -n) 2>/dev/null | sed 1q` 33947 " 33948 33949 _ACEOF 33950 33951 case $ac_config_files in *" 33952 "*) set x $ac_config_files; shift; ac_config_files=$*;; 33953 esac 33954 33955 case $ac_config_headers in *" 33956 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33957 esac 33958 33959 33960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33961 # Files that config.status was made for. 33962 config_files="$ac_config_files" 33963 config_headers="$ac_config_headers" 33964 33965 _ACEOF 33966 33967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33968 ac_cs_usage="\ 33969 \`$as_me' instantiates files and other configuration actions 33970 from templates according to the current configuration. Unless the files 33971 and actions are specified as TAGs, all are instantiated by default. 33972 33973 Usage: $0 [OPTION]... [TAG]... 33974 33975 -h, --help print this help, then exit 33976 -V, --version print version number and configuration settings, then exit 33977 --config print configuration, then exit 33978 -q, --quiet, --silent 33979 do not print progress messages 33980 -d, --debug don't remove temporary files 33981 --recheck update $as_me by reconfiguring in the same conditions 33982 --file=FILE[:TEMPLATE] 33983 instantiate the configuration file FILE 33984 --header=FILE[:TEMPLATE] 33985 instantiate the configuration header FILE 33986 33987 Configuration files: 33988 $config_files 33989 33990 Configuration headers: 33991 $config_headers 33992 33993 Report bugs to <build-dev@openjdk.java.net>. 33994 OpenJDK home page: <http://openjdk.java.net>." 33995 33996 _ACEOF 33997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33998 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33999 ac_cs_version="\\ 34000 OpenJDK config.status jdk8 34001 configured by $0, generated by GNU Autoconf 2.68, 34002 with options \\"\$ac_cs_config\\" 34003 34004 Copyright (C) 2010 Free Software Foundation, Inc. 34005 This config.status script is free software; the Free Software Foundation 34006 gives unlimited permission to copy, distribute and modify it." 34007 34008 ac_pwd='$ac_pwd' 34009 srcdir='$srcdir' 34010 AWK='$AWK' 34011 test -n "\$AWK" || AWK=awk 34012 _ACEOF 34013 34014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34015 # The default lists apply if the user does not specify any file. 34016 ac_need_defaults=: 34017 while test $# != 0 34018 do 34019 case $1 in 34020 --*=?*) 34021 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34023 ac_shift=: 34024 ;; 34025 --*=) 34026 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34027 ac_optarg= 34028 ac_shift=: 34029 ;; 34030 *) 34031 ac_option=$1 34032 ac_optarg=$2 34033 ac_shift=shift 34034 ;; 34035 esac 34036 34037 case $ac_option in 34038 # Handling of the options. 34039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34040 ac_cs_recheck=: ;; 34041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34042 $as_echo "$ac_cs_version"; exit ;; 34043 --config | --confi | --conf | --con | --co | --c ) 34044 $as_echo "$ac_cs_config"; exit ;; 34045 --debug | --debu | --deb | --de | --d | -d ) 34046 debug=: ;; 34047 --file | --fil | --fi | --f ) 34048 $ac_shift 34049 case $ac_optarg in 34050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34051 '') as_fn_error $? "missing file argument" ;; 34052 esac 34053 as_fn_append CONFIG_FILES " '$ac_optarg'" 34054 ac_need_defaults=false;; 34055 --header | --heade | --head | --hea ) 34056 $ac_shift 34057 case $ac_optarg in 34058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34059 esac 34060 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 34061 ac_need_defaults=false;; 34062 --he | --h) 34063 # Conflict between --help and --header 34064 as_fn_error $? "ambiguous option: \`$1' 34065 Try \`$0 --help' for more information.";; 34066 --help | --hel | -h ) 34067 $as_echo "$ac_cs_usage"; exit ;; 34068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34069 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34070 ac_cs_silent=: ;; 34071 34072 # This is an error. 34073 -*) as_fn_error $? "unrecognized option: \`$1' 34074 Try \`$0 --help' for more information." ;; 34075 34076 *) as_fn_append ac_config_targets " $1" 34077 ac_need_defaults=false ;; 34078 34079 esac 34080 shift 34081 done 34082 34083 ac_configure_extra_args= 34084 34085 if $ac_cs_silent; then 34086 exec 6>/dev/null 34087 ac_configure_extra_args="$ac_configure_extra_args --silent" 34088 fi 34089 34090 _ACEOF 34091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34092 if \$ac_cs_recheck; then 34093 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34094 shift 34095 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 34096 CONFIG_SHELL='$SHELL' 34097 export CONFIG_SHELL 34098 exec "\$@" 34099 fi 34100 34101 _ACEOF 34102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34103 exec 5>>config.log 34104 { 34105 echo 34106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34107 ## Running $as_me. ## 34108 _ASBOX 34109 $as_echo "$ac_log" 34110 } >&5 34111 34112 _ACEOF 34113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34114 _ACEOF 34115 34116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34117 34118 # Handling of arguments. 34119 for ac_config_target in $ac_config_targets 34120 do 34121 case $ac_config_target in 34122 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 34123 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 34124 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 34125 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 34126 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 34127 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 34128 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 34129 34130 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34131 esac 34132 done 34133 34134 34135 # If the user did not use the arguments to specify the items to instantiate, 34136 # then the envvar interface is used. Set only those that are not. 34137 # We use the long form for the default assignment because of an extremely 34138 # bizarre bug on SunOS 4.1.3. 34139 if $ac_need_defaults; then 34140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34142 fi 34143 34144 # Have a temporary directory for convenience. Make it in the build tree 34145 # simply because there is no reason against having it here, and in addition, 34146 # creating and moving files from /tmp can sometimes cause problems. 34147 # Hook for its removal unless debugging. 34148 # Note that there is a small window in which the directory will not be cleaned: 34149 # after its creation but before its name has been assigned to `$tmp'. 34150 $debug || 34151 { 34152 tmp= ac_tmp= 34153 trap 'exit_status=$? 34154 : "${ac_tmp:=$tmp}" 34155 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34156 ' 0 34157 trap 'as_fn_exit 1' 1 2 13 15 34158 } 34159 # Create a (secure) tmp directory for tmp files. 34160 34161 { 34162 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34163 test -d "$tmp" 34164 } || 34165 { 34166 tmp=./conf$$-$RANDOM 34167 (umask 077 && mkdir "$tmp") 34168 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34169 ac_tmp=$tmp 34170 34171 # Set up the scripts for CONFIG_FILES section. 34172 # No need to generate them if there are no CONFIG_FILES. 34173 # This happens for instance with `./config.status config.h'. 34174 if test -n "$CONFIG_FILES"; then 34175 34176 34177 ac_cr=`echo X | tr X '\015'` 34178 # On cygwin, bash can eat \r inside `` if the user requested igncr. 34179 # But we know of no other shell where ac_cr would be empty at this 34180 # point, so we can use a bashism as a fallback. 34181 if test "x$ac_cr" = x; then 34182 eval ac_cr=\$\'\\r\' 34183 fi 34184 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34185 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34186 ac_cs_awk_cr='\\r' 34187 else 34188 ac_cs_awk_cr=$ac_cr 34189 fi 34190 34191 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34192 _ACEOF 34193 34194 34195 { 34196 echo "cat >conf$$subs.awk <<_ACEOF" && 34197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34198 echo "_ACEOF" 34199 } >conf$$subs.sh || 34200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34201 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34202 ac_delim='%!_!# ' 34203 for ac_last_try in false false false false false :; do 34204 . ./conf$$subs.sh || 34205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34206 34207 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34208 if test $ac_delim_n = $ac_delim_num; then 34209 break 34210 elif $ac_last_try; then 34211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34212 else 34213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34214 fi 34215 done 34216 rm -f conf$$subs.sh 34217 34218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34219 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34220 _ACEOF 34221 sed -n ' 34222 h 34223 s/^/S["/; s/!.*/"]=/ 34224 p 34225 g 34226 s/^[^!]*!// 34227 :repl 34228 t repl 34229 s/'"$ac_delim"'$// 34230 t delim 34231 :nl 34232 h 34233 s/\(.\{148\}\)..*/\1/ 34234 t more1 34235 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34236 p 34237 n 34238 b repl 34239 :more1 34240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34241 p 34242 g 34243 s/.\{148\}// 34244 t nl 34245 :delim 34246 h 34247 s/\(.\{148\}\)..*/\1/ 34248 t more2 34249 s/["\\]/\\&/g; s/^/"/; s/$/"/ 34250 p 34251 b 34252 :more2 34253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34254 p 34255 g 34256 s/.\{148\}// 34257 t delim 34258 ' <conf$$subs.awk | sed ' 34259 /^[^""]/{ 34260 N 34261 s/\n// 34262 } 34263 ' >>$CONFIG_STATUS || ac_write_fail=1 34264 rm -f conf$$subs.awk 34265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34266 _ACAWK 34267 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34268 for (key in S) S_is_set[key] = 1 34269 FS = "" 34270 34271 } 34272 { 34273 line = $ 0 34274 nfields = split(line, field, "@") 34275 substed = 0 34276 len = length(field[1]) 34277 for (i = 2; i < nfields; i++) { 34278 key = field[i] 34279 keylen = length(key) 34280 if (S_is_set[key]) { 34281 value = S[key] 34282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34283 len += length(value) + length(field[++i]) 34284 substed = 1 34285 } else 34286 len += 1 + keylen 34287 } 34288 34289 print line 34290 } 34291 34292 _ACAWK 34293 _ACEOF 34294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34297 else 34298 cat 34299 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34300 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34301 _ACEOF 34302 34303 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34304 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34305 # trailing colons and then remove the whole line if VPATH becomes empty 34306 # (actually we leave an empty line to preserve line numbers). 34307 if test "x$srcdir" = x.; then 34308 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34309 h 34310 s/// 34311 s/^/:/ 34312 s/[ ]*$/:/ 34313 s/:\$(srcdir):/:/g 34314 s/:\${srcdir}:/:/g 34315 s/:@srcdir@:/:/g 34316 s/^:*// 34317 s/:*$// 34318 x 34319 s/\(=[ ]*\).*/\1/ 34320 G 34321 s/\n// 34322 s/^[^=]*=[ ]*$// 34323 }' 34324 fi 34325 34326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34327 fi # test -n "$CONFIG_FILES" 34328 34329 # Set up the scripts for CONFIG_HEADERS section. 34330 # No need to generate them if there are no CONFIG_HEADERS. 34331 # This happens for instance with `./config.status Makefile'. 34332 if test -n "$CONFIG_HEADERS"; then 34333 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34334 BEGIN { 34335 _ACEOF 34336 34337 # Transform confdefs.h into an awk script `defines.awk', embedded as 34338 # here-document in config.status, that substitutes the proper values into 34339 # config.h.in to produce config.h. 34340 34341 # Create a delimiter string that does not exist in confdefs.h, to ease 34342 # handling of long lines. 34343 ac_delim='%!_!# ' 34344 for ac_last_try in false false :; do 34345 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34346 if test -z "$ac_tt"; then 34347 break 34348 elif $ac_last_try; then 34349 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34350 else 34351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34352 fi 34353 done 34354 34355 # For the awk script, D is an array of macro values keyed by name, 34356 # likewise P contains macro parameters if any. Preserve backslash 34357 # newline sequences. 34358 34359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34360 sed -n ' 34361 s/.\{148\}/&'"$ac_delim"'/g 34362 t rset 34363 :rset 34364 s/^[ ]*#[ ]*define[ ][ ]*/ / 34365 t def 34366 d 34367 :def 34368 s/\\$// 34369 t bsnl 34370 s/["\\]/\\&/g 34371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34372 D["\1"]=" \3"/p 34373 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34374 d 34375 :bsnl 34376 s/["\\]/\\&/g 34377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34378 D["\1"]=" \3\\\\\\n"\\/p 34379 t cont 34380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34381 t cont 34382 d 34383 :cont 34384 n 34385 s/.\{148\}/&'"$ac_delim"'/g 34386 t clear 34387 :clear 34388 s/\\$// 34389 t bsnlc 34390 s/["\\]/\\&/g; s/^/"/; s/$/"/p 34391 d 34392 :bsnlc 34393 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34394 b cont 34395 ' <confdefs.h | sed ' 34396 s/'"$ac_delim"'/"\\\ 34397 "/g' >>$CONFIG_STATUS || ac_write_fail=1 34398 34399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34400 for (key in D) D_is_set[key] = 1 34401 FS = "" 34402 } 34403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34404 line = \$ 0 34405 split(line, arg, " ") 34406 if (arg[1] == "#") { 34407 defundef = arg[2] 34408 mac1 = arg[3] 34409 } else { 34410 defundef = substr(arg[1], 2) 34411 mac1 = arg[2] 34412 } 34413 split(mac1, mac2, "(") #) 34414 macro = mac2[1] 34415 prefix = substr(line, 1, index(line, defundef) - 1) 34416 if (D_is_set[macro]) { 34417 # Preserve the white space surrounding the "#". 34418 print prefix "define", macro P[macro] D[macro] 34419 next 34420 } else { 34421 # Replace #undef with comments. This is necessary, for example, 34422 # in the case of _POSIX_SOURCE, which is predefined and required 34423 # on some systems where configure will not decide to define it. 34424 if (defundef == "undef") { 34425 print "/*", prefix defundef, macro, "*/" 34426 next 34427 } 34428 } 34429 } 34430 { print } 34431 _ACAWK 34432 _ACEOF 34433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34434 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34435 fi # test -n "$CONFIG_HEADERS" 34436 34437 34438 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 34439 shift 34440 for ac_tag 34441 do 34442 case $ac_tag in 34443 :[FHLC]) ac_mode=$ac_tag; continue;; 34444 esac 34445 case $ac_mode$ac_tag in 34446 :[FHL]*:*);; 34447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34448 :[FH]-) ac_tag=-:-;; 34449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34450 esac 34451 ac_save_IFS=$IFS 34452 IFS=: 34453 set x $ac_tag 34454 IFS=$ac_save_IFS 34455 shift 34456 ac_file=$1 34457 shift 34458 34459 case $ac_mode in 34460 :L) ac_source=$1;; 34461 :[FH]) 34462 ac_file_inputs= 34463 for ac_f 34464 do 34465 case $ac_f in 34466 -) ac_f="$ac_tmp/stdin";; 34467 *) # Look for the file first in the build tree, then in the source tree 34468 # (if the path is not absolute). The absolute path cannot be DOS-style, 34469 # because $ac_f cannot contain `:'. 34470 test -f "$ac_f" || 34471 case $ac_f in 34472 [\\/$]*) false;; 34473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34474 esac || 34475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34476 esac 34477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34478 as_fn_append ac_file_inputs " '$ac_f'" 34479 done 34480 34481 # Let's still pretend it is `configure' which instantiates (i.e., don't 34482 # use $as_me), people would be surprised to read: 34483 # /* config.h. Generated by config.status. */ 34484 configure_input='Generated from '` 34485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34486 `' by configure.' 34487 if test x"$ac_file" != x-; then 34488 configure_input="$ac_file. $configure_input" 34489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34490 $as_echo "$as_me: creating $ac_file" >&6;} 34491 fi 34492 # Neutralize special characters interpreted by sed in replacement strings. 34493 case $configure_input in #( 34494 *\&* | *\|* | *\\* ) 34495 ac_sed_conf_input=`$as_echo "$configure_input" | 34496 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34497 *) ac_sed_conf_input=$configure_input;; 34498 esac 34499 34500 case $ac_tag in 34501 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34503 esac 34504 ;; 34505 esac 34506 34507 ac_dir=`$as_dirname -- "$ac_file" || 34508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34509 X"$ac_file" : 'X\(//\)[^/]' \| \ 34510 X"$ac_file" : 'X\(//\)$' \| \ 34511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34512 $as_echo X"$ac_file" | 34513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34514 s//\1/ 34515 q 34516 } 34517 /^X\(\/\/\)[^/].*/{ 34518 s//\1/ 34519 q 34520 } 34521 /^X\(\/\/\)$/{ 34522 s//\1/ 34523 q 34524 } 34525 /^X\(\/\).*/{ 34526 s//\1/ 34527 q 34528 } 34529 s/.*/./; q'` 34530 as_dir="$ac_dir"; as_fn_mkdir_p 34531 ac_builddir=. 34532 34533 case "$ac_dir" in 34534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34535 *) 34536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 34537 # A ".." for each directory in $ac_dir_suffix. 34538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34539 case $ac_top_builddir_sub in 34540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34542 esac ;; 34543 esac 34544 ac_abs_top_builddir=$ac_pwd 34545 ac_abs_builddir=$ac_pwd$ac_dir_suffix 34546 # for backward compatibility: 34547 ac_top_builddir=$ac_top_build_prefix 34548 34549 case $srcdir in 34550 .) # We are building in place. 34551 ac_srcdir=. 34552 ac_top_srcdir=$ac_top_builddir_sub 34553 ac_abs_top_srcdir=$ac_pwd ;; 34554 [\\/]* | ?:[\\/]* ) # Absolute name. 34555 ac_srcdir=$srcdir$ac_dir_suffix; 34556 ac_top_srcdir=$srcdir 34557 ac_abs_top_srcdir=$srcdir ;; 34558 *) # Relative name. 34559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34560 ac_top_srcdir=$ac_top_build_prefix$srcdir 34561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34562 esac 34563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34564 34565 34566 case $ac_mode in 34567 :F) 34568 # 34569 # CONFIG_FILE 34570 # 34571 34572 _ACEOF 34573 34574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34575 # If the template does not know about datarootdir, expand it. 34576 # FIXME: This hack should be removed a few years after 2.60. 34577 ac_datarootdir_hack=; ac_datarootdir_seen= 34578 ac_sed_dataroot=' 34579 /datarootdir/ { 34580 p 34581 q 34582 } 34583 /@datadir@/p 34584 /@docdir@/p 34585 /@infodir@/p 34586 /@localedir@/p 34587 /@mandir@/p' 34588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34589 *datarootdir*) ac_datarootdir_seen=yes;; 34590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34593 _ACEOF 34594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34595 ac_datarootdir_hack=' 34596 s&@datadir@&$datadir&g 34597 s&@docdir@&$docdir&g 34598 s&@infodir@&$infodir&g 34599 s&@localedir@&$localedir&g 34600 s&@mandir@&$mandir&g 34601 s&\\\${datarootdir}&$datarootdir&g' ;; 34602 esac 34603 _ACEOF 34604 34605 # Neutralize VPATH when `$srcdir' = `.'. 34606 # Shell code in configure.ac might set extrasub. 34607 # FIXME: do we really want to maintain this feature? 34608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34609 ac_sed_extra="$ac_vpsub 34610 $extrasub 34611 _ACEOF 34612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34613 :t 34614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34615 s|@configure_input@|$ac_sed_conf_input|;t t 34616 s&@top_builddir@&$ac_top_builddir_sub&;t t 34617 s&@top_build_prefix@&$ac_top_build_prefix&;t t 34618 s&@srcdir@&$ac_srcdir&;t t 34619 s&@abs_srcdir@&$ac_abs_srcdir&;t t 34620 s&@top_srcdir@&$ac_top_srcdir&;t t 34621 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34622 s&@builddir@&$ac_builddir&;t t 34623 s&@abs_builddir@&$ac_abs_builddir&;t t 34624 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34625 $ac_datarootdir_hack 34626 " 34627 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 34628 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34629 34630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34631 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34633 "$ac_tmp/out"`; test -z "$ac_out"; } && 34634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34635 which seems to be undefined. Please make sure it is defined" >&5 34636 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34637 which seems to be undefined. Please make sure it is defined" >&2;} 34638 34639 rm -f "$ac_tmp/stdin" 34640 case $ac_file in 34641 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34642 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34643 esac \ 34644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34645 ;; 34646 :H) 34647 # 34648 # CONFIG_HEADER 34649 # 34650 if test x"$ac_file" != x-; then 34651 { 34652 $as_echo "/* $configure_input */" \ 34653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34654 } >"$ac_tmp/config.h" \ 34655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34656 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34657 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34658 $as_echo "$as_me: $ac_file is unchanged" >&6;} 34659 else 34660 rm -f "$ac_file" 34661 mv "$ac_tmp/config.h" "$ac_file" \ 34662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34663 fi 34664 else 34665 $as_echo "/* $configure_input */" \ 34666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34667 || as_fn_error $? "could not create -" "$LINENO" 5 34668 fi 34669 ;; 34670 34671 34672 esac 34673 34674 done # for ac_tag 34675 34676 34677 as_fn_exit 0 34678 _ACEOF 34679 ac_clean_files=$ac_clean_files_save 34680 34681 test $ac_write_fail = 0 || 34682 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 34683 34684 34685 # configure is writing to config.log, and then calls config.status. 34686 # config.status does its own redirection, appending to config.log. 34687 # Unfortunately, on DOS this fails, as config.log is still kept open 34688 # by configure, so config.status won't be able to write to it; its 34689 # output is simply discarded. So we exec the FD to /dev/null, 34690 # effectively closing config.log, so it can be properly (re)opened and 34691 # appended to by config.status. When coming back to configure, we 34692 # need to make the FD available again. 34693 if test "$no_create" != yes; then 34694 ac_cs_success=: 34695 ac_config_status_args= 34696 test "$silent" = yes && 34697 ac_config_status_args="$ac_config_status_args --quiet" 34698 exec 5>/dev/null 34699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 34700 exec 5>>config.log 34701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 34702 # would make configure fail if this is the last instruction. 34703 $ac_cs_success || as_fn_exit 1 34704 fi 34705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 34706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 34707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 34708 fi 34709 34710 34711 # Make the compare script executable 34712 $CHMOD +x $OUTPUT_ROOT/compare.sh 34713 34714 # Finally output some useful information to the user 34715 34716 # Finally output some useful information to the user 34717 34718 if test "x$CCACHE_FOUND" != x; then 34719 if test "x$HAS_GOOD_CCACHE" = x; then 34720 CCACHE_STATUS="installed, but disabled (version older than 3.1.4)" 34721 CCACHE_HELP_MSG="You have ccache installed, but it is a version prior to 3.1.4. Try upgrading." 34722 else 34723 CCACHE_STATUS="installed and in use" 34724 fi 34725 else 34726 if test "x$GCC" = xyes; then 34727 CCACHE_STATUS="not installed (consider installing)" 34728 CCACHE_HELP_MSG="You do not have ccache installed. Try installing it." 34729 else 34730 CCACHE_STATUS="not available for your system" 34731 fi 34732 fi 34733 34734 printf "\n" 34735 printf "====================================================\n" 34736 printf "A new configuration has been successfully created in\n" 34737 printf "$OUTPUT_ROOT\n" 34738 if test "x$CONFIGURE_COMMAND_LINE" != x; then 34739 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 34740 else 34741 printf "using default settings.\n" 34742 fi 34743 34744 printf "\n" 34745 printf "Configuration summary:\n" 34746 printf "* Debug level: $DEBUG_LEVEL\n" 34747 printf "* JDK variant: $JDK_VARIANT\n" 34748 printf "* JVM variants: $with_jvm_variants\n" 34749 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 34750 34751 printf "\n" 34752 printf "Tools summary:\n" 34753 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 34754 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 34755 fi 34756 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 34757 printf "* C Compiler: $CC_VENDOR version $CC_VERSION (at $CC)\n" 34758 printf "* C++ Compiler: $CXX_VENDOR version $CXX_VERSION (at $CXX)\n" 34759 34760 printf "\n" 34761 printf "Build performance summary:\n" 34762 printf "* Cores to use: $JOBS\n" 34763 printf "* Memory limit: $MEMORY_SIZE MB\n" 34764 printf "* ccache status: $CCACHE_STATUS\n" 34765 printf "\n" 34766 34767 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then 34768 printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n" 34769 printf "$CCACHE_HELP_MSG\n" 34770 34771 # Print a helpful message on how to acquire the necessary build dependency. 34772 # ccache is the help tag: freetyp2, cups, pulse, alsa etc 34773 MISSING_DEPENDENCY=ccache 34774 PKGHANDLER_COMMAND= 34775 34776 case $PKGHANDLER in 34777 apt-get) 34778 apt_help $MISSING_DEPENDENCY ;; 34779 yum) 34780 yum_help $MISSING_DEPENDENCY ;; 34781 port) 34782 port_help $MISSING_DEPENDENCY ;; 34783 pkgutil) 34784 pkgutil_help $MISSING_DEPENDENCY ;; 34785 pkgadd) 34786 pkgadd_help $MISSING_DEPENDENCY ;; 34787 * ) 34788 break ;; 34789 esac 34790 34791 if test "x$PKGHANDLER_COMMAND" != x; then 34792 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34793 fi 34794 34795 printf "$HELP_MSG\n" 34796 printf "\n" 34797 fi 34798 34799 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 34800 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 34801 printf "will result in longer build times.\n" 34802 printf "\n" 34803 fi 34804 34805 if test "x$FOUND_ALT_VARIABLES" != "x"; then 34806 printf "WARNING: You have old-style ALT_ environment variables set.\n" 34807 printf "These are not respected, and will be ignored. It is recommended\n" 34808 printf "that you clean your environment. The following variables are set:\n" 34809 printf "$FOUND_ALT_VARIABLES\n" 34810 printf "\n" 34811 fi 34812 34813 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 34814 printf "WARNING: Your build output directory is not on a local disk.\n" 34815 printf "This will severely degrade build performance!\n" 34816 printf "It is recommended that you create an output directory on a local disk,\n" 34817 printf "and run the configure script again from that directory.\n" 34818 printf "\n" 34819 fi 34820 34821 if test "x$IS_RECONFIGURE" = "xyes"; then 34822 printf "WARNING: The result of this configuration has overridden an older\n" 34823 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 34824 printf "proper build. Failure to do so might result in strange build problems.\n" 34825 printf "\n" 34826 fi 34827